/* Voss Lite, Lilac. One family, the width axis does the contrast. Windows 8px, bar 12px, buttons 10px. */
:root {
  --bg: #efefec; --ink: #0e0e10; --field: #b9a8f6; --on-field: #0e0e10;
  --muted: color-mix(in srgb, var(--ink) 66%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --gut: clamp(16px, 2.8vw, 40px);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Mona Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Nav: floating pill with a sliding marker */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 var(--gut); pointer-events: none; }
.pill { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 5px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.home { display: flex; align-items: center; border-radius: 8px; }
.avatar { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex: none; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.who { padding: 0 8px 0 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.links { position: relative; display: flex; }
.links a { position: relative; z-index: 1; display: block; padding: 8px 12px; font-size: 14px; line-height: 20px; font-weight: 500; border-radius: 8px; transition: color .3s; }
.marker { position: absolute; top: 0; left: 0; height: 100%; width: var(--mw, 0); border-radius: 8px; background: var(--ink); opacity: var(--mo, 0); transform: translateX(var(--mx, 0)); transition: transform .5s var(--ease), width .5s var(--ease), opacity .25s; }
.links a.lit { color: var(--bg); }

/* Letter roll: site.js doubles the letters, hover slides the column up */
[data-roll] .r { display: inline-flex; overflow: hidden; vertical-align: top; }
[data-roll] .r > span { display: inline-block; position: relative; white-space: pre; transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 14ms); }
[data-roll] .r > span::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
@media (hover: hover) { [data-roll]:hover .r > span { transform: translateY(-100%); } }

/* Hero: the name holds the screen */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--field); color: var(--on-field); padding: calc(var(--nav-h) + 12px) var(--gut) clamp(26px, 4vh, 48px); }
.name { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; font-size: 17.5vw; line-height: .86; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; margin: auto 0; }
.nb { display: inline-block; white-space: nowrap; }
.hero { overflow-x: clip; }
.name .ch { display: inline-block; overflow: hidden; padding: .3em .05em .25em; margin: -.3em -.05em -.25em; }
.name .ch i { display: inline-block; font-style: normal; font-variation-settings: 'wdth' var(--w, 100); white-space: pre; }
.motion .name .ch i { transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.ready .name .ch i { transform: none; }
.slot { display: inline-block; flex: none; width: .66em; height: .8em; margin: 0 .07em .03em; }
.portrait { display: block; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; background: var(--ink); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.motion .portrait { opacity: 0; transition: opacity .7s .35s; }
.ready .portrait { opacity: 1; }

.hero-foot { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.lede { font-size: 18px; line-height: 28px; font-weight: 500; max-width: 25em; }
.hero-act { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.motion .hero-foot { transform: translateY(14px); transition: transform 1s .5s var(--ease); }
.ready .hero-foot { transform: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 10px; background: var(--on-field); color: var(--field); font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; transition: transform .5s var(--ease), scale .3s var(--ease); }
.btn:active { scale: .97; }
.btn span { display: inline-block; transition: transform .5s var(--ease); }
.btn:focus-visible { outline-color: var(--ink); }

/* Statement: words light up in reading order as it scrolls */
.say { background: var(--ink); color: var(--bg); padding: clamp(96px, 13vw, 190px) var(--gut); }
.say p { font-size: clamp(30px, 5vw, 72px); line-height: 1.08; font-weight: 550; font-stretch: 106%; letter-spacing: -.028em; }
.say .wd { transition: opacity .5s var(--ease); }
.motion .say .wd { opacity: .22; }
.motion .say .wd.on { opacity: 1; }

/* Work */
.work { padding: clamp(64px, 8.3vw, 120px) var(--gut) clamp(64px, 9vw, 128px); }
.work-head { margin-bottom: clamp(24px, 1.8vw, 26px); }
.work-head h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1.05; font-weight: 650; font-stretch: 108%; letter-spacing: -.035em; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.item { grid-column: span 12; }
.item a { display: block; }
.win { border-radius: 8px; }
.win-in { border-radius: inherit; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.win-in img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s var(--ease); }
@media (hover: hover) { .item a:hover .win-in img { scale: 1.035; } }
.cap { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; padding-top: 14px; }
.cap h3 { font-size: 20px; line-height: 28px; font-weight: 650; }
.cap span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; grid-row: 1; grid-column: 2; align-self: center; }
.cap p { color: var(--muted); grid-column: 1 / -1; }

@media (min-width: 760px) {
  .item:nth-child(4n+1) { grid-column: 1 / span 7; }
  .item:nth-child(4n+2) { grid-column: 8 / span 5; align-self: end; }
  .item:nth-child(4n+3) { grid-column: 1 / span 5; }
  .item:nth-child(4n+4) { grid-column: 6 / span 7; }
  .item:nth-child(4n+3) .cap, .item:nth-child(4n+2) .cap { min-height: 66px; }
  .item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .item:last-child:nth-child(odd) .win-in { aspect-ratio: 16 / 9; }
}

/* Contact */
.contact { display: grid; gap: 24px; align-items: end; padding: 0 var(--gut) clamp(72px, 11vw, 160px); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) auto; } }
.contact h2 { font-size: clamp(36px, 6.6vw, 96px); line-height: 1; font-weight: 650; font-stretch: 108%; letter-spacing: -.035em; }
.contact-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact .btn { background: var(--ink); color: var(--bg); }
.copy { position: relative; display: inline-grid; min-height: 44px; align-items: center; font-size: 16px; font-weight: 600; overflow: hidden; text-decoration: underline; text-underline-offset: 4px; }
.copy span { grid-area: 1 / 1; transition: transform .5s var(--ease); }
.copy-b { transform: translateY(170%); }
.copy.ok .copy-a { transform: translateY(-170%); }
.copy.ok .copy-b { transform: none; }

/* Footer */
.foot { background: var(--field); color: var(--on-field); padding: clamp(40px, 5vw, 72px) var(--gut) 18px; overflow: hidden; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 500; }
.foot-links a { padding: 12px 0; margin: -12px 0; }
.foot-links span:last-child { margin-left: auto; }
.more { margin-top: clamp(32px, 4vw, 56px); max-width: 38em; font-size: 14px; line-height: 22px; font-weight: 500; }
.more a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.foot-name { display: flex; justify-content: center; font-size: 22vw; line-height: .92; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; margin-top: clamp(24px, 4vw, 56px); }

@media (max-width: 759px) {
  .name { flex-wrap: wrap; justify-content: flex-start; margin: auto 0; }
  .name .w:last-child { flex-basis: 100%; }
  .slot { flex: 1; width: auto; min-width: .5em; max-width: 1.25em; height: .76em; margin: 0 0 .04em .09em; }
  .name.solo .slot { order: -1; flex: none; width: clamp(68px, 21vw, 92px); min-width: 0; max-width: none; height: clamp(84px, 26vw, 114px); margin: 0 0 12px; }
  .name.solo .w { flex-basis: 100%; white-space: normal; }
  .foot-name.wrap { justify-content: flex-start; white-space: normal; }
  .hero-foot { margin-top: 0; }
  .lede { font-size: 16px; line-height: 24px; }
  .links a { padding: 8px 10px; }
  .who { display: none; }
  .foot-links span:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
