:root {
  --bg: #F1EFE4;
  --paper: #FAF9F3;
  --ink: #22211E;
  --ink-2: #5E5A52;
  --dark: #22211E;
  --dark-2: #2D2B27;
  --cream: #F3F0E6;
  --accent: #D44A22;      /* brand red, darkened for white-text contrast */
  --accent-2: #E4572E;    /* logo red */
  --gold: #F4B942;
  --line: rgba(34, 33, 30, .14);
  --r: 20px;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 500 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; line-height: 1; }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
section[id], footer[id] { scroll-margin-top: 72px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(16px, 4vw, 56px); padding-right: clamp(16px, 4vw, 56px); }
.section { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(40px, 5vw, 60px); }
.muted { color: var(--ink-2); }
.mono {
  font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2);
}

/* ---------- Brand ---------- */
.wordmark { font: 800 23px/1 "Bricolage Grotesque", var(--sans); letter-spacing: -.03em; }
.wordmark span { font-weight: 500; color: var(--accent-2); margin-left: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 500; font-size: 15px; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--dark); color: var(--cream); }
.btn-dark:hover { background: #000; }
.btn-link { font-weight: 500; font-size: 15px; padding: 13px 4px; }
.btn-link:hover { color: var(--accent); }

/* ---------- Announce + Nav ---------- */
.announce { display: block; text-align: center; background: var(--accent); color: #fff; font-size: 14px; padding: 9px 16px; }
.announce span { display: inline-block; transition: transform .2s; }
.announce:hover span { transform: translateX(4px); }
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(241, 239, 228, .85); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-echo { height: 38px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(60px, 8vw, 100px); }
.flow { position: relative; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.05fr; gap: 28px; align-items: start; margin-bottom: clamp(48px, 7vw, 88px); }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: var(--accent-2); opacity: .55; }
.flow-col { position: relative; display: flex; flex-direction: column; gap: 18px; }
.chip {
  position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px;
}
.chip::before { content: ""; width: 6px; height: 6px; background: var(--accent-2); border-radius: 1px; }
.bubble { background: var(--paper); border-radius: 14px; padding: 16px 16px 44px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.35); position: relative; max-width: 260px; }
.bubble p { font-size: 15px; line-height: 1.4; }
.send { position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; }
.steps-mono { display: flex; flex-direction: column; gap: 8px; }
.steps-mono li { font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: rgba(250,249,243,.6); }
.steps-mono li::before { content: "↳ "; color: var(--accent-2); }
.steps-mono.faint li { border-color: transparent; background: none; color: var(--ink-2); opacity: .75; }
.photo-card { background: var(--dark); color: var(--cream); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); animation: rise 6s ease-in-out infinite; }
.photo-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo-card div { padding: 12px 14px 14px; display: grid; gap: 2px; }
.photo-card strong { font-weight: 500; font-size: 15px; }
.photo-card span { font-size: 13px; opacity: .65; }
@keyframes rise { 50% { transform: translateY(-8px); } }

