/* ============================================================
   Gautam Tech Group - styles.css
   Graphic showcase · Geist type · Ivory paper + forest green.
   The work is the hero. Typography stays out of the way.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper:        #F5F2E9;
  --paper-2:      #ECE7D7;
  --paper-3:      #E2DCC9;
  --ink:          #0A0A09;
  --ink-2:        #1E1D1A;
  --muted:        #5D5A53;
  --faint:        #8F8B7F;
  --rule:         #D5CEB9;
  --rule-soft:    #E3DDC9;

  --green:        #0F4030;
  --green-2:      #17614A;
  --green-3:      #2E8A68;
  --green-dark:   #0A2A1F;
  --green-soft:   rgba(15, 64, 48, 0.08);
  --green-on-dark:#2E8A68;

  --white:        #FFFFFF;
  --on-green:     #E8F0EA;

  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);

  /* Tap target floor for every interactive element. */
  --tap: 44px;

  /* Torn-paper system: irregular silhouette + soft fibre grain.
     The mask is a 1200x600 viewBox stretched via preserveAspectRatio='none'
     so it adapts to cards of any aspect ratio. Side edges are clean,
     top + bottom edges are hand-tuned tears (~10-12px amplitude). */
  --torn-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'><path d='M 0,12 L 28,5 L 56,11 L 86,3 L 114,9 L 144,4 L 172,10 L 202,6 L 232,11 L 260,3 L 290,9 L 318,5 L 348,11 L 376,4 L 406,10 L 434,3 L 464,9 L 492,6 L 522,11 L 550,4 L 580,10 L 608,3 L 638,9 L 666,5 L 696,11 L 724,4 L 754,10 L 782,3 L 812,9 L 840,6 L 870,11 L 898,4 L 928,10 L 956,3 L 986,9 L 1014,5 L 1044,11 L 1072,4 L 1102,10 L 1130,3 L 1160,9 L 1188,5 L 1200,8 L 1200,592 L 1188,595 L 1160,589 L 1130,597 L 1102,590 L 1072,596 L 1044,589 L 1014,595 L 986,591 L 956,597 L 928,590 L 898,596 L 870,589 L 840,594 L 812,591 L 782,597 L 754,590 L 724,596 L 696,589 L 666,595 L 638,591 L 608,597 L 580,590 L 550,596 L 522,589 L 492,594 L 464,591 L 434,597 L 406,590 L 376,596 L 348,589 L 318,595 L 290,591 L 260,597 L 232,589 L 202,594 L 172,590 L 144,596 L 114,591 L 86,597 L 56,589 L 28,595 L 0,588 Z' fill='black'/></svg>");

  --paper-grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='5' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04  0 0 0 0 0.04  0 0 0 0 0.04  0 0 0 0.45 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");

  --paper-grain-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.65  0 0 0 0 0.65  0 0 0 0 0.65  0 0 0 0.32 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, p, a, dd, dt, li, label {
  overflow-wrap: break-word;
  word-break: normal;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.06; }
p, dd, dt, dl { margin: 0; }

::selection { background: var(--green); color: var(--paper); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  border-radius: 0 0 6px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- Primitives ---------- */
.accent { color: var(--green); }

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--green);
  margin-bottom: 20px;
}
.kicker--light { color: var(--green-on-dark); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.005em;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-3);
  box-shadow: 0 0 0 0 rgba(46, 138, 104, 0.55);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 138, 104, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(46, 138, 104, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  min-height: var(--tap);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
  white-space: nowrap;
  touch-action: manipulation;
}
.btn--sm { padding: 11px 20px; min-height: 42px; font-size: 14.5px; }
.btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 15px 22px;
  font-size: 15px;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn--primary:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

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

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand__mark {
  width: 28px;
  height: 28px;
  color: var(--green);
  transition: transform .35s var(--ease), color .35s var(--ease);
  flex-shrink: 0;
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__name {
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: -0.02em;
}

.brand__tagline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-3, #2E8A68);
}
.brand__tagline-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  opacity: 0.7;
}

