/* ==========================================================================
   VICE Commercial Services — demo redesign
   Design system: dark night-city palette, ONE accent (teal, taken from the
   client's existing headings), Outfit type, double-bezel cards, spring motion.
   ========================================================================== */

/* ---------- 1. Design tokens (every color/size lives here) ---------- */
:root {
  /* Surfaces: one blue-tinted gray family, never pure black */
  --bg: #070b11;
  --surface: #0e1621;
  --surface-2: #121c29;
  --field: #0a111a;

  /* Lines and text */
  --line: rgba(150, 190, 215, 0.11);
  --line-strong: rgba(150, 190, 215, 0.22);
  --text: #e9eff4;
  --muted: #a3b1bd;

  /* The single accent, plus the dark ink that sits on top of it */
  --accent: #5cc4dc;
  --accent-ink: #04212a;
  --accent-soft: rgba(92, 196, 220, 0.1);

  /* Logo colors, used only as soft background light (sampled from the VICE logo) */
  --glow-pink: 255, 46, 136;
  --glow-orange: 255, 138, 43;
  --glow-yellow: 255, 200, 30;
  --glow-cyan: 28, 200, 242;
  --glow-purple: 132, 72, 255;

  /* Functional error color (kept soft so it doesn't fight the accent) */
  --error: #f2958f;

  /* Shadows are tinted with the background hue, never neutral black */
  --shadow: 3, 18, 28;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1rem, 4vw, 4rem);
  --radius-outer: 28px;
  --radius-inner: 22px;

  /* Motion: one spring-like curve for everything */
  --spring: cubic-bezier(0.32, 0.72, 0, 1);

  /* z-index scale (no 9999) */
  --z-grain: 20;
  --z-menu: 30;
  --z-nav: 40;
  --z-skip: 60;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;      /* anchors land below the floating nav */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  /* Page-long gradient. Glow sizes are fixed in px and positions are % of the page height, so
     each section gets its own pool of logo-colored light: pink and cyan in the hero, purple near
     services, cyan/pink through facilities, and warm orange/yellow at the bottom by the contact form.
     Layers are listed top-most first; the navy base is last. */
  background:
    radial-gradient(900px 640px at 4% 2%,   rgba(var(--glow-pink), 0.42),   transparent 68%),
    radial-gradient(860px 620px at 98% 6%,  rgba(var(--glow-cyan), 0.36),   transparent 68%),
    radial-gradient(880px 640px at 84% 25%, rgba(var(--glow-purple), 0.34), transparent 68%),
    radial-gradient(800px 600px at 2% 41%,  rgba(var(--glow-cyan), 0.26),   transparent 68%),
    radial-gradient(880px 620px at 96% 59%, rgba(var(--glow-pink), 0.32),   transparent 68%),
    radial-gradient(820px 600px at 4% 77%,  rgba(var(--glow-purple), 0.30), transparent 68%),
    radial-gradient(1000px 640px at 26% 99%, rgba(var(--glow-orange), 0.38), transparent 68%),
    radial-gradient(800px 520px at 86% 98%, rgba(var(--glow-yellow), 0.22), transparent 68%),
    linear-gradient(180deg, #070b11 0%, #0a1024 45%, #0d1233 100%);
  background-repeat: no-repeat;
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration-color: rgba(92, 196, 220, 0.5); text-underline-offset: 0.25em; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* Visible focus ring for keyboard users (accessibility requirement) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transition: top 300ms var(--spring);
}
.skip-link:focus { top: 1rem; }

/* Film grain: fixed, ignores clicks, barely visible. Breaks up flat digital color. */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- 3. Reusable components ---------- */

/* Double bezel: an outer "tray" holding an inner "plate" (concentric radii) */
.bezel {
  padding: 6px;
  border-radius: var(--radius-outer);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.bezel-core {
  height: 100%;
  border-radius: var(--radius-inner);
  background: var(--surface);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.07),
    0 28px 48px -28px rgba(var(--shadow), 0.85);
}

