/* Centre6 v2. Industrial-editorial dark: a charcoal ink field built from the
   brand #414141, one green accent (#85a614), grain texture, oversized
   Bricolage Grotesque display type, hairline green rules, and a single light
   "paper" interlude for the About section. Wordmark unchanged (Questrial). */

:root {
  --char-950: #1f1f1f;
  --char-900: #232323;
  --char-850: #262626;
  --char-800: #2b2b2b;
  --char-750: #2f2f2f;
  --char-700: #343434;
  --charcoal: #414141;          /* brand charcoal: surfaces + light-section ink */
  --green: #85a614;             /* brand green */
  --green-bright: #97bc17;
  --green-deep: #5f770d;        /* small-text green on light surfaces */
  --green-hair: rgba(133, 166, 20, 0.16);
  --green-hair-strong: rgba(133, 166, 20, 0.55);
  --paper: #f2f2ef;
  --paper-soft: #e9e9e4;
  --text: #ecece7;
  --text-soft: #b3b3ab;
  --text-faint: #93938c;
  --btn-ink: #171c04;
  --max: 78rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  --font-display: "Bricolage Grotesque", "Archivo", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --font-mono: "Fragment Mono", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--char-850);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--green); color: #171c04; }

a { color: inherit; }

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

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section { scroll-margin-top: 5.5rem; position: relative; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  max-width: 22ch;
  color: var(--text);
}

.tick { color: var(--green); }

/* wordmark (kept from v1) */
.wm { display: block; overflow: visible; }
.wm-text {
  font-family: "Questrial", "Century Gothic", "Futura", sans-serif;
  font-size: 34px;
  letter-spacing: -0.4px;
}
.wm-top { height: 30px; width: 118px; }
.wm-foot { height: 26px; width: 102px; }

/* skip link */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--btn-ink);
  font-weight: 600;
  padding: 0.6rem 1rem;
  z-index: 60;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------- top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(35, 35, 35, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--green-hair);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand { text-decoration: none; line-height: 0; }

.nav { display: flex; align-items: center; }

.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  margin-left: 1.8rem;
  padding: 0.35rem 0.05rem;
  transition: color 180ms var(--ease);
}
.nav a:hover { color: var(--green-bright); }

/* underline grow */
.nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms var(--ease);
}
.nav a:not(:last-child):hover::after,
.nav a:not(:last-child):focus-visible::after { transform: scaleX(1); }

.nav a:last-child {
  border: 1px solid var(--green-hair-strong);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  transition: background 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease);
}
.nav a:last-child:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--btn-ink);
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(168deg, #313131 0%, var(--char-850) 52%, var(--char-900) 100%);
  padding: clamp(4rem, 9vh, 7rem) 0 clamp(4rem, 8vh, 6.5rem);
}

/* green corner bleed */
.hero-bleed {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52rem 52rem at 90% -12%, rgba(133, 166, 20, 0.30), transparent 62%),
    radial-gradient(38rem 38rem at -8% 108%, rgba(133, 166, 20, 0.10), transparent 60%);
}

/* grain over the charcoal */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.08;
  mix-blend-mode: overlay;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(230px, 25vw, 330px);
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.mono-line {
  grid-column: 1 / -1;
  margin: 0 0 clamp(1.2rem, 3vh, 2.2rem);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.mono-sep { color: var(--green); }

.hero h1 {
  grid-column: 1 / -1;
  font-size: clamp(2.75rem, 12vw, 8.75rem);
  font-weight: 760;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.035em;
  line-height: 0.93;
  color: var(--text);
  margin: 0 0 clamp(1.6rem, 4vh, 2.8rem);
  max-width: 100%;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.10em;
  margin-bottom: -0.10em;
}
.hero h1 .line-inner {
  display: inline-block;
  transform-origin: left bottom;
}

.hero-copy { grid-column: 1; }

.sub {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.62;
  color: var(--text-soft);
  max-width: 38rem;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  margin-top: 2.3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--btn-ink);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: 0.005em;
  padding: 1.05rem 2.15rem;
  border-radius: 999px;
  transition: background 200ms var(--ease), box-shadow 200ms var(--ease);
  will-change: transform;
}
.btn:hover {
  background: var(--green-bright);
  box-shadow: 0 10px 34px -10px rgba(133, 166, 20, 0.55);
}
.btn-label { display: inline-block; pointer-events: none; }

.quiet {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  position: relative;
  padding: 0.35rem 0 0.3rem;
}
.quiet::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--green);
  transform-origin: left center;
  transition: transform 240ms var(--ease);
}
.quiet:hover { color: var(--green-bright); }
.quiet:hover::after { transform: scaleX(1.0) scaleY(1.5); }