.nav__links {
  display: none;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
  padding: 8px 2px;
  position: relative;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__inner > .btn { display: none; }

.nav__toggle {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--rule);
  background: var(--paper);
  touch-action: manipulation;
}
.nav__toggle span {
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .28s var(--ease);
  transform-origin: center;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  left: 0;
  right: 0;
  top: 64px;
  height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px var(--gutter) calc(env(safe-area-inset-bottom, 0) + 24px);
  border-top: 1px solid var(--rule);
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 39;
}
.nav__mobile[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear 0s;
}
.nav__mobile a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 500;
  border-bottom: 1px solid var(--rule-soft);
  padding: 4px 2px;
}
.nav__mobile a:last-of-type { border-bottom: 0; }
.nav__mobile .btn {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  border-bottom: 0;
}
body.is-menu-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(40px, 8vw, 120px) 0 clamp(40px, 6vw, 88px);
}
.hero__meta { margin-bottom: 28px; }

.hero__title {
  font-size: clamp(30px, 9vw, 92px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
}
.hero__title .accent { color: var(--green); font-weight: 500; }

.hero__lede {
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero__lede strong {
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(46, 138, 104, 0.22) 62% 92%, transparent 92%);
  padding: 0 2px;
}

.hero__ctas {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero__ctas .btn { flex: 1 1 auto; }

.hero__stats {
  margin-top: clamp(44px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.stat {
  padding: 20px 16px 20px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.stat:last-child { border-right: 0; padding-right: 0; }
.stat + .stat { padding-left: 16px; }
.stat dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: -0.005em;
}
.stat dd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: "tnum", "ss01";
  line-height: 1.05;
}
.stat__unit {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.005em;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding: clamp(64px, 9vw, 140px) 0;
  position: relative;
}
.section--tint { background: var(--paper-2); }
.section--green {
  background: var(--green-dark);
  color: var(--on-green);
}

.section__head {
  max-width: 780px;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.section__title {
  font-size: clamp(30px, 5.4vw, 68px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--ink);
}
.section__title .accent { color: var(--green); }
.section--green .section__title { color: var(--on-green); }
.section__head--light .section__title { color: var(--on-green); }

.section__lede {
  margin-top: 20px;
  max-width: 58ch;
  font-size: clamp(15.5px, 1.15vw, 17px);
  color: var(--muted);
  line-height: 1.55;
}
.section__lede--light { color: rgba(232, 240, 234, 0.6); }

/* ============================================================
   WORK - the hero section
   ============================================================ */
.work { padding: 0 0 clamp(64px, 8vw, 120px); }
.work .section__head { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(32px, 5vw, 48px); margin-bottom: 0; }

.project {
  padding: clamp(40px, 6vw, 96px) 0;
  position: relative;
}
.project + .project { border-top: 1px solid var(--rule); }

.project__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.project__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project__num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: -0.005em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 6px;
}
.project__name {
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--ink);
}
.project__desc {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 46ch;
  margin-top: 4px;
}
.project__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-top: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.project__specs > div { display: flex; flex-direction: column; gap: 3px; }
.project__specs dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: -0.005em;
}
.project__specs dd {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.status {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.status__dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.status--live .status__dot { background: var(--green-3); box-shadow: 0 0 6px rgba(46, 138, 104, .5); }
.status--pilot .status__dot { background: #B38A2E; box-shadow: 0 0 6px rgba(179, 138, 46, .5); }

.project__visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 8px;
  min-height: var(--tap);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  padding: 10px 0;
  position: relative;
  touch-action: manipulation;
}
.project__visit::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.project__visit:hover { color: var(--green); }
.project__visit:hover::after { background: var(--green); transform: scaleX(0.6); }
.project__visit svg { transition: transform .3s var(--ease); }
.project__visit:hover svg { transform: translate(2px, -2px); }

/* ---------- Browser Frame with live iframe ---------- */
.frame {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 0 0 rgba(10, 10, 9, 0.03),
    0 10px 40px -24px rgba(10, 10, 9, 0.18),
    0 30px 90px -40px rgba(15, 64, 48, 0.18);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s var(--ease);
  color: var(--ink);
}
.frame:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow:
    0 1px 0 0 rgba(10, 10, 9, 0.04),
    0 16px 56px -24px rgba(10, 10, 9, 0.24),
    0 40px 120px -40px rgba(15, 64, 48, 0.30);
}
.frame:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.frame__chrome {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.frame__dots { display: flex; gap: 6px; }
.frame__dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rule);
  transition: background .3s var(--ease);
}
.frame:hover .frame__dots span:nth-child(1) { background: #E86A5F; }
.frame:hover .frame__dots span:nth-child(2) { background: #DFAA3A; }
.frame:hover .frame__dots span:nth-child(3) { background: #4FB85C; }

.frame__url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: center;
  padding: 4px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: -0.005em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frame__url svg { color: var(--green-3); flex-shrink: 0; }

.frame__expand {
  justify-self: end;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease), transform .3s var(--ease);
}
.frame:hover .frame__expand {
  color: var(--green);
  background: var(--green-soft);
  transform: translate(2px, -2px);
}

.frame__viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}

.frame__cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--green-dark);
  color: var(--on-green);
  transition: opacity .7s var(--ease);
  z-index: 2;
  overflow: hidden;
}
.frame__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 200px at 20% 10%, rgba(46, 138, 104, 0.32), transparent 60%),
    radial-gradient(500px 240px at 90% 90%, rgba(46, 138, 104, 0.22), transparent 60%);
  pointer-events: none;
}
.frame__cover::after {
  content: attr(data-cover-tag);
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--green-3);
  padding: 4px 10px;
  border: 1px solid rgba(46, 138, 104, 0.35);
  border-radius: 999px;
  background: rgba(15, 64, 48, 0.3);
}
.frame__cover-name {
  position: relative;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--on-green);
  text-align: center;
  padding: 0 24px;
  z-index: 1;
}
.frame.is-loaded .frame__cover { opacity: 0; pointer-events: none; }

