/* Design tokens: edit the palette, scale and spacing here. */
:root {
  color-scheme: light;
  --color-paper: #fff;
  --color-heading: #303235;
  --color-body: #64666c;
  --color-muted: #72757b;
  --color-ink: #243d60;
  --color-amber: #986314;
  --color-rule: #e4e3df;
  --font-sans: Arial, Helvetica, sans-serif;
  --space-sm: .75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --page-gutter: clamp(1.25rem, 4.5vw, 5rem);
  --content-width: 87.5rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --duration: 280ms;
  --portrait-duration: 4s;
  --portrait-ease: cubic-bezier(.45, 0, .55, 1);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--color-paper); color: var(--color-heading); font-family: var(--font-sans); }
::selection { color: var(--color-ink); background: #f6deab; }
.hero { max-width: var(--content-width); min-height: 100svh; margin-inline: auto; padding: clamp(2.5rem, 7vh, 5rem) var(--page-gutter) 2.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-lg); }
.intro { display: flex; align-items: center; justify-content: center; gap: .65rem; }
.intro h1 { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.intro__mark { width: .4rem; height: .4rem; border-radius: 50%; background: var(--color-amber); }
/* Desktop: the portrait spans both copy rows. */
.identity-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: clamp(1rem, 2vw, 2rem); align-items: center; margin-block: auto; }
.identity-heading { margin: 0 0 1.25rem; align-self: end; position: relative; border-radius: .15rem; }
.identity-heading--data { grid-area: 1 / 1; }
.identity-heading--design { grid-area: 1 / 3; }
.identity-kicker { display: block; color: var(--color-muted); font-size: .62rem; line-height: 1.5; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.15rem; }
.identity-title { display: block; font-size: clamp(2.75rem, 4.5vw, 4rem); font-weight: 700; line-height: 1.02; letter-spacing: -.065em; }
.identity-description { margin: 0; max-width: 16rem; align-self: start; font-size: clamp(.94rem, 1.1vw, 1rem); line-height: 1.75; color: var(--color-body); font-weight: 400; }
.identity-description--data { grid-area: 2 / 1; }
.identity-description--design { grid-area: 2 / 3; }
.identity-heading { transition: translate var(--duration) var(--ease); }
.identity-heading:focus-visible { outline: 2px solid var(--color-ink); outline-offset: .65rem; }
.identity-heading--design:focus-visible { outline-color: var(--color-amber); }
.portrait {
  --split: 50%;
  grid-area: 1 / 2 / 3 / 3;
  margin: 0;
  position: relative;
  isolation: isolate;
}
/* Reveal more of one image without scaling or moving either face.
   The fixed pointer zones stay at 50%, so the moving seam cannot flip the hover. */
.hero[data-active="data"] .portrait { --split: 100%; }
.hero[data-active="design"] .portrait { --split: 0%; }
.portrait__canvas { position: relative; aspect-ratio: 1 / 1.06; overflow: hidden; }
.portrait__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; user-select: none; pointer-events: none; }
.portrait__image { transition: clip-path var(--portrait-duration) var(--portrait-ease); }
.portrait__image--photo { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.portrait__image--sketch { clip-path: inset(0 0 0 var(--split)); }
/* Fade only the lower shoulders into white; leave the face intact. */
.portrait__canvas::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 83%, var(--color-paper) 100%); }
.portrait__seam {
  position: absolute;
  top: 7%;
  bottom: 13%;
  left: var(--split);
  width: 1px;
  background: linear-gradient(transparent, rgb(255 255 255 / .35), transparent);
  pointer-events: none;
  transition: left var(--portrait-duration) var(--portrait-ease);
}
.hero__signature { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--color-muted); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; }
.signature-line { height: 1px; width: 3rem; background: var(--color-rule); }
/* Keep both identities' text colors and opacity consistent during interaction. */
.hero[data-active="data"] .identity-heading--data { translate: .2rem 0; }
.hero[data-active="design"] .identity-heading--design { translate: -.2rem 0; }
/* GSAP owns the reveal when available; the page stays visible without it. */
.motion-ready .portrait__image, .motion-ready .portrait__seam { transition: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero[data-active] .identity-heading { translate: none; }
  /* Retain a stable split rather than snapping between reveal positions. */
  .hero[data-active] .portrait { --split: 50%; }
}

/* Tablet/mobile: titles, shared portrait, then paired descriptors. */
@media (max-width: 68.75rem) {
  .hero { gap: 2.5rem; padding-top: 2.5rem; }
  .identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; row-gap: 1.75rem; width: 100%; max-width: 42rem; margin-inline: auto; }
  .identity-heading { align-self: center; margin: 0; }
  .identity-heading--data { grid-area: 1 / 1; }
  .identity-heading--design { grid-area: 1 / 2; text-align: right; }
  .identity-title { font-size: clamp(2rem, 5.5vw, 3.7rem); }
  .identity-kicker { margin-bottom: .7rem; font-size: .58rem; letter-spacing: .09em; }
  .portrait { grid-area: 2 / 1 / 3 / 3; width: min(100%, 30rem); justify-self: center; }
  .identity-description { max-width: 17rem; font-size: .94rem; }
  .identity-description--data { grid-area: 3 / 1; }
  .identity-description--design { grid-area: 3 / 2; justify-self: end; text-align: right; }
  .hero__signature { margin-top: 1rem; }
}
@media (max-width: 26rem) {
  .hero { gap: 2rem; padding-top: 2rem; }
  .identity-grid { column-gap: 1.2rem; row-gap: 1.4rem; }
  .identity-title { font-size: clamp(1.8rem, 7.8vw, 2rem); }
  .identity-kicker { font-size: .5rem; letter-spacing: .06em; }
  .identity-description { font-size: .84rem; line-height: 1.7; }
  .hero__signature { font-size: .49rem; gap: .6rem; letter-spacing: .1em; }
  .signature-line { width: 1.5rem; }
}
