/* ===================================================================
   Inspiration Technologies — design system
   Vibe: dark navy + warm flame orange, modern editorial
   =================================================================== */

:root {
  /* Palette — default "Navy & Grey" */
  --ink:        #0E1E3F;          /* deepest navy */
  --ink-2:      #16284C;          /* card surface on dark */
  --ink-3:      #1F3460;          /* lifted on dark */
  --paper:      #F2F4F8;          /* cool off-white */
  --paper-2:    #E2E6EF;          /* cool grey paper */
  --line-dark:  rgba(255,255,255,0.10);
  --line-light: rgba(14,30,63,0.10);

  --accent:     #3D6FB0;          /* steel blue */
  --accent-2:   #275088;          /* deep steel */
  --accent-soft:#DCE6F4;          /* tint */

  --slate:      #8B97AE;          /* muted on dark */
  --slate-2:    #5B6680;          /* muted-er */
  --slate-deep: #2E374D;          /* darker muted */

  /* Type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SF Mono", monospace;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --maxw: 1280px;
}

/* Color tweaks via Tweaks panel */
:root[data-palette="navy"]    { --ink:#0E1E3F; --ink-2:#16284C; --ink-3:#1F3460; --paper:#F2F4F8; --paper-2:#E2E6EF; --line-light:rgba(14,30,63,0.10); --accent:#3D6FB0; --accent-2:#275088; --accent-soft:#DCE6F4; --slate:#8B97AE; --slate-2:#5B6680; --slate-deep:#2E374D; }
:root[data-palette="flame"]   { --ink:#0B1437; --ink-2:#131C44; --ink-3:#1B2554; --paper:#FAF8F2; --paper-2:#F1ECE0; --line-light:rgba(11,20,55,0.10); --accent:#FF6B35; --accent-2:#E84B16; --accent-soft:#FFE8DD; --slate:#7B8AB8; --slate-2:#4A5A85; --slate-deep:#2C3556; }
:root[data-palette="electric"]{ --ink:#06112A; --ink-2:#0E1B3E; --ink-3:#16244F; --paper:#F2F4F8; --paper-2:#E2E6EF; --line-light:rgba(6,17,42,0.10); --accent:#00B8E6; --accent-2:#0090C9; --accent-soft:#D6F4FE; --slate:#7B8AB8; --slate-2:#4A5A85; --slate-deep:#2C3556; }
:root[data-palette="kelp"]    { --ink:#0A1F1B; --ink-2:#10302A; --ink-3:#163D35; --paper:#F4F2EC; --paper-2:#E7E2D2; --line-light:rgba(10,31,27,0.10); --accent:#D8923A; --accent-2:#A06B1E; --accent-soft:#FFEACB; --slate:#7A998E; --slate-2:#4A6B5F; --slate-deep:#1F352F; }
:root[data-palette="berry"]   { --ink:#1A0B2E; --ink-2:#26143F; --ink-3:#311951; --paper:#F6F1F4; --paper-2:#EBDEE7; --line-light:rgba(26,11,46,0.10); --accent:#C0398C; --accent-2:#931E69; --accent-soft:#FCE5F1; --slate:#9C8AB8; --slate-2:#6A547F; --slate-deep:#3A2154; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
}

/* Type ramp */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 88px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 56px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; }
h4 { font-size: 20px; letter-spacing: -0.015em; }
p  { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===================== TOP NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--line-light);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: inline-block;
  flex-shrink: 0;
}
.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.brand__mark::before {
  /* the "spark" — diagonal slash */
  top: 6px; left: 6px;
  width: 18px; height: 3px;
  border-radius: 2px;
  transform: rotate(-35deg);
  transform-origin: 0 50%;
}
.brand__mark::after {
  bottom: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.brand small {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--slate-2);
  font-size: 13px;
  letter-spacing: 0;
  margin-left: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--slate-deep);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav__links a:hover { background: var(--paper-2); color: var(--ink); }
.nav__links a.is-active { color: var(--ink); background: var(--paper-2); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-light);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--on-dark {
  background: var(--paper);
  color: var(--ink);
}
.btn--on-dark:hover { background: white; transform: translateY(-1px); }
.btn--ghost-on-dark {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-dark);
}
.btn--ghost-on-dark:hover { background: rgba(255,255,255,0.06); }

.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===================== HERO ===================== */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}
.hero__bg::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent), transparent 60%);
  filter: blur(40px);
}
.hero__bg::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  bottom: -150px; left: -100px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%);
  filter: blur(60px);
}

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}

.hero__head { max-width: 920px; margin-bottom: 56px; }
.hero h1 {
  color: var(--paper);
}
.hero h1 .flame { color: var(--accent); font-style: italic; font-family: var(--font-display); font-weight: 500; }
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.85;
}

.hero__lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--slate);
  max-width: 600px;
  margin-top: 24px;
  line-height: 1.55;
}

