/* ==========================================================================
   Stitchwork Noir — design system
   Palette derived from the original logo:
   ink #231F20 · indigo #232967 · ocean #008BC2 · cyan #00AEEF
   ========================================================================== */

:root {
  /* Core palette */
  --ink-950: #07081a;          /* Midnight Thread — deepest page background */
  --ink-900: #0b0d22;          /* Night Indigo — dark section background */
  --ink-800: #12163a;          /* Hoop Indigo — raised dark surfaces */
  --ink-700: #1b2150;          /* Bobbin Indigo — borders / hovers on dark */
  --indigo: #232967;           /* Logo Indigo — chevron top */
  --ocean: #008bc2;            /* Logo Ocean — chevron middle, links on light */
  --cyan: #00aeef;             /* Logo Cyan — chevron tip, accents on dark */
  --cyan-soft: #6fd6ff;        /* Cyan Glow — hover/focus glow on dark */
  --logo-black: #231f20;       /* Logo Black — headings on light */

  --linen-50: #fbfaf7;         /* Linen White — light surfaces */
  --linen-100: #f4f1ea;        /* Raw Linen — light section background */
  --linen-200: #e8e3d8;        /* Canvas — borders on light */
  --linen-300: #d6cfc0;        /* Twill — stitch lines on light */

  --text-on-dark: #eef1ff;     /* Chalk Thread — body text on dark */
  --muted-on-dark: #a6aed6;    /* Fog Indigo — secondary text on dark (AA on ink-900) */
  --text-on-light: #231f20;    /* Logo Black — body text on light */
  --muted-on-light: #4f4c58;   /* Graphite — secondary text on light (AA) */

  --success: #2fd38a;
  --error: #ff6b6b;
  --star: #ffc94d;

  /* Signature gradient (the logo chevron) */
  --chevron: linear-gradient(160deg, #2a2f7a 0%, #0a4f8c 48%, #00aeef 100%);
  --chevron-text: linear-gradient(100deg, #8fa0ff 0%, #34c2ff 55%, #9be7ff 100%);

  /* Typography */
  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1.07rem + 0.3vw, 1.3rem);
  --fs-xl: clamp(1.35rem, 1.2rem + 0.75vw, 1.8rem);
  --fs-2xl: clamp(1.8rem, 1.45rem + 1.6vw, 2.8rem);
  --fs-3xl: clamp(2.3rem, 1.7rem + 2.8vw, 4.2rem);
  --fs-hero: clamp(2.3rem, 1rem + 4.1vw, 5.1rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;   --space-7: 3rem;    --space-8: 4rem;
  --space-9: 6rem;    --space-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --container: 1240px;

  /* Radii */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  /* Layered shadows */
  --shadow-1: 0 1px 1px rgba(7, 8, 26, .08), 0 2px 4px rgba(7, 8, 26, .08);
  --shadow-2: 0 1px 2px rgba(7, 8, 26, .10), 0 4px 8px rgba(7, 8, 26, .10), 0 12px 24px rgba(7, 8, 26, .10);
  --shadow-3: 0 2px 4px rgba(7, 8, 26, .12), 0 8px 16px rgba(7, 8, 26, .14), 0 24px 48px rgba(7, 8, 26, .18), 0 48px 96px rgba(7, 8, 26, .16);
  --shadow-glow: 0 0 0 1px rgba(0, 174, 239, .35), 0 8px 30px rgba(0, 174, 239, .25), 0 20px 60px rgba(35, 41, 103, .45);
  --shadow-dark: 0 2px 6px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35), 0 40px 80px rgba(0, 0, 0, .35);

  /* Glass */
  --glass-bg: rgba(18, 22, 58, .55);
  --glass-border: rgba(166, 174, 214, .18);
  --glass-blur: blur(18px) saturate(140%);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-1: 160ms; --dur-2: 260ms; --dur-3: 520ms; --dur-4: 900ms;

  /* Layout */
  --topbar-h: 40px;
  --header-h: 84px;
  --header-h-sm: 64px;

  /* Z-index scale */
  --z-base: 1; --z-raised: 10; --z-header: 50; --z-mobilebar: 60; --z-drawer: 70; --z-modal: 90;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--header-h-sm) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-on-dark);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 var(--space-4); font-weight: 800; letter-spacing: -0.01em; font-stretch: 112%; }
p { margin: 0 0 var(--space-4); }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--cyan); color: var(--ink-950); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--cyan); color: var(--ink-950); padding: .7rem 1.1rem; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); isolation: isolate; }
.section--light { background: var(--linen-100); color: var(--text-on-light); }
.section--paper { background: var(--linen-50); color: var(--text-on-light); }
.section--dark { background: var(--ink-900); }
.section--deep { background: var(--ink-950); }

/* Fabric weave texture overlay */
.texture::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px);
}
.section--light.texture::before, .section--paper.texture::before {
  background-image:
    repeating-linear-gradient(45deg, rgba(35,31,32,.025) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(35,31,32,.025) 0 2px, transparent 2px 6px);
}

