/* =========================================================
   UMAIR AHMED — Personal Brand Site
   Design system v2 — premium executive dark/gold

   Palette   #0A0A0B ink · #131316 panel · #1B1B1F panel-2
             #B8894A gold-deep · #D9A85C gold · #F0D9A8 gold-light
             #F7F5F0 paper · #A6A29A muted
   Type      Display: "Fraunces" optical-size serif, tight tracking
             Body/UI: "Manrope"
   Signature element: the icon-badge — a small squared-circle chip
   with a hairline gold ring and soft inner glow, reused for every
   icon on the site (trust cards, services, footer, timeline) so
   the whole page reads as one considered system rather than a
   stack of stock icons.
   ========================================================= */

:root {
  --ink: #0a0a0b;
  --ink-soft: #0e0e10;
  --panel: #131316;
  --panel-2: #1b1b1f;
  --panel-3: #202024;
  --border: rgba(240, 217, 168, 0.10);
  --border-soft: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(217, 168, 92, 0.35);

  --gold-deep: #a97a3f;
  --gold: #cf9f56;
  --gold-light: #ecce97;
  --gold-mist: rgba(207, 159, 86, 0.14);

  --paper: #f7f5f0;
  --paper-dim: #cdc9c0;
  --muted: #a29d93;
  --muted-2: #726d63;

  --success: #7ab08a;
  --error: #d97757;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1216px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 20px 40px -24px rgba(0,0,0,0.7);
  --shadow-gold: 0 12px 30px -14px rgba(207, 159, 86, 0.35);
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

* { box-sizing: border-box; }
/* overflow-x lives on <html> only — the root element's overflow is what the
   browser propagates to the viewport. Also setting it on <body> turns body
   into its own scroll container (since a lone overflow-x forces overflow-y
   to compute as auto), which silently breaks position:sticky for anything
   inside it — that was why the nav wasn't sticking. */
html { overflow-x: hidden; }

body {
  margin: 0;
  max-width: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine film-grain texture on dark sections — a quiet premium tell */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink);
  padding: 12px 20px; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Icon badge — the signature reusable icon chip ---------- */
.icon-badge {
  --badge-size: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--badge-size);
  height: var(--badge-size);
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--gold-light);
  background:
    linear-gradient(155deg, rgba(207,159,86,0.16), rgba(207,159,86,0.02) 60%),
    var(--panel-2);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.icon-badge svg { width: 46%; height: 46%; }
.icon-badge-sm { --badge-size: 38px; border-radius: 9px; }
.icon-badge-xs { --badge-size: 26px; border-radius: 7px; }
.icon-badge-xs svg { width: 52%; height: 52%; }

/* Light-background variant (used inside the What I Do strip) */
.whatido .icon-badge {
  background: linear-gradient(155deg, rgba(169,122,63,0.10), transparent 60%), #fff;
  border-color: #e6dfd0;
  color: var(--gold-deep);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ---------- Eyebrow / section labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600; color: var(--paper); letter-spacing: -0.015em; line-height: 1.15;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 15.5px; line-height: 1.7; }

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease), color .28s var(--ease), box-shadow .28s var(--ease);
  white-space: nowrap; min-height: 50px; position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-gold {
  background: linear-gradient(175deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: #241a0d;
  box-shadow: var(--shadow-gold);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.35), transparent 40%);
  opacity: 0.5;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(207,159,86,0.55); }
.btn-outline {
  background: rgba(255,255,255,0.02); border-color: var(--border-soft); color: var(--paper);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); background: var(--gold-mist); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 9, 10, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand-mark { display: flex; align-items: center; gap: 13px; }
.brand-mark .monogram {
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(155deg, rgba(207,159,86,0.18), transparent 65%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; color: var(--gold-light);
  font-size: 15px; flex-shrink: 0; border-radius: 8px;
}
.brand-name-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.brand-mark .brand-name { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.04em; font-weight: 600; color: var(--paper); }
.brand-tagline { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); position: relative; padding: 7px 0; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { padding: 11px 22px; min-height: 42px; }
.nav-cta .btn svg { width: 14px; height: 14px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border-soft); width: 44px; height: 44px; border-radius: var(--radius-sm); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--paper); position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; 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); }

