/* ============ Tokens ============ */
:root{
  --bg: #ffffff;
  --bg-alt: #FBF8F1;
  --surface: #ffffff;
  --surface-2: #F5F0E4;
  --border: #EAE3D2;
  --border-strong: #DDD3B8;
  --text: #1C1917;
  --text-dim: #57534E;
  --text-faint: #8A8478;
  --ink: #221B0E;
  --ink-soft: #34291280;
  --accent: #D69E2E;
  --accent-dark: #B7791F;
  --accent-ink: #8A5D0C;
  --accent-soft: #FCF1D6;
  --accent-soft-2: #F8E7BC;
  --success: #1E8E5A;
  --success-soft: #E4F5EC;
  --grad: linear-gradient(135deg, #E6B33A 0%, var(--accent) 60%, var(--accent-dark) 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(28,22,10,.06);
  --shadow-md: 0 6px 18px -6px rgba(28,22,10,.12);
  --shadow-lg: 0 24px 48px -20px rgba(28,22,10,.22);
  --maxw: 1180px;
  --ff-head: 'Space Grotesk', 'Inter', sans-serif;
  --ff-body: 'Inter', sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4{
  font-family: var(--ff-head);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}
p{ margin: 0 0 1em; color: var(--text-dim); }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection{ background: var(--accent-soft-2); color: var(--ink); }

:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link{
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 14px; font-weight:600;
  transition: top .2s ease;
}
.skip-link:focus{ top: 16px; }

.text-accent{ color: var(--accent-ink); }

.icon{ width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm{ width: 16px; height: 16px; }
.icon-xs{ width: 14px; height: 14px; }

.eyebrow{
  display:inline-flex; align-items:center;
  font-size: 12.5px; font-weight:700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}

/* ============ Progress bar ============ */
.scroll-progress{ position: fixed; top:0; left:0; height: 3px; width: 0%; background: var(--grad); z-index: 100; transition: width .1s linear; }

/* ============ Buttons ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 13px 24px; border-radius: 8px; font-weight:600; font-size: 15px;
  border: 1px solid transparent; cursor:pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--accent); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--accent-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost{ background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.btn-dark{ background: var(--ink); color: #fff; }
.btn-dark:hover{ background: #3a2f18; }
.btn-sm{ padding: 9px 18px; font-size: 14px; }
.btn-lg{ padding: 15px 30px; font-size: 16px; }
.btn-full{ width:100%; }

/* ============ Header ============ */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled{ box-shadow: 0 2px 16px -6px rgba(28,22,10,.10); }
.header-inner{ display:flex; align-items:center; justify-content: space-between; height: 72px; }
.logo{ display:flex; align-items:center; gap:10px; font-family: var(--ff-head); font-weight:700; font-size: 18px; color: var(--ink); }
.logo-mark{
  width: 32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  background: var(--ink); color: var(--accent); font-weight:700; font-size: 15px;
}
.nav-desktop{ display:flex; gap: 30px; }
.nav-desktop a{ font-size: 14.5px; font-weight:500; color: var(--text-dim); transition: color .2s; position:relative; padding: 4px 0; }
.nav-desktop a:hover{ color: var(--ink); }
.nav-desktop a.active{ color: var(--ink); font-weight:600; }
.nav-desktop a.active::after{ content:""; position:absolute; left:0; right:0; bottom:-8px; height:2px; background: var(--accent); border-radius: 2px; }
.header-actions{ display:flex; align-items:center; gap: 16px; }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; width:34px; height:34px; background:none; border:none; cursor:pointer; padding:0;
}
.nav-toggle span{ height:2px; width:100%; background: var(--text); border-radius:2px; transition: all .25s ease; }
.nav-mobile{
  display:none; flex-direction:column; padding: 8px 24px 20px; border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav-mobile a{ padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-dim); font-weight:500; }
.nav-mobile a.active{ color: var(--accent-ink); font-weight:700; }
.nav-mobile a:last-child{ border-bottom:none; }
.site-header.open .nav-mobile{ display:flex; }

/* ============ Breadcrumb ============ */
.breadcrumb{ padding: 18px 0; font-size: 13.5px; color: var(--text-faint); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.breadcrumb a{ color: var(--text-dim); }
.breadcrumb a:hover{ color: var(--accent-ink); }
.breadcrumb .sep{ margin: 0 8px; color: var(--border-strong); }
.breadcrumb .current{ color: var(--ink); font-weight:600; }

/* ============ Hero — shared language (home + inner pages) ============ */
/* Single-column, oversized type, a giant faint background word instead of a card/diagram or icon badge. */
.hero, .page-hero{
  position: relative; overflow:hidden;
  padding: 96px 0 92px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.page-hero{ padding: 84px 0 76px; }
.hero .container, .page-hero .container{ position:relative; z-index:1; }

.hero-bg-word{
  position:absolute; top:50%; right:-2%; transform:translateY(-50%);
  font-family: var(--ff-head); font-weight:700; letter-spacing:-0.03em; line-height:0.85;
  font-size: min(26vw, 340px); color: var(--ink); opacity:0.045;
  pointer-events:none; user-select:none; white-space:nowrap; z-index:0;
}

.hero-kicker{
  font-family: var(--ff-head); font-size: 13.5px; font-weight:600; color: var(--text-faint);
  margin-bottom: 22px; letter-spacing: 0.01em;
}
.hero-kicker::before{ content:"— "; color: var(--accent-ink); }

.hero h1, .page-hero h1{
  font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 26px; max-width: 780px;
}
.page-hero h1{ font-size: clamp(34px, 5.2vw, 56px); }
.hero h1{ max-width: 730px; }
.hero-mark{
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-size: 100% 38%; background-position: 0 82%;
  padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero-sub, .page-hero p{ font-size: 17px; max-width: 520px; margin-bottom: 8px; }

.hero-cta-row{ display:flex; align-items:center; gap: 30px; flex-wrap:wrap; margin: 32px 0 34px; }
.hero-textlink{
  display:inline-flex; align-items:center; gap: 7px; font-weight:600; font-size: 15px; color: var(--ink);
  border-bottom: 1.5px solid var(--border-strong); padding-bottom: 3px; transition: color .15s, border-color .15s;
}
.hero-textlink:hover{ color: var(--accent-ink); border-color: var(--accent); }
.hero-textlink .icon{ transition: transform .15s; }
.hero-textlink:hover .icon{ transform: translateX(3px); }

.hero-proof{ font-size: 13.5px; color: var(--text-faint); max-width: 480px; margin:0; }

.page-hero-cta{ display:flex; align-items:center; gap: 30px; flex-wrap:wrap; margin-top: 30px; }

.hero-stat-strip{ display:flex; gap: 34px; flex-wrap:wrap; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-stat-strip div{ display:flex; flex-direction:column; }
.hero-stat-strip strong{ font-family: var(--ff-head); font-size: 24px; color: var(--ink); }
.hero-stat-strip span{ color: var(--text-faint); font-size: 12.5px; }

/* ============ Logo strip ============ */
.logo-strip{ padding: 26px 0; border-bottom: 1px solid var(--border); }
.logo-strip-label{ text-align:center; font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.logo-marquee{ overflow:hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track{ display:flex; gap: 60px; width: max-content; animation: scroll 26s linear infinite; }
.logo-track span{ font-family: var(--ff-head); font-weight:600; color: var(--text-faint); font-size: 15px; white-space:nowrap; }
@keyframes scroll{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ============ Section head ============ */
.section-head{ max-width: 620px; margin: 0 auto 52px; text-align:center; }
.section-head h2{ font-size: clamp(26px, 3.2vw, 38px); }
.section-sub{ font-size: 15.5px; }
section{ padding: 100px 0; }

/* ============ Services ============ */
.services-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.services-grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
.service-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display:flex; flex-direction:column;
}
.service-card:hover{ transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.service-icon{ width:46px; height:46px; border-radius: 10px; display:flex; align-items:center; justify-content:center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.service-card h3{ font-size: 18px; margin-bottom: 10px; }
.service-card p{ font-size: 14.5px; }
.service-list{ margin: 14px 0 18px; }
.service-list li{ font-size: 13.5px; color: var(--text-dim); padding-left: 20px; position:relative; margin-bottom: 8px; }
.service-list li::before{ content:"✓"; position:absolute; left:0; color: var(--success); font-weight:700; }
.service-link{ display:inline-flex; align-items:center; gap:6px; font-size: 14px; font-weight:600; color: var(--accent-ink); margin-top:auto; }
.service-link:hover{ text-decoration: underline; }
.service-link .icon{ transition: transform .15s; }
.service-link:hover .icon{ transform: translateX(3px); }

/* ============ Process ============ */
.process{ background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-grid{ display:grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.process-grid.cols-4{ grid-template-columns: repeat(4,1fr); }
.process-grid.cols-3{ grid-template-columns: repeat(3,1fr); }
.process-step{ position:relative; padding: 24px 18px 18px; }
.process-grid.cols-5 .process-step:not(:last-child)::after,
.process-grid .process-step:not(:last-child)::after{
  content:""; position:absolute; top: 28px; right: -10px; width: 20px; height:1px; background: var(--border-strong);
}
.step-num{ font-family: var(--ff-head); font-size: 13px; color: var(--accent-ink); font-weight:700; }
.process-step h3{ font-size: 16.5px; margin: 10px 0 8px; }
.process-step p{ font-size: 13.5px; }

/* ============ Why Us ============ */
.why-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items:center; }
.why-list{ margin-top: 30px; display:flex; flex-direction:column; gap: 22px; }
.why-item{ display:flex; gap: 16px; }
.why-icon{ font-size: 20px; width: 42px; height:42px; flex-shrink:0; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display:flex; align-items:center; justify-content:center; }
.why-item h4{ font-size: 15.5px; margin-bottom: 4px; }
.why-item p{ font-size: 14px; margin:0; }

.why-panel{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel-stat{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm); }
.panel-stat h3{ font-family: var(--ff-head); font-size: 32px; color: var(--accent-ink); margin-bottom: 6px; }
.panel-stat p{ font-size: 13.5px; margin:0; }

/* ============ Team ============ */
.team-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.team-card{ text-align:center; }
.team-avatar{
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; display:flex; align-items:center; justify-content:center;
  background: var(--accent-soft); color: var(--accent-ink); font-family: var(--ff-head); font-size: 26px; font-weight:700;
  border: 1px solid var(--accent-soft-2); overflow:hidden;
}
.team-avatar img{ width:100%; height:100%; object-fit:cover; }
.team-card h4{ font-size: 15.5px; margin-bottom: 2px; }
.team-role{ font-size: 13px; color: var(--accent-ink); font-weight:600; margin-bottom: 8px; }
.team-card p{ font-size: 13.5px; }

/* ============ Story / content blocks ============ */
.story-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.story-copy p{ font-size: 15.5px; }
.story-figure{
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display:grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.story-figure .fig-stat h3{ font-size: 28px; color: var(--accent-ink); margin-bottom: 2px; }
.story-figure .fig-stat p{ font-size: 13px; margin:0; }

/* ============ Values grid (used on About) ============ */
.values-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.value-card{ padding: 26px 22px; border:1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.value-card .why-icon{ margin-bottom: 16px; }
.value-card h4{ font-size: 16px; margin-bottom: 8px; }
.value-card p{ font-size: 14px; margin:0; }

/* ============ Work ============ */
.filter-tabs{ display:flex; gap: 10px; justify-content:center; flex-wrap:wrap; margin-bottom: 44px; }
.filter-tab{
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff;
  font-size: 13.5px; font-weight:600; color: var(--text-dim); cursor:pointer; transition: all .15s;
}
.filter-tab:hover{ border-color: var(--accent); color: var(--accent-ink); }
.filter-tab.active{ background: var(--ink); border-color: var(--ink); color: var(--accent); }

.work-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; transition: transform .2s ease, box-shadow .2s ease; }
.work-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-card.hidden{ display:none; }
.work-thumb{
  height: 190px; display:flex; align-items:flex-end; padding: 16px 20px; position:relative; overflow:hidden;
}
.work-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition: transform .35s ease; }
.work-card:hover .work-thumb img{ transform: scale(1.06); }
.work-thumb::after{ content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); }
.work-thumb span{ position:relative; z-index:1; font-weight:700; font-size:12.5px; text-transform:uppercase; letter-spacing:.06em; color:#fff; background: rgba(0,0,0,.3); padding: 6px 12px; border-radius: 999px; }
.work-body{ padding: 22px 22px 24px; }
.work-body h3{ font-size: 17px; margin-bottom: 8px; }
.work-body p{ font-size: 14px; }
.tag-row{ display:flex; gap:8px; margin-top: 12px; flex-wrap:wrap; }
.tag{ font-size: 12px; font-weight:600; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border:1px solid var(--border); color: var(--text-dim); }

/* ============ Testimonials ============ */
.testimonials{ background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testimonial-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testimonial-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; margin:0; box-shadow: var(--shadow-sm); }
.testimonial-card p{ font-size: 14.5px; color: var(--text); }
.testimonial-card footer{ font-size: 13px; color: var(--text-faint); margin-top: 14px; }
.testimonial-card footer strong{ color: var(--text-dim); }

/* ============ FAQ ============ */
.faq-wrap{ max-width: 800px; }
.faq-category{ margin-bottom: 34px; }
.faq-category:last-child{ margin-bottom:0; }
.faq-category-title{ font-size: 13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color: var(--accent-ink); margin-bottom: 14px; }
.faq-list{ display:flex; flex-direction:column; gap: 10px; }
.faq-item{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; }
.faq-item summary{ cursor:pointer; font-weight:600; font-size: 15px; list-style:none; display:flex; justify-content:space-between; align-items:center; gap: 12px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-caret{ color: var(--accent-ink); transform: rotate(90deg); transition: transform .2s; flex-shrink:0; }
.faq-item[open] .faq-caret{ transform: rotate(-90deg); }
.faq-item p{ margin: 14px 0 0; font-size: 14.5px; }

/* ============ CTA Banner ============ */
.cta-banner{ padding: 90px 0; }
.cta-inner{
  text-align:center; background: var(--ink); border-radius: 20px;
  padding: 60px 40px; color: #fff; position:relative; overflow:hidden;
}
.cta-inner::before{
  content:""; position:absolute; inset:0; background: radial-gradient(circle at 15% 20%, rgba(214,158,46,.18), transparent 55%);
}
.cta-inner > *{ position:relative; }
.cta-inner h2{ font-size: clamp(24px,3vw,32px); color:#fff; }
.cta-inner p{ margin-bottom: 26px; color: rgba(255,255,255,.72); }
.cta-inner .btn-actions{ display:flex; gap: 14px; justify-content:center; flex-wrap:wrap; }
.cta-inner .btn-ghost{ background: transparent; border-color: rgba(255,255,255,.3); color:#fff; }
.cta-inner .btn-ghost:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color:#fff; }

/* ============ Contact ============ */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.contact-details{ display:flex; flex-direction:column; gap: 14px; margin: 26px 0; }
.contact-details div{ display:flex; align-items:center; gap: 12px; font-size: 14.5px; color: var(--text-dim); }
.contact-details .icon{ color: var(--accent-ink); }
.contact-details a{ color: var(--text-dim); transition: color .2s; }
.contact-details a:hover{ color: var(--accent-ink); }
.social-row{ display:flex; gap: 12px; }
.social-row a{
  width: 38px; height:38px; border-radius: 8px; background: var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; color: var(--text-dim);
  transition: all .2s;
}
.social-row a:hover{ border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }

.contact-form{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group{ margin-bottom: 18px; }
.form-group label{ display:block; font-size: 13px; font-weight:600; color: var(--text-dim); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea{
  width:100%; background: #fff; border:1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 11px 13px; color: var(--text); font-family: var(--ff-body); font-size: 14.5px; outline:none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-group textarea{ resize: vertical; }
.form-note{ margin-top: 14px; font-size: 13.5px; text-align:center; min-height: 18px; color: var(--success); }
.form-note.error{ color: #C0392B; }

.contact-panels{ display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 16px; }
.contact-panel{ border:1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.contact-panel .icon{ color: var(--accent-ink); margin-bottom: 10px; }
.contact-panel h4{ font-size: 14.5px; margin-bottom: 6px; }
.contact-panel p{ font-size: 13px; margin:0; }

/* ============ Legal pages ============ */
.legal-content{ max-width: 760px; margin: 0 auto; }
.legal-content h2{ font-size: 21px; margin-top: 2em; }
.legal-content h2:first-child{ margin-top:0; }
.legal-content p, .legal-content li{ font-size: 15px; color: var(--text-dim); }
.legal-content ul{ margin: 0 0 1em; padding-left: 20px; list-style: disc; }
.legal-content .updated{ font-size: 13.5px; color: var(--text-faint); margin-bottom: 40px; }

/* ============ 404 ============ */
.page-404{ padding: 120px 0; text-align:center; }
.error-code{ font-family: var(--ff-head); font-size: clamp(72px,14vw,140px); font-weight:700; color: var(--accent); line-height:1; margin-bottom: 8px; }
.page-404 h1{ font-size: 26px; }
.page-404 p{ max-width: 440px; margin-left:auto; margin-right:auto; }
.page-404 .btn-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top: 24px; }

/* ============ Footer ============ */
.site-footer{ background: var(--ink); border-top: 1px solid var(--border); padding-top: 64px; color: #D8D2C4; }
.footer-inner{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand .logo{ color: #fff; }
.footer-brand p{ font-size: 13.5px; margin-top: 14px; max-width: 280px; color: #B6AF9C; }
.footer-col h4{ font-size: 13.5px; margin-bottom: 16px; color: #fff; }
.footer-col a{ display:block; font-size: 13.5px; color: #B6AF9C; padding: 6px 0; transition: color .2s; }
.footer-col a:hover{ color: var(--accent); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding: 20px 24px; border-top: 1px solid #3A3120; font-size: 13px; color: #8C8570; }
.footer-legal{ display:flex; gap: 20px; }
.footer-legal a:hover{ color: #D8D2C4; }

/* ============ Back to top ============ */
.back-to-top{
  position: fixed; bottom: 26px; right: 26px; width: 44px; height:44px; border-radius: 50%;
  background: var(--ink); color: var(--accent); border:none; cursor:pointer;
  box-shadow: var(--shadow-lg); opacity:0; pointer-events:none; transform: translateY(10px);
  transition: opacity .2s, transform .2s, background .2s; z-index: 40;
  display:flex; align-items:center; justify-content:center;
}
.back-to-top:hover{ background: #3a2f18; }
.back-to-top.show{ opacity:1; pointer-events:auto; transform: translateY(0); }

/* ============ Reveal animation ============ */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 980px){
  .hero-bg-word{ font-size: min(34vw, 220px); opacity: 0.05; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .services-grid.cols-4{ grid-template-columns: repeat(2,1fr); }
  .process-grid{ grid-template-columns: repeat(3,1fr); }
  .process-grid.cols-4{ grid-template-columns: repeat(2,1fr); }
  .process-grid .process-step:not(:last-child)::after{ display:none; }
  .why-grid{ grid-template-columns: 1fr; }
  .story-grid{ grid-template-columns: 1fr; }
  .values-grid{ grid-template-columns: repeat(2,1fr); }
  .team-grid{ grid-template-columns: repeat(2,1fr); }
  .work-grid{ grid-template-columns: 1fr; }
  .testimonial-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-panels{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .nav-desktop{ display:none; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-sm{ display:none; }
  section{ padding: 64px 0; }
  .services-grid, .services-grid.cols-4{ grid-template-columns: 1fr; }
  .process-grid, .process-grid.cols-4, .process-grid.cols-3{ grid-template-columns: 1fr 1fr; }
  .process-grid .process-step::after{ display:none !important; }
  .values-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
  .story-figure{ grid-template-columns: 1fr 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction:column; gap: 10px; text-align:center; }
  .cta-inner{ padding: 40px 22px; }
  .hero, .page-hero{ padding: 56px 0 48px; }
  .hero-bg-word{ opacity: 0.045; font-size: min(46vw, 180px); }
  .hero-cta-row, .page-hero-cta{ gap: 18px; }
}


/* ============ Dark theme (index page) ============ */
body.theme-dark{
  --bg:#0A0805; --bg-alt:#100C07; --surface:#15100A; --surface-2:#1D160D;
  --border:#2B2216; --border-strong:#3D3120;
  --text:#F3EDE0; --text-dim:#B5AC98; --text-faint:#8A8069;
  --accent-ink:#F0BE55; --accent-soft:rgba(214,158,46,.12); --accent-soft-2:rgba(214,158,46,.22);
  --shadow-md:0 8px 24px -8px rgba(0,0,0,.6); --shadow-lg:0 24px 48px -20px rgba(0,0,0,.7);
}
.theme-dark h1,.theme-dark h2,.theme-dark h3,.theme-dark h4,.theme-dark .logo{ color:#fff; }
.theme-dark .site-header{ background:rgba(10,8,5,.72); border-bottom-color:rgba(255,255,255,.06); }
.theme-dark .site-header.scrolled{ box-shadow:0 2px 20px -6px rgba(0,0,0,.8); }
.theme-dark .logo-mark{ background:var(--accent); color:#1c1206; }
.theme-dark .nav-desktop a.active{ color:#fff; }
.theme-dark .nav-desktop a:hover{ color:#fff; }
.theme-dark .nav-toggle span{ background:#fff; }
.theme-dark .nav-mobile{ background:var(--bg-alt); }
.theme-dark .btn-ghost{ background:transparent; color:var(--text); }
.theme-dark .back-to-top{ background:var(--accent); color:#1c1206; }
.theme-dark .cta-inner{ border:1px solid var(--border-strong); }
.theme-dark .site-footer{ background:var(--bg-alt); }
.theme-dark .footer-bottom{ border-top-color:var(--border); }

.theme-dark .header-inner{ display:grid; grid-template-columns:1fr auto 1fr; }
.theme-dark .header-actions{ justify-self:end; }
.header-social{ display:flex; gap:16px; }
.header-social a{ color:var(--text-dim); display:flex; transition:color .2s; }
.header-social a:hover{ color:var(--accent); }

/* Hero */
.hero-dark{
  padding:96px 0 0; background:var(--bg); border-bottom:0; text-align:center; min-height:calc(100vh - 73px);
  display:flex; flex-direction:column; justify-content:space-between;
}
.hero-dark::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse 60% 45% at 50% 105%, rgba(214,158,46,.28), transparent 70%);
}
.hero-center{ max-width:860px; }
.hero-dark h1{ max-width:none; margin:0 auto 22px; font-size:clamp(40px,6.4vw,76px); line-height:1.06; }
.grad-text{
  background:linear-gradient(90deg,#F6C453 0%,#FFE7A3 48%,#E08A2E 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-dark .hero-sub{ margin:0 auto; max-width:560px; font-size:15.5px; }
.hero-dark .hero-cta-row{ justify-content:center; margin:30px 0 0; gap:14px; }
.pill-btn{
  display:inline-flex; align-items:center; padding:12px 28px; border-radius:999px; font-size:14.5px; font-weight:500; color:#fff;
  border:1px solid var(--border-strong); background:transparent; transition:border-color .2s, background .2s, transform .15s;
}
.pill-btn:hover{ border-color:var(--accent); background:rgba(214,158,46,.08); transform:translateY(-1px); }
.pill-btn-grad{
  border:1px solid transparent;
  background:linear-gradient(var(--bg),var(--bg)) padding-box, linear-gradient(90deg,#F6C453,#B7791F) border-box;
}
.hero-gold{
  position:relative; z-index:0; margin-top:56px; height:clamp(240px,34vw,400px); overflow:hidden;
  -webkit-mask-image:radial-gradient(ellipse 75% 100% at 50% 100%,#000 35%,transparent 72%);
  mask-image:radial-gradient(ellipse 75% 100% at 50% 100%,#000 35%,transparent 72%);
}
.hero-gold img{ width:100%; height:100%; object-fit:cover; object-position:center bottom; opacity:.95; }

.orb{
  position:absolute; z-index:1; border-radius:50%;
  background:radial-gradient(circle at 30% 30%,#FFE9A8,#D69E2E 55%,#6B4A10);
  box-shadow:0 0 30px rgba(214,158,46,.45); animation:orbFloat 7s ease-in-out infinite;
}
.orb-1{ width:26px; height:26px; left:9%; top:56%; }
.orb-2{ width:46px; height:46px; right:8%; top:62%; animation-delay:-2s; }
.orb-3{ width:12px; height:12px; left:23%; top:74%; animation-delay:-4s; }
.orb-4{ width:10px; height:10px; right:21%; top:44%; animation-delay:-1s; }
@keyframes orbFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-14px); } }
@media (prefers-reduced-motion:reduce){ .orb{ animation:none; } }

@media (max-width:720px){
  .theme-dark .header-inner{ display:flex; }
  .header-social{ display:none; }
  .hero-dark{ padding-top:56px; min-height:0; }
  .orb-1,.orb-3{ display:none; }
}


/* ============ Dark theme — site-wide fixes ============ */
.theme-dark ::selection{ color:#1c1206; }
.theme-dark .hero-bg-word{ color:#fff; opacity:.04; }
.theme-dark .hero-mark{ color:#1c1206; }
.theme-dark .hero-textlink,.theme-dark .hero-stat-strip strong,.theme-dark .breadcrumb .current{ color:#fff; }
.theme-dark .filter-tab{ background:transparent; color:var(--text-dim); }
.theme-dark .filter-tab.active{ background:var(--accent); border-color:var(--accent); color:#1c1206; }
.theme-dark .form-group input,.theme-dark .form-group select,.theme-dark .form-group textarea{ background:var(--surface-2); color:var(--text); }
.theme-dark .form-group input::placeholder,.theme-dark .form-group textarea::placeholder{ color:var(--text-faint); }
.theme-dark select option{ background:#15100A; color:#F3EDE0; }
.theme-dark .page-hero::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse 50% 90% at 82% 0%, rgba(214,158,46,.16), transparent 70%);
}

/* ============ AI touches (index hero) ============ */
#neuralCanvas{
  position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none;
  -webkit-mask-image:linear-gradient(#000 55%, transparent 92%); mask-image:linear-gradient(#000 55%, transparent 92%);
}
.ai-prompt{
  display:flex; align-items:center; gap:12px; max-width:500px; margin:28px auto 0; padding:8px 8px 8px 18px; border-radius:999px;
  background:rgba(255,255,255,.04); border:1px solid var(--border-strong); backdrop-filter:blur(8px);
  text-align:left; color:var(--text); font-size:14.5px; transition:border-color .2s, box-shadow .2s;
}
.ai-prompt:hover{ border-color:var(--accent); box-shadow:0 0 0 4px rgba(214,158,46,.10); }
.ai-prompt > .icon{ color:var(--accent); }
.ai-typed{ flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.caret{ display:inline-block; width:2px; height:1.05em; background:var(--accent); margin-left:2px; vertical-align:-3px; animation:blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.ai-run{ width:34px; height:34px; border-radius:50%; background:var(--accent); color:#1c1206; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.hero-dark .hero-cta-row{ margin-top:22px; }


@media (prefers-reduced-motion:reduce){ .caret{ animation:none; } }

.page-hero-icon{ width:56px; height:56px; border-radius:14px; background:var(--accent-soft); color:var(--accent); border:1px solid var(--border-strong); display:flex; align-items:center; justify-content:center; }
.page-hero-icon .icon{ width:26px; height:26px; }

/* ============ SEO content components ============ */
.section-alt{ background:var(--bg-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-tight{ padding:56px 0 0; }
.quick-answer{
  border:1px solid var(--border-strong); border-left:3px solid var(--accent); background:var(--surface);
  border-radius:var(--radius); padding:26px 30px; max-width:920px; margin:0 auto;
}
.quick-answer h2{ font-size:20px; margin-bottom:10px; }
.quick-answer p{ font-size:16.5px; line-height:1.7; color:var(--text); margin:0; }
.quick-answer strong{ color:var(--accent-ink); }

.table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
.data-table{ width:100%; border-collapse:collapse; font-size:14.5px; min-width:620px; }
.data-table th,.data-table td{ padding:15px 20px; text-align:left; vertical-align:top; border-bottom:1px solid var(--border); }
.data-table thead th{ background:var(--surface-2); color:var(--text); font-family:var(--ff-head); font-size:13px; letter-spacing:.04em; text-transform:uppercase; }
.data-table td{ color:var(--text-dim); }
.data-table td:first-child{ color:var(--text); font-weight:600; }
.data-table td.hl,.cmp thead th:nth-child(2){ background:rgba(214,158,46,.07); }
.cmp thead th:nth-child(2){ color:var(--accent-ink); }
.data-table tbody tr:last-child td{ border-bottom:0; }
.data-table a{ color:var(--accent-ink); font-weight:600; }
.data-table a:hover{ text-decoration:underline; }

.industry-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.industry-card{ padding:24px 22px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); transition:border-color .2s, transform .2s; }
.industry-card:hover{ border-color:var(--border-strong); transform:translateY(-3px); }
.industry-card h3{ font-size:16.5px; margin-bottom:8px; }
.industry-card p{ font-size:14px; margin:0; }

.metric-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.glossary{ display:grid; grid-template-columns:1fr 1fr; gap:6px 40px; margin:0; max-width:980px; margin:0 auto; }
.glossary dt{ font-family:var(--ff-head); font-weight:600; color:#fff; font-size:16px; margin-top:14px; }
.glossary dd{ margin:4px 0 0; font-size:14.5px; color:var(--text-dim); }
.related-links{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.related-links a{ padding:11px 20px; border:1px solid var(--border-strong); border-radius:999px; font-size:14.5px; font-weight:500; color:var(--text); transition:border-color .2s, color .2s, background .2s; }
.related-links a:hover{ border-color:var(--accent); color:var(--accent-ink); background:rgba(214,158,46,.08); }

@media (max-width:980px){
  .industry-grid{ grid-template-columns:repeat(2,1fr); }
  .metric-grid{ grid-template-columns:repeat(2,1fr); }
  .glossary{ grid-template-columns:1fr; }
}
@media (max-width:720px){
  .industry-grid{ grid-template-columns:1fr; }
  .quick-answer{ padding:22px; }
}


/* ============ Compact hero (all inner pages) ============ */
.hero-compact{ min-height:0; display:block; padding:72px 0 76px; }
.theme-dark .hero-compact::before{ content:none; }
.hero-compact .hero-center{ position:relative; z-index:2; max-width:860px; }
.hero-compact h1{ margin:0 auto 20px; max-width:900px; font-size:clamp(34px,5.2vw,60px); line-height:1.08; }
.hero-compact p{ margin-left:auto; margin-right:auto; max-width:600px; font-size:16.5px; }
.hero-compact .hero-kicker,.hero-compact .eyebrow{ margin-bottom:18px; }
.hero-compact .hero-kicker::before{ content:none; }
.hero-compact .page-hero-cta{ justify-content:center; margin-top:28px; gap:14px; }
.hero-compact .hero-stat-strip{ justify-content:center; text-align:center; }
.hero-compact .orb-1{ left:8%; top:38%; }
.hero-compact .orb-2{ right:7%; top:28%; }
.pill-btn{ gap:8px; }
.error-code.grad-text{ display:inline-block; }
.page-404.hero-compact{ padding:96px 0 90px; }
@media (max-width:720px){
  .hero-compact{ padding:48px 0 52px; }
  .hero-compact .orb{ display:none; }
}

/* ============ Blog ============ */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.blog-card{
  display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.blog-card:hover{ transform:translateY(-4px); border-color:var(--border-strong); box-shadow:var(--shadow-md); }
.blog-thumb{ aspect-ratio:16/9; overflow:hidden; background:var(--surface-2); }
.blog-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.blog-card:hover .blog-thumb img{ transform:scale(1.05); }
.blog-body{ padding:20px 22px 24px; display:flex; flex-direction:column; flex:1; }
.blog-cat{ font-size:12px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--accent-ink); margin-bottom:8px; }
.blog-card h3{ font-size:18px; line-height:1.3; margin-bottom:10px; }
.blog-card p{ font-size:14px; flex:1; }
.blog-meta{ font-size:12.5px; color:var(--text-faint); margin-top:12px; }
.blog-card.featured{ grid-column:1 / -1; flex-direction:row; }
.blog-card.featured .blog-thumb{ flex:1.15; aspect-ratio:auto; min-height:320px; }
.blog-card.featured .blog-body{ flex:1; justify-content:center; padding:36px; }
.blog-card.featured h3{ font-size:28px; }
.blog-card.featured p{ font-size:15.5px; flex:0; }

/* Article */
.article-wrap{ max-width:780px; margin:0 auto; padding:56px 24px 40px; }
.article-meta{ display:flex; gap:10px 18px; justify-content:center; flex-wrap:wrap; align-items:center; font-size:13.5px; color:var(--text-faint); margin-top:22px; }
.article-meta .blog-cat{ margin:0; padding:4px 12px; border:1px solid var(--border-strong); border-radius:999px; }
.article-cover{ margin:0 0 30px; border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); }
.article-cover img{ width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; }
.takeaways{ list-style:disc; padding-left:20px; margin:8px 0 0; }
.takeaways li{ font-size:15.5px; line-height:1.65; color:var(--text); margin:8px 0; }
.toc{ border:1px solid var(--border); background:var(--surface); border-radius:var(--radius); padding:20px 26px; margin:0 0 10px; }
.toc h2{ font-size:13px; text-transform:uppercase; letter-spacing:.07em; color:var(--accent-ink); margin-bottom:10px; }
.toc ol{ margin:0; padding-left:20px; list-style:decimal; }
.toc li{ margin:6px 0; font-size:15px; }
.toc a{ color:var(--text-dim); transition:color .2s; }
.toc a:hover{ color:var(--accent); }
.article h2{ font-size:28px; margin:2em 0 .6em; scroll-margin-top:96px; }
.article h3{ font-size:19px; margin:1.6em 0 .4em; }
.article p,.article li{ font-size:17px; line-height:1.8; color:var(--text-dim); }
.article strong{ color:var(--text); }
.article ul,.article ol{ padding-left:22px; margin:0 0 1.2em; }
.article ul{ list-style:disc; } .article ol{ list-style:decimal; }
.article li{ margin:8px 0; }
.article code{ background:var(--surface-2); border:1px solid var(--border); border-radius:5px; padding:1px 6px; font-size:.9em; color:var(--accent-ink); }
.article .table-wrap{ margin:24px 0; }
.cta-inline{ border:1px solid var(--border-strong); border-left:3px solid var(--accent); border-radius:var(--radius); background:var(--surface); padding:24px 28px; margin:38px 0; }
.cta-inline h3{ margin:0 0 6px; font-size:19px; }
.cta-inline p{ font-size:15.5px; margin:0 0 16px; }
.author-box{ display:flex; gap:18px; align-items:flex-start; border-top:1px solid var(--border); margin-top:50px; padding-top:28px; }
.author-box .logo-mark{ flex-shrink:0; width:48px; height:48px; font-size:20px; border-radius:12px; }
.author-box p{ font-size:14.5px; margin:6px 0 0; }
.author-box strong{ color:#fff; }

@media (max-width:980px){
  .blog-grid{ grid-template-columns:repeat(2,1fr); }
  .blog-card.featured{ flex-direction:column; }
  .blog-card.featured .blog-thumb{ min-height:0; aspect-ratio:16/9; flex:none; }
}
@media (max-width:720px){
  .blog-grid{ grid-template-columns:1fr; }
  .article h2{ font-size:24px; }
  .article p,.article li{ font-size:16.5px; }
  .blog-card.featured .blog-body{ padding:22px; }
  .blog-card.featured h3{ font-size:22px; }
}

.form-privacy{ font-size:12.5px; color:var(--text-faint); text-align:center; margin:10px 0 0; }
.form-privacy a{ color:var(--accent-ink); text-decoration:underline; }
.form-note a{ text-decoration:underline; }
.btn:disabled{ opacity:.6; cursor:progress; transform:none; }

/* Collapse the main nav earlier now that it has seven links */
@media (max-width:980px){
  .nav-desktop{ display:none; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-sm{ display:none; }
  .theme-dark .header-inner{ display:flex; }
  .header-social{ display:none; }
}


/* ============ Brand logo ============ */
.logo-mark, .theme-dark .logo-mark{ background:none; color:inherit; overflow:hidden; box-shadow:0 4px 14px -6px rgba(214,158,46,.55); }
.logo-mark img{ width:100%; height:100%; display:block; }
.logo-text{ letter-spacing:-0.02em; }
.logo-soft{ color:var(--accent); font-weight:600; }
.theme-dark .logo-soft{ color:var(--accent); }
.author-box .logo-mark img{ width:100%; height:100%; }


/* ============ Brand logo v2 (faceted hexagon emblem + lockup) ============ */
.logo{ gap:11px; }
.logo-mark, .theme-dark .logo-mark{
  width:38px; height:38px; border-radius:0; overflow:visible; box-shadow:none; background:none;
  filter:drop-shadow(0 3px 10px rgba(214,158,46,.35)); transition:transform .25s ease, filter .25s ease;
}
.logo:hover .logo-mark{ transform:rotate(-6deg) scale(1.05); filter:drop-shadow(0 4px 14px rgba(214,158,46,.55)); }
.logo-text{ display:flex; flex-direction:column; line-height:1; }
.logo-name{ font-size:19px; font-weight:700; letter-spacing:-.02em; }
.logo-tag{
  font-family:var(--ff-body); font-size:8.2px; font-weight:600; letter-spacing:.2em; text-transform:uppercase;
  color:var(--text-faint); margin-top:5px; white-space:nowrap;
}
.author-box .logo-mark{ width:52px; height:52px; border-radius:0; }
.footer-brand .logo-mark{ width:42px; height:42px; }
@media (max-width:420px){ .logo-tag{ display:none; } }


/* ============ Cookie consent ============ */
.consent-banner{
  position:fixed; left:20px; bottom:20px; z-index:120; width:min(400px, calc(100vw - 40px));
  background:rgba(21,16,10,.96); border:1px solid var(--border-strong); border-radius:var(--radius);
  padding:18px 20px; box-shadow:var(--shadow-lg); backdrop-filter:blur(10px);
}
.consent-banner p{ font-size:13.5px; line-height:1.55; color:var(--text-dim); margin:0 0 14px; }
.consent-banner strong{ color:#fff; font-size:14px; }
.consent-banner a{ color:var(--accent); text-decoration:underline; }
.consent-actions{ display:flex; gap:10px; justify-content:flex-end; }
.consent-actions .pill-btn{ padding:9px 20px; font-size:13.5px; cursor:pointer; }
.cookie-settings{ background:none; border:0; padding:0; cursor:pointer; font:inherit; color:inherit; }
.cookie-settings:hover{ color:#D8D2C4; }
.legal-content h2[id]{ scroll-margin-top:96px; }