/* Ambient glows */
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: -1; opacity: .55; }
.glow--cyan { background: radial-gradient(circle, rgba(0,174,239,.5), transparent 70%); }
.glow--indigo { background: radial-gradient(circle, rgba(60,70,180,.6), transparent 70%); }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px);
}
.section--light .eyebrow, .section--paper .eyebrow { color: var(--ocean); }
.h-display { font-size: var(--fs-3xl); font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.02em; }
.h-section { font-size: var(--fs-2xl); font-stretch: 115%; }
.lead { font-size: var(--fs-lg); color: var(--muted-on-dark); max-width: 60ch; }
.section--light .lead, .section--paper .lead { color: var(--muted-on-light); }
.grad-text {
  background: var(--chevron-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.section--light .grad-text, .section--paper .grad-text {
  background: linear-gradient(100deg, #232967, #008bc2 60%, #00aeef);
  -webkit-background-clip: text; background-clip: text;
}
.mono { font-family: var(--font-mono); }
.section-head { max-width: 760px; margin-bottom: var(--space-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.prose { max-width: 70ch; }
.prose p { color: var(--muted-on-dark); }
.section--light .prose p, .section--paper .prose p { color: var(--muted-on-light); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--space-7); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--space-6); }
.prose ul { list-style: none; margin: 0 0 var(--space-5); }
.prose li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: repeating-linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px 6px); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.section--light .prose a, .section--paper .prose a { color: var(--ocean); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--chevron);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .9rem 1.6rem; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: var(--fs-sm);
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer; isolation: isolate;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--btn-bg); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary::after {
  content: ""; position: absolute; inset: 3px; border-radius: inherit; z-index: -1; pointer-events: none;
  border: 1.5px dashed rgba(255,255,255,.45);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(0,174,239,.6), 0 12px 40px rgba(0,174,239,.4), 0 24px 70px rgba(35,41,103,.55); }
.btn--ghost { color: var(--text-on-dark); border: 1.5px solid var(--glass-border); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(0,174,239,.08); }
.btn--dark { background: var(--logo-black); color: #fff; box-shadow: var(--shadow-2); }
.btn--dark:hover { background: var(--indigo); }
.section--light .btn--ghost, .section--paper .btn--ghost { color: var(--text-on-light); border-color: var(--linen-300); background: rgba(255,255,255,.6); }
.section--light .btn--ghost:hover, .section--paper .btn--ghost:hover { border-color: var(--ocean); }
.btn:active { transform: scale(.97); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--cyan); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--light .link-arrow, .section--paper .link-arrow { color: var(--ocean); }

/* --------------------------------------------------------------------------
   Top bar + header (sticky, shrinking)
   -------------------------------------------------------------------------- */
.site-top { position: sticky; top: 0; z-index: var(--z-header); }
.topbar {
  height: var(--topbar-h); background: var(--ink-950); border-bottom: 1px solid rgba(166,174,214,.1);
  font-size: var(--fs-xs); color: var(--muted-on-dark); overflow: hidden;
  transition: height var(--dur-3) var(--ease-out);
}
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.topbar__info { display: flex; align-items: center; gap: var(--space-5); min-width: 0; }
.topbar__info a, .topbar__info span { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; transition: color var(--dur-1); }
.topbar__info a:hover { color: var(--cyan); }
.topbar svg { width: 15px; height: 15px; color: var(--cyan); flex: none; }
.topbar__social { display: flex; align-items: center; gap: .25rem; }
.topbar__social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; transition: background var(--dur-1), color var(--dur-1); }
.topbar__social a:hover { background: rgba(0,174,239,.12); color: var(--cyan); }
.topbar__social svg { color: currentColor; }

.header {
  height: var(--header-h);
  background: rgba(11, 13, 34, .72);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(166,174,214,.10);
  transition: height var(--dur-3) var(--ease-out), background var(--dur-3), box-shadow var(--dur-3);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .header { background: rgba(11,13,34,.97); } }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.logo { display: block; flex: none; }
.logo img { height: 46px; width: auto; transition: height var(--dur-3) var(--ease-out); }
.is-scrolled .topbar { height: 32px; }
.is-scrolled .header { height: var(--header-h-sm); background: rgba(7, 8, 26, .86); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.is-scrolled .logo img { height: 34px; }

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav__list { display: flex; align-items: center; gap: .15rem; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .85rem; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted-on-dark); transition: color var(--dur-1), background var(--dur-1);
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item:focus-within > .nav__link { color: #fff; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 5px, transparent 5px 8px);
}
.nav__link svg { width: 14px; height: 14px; transition: transform var(--dur-2); }
.nav__item { position: relative; }
.nav__item:hover .nav__link svg, .nav__item:focus-within .nav__link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 330px; padding: .6rem;
  background: rgba(14, 17, 44, .92); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--r-lg); box-shadow: var(--shadow-dark);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility var(--dur-2);
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; gap: .8rem; align-items: center; padding: .7rem .8rem; border-radius: var(--r-md); transition: background var(--dur-1); }
.dropdown a:hover { background: rgba(0,174,239,.10); }
.dropdown__icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--chevron); color: #fff; }
.dropdown__icon svg { width: 19px; height: 19px; }
.dropdown strong { display: block; font-size: var(--fs-sm); color: #fff; }
.dropdown small { display: block; color: var(--muted-on-dark); font-size: var(--fs-xs); line-height: 1.4; }
.header__cta { display: flex; align-items: center; gap: var(--space-3); }
.header__cta .btn { min-height: 46px; padding: .7rem 1.25rem; }
.header__phone { white-space: nowrap; display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: var(--fs-sm); }
.header__phone span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px dashed rgba(0,174,239,.6); color: var(--cyan); transition: background var(--dur-2); }
.header__phone:hover span { background: rgba(0,174,239,.12); }
.header__phone svg { width: 18px; height: 18px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-border); place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform var(--dur-2) var(--ease-out), background var(--dur-2); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer); display: flex; justify-content: flex-end;
  background: rgba(7,8,26,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-3) var(--ease-out), visibility var(--dur-3);
}
.drawer__panel {
  width: min(88vw, 400px); height: 100%; overflow-y: auto; padding: var(--space-5) var(--space-5) var(--space-8);
  background: var(--ink-900); border-left: 1px solid var(--glass-border);
  transform: translateX(100%); transition: transform var(--dur-3) var(--ease-out);
}
.nav-open .drawer { opacity: 1; visibility: visible; }
.nav-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); }
.drawer__head img { height: 32px; width: auto; }
.drawer__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--glass-border); }
.drawer__close svg { width: 20px; height: 20px; }
.drawer nav a { display: block; padding: .85rem 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; border-bottom: 1px dashed rgba(166,174,214,.18); }
.drawer nav a[aria-current="page"] { color: var(--cyan); }
.drawer nav .sub a { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--muted-on-dark); padding-left: 1rem; }
.drawer .btn { width: 100%; margin-top: var(--space-6); }
.drawer__contact { margin-top: var(--space-6); color: var(--muted-on-dark); font-size: var(--fs-sm); display: grid; gap: .6rem; }
html.no-scroll, body.no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   Stitch line (SVG that sews itself in)
   -------------------------------------------------------------------------- */