/* portrait: right column, pulled up into the whitespace right of the last
   display line. 4:5 crop from the square source via object-fit. */
.hero-photo {
  grid-column: 2;
  grid-row: 3;
  position: relative;
  margin: -3.25rem 0 0;
  z-index: 1;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 4px;
  border: 1px solid rgba(133, 166, 20, 0.35);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  background: linear-gradient(140deg, rgba(133, 166, 20, 0.55), rgba(133, 166, 20, 0.08));
  border-radius: 6px;
  z-index: -1;
}
.mono-caption {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.mono-caption::before { content: "/ "; color: var(--green); }

/* hero entrance. CSS-only, wipe by masked translate: the type is NEVER at
   opacity 0, and with reduced motion nothing moves at all. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line-inner {
    transform: translateY(112%) rotate(2deg);
    animation: wipe 950ms calc(120ms + var(--i, 0) * 130ms) var(--ease) forwards;
  }
  @keyframes wipe {
    to { transform: translateY(0) rotate(0deg); }
  }
  .mono-line, .sub, .cta-row, .hero-photo {
    opacity: 0.25;
    transform: translateY(14px);
    animation: rise 700ms var(--ease) forwards;
  }
  .mono-line { animation-delay: 60ms; }
  .sub { animation-delay: 480ms; }
  .cta-row { animation-delay: 580ms; }
  .hero-photo { animation-delay: 320ms; }
  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ------------------------------------------------------------ sections */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--green);
}
.eyebrow-light { color: var(--green-deep); }

.section-intro {
  margin: 1.2rem 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 40rem;
}

/* scroll reveals: gated on .js so content is never hidden without JS */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------- bento grid */
.services { padding: clamp(5rem, 11vh, 8rem) 0; }

.bento {
  list-style: none;
  margin: 3.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.cell {
  border: 1px solid var(--green-hair);
  border-radius: 18px;
  background: linear-gradient(165deg, var(--char-800), var(--char-900));
  padding: 1.7rem 1.6rem 1.6rem;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease),
              background 240ms var(--ease);
}
.cell:hover {
  border-color: var(--green-hair-strong);
  transform: translateY(-4px);
}

.cell-wide { grid-column: span 2; }

.cell-feature {
  background:
    radial-gradient(28rem 20rem at 110% -20%, rgba(133, 166, 20, 0.16), transparent 65%),
    linear-gradient(165deg, var(--char-750), var(--char-900));
  padding: 2rem 1.9rem 1.9rem;
}

/* capability icons: custom inline line icons, bento grid only. Brand green,
   subtle structural break above each headline, not decoration. */
.cell-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 0 1.05rem;
  color: var(--green);
}
.cell-feature .cell-icon { width: 32px; height: 32px; }
.cell-icon svg { display: block; width: 100%; height: 100%; }

/* gentle stroke draw-in on cell reveal. Gated on .js (icons are always
   visible without JS) and skipped entirely under reduced motion. Every shape
   carries pathLength="100" so one dash value covers all of them. */
@media (prefers-reduced-motion: no-preference) {
  .js .cell[data-reveal] .cell-icon :is(path, rect, circle) {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
  }
  .js .cell[data-reveal].in .cell-icon :is(path, rect, circle) {
    animation: icon-draw 900ms var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 70ms + 140ms);
  }
  @keyframes icon-draw {
    to { stroke-dashoffset: 0; }
  }
}

.cell h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--text);
}
.cell-feature h3 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); }

.cell p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 34rem;
}

/* --------------------------------------------------------------- proof */
.proof {
  background: var(--char-950);
  padding: clamp(5rem, 11vh, 8rem) 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin: 3rem 0 0;
  border-top: 1px solid var(--green-hair);
  border-bottom: 1px solid var(--green-hair);
  padding: 2.2rem 0;
}

.stat { padding-left: 1.3rem; border-left: 2px solid var(--green); }

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 760;
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  letter-spacing: -0.02em;
  color: var(--green);
  line-height: 1.02;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 22rem;
}

/* sticky stacking case cards */
.stack {
  display: grid;
  gap: 1.4rem;
  margin-top: 3.4rem;
}

.case {
  position: sticky;
  top: calc(5.2rem + var(--i, 0) * 1.4rem);
  background: linear-gradient(170deg, var(--char-750), var(--char-800));
  border: 1px solid rgba(133, 166, 20, 0.22);
  border-radius: 20px;
  padding: clamp(1.7rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: start;
  will-change: transform, filter, opacity;
  box-shadow: 0 -14px 44px -22px rgba(0, 0, 0, 0.65);
}

.case-tag {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.case h3 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

.case-metric {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--green);
}

.case-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 38rem;
}