.mobile-panel { display: none; position: fixed; inset: 78px 0 0 0; background: var(--ink); z-index: 99; padding: 32px 24px; overflow-y: auto; }
.mobile-panel.open { display: block; }
.mobile-panel ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-panel a { display: block; padding: 16px 4px; font-family: var(--font-display); font-size: 22px; border-bottom: 1px solid var(--border-soft); color: var(--paper); }
.mobile-panel .btn { margin-top: 24px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; padding: 40px 0 0;
  background:
    radial-gradient(ellipse 900px 500px at 88% -10%, rgba(207,159,86,0.10), transparent 60%),
    radial-gradient(ellipse 600px 400px at 8% 90%, rgba(207,159,86,0.05), transparent 60%),
    var(--ink);
  overflow: hidden;
}
/* faint dot grid, echoing the reference banner's corner texture */
.hero::after {
  content: "";
  position: absolute; right: 0; top: 8%; width: 320px; height: 320px;
  background-image: radial-gradient(rgba(207,159,86,0.28) 1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle at 100% 0%, black, transparent 72%);
  mask-image: radial-gradient(circle at 100% 0%, black, transparent 72%);
  pointer-events: none;
}
.hero-grid-v2 { display: grid; grid-template-columns: 27% 1fr 21%; gap: 34px; align-items: center; padding: 44px 0 40px; position: relative; z-index: 1; }

/* Circular portrait with concentric gold rings — matches the reference exactly */
.portrait-circle { position: relative; width: 100%; aspect-ratio: 1 / 1; margin: 0; }
.portrait-circle .portrait-ring-outer {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  opacity: 0.55;
}
.portrait-circle .portrait-ring-outer::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 1px solid var(--border);
}
.portrait-circle .portrait-ring-dots {
  position: absolute; left: -30px; top: -22px; width: 90px; height: 90px;
  background-image: radial-gradient(var(--gold) 1.2px, transparent 1.6px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(circle at 0% 0%, black, transparent 70%);
  mask-image: radial-gradient(circle at 0% 0%, black, transparent 70%);
  opacity: 0.6;
}
.portrait-circle img {
  position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  object-position: top center; border: 3px solid var(--ink);
  outline: 2px solid var(--gold-deep);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(0,0,0,0.4);
  filter: saturate(1.03) contrast(1.04);
}

.hero-hi { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--gold); margin-bottom: 4px; }
.hero-copy h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.015em; line-height: 1.02;
}
.h1-white { color: var(--paper); }
.h1-gold {
  background: linear-gradient(160deg, var(--gold-light) 10%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { margin-top: 14px; font-size: clamp(17px, 1.8vw, 19px); color: var(--paper); font-weight: 600; letter-spacing: -0.005em; }
.tag-gold { color: var(--gold-light); font-weight: 800; }
.hero-subtagline { margin-top: 6px; font-size: clamp(14px, 1.3vw, 15.5px); color: var(--muted); }

.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; max-width: 560px; }
.mini-card {
  border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.02), transparent);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.mini-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.mini-card .icon-badge { margin-bottom: 10px; }
.mc-title { font-family: var(--font-display); font-size: 15px; color: var(--paper); font-weight: 600; display: inline; }
.mc-detail { font-family: var(--font-display); font-size: 15px; color: var(--gold-light); font-weight: 600; display: inline; }
.mini-card .mc-title::after { content: ""; }
.mc-sub { font-size: 11px; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-soft); line-height: 1.5; }

.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn { text-transform: uppercase; font-size: 12.5px; letter-spacing: 0.04em; }

.trust-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.trust-col .icon-badge { --badge-size: 52px; }
.trust-line { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.trust-line strong { color: var(--gold-light); display: block; }

/* Stat bar — real facts, styled as a pill row */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.02), transparent);
  margin-bottom: 30px; position: relative; z-index: 1;
}
.stat-item { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-left: 1px solid var(--border-soft); }
.stat-item:first-child { border-left: none; }
.stat-item .icon-badge { --badge-size: 40px; flex-shrink: 0; }
.stat-label { font-size: 13px; font-weight: 700; color: var(--paper); line-height: 1.4; }

/* Contact strip */
.contact-strip { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--panel); position: relative; z-index: 1; }
.contact-strip .container { display: flex; flex-wrap: wrap; gap: 8px 0; padding-top: 17px; padding-bottom: 17px; }
.contact-strip a { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--paper-dim); padding: 6px 22px; border-right: 1px solid var(--border-soft); transition: color 0.2s; }
.contact-strip li:last-child a { border-right: none; }
.contact-strip a:hover { color: var(--gold-light); }
.contact-strip svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.contact-strip ul { display: flex; flex-wrap: wrap; }

/* =========================================================
   WHAT I DO strip
   ========================================================= */
