/* ==========================================================================
   Coxis Media — coxismedia.com
   Editorial dark theme
   1.  Tokens          6.  Marquee          11. Process
   2.  Reset / base    7.  Stats            12. Quote / testimonial
   3.  Typography      8.  Service grid     13. Forms
   4.  Buttons         9.  Work grid        14. Footer
   5.  Header / nav    10. Split / intro    15. Reveal + responsive + motion
   ========================================================================== */

/* 1. Tokens ----------------------------------------------------------------- */
:root {
  --bg: #08080A;
  --bg-soft: #0C0C0F;
  --panel: #101014;
  --panel-2: #141419;
  --text: #FAFAFA;
  --text-dim: #C3C3CC;
  --muted: #87878F;
  --muted-2: #5E5E66;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --white: #FFFFFF;

  --accent: #2563EB;
  --accent-soft: rgba(37, 99, 235, 0.16);

  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --container: 1240px;
  --gutter: 28px;
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.4s var(--ease);
}

/* 2. Reset / base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { color: inherit; text-decoration: none; transition: color var(--t); }
ul { list-style: none; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: rgba(37, 99, 235, 0.4); color: #fff; }

/* 3. Typography ------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.display {
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.95rem, 3.7vw, 3rem); letter-spacing: -0.04em; }
h3 { font-size: 1.32rem; letter-spacing: -0.025em; line-height: 1.15; }

p { color: var(--muted); }

.dim { color: var(--muted); }
.text-light { color: var(--text-dim); }

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

.section { padding-block: clamp(72px, 11vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.bordered-top { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--between {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; max-width: none; flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 24px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.section-head--center .eyebrow { justify-content: center; }

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  color: var(--text-dim); line-height: 1.55; font-weight: 400;
  letter-spacing: -0.015em;
}
.section-head .lead { margin-top: 22px; }

/* 4. Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.97rem; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--white); color: #0A0A0C; }
.btn--primary:hover { background: #e6e6e6; color: #0A0A0C; }

.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); color: #fff; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #1d4fd8; color: #fff; }

.btn--block { width: 100%; }
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: 0.98rem; color: var(--text);
  border-bottom: 1px solid var(--line-2); padding-bottom: 3px;
}
.text-link .arrow { transition: transform var(--t); color: var(--accent); }
.text-link:hover { color: #fff; border-color: var(--text); }
.text-link:hover .arrow { transform: translateX(4px); }

/* 5. Header / nav ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t), border-color var(--t), backdrop-filter var(--t);
}
.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 28px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 9px 15px; font-size: 0.95rem; font-weight: 450;
  color: var(--muted); border-radius: var(--r-sm);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 15px; bottom: 3px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 19px; height: 1.6px; background: var(--text); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* 6. Hero ------------------------------------------------------------------- */
.hero { padding-block: clamp(72px, 12vw, 150px) clamp(60px, 8vw, 110px); position: relative; }
.hero-inner { max-width: 1000px; }