/* Pill tag */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Primary button: BLUE GLASS. Same blue as before (--accent), now built from layers:
   a translucent blue body, a bright top edge, a glossy highlight over the top half, and light
   pooling at the bottom. Technique adapted from the 21st.dev "Stardust Button" (stacked inset
   shadows + a highlight strip + a press-down effect), recolored to this site's blue. */
.btn {
  --glass: 92, 196, 220;                 /* the site's blue as RGB, so transparency can be layered on it */
  position: relative;
  isolation: isolate;                    /* keeps the highlight layers inside the button */
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 52px;
  padding: 0.35rem 0.35rem 0.35rem 1.5rem;
  border: 1px solid rgba(200, 244, 252, 0.5);
  border-radius: 999px;
  background: linear-gradient(180deg,
    rgba(160, 234, 248, 0.92) 0%,
    rgba(96, 200, 224, 0.92) 48%,
    rgba(72, 172, 200, 0.94) 100%);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),            /* bright top edge */
    inset 0 -1px 1px rgba(3, 40, 52, 0.35),             /* thin dark bottom edge */
    inset 0 -7px 12px -4px rgba(215, 247, 255, 0.35),   /* light pooling inside the bottom */
    0 16px 28px -14px rgba(var(--shadow), 0.95),        /* tinted drop shadow */
    0 6px 12px -6px rgba(var(--glass), 0.38);           /* faint blue reflection below */
  transition:
    transform 500ms var(--spring),
    box-shadow 400ms var(--spring),
    filter 400ms var(--spring);
}
/* Glossy highlight across the top half */
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 5%;
  right: 5%;
  top: 2px;
  height: 50%;
  border-radius: 999px 999px 45% 45% / 999px 999px 70% 70%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08));
  pointer-events: none;
  transition: transform 500ms var(--spring), opacity 400ms var(--spring);
}
/* Soft light rising from the bottom edge */
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(70% 90% at 50% 115%, rgba(230, 250, 255, 0.55), transparent 70%);
  pointer-events: none;
}
.btn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(4, 33, 42, 0.16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), inset 0 -1px 2px rgba(4, 33, 42, 0.3);
  transition: transform 500ms var(--spring);
}
.btn:hover { filter: brightness(1.07) saturate(1.05); }
.btn:hover::before { transform: translateY(-6%); }
.btn:hover .btn-icon { transform: translate(2px, -2px) scale(1.06); }
/* Pressed: sinks 2px and the highlights flatten, like pushing real glass */
.btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow:
    inset 0 2px 6px rgba(3, 40, 52, 0.35),
    inset 0 -1px 1px rgba(3, 40, 52, 0.35),
    0 6px 12px -8px rgba(var(--shadow), 0.9);
}
.btn:active::before { opacity: 0.6; }

.btn-small { min-height: 44px; padding: 0.25rem 0.25rem 0.25rem 1.15rem; gap: 0.65rem; font-size: 0.95rem; }
.btn-small .btn-icon { width: 34px; height: 34px; }
.btn-block { width: 100%; justify-content: space-between; }