.frame__shot {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border: 0;
  background: var(--white);
  transition: opacity .6s var(--ease);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.frame.is-loaded .frame__shot { opacity: 1; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.service {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.service:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.service--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.service--featured:hover { background: var(--ink-2); border-color: var(--green); }

.service__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}
.service__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-3);
  letter-spacing: -0.005em;
}
.service--featured .service__label { color: var(--green-3); }
.service__head h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.service--featured h3 { color: var(--paper); }

.service__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}
@media (min-width: 720px) {
  .service__desc { min-height: 96px; }
}
.service--featured .service__desc { color: rgba(245, 242, 233, 0.7); }

.service__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
.service--featured .service__specs { border-color: rgba(245, 242, 233, 0.14); }
.service__specs > div { display: flex; flex-direction: column; gap: 3px; }
.service__specs dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: -0.005em;
}
.service--featured .service__specs dt { color: rgba(245, 242, 233, 0.48); }
.service__specs dd { font-size: 14.5px; color: var(--ink); font-weight: 500; letter-spacing: -0.005em; }
.service--featured .service__specs dd { color: var(--paper); }

.service__cta {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.service--featured .service__cta { color: var(--paper); border-bottom-color: var(--paper); }
.service__cta:hover { color: var(--green); border-bottom-color: var(--green); transform: translateX(2px); }
.service--featured .service__cta:hover { color: var(--green-3); border-bottom-color: var(--green-3); }

.callout {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 22px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
}
.callout__mark {
  font-family: var(--font-mono);
  font-size: 36px;
  color: var(--green);
  line-height: 1;
}
.callout p { font-size: 16px; color: var(--ink-2); line-height: 1.65; max-width: 70ch; }
.callout strong { color: var(--ink); font-weight: 600; }
.callout__sub { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* ============================================================
   METHOD
   ============================================================ */
.method {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.method__step {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 0;
  position: relative;
}
.method__step:last-child { border-bottom: 0; }
.method__step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--green);
}

.method__day {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: -0.005em;
  margin-bottom: 16px;
}
.method__step h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.method__step p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.method__out {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  padding: 5px 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
}

/* ============================================================
   PRINCIPLES (green section)
   ============================================================ */
.section--green { position: relative; overflow: hidden; }
.section--green::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(46, 138, 104, 0.24), transparent 60%),
    radial-gradient(700px 500px at 95% 100%, rgba(46, 138, 104, 0.18), transparent 60%);
  pointer-events: none;
}
.section--green .container { position: relative; z-index: 1; }

/* ============================================================
   WORKSHOPS & SESSIONS
   ============================================================ */
.workshops {
  background: var(--paper-2);
  position: relative;
}
.workshops::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.4), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.4), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}
.workshops .container { position: relative; z-index: 1; }

