*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #1a1a1a;
  --grey: #767676;
  --border: #e4e4e4;
  --bg-icon: #f6f6f6;
  --pad: 80px;
}

html { font-size: 16px; }

body {
  background: #fff;
  color: var(--black);
  font-family: 'Geist', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */

.display-1 {
  font-size: 120px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -6px;
}

.header-1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -2.4px;
}

.label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.42px;
  line-height: 1;
}

.body-copy {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── DIVIDER ── */

.divider {
  border: none;
  border-top: 1px solid var(--black);
  width: 100%;
  flex-shrink: 0;
}

/* ════════════════════════════════════
   COMPONENT: TAG
   Pill label — two size variants
   ════════════════════════════════════ */

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  border: 2px solid var(--black);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Smaller variant used inside card-media for type labels */
.tag--small {
  padding: 4px 16px;
}

/* ════════════════════════════════════
   COMPONENT: CARD-PROJECT
   Project card with image slot + meta
   ════════════════════════════════════ */

.card-project {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-project__thumb {
  height: 320px;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
}

.card-project__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-project__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--black);
}

.card-project__title {
  font-size: 35px;
  font-weight: 400;
  line-height: 1.1;
}

.card-project__meta {
  display: flex;
  gap: 40px;
}

.card-project__meta-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
}

/* ════════════════════════════════════
   COMPONENT: CARD-MEDIA
   Article/talk row: thumb + content + tag + divider
   ════════════════════════════════════ */

.card-media {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-media__row {
  display: flex;
  gap: 40px;
  align-items: center;
}

.card-media__thumb {
  flex-shrink: 0;
  width: 300px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-media__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media__thumb--contain img {
  object-fit: contain;
}

.card-media__content {
  flex: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
  gap: 16px;
  min-width: 0;
}

.card-media__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-media__title {
  font-size: 35px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-media__title:hover { opacity: 0.7; }

.card-media__desc {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
}

/* ════════════════════════════════════
   COMPONENT: CARD-ACHIEVEMENT
   Numbered achievement row + divider
   ════════════════════════════════════ */

.card-achievement {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-achievement__row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.card-achievement__num {
  flex-shrink: 0;
  width: 300px;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
}

.card-achievement__text {
  flex: 1;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  min-width: 0;
}

/* ── PAGE ── */

.page {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── PROFILE ── */

.profile {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 160px var(--pad) 0;
}

.profile-top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.profile-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
  min-width: 0;
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.profile-title {
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -2.4px;
}

.profile-photo {
  flex-shrink: 0;
  width: 347px;
}

.profile-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ── PROJECTS ── */

.projects {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 120px var(--pad) 80px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 40px;
}

/* ── CLIENTS ── */

.clients {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: var(--pad);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 23px;
}

.client-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.client-item p {
  font-size: 35px;
  font-weight: 400;
  line-height: 1.1;
}

.client-item a:hover { text-decoration: underline; }

/* ── ARTICLES ── */

.articles {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: var(--pad);
}

.card-media-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── ACHIEVEMENTS ── */

.achievements {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: var(--pad);
}

.card-achievement-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── FOOTER ── */

.footer {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 0 var(--pad) var(--pad);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.footer-copy {
  flex: 1;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--grey);
}

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--bg-icon);
  border: 1.3px solid var(--border);
  border-radius: 10px;
  transition: opacity 0.15s;
}

.social-btn:hover { opacity: 0.7; }

/* ════════════════════════════════════
   RESPONSIVE — PROFILE STACK  ≤ 1100px
   Profile switches to stacked layout
   before the display-1 name overflows
   ════════════════════════════════════ */

@media (max-width: 1100px) {
  .profile-top {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .profile-photo {
    width: 343px;
    flex-shrink: 0;
  }
}

/* ════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 768px
   ════════════════════════════════════ */

@media (max-width: 768px) {
  :root { --pad: 40px; }

  /* Profile */
  .profile {
    padding-top: 80px;
    gap: 40px;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  /* Clients */
  .clients-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  /* Card-media: stack image on top */
  .card-media__row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .card-media__thumb {
    width: 100%;
  }

  .card-media__content {
    padding: 0;
  }

  /* Card-achievement: num no longer fixed 300px */
  .card-achievement__num {
    width: auto;
    white-space: nowrap;
  }
}

/* ════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 480px
   ════════════════════════════════════ */

@media (max-width: 480px) {
  :root { --pad: 24px; }

  /* Typography */
  .display-1 {
    font-size: 80px;
    letter-spacing: -4px;
  }

  /* Profile */
  .profile {
    padding-top: 60px;
    gap: 32px;
  }

  .profile-photo {
    width: 100%;
    aspect-ratio: 287 / 406;
  }

  .profile-photo img {
    height: 100%;
    object-fit: cover;
  }

  /* Sections — tighter vertical padding */
  .projects {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .clients,
  .articles,
  .achievements {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* Card-project meta: stack columns */
  .card-project__meta {
    flex-direction: column;
    gap: 16px;
  }

  /* Footer: icons above copyright */
  .footer-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 32px;
  }
}
