/* LiquidWorld — public site styles
   Concept: a press proof. Ink navy on cool proof paper, process colors (CMYK)
   used only as registration — the hero headline prints slightly off-register,
   product tiles carry crop marks. Everything else stays quiet. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f2f5f7;
  --white: #ffffff;
  --ink: #13263d;
  --ink-2: #485b70;
  --rule: #c8d2db;
  --cyan: #00a0dc;
  --magenta: #e4007c;
  --yellow: #ffd400;
  --focus: #0077b6;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-variation-settings: "wdth" 88; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none;
  border-radius: 3px; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: #0a1828; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-invert { background: #fff; color: var(--ink); border-color: #fff; }
.btn-invert:hover { background: var(--yellow); border-color: var(--yellow); }
.btn-small { min-height: 40px; padding: 0 1rem; font-size: .95rem; }
.btn-large { min-height: 56px; padding: 0 2rem; font-size: 1.1rem; }
.text-link { font-weight: 650; }
.text-link-light { color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 1rem; }
.logo { display: inline-block; line-height: 0; border-radius: 4px; }
.logo img { width: 172px; height: auto; }
@media (max-width: 760px) { .header-row { min-height: 84px; } .logo img { width: 140px; } }
.logo-footer img { width: 220px; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 550; font-size: .98rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
    background: none; border: 1.5px solid var(--ink); border-radius: 3px; font: inherit; font-weight: 600; color: var(--ink);
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem var(--gutter) 1.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--rule); }
  .site-nav .btn { margin-top: 1rem; }
}

/* ---------- Hero: off-register headline ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--rule); }
.press {
  position: relative; isolation: isolate;
  font-size: clamp(2.9rem, 8.4vw, 7.4rem);
  line-height: .94;
  font-weight: 820;
  font-variation-settings: "wdth" 72;
  letter-spacing: -0.015em;
  max-width: 13ch;
  color: var(--ink);
}
.press::before, .press::after {
  content: attr(data-text);
  position: absolute; inset: 0; z-index: -1;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.press::before { color: var(--cyan); transform: translate(-0.022em, -0.014em); animation: reg-c 1.1s cubic-bezier(.2,.7,.2,1) both; }
.press::after  { color: var(--magenta); transform: translate(0.02em, 0.016em); animation: reg-m 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes reg-c { from { transform: translate(-0.5em, -0.12em); opacity: 0; } 30% { opacity: 1; } }
@keyframes reg-m { from { transform: translate(0.45em, 0.15em); opacity: 0; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .press::before, .press::after { animation: none; }
  html { scroll-behavior: auto; }
}

.hero-foot { display: grid; grid-template-columns: minmax(0, 36rem) auto; gap: 2rem 4rem; align-items: end; margin-top: clamp(2rem, 4vw, 3.25rem); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 860px) { .hero-foot { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section-tight { padding-top: 2.5rem; }
.section-head { max-width: 38rem; margin-bottom: 3rem; }
.section-head p { color: var(--ink-2); margin-top: .9rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; max-width: none; }

/* ---------- Products: proof sheet with crop marks ---------- */
.proof-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.25rem 2.75rem;
}
@media (max-width: 980px) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .proof-grid { grid-template-columns: 1fr; gap: 3rem; } }

.proof { position: relative; }
.proof::before {
  /* crop marks: short hairlines just outside each corner */
  --m: 14px; --l: 10px; --c: var(--ink-2);
  content: ""; position: absolute; inset: calc(var(--m) * -1); pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) 0 var(--m) / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) var(--m) 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% var(--m) / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) calc(100% - var(--m)) 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 0 calc(100% - var(--m)) / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) var(--m) 100% / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% calc(100% - var(--m)) / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) calc(100% - var(--m)) 100% / 1px var(--l);
  background-repeat: no-repeat;
}
.proof-link { display: flex; flex-direction: column; height: 100%; background: var(--white); text-decoration: none; outline-offset: 6px; }
.proof-plate {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  padding: 1.5rem 2rem; border-bottom: 1px solid var(--rule);
}
.proof-plate img { width: 100%; height: 100%; object-fit: contain; }
.proof-body { display: flex; flex-direction: column; padding: 1.25rem 1.4rem 1.4rem; flex: 1; }
.proof-title { font-size: 1.3rem; font-weight: 780; font-variation-settings: "wdth" 92; }
.proof-tag { font-weight: 600; color: var(--ink); margin-top: .15rem; }
.proof-summary { color: var(--ink-2); font-size: .97rem; margin-top: .6rem; }
.proof-host { margin-top: auto; padding-top: 1rem; font-weight: 650; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.proof-link:hover .proof-host { text-decoration-color: var(--magenta); }

/* ---------- Services ---------- */
.services { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem 5rem; }
.services-grid .section-head { margin: 0; }
.services-grid .section-head .btn { margin-top: 1.5rem; }
.service-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 2.5rem; }
.service-list div { border-top: 3px solid var(--ink); padding-top: 1rem; }
.service-list dt { font-weight: 750; font-size: 1.15rem; }
.service-list dd { margin: .4rem 0 0; color: var(--ink-2); }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .service-list { grid-template-columns: 1fr; } }

/* ---------- Steps (a real sequence) ---------- */
.steps h2 { margin-bottom: 2.75rem; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.step-list li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.step-list li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-size: 2.6rem; font-weight: 850; line-height: 1; font-variation-settings: "wdth" 70;
  color: var(--ink);
  text-shadow: -2px -1px 0 rgba(0,160,220,.7), 2px 1px 0 rgba(228,0,124,.55);
}
.step-list h3 { margin-bottom: .5rem; }
.step-list p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .step-list { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; } }
@media (max-width: 520px) { .step-list { grid-template-columns: 1fr; } }