.whatido { background: var(--paper); color: var(--ink); padding: 30px 0; }
.whatido .eyebrow { color: var(--gold-deep); justify-content: center; margin-bottom: 0; }
.whatido .eyebrow::before, .whatido .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--gold-deep); }
.whatido .eyebrow::after { margin-left: 10px; }
.whatido-head { text-align: center; margin-bottom: 24px; }
.whatido-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.wid-item { padding: 10px 16px; text-align: left; border-left: 1px solid #e5e0d3; }
.wid-item:first-child { border-left: none; }
.wid-item .icon-badge { margin-bottom: 10px; }
.wid-item h3 { font-size: 13px; font-weight: 700; line-height: 1.35; }
.wid-item p { font-size: 11.5px; color: #6b665c; margin-top: 5px; line-height: 1.5; }

/* =========================================================
   GENERIC DARK SECTION
   ========================================================= */
.section-dark { padding: 96px 0; }
.section-dark.alt { background: var(--panel); }

/* Main row: About | Experience | Contact */
.main-row { padding: 60px 0; }
.main-row-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 44px; align-items: start; }
.mr-col .eyebrow { margin-bottom: 16px; }
.mr-contact-sub { color: var(--muted); font-size: 14px; margin: -8px 0 16px; }

.about-copy p { color: var(--paper-dim); margin-bottom: 14px; font-size: 14.5px; line-height: 1.75; }
.about-signature { margin-top: 20px; font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--gold-light); }

.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.highlight-grid-compact { margin-top: 6px; }
.highlight-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  border: 1px solid var(--border-soft); padding: 14px; border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255,255,255,0.02), transparent);
}
.highlight-card span:not(.icon-badge) { font-family: var(--font-display); font-size: 13.5px; color: var(--paper); font-weight: 600; line-height: 1.3; }

/* Services */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  border: 1px solid var(--border-soft); padding: 30px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255,255,255,0.025), transparent 55%), var(--panel);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column; position: relative;
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-5px); box-shadow: var(--shadow-card); }
.service-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.service-card .num { font-family: var(--font-display); font-size: 13px; color: var(--gold); letter-spacing: 0.1em; opacity: 0.7; }
.service-card h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 10px; color: var(--paper); font-weight: 600; letter-spacing: -0.01em; }
.service-card p.summary { color: var(--muted); font-size: 14px; margin-bottom: 14px; line-height: 1.6; }
.service-card ul { margin-bottom: 20px; flex-grow: 1; }
.service-card ul li { font-size: 13.3px; color: var(--paper-dim); padding: 7px 0 7px 16px; position: relative; border-top: 1px solid var(--border-soft); }
.service-card ul li:first-child { border-top: none; }
.service-card ul li::before { content: ""; position: absolute; left: 0; top: 16px; width: 5px; height: 1px; background: var(--gold); }
.service-card .discuss { font-size: 12.5px; font-weight: 700; color: var(--gold-light); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; letter-spacing: 0.02em; }
.service-card .discuss svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.service-card:hover .discuss svg { transform: translateX(4px); }

/* Experience timeline */
.timeline-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-bottom: 20px; }
.tl-col { position: relative; padding-left: 22px; }
.tl-col::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(to bottom, var(--gold-deep), var(--border-soft) 85%); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item.tl-hidden { display: none; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); }
.tl-item.is-current::before { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-mist); }
.tl-role { font-family: var(--font-display); font-size: 15.5px; color: var(--paper); font-weight: 600; line-height: 1.3; }
.tl-company { color: var(--gold-light); font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.tl-meta { color: var(--muted); font-size: 11.5px; margin-top: 4px; line-height: 1.5; }
.tl-badge {
  display: inline-block; margin-left: 9px; font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--success); border: 1px solid var(--success); padding: 1px 7px; border-radius: 20px; vertical-align: middle;
}

/* Skills / languages / cert / education */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pill-block h3 { font-family: var(--font-display); font-size: 14px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid var(--border-soft); padding: 9px 16px; border-radius: 20px; font-size: 13px; color: var(--paper-dim); background: rgba(255,255,255,0.02); }
.cert-item, .edu-item { margin-bottom: 16px; }
.cert-item .c-name, .edu-item .e-school { font-weight: 700; color: var(--paper); font-size: 14.5px; }
.cert-item .c-issuer, .edu-item .e-program { color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.5; }
.edu-item .e-period { color: var(--gold-light); font-size: 12px; margin-top: 5px; }

/* Why work with me */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.why-item { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border-soft); }
.why-item span:not(.icon-badge) { color: var(--paper-dim); font-size: 14.5px; }

/* Value / results */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--gold), transparent) 1; padding-top: 20px; }
.value-card .icon-badge { margin-bottom: 16px; }
.value-card h3 { font-family: var(--font-display); font-size: 19px; color: var(--gold-light); font-weight: 600; }
.value-card p { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.6; }

