/* ============================================================
   asfaran.com homepage
   Built to the landing-page-design skill: one typeface (Manrope),
   Tailwind type scale with named text styles, fixed spacing tokens,
   Tailwind radii, flat backgrounds, one easing curve.
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../assets/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour */
  --bg: #F8FAFC;          /* main canvas */
  --surface: #FFFFFF;     /* cards, alternate sections */
  --ink: #0F172A;         /* headings */
  --body: #475569;        /* paragraphs */
  --mute: #64748B;        /* captions */
  --line: #E2E8F0;        /* borders */
  --accent: #EA580C;      /* primary buttons */
  --accent-hover: #C2410C;
  --accent-text: #C2410C; /* orange text on light backgrounds */
  --accent-tint: #FFF7ED;
  --dark: #181818;        /* dark sections (approved dark palette) */
  --dark-2: #1F1F1F;
  --dark-3: #272727;
  --dark-4: #313131;
  --black: #000000;
  --on-dark: #F5F5F5;
  --on-dark-mute: #A3A3A3;
  --accent-on-dark: #FB923C;

  /* Spacing tokens (the only spacing values used) */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* Tailwind radii */
  --r: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-move: 500ms;
  --t-color: 300ms;

  --maxw: 1152px;
  --gutter: var(--s-300);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1rem; line-height: 1.5rem; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
em, i { font-style: normal; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 640px) { :root { --gutter: var(--s-200); } }

/* ---- Named text styles (Tailwind scale) ---------------------------- */
.heading-1 { font-size: 3.75rem; line-height: 1; font-weight: 600; letter-spacing: -0.025em; }
.heading-2 { font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.015em; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.01em; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.title-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.body-1 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.body-2 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.body-5 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.button-lg { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.button-md { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.caption-1 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-3 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }

/* Smaller screens step down the scale (still scale steps) */
@media (max-width: 860px) {
  .heading-1 { font-size: 3rem; line-height: 1; }
  .heading-2 { font-size: 2.25rem; line-height: 2.5rem; }
  .heading-3 { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (max-width: 640px) {
  .heading-1 { font-size: 2.25rem; line-height: 2.5rem; }
  .heading-2 { font-size: 1.875rem; line-height: 2.25rem; }
  .heading-3 { font-size: 1.5rem; line-height: 2rem; }
  .heading-4 { font-size: 1.5rem; line-height: 2rem; }
  .br-lg { display: none; }
}

/* ---- Icons (Phosphor, from the inline sprite) ----------------------- */
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-color) var(--ease), border-color var(--t-color) var(--ease), color var(--t-color) var(--ease), transform var(--t-color) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--mute); }
.btn-on-dark { background: transparent; color: var(--on-dark); border-color: var(--dark-4); }
.btn-on-dark:hover { border-color: var(--on-dark-mute); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-50); color: var(--accent-text); transition: color var(--t-color) var(--ease); }
.link-arrow .ic { transition: transform var(--t-color) var(--ease); }
.link-arrow:hover .ic { transform: translateX(var(--s-50)); }
.text-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color var(--t-color) var(--ease); }
.text-link:hover { text-decoration-color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: var(--r); }
.dark :focus-visible { outline-color: var(--accent-on-dark); }
[aria-busy="true"] { cursor: progress; }

.skip-link { position: absolute; left: var(--s-200); top: calc(-1 * var(--s-900)); z-index: 60; padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); background: var(--ink); color: #FFFFFF; }
.skip-link:focus { top: var(--s-200); }
main:focus { outline: none; }

/* ---- Floating navigation ------------------------------------------------ */
.nav {
  position: fixed; z-index: 40; top: var(--s-200); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--s-300);
  width: max-content; max-width: calc(100% - var(--s-400));
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-100);
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--r-2xl);
}
.brand { display: flex; align-items: center; gap: var(--s-75); color: var(--ink); white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--accent); color: #FFFFFF; }
.nav-links { display: flex; align-items: center; gap: var(--s-50); }
.nav-links a:not(.btn) { padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); color: var(--body); transition: color var(--t-color) var(--ease), background-color var(--t-color) var(--ease); }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--bg); }
.nav-links a[aria-current="true"] { color: var(--ink); background: var(--bg); }
.nav-toggle { display: none; position: relative; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; }
.nav-toggle span { position: absolute; left: var(--s-100); right: var(--s-100); height: 2px; border-radius: var(--r-full); background: var(--ink); transition: transform var(--t-move) var(--ease); }
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-900) var(--s-300) var(--s-600);
  background: rgba(248, 250, 252, 0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity var(--t-move) var(--ease), visibility var(--t-move);
}
.menu.open { opacity: 1; visibility: visible; }
.menu a:not(.btn) { display: block; padding: var(--s-100) 0; color: var(--ink); }
.menu .btn { margin-top: var(--s-300); }
.menu > * { opacity: 0; transform: translateY(var(--s-300)); transition: opacity var(--t-move) var(--ease), transform var(--t-move) var(--ease); }
.menu.open > * { opacity: 1; transform: none; }
.menu.open > *:nth-child(1) { transition-delay: 0ms; }
.menu.open > *:nth-child(2) { transition-delay: 60ms; }
.menu.open > *:nth-child(3) { transition-delay: 120ms; }
.menu.open > *:nth-child(4) { transition-delay: 180ms; }
.menu.open > *:nth-child(5) { transition-delay: 240ms; }
.menu.open > *:nth-child(6) { transition-delay: 300ms; }
.menu.open > *:nth-child(n+7) { transition-delay: 360ms; }

