/*
Theme Name: Zillen Digital Strategy
Theme URI: https://zillendigitalstrategy.com
Author: Zillen Digital Strategy
Description: Founder-led digital marketing consultancy theme. Custom design ported 1:1 from the approved static site (strategy-instrument aesthetic): Archivo display, Inter body, IBM Plex Mono labels, brand orange #C73915. Classic theme with self-setup pages.
Version: 1.0.24
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zillen
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* The den — deep warm darks */
  --ink:        #14110C;
  --ink-2:      #1E1810;
  --ink-3:      #2B2317;

  /* Savanna light */
  --bone:       #EDEAE2;
  --paper:      #F7F5EF;
  --paper-2:    #FBFAF6;

  /* Accent — brand orange + a single burnt counter-signal.
     The whole accent system flows from these three values — edit them
     here to match your exact brand orange. */
  --orange:      #C73915;
  --orange-deep: #9B2D1099;
  --orange-soft: #E8744A;
  --clay:        #9C4A2C;

  /* Text */
  --on-light:       #221C14;
  --on-light-muted: #5C5347;
  --on-dark:        #EDE7DA;
  --on-dark-muted:  #A99E8B;

  /* Lines */
  --line-light: rgba(34, 28, 20, 0.14);
  --line-dark:  rgba(228, 197, 126, 0.20);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.18vw, 0.86rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.05rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --step-5:  clamp(3.1rem, 2rem + 5.4vw, 6rem);

  /* Layout */
  --wrap:    1200px;
  --wrap-sm: 880px;
  --gut:     clamp(1.15rem, 0.6rem + 2.6vw, 3rem);
  --radius:  4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--on-light);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul[role="list"] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

::selection { background: var(--orange); color: var(--ink); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--orange-soft);
  padding: 0.8rem 1.2rem; font-family: var(--font-mono); font-size: 0.8rem;
}
.skip-link:focus { left: 0; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--sm { max-width: var(--wrap-sm); }

.section { padding-block: clamp(3.6rem, 2.5rem + 5vw, 7rem); position: relative; }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--ink2 { background: var(--ink-2); color: var(--on-dark); }
.section--light { background: var(--bone); color: var(--on-light); }
.section--paper { background: var(--paper); color: var(--on-light); }

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--ink2 h1, .section--ink2 h2, .section--ink2 h3, .section--ink2 h4 { color: var(--on-dark); }

/* Eyebrow — instrument label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}
.eyebrow::before {
  content: "";
  width: 1.8rem; height: 1px;
  background: currentColor;
  display: inline-block;
}
.section--dark .eyebrow, .section--ink2 .eyebrow { color: var(--orange-soft); }

.section-title { font-size: var(--step-3); max-width: 18ch; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--on-light-muted); max-width: 60ch; }
.section--dark .lede, .section--ink2 .lede { color: var(--on-dark-muted); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  --bg: var(--orange);
  --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1rem 1.6rem; border: 1px solid var(--bg);
  border-radius: var(--radius); position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn .btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px var(--orange-deep); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:not(.btn--ghost):hover { color: #fff; }

.btn--ghost {
  --bg: transparent; --fg: var(--on-dark);
  border-color: var(--line-dark);
}
.btn--ghost:hover { background: rgba(232,116,74,0.08); box-shadow: none; }
.section--light .btn--ghost, .section--paper .btn--ghost { --fg: var(--on-light); border-color: var(--line-light); }
/* Arrow link from a home section to its subpage */
.section-link {
  display: flex; width: fit-content; margin-inline: auto;
  align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange);
  position: relative; padding-block: 0.35rem; margin-top: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
}
.section-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--orange); transition: width 0.35s var(--ease); }
.section-link:hover::after { width: 100%; }
.section-link svg { transition: transform 0.35s var(--ease); }
.section-link:hover svg { transform: translateX(4px); }
.section--dark .section-link { color: var(--orange-soft); }
.section--dark .section-link::after { background: var(--orange-soft); }
/* Founder + Practical AI links sit left within their columns; box sections (services, process) stay centered */
#founder .section-link, #ai .section-link { margin-inline: 0; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
  transition: padding 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header.is-scrolled {
  background: #FFFFFF;
  padding-block: 1.05rem;
  box-shadow: 0 12px 30px -22px rgba(34, 28, 20, 0.55);
}

