@font-face {
  font-family: 'Fat Frank';
  src: url('fonts/fat-frank-heavy.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Causten';
  src: url('fonts/causten-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Causten';
  src: url('fonts/causten-bold-oblique.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Causten';
  src: url('fonts/causten-black-oblique.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Scroll-driven showcase pin progress (0 = laptop centred, 1 = parked left,
   text settled right). Lifted to :root so both .showcase-mockup and
   .showcase-copy inherit a single source of truth. */
:root { --showcase-pin: 1; --showcase-reveal: 1; --dev-accent: #0f1112; }

/* =========================================================
   DEV TOOLS — FAB + sliding panel + 20 tools
   ========================================================= */
:root {
  --dev-cols: 12;
  --dev-baseline: 8px;
}

.dev-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: #0f1112;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.dev-fab:hover { transform: translateY(-2px); }
.dev-fab svg { width: 22px; height: 22px; }
.dev-fab[aria-expanded="true"] { background: var(--dev-accent); }

.dev-panel {
  position: fixed;
  right: 16px;
  bottom: 76px;
  z-index: 9998;
  width: 320px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 48px -16px rgba(0, 0, 0, 0.4);
  font: 500 11px/1.4 'Open Sans', system-ui, sans-serif;
  color: #0f1112;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.dev-panel[aria-hidden="false"] {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.dev-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dev-panel__close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #0f1112;
  padding: 0 4px;
}
.dev-panel__group {
  padding: 10px 14px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.dev-panel__group:last-of-type { border-bottom: 0; }
.dev-panel__group h4 {
  margin: 4px 0 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 17, 18, 0.55);
  font-weight: 700;
}
.dev-panel__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dev-panel__btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  color: #0f1112;
  padding: 7px 10px;
  border-radius: 6px;
  font: 600 10px/1 'Open Sans', system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.dev-panel__btn:hover { border-color: #0f1112; }
.dev-panel__btn.is-active {
  background: #0f1112;
  color: #fff;
  border-color: #0f1112;
}
.dev-panel__btn--ghost {
  background: transparent;
  border-style: dashed;
  color: rgba(15, 17, 18, 0.7);
}
.dev-panel__color {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.dev-panel__color input[type="color"] {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
}
.dev-panel__color-swatch {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dev-accent);
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.dev-panel__settings {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dev-panel__settings label {
  display: grid;
  grid-template-columns: 70px 1fr 38px;
  align-items: center;
  gap: 8px;
}
.dev-panel__settings input[type="range"] {
  width: 100%;
}

.dev-readout {
  position: fixed;
  left: 16px;
  bottom: 70px;
  z-index: 9998;
  max-width: 360px;
  padding: 8px 10px;
  background: rgba(15, 17, 18, 0.92);
  color: #f6f3ee;
  border-radius: 6px;
  font: 500 11px/1.4 'Space Mono', ui-monospace, monospace;
  white-space: pre;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.dev-readout.is-visible { opacity: 1; transform: translateY(0); }

/* Grid overlay — N columns (var --dev-cols) w/ 24px gutters */
.dev-grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  display: none;
}
.dev-grid-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: 0 auto;
  max-width: var(--maxw, 1240px);
  padding: 0 var(--pad-x, 24px);
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(255, 0, 80, 0.12) 0,
      rgba(255, 0, 80, 0.12) calc((100% - (var(--dev-cols) - 1) * 24px) / var(--dev-cols)),
      transparent calc((100% - (var(--dev-cols) - 1) * 24px) / var(--dev-cols)),
      transparent calc((100% - (var(--dev-cols) - 1) * 24px) / var(--dev-cols) + 24px)
    );
  background-clip: content-box;
  box-sizing: border-box;
}
body.dev-grid .dev-grid-overlay { display: block; }

/* Baseline grid */
.dev-baseline-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  display: none;
  background-image: linear-gradient(to bottom, rgba(0, 120, 255, 0.18) 1px, transparent 1px);
  background-size: 100% var(--dev-baseline);
}
body.dev-baseline .dev-baseline-overlay { display: block; }

/* Center crosshair */
.dev-center-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  display: none;
}
.dev-center-overlay::before,
.dev-center-overlay::after {
  content: '';
  position: absolute;
  background: rgba(0, 200, 120, 0.55);
}
.dev-center-overlay::before {
  left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-0.5px);
}
.dev-center-overlay::after {
  top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-0.5px);
}
body.dev-center .dev-center-overlay { display: block; }

/* Rule of thirds + diagonals */
.dev-thirds-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  display: none;
  background-image:
    linear-gradient(to right, transparent calc(33.333% - 0.5px), rgba(255, 200, 0, 0.5) calc(33.333% - 0.5px), rgba(255, 200, 0, 0.5) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(to right, transparent calc(66.666% - 0.5px), rgba(255, 200, 0, 0.5) calc(66.666% - 0.5px), rgba(255, 200, 0, 0.5) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.333% - 0.5px), rgba(255, 200, 0, 0.5) calc(33.333% - 0.5px), rgba(255, 200, 0, 0.5) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(to bottom, transparent calc(66.666% - 0.5px), rgba(255, 200, 0, 0.5) calc(66.666% - 0.5px), rgba(255, 200, 0, 0.5) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}
body.dev-thirds .dev-thirds-overlay { display: block; }

/* Edge rulers — px ticks at top and left */
.dev-rulers-overlay {
  position: fixed;
  inset: 0;
  z-index: 9991;
  pointer-events: none;
  display: none;
}
.dev-rulers-overlay__h,
.dev-rulers-overlay__v {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: 500 9px/1 'Space Mono', ui-monospace, monospace;
  color: #0f1112;
}
.dev-rulers-overlay__h {
  top: 0; left: 0; right: 0; height: 18px;
  background-image:
    repeating-linear-gradient(to right, rgba(0,0,0,0.6) 0, rgba(0,0,0,0.6) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(to right, rgba(0,0,0,0.85) 0, rgba(0,0,0,0.85) 1px, transparent 1px, transparent 100px);
  background-position: 0 12px, 0 6px;
  background-size: 100% 6px, 100% 12px;
  background-repeat: no-repeat, no-repeat;
}
.dev-rulers-overlay__v {
  top: 0; left: 0; bottom: 0; width: 18px;
  background-image:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.6) 0, rgba(0,0,0,0.6) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.85) 0, rgba(0,0,0,0.85) 1px, transparent 1px, transparent 100px);
  background-position: 12px 0, 6px 0;
  background-size: 6px 100%, 12px 100%;
  background-repeat: no-repeat, no-repeat;
}
body.dev-rulers .dev-rulers-overlay { display: block; }

/* Z-index labels + section labels share a layer */
.dev-labels-layer {
  position: fixed;
  inset: 0;
  z-index: 9993;
  pointer-events: none;
}
.dev-label {
  position: absolute;
  background: rgba(15, 17, 18, 0.92);
  color: #fff;
  font: 600 10px/1 'Space Mono', ui-monospace, monospace;
  padding: 3px 6px;
  border-radius: 3px;
  white-space: nowrap;
  transform: translate(2px, 2px);
}
.dev-label--zindex { background: rgba(180, 0, 200, 0.92); }
.dev-label--section { background: rgba(0, 120, 200, 0.92); }
.dev-label--image { background: rgba(220, 100, 0, 0.92); }

/* Dark-mode preview */
body.dev-dark { filter: invert(1) hue-rotate(180deg); }
body.dev-dark img,
body.dev-dark video,
body.dev-dark .showcase-mockup,
body.dev-dark .loader-logo img { filter: invert(1) hue-rotate(180deg); }

/* Outline every element */
body.dev-outline *:not(.dev-fab):not(.dev-fab *):not(.dev-panel):not(.dev-panel *):not(.dev-readout):not([class^="dev-"]):not([class^="dev-"] *) {
  outline: 1px solid rgba(255, 0, 80, 0.45) !important;
}

/* Divs inspector — outline every <div> + show its name on hover */
body.dev-divs div:not(.dev-fab):not(.dev-fab *):not(.dev-panel):not(.dev-panel *):not(.dev-readout):not([class^="dev-"]):not([class^="dev-"] *) {
  outline: 1px solid rgba(80, 140, 255, 0.55) !important;
  cursor: help;
}
.dev-div-label {
  position: fixed;
  z-index: 9996;
  pointer-events: none;
  display: none;
  padding: 4px 8px;
  background: #0d1a22;
  color: #f6f3ee;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
}
body.dev-divs .dev-div-label { display: block; }

/* Measure canvas — full-screen SVG used while measure tool is active */
.dev-measure-canvas {
  position: fixed;
  inset: 0;
  z-index: 9995;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}
body.dev-measure .dev-measure-canvas { display: block; pointer-events: auto; }
body.dev-measure { cursor: crosshair !important; }

.dev-highlight-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9994;
  pointer-events: none;
  display: none;
}
body.dev-highlight .dev-highlight-canvas { display: block; pointer-events: auto; cursor: crosshair; }