@media (max-width: 860px) {
  .nav { left: var(--s-200); right: var(--s-200); width: auto; max-width: none; transform: none; justify-content: space-between; }
  .nav-links a:not(.btn), .nav-links .hide-md { display: none; }
  .nav-toggle { display: block; }
}
@media (min-width: 861px) { .menu { display: none; } }

/* ---- Sections ---------------------------------------------------------- */
.section { padding-block: var(--s-900); }
.section-surface { background: var(--surface); }
.section-dark { background: var(--dark); color: var(--on-dark-mute); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
@media (max-width: 640px) { .section { padding-block: var(--s-700); } }

.eyebrow { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.08em; }
.section-dark .eyebrow { color: var(--accent-on-dark); }
.section-head { max-width: 680px; }
.section-head .heading-2 { margin-top: var(--s-200); }
.section-head p { margin-top: var(--s-200); }

/* Scroll reveal: rise 32px and fade in, once */
.js .reveal { opacity: 0; transform: translateY(var(--s-400)); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Hero ------------------------------------------------------------ */
.hero { padding-top: calc(var(--s-900) + var(--s-600)); padding-bottom: var(--s-900); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-700); align-items: center; }
.hero-copy { max-width: 680px; }
.pill { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); color: var(--body); }
.pill-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: #16A34A; }
.hero h1 {
  margin-top: var(--s-300); max-width: 680px;
  background: linear-gradient(90deg, #000000, #666666); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: var(--s-300); max-width: 680px; }
.hero-cta { margin-top: var(--s-400); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-300); }
.hero-proof { margin-top: var(--s-600); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); max-width: 560px; }
@media (max-width: 400px) { .hero-proof { grid-template-columns: 1fr 1fr; } }
.hero-proof b { display: block; color: var(--ink); }
.hero-visual { position: relative; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-3xl); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.badges { position: absolute; top: var(--s-300); right: calc(-1 * var(--s-300)); display: flex; flex-direction: column; gap: var(--s-100); }
.badge { width: 80px; height: 80px; border-radius: var(--r-full); display: block; transition: transform var(--t-color) var(--ease); }
.badge:hover { transform: translateY(calc(-1 * var(--s-50))); }
.badge-plate { background: var(--surface); padding: var(--s-50); border: 1px solid var(--line); }
.badge img { width: 100%; height: 100%; border-radius: var(--r-full); }
.now-chip {
  position: absolute; left: calc(-1 * var(--s-300)); bottom: var(--s-300);
  display: flex; align-items: center; gap: var(--s-100); padding: var(--s-100) var(--s-200);
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-xl); color: var(--ink);
}
.now-chip small { display: block; color: var(--mute); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-600); } }
@media (max-width: 860px) {
  .hero { padding-top: calc(var(--s-900) + var(--s-300)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; width: 100%; margin-inline: auto; }
  .badges { right: var(--s-200); }
  .now-chip { left: var(--s-200); }
}
@media (max-width: 640px) { .badge { width: 64px; height: 64px; } .hero-cta { gap: var(--s-200); } .hero-cta .btn { width: 100%; } }

/* ---- Platform strip (proof) ----------------------------------------------- */
.strip { padding-block: var(--s-500); }
.strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-200) var(--s-400); }
.strip-label { width: 100%; text-align: center; color: var(--mute); }
.strip a { color: var(--body); transition: color var(--t-color) var(--ease); }
.strip a:hover { color: var(--ink); }