.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--ink); }
.brand__mark { width: 50px; height: 50px; flex: none; }
.brand__name {
  font-family: "Poppins", var(--font-display), sans-serif; font-weight: 800;
  font-size: 1.6rem; letter-spacing: -0.015em; line-height: 1; color: #100D08; white-space: nowrap;
}
.brand img { max-height: 52px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 2.2rem; }
.primary-nav ul { display: flex; gap: 2rem; list-style: none; padding: 0; flex-wrap: nowrap; }
.primary-nav a {
  font-size: 0.92rem; color: var(--on-light); position: relative; padding-block: 0.3rem; white-space: nowrap;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--orange); transition: width 0.35s var(--ease);
}
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav a.is-current::after { width: 100%; }
.primary-nav a.is-current { color: var(--orange); }

.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 44px; background: none; border: none; padding: 10px; z-index: 110;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--on-light); transition: transform 0.4s var(--ease), opacity 0.3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .primary-nav {
    position: fixed; inset: 0; background: var(--paper);
    flex-direction: column; justify-content: center; gap: 2.4rem;
    transform: translateY(-100%); transition: transform 0.5s var(--ease);
    padding: var(--gut);
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 1.4rem; text-align: center; }
  .primary-nav a { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  position: relative; background: var(--ink); color: var(--on-dark);
  padding-top: clamp(8rem, 6rem + 9vw, 12rem);
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 8%, rgba(199,57,21,0.16), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(156,74,44,0.12), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 1rem + 5vw, 5rem);
  align-items: center;
}
.hero__coords {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--on-dark-muted); text-transform: uppercase; margin-bottom: 1.6rem;
  display: flex; gap: 1.2rem; flex-wrap: wrap;
}
.hero__coords span { color: var(--orange-soft); }
.hero h1 {
  font-size: var(--step-5); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98;
}
.hero h1 em { font-style: normal; color: var(--orange-soft); }
.hero__sub { margin-top: 1.8rem; font-size: var(--step-1); color: var(--on-dark); max-width: 58ch; line-height: 1.5; }
.hero__note { margin-top: 1.3rem; font-size: var(--step-0); color: var(--on-dark); max-width: 62ch; }
.hero__cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)); }

/* Real hero photo, framed inside the instrument "scope" */
.hero__scope {
  position: relative; width: 100%; max-width: 460px; margin-inline: auto;
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 40%, var(--ink-3), var(--ink));
  box-shadow: 0 30px 60px rgba(0,0,0,0.45), inset 0 0 0 1px var(--line-dark);
}
.hero__scope-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  filter: saturate(0.92) contrast(1.02);
}
.hero__scope-ring {
  position: absolute; inset: 8%; border-radius: 50%;
  border: 1px solid rgba(232,116,74,0.45); z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 40px rgba(20,17,12,0.55);
}
.hero__cross { position: absolute; background: rgba(232,116,74,0.5); z-index: 3; pointer-events: none; }
.hero__cross--v { left: 50%; top: 4%; bottom: 4%; width: 1.4px; transform: translateX(-50%); }
.hero__cross--h { top: 50%; left: 4%; right: 4%; height: 1.4px; transform: translateY(-50%); }
.hero__tick { position: absolute; background: var(--orange-soft); z-index: 4; }
.hero__tick--t { top: 2%;  left: 50%; width: 2px; height: 14px; transform: translateX(-50%); }
.hero__tick--b { bottom: 2%; left: 50%; width: 2px; height: 14px; transform: translateX(-50%); }
.hero__tick--l { left: 2%;  top: 50%; height: 2px; width: 14px; transform: translateY(-50%); }
.hero__tick--r { right: 2%; top: 50%; height: 2px; width: 14px; transform: translateY(-50%); }

.hero__ticks {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px);
  background-size: 100% 2.6rem; opacity: 0.4; mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__ticks { animation: heroTicksDrift 6s linear infinite; }
}
@keyframes heroTicksDrift { to { background-position: 0 -2.6rem; } }
.hero__cat {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.1;
  background: url(assets/hero-cat.png) right center / auto 78% no-repeat;
}
@media (max-width: 860px) {
  .hero__cat { opacity: 0.08; background-size: auto 58%; background-position: right bottom; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 360px; }
}