/* Box-model inspector overlay — Chrome-devtools style */
.dev-box-overlay {
  position: fixed;
  z-index: 9994;
  pointer-events: none;
  display: none;
}
body.dev-boxes .dev-box-overlay { display: block; }
.dev-box-overlay > div { position: absolute; }
.dev-box-overlay__margin   { background: rgba(246, 178, 107, 0.35); }
.dev-box-overlay__border   { background: rgba(255, 230, 128, 0.35); }
.dev-box-overlay__padding  { background: rgba(147, 196, 125, 0.35); }
.dev-box-overlay__content  { background: rgba(120, 168, 215, 0.35); }

body.dev-type *,
body.dev-boxes * { cursor: help; }

/* Targeted elements driven by the picker */
.hero--showcase .showcase-copy-eyebrow { color: var(--dev-accent); }
.hero--showcase .showcase-copy-heading em.hv { color: var(--dev-accent); }
.hero--showcase .showcase-copy-points li::before { background: var(--dev-accent); }
.hero--showcase .btn-secondary {
  color: #fff;
  border-color: var(--dev-accent);
}
.hero--showcase .btn-secondary::before { background: var(--dev-accent); }
.hero--showcase .btn-secondary:hover,
.hero--showcase .btn-secondary:focus-visible { color: var(--dev-accent); }

/* =========================================================
   PAGE LOADER — black curtain that sweeps up after 2s on load
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Sweep the entire panel from in-place to -100% (off the top of the viewport) */
  animation: loaderSweep 0.8s cubic-bezier(0.65, 0, 0.35, 1) 2s forwards;
  will-change: transform;
}
.loader-content {
  text-align: left;
}
.loader-logo {
  position: relative;
  display: block;
  width: clamp(140px, 18vw, 320px);
  transform: translateY(15px);
  animation: loaderRiseLogo 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.loader-logo img {
  display: block;
  width: 100%;
  height: auto;
  /* Force the logo SVG to render in white */
  filter: brightness(0) invert(1);
}
.loader-logo__base {
  opacity: 0.3;
}
.loader-logo__wipe {
  position: absolute;
  inset: 0;
  opacity: 1;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  animation: loaderWipe 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.6s forwards;
}

/* Tag: dimmed baseline + curtain wipe overlay revealing full white */
.loader-tag {
  position: relative;
  display: block;
  margin-top: clamp(1rem, 1.6vw, 1.8rem);
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(0.62rem, 0.85vw, 1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0);
  transform: translateY(15px);
  animation: loaderRiseTag 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.loader-tag::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #fff;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  animation: loaderWipe 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.6s forwards;
}

@keyframes loaderRiseLogo {
  to {
    transform: translateY(0);
  }
}
@keyframes loaderRiseTag {
  to {
    color: rgba(255, 255, 255, 0.65);
    transform: translateY(0);
  }
}
@keyframes loaderWipe {
  to {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }
}

@keyframes loaderSweep {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .loader { animation: loaderFadeOut 0.4s ease 0.6s forwards; }
  .loader-brand > span,
  .loader-tag {
    animation: none;
    opacity: 1;
    transform: none;
  }
  @keyframes loaderFadeOut {
    to { opacity: 0; visibility: hidden; }
  }
}

/* =========================================================
   Tideline Studio
   Typography system:
     Display : Fat Frank Heavy
     Sub     : Open Sans — Bold, uppercase, wide tracking
     Body    : Open Sans — Regular
   ========================================================= */

:root {
  /* Palette — coastal, minimal */
  --c-bg: #f6f3ee;           /* warm off-white */
  --c-bg-alt: #ece7df;       /* muted sand */
  --c-ink: #0d1a22;          /* deep navy-ink */
  --c-ink-soft: #3b4c56;
  --c-muted: #7a8891;
  --c-accent: #466775;       /* tidal slate */
  --c-line: rgba(13, 26, 34, 0.12);

  /* Type */
  --font-display: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --font-sans: 'Open Sans', system-ui, sans-serif;

  /* Spacing / layout */
  --maxw: 1400px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography primitives ---------- */

.eyebrow {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;          /* 12px */
  text-transform: uppercase;
  letter-spacing: 0.11em;       /* 110 tracking */
  color: var(--c-accent);
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

p { margin: 0 0 1rem; color: var(--c-ink-soft); }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out),
              color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-ink) 0%, #1c2f3a 100%);
  color: var(--c-bg);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1c2f3a 0%, var(--c-ink) 100%);
  transform: translateY(-2px);
}

