/* Inter Tight (SIL Open Font License), self-hosted. Macs and iPhones use their built-in Helvetica Neue first. */
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url(/fonts/intertight-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url(/fonts/intertight-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url(/fonts/intertight-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url(/fonts/intertight-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url(/fonts/intertight-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url(/fonts/intertight-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --cream: #fdf9f4;
  --sand: #f1ebe2;
  --stone: #e6dfd4;
  --red: #e0261b;
  --black: #0b0b0b;
  --text: #3f3e3c;
  --muted: #8a8780;
  --line: #e2dbcf;
  --font: "Helvetica Neue", Helvetica, "Inter Tight", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.smooth { scroll-behavior: auto; }
section[id] { scroll-margin-top: 20px; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; letter-spacing: -0.012em; line-height: 1.55; color: var(--black); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; margin: 0; color: var(--black); }
h1 { font-size: clamp(3.1rem, 9vw, 8.6rem); }
h2 { font-size: clamp(2.5rem, 6.2vw, 5.6rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0 0 14px; color: var(--text); }
b, strong { font-weight: 600; color: var(--black); }
::selection { background: var(--red); color: #fff; }

.wrap { width: min(1360px, 100% - 56px); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 30; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 22px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--cream); transition: box-shadow .3s, transform .7s var(--ease); }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.hide { transform: translateY(-100%); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; height: 72px; }
.logo { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.05em; text-decoration: none; color: var(--black); }
.logo-mark { display: none; }
.nav { display: flex; gap: 26px; justify-content: center; }
.nav a { font-size: 0.92rem; text-decoration: none; color: var(--text); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: currentColor; transition: right .45s var(--ease); }
.nav a:hover { color: var(--red); }
.nav a:hover::after { right: 0; }

/* Language switch */
.header-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; font-size: .85rem; font-weight: 500; }
.lang a { padding: 4px 7px; border-radius: 999px; text-decoration: none; color: var(--muted); transition: color .3s, background .3s; }
.lang a:hover { color: var(--red); }
.lang a[aria-current] { color: var(--black); background: var(--sand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--black); color: var(--cream); text-decoration: none; font-weight: 500; font-size: 0.95rem; letter-spacing: -0.02em; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--black); transition: background .35s, border-color .35s, color .35s; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-light { background: var(--cream); color: var(--black); border-color: var(--cream); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(253, 249, 244, .45); }
.btn-light:hover, .btn-ghost-light:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-small { padding: 9px 16px; font-size: 0.88rem; }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--black); padding-bottom: 2px; transition: opacity .3s; }
.link:hover { color: var(--red); border-color: var(--red); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero { padding: 64px 0 0; }
.hero h1 { max-width: 12ch; }
.hero-row { display: grid; grid-template-columns: minmax(0, 46ch) auto; justify-content: space-between; align-items: end; gap: 32px; margin-top: 44px; }
.hero-row .message { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; color: var(--black); margin: 0; }
.stage { margin: 72px 0 0; position: relative; background: var(--sand); border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 7.5; transform-origin: 50% 0; }
.stage-inner { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 6%; }
.browser { width: 70%; background: #fff; border-radius: 10px 10px 0 0; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f6f3ee; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: #d8d1c5; }
.browser-bar em { margin-left: 8px; font-style: normal; font-size: .72rem; color: var(--muted); }
.stage .phone { position: absolute; right: 9%; bottom: -18%; width: 17%; border-radius: 24px; overflow: hidden; border: 5px solid #111; box-shadow: 0 30px 60px -25px rgba(0,0,0,.45); background: #fff; }

/* Sections */
.section { padding: 150px 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; margin-bottom: 72px; }
.section-head p { margin: 0; font-size: 1.08rem; max-width: 42ch; }
.section > .wrap > h2 { margin-bottom: 72px; max-width: 14ch; }
/* Small, bold, confident statements */
.note { font-weight: 600; font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.15; letter-spacing: -0.03em; color: var(--black); margin: 0; }
.head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-bottom: 72px; }
.head h2 { max-width: 14ch; }
.head .note { text-align: right; }
.contact .head { margin-bottom: 48px; }
.contact .head h2 { margin-bottom: 0; }
.contact .note { color: var(--cream); }
.facts { list-style: none; padding: 16px 0 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--black); }
.about-foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }

/* Work */
.work { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: center; }
.work + .work { margin-top: 150px; }
.work.flip .work-media { order: 2; }
.work-media { position: relative; background: var(--sand); border-radius: 6px; overflow: hidden; aspect-ratio: 5 / 4; display: grid; place-items: center; }
.work-media.stone { background: var(--stone); }
.work-media .desk { width: 84%; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 50px -30px rgba(0,0,0,.45); transition: transform 1.2s var(--ease); }
.work:hover .work-media .desk, .work:hover .work-media .phones { transform: scale(1.03); }
.phones { display: flex; justify-content: center; align-items: center; gap: 4%; width: 88%; transition: transform 1.2s var(--ease); }
.phone-frame { margin: 0; width: 30%; border-radius: 22px; overflow: hidden; border: 4px solid #111; box-shadow: 0 30px 50px -30px rgba(0,0,0,.5); background: #fff; }
.phone-frame:nth-child(2) { transform: translateY(8%); }
.work-text h3 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 600; letter-spacing: -0.05em; margin-bottom: 16px; }
.work-text .lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--black); max-width: 26ch; margin-bottom: 26px; }
.tags { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.list { list-style: none; padding: 0; margin: 22px 0 28px; }
.list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); }
.list li:last-child { border-bottom: 1px solid var(--line); }

/* FAQ */

.faq { border-top: 1px solid var(--black); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 1.12rem; font-weight: 500; letter-spacing: -0.02em; }
summary::after { content: ""; flex: 0 0 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .45s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
summary::-webkit-details-marker { display: none; }
details p { margin: 0 0 22px; max-width: 62ch; }

/* Contact */
.contact { background: var(--black); color: var(--cream); padding: 150px 0 90px; }
.contact .kicker { color: #8f8a80; }

.contact-row { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.contact-line { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 72px; padding-top: 22px; border-top: 1px solid #2a2a2a; font-size: 0.95rem; color: #bdb8ae; }
.contact-line a { text-decoration: none; color: var(--cream); border-bottom: 1px solid rgba(253, 249, 244, .4); transition: color .3s, border-color .3s; }
.contact-line a:hover { color: var(--red); border-color: var(--red); }

/* Footer */
.site-footer { background: var(--black); color: #bdb8ae; padding: 20px 0 26px; font-size: 0.85rem; }
.site-footer a:hover { color: var(--red); }
.site-footer .big { color: var(--cream); font-weight: 600; font-size: clamp(4rem, 22.5vw, 24rem); line-height: .85; letter-spacing: -0.07em; margin: 0 0 30px -0.04em; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2a2a2a; padding-top: 20px; }
.footer-inner p { margin: 0; color: #bdb8ae; }
.site-footer a { color: #bdb8ae; }


/* ---------- Section layouts: each one different ---------- */
.head-right { grid-template-columns: auto 1fr; }
.head-right > div { text-align: right; }
.head-right .kicker { justify-content: flex-end; }
.head-right h2 { margin-left: auto; }
.head-right .note { text-align: left; }

/* Services: a big index list; on hover a picture follows the mouse */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.svc-row { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 40px; gap: 24px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); cursor: default; }
.svc-row h3 { font-size: clamp(2rem, 5vw, 4.6rem); letter-spacing: -0.05em; line-height: 1; transition: transform .6s var(--ease), color .4s; }
.svc-row p { margin: 0; font-size: 1.1rem; color: var(--text); }
.svc-row .go { justify-self: end; font-size: 1.4rem; transition: transform .5s var(--ease), color .4s; }
.svc-media { display: none; }
.svc-media, .svc-preview { border-radius: 8px; overflow: hidden; }
.svc-media.sand, .svc-preview.sand { background: var(--sand); }
.svc-media.stone, .svc-preview.stone { background: var(--stone); }
.svc-media .desk, .svc-preview .desk { width: 86%; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 36px -22px rgba(0,0,0,.5); }
.svc-media .ph, .svc-preview .ph { width: 46%; margin-top: 16%; border-radius: 18px; overflow: hidden; border: 4px solid #111; box-shadow: 0 20px 36px -22px rgba(0,0,0,.5); background: #fff; }
.svc-preview { position: fixed; left: 0; top: 0; margin: -210px 0 0 -170px; z-index: 15; width: 340px; height: 420px; display: grid; place-items: center; align-content: center; pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.svc-preview.on { opacity: 1; transform: scale(1); }
@media (hover: hover) and (pointer: fine) {
  .svc-row:hover h3 { transform: translateX(18px); color: var(--red); }
  .svc-row:hover .go { transform: translateX(6px); color: var(--red); }
}
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .svc-preview { display: none; }
  .svc-row { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .svc-row .go { display: none; }
  .svc-media { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-top: 16px; }
  .svc-media .ph { width: 38%; margin-top: 24%; }
}

/* Work: centred heading */
.head-center { text-align: center; max-width: 900px; margin: 0 auto 96px; }
.head-center .kicker { justify-content: center; }
.head-center h2 { margin: 0 auto 26px; max-width: 14ch; }

/* Process: heading pinned while the steps scroll past */
.process-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.process-head { position: sticky; top: 110px; }
.process-head h2 { margin-bottom: 28px; max-width: 10ch; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: end; padding: 40px 0; border-top: 1px solid var(--black); }
.timeline li:last-child { border-bottom: 1px solid var(--black); }
.timeline h3 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); letter-spacing: -0.055em; }
.timeline p { margin: 0; font-size: 1.05rem; }

/* About: everything centred on sand */
.about { background: var(--sand); text-align: center; }
.about .kicker { justify-content: center; }
.about .quote { font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; color: var(--black); margin: 0 auto 44px; max-width: 18ch; }
.about .sign { color: var(--muted); margin: 0; }
.about-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* FAQ: mirrored, questions left and heading right, a giant grey KKK in the background */
.faq-section { position: relative; overflow: hidden; }
.bg-word { position: absolute; right: -0.04em; bottom: -0.2em; z-index: 0; font-size: clamp(12rem, 34vw, 34rem); font-weight: 600; letter-spacing: -0.08em; line-height: 1; color: rgba(11, 11, 11, .05); pointer-events: none; user-select: none; }
.faq-section .wrap { position: relative; z-index: 1; }
.faq-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: start; }
.faq-head { text-align: right; position: sticky; top: 110px; }
.faq-head .kicker { justify-content: flex-end; }

/* Contact: centred and huge */
.contact { text-align: center; }
.contact .kicker { justify-content: center; }
.contact h2 { color: var(--cream); font-size: clamp(3rem, 10vw, 9.6rem); max-width: 11ch; margin: 0 auto 30px; }
.contact .note { color: var(--cream); margin-bottom: 36px; }
.contact .cta-row { justify-content: center; }
.contact-line { justify-content: center; }

/* Legal and 404 pages */
.legal { padding: 72px 0 112px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 3rem; margin-bottom: 20px; }
.legal h2 { font-size: 1.5rem; letter-spacing: -0.03em; margin-top: 40px; margin-bottom: 12px; }
body:not(.home) .header-inner { grid-template-columns: 1fr; }
body:not(.home) .site-footer { padding-top: 26px; }

/* ---------------- Motion ---------------- */
/* Liquid text (see main.js). Hidden until the script has set it up, so it never flashes sharp first. */
.js [data-goo]:not(.ready) { visibility: hidden; }
/* Soft fade for supporting text */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }


@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .header-cta { justify-self: end; }
  .header-right { gap: 10px; }
  .hero-row, .section-head, .faq-grid, .contact-row, .head, .process-grid { grid-template-columns: 1fr; }
  .head-right > div, .faq-head { text-align: left; }
  .head-right h2 { margin-left: 0; }
  .head-right .kicker, .faq-head .kicker { justify-content: flex-start; }
  .head-right .note { order: 2; }
  .process-head, .faq-head { position: static; }
  .faq-head { order: -1; }
  .faq-grid { gap: 36px; }
  .process-grid { gap: 40px; }
  .head { gap: 22px; }
  .head .note { text-align: left; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .work, .work.flip { grid-template-columns: 1fr; gap: 36px; }
  .work.flip .work-media { order: 0; }
  .stage { aspect-ratio: 4 / 3; }
  .browser { width: 86%; }
  .stage .phone { width: 24%; right: 5%; }
}
@media (max-width: 620px) {
  .wrap { width: min(1360px, 100% - 32px); }
  .section { padding: 100px 0; }
  .hero { padding-top: 40px; }
  h1 { font-size: 11.4vw; }
  .stage { aspect-ratio: 1 / 1; margin-top: 48px; }
  .stage .phone { width: 30%; border-width: 3px; border-radius: 16px; bottom: -8%; }
  .phone-frame { border-width: 3px; border-radius: 14px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .contact { padding: 100px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  [data-goo] { filter: none !important; }
  .site-header.hide { transform: none; }
}