.stitch-svg { position: absolute; pointer-events: none; overflow: visible; }
.stitch-svg .thread { fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 9 7; }
.stitch-svg .sew { fill: none; stroke: #fff; stroke-width: 8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-in-out); }
.stitch-svg.is-sewn .sew { stroke-dashoffset: 0; }
.stitch-divider { position: relative; height: 40px; overflow: hidden; }
.stitch-divider svg { width: 100%; height: 40px; }
.stitch-divider .thread { stroke: var(--linen-300); }

/* Stitched border helper */
.stitched { position: relative; }
.stitched::after {
  content: ""; position: absolute; inset: 8px; border-radius: calc(var(--r) - 8px); pointer-events: none;
  border: 1.5px dashed var(--stitch-color, rgba(166,174,214,.28));
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: calc(100svh - var(--topbar-h) - var(--header-h)); display: flex; align-items: center; padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem); overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #18205a 0%, var(--ink-950) 55%); isolation: isolate; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 4vw, 5rem); align-items: center; }
.hero__title { font-size: var(--fs-hero); font-stretch: 120%; text-transform: uppercase; line-height: .95; letter-spacing: -0.025em; margin-bottom: var(--space-5); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 120ms + 150ms); }
.hero__title .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(238,241,255,.75); }
@keyframes rise { to { transform: none; } }
.hero__text { font-size: var(--fs-lg); color: var(--muted-on-dark); max-width: 54ch; margin-bottom: var(--space-6); }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }
.chip {
  display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .95rem; border-radius: var(--r-pill);
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); font-size: var(--fs-xs); font-weight: 600; color: var(--text-on-dark);
}
.chip svg { width: 16px; height: 16px; color: var(--cyan); }
.chip .stars { color: var(--star); letter-spacing: 1px; }