.workshops__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.workshop {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.workshop:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -30px rgba(10, 10, 9, 0.4);
}
.workshop--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.workshop--dark:hover { background: var(--ink-2); border-color: var(--green); }

.workshop__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.workshop--dark .workshop__head { border-bottom-color: rgba(245, 242, 233, 0.14); }

.workshop__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.005em;
}
.workshop--dark .workshop__num { color: var(--green-3); }

.workshop__name {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.workshop--dark .workshop__name { color: var(--paper); }
.workshop__audience {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.workshop--dark .workshop__audience { color: rgba(245, 242, 233, 0.55); }

.workshop__desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.workshop--dark .workshop__desc { color: rgba(245, 242, 233, 0.7); }

.workshop__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.workshop__points li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.workshop--dark .workshop__points li {
  border-top-color: rgba(245, 242, 233, 0.08);
  color: var(--paper);
}
.workshop__points li:first-child { border-top: 0; padding-top: 0; }
.workshop__points li span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding-top: 2px;
}
.workshop--dark .workshop__points li span { color: var(--green-3); }

.workshop__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
.workshop--dark .workshop__specs { border-color: rgba(245, 242, 233, 0.14); }
.workshop__specs > div { display: flex; flex-direction: column; gap: 3px; }
.workshop__specs dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: -0.005em;
}
.workshop--dark .workshop__specs dt { color: rgba(245, 242, 233, 0.48); }
.workshop__specs dd {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.workshop--dark .workshop__specs dd { color: var(--paper); }

.workshop__ctas {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.workshop__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.workshop__cta:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-1px);
}
.workshop__cta svg { flex-shrink: 0; }
.workshop--dark .workshop__cta {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.workshop--dark .workshop__cta:hover {
  background: var(--green-3);
  border-color: var(--green-3);
  color: var(--ink);
}

.workshop__alt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: -0.005em;
  padding: 6px 8px;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.workshop__alt:hover { color: var(--green); border-bottom-color: var(--green); }
.workshop--dark .workshop__alt { color: rgba(245, 242, 233, 0.62); border-bottom-color: rgba(245, 242, 233, 0.18); }
.workshop--dark .workshop__alt:hover { color: var(--green-3); border-bottom-color: var(--green-3); }

/* --- Shared inclusions bar --- */
.workshops__included {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 32px);
}
.workshops__included-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.workshops__included-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.workshops__included-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
  line-height: 1.15;
}
.workshops__included-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.workshops__included-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
}
.workshops__included-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 2px 0;
}
.workshops__included-list strong {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.workshops__included-list span {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}

/* ============================================================
   THE FIELD FIVE - talent program (closes Workshops section)
   ============================================================ */
.fieldfive {
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--green-dark);
  color: var(--on-green);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  gap: clamp(28px, 3.6vw, 44px);
  position: relative;
  overflow: hidden;
}
.fieldfive::before {
  content: "5";
  position: absolute;
  right: -0.06em;
  top: -0.18em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(280px, 38vw, 520px);
  line-height: 1;
  color: rgba(46, 138, 104, 0.07);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}
.fieldfive__head { position: relative; max-width: 760px; }
.fieldfive__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-3);
  display: block;
  margin-bottom: 18px;
}
.fieldfive__title {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--on-green);
  margin: 0 0 18px;
  text-wrap: balance;
}
.fieldfive__title em {
  font-style: italic;
  color: var(--green-3);
  font-weight: 400;
}
.fieldfive__lede {
  font-size: clamp(15px, 1.4vw, 16.5px);
  color: rgba(232, 240, 234, 0.72);
  line-height: 1.65;
  max-width: 64ch;
  margin: 0;
}
.fieldfive__steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: clamp(28px, 3vw, 36px) 0 0;
  border-top: 1px solid rgba(232, 240, 234, 0.16);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}
.fieldfive__steps li {
  display: grid;
  gap: 8px;
}
.fieldfive__step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--green-3);
}
.fieldfive__steps h4 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--on-green);
  margin: 0;
  line-height: 1.15;
}
.fieldfive__steps p {
  font-size: 14.5px;
  color: rgba(232, 240, 234, 0.62);
  line-height: 1.6;
  margin: 0;
  max-width: 42ch;
}
.fieldfive__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid rgba(232, 240, 234, 0.16);
}
.fieldfive__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--on-green);
  background: rgba(46, 138, 104, 0.16);
  border: 1px solid rgba(46, 138, 104, 0.36);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-decoration: none;
  transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
  min-height: var(--tap);
}
.fieldfive__cta:hover {
  background: rgba(46, 138, 104, 0.28);
  border-color: var(--green-3);
  transform: translateX(2px);
}
.fieldfive__note {
  font-size: 13.5px;
  color: rgba(232, 240, 234, 0.55);
  font-style: italic;
}

