@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Mr Dafoe"; src: url("/assets/fonts/mr-dafoe-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ==========================================================================
   Ovcar Designs — design system
   Black + brand red (#ff4328). Hand-authored, no framework.
   Motion: only transform/opacity. All GSAP motion is additive and
   gated by prefers-reduced-motion in site.js (content is visible without JS).
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Brand */
  --red: #ff4328;
  --red-deep: #d8311a;
  --red-soft: #ff6a54;

  /* Surfaces (layering: base -> elevated -> floating) */
  --bg: #0a0908;
  --bg-pure: #000;
  --surface: #121110;
  --elevated: #1a1917;
  --floating: #232120;

  /* Ink */
  --text: #f6f3ef;
  --muted: #a39d96;
  --faint: #8a847d;
  --line: rgba(246, 243, 239, 0.10);
  --line-strong: rgba(246, 243, 239, 0.18);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-script: "Mr Dafoe", "Snell Roundhand", cursive;

  /* Fluid type scale */
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  --fs-body: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  --fs-lead: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  --fs-h3: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  --fs-h2: clamp(2.1rem, 1.4rem + 3.4vw, 4.2rem);
  --fs-display: clamp(3rem, 1.4rem + 7.6vw, 9rem);

  /* Spacing */
  --space-section: clamp(5rem, 3rem + 9vw, 11rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --maxw: 1280px;

  /* Radii + shadows (layered, red-tinted, low opacity) */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow:
    0 1px 1px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 24px 60px rgba(216, 49, 26, 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Grain overlay for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Layout primitives -------------------------------------------------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; z-index: 2; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.8em;
  height: 1px;
  background: var(--red);
  display: inline-block;
}

h1, h2, h3, .display {
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.12; }

/* Cursive accent for slogans (used sparingly, 1 phrase per slogan) */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  color: var(--red);
  font-size: 1.65em;
  line-height: 0.9;
  white-space: nowrap;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text); max-width: 46ch; }