.hero__art { position: relative; aspect-ratio: 1 / 1.02; perspective: 1400px; }
.hoop {
  position: absolute; inset: 6% 8% 8% 6%; border-radius: 50%;
  box-shadow: 0 0 0 14px #1c2252, 0 0 0 16px rgba(0,174,239,.4), 0 0 0 30px #141a44, var(--shadow-dark);
  overflow: hidden; transform-style: preserve-3d;
}
.hoop img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hoop::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(180deg, transparent 50%, rgba(7,8,26,.55)); }
.hoop-ring { position: absolute; inset: 1%; z-index: 2; }
.hoop-ring .thread { stroke: rgba(111,214,255,.85); }
.hoop-clasp { position: absolute; top: 2%; left: 50%; width: 64px; height: 34px; transform: translateX(-50%); z-index: 3; border-radius: 10px; background: linear-gradient(180deg, #2b3270, #161b46); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.2); }
.hoop-clasp::after { content: ""; position: absolute; inset: 9px 18px; border-radius: 6px; background: linear-gradient(90deg, #9aa7d8, #e6ecff, #9aa7d8); }

.tag-card {
  position: absolute; z-index: 4; width: clamp(130px, 13vw, 180px); padding: 12px 12px 14px; border-radius: 14px;
  background: var(--linen-50); color: var(--text-on-light); box-shadow: var(--shadow-3);
  --r: 14px; --stitch-color: var(--linen-300);
}
.tag-card::before { content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ink-950); box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.tag-card img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-top: 18px; }
.tag-card small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ocean); margin-top: 6px; }
.tag-card strong { display: block; font-family: var(--font-display); font-size: .9rem; line-height: 1.15; }
.tag-card--a { top: 4%; right: -2%; transform: rotate(7deg); }
.tag-card--b { bottom: 2%; left: -4%; transform: rotate(-8deg); }
.spool { position: absolute; z-index: 5; display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem .55rem .55rem; border-radius: var(--r-pill); background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-dark); font-size: var(--fs-xs); font-weight: 700; }
.spool i { width: 30px; height: 30px; border-radius: 50%; background: repeating-linear-gradient(0deg, var(--c) 0 2px, color-mix(in srgb, var(--c) 70%, #000) 2px 4px); box-shadow: inset 0 0 0 3px rgba(255,255,255,.15); }
.spool--a { left: 2%; top: 26%; }
.spool--b { right: 0; bottom: 24%; }

.float { animation: float 7s ease-in-out infinite; }
.float--slow { animation-duration: 9s; animation-delay: -2s; }
.float--alt { animation-duration: 8s; animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: .5rem; font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-on-dark); }
.scroll-cue span { width: 2px; height: 38px; background: repeating-linear-gradient(180deg, var(--cyan) 0 5px, transparent 5px 9px); animation: cue 2.4s linear infinite; }
@keyframes cue { to { background-position: 0 28px; } }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { position: relative; padding-block: clamp(4rem, 8vw, 7.5rem) clamp(3.5rem, 6vw, 5.5rem); overflow: hidden; isolation: isolate; background: radial-gradient(90% 120% at 90% 0%, #1a2260 0%, var(--ink-950) 60%); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-8); align-items: center; }
.page-hero h1 { overflow-wrap: anywhere; font-size: var(--fs-3xl); font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.02em; }
.page-hero .lead { margin-bottom: var(--space-6); }
.page-hero__media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-dark); transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); --r: var(--r-xl); }
.page-hero__media img { width: 100%; height: 115%; object-fit: cover; }
.page-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(7,8,26,.6)); }
.page-hero__media.stitched::after { z-index: 2; --stitch-color: rgba(255,255,255,.55); }
.breadcrumbs { margin-bottom: var(--space-5); font-size: var(--fs-xs); font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--cyan); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current] { color: var(--text-on-dark); }

/* --------------------------------------------------------------------------
   Brand marquee
   -------------------------------------------------------------------------- */
.marquee { position: relative; overflow: hidden; padding-block: var(--space-6); background: var(--linen-50); border-block: 1px solid var(--linen-200); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: clamp(2rem, 4vw, 4rem); width: max-content; animation: marquee 60s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 46px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .7; mix-blend-mode: multiply; transition: filter var(--dur-2), opacity var(--dur-2); }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-label { text-align: center; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-on-light); background: var(--linen-50); padding-top: var(--space-6); margin: 0; }

/* --------------------------------------------------------------------------
   Service hang-tag cards (3D tilt)
   -------------------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); perspective: 1600px; }
.svc-card {
  --r: var(--r-lg);
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(27,33,80,.85), rgba(14,17,44,.95)); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-dark); transform-style: preserve-3d; transition: box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-3);
  cursor: pointer;
}
.svc-card:hover { border-color: rgba(0,174,239,.45); box-shadow: var(--shadow-glow); }
.svc-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.svc-card:hover .svc-card__media img { transform: scale(1.07); }
.svc-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(14,17,44,.95)); }
.svc-card__num { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; padding: .35rem .7rem; border-radius: var(--r-pill); background: rgba(7,8,26,.6); border: 1px dashed rgba(255,255,255,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.svc-card__body { position: relative; padding: var(--space-5) var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; transform: translateZ(40px); }
.svc-card__icon { width: 54px; height: 54px; margin-top: -48px; display: grid; place-items: center; border-radius: 16px; background: var(--chevron); box-shadow: var(--shadow-glow); color: #fff; position: relative; z-index: 2; }
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: var(--fs-xl); margin: 0; }
.svc-card p { color: var(--muted-on-dark); margin: 0; font-size: var(--fs-sm); }
.svc-card .link-arrow { margin-top: auto; padding-top: var(--space-3); }
.svc-card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.svc-card.stitched::after { z-index: 4; inset: 7px; border-radius: calc(var(--r-lg) - 7px); opacity: 0; transition: opacity var(--dur-3); --stitch-color: rgba(111,214,255,.5); }
.svc-card:hover.stitched::after { opacity: 1; }
.svc-card--wide { grid-column: span 2; flex-direction: row; }
.svc-card--wide .svc-card__media { flex: 1.1; aspect-ratio: auto; }
.svc-card--wide .svc-card__media::after { background: linear-gradient(90deg, transparent 50%, rgba(14,17,44,.95)); }
.svc-card--wide .svc-card__body { flex: 1; justify-content: center; }
.svc-card--wide .svc-card__icon { margin-top: 0; }

/* --------------------------------------------------------------------------
   Product rail (Fall arrivals)
   -------------------------------------------------------------------------- */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-5); margin-bottom: var(--space-7); flex-wrap: wrap; }
