/* Layout concept: the page opens on one giant turning circle. Real objects from the
   client sites ride its rim, and scrolling turns the wheel to each project. */
:root {
  --paper: #f6f4ee;
  --ink: #0b0b0b;
  --marigold: #f5ae2e;
  --white: #fff;
  --ash: #77756f;
  --line: #d9d6cc;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --g: clamp(16px, 2.6vw, 40px);
  --gl: max(var(--g), env(safe-area-inset-left, 0px));
  --gr: max(var(--g), env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--paper); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.4 var(--display);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, h1, h2, h3, p, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
section[id], main[id] { scroll-margin-top: 0; }

/* Header */
.top {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gr) 0 var(--gl);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand, .nav, .cta { height: 46px; border-radius: 23px; display: flex; align-items: center; }
.brand { padding-inline: 16px; background: var(--paper); box-shadow: 0 0 0 1px rgb(11 11 11 / .08); }
.brand svg { width: 27px; height: 26px; }
.nav { gap: 4px; padding: 4px; background: var(--paper); box-shadow: 0 0 0 1px rgb(11 11 11 / .08); font-size: 14px; }
.nav a { padding: 9px 16px; border-radius: 19px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--ink); color: var(--paper); }
.cta { gap: 9px; padding-inline: 18px; background: var(--ink); color: var(--paper); font-size: 14px; }
.cta i { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); }

h1, .piece-name, .row-body h3, .sites-title, .about-copy h2, .contact h2, .foot-name { word-spacing: .09em; }
.piece-text h3, .offers h3 { word-spacing: .06em; }
.live > img { visibility: hidden; }