.muted { color: var(--muted); }
.text-red { color: var(--red); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #140402;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: 100px;
  min-height: 48px;
  will-change: transform;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn .btn__label { position: relative; z-index: 1; }
.btn .btn__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.btn:hover { background: var(--red-soft); }
.btn:active { transform: scale(0.97); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { --btn-bg: rgba(246,243,239,0.06); background: rgba(246,243,239,0.06); border-color: var(--text); }

/* magnetic wrapper (JS translates the inner .btn) */
.magnetic { display: inline-block; }

/* ---- Nav ---------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 0.6rem + 1.4vw, 1.6rem) var(--gutter);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__logo, .footer__logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.logo-full { width: auto; display: block; flex-shrink: 0; aspect-ratio: 1200 / 294; }
.nav__logo .logo-full { height: clamp(40px, 3.4vw, 50px); }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2.4rem); }
.nav__links a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  position: relative;
  padding: 0.4em 0;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__desktop { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2.4rem); }
.nav__cta .btn { padding: 0.7em 1.2em; min-height: 42px; }

.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav__toggle span { position: relative; width: 22px; height: 2px; background: var(--text); transition: background 0.2s; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text);
  transition: transform 0.4s var(--ease), top 0.3s var(--ease), bottom 0.3s var(--ease);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { bottom: -7px; }

/* Mobile overlay menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--bg-pure);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  visibility: hidden;
}
.menu.is-open { transform: translateY(0); visibility: visible; }
.menu a {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 12vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 0.2em 0;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.menu a span { font-family: var(--font-sans); font-size: 0.8rem; color: var(--red); font-weight: 400; }
.menu__foot { margin-top: 2rem; font-family: var(--font-sans); font-size: 0.8rem; color: var(--muted); }
body.menu-open { overflow: hidden; }

@media (max-width: 760px) {
  .nav__desktop { display: none; }
  .nav__toggle { display: inline-flex; }
  body.menu-open .nav__toggle span { background: transparent; }
  body.menu-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
  body.menu-open .nav__toggle span::after { bottom: 0; transform: rotate(-45deg); }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem var(--gutter) 4rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(55% 45% at 50% 20%, rgba(255, 67, 40, 0.18), transparent 68%),
    radial-gradient(42% 42% at 82% 80%, rgba(216, 49, 26, 0.13), transparent 70%),
    radial-gradient(45% 45% at 15% 82%, rgba(255, 106, 84, 0.09), transparent 72%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(1.4rem, 3vw, 2.4rem); }
.hero__logo { position: relative; width: min(78vw, 640px); aspect-ratio: 1170 / 638; }
.hero__logo .logo { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.logo-glow { position: absolute; inset: -18% -12%; background: radial-gradient(closest-side, rgba(255, 67, 40, 0.34), rgba(255, 67, 40, 0.1) 55%, transparent 75%); animation: logo-glow-in 1.4s 0.1s var(--ease) both; pointer-events: none; }

/* Logo animation: letters rise, pen draws the scribble, shadow pops, "designs" lands, then it stays still. */
.logo .ltr, .logo .dsg { transform-box: fill-box; transform-origin: 50% 100%; }
.logo .ltr { animation: ltr-in 0.9s calc(0.15s + var(--i) * 0.07s) cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.logo .dsg { animation: dsg-in 0.6s calc(1.85s + var(--i) * 0.05s) var(--ease) both; }
.logo .pen { stroke-dasharray: 1 2; stroke-dashoffset: 0; animation: pen-draw 1s 0.75s cubic-bezier(0.65, 0, 0.35, 1) both; }
.logo .shadow { animation: shadow-pop 0.6s 1.7s var(--ease) both; }
@keyframes ltr-in { from { transform: translateY(110px) scaleY(1.2); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes dsg-in { from { transform: translateY(34px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pen-draw { from { stroke-dashoffset: 1.001; } to { stroke-dashoffset: 0; } }
@keyframes shadow-pop { from { transform: translateY(-7.7px); } to { transform: none; } }
@keyframes logo-glow-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .logo .scr { mask: none; animation: scr-in 0.9s 0.7s var(--ease) both; }
  @keyframes scr-in { from { transform: scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .logo *, .logo-glow { animation: none !important; }
}
.hero__title { font-size: var(--fs-h3); font-weight: 500; max-width: 20ch; color: var(--text); font-family: var(--font-display); letter-spacing: -0.01em; }
.hero__title b { color: var(--red); font-weight: 600; }
/* Hero slogan: "earn their keep" is written in left to right after the rest of the line, then the red full stop lands. */
.hero__title .dot { color: var(--red); }
.js .hero__title .script { display: inline-block; padding: 0.2em 0.3em; margin: -0.2em -0.3em; -webkit-mask: linear-gradient(90deg, #000 33.3%, transparent 41.7%) 100% 0 / 300% 100% no-repeat; mask: linear-gradient(90deg, #000 33.3%, transparent 41.7%) 100% 0 / 300% 100% no-repeat; }
.js .hero__title.is-in .script { animation: script-write 1.6s 0.6s cubic-bezier(0.4, 0.1, 0.3, 1) both; }
.js .hero__title .dot { opacity: 0; }
.js .hero__title.is-in .dot { animation: dot-in 0.4s 2.2s var(--ease) both; }
@keyframes script-write { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes dot-in { from { opacity: 0; transform: translateY(-0.2em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero__title .script { -webkit-mask: none; mask: none; animation: none !important; }
  .js .hero__title .dot { opacity: 1; animation: none !important; }
}
.hero__sub { font-family: var(--font-sans); color: var(--muted); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.hero__scroll {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  z-index: 2;
}

/* ---- Reveal animation state -------------------------------------------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(26px); will-change: transform, opacity; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---- Marquee ------------------------------------------------------------ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(1rem, 2vw, 1.6rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; gap: 2.5rem; white-space: nowrap; will-change: transform; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.01em; color: var(--text); display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee__track span::after { content: "✦"; color: var(--red); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---- Services / stat tiles --------------------------------------------- */
.lede-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .lede-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: repeat(2, 1fr); }
.tile { background: var(--surface); padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: 0.5rem; align-content: start; min-height: 150px; transition: background-color 0.4s var(--ease); }
.tile:hover { background: var(--elevated); }
.tile__n { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--red); }
.tile h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.tile p { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }

/* ---- Work (hover-reveal list) ------------------------------------------ */
.work__list { border-top: 1px solid var(--line); }
.work__row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.6rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease), color 0.4s var(--ease);
}
.work__row:hover { padding-left: 1.6rem; }
.work__row::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.work__row:hover::before { transform: scaleY(1); }
.work__idx { font-family: var(--font-sans); font-size: 0.78rem; color: var(--faint); }
.work__name { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 3.2rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1; transition: color 0.3s var(--ease); }
.work__row:hover .work__name { color: var(--red); }
.work__tags { font-family: var(--font-sans); font-size: 0.76rem; color: var(--muted); text-align: right; letter-spacing: 0.03em; }

/* cursor-following preview (desktop) */
.work__preview {
  position: fixed;
  top: 0; left: 0;
  width: 300px; height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-rows: 24px minmax(0, 1fr);
  background: #17140f;
  pointer-events: none;
  opacity: 0;
  z-index: 40;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%) scale(0.8);
  will-change: transform, opacity;
}
.work__preview img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.work__preview.is-on { opacity: 1; }

/* browser-window frame around the work screenshots */
.work__preview::before, .work__thumb::before {
  content: attr(data-url);
  display: flex; align-items: center;
  padding-left: 56px;
  background:
    radial-gradient(circle 3.5px at 14px 50%, var(--red) 96%, transparent),
    radial-gradient(circle 3.5px at 28px 50%, #6b655e 96%, transparent),
    radial-gradient(circle 3.5px at 42px 50%, #6b655e 96%, transparent),
    #24201b;
  font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.02em; color: var(--muted);
  white-space: nowrap; overflow: hidden;
}

/* mobile inline thumb */
.work__thumb { display: none; }
@media (max-width: 760px) {
  .work__row { grid-template-columns: auto 1fr; }
  .work__tags { grid-column: 2; text-align: left; }
  .work__thumb { display: grid; grid-template-rows: 28px minmax(0, 1fr); grid-column: 1 / -1; margin-top: 1rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: #17140f; }
  .work__thumb img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
  .work__preview { display: none; }
}

/* ---- Testimonials ------------------------------------------------------- */
.quotes { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.4rem;
  align-content: space-between;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.quote:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.quote__mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.5; color: var(--red); height: 0.5em; }
.quote p { font-size: 1rem; line-height: 1.65; color: var(--text); }
.quote__by { display: flex; align-items: center; gap: 0.8rem; }
.quote__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--elevated); flex: none; overflow: hidden; }
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote__name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.quote__role { font-family: var(--font-sans); font-size: 0.74rem; color: var(--muted); }

.logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 5vw, 3.5rem); justify-content: center; margin-top: clamp(2.5rem, 5vw, 4rem); opacity: 0.7; }
.logos span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.4rem); letter-spacing: -0.02em; color: var(--muted); }

/* ---- Book / contact ----------------------------------------------------- */
.book { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; }
.book__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .book__grid { grid-template-columns: 0.85fr 1.15fr; } }
.book__aside { padding: clamp(1.8rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,67,40,0.07), transparent); }
@media (min-width: 900px) { .book__aside { border-bottom: 0; border-right: 1px solid var(--line); } }
.book__aside h2 { font-size: var(--fs-h3); }
.book__steps { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: 1rem; }
.book__steps li { font-family: var(--font-sans); font-size: 0.86rem; color: var(--muted); display: flex; gap: 0.8rem; }
.book__steps b { color: var(--red); }
.book__form { padding: clamp(1.8rem, 4vw, 3rem); }

.form__row { display: grid; gap: 0.5rem; margin-bottom: 1.1rem; }
.form__row--2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.85em 1em;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,67,40,0.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field .err { font-family: var(--font-sans); font-size: 0.74rem; color: var(--red-soft); min-height: 1em; }
.form__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form__status { font-family: var(--font-sans); font-size: 0.84rem; }
.form__status[data-state="ok"] { color: #5ad17a; }
.form__status[data-state="err"] { color: var(--red-soft); }

/* Booking reveal */
.booking { margin-top: 1.6rem; display: none; }
.booking.is-open { display: block; }
.booking__frame { border: 1px solid var(--line); border-radius: var(--radius); min-height: 480px; background: var(--bg); }

/* ---- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem); position: relative; z-index: 2; }
.footer__top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__cta { position: relative; overflow: hidden; text-align: center; display: grid; gap: 1.4rem; justify-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.footer__cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 130% at 50% 0%, rgba(255, 67, 40, 0.22), transparent 70%); pointer-events: none; }
.footer__cta > * { position: relative; }
.footer__cta .footer__big { font-size: clamp(2rem, 6vw, 3.6rem); max-width: 16ch; }
.footer__logo { margin-bottom: 1.2rem; }
.footer__logo .logo-full { height: 54px; }
.footer__big { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: -0.015em; max-width: 18ch; }
.footer__col h3 { font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--muted); font-family: var(--font-sans); font-size: 0.9rem; padding: 0.3em 0; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--red); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--font-sans); font-size: 0.78rem; color: var(--faint); }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.to-top:hover { color: var(--red); }

/* ---- Section heading helper -------------------------------------------- */
.section__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 60ch; }
.section__head.spread { max-width: none; grid-template-columns: 1fr; }
@media (min-width: 820px) { .section__head.spread { grid-template-columns: 1fr auto; align-items: end; } }

/* ---- About page specifics ---------------------------------------------- */
.about-hero { padding: clamp(8rem, 14vh, 12rem) 0 var(--space-section); position: relative; z-index: 2; }
.about-hero h1 { font-size: var(--fs-display); max-width: 14ch; }
.about-hero h1 em { color: var(--red); font-style: normal; }
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-portrait { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--elevated); position: relative; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(255,67,40,0.18), transparent 55%); mix-blend-mode: multiply; }
.values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.value { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.2rem); display: grid; gap: 0.6rem; }
.value__n { font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.18em; color: var(--red); }
.value h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.value p { color: var(--muted); font-size: 0.95rem; }


/* ---- CTA band ----------------------------------------------------------- */
.cta-band { text-align: center; display: grid; gap: 1.6rem; justify-items: center; }
.cta-band h2 { font-size: var(--fs-h2); max-width: 16ch; }

/* ---- Pricing ------------------------------------------------------------ */
.pricing { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .pricing { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); display: grid; gap: 1.4rem; align-content: start; transition: transform 0.5s var(--ease), border-color 0.4s var(--ease); }
.plan:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.plan--featured { border-color: rgba(255, 67, 40, 0.5); background: linear-gradient(180deg, rgba(255, 67, 40, 0.08), var(--surface) 60%); box-shadow: var(--shadow); }
@media (min-width: 860px) { .plan--featured { transform: translateY(-12px); } .plan--featured:hover { transform: translateY(-18px); } }
.plan__head { display: grid; gap: 0.5rem; position: relative; }
.plan__badge { position: absolute; top: -0.2rem; right: 0; font-family: var(--font-sans); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); border: 1px solid rgba(255, 67, 40, 0.4); border-radius: 100px; padding: 0.3em 0.7em; }
.plan__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.plan__price { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan__tag { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.plan__list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.plan__list li { font-family: var(--font-sans); font-size: 0.86rem; color: var(--text); padding-left: 1.5rem; position: relative; line-height: 1.4; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); }
.plan__cta { display: block; }
.plan__cta .btn { width: 100%; justify-content: center; }
.pricing-note { font-family: var(--font-sans); font-size: 0.8rem; }
.care { margin-top: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem) clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; position: relative; overflow: hidden; }
.care::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 140% at 100% 0%, rgba(255, 67, 40, 0.1), transparent 70%); pointer-events: none; }
.care__text { max-width: 60ch; position: relative; }
.care__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.care__price { color: var(--red); letter-spacing: -0.03em; }
.care__per { font-family: var(--font-sans); font-size: 0.9rem; color: var(--muted); letter-spacing: 0; }
.care__cta { position: relative; flex-shrink: 0; }
@media (max-width: 600px) { .care__cta, .care__cta .btn { width: 100%; justify-content: center; } }