/* Marquee strip of capabilities */
.strip {
  background: var(--orange); color: var(--ink); overflow: hidden;
  border-block: 1px solid var(--ink);
}
.strip__track {
  display: flex; gap: 3rem; padding-block: 0.85rem; width: max-content;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  animation: marquee 32s linear infinite;
}
.strip__track span { display: inline-flex; align-items: center; gap: 3rem; }
.strip__track span::before { content: "◆"; font-size: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   7. Services
   ========================================================================== */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(2.2rem, 1.5rem + 2vw, 3.6rem); }
.section-head .lede { justify-self: end; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } .section-head .lede { justify-self: start; } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.service {
  background: #FFFFFF; padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  position: relative; transition: background 0.4s var(--ease); min-height: 260px;
  display: flex; flex-direction: column;
}
.service__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--orange); letter-spacing: 0.1em; }
.service__title { font-size: var(--step-1); font-weight: 700; margin-top: 1rem; }
.service__desc { margin-top: 0.9rem; color: var(--on-light-muted); font-size: 0.96rem; }
.service:hover { background: #FBFAF6; }
.service::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--orange); transition: width 0.45s var(--ease); }
.service:hover::after { width: 100%; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }

/* ==========================================================================
   8. Founder
   ========================================================================== */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center; }
.founder__media { position: relative; }
.founder__photo {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--ink-3), var(--ink)); border: 1px solid var(--line-dark);
  display: grid; place-items: center;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--orange); color: var(--ink);
  padding: 0.9rem 1.1rem; border-radius: var(--radius); font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.06em; line-height: 1.3; max-width: 200px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.founder__badge:hover { background: #fff; color: var(--ink); }
.founder__badge strong { font-size: 1.4rem; display: block; font-family: var(--font-display); }
.founder h2 { font-size: var(--step-3); }
.founder p { margin-top: 1.2rem; color: var(--on-dark-muted); max-width: 56ch; }
.founder__links { margin-top: 1.8rem; display: flex; gap: 1rem; align-items: center; }
.founder__links a { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--orange-soft); }
.founder__links svg { width: 18px; height: 18px; }
@media (max-width: 800px) { .founder { grid-template-columns: 1fr; } .founder__media { max-width: 360px; } }

/* ==========================================================================
   9. Why Zillen
   ========================================================================== */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: start; }
.why__points { list-style: none; padding: 0; margin-top: 0.5rem; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.why__points li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line-light); font-size: 1.02rem;
}
.why__points li::before {
  content: ""; width: 9px; height: 9px; margin-top: 0.55rem; background: var(--orange);
  transform: rotate(45deg); flex: none;
}
.why__aside h2 { font-size: var(--step-3); }
.why__aside .lede { margin-top: 1.2rem; }
.why__label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; display: block; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } }

/* ==========================================================================
   10. Process — the tracked path
   ========================================================================== */
