/* ============================================================
   28 BEAMS — v3 (editorial, sales-driven, animated)

   Signature moves (committed at 100%, not sprinkled):
     1. Editorial typography — wordmark 16vw, headline 6-8rem (10:1 contrast)
     2. Generated imagery as hero + section backgrounds (not /assets/ dead-weight)
     3. Animated gradient mesh + dot-grid texture
     4. Asymmetric bento-style service layout (featured + medium row)
     5. Real motion — scroll reveals, parallax beam, magnetic CTAs, hover-glow

   References studied: Linear, Vercel, Stripe, Anthropic, Cursor (Open Design DS catalog)
   ============================================================ */

:root {
  /* TYPOGRAPHY */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, SFMono-Regular, monospace;

  /* COLORS — 5 token core + 2 layered surface tones */
  --ink:        #f4ede0;
  --bg:         #0b0a09;
  --bg-2:       #15120e;
  --bg-3:       #1c1816;
  --muted:      #9a9085;
  --line:       #1c1a17;
  --line-2:     #2a2723;
  --accent:     #c98a3a;
  --accent-2:   #e3a455;
  --accent-cool:#6a7280;

  /* SPACING */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6rem;
  --s-7: 9rem;

  --radius:    6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --ease-out:  cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
ol, ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

/* ---------- A11Y ---------- */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--accent); color: var(--bg);
  padding: 0.75rem 1rem; z-index: 100;
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .beam-load, .mesh-blob { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- LAYOUT ---------- */
.wrap { width: min(1280px, 92%); margin: 0 auto; }
main { display: block; }
section { padding: var(--s-7) 0; position: relative; z-index: 1; }
.section-head { max-width: 56ch; margin: 0 0 var(--s-5); }

/* ---------- AMBIENT — gradient mesh + dot grid ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Dot grid texture with radial mask for edge falloff */
.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, rgba(244, 237, 224, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 80%);
          mask-image: radial-gradient(ellipse at 30% 20%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 80%);
}
/* Animated gradient mesh — three colored blobs drifting */
.ambient-mesh { position: absolute; inset: 0; filter: blur(80px); opacity: 0.6; }
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.mesh-blob-1 {
  width: 70vmax; height: 70vmax;
  top: -25vmax; left: -20vmax;
  background: radial-gradient(circle, rgba(201, 138, 58, 0.45) 0%, transparent 60%);
  animation: drift-1 28s ease-in-out infinite;
}
.mesh-blob-2 {
  width: 60vmax; height: 60vmax;
  top: 30vh; right: -20vmax;
  background: radial-gradient(circle, rgba(106, 114, 128, 0.35) 0%, transparent 60%);
  animation: drift-2 36s ease-in-out infinite;
}
.mesh-blob-3 {
  width: 55vmax; height: 55vmax;
  bottom: -20vmax; left: 20vw;
  background: radial-gradient(circle, rgba(227, 164, 85, 0.28) 0%, transparent 60%);
  animation: drift-3 32s ease-in-out infinite;
}
@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(8vw, 4vh) scale(1.08); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-6vw, -3vh) scale(0.94); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(4vw, -5vh) scale(1.1); }
}