.btn-secondary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  color: #fff;
  border: 2px solid var(--c-ink);
  border-radius: 5px;
  padding: 0.7rem 1.2rem;
  font-size: 0.7rem;
}
.btn-secondary::before {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 0;
  height: calc(100% + 22px);
  background: linear-gradient(135deg, var(--c-ink) 0%, #1c2f3a 100%);
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0,84 C12,96 25,72 50,84 C75,96 88,72 100,84 L100,0 L0,0 Z' fill='white'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0,84 C12,96 25,72 50,84 C75,96 88,72 100,84 L100,0 L0,0 Z' fill='white'/></svg>");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: transparent;
  color: var(--c-ink);
  transform: translateY(-2px);
}
.btn-secondary:hover::before,
.btn-secondary:focus-visible::before {
  transform: translateY(-101%);
}

/* Contact form back button — inverted: starts in the "hover" look. */
.contact-form__back.btn-secondary { color: var(--c-ink); }
.contact-form__back.btn-secondary::before { transform: translateY(-101%); }
.contact-form__back.btn-secondary:hover,
.contact-form__back.btn-secondary:focus-visible { color: #fff; }
.contact-form__back.btn-secondary:hover::before,
.contact-form__back.btn-secondary:focus-visible::before { transform: translateY(0); }

/* =========================================================
   HERO BOTTOM-RIGHT WINDING-LINE ICONS
   ========================================================= */
/* Wrapper around the fixed bottom-corner elements (Get in touch + windings).
   Its opacity rides --invert-amount so both fade out together — fully invisible
   by the halfway point of the scroll-driven color animation, never seen again. */
.hero-bottom-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
.hero-bottom-fade > * { pointer-events: auto; }

.hero-scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 50;
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* Scroll-driven white → black, same curve as the bg invert */
  color: #000;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: heroRise 1.0s var(--ease-out) 2.4s forwards;
  transition: background 0.25s, color 0.25s;
}
.hero-scroll-cue:hover {
  /* Swap fill and text: bg picks up the current text colour, text becomes its inverse */
  background: #000;
  color: #fff;
}
/* Span around last letter is no longer needed for the underline trick — keep
   it neutral so it doesn't break the box layout */
.hero-scroll-cue span { letter-spacing: 0.22em; }

.hero-windings {
  position: absolute;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  /* Scroll-driven white → black, same curve as the bg invert */
  color: #000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  animation: heroRise 1.0s var(--ease-out) 2.4s forwards;
}
.hero-windings span {
  font-family: 'Wingdings', 'Webdings', sans-serif;
  font-size: 1rem;
  line-height: 1;
}

/* =========================================================
   HERO CORNER NAV — brand top-left, link stack top-right
   ========================================================= */

.hero-brand {
  position: absolute;
  top: 1.75rem;
  left: 2.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.5;
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* Scroll-driven white → black, mirroring the bg invert ramp */
  color: #000;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: heroRise 1.0s var(--ease-out) 2.4s forwards;
}

.hero-nav {
  position: absolute;
  top: 1.75rem;
  right: 2.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroRise 1.0s var(--ease-out) 2.4s forwards;
}
.hero-nav a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* Scroll-driven white → black, same curve as the bg invert */
  color: #000;
  text-decoration: none;
  position: relative;
  padding: 0.15rem 0;
}
.hero-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.hero-nav a:hover::after,
.hero-nav a.is-active::after { transform: translateY(-50%) scaleX(1); }

/* =========================================================
   HERO
   ========================================================= */