/* ============================================================
   OPEN DOORS - acqui-hire · partnership · investor
   ============================================================ */
.opendoors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
}
.opendoor {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}
.opendoor:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}
.opendoor--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.opendoor--featured:hover { background: var(--ink-2); border-color: var(--green); }

.opendoor__head { display: flex; align-items: baseline; gap: 14px; }
.opendoor__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.02em;
}
.opendoor--featured .opendoor__num { color: var(--green-3); }
.opendoor__head h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
.opendoor--featured .opendoor__head h3 { color: var(--paper); }

.opendoor__desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}
.opendoor--featured .opendoor__desc { color: rgba(245, 242, 233, 0.7); }

.opendoor__specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  margin: 4px 0 0;
}
.opendoor--featured .opendoor__specs {
  border-color: rgba(245, 242, 233, 0.14);
}
.opendoor__specs > div { display: flex; flex-direction: column; gap: 3px; }
.opendoor__specs dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
  text-transform: uppercase;
}
.opendoor--featured .opendoor__specs dt { color: rgba(245, 242, 233, 0.48); }
.opendoor__specs dd {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
}
.opendoor--featured .opendoor__specs dd { color: var(--paper); }

.opendoor__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
  min-height: 30px;
}
.opendoor__cta:hover { color: var(--green); border-bottom-color: var(--green); transform: translateX(2px); }
.opendoor--featured .opendoor__cta { color: var(--paper); border-bottom-color: var(--paper); }
.opendoor--featured .opendoor__cta:hover { color: var(--green-3); border-bottom-color: var(--green-3); }

.opendoors__sig {
  margin: clamp(36px, 5vw, 60px) 0 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}