.process__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-light); border: 1px solid var(--line-light); margin-top: 1rem;
}
.step {
  background: #FFFFFF; padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  position: relative; transition: background 0.4s var(--ease); min-height: 260px;
  display: flex; flex-direction: column;
}
.step__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--orange); letter-spacing: 0.1em; }
.step__num b { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 400; color: var(--orange); letter-spacing: 0.1em; line-height: 1; }
.step__title { font-size: var(--step-1); font-weight: 700; margin-top: 1rem; color: var(--on-light); }
.step__desc { margin-top: 0.9rem; color: var(--on-light-muted); font-size: 0.96rem; }
.step:hover { background: #FBFAF6; }
.step::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--orange); transition: width 0.45s var(--ease); }
.step:hover::after { width: 100%; }
@media (max-width: 880px) { .process__steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .process__steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* ==========================================================================
   11. AI section
   ========================================================================== */
.ai { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center; }
.ai__list { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: 0.85rem; }
.ai__list li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; font-size: 1rem; }
.ai__list svg { width: 20px; height: 20px; color: var(--orange); margin-top: 0.2rem; flex: none; }
.ai__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.ai__art svg { width: 100%; max-width: 420px; }
/* Radar animation: rotating sweep, sonar ping, pulsing core */
.ai__art .z-sweep, .ai__art .z-ping, .ai__art .z-core { transform-box: view-box; transform-origin: 200px 200px; }
.ai__art .z-ping { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ai__art .z-sweep { animation: zRadarSweep 5s linear infinite; }
  .ai__art .z-ping  { animation: zRadarPing 3.2s ease-out infinite; }
  .ai__art .z-core  { animation: zRadarCore 2.4s ease-in-out infinite; }
}
@keyframes zRadarSweep { to { transform: rotate(360deg); } }
@keyframes zRadarPing { 0% { transform: scale(0.25); opacity: 0.6; } 70% { opacity: 0; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes zRadarCore { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: 0.7; } }
@media (max-width: 820px) { .ai { grid-template-columns: 1fr; } .ai__art { order: -1; max-width: 360px; } }

/* ==========================================================================
   12. Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: start; }
.contact h2 { font-size: var(--step-4); }
.contact__intro { margin-top: 1.4rem; color: var(--on-dark-muted); max-width: 42ch; }
.contact__detail { margin-top: 2rem; font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--orange-soft); display: grid; gap: 0.6rem; }
.contact__detail a { color: var(--orange-soft); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form .field--full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 0.5rem; }
.field label .req { color: var(--orange); }
.field input, .field textarea {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--on-dark);
  padding: 0.9rem 1rem; border-radius: var(--radius); font: inherit; font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--orange); background: var(--ink-3); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form__submit { grid-column: 1 / -1; justify-self: start; }
.form__note { grid-column: 1/-1; font-size: 0.8rem; color: var(--on-dark-muted); }
.form-status { grid-column: 1/-1; padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: 0.92rem; }
.form-status--ok { background: rgba(199,57,21,0.14); border: 1px solid var(--orange); color: var(--orange-soft); }
.form-status--err { background: rgba(156,74,44,0.16); border: 1px solid var(--clay); color: #e7a98f; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form { grid-template-columns: 1fr; } }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer { background: var(--paper); color: var(--on-light-muted); padding-block: clamp(2.8rem, 2rem + 3vw, 4.5rem) 2rem; border-top: 1px solid var(--line-light); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-light); }
.site-footer h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.1rem; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; font-size: 0.9rem; }
.site-footer a { color: var(--on-light); }
.site-footer a:hover { color: var(--orange); }
/* Footer link lists use the same hover as the top nav: dark text, orange underline sweeps in */
.site-footer ul a { position: relative; padding-block: 0.15rem; }
.site-footer ul a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--orange); transition: width 0.35s var(--ease); }
.site-footer ul a:hover { color: var(--on-light); }
.site-footer ul a:hover::after { width: 100%; }
.site-footer__brand p { margin-top: 1rem; max-width: 36ch; font-size: 0.95rem; color: var(--on-light-muted); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--on-light-muted); }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--orange-soft); }
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1/-1; } }