/* Testimonials */
.testimonial-wrap { text-align: center; padding: 44px; border: 1px dashed var(--border-soft); border-radius: var(--radius-lg); }
.testimonial-wrap p { color: var(--muted); font-family: var(--font-display); font-size: 19px; font-style: italic; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { border: 1px solid var(--border-soft); padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(165deg, rgba(255,255,255,0.02), transparent); }
.quote-badge { margin-bottom: 16px; color: var(--gold); }
.testimonial-card p.quote { font-family: var(--font-display); font-style: italic; font-size: 16.5px; color: var(--paper); margin-bottom: 16px; line-height: 1.5; }
.testimonial-card .who { color: var(--gold-light); font-weight: 700; font-size: 13.5px; }
.testimonial-card .role { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* Lead CTA band */
.cta-band {
  background: radial-gradient(ellipse 700px 400px at 50% 0%, rgba(207,159,86,0.09), transparent 65%), var(--ink);
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  padding: 80px 0; text-align: center;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 42px); color: var(--paper); font-weight: 600; max-width: 700px; margin: 0 auto 16px; letter-spacing: -0.01em; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }
.cta-band .hero-actions { justify-content: center; }

/* Contact form */
.form-card { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; font-weight: 600; letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--border-soft); color: var(--paper);
  padding: 13px 14px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14px;
  transition: border-color 0.2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-mist); }
.field textarea { resize: vertical; min-height: 108px; }
.field-error { color: var(--error); font-size: 12px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field.invalid .field-error { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 13.5px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(122, 176, 138, 0.12); border: 1px solid var(--success); color: #b6ddbc; }
.form-status.error { background: rgba(217, 119, 87, 0.12); border: 1px solid var(--error); color: #f0b7a2; }

.btn-spinner { width: 16px; height: 16px; border: 2px solid rgba(36,26,13,0.3); border-top-color: #241a0d; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.is-loading .btn-spinner { display: inline-block; }
.is-loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.footer { background: var(--panel); border-top: 1px solid var(--border-soft); padding: 52px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.footer-item {
  display: flex; align-items: center; gap: 12px; padding: 15px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
  min-width: 0;
}
.footer-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.footer-item .fi-title { font-size: 13px; font-weight: 700; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-item .fi-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-bottom { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted-2); }
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--gold-light); }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   404
   ========================================================= */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.error-page .code { font-family: var(--font-display); font-size: clamp(70px, 14vw, 140px); color: var(--gold); line-height: 1; }
.error-page h1 { font-family: var(--font-display); font-size: 24px; margin-top: 8px; color: var(--paper); }
.error-page p { color: var(--muted); margin: 14px 0 28px; max-width: 420px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hero-grid-v2 { grid-template-columns: 200px 1fr; grid-template-areas: "photo copy" "trust copy"; row-gap: 20px; }
  .portrait-circle { grid-area: photo; align-self: start; }
  .hero-copy { grid-area: copy; }
  .trust-col { grid-area: trust; flex-direction: row; text-align: left; justify-content: flex-start; }
  .trust-col .icon-badge { --badge-size: 36px; }
  .trust-line strong { display: inline; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
  .main-row-grid { grid-template-columns: 1fr 1fr; }
  .main-row-grid .mr-col:nth-child(3) { grid-column: 1 / -1; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid-v2 { grid-template-columns: 1fr; grid-template-areas: "photo" "copy" "trust"; justify-items: center; text-align: center; }
  .portrait-circle { width: 220px; }
  .hero-copy { text-align: left; }
  .mini-cards { max-width: 100%; }
  .trust-col { flex-direction: column; text-align: center; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(3) { border-left: 1px solid var(--border-soft); }
  .stat-item:nth-child(odd) { border-left: none; }
  .main-row-grid { grid-template-columns: 1fr; gap: 48px; }
  .main-row-grid .mr-col:nth-child(3) { grid-column: auto; }
  .timeline-2col { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-inner { height: 68px; }
  .brand-mark .brand-name { font-size: 14px; }
  .brand-tagline { display: none; }
  .hero { padding-top: 28px; }
  .portrait-circle { width: 170px; }
  .mini-cards { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .contact-strip a { padding: 6px 14px; font-size: 12.5px; }
  .section-dark { padding: 52px 0; }
  .main-row { padding: 44px 0; }
  .timeline-2col { grid-template-columns: 1fr; gap: 0; }
  .service-cards { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .whatido-grid { grid-template-columns: repeat(2, 1fr); }
  .wid-item { border-left: none; border-top: 1px solid #e5e0d3; }
}

@media (max-width: 380px) {
  .footer-grid, .whatido-grid { grid-template-columns: 1fr; }
  .stat-bar { grid-template-columns: 1fr; }
  .stat-item { border-left: none !important; border-top: 1px solid var(--border-soft); }
  .stat-item:first-child { border-top: none; }
}