.hero__cta-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Pillar split */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-top: 56px;
}
.pillar {
  background: var(--ink);
  padding: 36px 28px 40px;
  position: relative;
  transition: background 0.3s;
}
.pillar:hover { background: var(--ink-2); }
.pillar__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-2);
  letter-spacing: 0.1em;
}
.pillar__icon {
  margin: 24px 0 20px;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.pillar h3 {
  color: var(--paper);
  margin-bottom: 12px;
}
.pillar__copy {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.pillar__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--slate);
}
.pillar__list li::before {
  content: "→ ";
  color: var(--accent);
  font-family: var(--font-mono);
}
.pillar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  padding-bottom: 4px;
  width: fit-content;
  white-space: nowrap;
}
.pillar__link:hover { color: var(--paper); border-color: var(--paper); }

/* ===================== SECTION CHROME ===================== */
section { padding: 96px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}
.section-head__intro {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--slate-deep);
  line-height: 1.55;
  max-width: 580px;
}
.section-head .eyebrow { color: var(--slate-2); margin-bottom: 16px; }
.section-head .eyebrow::before { box-shadow: 0 0 0 4px var(--accent-soft); }

/* ===================== CAPABILITIES ===================== */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cap {
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
}
.cap:hover { background: white; }
.cap__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cap h4 { color: var(--ink); font-size: 19px; }
.cap__copy { color: var(--slate-deep); font-size: 15px; line-height: 1.5; }
.cap__tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--slate-2);
  background: var(--paper);
}

/* ===================== INDUSTRIES ===================== */
.industries-section { background: var(--paper-2); }
.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.industry {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.industry:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(11,20,55,0.4);
}
.industry:hover .industry__icon { color: var(--accent); }
.industry:hover .industry__copy { color: var(--slate); }
.industry__icon {
  color: var(--ink);
  transition: color 0.25s;
}
.industry h4 { font-size: 18px; }
.industry__copy { font-size: 13px; color: var(--slate-deep); line-height: 1.5; }
.industry__num {
  position: absolute;
  top: 18px; right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-2);
}

/* ===================== WORK PREVIEW ===================== */
.work-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 16px;
}
.work {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-2);
  color: var(--paper);
  isolation: isolate;
}
.work__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,20,55,0.85) 100%);
  z-index: 1;
}
.work__media svg, .work__media .work-placeholder {
  width: 100%; height: 100%;
  transition: transform 0.5s;
}
.work:hover .work__media svg, .work:hover .work__media .work-placeholder {
  transform: scale(1.05);
}
.work__meta {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.work__title h4 { color: var(--paper); font-size: 22px; margin-bottom: 4px; }
.work__title small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.work__arrow {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.work--lg { grid-row: span 2; grid-column: 1; }
.work--med { grid-column: span 1; }

/* ===================== LOGOS STRIP ===================== */
.logos-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
  overflow: hidden;
}
.logos-strip .container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}
.logos-strip h3 { color: var(--paper); }
.logos-strip p { color: var(--slate); margin-top: 12px; font-size: 15px; }
.logos {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}
.logo-slot {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  color: var(--slate-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===================== PROCESS ===================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.step {
  padding: 28px 24px 32px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__num {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.step h4 { font-size: 19px; color: var(--ink); }
.step p { font-size: 14px; color: var(--slate-deep); line-height: 1.5; }

/* ===================== CTA BAND ===================== */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 800px; height: 800px;
  right: -300px; top: -200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-band .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--slate); margin-top: 18px; max-width: 520px; font-size: 17px; }
.cta-band .cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: start;
}
.cta-band__stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
}
.cta-band__stat strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: -0.03em;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--ink);
  color: var(--slate);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line-dark);
}
.footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h5 {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--slate); font-size: 15px; }
.footer a:hover { color: var(--paper); }
.footer__brand { max-width: 320px; }
.footer__brand .brand { color: var(--paper); }
.footer__brand .brand small { color: var(--slate); }
.footer__brand p { font-size: 14px; line-height: 1.5; margin-top: 16px; color: var(--slate); }
.footer__social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate);
}
.footer__social a:hover { background: var(--accent); color: white; border-color: var(--accent); }
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--slate-2);
}

/* ===================== TWEAKS PANEL ===================== */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 18px;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4), 0 0 0 1px var(--line-dark);
  display: none;
  max-width: 280px;
  font-family: var(--font-body);
}
.tweaks.is-active { display: block; }
.tweaks h6 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tweaks h6 button {
  background: transparent;
  border: none;
  color: var(--slate);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.tweaks__swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.tweaks__swatch {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  height: 44px;
  display: flex;
  padding: 0;
  position: relative;
  transition: transform 0.15s;
}
.tweaks__swatch:hover { transform: translateY(-2px); }
.tweaks__swatch.is-active { border-color: var(--paper); }
.tweaks__swatch span {
  flex: 1;
  height: 100%;
}
.tweaks__label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.05em;
}