.opendoors__sig strong {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   TORN PAPER SYSTEM
   A modifier (.torn) that turns any rectangular card into an
   irregular paper-tear silhouette with subtle fibre grain.
   Applied to workshops, principles, included-aside, opendoors.
   Project tiles, services, hero, and the form stay clean -
   precision surfaces are stronger when not torn.
   ============================================================ */
.torn {
  position: relative;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-mask-image: var(--torn-mask);
          mask-image: var(--torn-mask);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  filter: drop-shadow(0 14px 28px rgba(10, 10, 9, 0.10))
          drop-shadow(0 2px 4px rgba(10, 10, 9, 0.04));
  /* Pad the visual edge inward so content never crosses the tear */
  padding-top: clamp(36px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
  transition: filter .35s var(--ease), transform .35s var(--ease);
}
.torn::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--paper-grain-light);
  background-size: 220px 220px;
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.torn > * { position: relative; z-index: 1; }

.torn:hover {
  filter: drop-shadow(0 22px 36px rgba(10, 10, 9, 0.16))
          drop-shadow(0 3px 6px rgba(10, 10, 9, 0.06));
  transform: translateY(-3px);
}

/* Dark cards: invert the grain so it reads as fibre on a dark page */
.torn--dark::after {
  background-image: var(--paper-grain-dark);
  mix-blend-mode: screen;
  opacity: 0.4;
}

/* --- Workshop cards: faint scattered-note rotation on tablet+ --- */
@media (min-width: 720px) {
  .workshops__grid > .torn:nth-child(1) { transform: rotate(-0.5deg); }
  .workshops__grid > .torn:nth-child(2) { transform: rotate(0.4deg); }
  .workshops__grid > .torn:nth-child(3) { transform: rotate(0.3deg); }
  .workshops__grid > .torn:nth-child(4) { transform: rotate(-0.4deg); }
  .workshops__grid > .torn:nth-child(1):hover { transform: rotate(-0.5deg) translateY(-3px); }
  .workshops__grid > .torn:nth-child(2):hover { transform: rotate(0.4deg) translateY(-3px); }
  .workshops__grid > .torn:nth-child(3):hover { transform: rotate(0.3deg) translateY(-3px); }
  .workshops__grid > .torn:nth-child(4):hover { transform: rotate(-0.4deg) translateY(-3px); }
}

/* --- workshops__included aside: drop the green left border for the
       torn variant (the tear silhouette is the visual identity now). --- */
.workshops__included.torn {
  border-left: 0 !important;
}

/* --- Principle cards: re-skin as cream paper notes on the dark
       forest section. This is the most striking application -
       cream tears pinned to ink-green. --- */
.principles--torn {
  background: transparent !important;
  border: 0 !important;
  gap: clamp(20px, 2.6vw, 32px) !important;
}
.principle.torn {
  background: var(--paper);
  color: var(--ink);
}
.principle.torn:hover {
  background: var(--paper); /* no tonal hover - lift via shadow only */
}
.principle.torn .principle__num { color: var(--green); }
.principle.torn h3 { color: var(--ink); }
.principle.torn p { color: var(--muted); }

/* --- Faint scattered-note rotation for principles on tablet+ --- */
@media (min-width: 720px) {
  .principles--torn > .torn:nth-child(1) { transform: rotate(-0.4deg); }
  .principles--torn > .torn:nth-child(2) { transform: rotate(0.3deg); }
  .principles--torn > .torn:nth-child(3) { transform: rotate(0.5deg); }
  .principles--torn > .torn:nth-child(4) { transform: rotate(-0.3deg); }
  .principles--torn > .torn:nth-child(1):hover { transform: rotate(-0.4deg) translateY(-3px); }
  .principles--torn > .torn:nth-child(2):hover { transform: rotate(0.3deg) translateY(-3px); }
  .principles--torn > .torn:nth-child(3):hover { transform: rotate(0.5deg) translateY(-3px); }
  .principles--torn > .torn:nth-child(4):hover { transform: rotate(-0.3deg) translateY(-3px); }
}

/* --- Open doors cards: keep the featured (ink) middle card;
       the torn silhouette replaces the card border. --- */
.opendoor.torn { padding: clamp(36px, 4vw, 52px) clamp(28px, 3vw, 40px); }

/* --- Reduced motion: drop rotations entirely --- */
@media (prefers-reduced-motion: reduce) {
  .workshops__grid > .torn,
  .principles--torn > .torn { transform: none !important; }
}

.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(232, 240, 234, 0.14);
  border: 1px solid rgba(232, 240, 234, 0.14);
}
.principle {
  background: var(--green-dark);
  padding: clamp(28px, 3vw, 44px);
  transition: background .3s var(--ease);
}
.principle:hover { background: rgba(15, 64, 48, 0.5); }
.principle__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-3);
  letter-spacing: -0.005em;
  margin-bottom: 20px;
}
.principle h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--on-green);
  line-height: 1.1;
}
.principle p {
  color: rgba(232, 240, 234, 0.62);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Credo: closing seal of the Principles section ---------- */
.credo {
  margin: clamp(72px, 11vw, 140px) auto 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(18px, 2.4vw, 28px);
  max-width: 920px;
  padding: 0 var(--gutter);
}
.credo__rule {
  width: 56px;
  height: 1px;
  background: rgba(232, 240, 234, 0.32);
}
.credo__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-3);
}
.credo__quote {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(38px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--on-green);
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.credo__quote em {
  font-style: italic;
  color: var(--green-3);
  font-weight: 400;
}
.credo__sig {
  margin-top: clamp(8px, 1.2vw, 14px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(232, 240, 234, 0.5);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.contact__side { display: grid; gap: 10px; }
.contact__row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  min-height: 64px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.contact__row:hover:not(.contact__row--static) {
  border-color: var(--green);
  background: var(--paper);
}
.contact__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: -0.005em;
}
.contact__value {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.contact__row:hover:not(.contact__row--static) .contact__value { color: var(--green); }
.contact__arrow {
  color: var(--faint);
  font-size: 16px;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.contact__row:hover:not(.contact__row--static) .contact__arrow {
  color: var(--green);
  transform: translate(2px, -2px);
}

/* Form */
.form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; line-height: 1.5; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' stroke='%230A0A09' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(15, 64, 48, 0.12);
}

.form__note {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  min-height: 1.2em;
}
.form__note.is-success { color: var(--green-2); }
.form__note.is-error { color: #A8380F; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 7vw, 96px) 0 28px;
}
.footer__inner { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 64px); }

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 80px);
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(245, 242, 233, 0.12);
}
.footer__brand .brand { color: var(--paper); }
.footer__brand .brand__mark { color: var(--green-3); }
.footer__brand .brand__name { font-size: 17px; }
.footer__tag {
  margin-top: 18px;
  font-size: 15px;
  color: rgba(245, 242, 233, 0.62);
  line-height: 1.55;
  max-width: 30ch;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.footer__cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--green-3);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.footer__cols a {
  font-size: 14.5px;
  color: rgba(245, 242, 233, 0.72);
  letter-spacing: -0.005em;
  transition: color .2s var(--ease);
}
.footer__cols a:hover { color: var(--paper); }