/* ---- Cards ------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); margin-top: var(--s-600); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-300); margin-top: var(--s-600); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-300); margin-top: var(--s-600); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: var(--s-100); padding: var(--s-300); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl); }
.section-surface .card { background: var(--bg); }
a.card { transition: border-color var(--t-color) var(--ease), transform var(--t-move) var(--ease); }
a.card:hover { border-color: var(--mute); transform: translateY(calc(-1 * var(--s-50))); }
.card .card-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--accent-tint); color: var(--accent-text); margin-bottom: var(--s-75); }
.card h3 { color: var(--ink); }
.card .link-arrow { margin-top: auto; padding-top: var(--s-100); }

/* Problem -> solution */
.ps-label { color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.ps-fix { margin-top: var(--s-200); padding-top: var(--s-200); display: flex; gap: var(--s-100); color: var(--ink); }
.ps-fix .ic { color: #16A34A; margin-top: var(--s-25); }
.ps-divider { height: 1px; background: var(--line); margin-top: var(--s-200); }

/* ---- Tagline reveal ------------------------------------------------------ */
.tagline { max-width: 680px; margin-inline: auto; text-align: center; color: var(--ink); }
.tagline .w { opacity: 0.3; transition: opacity var(--t-move) var(--ease); }
.tagline .w.on { opacity: 1; }
.no-js .tagline .w { opacity: 1; }

/* ---- Impact numbers ------------------------------------------------------- */
.stat { padding: var(--s-300); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-2xl); }
.stat b { display: block; color: var(--accent-text); }
.stat span { display: block; margin-top: var(--s-75); }

/* ---- How I work (dark) ---------------------------------------------------- */
.step { padding: var(--s-300); background: var(--dark-2); border: 1px solid var(--dark-3); border-radius: var(--r-2xl); }
.step-no { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--dark-3); color: var(--accent-on-dark); }
.step h3 { margin-top: var(--s-300); }
.step p { margin-top: var(--s-75); }

/* ---- Selected work -------------------------------------------------------- */
.work { padding: var(--s-400); }
.work-top { display: flex; justify-content: space-between; gap: var(--s-200); color: var(--accent-text); }
.work-top span:last-child { color: var(--mute); }
.work h3 { margin-top: var(--s-75); }
.work-stats { display: flex; flex-wrap: wrap; gap: var(--s-200) var(--s-400); margin-top: var(--s-200); }
.work-stats b { display: block; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-200); }
.tag { padding: var(--s-25) var(--s-75); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--body); background: var(--surface); }
@media (max-width: 640px) { .work { padding: var(--s-300); } }

/* ---- Experience timeline (markup generated by /admin/ -> Content) ---------- */
.timeline { position: relative; margin-top: var(--s-600); max-width: 800px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: var(--s-75); bottom: var(--s-75); width: 2px; background: var(--line); }
.tl-item { position: relative; padding-left: var(--s-600); padding-bottom: var(--s-600); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .node { position: absolute; left: 0; top: var(--s-50); width: 16px; height: 16px; border-radius: var(--r-full); background: var(--surface); border: 2px solid var(--mute); }
.tl-item.current .node { border-color: var(--accent); background: var(--accent-tint); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-75) var(--s-100); }
.tl-head .role { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: var(--ink); }          /* Heading 6 */
.tl-head .co { font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--accent-text); }       /* Body 1 */
.tl-now { display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-25) var(--s-75); border-radius: var(--r-full); border: 1px solid #BBF7D0; background: #F0FDF4; color: #15803D; font-size: 0.75rem; line-height: 1rem; font-weight: 600; } /* Caption 3 */
.tl-now-dot { width: 6px; height: 6px; border-radius: var(--r-full); background: #16A34A; }
.tl-meta { display: flex; flex-wrap: wrap; gap: var(--s-50) var(--s-200); margin-top: var(--s-50); color: var(--mute); font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; } /* Caption 1 */
.tl-summary { margin-top: var(--s-200); max-width: 72ch; }
.tl-bullets { margin-top: var(--s-200); display: grid; gap: var(--s-75); max-width: 72ch; }
.tl-bullets li { position: relative; padding-left: var(--s-300); }
.tl-bullets li::before { content: ""; position: absolute; left: var(--s-50); top: 10px; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--accent); }
@media (max-width: 640px) { .tl-item { padding-left: var(--s-500); padding-bottom: var(--s-500); } }

/* ---- Credentials ------------------------------------------------------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-600); margin-top: var(--s-600); align-items: start; }
@media (max-width: 860px) { .cred-grid { grid-template-columns: 1fr; } }
.cred-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-200); color: var(--ink); }
.list { margin-top: var(--s-300); display: grid; gap: var(--s-100); }
.list-row { display: flex; align-items: center; gap: var(--s-200); padding: var(--s-200); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); color: var(--ink); }
.list-row .card-ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--accent-tint); color: var(--accent-text); }
.list-row small { display: block; color: var(--mute); }
.list-row .yr { min-width: 48px; color: var(--accent-text); }

/* ---- Capabilities -------------------------------------------------------- */
.cap h3 { display: flex; align-items: center; gap: var(--s-100); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-200); }
.chip { padding: var(--s-50) var(--s-100); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--body); }