/* Dark button used on top of the accent tile */
.btn-dark {
  background: var(--bg);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 22px -12px rgba(var(--shadow), 0.95);
}
.btn-dark::before, .btn-dark::after { display: none; }
.btn-dark .btn-icon { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.btn-dark:hover { background: #0d1520; filter: none; }

/* Card button ("Request this service" and similar): the original OUTLINED look (see-through body,
   teal outline, teal text) with a glass layer added on top: a faint blue tint, a bright top edge,
   a soft gloss over the top half, and light pooling at the bottom. The solid blue glass stays on the
   main .btn buttons. */
.book {
  --glass: 92, 196, 220;
  position: relative;
  isolation: isolate;                    /* keeps the gloss layers inside the button */
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  align-self: flex-start;
  margin-top: auto;                      /* pins the button to the bottom of every card */
  min-height: 44px;
  padding: 0.25rem 0.25rem 0.25rem 1.1rem;
  border: 1px solid rgba(var(--glass), 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg,
    rgba(var(--glass), 0.20) 0%,
    rgba(var(--glass), 0.06) 55%,
    rgba(var(--glass), 0.13) 100%);
  color: var(--accent);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(214, 246, 253, 0.32),            /* bright top edge */
    inset 0 8px 14px -8px rgba(255, 255, 255, 0.16),    /* light along the top inside */
    inset 0 -8px 12px -6px rgba(var(--glass), 0.24),    /* glow pooling at the bottom inside */
    0 10px 20px -12px rgba(var(--shadow), 0.9);         /* tinted drop shadow */
  transition:
    transform 500ms var(--spring),
    box-shadow 400ms var(--spring),
    border-color 300ms var(--spring),
    filter 400ms var(--spring);
}
/* Gloss across the top half */
.book::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 5%;
  right: 5%;
  top: 2px;
  height: 48%;
  border-radius: 999px 999px 45% 45% / 999px 999px 70% 70%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.02));
  pointer-events: none;
  transition: transform 500ms var(--spring), opacity 400ms var(--spring);
}
/* Soft blue light rising from the bottom edge */
.book::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(70% 90% at 50% 120%, rgba(var(--glass), 0.34), transparent 70%);
  pointer-events: none;
}
.book .btn-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-soft);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), inset 0 -1px 2px rgba(var(--glass), 0.25);
}
.book:hover { border-color: rgba(var(--glass), 0.7); filter: brightness(1.12); }
.book:hover::before { transform: translateY(-6%); }
.book:hover .btn-icon { transform: translate(2px, -2px) scale(1.06); }
.book:active {
  transform: translateY(2px) scale(0.98);
  box-shadow:
    inset 0 2px 6px rgba(3, 20, 28, 0.4),
    inset 0 -1px 1px rgba(var(--glass), 0.2),
    0 4px 10px -8px rgba(var(--shadow), 0.9);
}
.book:active::before { opacity: 0.5; }
.book:not(:has(.btn-icon)) { padding-right: 1.1rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 500;
}
.text-link:hover { color: var(--accent); }

/* Scroll reveal: fade + rise + un-blur. Only applies when JS is running, so
   the page is never blank if the script fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition:
    opacity 700ms var(--spring),
    transform 700ms var(--spring),
    filter 700ms var(--spring);
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- 4. Navigation (floating glass pill) ---------- */
#nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 80px; pointer-events: none; }

.nav-wrap {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  padding: max(0.9rem, env(safe-area-inset-top)) 1rem 0;
  pointer-events: none;             /* only the pill itself is clickable */
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  padding: 0.4rem 0.45rem 0.4rem 0.55rem;
  border-radius: 999px;
  background: rgba(11, 18, 27, 0.5);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 36px -16px rgba(var(--shadow), 0.9);
  transition: background-color 500ms var(--spring), border-color 500ms var(--spring);
}
.is-scrolled .nav { background: rgba(9, 15, 23, 0.8); border-color: var(--line-strong); }