.footer__bar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(245, 242, 233, 0.42);
  letter-spacing: -0.005em;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
.reveal[data-delay="4"] { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE - mobile-first tiers
   Base styles above are sized for phones. The queries below
   PROGRESSIVELY ENHANCE the layout for tablets & desktops.
   Breakpoints:
     sm  >=  480px   large phone / small tablet portrait
     md  >=  720px   tablet portrait
     lg  >=  880px   tablet landscape / small desktop
     xl  >= 1100px   desktop
   ============================================================ */

/* ============================================================
   WORK - mobile & tablet card refinement ( < lg )
   Below 880px the editorial two-column layout folds. Instead of
   letting each project become a plain stack, we wrap it in an
   elevated card - frame first (the product is the hero), caption
   below. Matches the language of the Workshops section.
   ============================================================ */
@media (max-width: 1099px) {
  /* Keep the order consistent across all projects, flipped or not:
     FRAME first, META below. Desktop (>= 1100px) overrides with the
     alternating two-column flip. */
  .project__grid > .frame { order: 1; }
  .project__grid > .project__meta { order: 2; }
}

@media (max-width: 879px) {
  /* Remove the hairline separator between projects - the cards segment them now. */
  .project + .project { border-top: 0; }

  /* Tighter vertical rhythm, add a whisper of horizontal breathing so the
     card doesn't touch the viewport edge. */
  .project {
    padding: 10px var(--gutter);
  }
  .project:first-of-type { padding-top: 0; }
  .project:last-of-type { padding-bottom: 0; }

  /* Card visual on the existing .project__grid wrapper.
     .container supplies max-width/centering; we override its inline padding. */
  .project__grid {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 18px;
    gap: 18px;
    box-shadow:
      0 1px 0 0 rgba(10, 10, 9, 0.03),
      0 18px 40px -28px rgba(15, 64, 48, 0.18);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
  }
  /* Subtle lift when the card is actively interacted with - keeps the
     frame the primary focus without competing hover states. */
  .project__grid:focus-within {
    border-color: var(--ink);
    box-shadow:
      0 1px 0 0 rgba(10, 10, 9, 0.04),
      0 26px 56px -28px rgba(15, 64, 48, 0.28);
  }

  /* Frame: ditch its own shadow (the card provides depth) and flatten the hover. */
  .frame {
    box-shadow: none;
    border-color: var(--rule);
  }
  .frame:hover {
    transform: none;
    box-shadow: 0 10px 24px -18px rgba(15, 64, 48, 0.32);
  }

  /* Meta block: tight caption rhythm. */
  .project__meta { gap: 10px; }

  .project__num {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 10px 0;
    margin: 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 11.5px;
    color: var(--green);
    letter-spacing: 0;
  }
  .project__num::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule-soft);
  }

  .project__name {
    font-size: clamp(26px, 7.6vw, 40px);
    margin-top: 2px;
    line-height: 1.05;
  }
  .project__desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--muted);
    margin-top: 0;
    max-width: none;
  }

  .project__specs {
    margin-top: 10px;
    padding: 14px 0;
    gap: 12px 16px;
    border-top-color: var(--rule-soft);
    border-bottom-color: var(--rule-soft);
  }
  .project__specs dt { font-size: 10.5px; }
  .project__specs dd { font-size: 13.5px; }

  /* Visit CTA becomes a proper filled button on mobile.
     The editorial underline only reads well at desktop scale. */
  .project__visit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    min-height: var(--tap);
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-top: 6px;
    align-self: flex-start;
    transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease), color .22s var(--ease);
  }
  .project__visit::after { display: none; }
  .project__visit:hover,
  .project__visit:focus-visible {
    background: var(--green);
    border-color: var(--green);
    color: var(--paper);
    transform: translateY(-1px);
  }
  .project__visit svg { color: currentColor; transition: transform .22s var(--ease); }
  .project__visit:hover svg,
  .project__visit:focus-visible svg { transform: translate(2px, -2px); }
}