/* ==========================================================================
   14. Generic content (pages, posts, archive)
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding-top: clamp(8rem, 6rem + 8vw, 11rem); padding-bottom: clamp(3rem, 2.5rem + 4vw, 5rem); }
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--step-3); line-height: 1.08; }
.page-hero .eyebrow { color: var(--orange-soft); }

.entry { padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.entry__content { max-width: none; }
.entry__content > * + * { margin-top: 1rem; }
.entry__content h2 { font-size: var(--step-2); margin-top: 3.2rem; margin-bottom: 0.2rem; color: var(--orange); }
.entry__content h3 { font-size: var(--step-1); margin-top: 2.6rem; color: var(--ink); margin-left: 1.5rem; }
.entry__content .entry-sub { margin-left: 1.5rem; }
.entry__content a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.entry__content img { border-radius: var(--radius-lg); }
.entry__content blockquote { border-left: 3px solid var(--orange); padding-left: 1.4rem; font-size: var(--step-1); font-style: italic; color: var(--on-light-muted); }
.entry__content ul, .entry__content ol { padding-left: 2.5rem; }
.entry__content li + li { margin-top: 0.4rem; }
.entry__content code { font-family: var(--font-mono); background: var(--paper); padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.9em; }
.entry__content pre { background: var(--ink); color: var(--on-dark); padding: 1.2rem; border-radius: var(--radius); overflow-x: auto; }
.entry__content pre code { background: none; padding: 0; }

.entry-meta { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-light-muted); display: flex; gap: 1rem; flex-wrap: wrap; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.6rem; }
.post-card { background: #fff; border: 1.5px solid var(--line-light); border-radius: 2px; transition: border-color 0.3s var(--ease); display: flex; flex-direction: column; position: relative; margin: 0 10px 10px 0; }
.post-card::after { content: ""; position: absolute; z-index: -1; top: 9px; left: 9px; right: -9px; bottom: -9px; background: repeating-linear-gradient(45deg, var(--ink-2) 0, var(--ink-2) 1px, transparent 1px, transparent 6px); }
.post-card:hover { border-color: var(--orange); }
.post-card__thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--ink-3); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.post-card__title { font-size: var(--step-1); font-weight: 700; }
.post-card__excerpt { color: var(--on-light-muted); font-size: 0.95rem; }
.post-card__more { margin-top: auto; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--clay); text-transform: uppercase; }

.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers { font-family: var(--font-mono); font-size: 0.85rem; padding: 0.6rem 0.95rem; border: 1px solid var(--line-light); border-radius: var(--radius); }
.pagination .current { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* Framed article card (editorial box with hatched offset shadow) */
.post-frame { position: relative; background: #fff; border: 1.5px solid var(--line-light); border-radius: 2px; padding: clamp(1.6rem, 1.1rem + 3vw, 3.4rem); margin: 0 16px 16px 0; }
.post-frame::after { content: ""; position: absolute; z-index: -1; top: 14px; left: 14px; right: -14px; bottom: -14px; background: repeating-linear-gradient(45deg, var(--ink-2) 0, var(--ink-2) 1px, transparent 1px, transparent 6px); }
.post-frame .entry__content { color: var(--on-light); }
.entry__content ul li::marker, .entry__content ol li::marker { color: var(--orange); }
@media (max-width: 640px) { .post-frame { padding: 1.3rem; margin: 0 10px 10px 0; } .post-frame::after { top: 10px; left: 10px; right: -10px; bottom: -10px; } }
/* End-of-article services CTA (black box, orange button) */
.post-services-cta { margin-top: 3rem; background: var(--ink); color: var(--on-dark); border-radius: 2px; padding: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
.post-services-cta .eyebrow { color: var(--orange-soft); }
.post-services-cta h3 { color: var(--on-dark); margin-top: 0.6rem; margin-left: 0; font-size: var(--step-2); }
.post-services-cta p { margin-top: 0.8rem; color: var(--on-dark-muted); max-width: 54ch; }
.post-services-cta .btn { margin-top: 1.6rem; }

/* Single-post: the framed card sits below the hero with equal padding above and below
   (uses the .entry section's symmetric padding-block; no hero overlap). */

/* Breadcrumb */
.crumbs { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--on-dark-muted); margin-top: clamp(1.5rem, 1rem + 2vw, 2.75rem); margin-bottom: 1.4rem; line-height: 1.6; }
.crumbs a { color: var(--orange-soft); }
.crumbs a:hover { color: var(--orange); }
.crumbs .sep { opacity: 0.5; margin: 0 0.35em; }
.crumbs span[aria-current] { color: var(--on-dark-muted); }
/* Breadcrumb on light/tan sections (moved out of the dark hero) */
.section--light .crumbs, .section--paper .crumbs { color: var(--on-light-muted); margin-top: 0; margin-bottom: clamp(1.6rem, 1.2rem + 1vw, 2.4rem); }
.section--light .crumbs a, .section--paper .crumbs a { color: var(--orange); }
.section--light .crumbs a:hover, .section--paper .crumbs a:hover { color: var(--clay); }
.section--light .crumbs span[aria-current], .section--paper .crumbs span[aria-current] { color: var(--on-light-muted); }
/* Tighten the gap between the hero and the breadcrumb now sitting atop the first section below it */
.page-hero + section { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }

/* Comments */
.comments { max-width: 70ch; margin: 3rem auto 0; }
.comment-list { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.comment-body { background: var(--paper); padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line-light); }
.comment-respond input, .comment-respond textarea { width: 100%; padding: 0.8rem; border: 1px solid var(--line-light); border-radius: var(--radius); font: inherit; margin-top: 0.4rem; }
.comment-respond textarea { min-height: 110px; }

/* 404 / search */
.center-state { text-align: center; max-width: 540px; margin-inline: auto; padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.center-state h1 { font-size: var(--step-5); color: var(--orange); }
.center-state p { margin-top: 1rem; color: var(--on-light-muted); }
.center-state .searchform { margin-top: 2rem; }

.searchform { display: flex; gap: 0.5rem; }
.searchform input[type="search"] { flex: 1; padding: 0.9rem 1rem; border: 1px solid var(--line-light); border-radius: var(--radius); font: inherit; }
.searchform button { background: var(--ink); color: var(--orange-soft); border: none; padding: 0 1.3rem; border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ==========================================================================
   15. Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* WP core alignment helpers */
.alignwide { width: min(100%, 1100px); margin-inline: auto; }
.alignfull { width: 100%; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: 0.82rem; color: var(--on-light-muted); font-style: italic; }
.sticky, .bypostauthor { display: block; }

/* ==========================================================================
   16. Misc component hooks
   ========================================================================== */
.btn--small { padding: 0.6rem 1rem; font-size: 0.82rem; }
.btn.btn--small { color: #fff; }
.btn.btn--small:hover { color: #000; }
@media (max-width: 900px) { .btn--small { padding: 1rem 1.6rem; font-size: 0.82rem; } }

.founder__placeholder { width: 46%; max-width: 180px; color: var(--orange); opacity: 0.85; }
.founder__role { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Footer widgets */
.footer-widget + .footer-widget { margin-top: 1.5rem; }
.footer-widget ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }

/* Blog sidebar widgets */
.widget { margin-bottom: 2rem; }
.widget-title { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.9rem; }
.widget ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.widget a:hover { color: var(--clay); }

/* Page links + comment form */
.page-links { margin-top: 2rem; font-family: var(--font-mono); font-size: 0.85rem; display: flex; gap: 0.5rem; }
.comment-form label { display: block; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-light-muted); margin-top: 1rem; }
.comment-form .form-submit { margin-top: 1.2rem; }
.comment-reply-title { font-size: var(--step-2); margin-bottom: 0.5rem; }

/* Custom logo sizing */
.custom-logo { max-height: 46px; width: auto; }

/* ============================================================
   16 · Responsive refinements
   ============================================================ */

/* Long strings (emails, URLs) never force horizontal overflow */
body, h1, h2, h3, h4, h5, h6, p, a, li, .brand__name { overflow-wrap: break-word; }

/* Brand lockup scales down so it never overflows narrow headers */
@media (max-width: 620px) {
  .brand { gap: 0.7rem; }
  .brand__mark { width: 44px; height: 44px; }
  .brand img { max-height: 46px; }
  .brand__name { font-size: 1.25rem; }
}
@media (max-width: 430px) {
  .brand { gap: 0.55rem; }
  .brand__mark { width: 38px; height: 38px; }
  .brand img { max-height: 40px; }
  .brand__name { font-size: 1.02rem; letter-spacing: -0.02em; }
}
@media (max-width: 360px) {
  .brand__name { font-size: 0.92rem; }
}

/* Mobile nav: brand shrinks/wraps so it never overlaps the menu button */
@media (max-width: 1080px) {
  .site-header__inner { gap: 1rem; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand__name { min-width: 0; white-space: normal; line-height: 1.08; }
  .nav-toggle { flex: none; }
}

/* Interior page hero: smaller heading + clear space under the fixed header on phones */
@media (max-width: 600px) {
  .page-hero { padding-top: clamp(8rem, 6rem + 10vw, 10rem); }
  .page-hero h1 { font-size: var(--step-3); line-height: 1.06; }
  .page-hero__lede { font-size: var(--step-0); margin-top: 0.9rem; line-height: 1.55; }
}

/* Footer collapses to a single column on small phones */
@media (max-width: 480px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: auto; }
}

/* Tighten hero art on small screens so it doesn't dominate the fold */
@media (max-width: 560px) {
  .hero__art { max-width: 300px; }
  .hero__scope { max-width: 300px; }
}

/* ============================================================
   17 · Interior pages (multi-page)
   ============================================================ */
.page-hero__lede { margin-top: 1.1rem; max-width: 60ch; color: var(--on-dark-muted); font-size: var(--step-1); line-height: 1.5; }

.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.cta-band .eyebrow { color: var(--orange-soft); }
.cta-band h2 { font-size: var(--step-3); max-width: 20ch; margin-top: 0.4rem; }
.cta-band p { margin-top: 0.8rem; color: var(--on-dark-muted); max-width: 48ch; }
.cta-band .btn { flex: none; }
@media (max-width: 680px) {
  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
}
/* Preview-only: reveal everything immediately for a clean static capture */
.reveal { opacity:1 !important; transform:none !important; }
