/* =========================================================================
   RichFocus — agency landing page
   Design tokens → base → components → sections → responsive → motion
   ========================================================================= */

:root {
  /* palette */
  --bg: #08080d;
  --bg-2: #0b0b13;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #f4f4f7;
  --dim: #b8b8c7;
  --mute: #80808f;

  --violet: #8b5cf6;
  --fuchsia: #ec4899;
  --cyan: #2dd4ff;
  --grad: linear-gradient(100deg, #8b5cf6, #ec4899 52%, #2dd4ff);
  --grad-text: linear-gradient(100deg, #a78bfa, #f472b6 55%, #5fdcff);

  /* shape & motion */
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --glow: 0 18px 50px -16px rgba(139, 92, 246, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --gut: clamp(1.1rem, 4vw, 2.4rem);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
::selection { background: var(--fuchsia); color: #fff; }

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

/* scroll offset so anchors clear the sticky header */
section[id], [id="top"] { scroll-margin-top: 90px; }

.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 200;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---- layout ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.container.narrow { max-width: 820px; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; justify-content: center;
  padding: 0.72rem 1.25rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 54px -14px rgba(236, 72, 153, 0.6); }
.btn--ghost { border: 1px solid var(--border-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.875rem; }
.btn--lg { padding: 0.95rem 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary:hover .icon { transform: translateX(3px); transition: transform 0.25s; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 8, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand-mark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.04em; }
.brand-dot { color: var(--fuchsia); }
.nav { display: flex; gap: 1.7rem; margin-left: 1.5rem; margin-right: auto; }
.nav a { color: var(--dim); font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; transition: color 0.2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 0.4rem; padding: 1rem var(--gut) 1.6rem;
  background: rgba(8, 8, 13, 0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.mobile-nav a { padding: 0.85rem 0.6rem; color: var(--dim); font-weight: 500; border-radius: 12px; }
.mobile-nav a:hover { background: var(--panel-2); color: var(--text); }
.mobile-nav .btn { margin-top: 0.6rem; }
.mobile-nav.is-open { display: flex; }

/* ---- hero ---- */
.hero { position: relative; padding: clamp(3.5rem, 11vh, 8rem) 0 clamp(3rem, 8vh, 6rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; will-change: transform; }
.blob--violet { width: 46vw; height: 46vw; background: var(--violet); top: -12vw; left: -8vw; animation: float1 16s ease-in-out infinite; }
.blob--fuchsia { width: 38vw; height: 38vw; background: var(--fuchsia); top: -4vw; right: -6vw; opacity: 0.42; animation: float2 19s ease-in-out infinite; }
.blob--cyan { width: 40vw; height: 40vw; background: var(--cyan); bottom: -18vw; left: 30vw; opacity: 0.32; animation: float3 22s ease-in-out infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
}
@keyframes float1 { 50% { transform: translate(6vw, 5vw) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(-5vw, 6vw) scale(1.12); } }
@keyframes float3 { 50% { transform: translate(4vw, -6vw) scale(0.92); } }

.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--panel); color: var(--dim); font-size: 0.85rem; font-weight: 500;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
.hero-title { font-size: clamp(2.7rem, 8.5vw, 6.1rem); margin: 1.6rem 0 0; letter-spacing: -0.035em; }
.hero-lead { max-width: 620px; margin: 1.4rem auto 0; color: var(--dim); font-size: clamp(1.02rem, 2.4vw, 1.22rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 2.2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: clamp(2.8rem, 6vh, 4.5rem); width: 100%; max-width: 860px;
  border-top: 1px solid var(--border); padding-top: 2rem;
}
.hero-stat dt { font-family: var(--font-display); font-size: clamp(1.7rem, 4.5vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; }
.hero-stat dd { color: var(--mute); font-size: 0.85rem; margin-top: 0.2rem; }

/* ---- marquee ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-2); padding: 1.1rem 0; }
.marquee-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--dim); white-space: nowrap; }
.marquee-track i { color: var(--fuchsia); font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---- generic section ---- */
.section { padding: clamp(4rem, 10vh, 7.5rem) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vh, 3.6rem); }
.kicker {
  display: inline-flex; align-items: center; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.78rem; font-weight: 600; color: var(--violet); margin-bottom: 0.9rem;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--violet); margin-right: 0.7rem; }
.section-title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.section-lead { color: var(--dim); font-size: 1.08rem; margin-top: 1rem; }

/* ---- bento services ---- */
.bento { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.bento-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.7rem; position: relative; overflow: hidden; transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.bento-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity 0.35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.bento-card:hover { transform: translateY(-4px); background: var(--panel-2); }
.bento-card:hover::before { opacity: 1; }
.bento-card h3 { font-size: 1.32rem; margin: 1.1rem 0 0.6rem; }
.bento-card p { color: var(--dim); font-size: 0.98rem; }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(45, 212, 255, 0.16));
  border: 1px solid var(--border-2); color: #fff;
}
.card-icon .icon { width: 26px; height: 26px; }
.card-icon--sm { width: 46px; height: 46px; border-radius: 13px; }
.card-icon--sm .icon { width: 22px; height: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.tag-list li {
  font-size: 0.8rem; color: var(--dim); padding: 0.32rem 0.7rem;
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.02);
}

/* ---- cases (live creatives, styled like the pricing block) ---- */
.cases { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  font-size: 0.72rem; font-weight: 700; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.tab.is-active .tab-count { background: rgba(0, 0, 0, 0.28); color: #fff; }
.case-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.case-view {
  position: relative; display: grid; place-items: center; min-height: 220px; padding: 1.3rem; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #15151f, #0a0a11);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.case-stage { position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 20px 44px -24px #000; }
.case-stage iframe { display: block; border: 0; background: #fff; transform-origin: top left; }
.case-meta { margin-top: 1rem; text-align: center; }
.case-meta h3 { font-size: 1.12rem; margin: 0.6rem 0 0.3rem; }
.case-meta p { color: var(--dim); font-size: 0.92rem; max-width: 44ch; margin-inline: auto; }
.creative-format {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--cyan); background: rgba(45, 212, 255, 0.1); border: 1px solid rgba(45, 212, 255, 0.25);
  padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
}
.creative-size { display: inline-block; margin-top: 0.5rem; color: var(--mute); font-size: 0.82rem; font-variant-numeric: tabular-nums; }

.cases-empty {
  text-align: center; padding: 4rem 1.5rem; border: 1px dashed var(--border-2); border-radius: var(--radius-lg);
  background: var(--panel); display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.cases-empty .icon { width: 46px; height: 46px; color: var(--violet); margin-bottom: 0.5rem; }
.cases-empty h3 { font-size: 1.4rem; }
.cases-empty p { color: var(--dim); max-width: 460px; }
.cases-empty .btn { margin-top: 1rem; }

/* ---- pricing ---- */
.pricing { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; }
.tabs { display: flex; gap: 0.4rem; padding: 0.7rem; overflow-x: auto; border-bottom: 1px solid var(--border);
  scrollbar-width: thin; }
.tab {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 12px;
  color: var(--dim); font-weight: 500; font-size: 0.92rem; white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.tab .icon { width: 18px; height: 18px; }
.tab:hover { color: var(--text); background: var(--panel-2); }
.tab.is-active { color: #fff; background: var(--grad); box-shadow: var(--glow); }
.panel { padding: clamp(1.2rem, 3vw, 2rem); }
.panel[hidden] { display: none; }
.panel-sub { color: var(--mute); margin-bottom: 1.2rem; font-size: 0.95rem; }
.price-list { display: flex; flex-direction: column; }
.price-row {
  display: flex; gap: 1rem; justify-content: space-between; align-items: center;
  padding: 1.1rem 0.4rem; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.price-row:last-child { border-bottom: 0; }
.price-row--hot { border-radius: 14px; padding-inline: 1rem; background: linear-gradient(100deg, rgba(139, 92, 246, 0.1), rgba(45, 212, 255, 0.06)); border: 1px solid var(--border); margin: 0.4rem 0; }
.price-main h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.price-note { color: var(--mute); font-size: 0.88rem; margin-top: 0.2rem; max-width: 56ch; }
.example-link { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.78rem; font-weight: 600; color: var(--cyan);
  border: 1px solid rgba(45, 212, 255, 0.25); padding: 0.1rem 0.5rem; border-radius: var(--radius-pill); }
.example-link .icon { width: 13px; height: 13px; }
.example-link:hover { background: rgba(45, 212, 255, 0.12); }
.price-tail { text-align: right; flex: none; }
.price-value { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.price-term { color: var(--mute); font-size: 0.82rem; }
.pricing-foot { text-align: center; color: var(--dim); margin-top: 1.6rem; }
.pricing-foot a { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border-2); }
.pricing-foot a:hover { color: var(--cyan); }

/* ---- process steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; position: relative; transition: transform 0.3s, border-color 0.3s; }
.step:hover { transform: translateY(-3px); border-color: var(--border-2); }
.step-no { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: transparent;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
.step h3 { font-size: 1.2rem; margin: 0.5rem 0 0.5rem; }
.step p { color: var(--dim); font-size: 0.95rem; }

/* ---- advantages ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.feature { display: flex; gap: 1rem; padding: 1.5rem; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.3s, transform 0.3s; }
.feature:hover { border-color: var(--border-2); transform: translateY(-3px); }
.feature h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.feature p { color: var(--dim); font-size: 0.94rem; }

/* ---- faq ---- */
.faq { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color 0.3s; }
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; list-style: none; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--violet); border-radius: 2px; transition: transform 0.3s; }
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-body { padding: 0 1.4rem 1.3rem; color: var(--dim); }
.faq-body p { max-width: 70ch; }

/* ---- contact ---- */
.contact { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; align-items: start; }
.contact-copy .section-title { margin-top: 0.4rem; }
.contact-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.8rem; }
.contact-list a { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); font-weight: 500; width: max-content; }
.contact-list .icon { color: var(--violet); }
.contact-list a:hover { color: var(--cyan); }

.contact-form { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem); display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.85rem; color: var(--dim); font-weight: 500; }
.field input, .field select, .field textarea {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 13px;
  padding: 0.8rem 0.95rem; transition: border-color 0.2s, background 0.2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #5c5c69; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: rgba(139, 92, 246, 0.06); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2380808f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.92rem; min-height: 1.2rem; }
.form-status.is-ok { color: #4ade80; }
.form-status.is-err { color: #fb7185; }
.form-fine { color: var(--mute); font-size: 0.78rem; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: clamp(2.5rem, 6vh, 4rem); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; }
.footer-brand .brand-mark { font-size: 1.7rem; }
.footer-brand p { color: var(--mute); margin-top: 0.8rem; max-width: 38ch; font-size: 0.92rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a, .footer-contacts a { color: var(--dim); font-size: 0.94rem; width: max-content; }
.footer-nav a:hover, .footer-contacts a:hover { color: var(--text); }
.footer-contacts { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--border); color: var(--mute); font-size: 0.84rem; }

/* ---- reveal animation (progressive enhancement: hidden only when JS is on) ---- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- error page ---- */
.error-body { min-height: 100vh; display: grid; place-items: center; }
.error-page { position: relative; text-align: center; padding: 2rem; }
.error-inner { position: relative; z-index: 1; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 20vw, 11rem); font-weight: 700; line-height: 1; }
.error-page h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); margin: 0.5rem 0 1rem; }
.error-page p { color: var(--dim); max-width: 420px; margin: 0 auto 1.8rem; }

/* =========================================================================
   responsive
   ========================================================================= */
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card--lg { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
  .bento-card--lg { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}

@media (max-width: 860px) {
  .nav, .hide-mobile { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 460px) {
  .header-actions .btn--primary { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
}

/* =========================================================================
   motion / accessibility preferences
   ========================================================================= */
@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; }
  .js .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
}