.rail-head .section-head { margin-bottom: 0; }
.rail-controls { display: flex; gap: var(--space-2); }
.rail-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--linen-300); background: #fff; color: var(--text-on-light); transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2); }
.rail-btn:hover { background: var(--logo-black); color: #fff; border-color: var(--logo-black); }
.rail-btn svg { width: 20px; height: 20px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 320px); gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--space-3) var(--gutter) var(--space-6); margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.product {
  --r: var(--r-lg); --stitch-color: var(--linen-300);
  scroll-snap-align: start; position: relative; border-radius: var(--r-lg); background: #fff; padding: var(--space-4); box-shadow: var(--shadow-2);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow-3); }
.product__img { aspect-ratio: 1 / 1.05; display: grid; place-items: center; border-radius: var(--r-md); background: linear-gradient(180deg, #fff, var(--linen-100)); overflow: hidden; }
.product__img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform var(--dur-4) var(--ease-out); }
.product:hover .product__img img { transform: scale(1.06) rotate(-1.5deg); }
.product__brand { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ocean); margin: var(--space-4) 0 var(--space-1); }
.product h3 { font-size: 1.12rem; color: var(--text-on-light); margin-bottom: var(--space-2); }
.product p { font-size: var(--fs-sm); color: var(--muted-on-light); margin: 0; }

/* --------------------------------------------------------------------------
   Process / steps
   -------------------------------------------------------------------------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.steps .stitch-svg { left: 6%; right: 6%; top: 34px; width: 88%; height: 30px; }
.step { position: relative; text-align: center; padding: 0 var(--space-3); }
.step__num {
  position: relative; z-index: 2; width: 70px; height: 70px; margin: 0 auto var(--space-5); display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; background: var(--ink-800); border: 2px dashed rgba(0,174,239,.6); box-shadow: 0 0 0 8px var(--ink-900), var(--shadow-glow);
}
.step h3 { font-size: var(--fs-lg); }
.step p { color: var(--muted-on-dark); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   Showroom mosaic (parallax)
   -------------------------------------------------------------------------- */
.showroom { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mosaic { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(70px, 8vw, 110px); gap: var(--space-3); }
.mosaic figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic .m1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.mosaic .m2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.mosaic .m3 { grid-column: 5 / 7; grid-row: 3 / 6; }
.mosaic .m4 { grid-column: 1 / 3; grid-row: 4 / 6; }
.mosaic .m5 { grid-column: 3 / 5; grid-row: 4 / 6; }
.glass-card {
  --r: var(--r-lg);
  position: relative; padding: var(--space-6); border-radius: var(--r-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-dark);
}
.section--light .glass-card, .section--paper .glass-card { background: rgba(255,255,255,.78); border-color: rgba(255,255,255,.9); box-shadow: var(--shadow-3); color: var(--text-on-light); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass-card { background: var(--ink-800); } .section--light .glass-card { background: #fff; } }
.info-list { display: grid; gap: var(--space-4); margin: var(--space-5) 0 var(--space-6); }
.info-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.info-list .ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(0,174,239,.12); color: var(--cyan); border: 1px dashed rgba(0,174,239,.4); }
.section--light .info-list .ico, .section--paper .info-list .ico { color: var(--ocean); background: rgba(0,139,194,.08); }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-size: var(--fs-sm); }
.info-list span, .info-list a { color: var(--muted-on-dark); font-size: var(--fs-sm); }
.section--light .info-list span, .section--light .info-list a, .section--paper .info-list span, .section--paper .info-list a { color: var(--muted-on-light); }
.info-list a:hover { color: var(--cyan); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; font-size: var(--fs-sm); }
.hours dt { font-weight: 700; } .hours dd { margin: 0; color: var(--muted-on-dark); }
.section--light .hours dd, .section--paper .hours dd { color: var(--muted-on-light); }

/* --------------------------------------------------------------------------
   Stats patches
   -------------------------------------------------------------------------- */
.patches { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.patch {
  position: relative; aspect-ratio: 1; display: grid; place-content: center; text-align: center; padding: var(--space-5);
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a3278, #141a46 70%);
  box-shadow: 0 0 0 6px #0e1238, 0 0 0 7px rgba(0,174,239,.35), var(--shadow-dark); transition: transform var(--dur-3) var(--ease-spring);
}
.patch:nth-child(even) { border-radius: 28px; transform: rotate(-3deg); }
.patch::after { content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 2px dashed rgba(111,214,255,.55); pointer-events: none; }
.patch:hover { transform: rotate(0) scale(1.04); }
.patch strong { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2.5vw, 3.2rem); font-stretch: 120%; line-height: 1; background: var(--chevron-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.patch span { display: block; margin-top: .4rem; font-size: var(--fs-xs); font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.reviews-top { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: var(--space-5); margin-bottom: var(--space-6); }
.rating-badge { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-2); color: var(--text-on-light); }
.rating-badge__g { width: 44px; height: 44px; flex: none; }
.rating-badge strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.rating-badge .stars { color: #f5a400; letter-spacing: 2px; font-size: 1.05rem; }
.rating-badge small { display: block; color: var(--muted-on-light); font-size: var(--fs-xs); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.tab {
  min-height: 44px; padding: .55rem 1.1rem; border-radius: var(--r-pill); border: 1.5px solid var(--linen-300); background: #fff;
  font-size: var(--fs-sm); font-weight: 700; color: var(--muted-on-light); transition: all var(--dur-2) var(--ease-out);
}
.tab:hover { border-color: var(--ocean); color: var(--text-on-light); }
.tab[aria-selected="true"] { background: var(--logo-black); border-color: var(--logo-black); color: #fff; box-shadow: var(--shadow-2); }
.tab .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: .35rem; padding: 0 .35rem; border-radius: var(--r-pill); background: rgba(0,139,194,.12); color: var(--ocean); font-size: 11px; }
.tab[aria-selected="true"] .count { background: rgba(255,255,255,.18); color: #fff; }
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--space-5)) / 3); gap: var(--space-5);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: var(--space-3) 4px var(--space-6); margin-inline: -4px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 6px; }
.carousel .review { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; }
.carousel .review__cat { margin-top: auto; align-self: flex-start; }
.review__text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-expanded .review__text { -webkit-line-clamp: unset; display: block; }
.review__more { align-self: flex-start; margin: -.25rem 0 var(--space-3); font-size: var(--fs-xs); font-weight: 800; color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.carousel__bar { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-2); }
.carousel__progress { flex: 1; height: 4px; border-radius: 4px; background: var(--linen-200); overflow: hidden; }
.carousel__progress span { display: block; height: 100%; width: 20%; border-radius: inherit; background: linear-gradient(90deg, #232967, #008bc2, #00aeef); transform-origin: left; transition: width var(--dur-3) var(--ease-out), margin-left var(--dur-3) var(--ease-out); }
.carousel__controls { display: flex; gap: var(--space-2); }
.carousel__controls .rail-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
.review {
  --r: var(--r-lg); --stitch-color: var(--linen-200);
  break-inside: avoid; position: relative; margin-bottom: var(--space-5); padding: var(--space-6) var(--space-5) var(--space-5); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-2); color: var(--text-on-light); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3), opacity var(--dur-3);
}
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); }
.review[hidden] { display: none; }
.review__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.review__avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--chevron); color: #fff; font-weight: 800; font-family: var(--font-display); }
.review__name { font-weight: 800; display: block; line-height: 1.2; }
.review__meta { font-size: var(--fs-xs); color: var(--muted-on-light); }
.review .stars { color: #f5a400; letter-spacing: 2px; }
.review p { margin: var(--space-2) 0 var(--space-3); font-size: var(--fs-sm); color: #36333d; }
.review__cat { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ocean); border: 1px dashed rgba(0,139,194,.45); padding: .25rem .6rem; border-radius: var(--r-pill); }
.review__g { position: absolute; top: 20px; right: 20px; width: 20px; height: 20px; }
.reviews-empty { padding: var(--space-6); border-radius: var(--r-lg); border: 1.5px dashed var(--linen-300); text-align: center; color: var(--muted-on-light); }

/* --------------------------------------------------------------------------
   Split feature / quality
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.layered { position: relative; aspect-ratio: 1 / 1; }
.layered figure { position: absolute; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3); }
.layered img { width: 100%; height: 100%; object-fit: cover; }
.layered .l1 { inset: 0 22% 22% 0; }
.layered .l2 { inset: 38% 0 0 34%; border: 6px solid var(--linen-50); }
.layered .badge-float { position: absolute; z-index: 3; left: 4%; bottom: 6%; }
.section--dark .layered .l2, .section--deep .layered .l2 { border-color: var(--ink-900); }
.checks { display: grid; gap: var(--space-3); margin: var(--space-5) 0 var(--space-6); }
.checks li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--cyan); margin-top: 2px; }
.section--light .checks svg, .section--paper .checks svg { color: var(--ocean); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.feature {
  --r: var(--r-lg); position: relative; padding: var(--space-6) var(--space-5); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(27,33,80,.6), rgba(14,17,44,.6)); border: 1px solid var(--glass-border); transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-3);
}
.feature:hover { transform: translateY(-6px); border-color: rgba(0,174,239,.4); }
.section--light .feature, .section--paper .feature { background: #fff; border-color: var(--linen-200); box-shadow: var(--shadow-1); }
.feature__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--chevron); color: #fff; margin-bottom: var(--space-4); box-shadow: var(--shadow-glow); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--fs-lg); }
.feature p { color: var(--muted-on-dark); font-size: var(--fs-sm); margin: 0; }
.section--light .feature p, .section--paper .feature p { color: var(--muted-on-light); }

/* Brand wall */
.brand-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.brand-wall li { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: var(--space-4); border-radius: var(--r-md); background: #fff; border: 1px solid var(--linen-200); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.brand-wall li:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.brand-wall img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter var(--dur-2), opacity var(--dur-2); }
.brand-wall li:hover img { filter: none; opacity: 1; }

/* Gallery */
.gallery { columns: 3 280px; column-gap: var(--space-4); }
.gallery figure { break-inside: avoid; margin: 0 0 var(--space-4); border-radius: var(--r-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-2); }
.gallery img { width: 100%; transition: transform 1s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: .55rem .8rem; border-radius: var(--r-md); background: rgba(7,8,26,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: var(--fs-xs); opacity: 0; transform: translateY(8px); transition: all var(--dur-3) var(--ease-out); }
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--space-3); max-width: 900px; }
.faq details { border-radius: var(--r-md); background: #fff; border: 1px solid var(--linen-200); box-shadow: var(--shadow-1); color: var(--text-on-light); transition: box-shadow var(--dur-2); }
.section--dark .faq details, .section--deep .faq details { background: var(--ink-800); border-color: var(--glass-border); color: var(--text-on-dark); }
.faq details[open] { box-shadow: var(--shadow-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; padding: var(--space-5); font-weight: 800; font-size: var(--fs-base); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px dashed currentColor; position: relative; opacity: .7; transition: transform var(--dur-2) var(--ease-out); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--dur-2); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .faq__a { padding: 0 var(--space-5) var(--space-5); color: var(--muted-on-light); }
.section--dark .faq .faq__a, .section--deep .faq .faq__a { color: var(--muted-on-dark); }
.faq .faq__a p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.5rem, 5vw, 4.5rem); background: var(--chevron); box-shadow: var(--shadow-3); isolation: isolate; --r: var(--r-xl); --stitch-color: rgba(255,255,255,.45); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,.22), transparent 60%), repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 7px); }
.cta-band__grid { display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-6); align-items: center; }
.cta-band h2 { font-size: var(--fs-2xl); text-transform: uppercase; color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); margin: 0; font-size: var(--fs-lg); }
.cta-band .btn--dark { background: var(--ink-950); }
.cta-band .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band__chev { position: absolute; right: -40px; bottom: -60px; width: 300px; opacity: .14; z-index: -1; }