:root { --nav-h: clamp(56px, 5.5vw, 96px); }
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.25rem, 3vw, 2.25rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  pointer-events: none;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
}
.site-nav.is-visible {
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
}
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  justify-self: start;
}
.site-nav__links {
  justify-self: center;
}
.site-nav__cta {
  justify-self: end;
}
.site-nav__brand img {
  height: calc(var(--nav-h) * 0.65);
  width: auto;
  display: block;
}
.site-nav__cta {
  line-height: 1;
  white-space: nowrap;
}
.site-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.site-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0f1112;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}
.site-nav.is-open .site-nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav.is-open .site-nav__toggle span:nth-child(2) {
  opacity: 0;
}
.site-nav.is-open .site-nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.site-nav__links {
  display: flex;
  gap: clamp(2.25rem, 3.5vw, 3.75rem);
}
.site-nav__links a {
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  font-size: clamp(0.72rem, 0.9vw, 1.05rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  position: relative;
  padding: 0.15rem 0;
}
.site-nav__links a::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.site-nav__links a:hover::after { transform: translateY(-50%) scaleX(1); }

.hero {
  position: relative;
  width: 100%;
  color: #fff;
  overflow: hidden;
  background: transparent;
  z-index: 0;
}
.hero--showcase {
  margin-top: var(--nav-h);
}

.hero--showcase .showcase-panel {
  height: calc(100vh - var(--nav-h));
  min-height: 560px;
}
.hero-scroll-arrow {
  position: absolute;
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(34px, 3.5vw, 50px);
  height: clamp(14px, 1.4vw, 20px);
  color: #0f1112;
  text-decoration: none;
  cursor: pointer;
  animation: heroArrowBounce 2.2s ease-in-out infinite;
}
.hero-scroll-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-scroll-arrow:hover { color: #000; }
@keyframes heroArrowBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-arrow { animation: none; }
}

/* =========================================================
   PROCESS SECTION — three-step cards
   ========================================================= */
.process-section {
  background: #fafafa;
  padding: clamp(2.4rem, 5.4vw, 4.5rem) clamp(1.5rem, 5vw, 4rem) 65px;
}
.process-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.process-header {
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.process-heading {
  white-space: nowrap;
}
.process-heading em {
  font-style: italic;
  font-weight: 900;
}
.process-heading {
  margin: 0.9rem 0 0;
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f1112;
}
.services-header {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem) clamp(1.5rem, 3.5vw, 3rem);
}
.services-heading {
  margin: 0.9rem auto 25px;
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f1112;
  max-width: 22ch;
}

.process-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.2rem, 2.7vw, 2.7rem);
}
.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f1112;
  width: clamp(19px, 2vw, 29px);
}
.process-arrow svg {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .process-cards {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
  }
  .process-arrow {
    width: clamp(28px, 5vw, 40px);
    transform: rotate(90deg);
  }
}
.process-card {
  position: relative;
  background: #fff;
  border: 2px solid #0f1112;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(15, 17, 18, 0.04);
}
.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(15, 17, 18, 0.25);
}
.process-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ece7df;
}
.process-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.process-card:hover .process-card__media img {
  transform: scale(1.04);
}
.process-card__media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1112;
  color: #fff;
  position: relative;
  isolation: isolate;
}
.process-card__media-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.45) saturate(0.85);
}
.process-card__media--icon svg {
  position: relative;
  z-index: 1;
  color: #fff;
  width: clamp(56px, 8vw, 88px);
  height: clamp(56px, 8vw, 88px);
  transition: transform 0.5s var(--ease-out);
}
.process-card:hover .process-card__media--icon svg {
  transform: scale(1.06);
}