.hero .kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 7px 15px 7px 11px; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 0.82rem; color: var(--muted); font-weight: 450;
}
.hero .kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero h1 { margin-bottom: 30px; max-width: 16ch; }
.hero h1 .soft { color: var(--muted-2); }
.hero p.lead { max-width: 600px; margin-bottom: 40px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.page-hero { padding-block: clamp(64px, 10vw, 132px) clamp(36px, 5vw, 64px); }
.page-hero h1 { margin-bottom: 26px; max-width: 18ch; }
.page-hero h1 .soft { color: var(--muted-2); }
.page-hero .lead { max-width: 640px; }

/* 7. Marquee ---------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden;
  padding-block: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; width: max-content; align-items: center;
  animation: marquee 34s linear infinite; will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 46px; padding-right: 46px;
  font-size: clamp(1.4rem, 2.3vw, 2.05rem); font-weight: 450; letter-spacing: -0.03em;
  color: var(--muted); white-space: nowrap;
}
.marquee-item::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 8. Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 24px 8px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 30px; }
.stat .num {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.05em;
  line-height: 1; color: var(--text); margin-bottom: 14px;
}
.stat .num .accent { color: var(--accent); }
.stat .label { font-size: 0.95rem; color: var(--muted); letter-spacing: -0.01em; }

/* 9. Service grid ----------------------------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.cell {
  position: relative; background: var(--bg); padding: 40px 34px;
  transition: background-color var(--t);
}
.cell:hover { background: var(--panel); }
.cell .idx { font-size: 0.82rem; color: var(--muted-2); font-weight: 500; letter-spacing: 0.02em; margin-bottom: 26px; }
.cell .c-icon { color: var(--text); margin-bottom: 22px; }
.cell .c-icon svg { width: 26px; height: 26px; }
.cell h3 { margin-bottom: 12px; transition: color var(--t); }
.cell p { font-size: 0.97rem; line-height: 1.55; }
.cell .feature-list { margin-top: 20px; }
.cell .cell-link {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color var(--t);
}
.cell .cell-link .arrow { transition: transform var(--t); }
.cell:hover .cell-link { color: var(--text); }
.cell:hover .cell-link .arrow { transform: translateX(4px); }
.cell::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width var(--t);
}
.cell:hover::after { width: 100%; }

.feature-list { display: grid; gap: 12px; }
.feature-list li {
  position: relative; padding-left: 24px; font-size: 0.94rem; color: var(--muted); line-height: 1.5;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 1px; background: var(--accent);
}

/* Plain feature (about / why rows) */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .f-ico { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.feature .f-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 7px; }
.feature p { font-size: 0.97rem; }

/* 10. Split / intro --------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.intro-statement {
  font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.22; letter-spacing: -0.03em;
  font-weight: 500; color: var(--text-dim); max-width: 18ch;
}
.intro-statement .accent { color: var(--text); }

.panel {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
  padding: 40px; display: grid; gap: 30px;
}
.panel-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.panel-row:last-child { border-bottom: 0; padding-bottom: 0; }
.panel-row .pr-num { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.panel-row .pr-label { font-size: 0.96rem; color: var(--muted); text-align: right; max-width: 50%; }

/* 11. Process --------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.step { background: var(--bg); padding: 34px 26px; transition: background-color var(--t); }
.step:hover { background: var(--panel); }
.step .s-num { font-size: 0.82rem; color: var(--accent); font-weight: 600; letter-spacing: 0.06em; margin-bottom: 26px; }
.step h3 { font-size: 1.16rem; margin-bottom: 10px; }
.step p { font-size: 0.92rem; line-height: 1.5; }

/* 12. Quote / testimonial --------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  padding: 34px; display: flex; flex-direction: column; gap: 24px; height: 100%;
  transition: border-color var(--t), background-color var(--t);
}
.quote:hover { border-color: var(--line-2); background: var(--panel-2); }
.quote blockquote { font-size: 1.06rem; line-height: 1.55; color: var(--text); font-weight: 450; letter-spacing: -0.015em; flex: 1; }
.quote-author { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 600; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2);
}
.quote-author .who { font-weight: 500; font-size: 0.93rem; color: var(--text); }
.quote-author .role { font-size: 0.84rem; color: var(--muted); }

/* Big single pull quote */
.pullquote {
  font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.25; letter-spacing: -0.035em;
  font-weight: 500; color: var(--text); max-width: 22ch;
}
.pullquote-by { margin-top: 32px; display: flex; align-items: center; gap: 14px; }

/* 13. Work grid ------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--panel); transition: border-color var(--t), transform var(--t);
}
.work-card:hover { border-color: var(--line-2); transform: translateY(-4px); }

.work-visual {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(130% 130% at 78% 8%, var(--wv, rgba(37,99,235,0.16)), transparent 62%), var(--panel-2);
  border-bottom: 1px solid var(--line);
}
/* fine dot grid so the cover reads as a designed surface, not empty */
.work-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}
/* hover hint */
.work-visual::after {
  content: "View case study →"; position: absolute; right: 18px; bottom: 16px;
  font-size: 0.8rem; font-weight: 500; color: var(--text); letter-spacing: -0.01em;
  opacity: 0; transform: translateY(6px); transition: opacity var(--t), transform var(--t);
}
.work-card:hover .work-visual::after { opacity: 1; transform: none; }
.work-visual .mono {
  position: absolute; left: 0.12em; bottom: -0.16em; z-index: 1;
  font-size: clamp(5rem, 12vw, 7.6rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  color: rgba(255, 255, 255, 0.13);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  transition: transform var(--t), color var(--t);
}
.work-card:hover .work-visual .mono { transform: translateY(-6px); color: rgba(255, 255, 255, 0.2); }
.work-visual .corner {
  position: absolute; top: 16px; right: 18px; z-index: 1;
  font-size: 0.76rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0.02em;
  padding: 5px 11px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: rgba(8, 8, 10, 0.4); backdrop-filter: blur(4px);
}
.work-body { padding: 24px 24px 28px; }
.work-body .cat {
  display: inline-block; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.work-body h3 { font-size: 1.2rem; margin-bottom: 12px; }
.work-body .result { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.work-body .result strong { color: var(--text); font-weight: 600; }

/* 14. CTA band -------------------------------------------------------------- */
.cta {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
  padding: clamp(44px, 7vw, 88px) clamp(28px, 5vw, 64px); text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 120% at 50% -10%, rgba(37, 99, 235, 0.12), transparent 60%);
}
.cta > * { position: relative; }
.cta h2 { margin-bottom: 18px; max-width: 20ch; margin-inline: auto; }
.cta p { max-width: 540px; margin: 0 auto 34px; font-size: 1.08rem; color: var(--text-dim); }
.cta .hero-actions { justify-content: center; }

/* 15. Forms ----------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: border-color var(--t); }
.info-card:hover { border-color: var(--line-2); }
.info-card .i-ico { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.info-card .i-ico svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.info-card a { color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line-2); }
.info-card a:hover { color: var(--accent); border-color: var(--accent); }
.info-card p { font-size: 0.94rem; }

.form { padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font-size: 0.98rem;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2387878f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg-soft);
}
.field .error-msg { font-size: 0.8rem; color: #f87171; min-height: 1em; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16); }
.field.has-error .error-msg { display: block; }
.form-note { margin-top: 8px; font-size: 0.82rem; color: var(--muted); text-align: center; }

.form-success { display: none; text-align: center; padding: clamp(28px, 5vw, 48px) 16px; }
.form-success.is-visible { display: block; animation: pop 0.5s var(--ease) both; }
.form.is-submitted .form-body { display: none; }
.success-icon { width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.success-icon svg { width: 34px; height: 34px; stroke: #fff; fill: none; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 12px; }
.form-success p { max-width: 420px; margin: 0 auto 24px; }

/* 16. Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px) 34px; }
.footer-cta { padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.footer-cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.04em; max-width: 16ch; margin-bottom: 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { font-size: 0.95rem; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); color: var(--muted); transition: color var(--t), border-color var(--t); }
.footer-social a:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 500; }
.footer-col ul { display: grid; gap: 13px; }
.footer-col a { font-size: 0.95rem; color: var(--text-dim); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 30px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-bottom p { font-size: 0.86rem; color: var(--muted); }
.footer-meta { display: flex; gap: 24px; }
.footer-meta a { font-size: 0.86rem; color: var(--muted); }
.footer-meta a:hover { color: var(--text); }

/* 17. Reveal ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }
.reveal[data-delay="4"] { transition-delay: 0.28s; }
.reveal[data-delay="5"] { transition-delay: 0.35s; }

@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* 18. Responsive ------------------------------------------------------------ */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat + .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px 24px 26px; background: rgba(8, 8, 10, 0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); transform: translateY(-10px); opacity: 0; visibility: hidden;
    pointer-events: none; transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 1.04rem; border-radius: var(--r-sm); }
  .nav-links a:hover { background: var(--panel); }
  .nav-links a.is-active::after { display: none; }
  .nav-links a.is-active { background: var(--panel); }
  .nav-actions .btn { display: none; }
  .section-head--between { align-items: flex-start; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
  .panel { padding: 28px; }
}

/* 19. Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
