/* Truman Design, truman.design
   Brand: sky #76D3FE, cloud #FFFFFF, eggshell #F2F0E9, ink #000000. Typeface: Tomorrow.
   The page is a climb: hero at the bottom of the sky, four steps, cloud passages between them, a door at the top. */

:root {
  --sky: #76D3FE;
  --cloud: #FFFFFF;
  --eggshell: #F2F0E9;
  --ink: #000000;
  --font: "Tomorrow", system-ui, sans-serif;
  --gutter: clamp(16px, 8.33vw, 120px);
  --measure: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The sky is a WebGL canvas behind everything (sky.js). The page floats over it. */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.no-gl .sky { display: none; }
.page { position: relative; z-index: 1; }
.spacer { display: none; }
/* With the flight on, the page glides: the spacer keeps the document's height, the page is moved by main.js. */
.smooth .page { position: fixed; inset: 0 0 auto 0; will-change: transform; }
.smooth .spacer { display: block; }
.gl .step { opacity: 0; }

/* The name hangs beside the door in the sky; main.js moves it every frame. */
.wordmark {
  position: fixed; left: 0; top: 0; z-index: 2;
  display: flex; flex-direction: column; line-height: 1;
  color: var(--eggshell); font-size: 64px; pointer-events: none;
  will-change: transform, font-size; white-space: nowrap;
}
.wordmark .wm-truman { font-weight: 500; font-size: 1em; letter-spacing: .01em; }
.wordmark .wm-design { font-weight: 500; font-size: .3125em; letter-spacing: .34em; margin-top: .06em; margin-left: .03em; }
.no-gl .wordmark { display: none; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, .door:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.button {
  display: inline-block;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--eggshell);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  transition: transform .25s ease, background-color .25s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline-color: var(--eggshell); }

/* Nav: black on both white and blue sections, fades out over the footer. */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-links { display: flex; align-items: center; gap: 40px; font-weight: 400; }
.nav-links a:not(.button) { position: relative; padding: 4px 0; }
.nav-links a:not(.button)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor;
  transition: right .3s ease;
}
.nav-links a:not(.button):hover::after { right: 0; }
.nav.over-footer { opacity: 0; pointer-events: none; }
.nav.over-footer > * { pointer-events: none; }

/* Climb indicator: the small stair that fills one step per section. */
.climb {
  position: fixed; left: var(--gutter); top: 30px; z-index: 21;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.climb.is-visible { opacity: 1; pointer-events: auto; }
.climb-rail { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .35; }
.climb-step { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: square; opacity: 0; transition: opacity .4s ease; }
.climb-step.is-on { opacity: 1; }

/* Hero: the bottom of the sky. The drawn stair is the fallback when there is no WebGL. */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}
.stair {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  display: block;
}
.gl .stair { display: none; }
.stair-line { fill: none; stroke: var(--eggshell); stroke-width: 9; stroke-linecap: square; stroke-linejoin: miter; }
.stair-door { fill: var(--eggshell); }