/* ---- Contact (dark) ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-700); align-items: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s-600); } }
.contact-copy .heading-2 { margin-top: var(--s-200); }
.contact-copy p { margin-top: var(--s-300); max-width: 520px; }
.contact-cta { margin-top: var(--s-400); display: flex; flex-wrap: wrap; gap: var(--s-200); }
.contact-card { padding: var(--s-300); background: var(--dark-2); border: 1px solid var(--dark-3); border-radius: var(--r-2xl); display: grid; gap: var(--s-75); }
.contact-row { display: flex; align-items: center; gap: var(--s-200); padding: var(--s-100); border-radius: var(--r-lg); color: var(--on-dark); transition: background-color var(--t-color) var(--ease); }
a.contact-row:hover { background: var(--dark-3); }
.contact-row .card-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--dark-3); color: var(--accent-on-dark); }
.contact-row small { display: block; color: var(--on-dark-mute); }
.contact-row .ic-wa { color: #4ADE80; }

/* ---- Footer ------------------------------------------------------------ */
.foot { background: var(--black); color: var(--on-dark-mute); padding-block: var(--s-600); }
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s-300); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); }
.foot-links a { padding-block: var(--s-50); transition: color var(--t-color) var(--ease); }
.foot-links a:hover { color: var(--on-dark); }
.foot-pref { flex-basis: 100%; }

/* ---- Floating booking button ------------------------------------------- */
.book-fab {
  position: fixed; z-index: 30; right: max(var(--s-200), env(safe-area-inset-right)); bottom: max(var(--s-200), env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-200) var(--s-75) var(--s-75);
  border-radius: var(--r-full); background: var(--dark); color: #FFFFFF; border: 1px solid var(--dark-4);
  transition: opacity var(--t-move) var(--ease), transform var(--t-move) var(--ease), visibility var(--t-move), background-color var(--t-color) var(--ease);
}
.book-fab-ic { width: 32px; height: 32px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--accent); }
.book-fab:hover { background: var(--dark-3); }
.js .book-fab:not(.show) { opacity: 0; visibility: hidden; transform: translateY(var(--s-200)); pointer-events: none; }
body:has(.calendly-overlay) .book-fab, body:has(.lead-overlay.open) .book-fab, body:has(.menu.open) .book-fab { display: none; }

/* ---- Resume lead form (modal) -------------------------------------------- */
.lead-overlay {
  position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: var(--s-200);
  background: rgba(15, 23, 42, 0.56); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity var(--t-move) var(--ease), visibility var(--t-move);
}
.lead-overlay.open { opacity: 1; visibility: visible; }
.lead-card {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - var(--s-400)); overflow-y: auto;
  padding: var(--s-400); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3xl);
  transform: translateY(var(--s-200)); transition: transform var(--t-move) var(--ease);
}
.lead-overlay.open .lead-card { transform: none; }
.lead-close { position: absolute; top: var(--s-200); right: var(--s-200); width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: border-color var(--t-color) var(--ease); }
.lead-close:hover { border-color: var(--mute); }
.lead-card h3 { margin-top: var(--s-200); }
.lead-card p { margin-top: var(--s-100); }
.lead-form { margin-top: var(--s-300); display: grid; gap: var(--s-200); }
.lead-field { display: grid; gap: var(--s-75); }
.lead-field label { color: var(--ink); }
.lead-field input { width: 100%; padding: var(--s-75) var(--s-100); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.5rem; transition: border-color var(--t-color) var(--ease); }
.lead-field input:focus { outline: none; border-color: var(--accent-text); }
.lead-field input[aria-invalid="true"] { border-color: #DC2626; }
.lead-error { color: #B91C1C; }
.lead-actions { display: grid; gap: var(--s-100); margin-top: var(--s-75); }
.lead-actions .btn { width: 100%; }
.lead-skip { background: none; border: 0; cursor: pointer; padding: var(--s-75); color: var(--body); justify-self: center; display: inline-flex; align-items: center; gap: var(--s-50); transition: color var(--t-color) var(--ease); }
.lead-skip:hover { color: var(--ink); }
.lead-note { margin-top: var(--s-200); display: flex; align-items: center; justify-content: center; gap: var(--s-75); color: var(--mute); }
@media (max-width: 640px) { .lead-card { padding: var(--s-300); } }

/* ---- Reduced motion: opacity only, no movement --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity var(--t-color) var(--ease); }
  .tagline .w { opacity: 1; transition: none; }
  .menu > *, .lead-card, .book-fab, a.card, .badge, .link-arrow .ic { transform: none !important; }
  .nav-toggle span { transition: none; }
}

@media print { .nav, .menu, .book-fab, .skip-link { display: none !important; } }
