/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS  (from Figma — no invented values)
═══════════════════════════════════════════════════════════ */
:root {
  --bg:      #f9f8f5;
  --grey:    #d9d9d9;
  --crema:   #d1cec8;
  --titles:  #0c0c0b;
  --text:    #6a6a65;
  --accent:  #c3af8c;
  --border:  #d4d3cd;
  --white:   #ffffff;

  /* Layout */
  --max-w:   1366px;
  --pad:     128px;          /* standard horizontal padding */
  --section-vpad: 128px;     /* section top/bottom padding — never changes */
}

/* ═══════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: disc; padding-left: 1.5em; }
li { margin-bottom: 4px; line-height: 24px; }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════ */
.label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}
.btn:hover { background: #c3af8c; color: var(--white); }
.btn--dark:hover { background: #c3af8c; }
.btn--dark { background: var(--titles); color: var(--white); }

/* Centered page wrapper — max 1366px */
.page-wrap {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* 1fr / 2fr column grid (the "3-column" layout) */
.col-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
}
.col-1 { grid-column: 1; }
.col-2 { grid-column: 2; }

/* ═══════════════════════════════════════════════════════════
   HEADER
   All elements in .header__content are stacked absolutely.
   Dimensions use vw so they scale with the viewport.
   Button stays fixed (does not use vw).

   Figma canvas: 1366px wide × 911px tall
   Ratios vs canvas width:
     Header height: 911/1366 = 66.69vw
     Grey bg height: 655/1366 = 47.96vw
     Text pt: 385/1366 = 28.18vw
     UX DESIGNER font: 59.955/1366 = 4.39vw
     ETCHEVARNE font: 194.854/1366 = 14.27vw
     ETCHEVARNE line-h: 145.007/1366 = 10.61vw
     Photo width: 779/1366 = 57.02vw
     Text inner width: 1238/1366 = 90.63vw
═══════════════════════════════════════════════════════════ */
.header {
  position: relative;
  width: 100%;
  height: clamp(380px, 66.69vw, 911px);
}

/* Grey rectangle — top 655px (47.96%) of header */
.header__bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(270px, 47.96vw, 655px);
  background-color: var(--grey);
  z-index: 0;
}

/* Centered 1366px content area */
.header__content {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max-w), 100%);
  height: 100%;
}

/* ── Layer 1: Back circle ──
   PNG is 779×526 — same canvas width as the photo (779px).
   Display at the photo's vw-width (57.03vw), natural aspect ratio.
   Centre horizontally; offset from top so circle sits in the grey zone. */
.header__circle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* circle bottom = grey area bottom (655px at 1366px)
     top = 655 - 526 = 129px → 9.44vw; scales correctly at all viewports */
  top: clamp(0px, 9.44vw, 129px);
  /* same width as photo: 779/1366 = 57.03vw */
  width: clamp(200px, 57.03vw, 779px);
  height: auto;
  z-index: 1;
}

/* ── Layer 2: Text ("UX DESIGNER" + "ETCHEVARNE") ── */
.header__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;          /* centers 90.63vw-wide text blocks */
  padding-top: clamp(130px, 28.18vw, 385px);
  z-index: 2;
  pointer-events: none;
}

.header__ux-designer {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(22px, 4.39vw, 60px);
  line-height: 1.2;
  color: var(--white);
  width: clamp(180px, 90.63vw, 1238px);
  letter-spacing: 0.01em;
}

.header__etchevarne {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(64px, 14.27vw, 195px);
  line-height: clamp(50px, 10.61vw, 145px);
  color: var(--white);
  width: clamp(180px, 90.63vw, 1238px);
  letter-spacing: 0.01em;
}

/* ── Layer 3: Photo ── */
.header__photo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}

.header__photo img {
  /* 779px / 1366px = 57.02vw; natural height = 911px (fills header) */
  width: clamp(200px, 57.02vw, 779px);
  height: auto;
  margin-top: 0;
}