/* --------------------------------------------------------------------------
   Inquiry form
   -------------------------------------------------------------------------- */
.inquiry { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.form-card { --r: var(--r-xl); padding: clamp(1.5rem, 3vw, 2.8rem); border-radius: var(--r-xl); background: #fff; color: var(--text-on-light); box-shadow: var(--shadow-3); position: relative; --stitch-color: var(--linen-200); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-4); }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 700; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: var(--r-md); border: 1.5px solid var(--linen-200); background: var(--linen-50);
  color: var(--text-on-light); font-size: 1rem; transition: border-color var(--dur-2), box-shadow var(--dur-2), background var(--dur-2);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--linen-300); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ocean); background: #fff; box-shadow: 0 0 0 4px rgba(0,139,194,.15); }
.field input[type="file"] { padding: .7rem; min-height: auto; background: #fff; border-style: dashed; cursor: pointer; }
.field .hint { font-size: var(--fs-xs); color: var(--muted-on-light); }
.field .error-msg { font-size: var(--fs-xs); color: #c0392b; font-weight: 600; min-height: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; background: #fff6f5; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.form-foot small { color: var(--muted-on-light); font-size: var(--fs-xs); max-width: 40ch; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.form-success { display: none; text-align: center; padding: var(--space-6) var(--space-3); }
.form-success.is-visible { display: block; animation: pop var(--dur-3) var(--ease-spring); }
.form-success__icon { width: 74px; height: 74px; margin: 0 auto var(--space-4); border-radius: 50%; display: grid; place-items: center; background: var(--chevron); color: #fff; box-shadow: var(--shadow-glow); }
.form-success__icon svg { width: 34px; height: 34px; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Map */
.map-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-3); aspect-ratio: 16 / 9; background: var(--ink-800); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.05); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { position: relative; background: var(--ink-950); padding-top: var(--space-9); overflow: hidden; isolation: isolate; border-top: 1px solid rgba(166,174,214,.1); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--space-7); padding-bottom: var(--space-8); }
.footer__brand img { height: 46px; width: auto; margin-bottom: var(--space-5); }
.footer__brand p { color: var(--muted-on-dark); font-size: var(--fs-sm); max-width: 36ch; }
.footer h2 { font-size: var(--fs-sm); font-family: var(--font-mono); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: var(--space-5); }
.footer__links { display: grid; gap: .55rem; }
.footer__links a { color: var(--muted-on-dark); font-size: var(--fs-sm); transition: color var(--dur-1), padding var(--dur-2) var(--ease-out); }
.footer__links a:hover { color: #fff; padding-left: 6px; }
.footer .info-list { margin: 0; gap: var(--space-3); }
.footer .info-list .ico { width: 38px; height: 38px; }
.socials { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--glass-border); color: var(--text-on-dark); transition: all var(--dur-2) var(--ease-out); }
.socials a:hover { background: var(--chevron); border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px dashed rgba(166,174,214,.2); padding-block: var(--space-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-xs); color: var(--muted-on-dark); }
.footer__bottom a { color: var(--text-on-dark); font-weight: 700; }
.footer__bottom a:hover { color: var(--cyan); }
.footer__bottom nav { display: flex; gap: var(--space-4); }
.footer__bottom nav a { font-weight: 500; color: var(--muted-on-dark); }
.footer__watermark { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); z-index: -1; font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(4rem, 15vw, 15rem); line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(166,174,214,.08); pointer-events: none; user-select: none; }