/* ---------- Client work ---------- */
.work-preview { border-top: 1px solid var(--rule); }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }
.work-card a { display: flex; flex-direction: column; text-decoration: none; }
.work-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--rule); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-title { font-size: 1.2rem; font-weight: 750; margin-top: 1rem; }
.work-card a:hover .work-title { text-decoration: underline; }
.work-meta { color: var(--ink-2); font-size: .95rem; }
.work-tag { margin-top: .35rem; }
.empty { border: 1.5px dashed var(--rule); background: var(--white); padding: 2.5rem; max-width: 42rem; }
.empty p { font-size: 1.1rem; }

/* ---------- Family ---------- */
.family { border-top: 1px solid var(--rule); }
.family-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.family-list a { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink-2); }
.family-list strong { color: var(--ink); font-weight: 750; font-size: 1.1rem; }
.family-list a:hover strong { text-decoration: underline; }
@media (max-width: 600px) { .family-list a { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--ink); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.cta-row h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); font-variation-settings: "wdth" 78; font-weight: 820; max-width: 16ch; }
.cta-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.site-footer { background: #0c1a2b; color: #c9d4df; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 2rem; }
.footer-h { font-size: 1rem; color: #fff; margin-bottom: .6rem; font-variation-settings: "wdth" 100; }
.footer-note { margin-top: .9rem; max-width: 22rem; }
.footer-base { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid #253a52; font-size: .9rem; }
.colorbar { display: inline-flex; }
.colorbar i { width: 22px; height: 10px; }
.colorbar i:nth-child(1) { background: var(--cyan); }
.colorbar i:nth-child(2) { background: var(--magenta); }
.colorbar i:nth-child(3) { background: var(--yellow); }
.colorbar i:nth-child(4) { background: #000; outline: 1px solid #3a4f66; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 2.5rem; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 820; font-variation-settings: "wdth" 75; line-height: .98; letter-spacing: -0.01em; max-width: 18ch; margin-bottom: 1.25rem; }
.page-head-tall { padding-bottom: var(--space); min-height: 50vh; }
.page-head-tall .btn { margin-top: 2rem; }
.crumb { margin-bottom: 1rem; font-weight: 600; }

.cover { margin: 0 0 3.5rem; border: 1px solid var(--rule); display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); max-height: 640px; overflow: hidden; }
.cover img { max-height: 560px; width: auto; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem 5rem; padding-bottom: var(--space); }
.prose { max-width: 40rem; }
.prose p { font-size: 1.1rem; line-height: 1.7; }
.case-summary { font-size: 1.3rem !important; line-height: 1.5 !important; font-weight: 550; }
.case-facts dl { margin: 0; border-top: 3px solid var(--ink); }
.case-facts dt { font-weight: 700; margin-top: 1.1rem; }
.case-facts dd { margin: .15rem 0 0; color: var(--ink-2); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 2.5rem; padding-bottom: var(--space); }
.gallery figure { margin: 0; }
.gallery img { border: 1px solid var(--rule); width: 100%; }
.gallery figcaption { color: var(--ink-2); margin-top: .6rem; font-size: .95rem; }

/* ---------- Intake form ---------- */
.intake fieldset { border: 0; padding: 0; margin: 0 0 3.25rem; }
.intake legend { font-size: 1.5rem; font-weight: 780; font-variation-settings: "wdth" 88; padding: 0; margin-bottom: 1.5rem; width: 100%; border-bottom: 3px solid var(--ink); padding-bottom: .5rem; }
.field { margin-bottom: 1.6rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field label:not(.choice), .label { display: block; font-weight: 650; margin-bottom: .4rem; }
.req { font-weight: 500; color: var(--ink-2); font-size: .88rem; margin-left: .35rem; }
.hint { color: var(--ink-2); font-size: .95rem; margin: -.15rem 0 .55rem; }
.intake input[type="text"], .intake input:not([type]), .intake input[type="email"], .intake input[type="tel"], .intake textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #9fb0c0; border-radius: 3px;
  padding: .7rem .85rem; min-height: 48px;
}
.intake textarea { resize: vertical; line-height: 1.5; }
.intake input:focus, .intake textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.intake [aria-invalid="true"] { border-color: #b3261e; }
.intake input[type="file"] { font: inherit; padding: .6rem 0; }
.choices { display: grid; gap: .35rem; }
.choices-2 { grid-template-columns: 1fr 1fr; gap: .35rem 1.5rem; }
.choices-inline { display: flex; flex-wrap: wrap; gap: .35rem 1.75rem; }
@media (max-width: 640px) { .choices-2 { grid-template-columns: 1fr; } }
.choice { display: flex; gap: .65rem; align-items: flex-start; padding: .3rem 0; cursor: pointer; line-height: 1.4; }
.choice input { width: 1.2rem; height: 1.2rem; margin: .1rem 0 0; flex: none; accent-color: var(--ink); }
.field-error { color: #b3261e; font-weight: 600; margin: .45rem 0 0; font-size: .95rem; }
.alert { padding: 1.1rem 1.35rem; margin-bottom: 2rem; border-left: 5px solid; background: var(--white); }
.alert-error { border-color: #b3261e; }
.alert ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.alert p { margin: 0; }
.form-submit { border-top: 1px solid var(--rule); padding-top: 2rem; }
.form-submit .hint { margin-top: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Captcha ---------- */
.captcha-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.captcha-img { border: 1.5px solid #9fb0c0; border-radius: 3px; background: #f6f9fb; }
.intake .captcha-input { max-width: 14rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 650; }