.brand { display: flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand-logo { display: block; width: auto; height: 56px; }
.brand-mark { display: block; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; }
.brand-text span { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 300ms var(--spring), background-color 300ms var(--spring);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* Hamburger (mobile only): two lines that rotate into an X */
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-lines { position: relative; display: block; width: 18px; height: 12px; }
.menu-lines i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 500ms var(--spring);
}
.menu-lines i:first-child { top: 1px; }
.menu-lines i:last-child { bottom: 1px; }
.menu-toggle[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Full-screen mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  background: rgba(7, 11, 17, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity 500ms var(--spring);
}
.menu[hidden] { display: none; }
.menu.open { opacity: 1; }
.menu-list a {
  display: block;
  padding: 0.35rem 0;
  font-size: clamp(2.1rem, 9vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 600ms var(--spring), transform 600ms var(--spring);
}
.menu.open .menu-list a { opacity: 1; transform: none; }
.menu.open .menu-list li:nth-child(2) a { transition-delay: 60ms; }
.menu.open .menu-list li:nth-child(3) a { transition-delay: 120ms; }
.menu.open .menu-list li:nth-child(4) a { transition-delay: 180ms; }
.menu-foot { margin-top: 2.5rem; color: var(--muted); line-height: 2; }
.menu-foot a { text-decoration: none; }

/* ---------- 5. Hero ---------- */
.hero {
  min-height: 100dvh;               /* dvh, not vh: avoids the iOS Safari address-bar jump */
  display: flex;
  align-items: center;
  padding-block: 8rem 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-copy { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.hero-copy h1 { font-size: clamp(2.7rem, 6.3vw, 5.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.lede { max-width: 52ch; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; margin-top: 0.5rem; }
.hero-art { grid-column: 7 / span 6; }
.hero-frame { overflow: hidden; }
.hero-frame img { display: block; width: 100%; height: auto; }

/* ---------- 6. Sections ---------- */
.section { padding-block: clamp(5rem, 11vw, 9rem); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 22ch; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* About: heading pinned left, three statements on the right, separated by hairlines */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.about-head { grid-column: 1 / span 5; }
.about-head { position: sticky; top: 7rem; align-self: start; }
.about-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.about-logo { display: block; width: min(100%, 340px); height: auto; margin-top: 2.5rem; }
.about-list { grid-column: 7 / span 6; }
.about-item { padding-block: 2rem; border-top: 1px solid var(--line); }
.about-item:first-child { padding-top: 0; border-top: 0; }
.about-item h3 { margin-bottom: 0.75rem; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; color: var(--accent); }
.about-item p { max-width: 62ch; color: var(--muted); font-size: 1.1rem; }

/* Services: asymmetric bento grid (a mix of wide, tall and short tiles) */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
.b-janitorial { grid-column: 1 / 7;  grid-row: 1 / 3; }
.b-deep       { grid-column: 7 / 13; grid-row: 1; }
.b-floors     { grid-column: 7 / 13; grid-row: 2; }
.b-porter     { grid-column: 1 / 8;  grid-row: 3; }
.b-window     { grid-column: 8 / 13; grid-row: 3; }
.b-power      { grid-column: 1 / 6;  grid-row: 4; }
.b-cta        { grid-column: 6 / 13; grid-row: 4; }

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  transition: transform 600ms var(--spring), background-color 400ms var(--spring);
}
.card h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -0.02em; }
.card p { color: var(--muted); max-width: 60ch; }
.card .book { margin-top: auto; }
.card > p + .book, .card > .chips + .book { margin-top: auto; }
.b-janitorial .card { padding: clamp(1.75rem, 3.2vw, 2.75rem); }
.b-janitorial h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.b-janitorial .bezel-core { position: relative; overflow: hidden; }
.b-janitorial .card > *:not(.card-deco) { position: relative; z-index: 1; }
.card-deco {
  position: absolute;
  right: -1.5rem;
  bottom: 3.5rem;
  width: clamp(11rem, 20vw, 16rem);
  height: auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linejoin: round;
  opacity: 0.22;
  pointer-events: none;
}
@media (hover: hover) {
  .bezel:has(.card:not(.card-accent)):hover .card { transform: translateY(-4px); background: var(--surface-2); }
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 0.5rem 1rem; }
.chips li {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.85rem;
}

.card-accent { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 28px 48px -28px rgba(var(--shadow), 0.85); }
.card-accent h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.card-accent p { color: rgba(4, 33, 42, 0.82); font-size: 1.1rem; }
.card-accent .btn { margin-top: auto; align-self: flex-start; }

/* Facilities: vertical tab list + content plate */
.fac-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.fac-tabs { display: grid; gap: 0.35rem; }
.fac-tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 64px;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 400ms var(--spring), color 400ms var(--spring), border-color 400ms var(--spring);
}
.fac-tab .num { font-size: 0.85rem; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; color: var(--muted); opacity: 0.7; }
.fac-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.fac-tab[aria-selected="true"] { color: var(--text); background: var(--surface); border-color: var(--line-strong); }
.fac-tab[aria-selected="true"] .num { color: var(--accent); opacity: 1; }

.fac-core { display: flex; flex-direction: column; min-height: 22rem; padding: clamp(1.75rem, 4vw, 3rem); }
.fac-panel { animation: panel-in 700ms var(--spring); }
.fac-panel[hidden] { display: none; }
.fac-panel h3 { margin-bottom: 1.25rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.fac-panel p { max-width: 58ch; color: var(--muted); font-size: 1.15rem; }
.fac-book { margin-top: auto; padding-top: 0.25rem; }
.fac-core .fac-book { margin-top: 2.5rem; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-info { grid-column: 1 / span 5; }
.contact-info h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-bottom: 1.25rem; }
.details { margin: 2.5rem 0 0; }
.details > div { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.details dt { margin-bottom: 0.25rem; color: var(--accent); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.details dd { margin: 0; font-size: 1.25rem; }
.details a { text-decoration: none; }
.details a:hover { color: var(--accent); }

.contact-form-wrap { grid-column: 7 / span 6; }
.form-core { padding: clamp(1.5rem, 3.4vw, 2.75rem); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label { margin-bottom: 0.45rem; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.field .req, .field .opt { font-weight: 400; opacity: 0.75; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  font: inherit;                    /* 16px: stops iOS from zooming into the field */
  transition: border-color 300ms var(--spring);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M2 5l5 5 5-5' fill='none' stroke='%23a3b1bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(163, 177, 189, 0.6); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--error); }
.err { margin-top: 0.35rem; color: var(--error); font-size: 0.85rem; }
.err:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; margin-block: 0.5rem 1.25rem; color: var(--muted); font-size: 0.95rem; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; accent-color: var(--accent); }

.form-error { min-height: 1.4em; margin-top: 0.75rem; color: var(--error); font-size: 0.9rem; }

.form-success { animation: panel-in 700ms var(--spring); }
.form-success[hidden] { display: none; }
.form-success h3 { margin-bottom: 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.form-success p { color: var(--muted); font-size: 1.1rem; }
.form-success .demo-note { margin-top: 1rem; padding: 0.75rem 1rem; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 0.95rem; }
.form-success .book { margin-top: 1.75rem; padding-right: 1.1rem; }

/* ---------- 7. Footer ---------- */
.footer { padding-block: 3rem 3.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-mark { display: block; border-radius: 11px; }
.footer-brand strong { color: var(--text); font-weight: 600; }
.footer-brand p { margin-top: 0.15rem; font-size: 0.88rem; }
.footer-meta { line-height: 1.8; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--accent); }
.footer-copy { text-align: right; }

/* ---------- 8. Responsive ---------- */
@media (max-width: 1000px) {
  .hero-copy { grid-column: 1 / span 12; }
  .hero-art { grid-column: 1 / span 12; }
  .hero { padding-top: 7rem; }

  .about-head { grid-column: 1 / span 12; }
  .about-head { position: static; }
  .about-list { grid-column: 1 / span 12; }

  .fac-grid { grid-template-columns: 1fr; }

  .contact-info { grid-column: 1 / span 12; }
  .contact-form-wrap { grid-column: 1 / span 12; }
}

@media (max-width: 860px) {
  /* Nav collapses to logo + hamburger */
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: grid; }
  .nav { width: 100%; justify-content: space-between; }
}

@media (max-width: 767px) {
  /* Bento collapses to a single stacked column */
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-copy { text-align: left; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .card .book, .card-accent .btn { align-self: stretch; justify-content: space-between; }
}

/* ---------- 9. Reduced motion: keep every state, drop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