/* Static reel: used without JavaScript and with reduced motion */
.stage { position: relative; }
.sun { display: none; }
.reel { display: grid; gap: 48px; padding: 48px var(--gr) 48px var(--gl); }
.piece { display: grid; gap: 16px; }
.piece-name { font-size: clamp(56px, 12vw, 180px); font-weight: 800; line-height: .9; letter-spacing: -.040em; }
.piece-object { display: block; width: min(100%, 560px); justify-self: center; }
.piece-object canvas { display: none; }
.piece-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 24px; background: var(--ink); color: var(--paper); max-width: 520px; }
.piece-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 0; border-radius: 14px; }
.piece-text { display: grid; align-content: center; gap: 6px; min-width: 0; }
.piece-text h3 { display: flex; justify-content: space-between; gap: 10px; font-size: 18px; font-weight: 750; line-height: 1.05; letter-spacing: -.02em; }
.piece-text p { font-size: 13px; font-weight: 400; line-height: 1.28; color: #d9d6cc; }
.link { position: relative; justify-self: start; margin-top: 3px; border-bottom: 1px solid var(--marigold); color: var(--marigold); font-size: 13px; overflow-wrap: anywhere; }
.link::after { content: ""; position: absolute; inset: -13px -6px; }

/* Pinned reel */
.enhanced .gallery { height: 740svh; }
.enhanced .stage {
  /* On the opening screen the circle rises just enough to clear the intro text. */
  --size: max(92vw, 122svh);
  --clear: 290px;
  --room: 200px; /* kept free for the project card */
  --lift: max(0px, calc(57svh - (100svh - var(--clear) - var(--size) * .082)));
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}
.enhanced .reel, .enhanced .piece { display: block; padding: 0; position: static; }
.enhanced .sun {
  display: block;
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 57svh;
  width: var(--size);
  max-width: none;
  height: auto;
  margin-left: calc(var(--size) / -2);
  overflow: visible;
  transform: translateY(calc(var(--lift) * var(--intro, 1) * -1));
}
.sun circle { fill: var(--sun, var(--ink)); }
.sun text { font: 800 66px var(--display); letter-spacing: 0; }
.enhanced .piece-name {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 37svh;
  font-size: min(var(--ns), 60svh);
  color: var(--name, var(--brand));
  white-space: nowrap;
  line-height: .8;
  letter-spacing: -.050em;
  will-change: transform;
}
.enhanced .piece-intro { --name-top: calc(27svh - var(--lift) * .2); --name-size: min(var(--ns), 31svh); }
.enhanced .piece-intro .piece-name { top: var(--name-top); font-size: var(--name-size); }
.intro-tag { font-size: clamp(18px, 2vw, 32px); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
.enhanced .intro-tag {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: calc(var(--name-top) + var(--name-size) * .4 + clamp(8px, 1.7svh, 20px));
  color: var(--ink);
  white-space: nowrap;
  transform: translateX(-50%);
  will-change: transform;
}
.enhanced .piece-object {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc((70px + 100svh - var(--room)) / 2);
  width: min(62vw, calc(var(--oh) * var(--ar) * 1svh), calc((100svh - 70px - var(--room)) * var(--ar)));
  aspect-ratio: var(--ar);
  will-change: transform;
}
.enhanced .piece-object img, .enhanced .piece-object canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.enhanced .piece-card {
  position: absolute;
  z-index: 4;
  left: var(--gl);
  right: var(--gr);
  bottom: calc(var(--g) + env(safe-area-inset-bottom, 0px));
  width: min(450px, calc(100vw - var(--gl) - var(--gr)));
  margin-inline: auto;
  opacity: 0;
  visibility: hidden;
}
.intro-copy { display: grid; gap: 14px; justify-items: start; max-width: 34em; }
.intro-copy p { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.25; text-wrap: balance; }
.intro-copy strong { display: block; font-weight: 800; }
.intro-link { display: inline-flex; gap: 9px; padding: 13px 22px; border-radius: 26px; background: var(--marigold); color: var(--ink); font-weight: 700; transition: transform .18s; }
.intro-link:hover { transform: translateY(-3px); }
.intro-link b { font-weight: 600; }
.enhanced .intro-copy {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(clamp(22px, 5svh, 54px) + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100vw - var(--gl) - var(--gr)));
  margin-left: calc(min(560px, calc(100vw - var(--gl) - var(--gr))) / -2);
  justify-items: center;
  text-align: center;
  color: var(--paper);
}

/* All sites */
.sites-title { padding-bottom: clamp(20px, 3vw, 44px); font-size: 13.6vw; font-weight: 800; line-height: .84; letter-spacing: -.047em; margin-left: -.04em; }
.sites { padding: clamp(84px, 8vw, 120px) var(--gr) clamp(56px, 7vw, 110px) var(--gl); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  padding-block: clamp(16px, 1.8vw, 26px);
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: clamp(18px, 2vw, 30px); background: var(--line); }
.row-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.row-shot img + img { opacity: 0; transform: scale(1.05); }
.row:hover .row-shot img + img { opacity: 1; transform: none; }
.row-body { display: grid; gap: 10px; min-width: 0; }
.row-body h3 { font-size: clamp(44px, 7vw, 112px); font-weight: 800; line-height: .9; letter-spacing: -.040em; }
.row-body p { max-width: 34em; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.3; }
.pill { padding: 12px 20px; border: 1.5px solid var(--ink); border-radius: 22px; white-space: nowrap; font-size: 14px; transition: background .18s, color .18s; }
.pill:hover { background: var(--ink); color: var(--paper); }

/* Client quotes */
.proof { padding: 0 var(--gr) clamp(64px, 8vw, 120px) var(--gl); }
.proof-title { padding-bottom: clamp(20px, 3vw, 44px); font-size: 10.4vw; font-weight: 800; line-height: .86; letter-spacing: -.047em; word-spacing: .09em; margin-left: -.04em; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.quote { display: grid; grid-template-rows: 1fr auto; gap: 28px; min-height: 280px; padding: clamp(20px, 2vw, 30px); border-radius: clamp(18px, 2vw, 30px); background: var(--marigold); }
.quote blockquote { margin: 0; font-size: clamp(24px, 2.4vw, 36px); font-weight: 750; line-height: 1.06; letter-spacing: -.025em; }
.quote-by { font-size: 15px; font-weight: 650; }

/* About */
.about {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(32px, 4vw, 60px);
  padding: clamp(84px, 9vw, 140px) var(--gr) clamp(48px, 6vw, 90px) var(--gl);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.about-copy { display: grid; justify-items: center; gap: 20px; text-align: center; }
.about-copy h2 { max-width: 9.6em; font-size: clamp(54px, 10.4vw, 168px); font-weight: 800; line-height: .86; letter-spacing: -.045em; text-wrap: balance; }
.about-copy p { max-width: 34em; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.32; font-weight: 400; }
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; border-top: 1px solid #39372f; }
.offers li + li { border-left: 1px solid #39372f; }
.offers a { display: grid; align-content: start; gap: 10px; height: 100%; padding: 22px clamp(14px, 1.6vw, 24px); transition: background .2s, color .2s; }
.offers a:hover { background: var(--marigold); color: var(--ink); }
.offers h3 { font-size: clamp(20px, 1.9vw, 28px); font-weight: 750; line-height: 1; letter-spacing: -.03em; }
.offers p { font-size: 14px; font-weight: 400; line-height: 1.3; }

/* Contact */
.contact {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(56px, 7vw, 110px) var(--gr) clamp(48px, 6vw, 90px) var(--gl);
  background: var(--marigold);
}
.contact h2 { font-size: 15.2vw; font-weight: 800; line-height: .82; letter-spacing: -.050em; margin-left: -.04em; }
.brief, .sent { width: min(100%, 860px); justify-self: end; }
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.brief fieldset { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.brief legend { padding: 0 0 10px; font-weight: 600; }
.brief fieldset label { cursor: pointer; }
.brief fieldset input { position: absolute; opacity: 0; }
.brief fieldset span { display: block; padding: 11px 17px; border: 1.5px solid var(--ink); border-radius: 22px; font-size: 14px; transition: background .15s, color .15s; }
.brief fieldset input:checked + span { background: var(--ink); color: var(--paper); }
.brief fieldset input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-wide, .form-error { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; outline: 0; background: transparent; font-size: 19px; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-width: 4px; padding-bottom: 8px; }
.form-error { font-weight: 700; }
.send { position: relative; justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border: 0; border-radius: 30px; background: var(--ink); color: var(--paper); font-weight: 650; transition: transform .18s, width .35s cubic-bezier(.16, 1, .3, 1); }
.send:hover { transform: translateY(-3px); }
.send:disabled { cursor: wait; transform: none; }
.sent { display: grid; gap: 12px; outline: 0; }
.sent h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 800; letter-spacing: -.025em; }

/* Footer */
.foot { overflow: hidden; padding: 26px var(--gr) 0 var(--gl); background: var(--ink); color: var(--paper); }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--marigold); }
.foot-name { margin: 16px 0 -2.4vw -.04em; font-size: 16.7vw; font-weight: 800; line-height: .72; letter-spacing: -.050em; white-space: nowrap; }

/* Motion */
.enhanced .top { animation: fade-in .7s ease-out .55s backwards; }
.enhanced .sun { animation: sun-in 1.25s cubic-bezier(.16, 1, .3, 1) .05s backwards; }
.enhanced .piece-intro .piece-name { animation: name-in 1.05s cubic-bezier(.16, 1, .3, 1) .12s backwards; }
.enhanced .piece-object { animation: land .95s cubic-bezier(.2, 1.2, .35, 1) calc(.38s + var(--land, 0) * .09s) backwards; }
.enhanced .piece:nth-child(2) { --land: 1; }
.enhanced .piece:nth-child(3) { --land: 3; }
.enhanced .piece:nth-child(5) { --land: 2; }
.enhanced .intro-tag { animation: rise .7s cubic-bezier(.16, 1, .3, 1) .62s backwards; }
.enhanced .intro-copy { animation: rise .7s cubic-bezier(.16, 1, .3, 1) .8s backwards; }
.wipe { background: var(--from); }

@keyframes fade-in { from { opacity: 0; } }
@keyframes sun-in { from { translate: 0 58svh; } }
@keyframes name-in {
  from { translate: 0 38%; clip-path: inset(0 -5% 100% -5%); }
  to { clip-path: inset(-20% -5% -20% -5%); }
}
@keyframes land { from { opacity: 0; translate: 0 -36px; scale: .82; } }
@keyframes rise { from { opacity: 0; translate: 0 20px; } }
@keyframes spin { to { rotate: 360deg; } }

.reveals .sites-title { clip-path: inset(-20% -2% -20% -2%); transition: translate .95s cubic-bezier(.16, 1, .3, 1), clip-path .95s cubic-bezier(.16, 1, .3, 1); }
.reveals .sites-title:not(.in) { translate: 0 30%; clip-path: inset(0 -2% 100% -2%); }
.reveals .row-shot { clip-path: inset(0); transition: clip-path 1s cubic-bezier(.16, 1, .3, 1); }
.reveals .row:not(.in) .row-shot { clip-path: inset(100% 0 0 0); }
.reveals .row-shot img { transition: opacity .35s, transform .6s cubic-bezier(.2, .8, .2, 1), scale 1.2s cubic-bezier(.16, 1, .3, 1); }
.reveals .row:not(.in) .row-shot img:first-child { scale: 1.14; }
.reveals .row-body { transition: opacity .75s ease-out .12s, translate .85s cubic-bezier(.16, 1, .3, 1) .12s; }
.reveals .row .pill { transition: background .18s, color .18s, opacity .75s ease-out .22s, translate .85s cubic-bezier(.16, 1, .3, 1) .22s; }
.reveals .row:not(.in) .row-body, .reveals .row:not(.in) .pill { opacity: 0; translate: 0 34px; }
.reveals .quote { transition: opacity .45s ease-out var(--delay, 0s), translate .9s cubic-bezier(.16, 1, .3, 1) var(--delay, 0s); }
.reveals .quote:not(.in) { opacity: 0; translate: min(18vw, 220px) 0; }
.reveals .foot-name .letter { display: inline-block; transition: translate .9s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 38ms); }
.reveals .foot-name:not(.in) .letter { translate: 0 165%; }

.send-label { white-space: nowrap; }
.send-check { position: absolute; inset: 0; width: 24px; height: 24px; margin: auto; fill: none; stroke: var(--marigold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.send-check path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .4s ease-out .22s; }
.send.is-sending::after { content: ""; width: 14px; height: 14px; border: 2px solid var(--marigold); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.send.is-sent { padding: 0; }
.send.is-sent .send-label { display: none; }
.send.is-sent .send-check { visibility: visible; }
.send.is-sent .send-check path { stroke-dashoffset: 0; }
.brief.is-leaving { opacity: 0; translate: 0 -14px; transition: opacity .26s, translate .26s; }
.enhanced .sent { animation: rise .65s cubic-bezier(.16, 1, .3, 1) backwards; }

@media (max-width: 1040px) {
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote { min-height: 0; }
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offers li:nth-child(3) { border-left: 0; }
  .offers li:nth-child(n+3) { border-top: 1px solid #39372f; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .brand, .cta { height: 44px; }

  .enhanced .gallery { height: 660svh; }
  .enhanced .stage { --lift: 0px; }
  .enhanced .sun { top: 50svh; }
  .enhanced .piece-name { top: 20svh; font-size: calc(var(--ns) * 1.02); }
  .enhanced .piece-intro { --name-top: 17svh; --name-size: var(--ns); }
  .enhanced .piece-object { top: 40svh; width: min(78vw, calc(var(--oh) * .72 * var(--ar) * 1svh)); }
  .enhanced .piece-card { left: var(--gl); right: var(--gr); width: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); grid-template-columns: 84px minmax(0, 1fr); }

  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row-shot, .row-body { grid-column: 1 / -1; }
  .sites-title { font-size: 19vw; }
  .proof-title { font-size: 15vw; }
  .row-body h3 { font-size: 17vw; }
  .pill { grid-column: 1; justify-self: start; }
  .offers { grid-template-columns: minmax(0, 1fr); }
  .offers li + li { border-left: 0; border-top: 1px solid #39372f; }
  .contact { padding-top: 84px; }
  .contact h2 { font-size: 20.6vw; }
  .brief { grid-template-columns: minmax(0, 1fr); }
}

/* Short laptop windows: a smaller name leaves room for the line under it. */
@media (min-width: 761px) and (max-height: 760px), (min-width: 761px) and (min-aspect-ratio: 5/2) {
  .enhanced .piece-intro { --name-top: calc(76px + 10svh); --name-size: min(var(--ns), 25svh); }
  .intro-tag { font-size: 19px; }
}
@media (max-height: 560px), (min-width: 761px) and (max-height: 640px), (min-width: 761px) and (max-height: 720px) and (min-aspect-ratio: 12/5) {
  .enhanced .intro-tag { display: none; }
}

/* Sideways phones and very short windows */
@media (max-height: 560px) {
  .enhanced .stage { --clear: 180px; --room: 122px; --lift: max(0px, calc(57svh - (100svh - var(--clear) - var(--size) * .082))); }
  .enhanced .sun { top: 57svh; }
  .enhanced .piece-name { top: 37svh; font-size: min(var(--ns), 26svh); }
  .enhanced .piece-intro { --name-top: 29svh; --name-size: min(var(--ns), 23svh); }
  .enhanced .piece-object { top: calc((70px + 100svh - var(--room)) / 2); width: min(62vw, calc((100svh - 70px - var(--room)) * var(--ar))); }
  .enhanced .intro-more { display: none; }
  .enhanced .intro-copy p { font-size: 14px; }
  .enhanced .intro-copy { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); grid-auto-flow: column; align-items: center; gap: 10px; justify-content: center; }
  .enhanced .intro-link { padding: 9px 14px; font-size: 14px; }
  .enhanced .piece-card { left: var(--gl); right: var(--gr); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: min(440px, 72vw); grid-template-columns: minmax(0, 1fr); padding: 10px 14px; border-radius: 18px; }
  .enhanced .piece-thumb { display: none; }
}
@media (max-height: 560px) and (max-width: 760px) {
  .enhanced .intro-copy { gap: 8px; }
  .enhanced .intro-copy p { font-size: 13px; }
  .enhanced .intro-link { padding: 8px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