.process-card.reveal .process-card__media--icon svg {
  opacity: 0;
  transform: translateY(420%);
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s ease 0.05s;
}
.process-card.reveal.is-visible .process-card__media--icon svg {
  opacity: 1;
  transform: translateY(0);
}
.process-card.reveal.is-visible:hover .process-card__media--icon svg {
  transform: scale(1.06);
}
.process-card.reveal:nth-of-type(3) .process-card__media--icon svg { transition-delay: 0.1s, 0.15s; }
.process-card.reveal:nth-of-type(5) .process-card__media--icon svg { transition-delay: 0.2s, 0.25s; }
.process-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.3rem, 2vw, 1.75rem) clamp(1.4rem, 2.2vw, 1.9rem);
  flex: 1;
}
.process-card__num {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(15, 17, 18, 0.5);
}
.process-card__title {
  margin: 0;
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f1112;
}
.process-card__copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(15, 17, 18, 0.72);
  max-width: 38ch;
}
.process-cta-band {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.process-cta-band__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 22%, transparent 36%, transparent 64%, #000 78%, #000 100%);
          mask-image: linear-gradient(to right, #000 0%, #000 22%, transparent 36%, transparent 64%, #000 78%, #000 100%);
}
.process-cta-band__pattern .showcase-pattern {
  top: -500%;
  left: -50%;
  width: 200%;
  height: 1100%;
}
.process-cta-band__shield {
  position: relative;
  z-index: 1;
  height: 100%;
  background: #fff;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-cta {
  display: flex;
  justify-content: center;
}
.process-cta__btn {
  font-size: 0.86rem;
  padding: 1.1rem 2rem;
}

main {
  position: relative;
  z-index: 1;
  background: #fff;
}


/* ---- Hero style layer ---- */
.hero-style {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #e6d3b3;
  pointer-events: none;
  z-index: 1;
}

.hero-corners-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at top left,     #e6d3b3 0, rgba(230, 211, 179, 0) 400px),
    radial-gradient(circle at top right,    #e6d3b3 0, rgba(230, 211, 179, 0) 400px),
    radial-gradient(circle at bottom left,  #e6d3b3 0, rgba(230, 211, 179, 0) 400px),
    radial-gradient(circle at bottom right, #e6d3b3 0, rgba(230, 211, 179, 0) 400px);
}

.hero-grid {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='100' viewBox='0 0 280 100'><g fill='none' stroke='rgba(0,0,0,0.08)' stroke-width='1'><path d='M0 25 Q 70 5, 140 25 T 280 25'/><path d='M0 75 Q 70 55, 140 75 T 280 75'/></g></svg>");
  background-repeat: repeat;
  background-size: 280px 100px;
  transform: rotate(-22deg);
  animation:
    wavesRoll 18s linear infinite,
    wavesContract 1s var(--ease-out) 2.4s both;
}
@keyframes wavesRoll {
  from { background-position: 0 0; }
  to   { background-position: 280px 0; }
}
@keyframes wavesContract {
  from { background-size: 280px 320px; }
  to   { background-size: 280px 100px; }
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 85%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroRise 1.0s var(--ease-out) 2.4s forwards;
}

.hero-logo {
  display: block;
  width: clamp(220px, 40vw, 560px);
  height: auto;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #000;
}

/* "WEB DESIGN & SEO" — sits in the bottom-left corner inside the square,
   absolute-positioned so it doesn't displace the centred wordmark above. */
.hero-pill {
  position: absolute;
  bottom: calc(0.9em + 3px);
  left: calc(0.9em + 7px);
  font-family: var(--font-sans);
  font-weight: 700;
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  white-space: nowrap;
  /* Compensate for the trailing letter-spacing — keeps the visible left
     edge of "W" flush against the corner inset. */
  margin-left: -0.11em;
}

/* Square wrapper — a perfect aspect-ratio:1 box. The wordmark text sits
   centred inside, and the service line is absolute-positioned to the
   bottom-left corner so it doesn't fight the centred text for vertical space. */
.hero-headline,
.hero-headline-ghost {
  position: relative; /* anchor for the absolute pill below */
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 0.9em;
}

/* Wordmark text — carries the type styles. Same on visible + ghost. */
.hero-headline-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.2rem, 4.5vw, 4.5rem);
  line-height: 1.5;       /* matches .hero-brand */
  letter-spacing: 0.22em; /* matches .hero-brand */
  text-transform: uppercase;
  text-align: center;
  text-indent: 0.22em;
  color: #fff;
}
.hero-headline-text > span {
  display: block;
  white-space: nowrap;
}

/* Visible square — text in front of the bg image, transparent border keeps
   box dimensions identical to the ghost (whose border is the visible one). */
.hero-headline {
  border: 2px solid transparent;
}

/* Ghost square — sits behind the bg image, carries the visible white border
   and a solid hero-base background that blocks the grid lines from showing
   through inside the square. Mirrors the same scroll-driven smoke-fade as
   .hero-content so the white outline + service text dissolve in lock-step
   with the main wordmark. Position fixed so the square stays glued to the
   viewport centre while the page scrolls; opacity fades it out by the time
   the user leaves the hero. */
.hero-headline-ghost {
  position: fixed;
  top: 50%;
  left: 50%;
  /* Sits BEHIND the bg photograph (.page-bg z:2) so the white square + dark
     fill + service text are only visible through the photo's transparent
     pixels. Above the dim grid (.page-grid z:0) so the grid sits even
     further back, behind the white square. */
  z-index: 1;
  /* Stay anchored at viewport centre; opacity + blur do the smoke fade.
     Same accelerated fade as .hero-content — done by invert=0.5 so the
     dark #121212 bg doesn't linger as a visible box during the hero/work
     transition. */
  transform: translate(-50%, -50%);
  opacity: clamp(0, calc(1 - var(--invert-amount, 0) * 2), 1);
  filter: blur(calc(var(--invert-amount, 0) * 14px));
  border: 2px solid #fff;
  /* Dark grey fill — alpha tied to the SAME smoke-fade curve as the element
     opacity so the bg fades in lock-step rather than painting at full
     intensity through the fade. By the time element opacity reaches 0
     (invert = 0.5), the bg alpha is also 0, so no dark rectangle lingers. */
  background: rgba(18, 18, 18, clamp(0, calc(1 - var(--invert-amount, 0) * 2), 1));
  pointer-events: none;
}

/* Ghost wordmark text is a transparent placeholder for sizing only — the
   visible "TIDELINE / STUDIO" sits in the front-layer .hero-headline. */
.hero-headline-text--ghost     { color: transparent; }
/* Pill is now ONLY in the ghost layer (z:4), so it shares the white square's
   z-layer rather than sitting in front of the bg image. No hide override. */

/* =========================================================
   PAGE-LOAD ENTRANCE — only on the initial style
   ========================================================= */

/* Headline shares the corner elements' entrance — single unified motion */
.hero-style.is-initial .hero-headline {
  opacity: 0;
  transform: translateY(20px);
  animation: heroRise 1.0s var(--ease-out) 2.4s forwards;
}
/* Italic emphasis on inline <em> within the headline */
.hero-headline em {
  font-style: italic;
  font-family: inherit;
  font-weight: 600; /* one step lighter than the headline's 700 */
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* =========================================================
   SECTION HEAD
   ========================================================= */

.section-head { margin-bottom: 3.5rem; max-width: 720px; }

/* =========================================================
   WORK
   ========================================================= */

/* Showcase section sits between the hero and Work — re-renders the same
   fixed-attachment bg image and grid so they continue seamlessly past the hero.
   A single large white card sits centred on top. */
.section-showcase {
  background: #fff;
  padding: 0;
  position: relative;
}
#services.section-showcase { padding-bottom: 0; }
#services .showcase-panel--compact:first-of-type { border-top: 1px solid rgba(15, 17, 18, 0.12); }
#services .showcase-panel--compact:last-of-type { border-bottom: 1px solid rgba(15, 17, 18, 0.12); }

/* ---------- FAQ section ---------- */
.faq-section {
  background: #fff;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}
.faq-inner {
  max-width: 900px;
  margin: 0 auto;
}
.faq-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.faq-heading {
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0.9rem 0 0;
  color: #0f1112;
}
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(15, 17, 18, 0.12);
}
.faq-item {
  border-bottom: 1px solid rgba(15, 17, 18, 0.12);
}
.faq-item details {
  position: relative;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: 0.02em;
  color: #0f1112;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path fill='none' stroke='%230f1112' stroke-width='1.6' stroke-linecap='round' d='M7 1v12M1 7h12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--c-accent); }
.faq-item details > p {
  margin: 0;
  padding: 0 0 1.5rem;
  max-width: 70ch;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: rgba(15, 17, 18, 0.72);
}

.showcase-panel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.showcase-panel--compact {
  height: 30vh;
  min-height: 320px;
}
.showcase-panel__visual,
.showcase-panel__copy {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
}
.showcase-panel__visual--left,
.showcase-panel__copy--left { left: 0; }
.showcase-panel__visual--right,
.showcase-panel__copy--right { left: 50%; }
.showcase-panel__visual {
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.showcase-panel__copy {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x);
}
.showcase-panel__copy--left {
  padding-left: clamp(2.5rem, 7vw, 7rem);
  padding-right: clamp(2.5rem, 7vw, 7rem);
}
.showcase-panel__copy--right {
  padding-right: clamp(2.5rem, 7vw, 7rem);
  padding-left: clamp(2.5rem, 7vw, 7rem);
}


.showcase-placeholder-note {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
  will-change: transform;
  width: min(70%, 420px);
  margin: 0;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(15, 17, 18, 0.55);
  border: 1px dashed rgba(15, 17, 18, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
}

.showcase-copy-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(15, 17, 18, 0.78);
  max-width: 56ch;
  margin: 1.25rem 0 0;
}
.showcase-panel--compact .showcase-copy-text {
  position: relative;
  padding-left: 1.75rem;
}
.showcase-copy-bullets {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.showcase-copy-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(15, 17, 18, 0.78);
}
.showcase-copy-bullets li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.showcase-panel--compact .showcase-copy-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.1rem;
  height: 1.1rem;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>");
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  color: #0f1112;
}

.about-portrait {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(60%, 360px);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #d9d3c8, #b9b2a4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(13, 26, 34, 0.4);
  box-shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.35);
}

/* SEO panel background image */
.seo-visual {
  background: #f5f5f5;
}
.seo-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, transparent 35%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.seo-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
  will-change: transform;
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 4rem);
  color: #fff;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  -webkit-text-stroke: 3px rgba(0, 0, 0, 0.6);
}
.seo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.showcase-pattern {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: var(--dev-accent);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16' preserveAspectRatio='none'><path d='M0,8 Q20,0 40,8 T80,8' stroke='black' stroke-width='1' fill='none'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16' preserveAspectRatio='none'><path d='M0,8 Q20,0 40,8 T80,8' stroke='black' stroke-width='1' fill='none'/></svg>");
  -webkit-mask-repeat: repeat;
          mask-repeat: repeat;
  -webkit-mask-size: 160px 18px;
          mask-size: 160px 18px;
  transform: rotate(-25deg);
  opacity: 0.18;
  pointer-events: none;
}
/* Laptop mockup — its natural CSS layout IS the final settled position
   (right edge flush against the viewport's vertical centre, scaled-down
   relative to the entry size). Transforms run in reverse:
     pin=1 → no transform, sits in this layout box
     pin=0 → translated right + scaled up to fill the viewport like the
             original "centred + full-size" entry state
   This way the .showcase-copy can lay out against the laptop's real box
   instead of mirroring transform math. */