/* ── Layer 4: Button (fixed, does not scale) ── */
.header__btn-area {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 64px;
  z-index: 4;
  pointer-events: none;
}
.header__btn-area .btn {
  pointer-events: all;
  width: 277px;
  padding: 10px;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   SECTION — HIGHLIGHTS
═══════════════════════════════════════════════════════════ */
.highlights {
  /* Section padding: pt-64 pb-128 px-128 (from Figma) */
}

.highlights__grid {
  display: flex;
  align-items: stretch;
  padding-top: 64px;
  padding-bottom: 128px;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 36px;
  min-height: 270px;
}
.stat:first-child { padding-left: 32px;  padding-right: 64px; }
.stat:last-child  { padding-left: 64px;  padding-right: 32px; }

.stat--bordered {
  flex: 0 0 409px;
  border-left:  1px solid var(--border);
  border-right: 1px solid var(--border);
  padding-left:  64px;
  padding-right: 64px;
}

.stat__number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(56px, 7.03vw, 96px);
  line-height: 1;
  color: var(--titles);
  white-space: nowrap;
}

.stat__label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  color: var(--text);
  max-width: 282px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION — WHAT I ACTUALLY DO
═══════════════════════════════════════════════════════════ */
.services {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services .page-wrap {
  padding-top: var(--section-vpad);
  padding-bottom: var(--section-vpad);
}

.services__grid {
  row-gap: 64px;
}

.services__heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(40px, 4.68vw, 64px);
  line-height: 1.1;
  color: var(--titles);
}

/* Each service row sits in col-2 as a flex row */
.service-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.service-item__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--titles);
  width: 282px;
  flex-shrink: 0;
}

.service-item__bullets {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  list-style: none;   /* no bullets in this section only */
  padding-left: 0;
}
.service-item__bullets li { margin-bottom: 5px; }

/* ═══════════════════════════════════════════════════════════
   SECTION — SELECTED WORK
═══════════════════════════════════════════════════════════ */
.work__wrap {
  display: flex;
  flex-direction: column;
  gap: 128px;
  padding-top: var(--section-vpad);
  padding-bottom: var(--section-vpad);
}

/* Area header: SELECTED WORK label + headline + NDA */
.work__header {
  row-gap: 32px;
}

.work__title-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work__headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(40px, 4.68vw, 64px);
  line-height: 1.1;
  color: var(--titles);
}

.work__nda {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  max-width: 420px;
}
.work__nda strong { font-weight: 700; }

/* Experience items: meta in col-1 (right-aligned), body in col-2 */
.experience {
  /* inherits col-grid: 1fr 2fr */
}

.exp__meta {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  text-align: right;
  padding-right: 32px;
  gap: 8px;
}

.exp__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 36px;
  line-height: 1.2;
  color: var(--titles);
}

.exp__body {
  grid-column: 2;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
}
.exp__body p  { margin-bottom: 16px; }
.exp__body li { margin-bottom: 4px; line-height: 24px; }

/* Portfolio banner (inside work__wrap, so respects the gap) */
.portfolio-banner {
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}

.portfolio-banner__headline {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 24px;
  color: var(--titles);
  margin-bottom: 4px;
}

.portfolio-banner__sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--titles);
}

.portfolio-banner__btn {
  width: 277px;
  padding: 10px;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTION — CAREER
═══════════════════════════════════════════════════════════ */
.career {
  border-top: 1px solid var(--border);
}

.career__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding-top: var(--section-vpad);
  padding-bottom: var(--section-vpad);
}

.career__heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(40px, 4.68vw, 64px);
  line-height: 1.1;
  color: var(--titles);
  text-align: center;
}

.cv-table {
  width: 637px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  letter-spacing: 1.54px;
  color: var(--text);
}
.cv-row--last { border-bottom: none; }

.cv-row__company { width: 139px; flex-shrink: 0; }
.cv-row__role    { flex: 1; padding: 0 8px; }
.cv-row__dates {
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
  text-align: right;
  width: 115px;
  flex-shrink: 0;
  letter-spacing: 0;
}