/* ---------- TYPOGRAPHY — editorial ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.section-title {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.title-accent { color: var(--accent); font-style: italic; font-weight: 400; }
.title-italic { font-style: italic; color: var(--accent); font-weight: 400; }

p { margin: 0; text-wrap: pretty; max-width: 64ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--s-3);
}
.eyebrow-center { justify-content: center; }
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.15); }
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 9, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-wrap { display: flex; align-items: center; gap: var(--s-3); padding: 0.9rem 0; }

.brand-mini {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: baseline;
}
.bm-slash { color: var(--accent); margin: 0 0.06em; font-weight: 400; }
.bm-word  { font-weight: 500; }

.nav {
  display: flex; gap: var(--s-3); margin-left: auto; align-items: center;
  font-family: var(--font-mono); font-size: 0.84rem; letter-spacing: 0.06em;
}
.nav a { color: var(--ink); text-decoration: none; transition: color 160ms ease; }
.nav a:hover { color: var(--accent); }
.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}
.nav-cta:hover { border-color: var(--accent); background: rgba(201, 138, 58, 0.08); }
.nav-cta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out),
              border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out),
              transform 220ms var(--ease-out);
  position: relative;
  isolation: isolate;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 6px 24px -8px rgba(201, 138, 58, 0.45);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 12px 36px -8px rgba(227, 164, 85, 0.55);
  transform: translateY(-2px);
}
.btn-primary .btn-arrow { transition: transform 220ms var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(201, 138, 58, 0.06);
  transform: translateY(-2px);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  padding: clamp(var(--s-5), 12vh, var(--s-7)) 0 var(--s-5);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: -10% -5% -5% -5%;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  mix-blend-mode: screen;
  filter: contrast(1.1) saturate(1.2);
  animation: parallax-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-bg-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 10, 9, 0.35) 0%,
    rgba(11, 10, 9, 0.55) 60%,
    var(--bg) 100%);
}
@keyframes parallax-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.04); }
}

.hero-wrap { display: flex; flex-direction: column; gap: var(--s-3); width: 100%; }

.hero-eyebrow { animation: rise-in 900ms var(--ease-out) 50ms both; }

/* MASSIVE editorial wordmark */
.hero-mark {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  font-family: var(--font-display);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 0 0 var(--s-3);
  animation: rise-in 1100ms var(--ease-out) 150ms both;
}
.mark-num {
  font-size: clamp(7rem, 22vw, 22rem);
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: "ss01" on, "tnum" on;
}
.mark-slash {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 400;
  color: var(--accent);
  margin: 0 0.04em 0 0.06em;
  transform: translateY(-0.2em);
  filter: drop-shadow(0 0 24px rgba(201, 138, 58, 0.45));
}
.mark-word {
  font-size: clamp(2.2rem, 6.5vw, 6rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  transform: translateY(-0.2em);
}

/* Beam — sweep then fade out */
.beam {
  position: absolute; pointer-events: none;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 138, 58, 0.55) 30%,
    rgba(244, 237, 224, 1) 50%,
    rgba(201, 138, 58, 0.55) 70%,
    transparent 100%);
  box-shadow:
    0 0 16px rgba(201, 138, 58, 0.7),
    0 0 48px rgba(201, 138, 58, 0.35);
}
.beam-load {
  left: -10%; right: -10%; top: 58%;
  transform: translateX(-30%) scaleX(0.3);
  opacity: 0;
  animation: beam-sweep 2000ms var(--ease-out) 700ms forwards;
}
@keyframes beam-sweep {
  0%   { transform: translateX(-30%) scaleX(0.3); opacity: 0; }
  20%  { opacity: 1; }
  65%  { transform: translateX(10%) scaleX(1); opacity: 0.65; }
  100% { transform: translateX(45%) scaleX(0.7); opacity: 0; }
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6.4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: var(--s-2) 0 var(--s-3);
  max-width: 18ch;
  animation: rise-in 1100ms var(--ease-out) 350ms both;
}
.headline-italic { font-style: italic; color: var(--accent); font-weight: 400; }

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.6;
  animation: rise-in 1100ms var(--ease-out) 550ms both;
}
.hero-cta-row {
  display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3);
  animation: rise-in 1100ms var(--ease-out) 750ms both;
}

.hero-scroll {
  position: absolute;
  bottom: var(--s-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: rise-in 1100ms var(--ease-out) 1100ms both;
}
.scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: scroll-down 2.4s var(--ease-in-out) infinite;
  transform-origin: top;
}
.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes scroll-down {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(8px); opacity: 0; }
}
@keyframes rise-in {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- STATS ---------- */
.stats {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(21, 18, 14, 0.5), transparent);
}
.stats-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.stat {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: var(--s-2) 0;
  border-left: 1px solid var(--line-2);
  padding-left: var(--s-3);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--ink);
  font-feature-settings: "tnum" on;
  display: flex; align-items: baseline; gap: 0.15em;
}
.stat-unit {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--accent);
  font-weight: 400;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.stat-detail {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 32ch;
}
@media (max-width: 820px) {
  .stats-wrap { grid-template-columns: 1fr; gap: var(--s-3); }
  .stat { border-left: none; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: var(--s-3); }
  .stat:first-child { border-top: none; padding-top: 0; }
}

/* ---------- WORK / SERVICES — asymmetric bento ---------- */
.work { padding-top: var(--s-7); padding-bottom: var(--s-7); }

/* Featured service — large, with imagery */
.service-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--s-3);
  position: relative;
  isolation: isolate;
  transition: border-color 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.service-feature:hover {
  border-color: rgba(201, 138, 58, 0.5);
  box-shadow: 0 24px 60px -20px rgba(201, 138, 58, 0.18);
}
.service-feature-img {
  position: relative;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.feature-img-tint {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(11, 10, 9, 0.2) 0%,
    rgba(11, 10, 9, 0.55) 100%);
  z-index: 1;
}
.service-feature-img::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--bg-2));
  z-index: 2;
}
.service-feature-body {
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-2);
}

/* Medium service row — two columns */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.service-medium {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-2);
  transition: border-color 320ms var(--ease-out), transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.service-medium:hover {
  border-color: rgba(201, 138, 58, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px -16px rgba(201, 138, 58, 0.15);
}

/* Service internal styling — shared */
.service-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}
.s-num { color: var(--muted); }
.s-tag {
  text-transform: uppercase;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.tag-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.s-tag-active   { color: var(--accent); border-color: rgba(201, 138, 58, 0.5); background: rgba(201, 138, 58, 0.08); }
.s-tag-soon     { color: var(--accent-cool); border-color: rgba(106, 114, 128, 0.4); }
.s-tag-building { color: var(--muted); }
.s-tag-active .tag-dot { animation: pulse 2.4s ease-in-out infinite; }

.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: var(--s-2) 0 0;
  color: var(--ink);
}
.service-feature .service-title { font-size: clamp(1.9rem, 3vw, 2.6rem); }