/* Static black outline frame at the final resting position of the laptop
   + text. Mirrors the .hero-headline-ghost stroke (2px solid). The width is
   2× the laptop's width so it extends symmetrically across the centre line —
   left half hugs the laptop, right half mirrors it to enclose the copy.
   The height matches the laptop's natural height (width × 190/311). */
.showcase-frame {
  /* Hidden for now — re-enable by removing this display rule. */
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Internal breathing-room padding (one pad on each outer side at pin=1). */
  --frame-pad: clamp(14px, 2vw, 40px);
  /* Final (pin=1) target dimensions — derived from the laptop's natural box. */
  --frame-w: calc(2 * min(45vw, 840px, calc(56vh * 311 / 190)) + 2 * var(--frame-pad));
  --frame-h: calc(min(45vw, 840px, calc(56vh * 311 / 190)) * 190 / 311 + 2 * var(--frame-pad));
  /* Width animates from 1px at pin=0 (a hairline vertical line) → full
     --frame-w at pin=1. left:50% + translateX(-50%) keeps it centred, so
     growth is symmetric on both sides — the laptop and copy "push" the
     frame open as they slide in. */
  width: calc(1px + (var(--frame-w) - 1px) * var(--showcase-pin));
  /* Height stays at the final size throughout — only the width animates. */
  height: var(--frame-h);
  /* Stroke via inset box-shadow so it does NOT contribute to element size.
     At pin=0 (width:1px) the 2px shadows overlap, painting a single 1px
     vertical line. At pin=1 they render as a clean 4-sided 2px frame —
     matching the hero "Tideline Studio" ghost stroke. */
  box-shadow: inset 0 0 0 2px #000;
  background: transparent;
  pointer-events: none;
  /* Above the bg layers (z 1/5/6) but below the laptop mockup (z:10) so the
     laptop slides in front of the frame's line where they meet at centre. */
  z-index: 7;
}

.showcase-mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(45vw, 1100px, calc(72vh * 311 / 190));
  aspect-ratio: 311 / 190;
  background-image: url('images/hero/laptop-mockup.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%);
}
/* Video sits over the laptop's screen area — these four numbers are the four
   inset edges of the screen rectangle as % of the wrapper. Tweak them to nail
   the bezels of YOUR specific laptop PNG. */