.career__linkedin {
  width: 277px;
  padding: 10px;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   SECTION — ABOUT ME
═══════════════════════════════════════════════════════════ */
.about {
  border-top: 1px solid var(--border);
}

.about__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding-top: var(--section-vpad);
  padding-bottom: var(--section-vpad);
}

/* Narrow-column content: max 634px, centered */
.about__header,
.about__body,
.about__image {
  width: 634px;
  max-width: 100%;
}

.about__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about__heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(40px, 4.68vw, 64px);
  line-height: 1.1;
  color: var(--titles);
}

.about__em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.about__body {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
}

.about__image {
  aspect-ratio: 636 / 637;  /* original: 636×637px */
  overflow: hidden;
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════
   SECTION — FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background-color: var(--crema);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 31px;
  padding: var(--section-vpad) var(--pad);
  text-align: center;
}

.footer__heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(40px, 4.68vw, 64px);
  line-height: 1.1;
  color: var(--titles);
  text-align: center;
}

.footer__sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  max-width: 440px;
}

.footer__actions {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: center;
}

.footer__btn {
  width: 277px;
  padding: 10px;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet  ≤ 1100px
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root { --pad: 64px; }

  /* Header button: bring closer on smaller screens */
  .header__btn-area { padding: 40px; }

  /* Highlights: allow middle stat to shrink */
  .stat--bordered { flex: 0 0 340px; }

  /* Services: allow service name to be narrower */
  .service-item__name { width: 200px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile  ≤ 768px
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --pad: 24px; }

  /* Header: shorter on mobile */
  .header__btn-area {
    padding: 20px 24px;
    justify-content: flex-end;
    align-items: flex-start;
  }
  .header__btn-area .btn {
    width: auto;
    font-size: 11px;
    padding: 8px 10px;
    letter-spacing: 0.04em;
  }

  /* Highlights: stack vertically */
  .highlights__grid { flex-direction: column; }

  .stat {
    min-height: 0;
    height: auto;
    padding: 24px 0;
    gap: 16px;
    border-top: 1px solid var(--border);
  }
  .stat:first-child { border-top: none; padding-top: 0; padding-left: 0; padding-right: 0; }
  .stat:last-child  { padding-left: 0; padding-right: 0; }
  .stat--bordered   { flex: none; border: none; border-top: 1px solid var(--border); padding-left: 0; padding-right: 0; }

  .stat__number { font-size: clamp(52px, 14vw, 80px); }
  .stat__label  { font-size: 18px; line-height: 28px; }

  /* Services: single column */
  .services__grid {
    grid-template-columns: 1fr;
  }
  .col-2 { grid-column: 1; }
  .service-item { flex-direction: column; gap: 12px; }
  .service-item__name { width: auto; }

  /* Selected work: single column */
  .work__wrap { gap: 64px; }

  .work__header { grid-template-columns: 1fr; }

  .experience {
    grid-template-columns: 1fr;
  }
  .exp__meta {
    grid-column: 1;
    text-align: left;
    padding-right: 0;
    margin-bottom: 12px;
  }
  .exp__body { grid-column: 1; }

  /* Portfolio banner: stack */
  .portfolio-banner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .portfolio-banner__btn { width: auto; }

  /* Career table */
  .cv-table { width: 100%; }
  .cv-row {
    flex-wrap: wrap;
    gap: 2px 8px;
    letter-spacing: 1px;
  }
  .cv-row__company { width: 100%; font-weight: 700; }
  .cv-row__role    { flex: 1; padding: 0; }
  .cv-row__dates   { width: auto; }

  /* About: full-width content */
  .about__header,
  .about__body,
  .about__image { width: 100%; }

  /* Footer */
  .footer { padding: var(--section-vpad) var(--pad); }
  .footer__actions { flex-direction: column; gap: 16px; }
  .footer__btn { width: auto; }
}
