:root {
  --paper: #f3f3ee;
  --ink: #111110;
  --ink-2: #34332f;
  --ink-3: #6b6964;
  --cy: #265ba7;              /* cyanotype, from the owner's reference print */
  --cy-ink: #f3f6fa;
  --space: #04060b;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --type: "Courier Prime", "Courier New", ui-monospace, monospace;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-bg: var(--paper);
  --nav-ink: var(--ink);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.defs { position: absolute; width: 0; height: 0; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }

/* ---------- nav: solid, coloured by the world beneath it ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  font-size: 14px;
  background: var(--nav-bg); color: var(--nav-ink);
  transition: background-color .35s ease, color .35s ease;
}
.nav__mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.nav__mark svg { fill: currentColor; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { opacity: .72; }
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__lang { opacity: .72; font-family: system-ui, "Geeza Pro", "Noto Naskh Arabic", sans-serif; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  font: 500 15px/1 var(--sans);
  border-radius: 3px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn--small { height: 34px; padding: 0 14px; font-size: 14px; background: var(--nav-ink); color: var(--nav-bg); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2b2a27; }
.btn--line { border: 1px solid rgba(17,17,16,.55); }
.btn--line:hover { border-color: var(--ink); }
.btn--light { background: #eef2f8; color: #07090f; }

.model { font-family: var(--mono); font-size: .9em; letter-spacing: 0; }
h2 .model { font-size: .82em; font-weight: 400; letter-spacing: -.035em; }
.plan-tag { margin: 0 0 18px; font-family: var(--type); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.plan-tag .model { font-family: var(--type); letter-spacing: .16em; }

/* ---------- stage: normal page without JS; an ascent with it ---------- */
.stage { position: relative; z-index: 1; }
.scene { position: relative; }
.spacer { display: none; }
html.ascend .stage { position: fixed; inset: 0; overflow: hidden; }
html.ascend .scene { position: absolute; top: 0; left: 0; right: 0; will-change: transform; }
html.ascend .spacer { display: block; }

/* readable grounds when WebGL is unavailable */
.s-light { background: var(--paper); }
.s-nature, .s-convo { background: var(--cy); }
.s-sky { background: linear-gradient(#265ba7, #9dbfe0 60%, #d6e3ef); }
.s-build, .s-plans { background: var(--space); }
html.gl-on .scene { background: transparent; }
html:not(.ascend) .scene { min-height: 100vh; padding: 96px 0 72px; }
html:not(.ascend) .s-light { padding: 0; }

/* ---------- LIGHT: a printed sheet ---------- */
.lt {
  position: relative;
  min-height: 100vh;
  padding: 92px var(--gutter) 44px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto auto auto auto;
  column-gap: 24px;
}
/* the way on is up */
.lt__up {
  position: absolute; top: 84px; left: 50%; transform: translateX(-50%);
  margin: 0; display: none; align-items: center; gap: .7em;
  font-family: var(--type); font-weight: 700; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  pointer-events: none;
}
html.ascend .lt__up { display: flex; }
.lt__arrow { display: block; overflow: visible; animation: rise 1.8s ease-in-out infinite; }
.lt__arrow path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; }
@keyframes rise { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-4px); } }
.lt__up.is-nudge { animation: nudge .42s ease-in-out 2; color: var(--ink); }
@keyframes nudge { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
html.still .lt__arrow { animation: none; }
.crop { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.crop::before, .crop::after { content: ""; position: absolute; background: rgba(17,17,16,.55); }
.crop::before { width: 18px; height: 1px; }
.crop::after { width: 1px; height: 18px; }
.crop--tl { top: 80px; left: calc(var(--gutter) - 26px); }
.crop--tl::before { top: 8px; left: -10px; } .crop--tl::after { left: 8px; top: -10px; }
.crop--tr { top: 80px; right: calc(var(--gutter) - 26px); }
.crop--tr::before { top: 8px; right: -10px; } .crop--tr::after { right: 8px; top: -10px; }
.crop--bl { bottom: 18px; left: calc(var(--gutter) - 26px); }
.crop--bl::before { bottom: 8px; left: -10px; } .crop--bl::after { left: 8px; bottom: -10px; }
.crop--br { bottom: 18px; right: calc(var(--gutter) - 26px); }
.crop--br::before { bottom: 8px; right: -10px; } .crop--br::after { right: 8px; bottom: -10px; }

.lt__typed {
  grid-column: 1 / span 6; grid-row: 1;
  margin-top: 44px;
  font-family: var(--type); font-size: 18px; line-height: 1.75;
  color: var(--ink);
  filter: url(#ink);
}
.tw { margin: 0; min-height: 1.75em; }
.tw.is-past { color: var(--ink-3); }
.tw .ch { display: inline-block; white-space: pre; }
.tw .head { display: inline-block; width: .6em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: currentColor; opacity: .8; animation: head 1s steps(1) infinite; }
@keyframes head { 50% { opacity: 0; } }

.lt__mark {
  grid-column: 1 / span 8; grid-row: 3;
  margin: 0 0 4px -.045em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(96px, 12.8vw, 200px);
  line-height: .88; letter-spacing: -.018em;
  filter: url(#ink-display);
}
.lt__lede {
  grid-column: 1 / span 6; grid-row: 4;
  margin: 0 0 30px;
  font-family: var(--serif); font-size: clamp(24px, 2.25vw, 33px); line-height: 1.2;
  text-wrap: balance;
}
.lt__answer { grid-column: 8 / span 4; grid-row: 3 / span 2; align-self: end; margin-bottom: 34px; max-width: 26em; }
.lt__who { margin: 0 0 10px; font-family: var(--type); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.lt__who .model { font-family: var(--type); letter-spacing: .16em; color: var(--ink-3); margin-left: 6px; }
.lt__reply { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.36; color: var(--ink); }
.lt__reply .w { opacity: 0; transition: opacity .5s ease; }
.lt__reply.is-on .w { opacity: 1; }
.lt__actions { grid-column: 1 / span 7; grid-row: 5; display: flex; gap: 12px; margin-bottom: 26px; }
.lt__caps {
  grid-column: 1 / span 12; grid-row: 6; margin: 0;
  font-family: var(--type); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); filter: url(#ink);
}
.lt__caps span { margin: 0 .5em; }

/* ---------- NATURE: cyanotype ---------- */
.nat, .convo, .sky { color: var(--cy-ink); }
.nat {
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 12fr) minmax(0, 9fr); column-gap: clamp(32px, 5vw, 72px); align-items: center;
}
.nat h2, .sky h2, .bld__intro h2, .pl__intro h2 {
  margin: 0 0 22px;
  font-size: clamp(46px, 6vw, 94px); font-weight: 500; line-height: .95; letter-spacing: -.042em;
  text-wrap: balance;
}
.nat h2 { font-size: clamp(46px, 4.7vw, 72px); }
.nat__text > p:last-child { margin: 0; max-width: 30em; font-size: 19px; line-height: 1.55; opacity: .82; }

/* film prints on the cyanotype sheet: warm photographs, typewritten margins */
.nat__prints { position: relative; height: clamp(400px, 54vh, 490px); }
.print {
  position: absolute; margin: 0;
  padding: 8px; background: #f4f2eb;
  box-shadow: 0 1px 0 rgba(0,0,0,.18), 0 22px 44px -20px rgba(0,10,40,.75);
}
.print img { display: block; width: 100%; height: auto; }
/* with WebGL the film draws the print (paper and photograph); the DOM keeps its size, alt text and typed parts */
html.gl-on .print.is-film { background: transparent; }
html.gl-on .print.is-film img { opacity: 0; }
/* the camera's own date stamp, burned into the corner of the frame */
.stamp {
  position: absolute; right: 17px; bottom: 15px;
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em;
  color: #ffb27a; text-shadow: 0 0 3px rgba(255,112,40,.95), 0 0 10px rgba(255,86,30,.55);
  filter: blur(.25px); pointer-events: none;
  opacity: calc(.95 * var(--dev, 1));
}
.print:not(.is-film) .stamp { opacity: .95; }   /* the plain photograph is showing: so is its stamp */
/* the question it became: a typed slip, asked of Nova */
.slip {
  position: absolute; z-index: 4; margin: 0;
  display: flex; gap: 8px; align-items: flex-start;
  width: max-content; max-width: 232px;
  padding: 8px 11px 9px;
  background: #fbfaf5 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: #141412; font-family: var(--type); font-size: 12.5px; line-height: 1.38;
  box-shadow: 0 1px 0 rgba(0,0,0,.12), 0 12px 22px -14px rgba(0,10,40,.6);
}
.slip svg { flex: none; width: 11px; height: 11px; margin-top: 2px; fill: currentColor; }
.print--decision .slip { left: 6px; top: calc(100% + 12px); transform: rotate(-2.5deg); }
.print--idea .slip { left: -26px; top: calc(100% - 10px); transform: rotate(1.8deg); }
.print--work .slip { right: -14px; top: calc(100% + 8px); transform: rotate(-1.4deg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.print--decision { width: 40%; left: 0; top: 5%; transform: rotate(-2.2deg); z-index: 2; }
.print--idea { width: 58%; right: 0; top: 0; transform: rotate(1.4deg); z-index: 1; }
.print--work { width: 56%; right: 9%; bottom: 0; transform: rotate(-1deg); z-index: 3; }   /* lands on the corner of the night print */

.convo { max-width: 660px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.msg { margin: 0; font-size: 17px; line-height: 1.55; }
.msg--you {
  align-self: flex-end; max-width: 80%;
  padding: 11px 15px;
  background: #f4f2eb; color: #13171b;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 12px 26px -14px rgba(0,12,40,.6);
  transform: rotate(-.4deg);
}
.msg--you + .msg--you { transform: rotate(.35deg); }
.msg--nova { max-width: 94%; }
.msg--nova p { margin: 0; }
.msg__who { display: flex; align-items: center; gap: 7px; margin-bottom: 6px !important; font-size: 14px; font-weight: 600; }
.msg__who svg { fill: currentColor; }
.msg__who .model { font-weight: 400; opacity: .6; margin-left: 4px; }
.circled { position: relative; white-space: nowrap; padding: 0 .32em; }
.circled__ink { position: absolute; left: -3px; top: -9px; width: calc(100% + 6px); height: calc(100% + 17px); overflow: visible; pointer-events: none; }
.circled__ink path { fill: none; stroke: #fff7dc; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.convo figcaption { margin-top: 6px; font-family: var(--mono); font-size: 12px; opacity: .55; }

/* ---------- SKY ---------- */
.sky { max-width: 880px; padding: 0 var(--gutter); color: var(--scene-ink, var(--cy-ink)); transition: color .4s ease; }
.sky > p:last-child { margin: 0; max-width: 31em; font-size: 19px; line-height: 1.55; opacity: .85; }

/* ---------- SPACE: the work ---------- */
.bld { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); color: #eef2f8; display: grid; gap: 34px; }
.bld .build { justify-self: end; width: min(620px, 100%); }
.bld__intro { text-align: center; }
.bld__land { display: none; }
.bld__intro > p:last-child { margin: 0 auto; max-width: 31em; font-size: 19px; line-height: 1.55; opacity: .72; }
.build {
  margin: 0;
  background: #07090f;
  border: 1px solid rgba(238,242,248,.16);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
.build__bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 16px; border-bottom: 1px solid rgba(238,242,248,.09); font-size: 13px; color: rgba(238,242,248,.7); }
.build__proj { margin-left: auto; padding: 2px 8px; border: 1px solid rgba(238,242,248,.14); border-radius: 3px; font-size: 12px; }
.build__body {
  padding: 22px 24px 24px;
  font-size: 15px; line-height: 1.55;
  background: repeating-linear-gradient(0deg, rgba(238,242,248,.022) 0 1px, transparent 1px 3px);
  text-shadow: 0 0 10px rgba(190,215,255,.18);
}
.build__ask { margin: 0 0 16px auto; width: fit-content; max-width: 90%; padding: 9px 13px; background: rgba(238,242,248,.09); border-radius: 3px; }
.build__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; color: rgba(238,242,248,.76); }
.build__list li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.build__list .n { font-family: var(--mono); font-size: 11px; width: 18px; height: 18px; display: inline-grid; place-items: center; border: 1px solid rgba(255,226,180,.55); color: #ffe2b4; border-radius: 50%; transform: translateY(-1px); }
.build__list .model { font-size: 12.5px; color: #eef2f8; }
.build .add { font-family: var(--mono); font-size: 12.5px; color: #9fe0b8; }
.build .del { font-family: var(--mono); font-size: 12.5px; color: #f2a39a; }
.build .ok { font-family: var(--mono); font-size: 12.5px; color: #eef2f8; }
.build__done { margin: 0; color: #eef2f8; }
.build figcaption { padding: 9px 16px; border-top: 1px solid rgba(238,242,248,.08); font-family: var(--mono); font-size: 12px; color: rgba(238,242,248,.45); }

/* ---------- PLANS: the ladder you climbed ---------- */
.pl { padding: 0 var(--gutter); color: #eef2f8; }
.pl__intro { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; align-items: end; margin-bottom: 40px; }
.pl__intro h2 { grid-column: 1 / span 5; margin: 0; }
.pl__intro p { grid-column: 7 / span 6; margin: 0; font-size: 19px; line-height: 1.5; color: rgba(238,242,248,.72); }
.pl__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; align-items: end; }
.plan__art { height: var(--h); margin-bottom: 18px; outline: 1px solid rgba(238,242,248,.14); outline-offset: -1px; }
.plan:nth-child(1) .plan__art { --h: 20vh; }
.plan:nth-child(2) .plan__art { --h: 26vh; }
.plan:nth-child(3) .plan__art { --h: 32vh; }
.plan:nth-child(4) .plan__art { --h: 38vh; }
.plan:nth-child(5) .plan__art { --h: 44vh; }
.plan h3 { margin: 0 0 4px; font-size: 21px; font-weight: 500; letter-spacing: -.015em; }
.plan__for { margin: 0 0 10px; font-size: 14.5px; color: rgba(238,242,248,.72); min-height: 2.9em; }
.plan__m { margin: 0 0 8px; font-size: 13.5px; color: rgba(238,242,248,.86); }
.plan__state { margin: 0; font-family: var(--type); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(238,242,248,.64); }
.plan__state.is-live { color: #eef2f8; }
.pl__foot { display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.pl__foot p { margin: 0; font-size: 14px; color: rgba(238,242,248,.55); }

/* ---------- phone: its own composition ---------- */
@media (max-width: 760px) {
  .nav { gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; }
  .nav__links { display: none; }
  .nav__lang { font-size: 13px; }

  .lt { padding: 70px 16px 24px; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto auto auto auto; }
  .crop { display: none; }
  .lt__up { top: 72px; font-size: 11.5px; }
  .lt__typed { grid-column: 1; grid-row: 1; margin-top: 30px; font-size: 15px; }
  .tw:nth-child(-n+2) { display: none; }
  .lt__answer { grid-column: 1; grid-row: 2; align-self: start; margin: 8px 0 0; max-width: 19em; }
  .lt__reply { font-size: 18.5px; }
  .lt__mark { grid-column: 1; grid-row: 4; font-size: 88px; margin-bottom: 8px; }
  .lt__lede { grid-column: 1; grid-row: 5; font-size: 23px; margin-bottom: 20px; }
  .lt__actions { grid-column: 1; grid-row: 6; flex-direction: column; margin-bottom: 16px; }
  .lt__actions .btn { width: 100%; height: 50px; justify-content: space-between; }
  .lt__caps { grid-column: 1; grid-row: 7; font-size: 10.5px; letter-spacing: .12em; }

  .nat h2, .sky h2, .bld__intro h2, .pl__intro h2 { font-size: 44px; }
  .nat__text > p:last-child, .sky > p:last-child, .bld__intro > p:last-child { font-size: 17px; }
  /* phone reads left to right, top to bottom: no centred paragraphs */
  .nat, .bld__intro { text-align: left; }
  .nat__text > p:last-child, .bld__intro > p:last-child { margin: 0; }
  .nat { display: block; }
  .nat h2 { font-size: 44px; }
  .nat__prints { height: 318px; margin-top: 26px; }
  .print { padding: 5px; }
  .stamp { right: 11px; bottom: 9px; font-size: 9px; }
  .slip { max-width: 164px; padding: 6px 8px 7px; gap: 6px; font-size: 10.5px; }
  .slip svg { width: 9px; height: 9px; }
  .print--decision .slip { max-width: 138px; left: 2px; }
  .print--decision { width: 42%; top: 0; }
  .print--idea { width: 56%; top: 6px; }
  .print--work { width: 54%; right: 2%; }
  .bld { gap: 14px; }
  .bld__intro h2 { font-size: 40px; margin-bottom: 14px; }
  .bld__land { display: block; height: 150px; margin: 0 calc(-1 * var(--gutter)); }
  .msg { font-size: 15.5px; }
  .build__body { padding: 16px; font-size: 14px; }
  .build__list .model { font-size: 11.5px; }

  .pl__intro { display: block; margin-bottom: 22px; }
  .pl__intro h2 { margin-bottom: 10px; }
  .pl__intro p { font-size: 16px; }
  /* the ladder, read vertically: the highest plan at the top */
  .pl__row { grid-template-columns: 1fr; display: flex; flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .plan { display: grid; grid-template-columns: 72px 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
  .plan__art { grid-row: 1 / span 2; height: 56px !important; margin: 0; }
  .plan h3 { font-size: 17px; margin: 0; align-self: end; }
  .plan__for { display: none; }
  .plan__m { grid-column: 2; margin: 0; font-size: 12.5px; align-self: start; }
  .plan__state { grid-column: 3; grid-row: 1 / span 2; font-size: 10px; }
  .pl__foot { margin-top: 20px; gap: 12px; }
  .pl__foot .btn { width: 100%; }
}

html.still .lt__reply .w { opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .tw .head { animation: none; }
  .lt__reply .w { opacity: 1; transition: none; }
}