/* --------------------------------------------------------------------------
   Mobile sticky action bar
   -------------------------------------------------------------------------- */
.mobile-bar { display: none; }
.back-top {
  position: fixed; right: 20px; bottom: 24px; z-index: var(--z-raised); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--chevron); color: #fff; box-shadow: var(--shadow-glow); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all var(--dur-3) var(--ease-out);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Demo popup (home only)
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--gutter); background: rgba(5,6,18,.68); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity var(--dur-3) var(--ease-out), visibility var(--dur-3); }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  --r: var(--r-xl); --stitch-color: rgba(111,214,255,.45);
  position: relative; width: min(100%, 540px); max-height: calc(100svh - 2rem); overflow-y: auto; padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: var(--r-xl); text-align: center;
  background: linear-gradient(170deg, rgba(30,37,96,.92), rgba(9,11,30,.96)); border: 1px solid var(--glass-border); box-shadow: var(--shadow-dark), 0 0 80px rgba(0,174,239,.25);
  transform: translateY(24px) scale(.96) rotateX(8deg); transform-origin: 50% 100%; transition: transform var(--dur-3) var(--ease-spring);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--glass-border); color: #fff; transition: background var(--dur-2), transform var(--dur-2); }
.modal__close:hover { background: rgba(255,255,255,.1); transform: rotate(90deg); }
.modal__close svg { width: 20px; height: 20px; }
.modal__badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: var(--r-pill); background: rgba(0,174,239,.14); border: 1px dashed rgba(0,174,239,.55); color: var(--cyan-soft); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--space-4); }
.modal__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(47,211,138,.2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(47,211,138,0); } }
.modal h2 { font-size: var(--fs-xl); text-transform: uppercase; margin-bottom: var(--space-3); }
.modal p { color: var(--muted-on-dark); }
.modal__timer { display: flex; justify-content: center; gap: var(--space-3); margin: var(--space-5) 0; }
.modal__timer div { min-width: 72px; padding: .6rem; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); }
.modal__timer strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.modal__timer span { font-size: 10px; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); }
.modal .btn { width: 100%; }
.modal__later { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--muted-on-dark); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound__code { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(6rem, 22vw, 14rem); line-height: .9; background: var(--chevron-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1320px) { .header__phone { font-size: 0; gap: 0; } }
@media (max-width: 1180px) {
  .nav__list, .header__phone { display: none; }
  .burger { display: grid; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero__grid, .page-hero__grid, .showroom, .split, .inquiry { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .hero__art { max-width: 520px; margin-inline: auto; width: 100%; }
  .page-hero__media { transform: none; max-width: 640px; }
  .services-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .carousel__track { grid-auto-columns: calc((100% - var(--space-5)) / 2); }
  .svc-card--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--space-7); }
  .steps .stitch-svg { display: none; }
  .patches { grid-template-columns: repeat(2, 1fr); max-width: 520px; margin-inline: auto; }
  .cta-band__grid { grid-template-columns: 1fr; }
  .topbar__info .hide-md { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 70px; --header-h-sm: 60px; --topbar-h: 38px; }
  .logo img { height: 36px; }
  .is-scrolled .logo img { height: 30px; }
  .header__cta .btn { display: none; }
  .topbar__info .hide-sm { display: none; }
  .services-grid, .feature-grid, .form-grid { grid-template-columns: 1fr; }
  .svc-card--wide { grid-column: auto; flex-direction: column; }
  .svc-card--wide .svc-card__media { aspect-ratio: 16 / 11; }
  .svc-card--wide .svc-card__icon { margin-top: -48px; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__bottom { flex-direction: column; padding-bottom: calc(var(--space-5) + 76px); }
  .tag-card { width: 116px; padding: 8px 8px 10px; }
  .tag-card strong { font-size: .75rem; }
  .spool { font-size: 11px; }
  .mosaic { grid-auto-rows: 64px; }
  .carousel__track { grid-auto-columns: 86%; }
  .rating-badge { width: 100%; }
  /* Mobile sticky call + WhatsApp */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobilebar);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(7,8,26,.9); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border); box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; border-radius: var(--r-pill); font-weight: 800; font-size: .95rem; color: #fff; }
  .mobile-bar svg { width: 20px; height: 20px; }
  .mobile-bar__call { background: var(--chevron); box-shadow: var(--shadow-glow); }
  .mobile-bar__wa { background: #1fa855; box-shadow: 0 8px 24px rgba(31,168,85,.35); }
  body { padding-bottom: 76px; }
  .back-top { bottom: 92px; right: 14px; width: 46px; height: 46px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .carousel__track { scroll-behavior: auto; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .stitch-svg .sew { stroke-dashoffset: 0; }
}
