:root {
  --ink: #1b2233;
  --ink-2: #3a4257;
  --salt: #f6f3ee;
  --peach: #fbe3c8;
  --blue: #a9c8e8;
  --lav: #b4a7d6;
  --hair: rgba(27, 34, 51, .18);
  --hz: 56%;
  --pad: 6vw;
  --expo: cubic-bezier(.16, 1, .3, 1);
  --quart: cubic-bezier(.25, 1, .5, 1);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --wh: 145vh;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--peach); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; font-weight: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.025em; font-variation-settings: "opsz" 144; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

#world {
  position: fixed; left: 0; top: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  display: block; z-index: 0;
}
.flat #world { display: none; }
main, .foot { position: relative; z-index: 1; }

/* masks */
.m { display: block; overflow: hidden; padding: .06em .12em .16em 0; margin: -.06em -.12em -.16em 0; }
.m > span { display: block; }
.gl .m > span {
  transform: translate3d(0, 112%, 0);
  transition: transform 1.1s var(--expo);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.gl .is-in .m > span, .gl .is-on .m > span { transform: none; }

/* gate */
.gate { display: none; }
.gl .gate { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.gate-top, .gate-bot { position: absolute; left: 0; right: 0; background: var(--peach); transition: transform 1.3s cubic-bezier(.76, 0, .18, 1); }
.gate-top { top: 0; height: var(--hz); }
.gate-bot { top: var(--hz); bottom: 0; }
.gate-mark {
  position: absolute; left: var(--pad); bottom: 1.4vw;
  font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(44px, 7vw, 112px); letter-spacing: -.035em; line-height: 1;
}
.gate-line {
  position: absolute; left: 0; right: 0; top: var(--hz); height: 1px; background: var(--ink);
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  transition: transform .9s var(--quart), opacity .6s linear .2s;
}
.gate.open .gate-top { transform: translate3d(0, -101%, 0); }
.gate.open .gate-bot { transform: translate3d(0, 101%, 0); }
.gate.open .gate-line { opacity: 0; }

/* navigation */
.skip { position: fixed; left: 12px; top: -80px; z-index: 60; background: var(--ink); color: var(--salt); padding: 12px 16px; border-radius: 999px; font-size: 13px; }
.skip:focus { top: 12px; }
.nav {
  position: fixed; z-index: 50; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 28px;
  padding: 20px 32px;
  font-size: 13px;
}
.mark { font-family: var(--serif); font-size: 23px; font-weight: 400; letter-spacing: -.03em; font-variation-settings: "opsz" 40; margin-right: auto; padding: 8px 0; position: relative; z-index: 2; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { padding: 12px 0; position: relative; }
.nav-links a::after, .foot a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .3s var(--quart);
}
.nav-links a:hover::after, .foot a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: var(--salt);
  font-size: 13px; font-weight: 500; letter-spacing: .005em;
  transition: background-color .25s ease, transform .3s var(--quart);
  position: relative; z-index: 2;
}
.pill:hover { background: #2c3650; }
.pill-lg { min-height: 54px; padding: 0 28px; font-size: 15px; }
.nav-menu { display: none; }

.util {
  position: fixed; z-index: 40; left: 32px; bottom: 22px;
  display: flex; gap: 14px; font-size: 12px; letter-spacing: .01em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.util-time { color: var(--ink-2); }
.util { transition: opacity .6s linear; }
.util.off { opacity: 0; }

.rail { position: fixed; z-index: 40; right: 26px; top: 50%; height: 132px; width: 12px; margin-top: -66px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.rail i { display: block; width: 6px; height: 1px; background: var(--ink); opacity: .45; }
.rail b { position: absolute; right: 0; top: 0; width: 12px; height: 2px; margin-top: -1px; background: var(--ink); transform: translate3d(0, 0, 0); }
.flat .rail { display: none; }

/* display type */
.disp, .hero-h {
  font-family: var(--sans); font-weight: 360;
  font-size: clamp(44px, 7.6vw, 128px);
  line-height: .98; letter-spacing: -.05em;
}
.disp em, .hero-h em { font-size: 1.07em; }
.disp-s { font-size: clamp(40px, 5.6vw, 92px); }
.disp-xl { font-size: clamp(46px, 9vw, 152px); }

/* hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; }
.hero-h { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(100% - var(--hz) + 1.1vw); font-size: clamp(46px, 8.3vw, 140px); }
.hero-foot {
  position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--hz) + 6.5vh);
  display: grid; grid-template-columns: minmax(0, 31em) auto 1fr; gap: 0 48px; align-items: start;
}
.hero-line { font-size: 19px; line-height: 1.45; max-width: 31em; }
.hero-note { font-size: 13px; line-height: 1.5; max-width: 24em; justify-self: end; color: var(--ink); padding-top: 4px; }
.hero-cta { padding-top: 2px; }

/* work */
.work-intro { min-height: 100vh; padding: 22vh var(--pad) 0; }
.work-note { margin-top: 28px; font-size: 19px; max-width: 26em; }
.w-meta { font-size: 13px; }
.w-meta b { font-weight: 400; margin-right: 18px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.w-name { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(42px, 5.4vw, 92px); line-height: 1; letter-spacing: -.035em; margin-top: 14px; }
.w-line { font-size: 19px; line-height: 1.4; margin-top: 18px; max-width: 21em; }
.w-go { margin-top: 22px; }
.go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--ink); padding: 0 2px; }
.go svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .3s var(--quart); }
.go:hover svg { transform: translate3d(3px, -3px, 0); }

.gl .work-track { height: calc(8 * var(--wh) + 100vh); }
.gl .work-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.gl .w { position: absolute; inset: 0; pointer-events: none; }
.gl .w.is-on { pointer-events: auto; }
.gl .w-film { display: none; }
.gl .w-text { position: absolute; top: 50%; width: min(31vw, 460px); transform: translate3d(0, -46%, 0); }
.gl .w:nth-child(odd) .w-text { left: var(--pad); }
.gl .w:nth-child(even) .w-text { left: 61vw; }
.gl .w:not(.is-on) .m > span { transition-duration: .7s; transition-delay: 0s; transition-timing-function: cubic-bezier(.5, 0, .75, 0); }

/* make */
.gl .make { height: 330vh; }
.gl .make-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.make-head { padding: 15vh var(--pad) 0; }
.make-hint { margin-top: 20px; font-size: 15px; color: var(--ink); }
.make-hint .touch { display: none; }
@media (hover: none) { .make-hint .fine { display: none; } .make-hint .touch { display: inline; } }
.gl .tags li {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-size: 13px; line-height: 1; padding: 7px 10px 8px; border-radius: 3px;
  background: var(--salt); color: var(--ink);
  opacity: 0; transition: opacity .9s linear;
  will-change: transform; pointer-events: none;
}
.gl .make-stage.is-on .tags li { opacity: 1; }
.gl .make-stage:not(.is-on) .m > span { transition-duration: .7s; transition-delay: 0s; transition-timing-function: cubic-bezier(.5, 0, .75, 0); }

/* prices */
.prices { padding: 26vh 4vw 30vh; }
.sheet { background: var(--salt); border-radius: 10px; max-width: 1240px; margin: 0 auto; padding: 64px 72px 60px; }
.sheet-head { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; padding-bottom: 44px; }
.sheet-note { font-size: 15px; max-width: 24em; justify-self: end; color: var(--ink-2); padding-bottom: 10px; }
.rows li { display: grid; grid-template-columns: 1.15fr 1.5fr auto; gap: 32px; align-items: baseline; padding: 26px 0 27px; border-top: 1px solid var(--hair); }
.rows h3 { font-family: var(--serif); font-weight: 350; font-variation-settings: "opsz" 60; font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -.025em; line-height: 1.1; }
.rows p { font-size: 17px; color: var(--ink-2); }
.rows strong { font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "opsz" 60; font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -.02em; white-space: nowrap; }
.how { border-top: 1px solid var(--ink); padding-top: 26px; display: grid; grid-template-columns: 1.15fr 3.1fr; gap: 32px; }
.how-h { font-size: 15px; font-weight: 500; }
.how ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.how li span { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 26px; line-height: 1; margin-bottom: 14px; }
.how li p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* about */
.about { min-height: 130vh; padding: 16vh var(--pad) 20vh; display: flex; align-items: center; }
.about-in { display: grid; grid-template-columns: 5fr 6fr; gap: 6vw; width: 100%; align-items: start; }
.about-name { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(34px, 3.6vw, 56px); letter-spacing: -.03em; line-height: 1.05; margin-top: 1.2vw; }
.about-role { font-size: 15px; margin-top: 12px; max-width: 30em; }
.about-p { font-size: 19px; line-height: 1.55; max-width: 31em; margin-top: 30px; }
.about-p + .about-p { margin-top: 20px; }

/* español */
.es { min-height: 125vh; padding: 20vh var(--pad); display: flex; align-items: center; }
.es-in { width: 100%; }
.es-line { font-size: 19px; line-height: 1.5; max-width: 25em; margin: 36px 0 0 46vw; }

/* ending */
.end { min-height: 100vh; min-height: 100svh; padding: 22vh var(--pad) 14vh; display: flex; align-items: center; }
.end-in { width: 100%; }
.end-line { font-size: 19px; margin-top: 30px; max-width: 26em; }
.end-mail { margin-top: 5vh; }
.end-mail a {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(30px, 6vw, 104px); letter-spacing: -.035em; line-height: 1.1;
  display: inline-block; border-bottom: 1px solid var(--ink); padding-bottom: .04em;
  transition: opacity .25s ease;
}
.end-mail a:hover { opacity: .72; }

/* footer */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px var(--pad) 70px; font-size: 13px; border-top: 1px solid var(--hair); margin: 0; }
.foot nav { display: flex; gap: 26px; }
.foot a { position: relative; padding: 12px 0; display: inline-block; }

/* flat fallback: no WebGL or reduced motion */
.flat body::before {
  content: ""; position: fixed; inset: 0; z-index: 0;
  background:
    linear-gradient(to bottom,
      #a9c8e8 0%, #c9d3ea 26%, #ecd9de 44%, #fbe3c8 55%, #fff3e2 56%,
      #f9e2cc 57%, #ead9df 68%, #cdd6ea 84%, #b9cfe8 100%);
}
.flat .work-intro { min-height: 0; padding-top: 18vh; padding-bottom: 8vh; }
.flat .work-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 72px 40px; padding: 0 var(--pad) 12vh; }
.flat .w-film { display: block; border-radius: 8px; overflow: hidden; background: var(--salt); border: 6px solid var(--salt); }
.flat .w-film video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.flat .w { position: relative; }
.w-play {
  position: absolute; right: 18px; top: 18px; width: 48px; height: 48px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: var(--salt); color: var(--ink); display: grid; place-items: center; transition: background-color .25s ease;
}
.w-play[hidden] { display: none; }
.w-play:hover { background: #fff; }
.w-play svg { width: 16px; height: 16px; fill: currentColor; }
.w-play .i-pause, .w-play[aria-pressed="true"] .i-play { display: none; }
.w-play[aria-pressed="true"] .i-pause { display: block; }
.flat .w-text { margin-top: 20px; }
.flat .w-name { font-size: clamp(34px, 3.6vw, 56px); margin-top: 8px; }
.flat .w-line { margin-top: 10px; }
.flat .w-go { margin-top: 8px; }
.flat .make { padding: 14vh var(--pad) 6vh; }
.flat .make-head { padding: 0; }
.flat .make-hint { display: none; }
.flat .tags { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.flat .tags li { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 44px); letter-spacing: -.03em; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.flat .prices { padding-top: 10vh; padding-bottom: 12vh; }
.flat .about, .flat .es { min-height: 0; padding-top: 12vh; padding-bottom: 12vh; }

/* narrow laptops and tablets */
@media (max-width: 1100px) and (min-width: 761px) {
  .hero-foot { grid-template-columns: minmax(0, 31em) auto; justify-content: start; }
  .hero-note { grid-column: 1 / -1; justify-self: start; margin-top: 18px; max-width: 30em; }
}
.flat .util { position: absolute; bottom: auto; top: calc(100vh - 40px); top: calc(100svh - 40px); }

/* phone */
@media (max-width: 760px) {
  :root { --pad: 20px; --hz: 58%; --wh: 135vh; }
  body { font-size: 17px; }
  .nav { padding: 12px 16px; gap: 8px; }
  .nav-menu {
    display: block; width: 44px; height: 44px; border: 0; background: none; padding: 0; position: relative; z-index: 2; cursor: pointer; color: var(--ink);
  }
  .nav-menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; top: 18px; transition: transform .3s var(--quart); }
  .nav-menu span + span { top: 25px; }
  .nav.open .nav-menu span { transform: translate3d(0, 3.5px, 0) rotate(45deg); }
  .nav.open .nav-menu span + span { transform: translate3d(0, -3.5px, 0) rotate(-45deg); }
  .nav-links {
    position: fixed; left: 0; right: 0; top: 0; z-index: 1;
    flex-direction: column; gap: 0; padding: 84px 20px 22px; background: var(--salt);
    transform: translate3d(0, -102%, 0); transition: transform .8s var(--expo), visibility 0s .8s; visibility: hidden;
  }
  .nav.open .nav-links { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-links a { font-family: var(--serif); font-weight: 300; font-size: 32px; letter-spacing: -.03em; padding: 12px 0; border-top: 1px solid var(--hair); }
  .nav-links a::after { display: none; }
  .util { left: 20px; bottom: 14px; }
  .rail { right: 6px; height: 96px; margin-top: -48px; width: 8px; }
  .rail i { width: 4px; } .rail b { width: 8px; }

  .hero-h { font-size: 13.4vw; line-height: 1; bottom: calc(100% - var(--hz) + 10px); }
  .hero-foot { display: block; top: calc(var(--hz) + 26px); }
  .hero-line { font-size: 17px; }
  .hero-cta { margin-top: 18px; }
  .hero-note { margin-top: 16px; font-size: 12px; max-width: 26em; justify-self: start; }
  .pill-lg { min-height: 50px; }

  .disp { font-size: 13.4vw; }
  .disp-xl { font-size: 14vw; }
  .work-intro { padding-top: 20vh; }
  .work-note, .w-line, .about-p, .es-line, .end-line { font-size: 17px; }
  .gl .w .w-text, .gl .w:nth-child(odd) .w-text, .gl .w:nth-child(even) .w-text { left: 20px; right: 34px; width: auto; top: 86px; transform: none; }
  .w-name { font-size: 12.4vw; margin-top: 10px; }
  .w-line { margin-top: 12px; }
  .w-go { margin-top: 10px; }
  .make-head { padding-top: 92px; }
  .gl .tags li { font-size: 12px; padding: 6px 8px 7px; }

  .prices { padding: 18vh 12px 22vh; }
  .sheet { padding: 34px 20px 30px; border-radius: 8px; }
  .sheet-head { display: block; padding-bottom: 28px; }
  .sheet-note { margin-top: 16px; padding: 0; }
  .rows li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .rows p { font-size: 16px; }
  .rows strong { margin-top: 6px; }
  .how { display: block; }
  .how ol { grid-template-columns: 1fr; gap: 0; margin-top: 14px; }
  .how li { display: grid; grid-template-columns: 30px 1fr; padding: 14px 0; border-top: 1px solid var(--hair); }
  .how li span { margin: 0; font-size: 22px; }
  .how li p { font-size: 16px; }

  .about { padding: 14vh 20px 16vh; }
  .about-in { display: block; }
  .about-name { margin-top: 34px; }
  .es-line { margin: 26px 0 0 0; }
  .end-mail a { font-size: 10vw; }
  .foot { flex-wrap: wrap; padding: 18px 20px 62px; gap: 4px 20px; }
  .foot nav { order: 3; width: 100%; gap: 28px; }

  .flat .work-stage { grid-template-columns: 1fr; gap: 48px; }
  .flat .tags { grid-template-columns: 1fr 1fr; }
}