/* utilities */
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Process: scroll-driven 3D ------------------------------------------ */
.process { position: relative; z-index: 2; padding-block: var(--space-section); }
.process__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.process__stage { display: none; }
.process__steps { list-style: none; padding: 0 0 0 1.8rem; margin-top: 2rem; display: grid; gap: 1.5rem; position: relative; border-left: 1px solid var(--line); }
.pstep { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.pstep__n { font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.18em; color: var(--red); padding-top: 0.4rem; }
.pstep h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.pstep p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-top: 0.4rem; max-width: 42ch; }

.p3d .process { height: 300vh; padding-block: 0; }
.p3d .process__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.p3d .process__grid { padding-top: 64px; align-items: center; }
.p3d .process h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.p3d .process__steps { gap: 1.1rem; margin-top: 1.4rem; }
.p3d .process__stage { display: block; position: relative; height: min(64vh, 580px); }
.p3d .process__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.p3d .process__steps::after { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: 100%; background: var(--red); transform-origin: top; transform: scaleY(var(--p, 0)); }
.p3d .pstep { opacity: 0.32; transition: opacity 0.45s var(--ease); }
.p3d .pstep.is-active { opacity: 1; }
@media (min-width: 860px) {
  .p3d .process__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: 3rem; }
}
@media (max-width: 859px) {
  .p3d .process h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .p3d .process__grid { gap: 0.25rem; align-content: center; }
  .p3d .process__stage { order: -1; height: 38vh; }
  .p3d .process__steps { margin-top: 0.75rem; padding-left: 0; border-left: 0; }
  .p3d .process__steps::after { display: none; }
  .p3d .pstep:not(.is-active) { display: none; }
}