.hero h1 { font-size: clamp(48px, 7.4vw, 112px); max-width: 15ch; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.lede { font-size: clamp(17px, 1.4vw, 19px); max-width: 46ch; color: var(--ink); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Clients ---------- */
.clients { padding-bottom: clamp(56px, 7vw, 88px); }
.clients p { font-size: 14px; margin-bottom: 22px; }
.clients ul { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; color: #3a3833; }
.clients li { font-size: 30px; letter-spacing: -.02em; white-space: nowrap; }
.c1 { font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.c2 { font-family: Georgia, serif; letter-spacing: .02em !important; }
.c3 { font-weight: 600; letter-spacing: .14em !important; font-size: 22px !important; }
.c4 { font-family: "Bricolage Grotesque", var(--sans); font-weight: 800; }
.c5 { font-family: var(--mono); font-size: 22px !important; text-transform: uppercase; }

/* ---------- Dark sections ---------- */
.dark { background: var(--dark); color: var(--cream); padding: clamp(80px, 10vw, 140px) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.split h2 { max-width: 13ch; }
.split-copy { display: grid; gap: 18px; max-width: 46ch; font-size: 17px; padding-top: 6px; }
.dark .split-copy { color: rgba(243,240,230,.82); }
.two-tone span { display: block; color: #8f8a80; }
.mess { border: 1px solid #3a3833; border-radius: var(--r); padding: 28px; background: #262521; }
.mess figcaption { font-size: 15px; color: #b9b3a8; margin-bottom: 20px; }
.mess figcaption em { font-style: normal; color: var(--accent-2); }
.mess svg { width: 100%; max-width: 860px; height: auto; display: block; margin: 0 auto; }

/* ---------- Stack ---------- */
.panel { background: var(--paper); border-radius: 28px; padding: clamp(28px, 5vw, 64px); box-shadow: 0 0 0 1px var(--line); }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.stack { position: relative; height: 380px; perspective: 1400px; }
.layer {
  position: absolute; left: 50%; width: 300px; height: 190px; margin-left: -150px;
  border-radius: 22px; transform: rotateX(58deg) rotateZ(-38deg); transform-style: preserve-3d;
  display: grid; place-items: center; box-shadow: 0 30px 40px -20px rgba(0,0,0,.35);
  transition: transform .4s;
}
.layer span { font-size: 22px; letter-spacing: -.02em; transform: rotateZ(0); }
.l1 { top: 170px; background: #E7E3D6; color: var(--ink); }
.l2 { top: 95px; background: var(--accent); color: #fff; }
.l3 { top: 20px; background: var(--dark); color: var(--cream); }
.stack:hover .l3 { transform: rotateX(58deg) rotateZ(-38deg) translateZ(30px); }
.stack:hover .l1 { transform: rotateX(58deg) rotateZ(-38deg) translateZ(-30px); }
.stack-list { display: grid; gap: 28px; }
.stack-list li { padding-left: 22px; position: relative; }
.stack-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-2); }
.stack-list p { color: var(--ink-2); margin-top: 6px; }

/* ---------- Product cards ---------- */
.products { display: grid; gap: 20px; }
.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; border-radius: var(--r); padding: clamp(28px, 4.5vw, 56px); }
.product h2 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 18px; }
.product > div:first-child p:not(.mono) { font-size: 17px; max-width: 38ch; margin-bottom: 28px; }
.product > div:first-child .mono { margin-bottom: 22px; }
.dark-card { background: var(--dark); color: var(--cream); }
.accent-card { background: var(--accent); color: #fff; }
.dark-card .mono, .accent-card .mono { color: inherit; opacity: .7; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.lists .mono { margin-bottom: 14px; }
.checks { display: grid; gap: 12px; font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--cream); color: var(--ink); margin-top: 2px; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { display: grid; gap: 12px; }
.work img { border-radius: 16px; aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .3s; }
a.work:hover img { transform: scale(1.02); }
a.work:hover h3 { color: var(--accent); }
.work .mono { margin-top: 6px; }

/* ---------- Center CTA ---------- */
.center-cta { text-align: center; padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.center-cta h2 { margin-bottom: 18px; }
.center-cta p { color: var(--ink-2); margin-bottom: 28px; font-size: 17px; }

/* ---------- Stat ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 32px; align-items: center; }
.events, .actions { display: grid; gap: 14px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.events li { color: #8f8a80; border-bottom: 1px dashed #3a3833; padding-bottom: 12px; }
.actions { justify-items: end; }
.actions li { background: rgba(228,87,46,.16); color: #ffb39b; padding: 6px 9px; border-radius: 5px; border: 1px solid rgba(228,87,46,.4); }
.actions li::before { content: "▪ "; color: var(--accent-2); }
.big { text-align: center; }
.big .num { display: block; font-size: clamp(110px, 16vw, 230px); letter-spacing: -.06em; line-height: .9; color: var(--accent-2); }
.big p { margin-top: 18px; color: rgba(243,240,230,.8); font-size: 17px; }

/* ---------- How ---------- */
.how { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.how li { padding: 28px 24px 8px 0; }
.how li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.how h3 { margin: 14px 0 8px; }
.how p { color: var(--ink-2); font-size: 15px; }

/* ---------- Footer ---------- */
.foot {
  margin-top: clamp(80px, 10vw, 140px); background: var(--accent); color: #fff; overflow: hidden;
  background-image: radial-gradient(rgba(255,255,255,.22) 1.2px, transparent 1.3px); background-size: 28px 28px;
  padding-top: clamp(64px, 8vw, 110px);
}
.foot h2 { max-width: 15ch; margin-bottom: 28px; }
.giant { display: flex; justify-content: center; margin: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); padding: 0 16px; user-select: none; }
.giant img { width: min(78vw, 820px); height: auto; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.3); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-col:nth-child(3) { display: none; }
  .flow::before { display: none; }
  .split, .stack-grid, .product { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .events, .actions { display: none; }
  .how { grid-template-columns: 1fr 1fr; }
  .how li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 700px) {
  .nav nav a:not(.btn) { display: none; }
  .nav .wordmark span { display: none; }
  .brand-echo { height: 32px; }
  .nav .btn { white-space: nowrap; }
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .flow-col:nth-child(2), .flow-col:nth-child(4) { display: none; }
  .flow { margin-bottom: 36px; }
  .announce { font-size: 13px; }
  .bubble { max-width: none; }
  .clients ul { justify-content: flex-start; }
  .clients li { font-size: 24px; }
  .lists, .work-grid, .how { grid-template-columns: 1fr; }
  .how li, .how li + li { padding: 24px 0 8px; border-left: 0; }
  .how li + li { border-top: 1px solid var(--line); }
  .stack { height: 300px; transform: scale(.8); transform-origin: top center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