.hero-copy {
  position: absolute; left: var(--gutter); top: 19vh;
  max-width: 720px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
}
.hero-copy h1 { font-size: clamp(40px, 4.4vw, 64px); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.hero-copy p { font-size: clamp(17px, 1.5vw, 22px); }

/* Cloud passages between steps: with WebGL the camera flies through a cloud bank here. */
.passage { position: relative; height: 120vh; }
.passage-up { background: linear-gradient(to bottom, var(--sky), var(--cloud)); }
.passage-down { background: linear-gradient(to bottom, var(--cloud), var(--sky)); }
.gl .passage { background: none; }

/* Steps */
.step {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px var(--gutter);
}
.step-white { background: var(--cloud); }
.step-blue { background: var(--sky); }
.gl .step { background: none; }
.step-inner { width: 100%; max-width: var(--measure); margin: 0 auto; }

.label { font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px; }
.step h2 { font-size: clamp(36px, 3.9vw, 56px); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; max-width: 18ch; }
.step h2.display { font-size: clamp(44px, 5vw, 72px); }
.lead { font-size: clamp(19px, 1.7vw, 24px); max-width: 32ch; margin-top: 24px; }

.values {
  list-style: none; padding: 0; margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 16px 48px;
  font-size: clamp(24px, 2.2vw, 32px); font-weight: 500;
}

.services { list-style: none; padding: 0; margin-top: 56px; border-top: 1px solid var(--ink); }
.services li {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px;
  padding: 32px 0; border-bottom: 1px solid var(--ink);
}
.services .n { font-size: 18px; font-weight: 500; padding-top: 10px; }
.services h3 { font-size: clamp(26px, 2.5vw, 36px); font-weight: 300; line-height: 1.15; }
.services p { font-size: clamp(17px, 1.4vw, 20px); max-width: 60ch; margin-top: 10px; }

/* Work: photos stay still while their frames open from the bottom up. */
.rooms {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.room-wide { grid-column: 1 / -1; }
.room-frame {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  background: linear-gradient(to bottom, var(--sky), #B9E5FD);
  display: flex; align-items: flex-end; justify-content: flex-start; padding: 20px;
  font-size: 16px;
}
.room-wide .room-frame { aspect-ratio: 21 / 9; }
.room-frame::after {
  content: ""; position: absolute; inset: 0; background: var(--eggshell);
  transform-origin: top; transform: scaleY(var(--cover, 1));
}
.room figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 14px; transition: transform .3s ease;
}
.room figcaption b { font-weight: 400; font-size: 20px; }
.room figcaption span { font-size: 16px; }
.room:hover figcaption { transform: translateY(-4px); }

/* The door at the top. */
/* The last screen is the door and the footer together: the step takes what the footer leaves. */
.door-step { overflow: hidden; min-height: calc(100vh - var(--footer-h, 160px)); align-items: center; padding-top: 140px; padding-bottom: 80px; }
.door-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px;
}
.door-copy .lead { margin-bottom: 0; }
.door {
  position: relative; display: block;
  height: clamp(300px, 52vh, 440px); aspect-ratio: 6 / 11;
  background: var(--ink); color: var(--eggshell);
  transform: translateY(var(--rise, 0));
}
.door-light {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--eggshell);
  transition: width .35s ease, box-shadow .35s ease;
}
.door:hover .door-light, .door:focus-visible .door-light { width: 3px; box-shadow: 0 0 24px 6px rgba(242, 240, 233, .9); }
.door-text {
  position: absolute; left: 24px; right: 24px; bottom: 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.door-text b { font-weight: 400; font-size: 22px; }
.door-text span { font-size: 15px; opacity: .85; }
/* Footer: no motion. In the sky it is a line of ink at the foot of the last screen, not a black block. */
.footer { background: var(--ink); color: var(--eggshell); padding: 56px var(--gutter); }
.gl .footer { background: none; color: var(--ink); padding: 24px var(--gutter) 36px; }
.gl .lockup { color: var(--ink); }
.footer-inner {
  max-width: var(--measure); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
}
.lockup { display: flex; align-items: center; gap: 12px; color: var(--sky); }
.lockup span { display: flex; flex-direction: column; line-height: 1; }
.lockup b { font-weight: 500; font-size: 28px; }
.lockup small { font-size: 10px; font-weight: 500; letter-spacing: .34em; margin-top: 2px; }
.footer-mail { font-size: 16px; justify-self: center; }
.legal { font-size: 13px; text-align: right; }

/* Before the intro runs, main.js hides what the intro brings in. Without JS everything shows. */
.js .hero-copy, .js .nav-links { opacity: 0; }
.js .stair-door { opacity: 0; }
.js .wordmark span { opacity: 0; }
.js .room-frame { --cover: 1; }
.js .door { --rise: 60px; }
.js .services li { opacity: 0; transform: translateY(40px); }

.intro-done .hero-copy, .intro-done .nav-links,
.intro-done .stair-door, .intro-done .wordmark span { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .hero-copy, .js .nav-links, .js .stair-door, .js .wordmark span { opacity: 1; }
  .js .room-frame { --cover: 0; }
  .js .door { --rise: 0; }
  .js .services li { opacity: 1; transform: none; }
  .passage { height: 60vh; }
  .button, .room figcaption, .door-light, .nav-links a::after { transition: none; }
}

/* Phone: the hero shows the start of the climb, the name sits above the copy. */
@media (max-width: 800px) {
  .nav { padding: 20px 16px; }
  .nav-links { gap: 20px; font-size: 15px; }
  .nav-links .button { padding: 8px 14px; font-size: 15px; }
  .climb { left: 16px; top: 18px; }

  .hero { min-height: 100svh; }
  .stair { height: 42%; }
  .hero-copy h1 .line { display: block; }
  .hero-copy { top: 110px; left: 16px; right: 16px; max-width: none; align-items: center; text-align: center; gap: 16px; }

  .passage { height: 80vh; }
  .step { padding: 96px 16px; }
  .services li { grid-template-columns: 40px 1fr; gap: 12px; padding: 24px 0; }
  .rooms { grid-template-columns: 1fr; gap: 28px; }
  .room-wide .room-frame { aspect-ratio: 3 / 2; }

  .door-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 40px; }
  .door-copy .lead { margin-inline: auto; }
  .door { height: clamp(240px, 42vh, 320px); }
  .door-step { padding-top: 110px; padding-bottom: 60px; }
  .door-text { left: 14px; right: 14px; bottom: 18px; white-space: nowrap; }
  .door-text b { font-size: 18px; }
  .door-text span { font-size: 13px; }

  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .legal { text-align: center; }
}