.showcase-mockup-video {
  position: absolute;
  top: 5.1%;
  left: 10.2%;
  width: 79.35%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  pointer-events: none;
  /* Rounded top corners to match the laptop screen's bezel curvature */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.showcase-copy {
  width: min(100%, 900px);
  color: #0f1112;
}

.hero--showcase .showcase-panel__copy--left {
  background: #fff;
}
.hero--showcase .showcase-copy > * {
  margin-top: 1.75rem;
  margin-bottom: 0;
}
.hero--showcase .showcase-copy > *:first-child {
  margin-top: 0;
}
.hero--showcase .showcase-copy-heading {
  margin-top: 0.9rem;
  font-weight: 700;
}
.hero-stars {
  display: inline-flex;
  align-items: center;
  color: #0f1112;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  line-height: 1;
}
.showcase-copy-actions {
  align-items: center;
}
.hero--showcase .showcase-copy-actions {
  gap: 1.5rem;
}

.hero--showcase .showcase-copy-heading em {
  font-style: normal;
  font-weight: 700;
}
.causten-italic {
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 900;
  font-style: italic;
}
@media (max-width: 768px) {
  .hero-break { display: none; }
}
.hero--showcase .showcase-copy-heading em.hv {
  font-style: italic;
  font-weight: 900;
}
.hero--showcase .showcase-copy-heading .kern-lu {
  letter-spacing: -0.006em;
}
.hero--showcase .showcase-copy-points {
  margin: 1.75rem 0 0;
}



.showcase-panel.reveal {
  opacity: 1;
  transform: none;
}
.showcase-panel .showcase-mockup,
.showcase-panel .showcase-copy {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.showcase-panel .showcase-mockup {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 80px));
}
.showcase-panel.is-visible .showcase-mockup {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.showcase-panel .showcase-copy {
  opacity: 0;
  transform: translateY(80px);
}
.showcase-panel.is-visible .showcase-copy {
  opacity: 1;
  transform: translateY(0);
}
.showcase-panel .seo-bg {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.showcase-panel.is-visible .seo-bg {
  opacity: 1;
  transform: translateY(0);
}
.showcase-copy-points {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.showcase-copy-points li {
  position: relative;
  padding-left: 1.8rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(15, 17, 18, 0.78);
}
.showcase-copy-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

.showcase-copy-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.showcase-copy-logo {
  display: block;
  width: clamp(7rem, 10vw, 11rem);
  height: auto;
  margin-bottom: 1.1rem;
}
.showcase-copy-eyebrow {
  display: block;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 700;
  /* Fluid type — scales with viewport, clamped to a readable floor + ceiling. */
  font-size: clamp(0.62rem, 0.78vw, 0.95rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(15, 17, 18, 0.6);
  margin-bottom: 0.3rem;
}
.showcase-copy-heading {
  margin: 0;
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.showcase-copy-sub {
  margin: 0 0 2rem;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.05vw, 1.18rem);
  line-height: 1.55;
  color: rgba(15, 17, 18, 0.72);
  /* Cap measure to a comfortable reading line-length (~50 characters). */
  max-width: 50ch;
}
.showcase-copy-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  /* Each step animates in with a tiny extra delay tied to --showcase-pin so
     the list "cascades" rather than appearing as a single block. */
}
.showcase-copy-steps li {
  display: grid;
  /* Numeral column tightened — Space Mono "00" is ~2rem, so 2.1rem is just
     enough breathing room without leaving a wide gutter. */
  grid-template-columns: 2.1rem 1fr;
  gap: 0.9rem;
  /* Align by the FIRST baseline of each cell — keeps the "01" baseline
     locked to the strong-heading baseline regardless of font-size mix. */
  align-items: first baseline;
  /* Per-step cascade removed — the whole .showcase-copy block slides in as
     one unit now (matching the laptop's slide-from-behind-the-wall). */
}
.showcase-copy-steps .step-num {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: clamp(0.68rem, 0.86vw, 1.02rem);
  letter-spacing: 0.18em;
  color: rgba(15, 17, 18, 0.45);
  /* Half of 0.18em letter-spacing pulled back so the "0" sits flush with
     the column's left edge instead of floating into it. */
  margin-left: -0.09em;
}
.showcase-copy-steps strong {
  display: block;
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.1vw, 1.28rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.28rem;
  /* Half of 0.08em letter-spacing — keeps the strong text's left edge
     aligned to the column 2 grid line instead of optically indented. */
  margin-left: -0.04em;
}
.showcase-copy-steps p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 0.98vw, 1.12rem);
  line-height: 1.5;
  color: rgba(15, 17, 18, 0.7);
  /* Cap measure on step descriptions too — keeps body copy comfortable. */
  max-width: 46ch;
}

/* =========================================================
   ABOUT
   ========================================================= */


.about-grid {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-photo-placeholder {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, #d9d3c8, #b9b2a4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo-placeholder span {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(13, 26, 34, 0.4);
}

.about-copy p { max-width: 56ch; }

.about-facts {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  border-top: 1px solid var(--c-line);
}
.about-facts li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.9rem;
}
.about-facts strong {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.about-facts span { color: var(--c-ink); }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}

/* =========================================================
   MOBILE NAV + HERO LAYOUT
   ========================================================= */
@media (max-width: 768px) {
  .site-nav { grid-template-columns: auto 1fr auto; }
  .site-nav__toggle { display: flex; justify-self: end; grid-column: 3; }
  .site-nav__cta { display: none; }
  .site-nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease-out);
    pointer-events: none;
  }
  .site-nav.is-open .site-nav__links {
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-nav__links a {
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .site-nav__links a:last-child { border-bottom: 0; }

  /* Hero — stack the two halves vertically */
  .hero--showcase .showcase-panel {
    height: auto;
    min-height: calc(100vh - var(--nav-h));
  }
  .hero--showcase .showcase-panel__visual,
  .hero--showcase .showcase-panel__copy {
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
  }
  .hero--showcase .showcase-panel__visual {
    aspect-ratio: 4 / 3;
  }
  .hero--showcase .showcase-panel__copy {
    padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 5vw, 2rem);
  }
  .hero--showcase .showcase-mockup {
    width: min(80%, 500px);
  }
  .hero-bottom-fade { display: none; }
}

/* =========================================================
   SERVICES — two vertical stacked sections (01 / 02)
   ========================================================= */


.service-block {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--c-line);
}
.service-block:last-of-type { border-bottom: 1px solid var(--c-line); }

.service-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--c-accent);
  letter-spacing: 0.02em;
  padding-top: 0.2em;
}

.service-body { max-width: 60ch; }

.service-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.9rem;
}

.service-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.service-pitch { color: var(--c-ink-soft); margin-bottom: 1.5rem; }

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  border-bottom: 1px dashed var(--c-line);
}
.service-list li:last-child { border-bottom: 0; }
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.05rem;
  width: 0.75rem;
  height: 1px;
  background: var(--c-accent);
}