/* ----- Mobile defaults that only apply below sm ----- */
@media (max-width: 479px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }

  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats .stat { padding: 18px 12px 18px 0; }
  .hero__stats .stat + .stat { padding-left: 12px; }
  .hero__stats .stat:nth-child(1),
  .hero__stats .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .hero__stats .stat:nth-child(2) { border-right: 0; padding-right: 0; }
  .hero__stats .stat:nth-child(3) { padding-left: 0; }
  .hero__stats .stat:nth-child(4) { border-right: 0; padding-right: 0; }

  .project__specs { grid-template-columns: 1fr; gap: 12px; }
  .project__grid { padding: 14px; gap: 14px; border-radius: var(--radius); }
  .project { padding: 6px var(--gutter); }
  .project__name { font-size: clamp(24px, 8vw, 36px); }

  .frame__chrome {
    grid-template-columns: 52px 1fr 28px;
    padding: 9px 10px;
    gap: 8px;
  }
  .frame__dots span { width: 8px; height: 8px; }
  .frame__url { font-size: 10.5px; padding: 3px 10px; }
  .frame__viewport { aspect-ratio: 4 / 3; }
  .frame__cover-name { font-size: clamp(24px, 8vw, 40px); }

  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ----- sm: large phone and up ----- */
@media (min-width: 480px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .project__specs { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .workshops__included-list { grid-template-columns: repeat(2, 1fr); }
}

/* ----- md: tablet portrait and up ----- */
@media (min-width: 720px) {
  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero__stats .stat { border-bottom: 0 !important; }

  .services { grid-template-columns: repeat(3, 1fr); }
  .opendoors__grid { grid-template-columns: repeat(3, 1fr); }
  .workshops__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .workshops__included-list { grid-template-columns: repeat(3, 1fr); }
  .fieldfive__steps { grid-template-columns: repeat(3, 1fr); padding-top: clamp(28px, 3vw, 36px); }
  .fieldfive__steps li { padding-right: clamp(14px, 2vw, 24px); }
  .method { grid-template-columns: repeat(4, 1fr); }
  .method__step {
    padding: 36px 24px 36px 0;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
  }
  .method__step + .method__step { padding-left: 24px; }
  .method__step:last-child { border-right: 0; padding-right: 0; }

  .principles { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .contact__row { grid-template-columns: 110px 1fr auto; padding: 22px 24px; gap: 20px; }

  .footer__top { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.5fr); }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
  .footer__bar { flex-direction: row; align-items: center; }

  .callout { grid-template-columns: 64px 1fr; padding: 32px 40px; gap: 20px; }

  .workshops__included {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
  }
  .workshops__included-list { padding-top: 0; border-top: 0; }
}

/* ----- lg: tablet landscape / small desktop ----- */
@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__inner > .btn { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none; }

  .footer__cols { grid-template-columns: repeat(5, 1fr); gap: 20px; }
}

/* ----- xl: full two-column project tiles ----- */
@media (min-width: 1100px) {
  .project__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
  }
  .project--flip .project__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  }
  /* Only on desktop do we flip the visual order. Mobile stays consistent:
     meta first (num/name/desc), then frame, so reading order matches. */
  .project--flip .frame { order: -1; }
  .project--flip .project__meta { order: 0; }
}

/* ----- Fine guards for tiny viewports (<=340) ----- */
@media (max-width: 340px) {
  .hero__title { font-size: 30px; letter-spacing: -0.03em; }
  .project__name { font-size: 24px; }
  .section__title { font-size: 26px; }
  .brand__name { font-size: 14.5px; }
  .contact__row { grid-template-columns: 72px 1fr auto; gap: 10px; padding: 16px 16px; }
  .contact__label { font-size: 10.5px; }
  .contact__value { font-size: 14.5px; }
}

/* ----- Larger phones in landscape: wider frames ----- */
@media (min-width: 480px) and (max-width: 719px) {
  .frame__viewport { aspect-ratio: 16 / 10; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