/* ===================== INTERIOR PAGE HEAD ===================== */
.page-head {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}
.page-head {
  /* per-page hero icon (overridden below by data-screen-label) */
  --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.1'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}
.page-head::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  right: -150px; top: -200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  animation: ph-drift 17s ease-in-out infinite alternate;
}
.page-head::after {
  content: "";
  position: absolute;
  right: 5%;
  top: 50%;
  width: clamp(180px, 22vw, 300px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.16;
  background: var(--accent-soft);
  -webkit-mask: center / contain no-repeat var(--ph-icon);
  mask: center / contain no-repeat var(--ph-icon);
  animation: ph-float 9s ease-in-out infinite;
}
/* Page-specific hero icons */
body[data-screen-label="Our Work"] .page-head { --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.1'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M10 9l5 3-5 3z' fill='%23fff'/%3E%3C/svg%3E"); }
body[data-screen-label="Contact"] .page-head { --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.1'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
body[data-screen-label="Blog"] .page-head { --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.1'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
@keyframes ph-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-70px, 46px) scale(1.18); }
}
@keyframes ph-float {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50%      { transform: translateY(calc(-50% - 20px)) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .page-head::before, .page-head::after { animation: none; }
}
.page-head .container { position: relative; }
.page-head h1 { color: var(--paper); max-width: 900px; }
.page-head__lede {
  color: var(--slate);
  font-size: clamp(17px, 1.3vw, 20px);
  max-width: 640px;
  margin-top: 24px;
}
.page-head__crumbs {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--slate);
  margin-bottom: 32px;
  text-transform: uppercase;
}
.page-head__crumbs span { color: var(--slate-2); }

/* Footer + CTA text brightened site-wide (readability on dark bands) */
.footer__brand p { color: #DEDEDE; }
.footer ul li { color: #DEDEDE; }
.footer ul li a { color: #DEDEDE; }
.footer ul li a:hover { color: #FFFFFF; }
.cta-band .eyebrow { color: #DEDEDE; }
.cta-band p { color: #DEDEDE; }
.cta-band__stat { color: #DEDEDE; }

/* ===================== WORK PAGE ===================== */
.work-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -25px rgba(11,20,55,0.25);
  border-color: var(--ink-3);
}
.work-card__media {
  aspect-ratio: 4/3;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.work-card__media .work-placeholder { width: 100%; height: 100%; }
.work-card__body { padding: 22px 24px 26px; }
.work-card__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.work-card h3 { font-size: 22px; margin-bottom: 6px; }
.work-card__client { color: var(--slate-deep); font-size: 14px; }

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: var(--paper);
  color: var(--slate-deep);
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 110px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-info {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-self: start;
}
.contact-info h3 { color: var(--paper); }
.info-row {
  display: flex;
  gap: 14px;
  align-items: start;
}
.info-row__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-row__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.info-row__value { color: var(--paper); font-size: 16px; margin-top: 2px; word-break: break-word; overflow-wrap: anywhere; }
.info-row a { color: var(--paper); }
.info-row a:hover { color: var(--accent); }

/* ===================== BLOG ===================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(11,20,55,0.2); }
.post-card__media {
  aspect-ratio: 16/9;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.post-card__meta {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.post-card__meta .post-cat { color: var(--accent); }
.post-card h3 { font-size: 21px; }
.post-card p { font-size: 14px; color: var(--slate-deep); line-height: 1.55; }
.post-card__read {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}
.featured-post__media {
  background: var(--paper-2);
  min-height: 380px;
  position: relative;
}
.featured-post__body {
  padding: 48px 48px 48px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* ===================== WHAT WE DO ===================== */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 64px 0;
  border-top: 1px solid var(--line-light);
  align-items: start;
}
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block__head { position: sticky; top: 100px; }
.service-block__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate-2);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.service-block h2 { font-size: clamp(32px, 3.5vw, 44px); margin-bottom: 16px; }
.service-block__lede { color: var(--slate-deep); font-size: 17px; line-height: 1.55; margin-bottom: 24px; max-width: 380px; }
.service-block__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--paper);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature__icon { color: var(--accent); margin-bottom: 8px; }
.feature h4 { font-size: 17px; color: var(--ink); }
.feature p { font-size: 14px; color: var(--slate-deep); line-height: 1.5; }
.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .pillars, .caps-grid, .industries, .work-grid, .blog-grid, .work-list { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer .container, .cta-band .container, .logos-strip .container, .section-head, .contact-grid, .featured-post, .service-block { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .featured-post__body { padding: 32px; }
  .service-block__head { position: static; }
}
@media (max-width: 640px) {
  .container, .nav__inner, .hero__inner { padding: 0 20px; }
  .nav__links { display: none; }
  .pillars, .caps-grid, .industries, .work-grid, .blog-grid, .work-list, .process { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .contact-row, .logos { grid-template-columns: 1fr 1fr; }
  .footer .container { gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; align-items: start; }
}