/* Form: Care Plan add-on checkbox */
.check { display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 1.1rem; padding: 0.9rem 1rem; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.field + .check { margin-top: 1.1rem; }
.check:hover { border-color: var(--line-strong); }
.check:has(input:checked) { border-color: rgba(255, 67, 40, 0.55); background: rgba(255, 67, 40, 0.06); }
.check:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255, 67, 40, 0.35); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--red); flex-shrink: 0; }
.check span { display: block; font-family: var(--font-sans); font-size: 0.95rem; color: var(--text); }
.check b { color: var(--red); font-weight: 600; }
.check small { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.8rem; }

/* ---- Compare packages + FAQ (native <details>, no JS) -------------------- */
.pm { position: relative; flex: none; width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: var(--red); border-radius: 2px; }
.pm::after { transform: rotate(90deg); }
details[open] > summary .pm { transform: rotate(45deg); }
.compare > summary, .qa > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.compare > summary::-webkit-details-marker, .qa > summary::-webkit-details-marker { display: none; }
.compare > summary:focus-visible, .qa > summary:focus-visible, .compare__scroll:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.compare { margin-top: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.compare > summary { padding: 1.1rem clamp(1.3rem, 3vw, 2rem); font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; }
.compare__scroll { overflow-x: auto; padding: 0 clamp(1.3rem, 3vw, 2rem) 1.4rem; }
.compare table { width: 100%; min-width: 540px; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.9rem; }
.compare th, .compare td { padding: 0.8rem 0.6rem; text-align: center; border-top: 1px solid var(--line); }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: var(--text); }
.compare thead th { border-top: 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.compare thead small { display: block; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 500; color: var(--muted); margin-top: 0.2em; }
.compare .is-featured { color: var(--red); }
.compare td { color: var(--muted); }
.compare .yes { color: var(--red); font-weight: 700; }
.compare .no { color: var(--faint); }
.faq__list { max-width: 820px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa > summary { padding: 1.25rem 0; font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em; transition: color 0.3s var(--ease); }
.qa > summary:hover { color: var(--red); }
.qa__a { padding: 0 2.2rem 1.4rem 0; color: var(--muted); max-width: 62ch; line-height: 1.7; }
.qa[open] .qa__a { animation: qa-in 0.45s var(--ease) both; }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qa[open] .qa__a { animation: none; } .pm { transition: none; } }
@media (max-width: 640px) {
  .compare table { min-width: 0; font-size: 0.78rem; }
  .compare th, .compare td { padding: 0.7rem 0.3rem; }
  .compare th[scope="row"] { width: 38%; }
  .compare thead th { font-size: 0.88rem; }
  .compare thead small { font-size: 0.7rem; }
}

/* ---- Legal pages + footer links ----------------------------------------- */
.legal { max-width: 70ch; color: var(--muted); line-height: 1.75; }
.legal h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--text); margin: 2.2rem 0 0.6rem; }
.legal p + p, .legal ul { margin-top: 0.8rem; }
.legal ul { padding-left: 1.2em; display: grid; gap: 0.5rem; }
.legal b { color: var(--text); font-weight: 600; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--text); }
.footer__legal { display: flex; gap: 1.2rem; }
.footer__legal a { color: var(--faint); transition: color 0.3s var(--ease); }
.footer__legal a:hover { color: var(--red); }
.form__note { margin-top: 0.9rem; font-family: var(--font-sans); font-size: 0.76rem; color: var(--faint); }
.form__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
