/* Layout: full-screen name on paper with a tilted ribbon, then About, Work and Contact sliding over it. */
:root {
  --paper: #f2efe9;
  --ink: #12100e;
  --wine: #9c1143;
  --pink: #faa5da;
  --star: #fa7bca;
  --green: #2d5a43;
  --soft: #5f5b54;
  --line: #d6d1c7;
  --display: "Bricolage Grotesque", "Arial Black", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 6vw, 100px);
  --menu-h: 0px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 17.5px/1.6 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-optical-sizing: auto; font-feature-settings: "ss01", "cv11"; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
ul { list-style: none; padding: 0; }
.wrap {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 13px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; display: block; flex: none; }

/* Top bar */
.bar {
  position: fixed; z-index: 30; top: env(safe-area-inset-top, 0px); left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 14px; color: var(--ink); transition: background-color .3s, color .3s;
  padding-left: max(clamp(20px, 2.5vw, 36px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 2.5vw, 36px), env(safe-area-inset-right, 0px));
}
.mark { font: 700 23px/1 var(--display); letter-spacing: -.015em; text-decoration: none; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
.bar.solid { background: var(--green); color: #fff; }
.bar.solid .mark, .bar.open .mark { opacity: 1; transform: none; }
.bar.open { background: transparent; color: var(--paper); }
.burger { width: 46px; height: 36px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; padding: 0; }
.burger span { position: absolute; right: 6px; height: 2px; background: currentColor; transition: transform .3s, width .3s, top .3s; }
.burger span:first-child { top: 13px; width: 30px; }
.burger span:last-child { top: 21px; width: 22px; }
.open .burger span { width: 26px; top: 17px; }
.open .burger span:first-child { transform: rotate(45deg); }
.open .burger span:last-child { transform: rotate(-45deg); }

/* Menu slides down from the top and pushes the page */
.menu .wrap { padding-left: max(clamp(20px, 2.5vw, 36px), env(safe-area-inset-left, 0px)); }
.menu {
  position: fixed; z-index: 20; inset: 0 0 auto; background: var(--wine); color: var(--paper);
  transform: translateY(-100%); visibility: hidden; transition: transform .5s cubic-bezier(.7,0,.2,1), visibility .5s;
  display: flex; flex-direction: column; gap: 22px; padding-block: calc(env(safe-area-inset-top, 0px) + 74px) 32px;
}
.menu.on { transform: none; visibility: visible; }
.menu li a { display: inline-block; font: 700 clamp(36px, 4.6vw, 58px)/1.14 var(--display); letter-spacing: -.02em; text-decoration: none; }
.menu li a:hover { color: var(--pink); }
.small-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.small-links a { font: 500 13px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.small-links a:hover { color: var(--pink); }
#page { transition: transform .5s cubic-bezier(.7,0,.2,1); }
#page.pushed { transform: translateY(var(--menu-open, 340px)); }

/* Hero */
.stage {
  position: sticky; top: 0; z-index: 1; height: 100vh; height: 100svh; min-height: 480px; overflow: clip; isolation: isolate;
  background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.aurora {
  position: absolute; z-index: -1; left: 50%; top: 52%; width: min(86vw, 1000px); aspect-ratio: 1.7; transform: translate(-50%, -50%);
  filter: blur(46px); opacity: .55; animation: drift 9s ease-in-out infinite alternate;
  background: radial-gradient(closest-side at 44% 46%, #e8c8cb, transparent), radial-gradient(closest-side at 70% 60%, #dcd2d4, transparent);
}
@keyframes drift { to { transform: translate(-46%, -53%) scale(1.06); } }
h1 {
  will-change: transform, opacity; font: 800 12.4vw/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: var(--ink);
  padding-bottom: .02em;
}
.sub { position: absolute; top: calc(50% + 7.6vw + 22px); left: 0; right: 0; display: grid; justify-items: center; gap: 26px; }
.role { font: 500 clamp(12px, 1.15vw, 16px)/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .7em; padding-inline: 16px; }
.role span { display: inline-block; }
.socials { display: flex; gap: 28px; color: #4a4640; }
.socials a { display: grid; place-items: center; width: 27px; height: 27px; font-size: 15px; text-decoration: none; }
.socials a:hover { color: var(--wine); }
.ribbon {
  position: absolute; left: -6%; right: -6%; bottom: clamp(26px, 5vh, 52px); transform: rotate(-2.75deg);
  background: var(--ink); color: var(--paper); padding-block: 14px; overflow: hidden;
}
.track { display: flex; width: max-content; animation: slide 52s linear infinite; }
.track ul { display: flex; }
.track li { display: flex; align-items: center; gap: 11px; padding-inline: 13px; font: 600 clamp(16px, 1.75vw, 25px)/1 var(--body); letter-spacing: -.015em; white-space: nowrap; }
.track li .ico { color: var(--wine); font-size: 1.1em; }
.track li::after { content: "\2726"; color: var(--star); font-size: .55em; margin-left: 15px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Intro */
#intro { position: absolute; inset: 0; z-index: 5; background: #05060c; }
#intro canvas, #intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#intro video { opacity: 0; }
#mask { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; }
#skip {
  position: absolute; z-index: 7; right: max(28px, env(safe-area-inset-right, 0px)); bottom: 28px;
  font: 500 12px/1 var(--body); letter-spacing: .2em; color: #fff; padding: 14px 26px; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px);
}
.intro-on h1, .intro-on .sub, .intro-on .ribbon { visibility: hidden; }
.appear .role span { animation: tilt .7s cubic-bezier(.2,.8,.2,1) both; }
.appear .socials { animation: fadeup .6s .35s both; }
.appear .ribbon { animation: ribbon .8s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tilt { from { opacity: 0; transform: translateY(10px) rotate(6deg); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }
@keyframes ribbon { from { transform: translateY(160%) rotate(-2.75deg); } }

/* Sections slide over the hero */
.over { position: relative; z-index: 2; }
.statement { background: var(--paper); padding-block: clamp(90px, 13vh, 150px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(40px, 12vw, 200px); align-items: center; max-width: 1240px; margin-inline: auto; }
.statement .eyebrow { color: var(--wine); margin-bottom: 30px; }
.say { font: 600 clamp(26px, 2.75vw, 39px)/1.26 var(--display); letter-spacing: -.012em; }
.say .c { transition: opacity .18s linear; }
.say .w { display: inline-block; white-space: nowrap; }
.langs { display: flex; gap: 14px; margin-top: 30px; font-size: 30px; line-height: 1; }
.aside { display: grid; justify-items: center; gap: 16px; }
.photo {
  width: min(100%, 274px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--wine); color: var(--pink);
  display: grid; place-items: center; font: 800 clamp(64px, 7vw, 96px)/1 var(--display); letter-spacing: -.04em;
  box-shadow: 0 24px 50px -22px rgba(18,16,14,.55);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place { font: 500 13px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; text-align: center; }


.contact { background: var(--wine); color: var(--paper); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-block: clamp(90px, 13vh, 130px) 34px; }
.contact .eyebrow { color: var(--pink); }
.talk { display: block; font: 800 min(16.5vw, 152px)/1.02 var(--display); letter-spacing: -.035em; color: var(--pink); text-decoration: none; margin-block: 18px 22px; }
.talk:hover { color: #fff; }
.email { font: 400 19px/1.4 var(--body); letter-spacing: .005em; text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact .small-links { margin-top: auto; padding-top: 70px; }

@media (max-width: 820px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .aside { justify-items: start; }
  .photo { width: 190px; font-size: 64px; }
  .place { text-align: left; }
  .sub { top: calc(50% + 7.6vw + 16px); }
  .role { letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track, .aurora { animation: none; }
  .menu, #page { transition: none; }
}

/* Work page */
.on-work { background: var(--paper); }
.on-work .bar { color: var(--ink); }
.on-work .bar .mark { opacity: 1; transform: none; }
.on-work .bar.solid { background: rgba(242,239,233,.82); color: var(--ink); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.on-work .bar.open { color: var(--paper); }
.work-page { padding-block: clamp(130px, 21vh, 210px) clamp(70px, 10vh, 120px); }
.eyebrow.star { color: var(--wine); }
.eyebrow.star::before { content: "\2726"; width: auto; height: auto; background: none; transform: none; font-size: 15px; line-height: 1; }
.work-page h1.work-title { font: 800 clamp(66px, 8vw, 116px)/1 var(--display); letter-spacing: -.035em; color: var(--ink); text-transform: none; white-space: normal; margin-block: 20px 22px; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--soft); max-width: 34em; }
.entries { list-style: none; padding: 0; margin-top: clamp(48px, 7vw, 84px); border-bottom: 1px solid var(--line); }
.entry { border-top: 1px solid var(--line); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.entry.pre { opacity: 0; transform: translateY(32px); }
.entry a { position: relative; display: grid; grid-template-columns: clamp(80px, 11vw, 150px) minmax(0, 1fr) 30px; gap: 0 16px; padding-block: clamp(30px, 3.3vw, 44px); text-decoration: none; color: inherit; isolation: isolate; }
.entry a::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--gutter) * -.35); border-radius: 14px; background: #e9e4da; opacity: 0; transform: scale(.985); transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
.year { font: 400 14px/1 var(--mono); letter-spacing: .08em; color: var(--soft); padding-top: .95em; }
.entry h2 { font: 700 clamp(26px, 2.9vw, 42px)/1.12 var(--display); letter-spacing: -.02em; text-wrap: balance; transition: color .25s, transform .4s cubic-bezier(.2,.8,.2,1); }
.entry p { color: var(--soft); max-width: 62ch; margin-top: 12px; }
.stack { display: block; font: 400 13px/1.5 var(--mono); letter-spacing: .01em; color: var(--wine); margin-top: 14px; }
.go { width: 26px; height: 26px; margin-top: .55em; justify-self: end; fill: none; stroke: #8a857b; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s, transform .4s cubic-bezier(.2,.8,.2,1); }
.entry a:hover::before, .entry a:focus-visible::before { opacity: 1; transform: none; }
.entry a:hover h2, .entry a:focus-visible h2 { color: var(--wine); transform: translateX(6px); }
.entry a:hover .go, .entry a:focus-visible .go { stroke: var(--wine); transform: translate(4px, -4px); }
@media (max-width: 680px) {
  .entry a { grid-template-columns: minmax(0, 1fr) 30px; }
  .year { grid-column: 1 / -1; padding: 0 0 12px; }
  .entry a::before { inset: 0 -10px; }
}
/* Project page */
.case { padding-block: clamp(110px, 16vh, 160px) clamp(50px, 7vw, 90px); }
.back { display: inline-flex; gap: 12px; align-items: center; font: 400 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--soft); transition: color .2s, gap .3s; }
.back:hover { color: var(--wine); gap: 18px; }
.case-year { font: 400 14px/1 var(--mono); letter-spacing: .08em; color: var(--wine); margin-top: clamp(34px, 5vw, 56px); }
.case h1 { font: 800 clamp(42px, 6.6vw, 96px)/1.03 var(--display); letter-spacing: -.032em; text-transform: none; white-space: normal; color: var(--ink); margin-block: 18px 22px; max-width: 15em; text-wrap: balance; }
.code { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 500; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.code .go { width: 16px; height: 16px; margin: 0; stroke: currentColor; }
.code:hover { color: var(--wine); border-color: var(--wine); }
.code:hover .go { transform: translate(3px, -3px); stroke: currentColor; }
.shot { margin: clamp(38px, 5vw, 64px) 0 0; border-radius: clamp(14px, 2vw, 26px); overflow: hidden; background: #0d1220; box-shadow: 0 30px 70px -40px rgba(18,16,14,.6); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.shot.pre { opacity: 0; transform: translateY(40px) scale(.975); }
.shot img { display: block; width: 100%; height: auto; }
.block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(30px, 5vw, 80px); padding-block: clamp(38px, 5vw, 64px); border-top: 1px solid var(--line); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.shot + .block { margin-top: clamp(56px, 7vw, 96px); }
.block.pre { opacity: 0; transform: translateY(28px); }
.block h2 { font: 700 clamp(26px, 2.6vw, 36px)/1.14 var(--display); letter-spacing: -.018em; }
.prose { display: grid; gap: 16px; max-width: 66ch; color: #38352f; font-size: clamp(17.5px, 1.3vw, 19px); }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 38px minmax(0, 1fr); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 400 13px/1.9 var(--mono); color: var(--wine); }
.decisions { gap: 26px; }
.decisions h3 { font: 700 clamp(19px, 1.6vw, 22px)/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); margin-bottom: 6px; }
.case-stack { font: 400 13.5px/1.6 var(--mono); color: var(--wine); }
.next { display: block; text-decoration: none; border-top: 1.5px solid var(--ink); padding-top: 24px; margin-top: clamp(10px, 2vw, 24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.next.pre { opacity: 0; transform: translateY(28px); }
.next-label { display: block; font: 400 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; }
.next-title { display: inline; font: 800 clamp(32px, 5vw, 72px)/1.06 var(--display); letter-spacing: -.028em; transition: color .25s; }
.next .go { display: inline-block; width: .7em; height: .7em; margin: 0 0 0 .12em; stroke: currentColor; vertical-align: baseline; }
.next:hover .next-title { color: var(--wine); }
.next:hover .go { transform: translate(6px, -6px); stroke: currentColor; }
@media (max-width: 760px) {
  .block { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .entry, .entry h2, .go, .entry a::before, .shot, .block, .next { transition: none; }
}

.burger:focus-visible { border-radius: 8px; outline-offset: 0; }