.honesty {
  margin: 3rem 0 0;
  font-size: 0.9rem;
  color: var(--text-faint);
  max-width: 46rem;
  border-top: 1px solid var(--green-hair);
  padding-top: 1.4rem;
}

/* ----------------------------------------------------------- verticals */
.verticals {
  padding: clamp(4.5rem, 9vh, 6.5rem) 0;
  border-top: 1px solid var(--green-hair);
}

.chips {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chips li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(133, 166, 20, 0.32);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  transition: border-color 200ms var(--ease), color 200ms var(--ease),
              transform 200ms var(--ease);
}
.chips li:hover {
  border-color: var(--green);
  color: var(--green-bright);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------- about */
.about {
  background: var(--paper);
  color: var(--charcoal);
  padding: clamp(5rem, 11vh, 8rem) 0;
}

.about h2 { color: #2c2c2c; }

.about-copy { margin-top: 2rem; max-width: 46rem; }
.about-copy p { margin: 0 0 1.2rem; font-size: 1.08rem; line-height: 1.7; }
.about-copy p:last-child { margin-bottom: 0; }

.certs-heading {
  margin: 3rem 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.certs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.certs li {
  border: 1px solid #d6d6cd;
  background: #ffffff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  color: var(--charcoal);
  transition: border-color 200ms var(--ease);
}
.certs li:hover { border-color: var(--green); }

.about ::selection { background: var(--green); color: #ffffff; }

/* ------------------------------------------------------------- contact */
.contact {
  background:
    radial-gradient(46rem 40rem at 108% 112%, rgba(133, 166, 20, 0.14), transparent 62%),
    var(--char-900);
  padding: clamp(5rem, 11vh, 8rem) 0 clamp(5.5rem, 12vh, 8.5rem);
}

.contact h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: none; }

.contact-form {
  margin-top: 2.6rem;
  max-width: 34rem;
  display: grid;
  gap: 1.35rem;
}

.field { display: grid; gap: 0.45rem; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9b9b1;
}
.field .opt { color: var(--text-faint); text-transform: none; letter-spacing: 0.02em; }

.field input,
.field textarea {
  width: 100%;
  background: var(--char-750);
  border: 1px solid #4a4a4a;
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.85rem 1rem;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.field textarea { resize: vertical; min-height: 8.5rem; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(133, 166, 20, 0.25);
}

/* honeypot: off-canvas, inert to humans and screen readers */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn { justify-self: start; margin-top: 0.4rem; }
.contact-form .btn[disabled] { opacity: 0.55; cursor: default; box-shadow: none; }

.form-status { margin-top: 1.6rem; max-width: 34rem; }
.form-status p {
  margin: 0;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: 0.98rem;
}
.form-status.ok p {
  background: rgba(133, 166, 20, 0.14);
  border: 1px solid rgba(133, 166, 20, 0.5);
  color: var(--text);
}
.form-status.err p {
  background: rgba(214, 116, 73, 0.12);
  border: 1px solid rgba(214, 116, 73, 0.55);
  color: var(--text);
}
.form-status a { color: var(--green-bright); font-weight: 600; }

.contact-alt { margin: 2.4rem 0 0; font-size: 0.95rem; color: var(--text-soft); }
.contact-alt a {
  color: var(--text);
  font-weight: 600;
  text-decoration-color: var(--green);
  text-underline-offset: 3px;
}
.contact-alt a:hover { color: var(--green-bright); }

/* -------------------------------------------------------------- footer */
.foot {
  background: var(--char-950);
  color: var(--text-faint);
  border-top: 1px solid var(--green-hair);
  padding: 3.4rem 0 2.2rem;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.foot-brand p { margin: 1rem 0 0; font-size: 0.9rem; max-width: 24rem; }

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}

.foot-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 0.15rem;
  align-self: flex-end;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}
.foot-links a:hover { color: var(--green-bright); border-color: var(--green); }

.foot-legal {
  margin-top: 2.4rem;
  border-top: 1px solid #333333;
  padding-top: 1.2rem;
}
.foot-legal p { margin: 0; font-size: 0.82rem; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 1.6rem; }
  .case { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { grid-column: 1; }
  .hero-copy { grid-column: 1; }
  .hero-photo {
    grid-column: 1;
    grid-row: auto;
    margin: 3rem 0 0;
    max-width: 24rem;
  }
}

@media (max-width: 640px) {
  .nav a { margin-left: 0.9rem; }
  .nav a:not(:last-child) { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell-wide { grid-column: auto; }
  .foot-links { text-align: left; }
  .foot-links a { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .cell, .chips li, .case, .nav a, .quiet, .certs li { transition: none; }
  .case { position: static; }
}
