/* ==========================================================================
   Noera Tech Solutions — stylesheet
   Design system: predominantly white, deep violet + signal green accents.
   ========================================================================== */

:root {
  /* Brand */
  --purple: #32145F;
  --purple-deep: #22103F;
  --purple-soft: #6B4FA0;
  --purple-tint: #F4F0FA;
  --purple-tint-strong: #E9E1F5;

  --green: #20B879;      /* decorative — backgrounds/tints/dots only, not text on white */
  --green-deep: #0E7A4B; /* accessible on white — text, icons, links, focus */
  --green-tint: #E8F9F1;

  /* Neutrals */
  --ink: #17131E;
  --ink-soft: #4B4556;
  --ink-faint: #6E6780;
  --paper: #FFFFFF;
  --paper-soft: #FAF9FB;
  --paper-alt: #F7F5F9;
  --line: #E7E3ED;
  --line-strong: #D6D0E1;

  /* Type */
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-wordmark: "Archivo", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gray-cool: #6B6675; /* wordmark descriptor — brand spec */

  /* Layout */
  --wrap: 1160px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 2px rgba(23, 19, 30, 0.06);
  --shadow-md: 0 12px 32px rgba(23, 19, 30, 0.08);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

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

/* ---------- Focus & accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}
section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 16px;
  font-weight: 500;
}
.eyebrow-on-dark { color: var(--green); }
.eyebrow-green { color: var(--green-deep); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1; font-weight: 600; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 500; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-intro { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-ready .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  border: 1px solid var(--purple);
}
.btn-primary:hover { background: var(--purple-deep); border-color: var(--purple-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-large { padding: 16px 34px; font-size: 16px; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--purple); background: var(--purple-tint); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--green-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.link-arrow:hover { border-color: var(--green-deep); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark { flex-shrink: 0; }
.logo-word {
  font-family: var(--font-wordmark);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo-word-sub {
  font-family: var(--font-wordmark);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-cool);
  font-weight: 600;
  margin-top: 4px;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.main-nav a:hover { color: var(--purple); border-color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.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); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 22px;
  padding: 24px 28px 32px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { align-self: flex-start; }
.mobile-nav.open { display: flex; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 108px 0 116px; }
.hero-inner {
  display: block;
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-lead {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Problem / How We Help
   ========================================================================== */
.problem { padding: 108px 0; background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.problem-intro h2 { margin: 0 0 20px; }
.problem-intro p { color: var(--ink-soft); margin-bottom: 14px; max-width: 46ch; }
.problem-intro p:last-child { color: var(--ink); font-weight: 600; margin-bottom: 0; }

.problem-list { list-style: none; }
.problem-list li {
  position: relative;
  padding: 18px 0 18px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
  color: var(--ink);
}
.problem-list li:first-child { padding-top: 4px; }
.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.problem-diagram { margin-top: 36px; max-width: 300px; }
.problem-diagram svg { width: 100%; height: auto; display: block; }

/* ==========================================================================
   How We Work (method)
   ========================================================================== */
.method { padding: 116px 0; background: var(--purple-tint-strong); border-top: 1px solid #D6C6EA; border-bottom: 1px solid #D6C6EA; }
.method-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid #D6C6EA;
}
.method-step {
  padding: 32px 22px 0 0;
  border-right: 1px solid #D6C6EA;
}
.method-step:last-child { border-right: none; padding-right: 0; }
.method-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 18px;
}
.method-icon svg { width: 19px; height: 19px; }
.method-icon-purple { background: #fff; color: var(--purple); border: 1px solid var(--purple-tint-strong); }
.method-icon-green { background: var(--green-tint); color: var(--green-deep); }
.step-number {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.step-number-purple { color: var(--purple); }
.step-number-green { color: var(--green-deep); }
.method-step h3 { margin-bottom: 10px; }
.method-step p { color: var(--ink-soft); font-size: 15.5px; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 108px 0; background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-list { border-top: 1px solid var(--line-strong); }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.service-index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 2px;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 22px; height: 22px; }
.service-icon-purple { background: var(--purple-tint); color: var(--purple); }
.service-icon-green { background: var(--green-tint); color: var(--green-deep); }
.service-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-faint);
}
.service-body h3 { margin-bottom: 12px; }
.service-body p { color: var(--ink-soft); max-width: 68ch; }
.service-tags {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--purple-soft);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.services-note {
  margin-top: 32px;
  font-size: 14.5px;
  color: var(--ink-faint);
  font-style: italic;
  font-family: var(--font-serif);
}

/* ==========================================================================
   What We Can Build
   ========================================================================== */
.build { padding: 96px 0; }
.build-inner { max-width: 760px; }
.build-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.build-list li {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
}
.build-list li:nth-child(5n+1) { border-color: var(--purple-tint-strong); background: var(--purple-tint); color: var(--purple); }
.build-list li:nth-child(5n+3) { border-color: var(--green-tint); background: var(--green-tint); color: var(--green-deep); }

/* ==========================================================================
   Selected Work
   ========================================================================== */
.work { padding: 108px 0; background: var(--paper); }
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.work-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.work-card:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.work-card:nth-child(even) .work-card-visual { order: 2; }
.work-card:nth-child(even) .work-card-body { order: 1; }
.work-card:hover { border-color: var(--green-deep); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.work-card-visual {
  display: block;
  overflow: hidden;
  background: var(--paper-alt);
  min-height: 320px;
}
.work-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s var(--ease);
}
.work-card:hover .work-card-visual img { transform: scale(1.03); }
.work-card-body { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.work-kicker {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.work-card-body h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 8px; }
.work-tagline { color: var(--ink-soft); font-weight: 500; font-size: 17px; margin-bottom: 16px; }
.work-card-body p:not(.work-kicker):not(.work-tagline) { color: var(--ink-soft); margin-bottom: 22px; }
.work-card-body .link-arrow { margin-top: 4px; }
.work-card-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }

/* ==========================================================================
   Why Noera
   ========================================================================== */
.why { padding: 112px 0; background: #D3F1E4; border-top: 1px solid #AFE1C9; border-bottom: 1px solid #AFE1C9; }
.why-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.why-list { display: grid; gap: 0; border-top: 1px solid #AFE1C9; }
.why-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid #BFE9D5;
}
.why-item-head { display: flex; align-items: center; gap: 14px; }
.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-icon svg { width: 20px; height: 20px; }
.why-icon-purple { background: var(--purple-tint-strong); color: var(--purple); }
.why-icon-green { background: #fff; color: var(--green-deep); border: 1px solid #B9E6D0; }
.why-item dt {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.why-item dd { margin: 0; color: var(--ink-soft); }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 112px 0; background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-inner { max-width: 720px; }
.about-inner h2 { margin-bottom: 22px; }
.about-meta { margin-bottom: 28px; }
.about-inner p { color: var(--ink-soft); margin-bottom: 16px; font-size: 17px; }
.about-inner p:last-child { margin-bottom: 0; }
.about-founder {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--purple);
  margin-top: 28px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  display: inline-block;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-final {
  background: var(--purple);
  color: #fff;
  padding: 128px 0;
}
.cta-final-inner { max-width: 680px; text-align: left; }
.cta-final h2 { color: #fff; margin-bottom: 20px; }
.cta-final-lead { color: rgba(255,255,255,0.78); font-size: 18px; margin-bottom: 40px; max-width: 54ch; }
.cta-final-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-final .btn-primary { background: #fff; color: var(--purple); border-color: #fff; }
.cta-final .btn-primary:hover { background: var(--green-tint); border-color: var(--green-tint); }
.cta-final .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-final .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.cta-email { font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); }
.cta-email:hover { border-color: #fff; }
.cta-final-note { margin-top: 28px; font-size: 13.5px; color: rgba(255,255,255,0.55); }

.cta-form-divider {
  margin-top: 44px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 32px;
}
.cta-form { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-form-field { display: flex; flex-direction: column; gap: 8px; }
.cta-form-field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.cta-form-field label span { color: rgba(255,255,255,0.4); font-weight: 400; }
.cta-form-field input,
.cta-form-field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.cta-form-field input::placeholder,
.cta-form-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.cta-form-field input:focus,
.cta-form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(255,255,255,0.1);
}
.cta-form-field textarea { resize: vertical; min-height: 96px; font-family: var(--font-sans); }
.cta-form-hint { margin-top: 2px; font-size: 13px; color: rgba(255,255,255,0.5); font-style: italic; font-family: var(--font-serif); }
.cta-form .btn-primary { align-self: flex-start; margin-top: 4px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.68); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 72px 0 48px;
}
.footer-brand .logo-mark.footer-mark { flex-shrink: 0; margin-bottom: 16px; }
.footer-word { color: #fff; font-size: 20px; margin-bottom: 16px; display: flex; }
.footer-word .logo-word-sub { color: rgba(255,255,255,0.55); }
.footer-brand p { margin-bottom: 8px; max-width: 40ch; font-size: 15px; }
.footer-region { color: rgba(255,255,255,0.5); font-size: 13.5px; }
.footer-heading {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  margin-bottom: 18px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-nav a, .footer-contact a { font-size: 15px; transition: color 0.2s var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .problem-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-inner { grid-template-columns: 1fr; gap: 32px; }
  .why-item { grid-template-columns: 1fr; gap: 8px; }
  .method-steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .method-step:nth-child(3) { border-right: none; }
  .work-card, .work-card:nth-child(even) { grid-template-columns: 1fr; }
  .work-card:nth-child(even) .work-card-visual, .work-card:nth-child(even) .work-card-body { order: initial; }
  .work-card-visual { min-height: 260px; }
  .work-card-body { padding: 32px 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 12px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .main-nav { display: none; }
  .header-actions .btn-small { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: none; }
  .mobile-nav.open { display: flex; }

  .hero { padding: 56px 0 64px; }

  .problem, .method, .services, .build, .work, .why, .about, .cta-final { padding: 64px 0; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .service-index { padding-top: 0; }

  .method-steps { grid-template-columns: 1fr; }
  .method-step { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .method-step:last-child { border-bottom: none; }

  .footer-inner { grid-template-columns: 1fr; padding: 56px 0 32px; }
  .cta-final-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
}

/* ==========================================================================
   Case study pages (work/*.html)
   ========================================================================== */
.case-hero { padding: 56px 0 0; }
.case-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.case-breadcrumb a { color: var(--purple); border-bottom: 1px solid transparent; }
.case-breadcrumb a:hover { border-color: var(--purple); }
.case-hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 18px; max-width: 18ch; }
.case-lede { font-size: 18px; color: var(--ink-soft); max-width: 62ch; margin-bottom: 32px; }

.case-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.case-meta span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--purple);
  background: var(--purple-tint);
  border: 1px solid var(--purple-tint-strong);
  padding: 8px 14px;
  border-radius: 8px;
}

.case-shot-hero {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.case-shot-hero img { width: 100%; }

.case-section { padding: 72px 0; border-top: 1px solid var(--line); }
.case-section:nth-of-type(even) { background: var(--paper-soft); }
.case-section-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0 0 14px;
}
.case-section h2 { margin-bottom: 20px; max-width: 32ch; }

.case-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.case-two-col p { color: var(--ink-soft); margin-bottom: 14px; }
.case-two-col p:last-child { margin-bottom: 0; }

.case-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.case-module-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.case-module-card h4 { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.case-module-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.case-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
}
.case-gallery img { width: 100%; display: block; }
.case-gallery figcaption {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.case-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.case-step { padding: 28px 20px 0 0; border-right: 1px solid var(--line); }
.case-step:last-child { border-right: none; padding-right: 0; }
.case-step .step-number { display: inline-block; font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--green-deep); border-top: 2px solid var(--green-deep); padding-top: 12px; margin-top: -2px; margin-bottom: 16px; width: 32px; }
.case-step h4 { font-family: var(--font-serif); font-size: 17px; font-weight: 500; margin: 0 0 8px; }
.case-step p { font-size: 14.5px; color: var(--ink-soft); }

.case-stack-row { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; align-items: baseline; }
.case-stack-row:last-child { margin-bottom: 0; }
.case-stack-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  width: 90px;
  flex-shrink: 0;
}
.case-stack-tags { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.case-tag { font-family: var(--font-mono); font-size: 13px; font-weight: 500; background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 6px; }

.case-story { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; margin-bottom: 16px; background: var(--paper); }
.case-story:last-child { margin-bottom: 0; }
.case-story h4 { font-family: var(--font-sans); font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; }
.case-story h4 .case-num { font-family: var(--font-mono); color: var(--purple); font-weight: 500; }
.case-story p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.case-story code { font-family: var(--font-mono); font-size: 0.92em; background: var(--paper-alt); padding: 1px 5px; border-radius: 4px; }

.case-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 22px 26px;
  border-radius: var(--radius-md);
}
.case-status .status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.case-status strong { font-size: 15.5px; display: block; }
.case-status span { display: block; font-size: 13.5px; color: rgba(255,255,255,0.6); margin-top: 2px; }

.case-cta { padding: 88px 0; text-align: left; }
.case-cta-inner { max-width: 600px; }
.case-cta h2 { margin-bottom: 16px; }

@media (max-width: 820px) {
  .case-two-col { grid-template-columns: 1fr; gap: 12px; }
  .case-steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .case-step:nth-child(2n) { border-right: none; }
  .case-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .case-section { padding: 48px 0; }
  .case-steps { grid-template-columns: 1fr; }
  .case-step { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .case-step:last-child { border-bottom: none; }
  .case-module-grid { grid-template-columns: 1fr; }
}