.service-visual {
  width: 220px;
  aspect-ratio: 4 / 5;
  background: var(--c-bg-alt);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-visual-frame {
  position: relative;
  width: 70%;
  height: 70%;
  border: 1px solid var(--c-accent);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: flex-end;
}
.service-visual-line {
  height: 2px;
  width: 100%;
  background: var(--c-accent);
}
.service-visual-line.short { width: 55%; }
.service-visual-block {
  width: 40%;
  height: 40%;
  background: var(--c-accent);
  margin-top: 1rem;
  opacity: 0.85;
}
.service-visual-dot {
  width: 10px; height: 10px;
  background: var(--c-accent);
  border-radius: 50%;
  position: absolute;
}
.service-visual-dot:nth-child(1) { top: 20%; left: 20%; }
.service-visual-dot:nth-child(2) { top: 55%; left: 45%; }
.service-visual-dot:nth-child(3) { top: 35%; left: 75%; }
.service-visual-curve {
  position: absolute;
  inset: 20% 20% 20% 20%;
  border-bottom: 1px solid var(--c-accent);
  border-right: 1px solid var(--c-accent);
  border-radius: 0 0 100% 0;
  opacity: 0.5;
}

.service-cta {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .service-block { grid-template-columns: auto 1fr; }
  .service-visual { display: none; }
}
@media (max-width: 500px) {
  .service-block { grid-template-columns: 1fr; gap: 1rem; }
}

/* =========================================================
   CONTACT
   ========================================================= */

#about.section-showcase {
  filter: none;
  border-top: none;
}
.about-panel {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--section-y) clamp(2.5rem, 7vw, 7rem);
}
.about-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.about-inner {
  position: relative;
  max-width: 760px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-section {
  position: relative;
  background: #0d1a22;
  padding: clamp(1.5rem, 5vw, 4rem);
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.contact-section__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at center, #000 0%, transparent 85%);
          mask-image: radial-gradient(ellipse 75% 65% at center, #000 0%, transparent 85%);
}
.contact-section__pattern .showcase-pattern {
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: #f6f3ee;
  opacity: 0.35;
}
.contact-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}
.contact-info {
  text-align: left;
  color: #f6f3ee;
}
.contact-info .showcase-copy-eyebrow { color: #f6f3ee; }
.contact-card {
  background: #fff;
  color: #0f1112;
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3.5vw, 3rem);
  box-shadow: 0 30px 60px -28px rgba(15, 17, 18, 0.28),
              0 8px 18px -10px rgba(15, 17, 18, 0.08);
}
.contact-card a { color: inherit; }
.contact-sub {
  margin: 1.25rem 0 0;
  max-width: 44ch;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.55;
  color: rgba(246, 243, 238, 0.75);
}
.contact-heading {
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 1.25rem 0 0;
  max-width: 22ch;
  color: #f6f3ee;
}
.contact-links {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(246, 243, 238, 0.4);
  border-radius: 6px;
  color: #f6f3ee;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.contact-links a:hover {
  background: #f6f3ee;
  border-color: #f6f3ee;
  color: #0d1a22;
}
.contact-email {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  letter-spacing: 0.02em;
  color: #0f1112;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.25s;
}
.contact-email:hover { opacity: 0.7; }
.contact-actions {
  margin-top: 2.25rem;
}

/* Contact form (two-step) */
.contact-form {
  margin: 0;
  max-width: 100%;
  text-align: left;
}
.contact-form__progress {
  display: flex;
  gap: 8px;
  width: 100%;
  height: 4px;
  margin: 0 0 1.75rem;
}
.contact-form__progress-segment {
  position: relative;
  flex: 1;
  height: 100%;
  background: rgba(15, 17, 18, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.contact-form__progress-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0f1112;
  border-radius: 999px;
  transform: translateX(-101%);
  transition: transform 0.4s ease;
}
.contact-form__progress[data-step="1"] .contact-form__progress-segment:nth-child(1)::after,
.contact-form__progress[data-step="2"] .contact-form__progress-segment::after {
  transform: translateX(0);
}

.contact-form__step {
  border: 0;
  padding: 0;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-form__step.is-active { display: flex; }

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form__field > span {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 17, 18, 0.7);
}
.contact-form__field input,
.contact-form__field textarea,
.contact-form__field select {
  font: inherit;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #0f1112;
  background: #fff;
  border: 1.5px solid rgba(15, 17, 18, 0.18);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.contact-form__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='none' stroke='%230f1112' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus,
.contact-form__field select:focus {
  border-color: #0f1112;
  box-shadow: 0 0 0 3px rgba(15, 17, 18, 0.08);
}

.contact-form__question {
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f1112;
  margin: 0 0 0.4rem;
  padding: 0;
  text-align: left;
  width: 100%;
  display: block;
}
.contact-form__field--choices {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.contact-form__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.contact-form__choice {
  position: relative;
  cursor: pointer;
}
.contact-form__choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.contact-form__choice span {
  display: block;
  text-align: center;
  padding: 0.95rem 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f1112;
  background: #fff;
  border: 1.5px solid rgba(15, 17, 18, 0.18);
  border-radius: 6px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.contact-form__choice:hover span { border-color: rgba(15, 17, 18, 0.5); }
.contact-form__choice input:checked + span {
  background: #0f1112;
  color: #fff;
  border-color: #0f1112;
}
.contact-form__choice input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(15, 17, 18, 0.18);
}

.contact-form__actions {
  margin-top: 0.6rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}
.contact-form__back { opacity: 0.85; }

.contact-form__success {
  text-align: center;
  padding: 2rem 0;
}
.contact-form__success h3 {
  font-family: 'Causten', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: #0f1112;
}
.contact-form__success p {
  margin: 0;
  color: rgba(15, 17, 18, 0.7);
  font-size: 1rem;
}

@media (max-width: 480px) {
  .contact-form__choices { grid-template-columns: 1fr; }
  .contact-form__actions { flex-direction: column-reverse; }
  .contact-form__actions .btn { width: 100%; }
}


/* =========================================================
   SCROLL-REVEAL
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-content, .hero-headline {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  /* Freeze on style 1 — disable wipe animation entirely */
  .hero-style.is-wiping-out { animation: none !important; clip-path: none !important; }
  html { scroll-behavior: auto; }
}

.svg-goo-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