.service-lead {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 42ch;
}
.service-bullets {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.service-bullets li { display: flex; gap: 0.6rem; }
.b-dash { color: var(--accent); opacity: 0.75; flex-shrink: 0; }
.service-cta {
  margin-top: auto;
  padding-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: color 200ms ease, gap 240ms var(--ease-out);
}
.service-cta:hover { gap: 1rem; }
.service-cta .cta-arrow { transition: transform 240ms var(--ease-out); }
.service-cta:hover .cta-arrow { transform: translateX(2px); }
.service-cta-muted {
  color: var(--muted);
  cursor: default;
}
.service-cta-muted:hover { gap: 0.6rem; }

@media (max-width: 900px) {
  .service-feature { grid-template-columns: 1fr; }
  .service-feature-img { min-height: 240px; }
  .service-feature-img::after { display: none; }
  .service-row { grid-template-columns: 1fr; }
}

/* ---------- HOW I WORK ---------- */
.how {
  background: linear-gradient(180deg, transparent, rgba(15, 13, 11, 0.6), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.how-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: contrast(1.1) saturate(1.1);
}
.how-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-5);
  align-items: start;
}
.how-quote {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  position: relative;
  isolation: isolate;
}
.quote-mark {
  position: absolute;
  top: -0.4em;
  left: var(--s-3);
  font-family: var(--font-display);
  font-size: 7rem;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  font-style: italic;
}
.how-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--s-3);
  position: relative;
  max-width: 32ch;
}
.quote-cite {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.process { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: var(--s-2);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: border-color 240ms ease;
}
.process-step:last-child { border-bottom: none; }
.process-step:hover { border-color: rgba(201, 138, 58, 0.35); }
.process-step:hover .p-num { color: var(--accent); transform: translateX(2px); }
.p-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 0.2rem;
  transition: color 240ms ease, transform 240ms var(--ease-out);
}
.p-head {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.p-body p { color: var(--muted); font-size: 0.96rem; line-height: 1.55; max-width: 42ch; }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* ---------- CONTACT ---------- */
.contact { text-align: center; padding-bottom: calc(var(--s-7) + var(--s-3)); }
.contact-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0;
}
.contact-lead {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: var(--s-3) auto 0;
}
.contact-actions {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  margin-top: var(--s-5);
}
.copy-chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 1.1rem 1.5rem 1.1rem 1.75rem;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: border-color 240ms ease, background 240ms ease,
              transform 240ms var(--ease-out), box-shadow 240ms ease;
  -webkit-tap-highlight-color: transparent;
}
.copy-chip-big {
  font-size: 1.05rem;
  padding: 1.2rem 1.6rem 1.2rem 1.9rem;
}
.copy-chip:hover {
  border-color: var(--accent);
  background: rgba(201, 138, 58, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(201, 138, 58, 0.35);
}
.chip-email { word-break: break-all; }
.chip-hint, .chip-done {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: var(--s-2);
  border-left: 1px solid var(--line-2);
  transition: opacity 200ms ease;
}
.chip-done {
  position: absolute;
  right: 1.5rem; top: 50%;
  transform: translateY(-50%);
  background: var(--bg-2);
  border-left: none;
  padding-left: 0.6rem;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
}
.copy-chip.is-copied .chip-hint { opacity: 0; }
.copy-chip.is-copied .chip-done { opacity: 1; }
.copy-chip.is-copied { border-color: var(--accent); }

.contact-mailto {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 200ms ease, gap 240ms var(--ease-out);
}
.contact-mailto:hover { color: var(--accent); gap: 0.6rem; }
.ml-arrow { transition: transform 240ms var(--ease-out); }
.contact-mailto:hover .ml-arrow { transform: translateX(3px); }

/* ---------- FOOTER ---------- */
.footer {
  position: relative; z-index: 1;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer-wrap {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  justify-content: space-between; align-items: center;
}
.footer-wrap p { margin: 0; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.footer-loc { text-transform: uppercase; letter-spacing: 0.14em; }

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
/* No-JS / non-supporting users see content normally. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
html.js [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

/* ---------- MOBILE TUNING ---------- */
@media (max-width: 720px) {
  section { padding: var(--s-6) 0; }
  .hero { padding-top: var(--s-4); padding-bottom: var(--s-5); }
  .hero-mark { flex-wrap: wrap; gap: 0.08em; }
  .mark-word { transform: translateY(-0.1em); }
  .service-feature-body { padding: var(--s-3); }
  .footer-wrap { justify-content: flex-start; gap: var(--s-1) var(--s-3); }
}

/* ---------- UTILITIES ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
