:root {
  --black: #090909;
  --carbon: #0a0a0a;
  --graphite: #181818;
  --mid: #686868;
  --silver: #d8d8d8;
  --mist: #f1f1ef;
  --white: #fcfcfb;
  --line: #d6d6d3;
  --line-dark: #333;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1340px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body.dark-page { background: var(--carbon); color: var(--white); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[id] { scroll-margin-top: 88px; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; padding: 10px 14px; background: var(--white); color: var(--black); border: 2px solid var(--black); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Fieldcraft DNA: architectural pinstripes connect sections like routes through a system map. */
.has-pinstripes :is(.site-header, .hero, .transition, .section, .final-cta, .case-hero, .booking-main, .confirmation, .site-footer) {
  position: relative;
  isolation: isolate;
}
.has-pinstripes :is(.site-header, .hero, .transition, .section, .final-cta, .case-hero, .booking-main, .confirmation, .site-footer)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("fieldcraft-pinstripes.svg?v=2");
  background-repeat: no-repeat;
  background-position: center;
  background-size: max(1120px, 100vw) auto;
  opacity: .3;
}
.has-pinstripes :is(.site-header, .hero, .transition, .section, .final-cta, .case-hero, .booking-main, .confirmation, .site-footer) > * {
  position: relative;
  z-index: 1;
}
.has-pinstripes :is(.transition, .final-cta, .dark-page .site-header, .dark-page .booking-main, .dark-page .confirmation, .dark-page .site-footer)::before {
  filter: invert(1);
  opacity: .26;
}
.has-pinstripes .hero::before { background-position: center 18%; opacity: .34; }
.has-pinstripes .scope::before { background-position: center 74%; opacity: .24; }
.has-pinstripes .site-header::before,
.has-pinstripes .site-footer::before { background-size: max(1120px, 100vw) 700px; opacity: .18; }

.site-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.dark-page .site-header { border-color: var(--line-dark); }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { flex: 0 0 32px; width: 32px; height: 32px; filter: grayscale(1) brightness(0); }
.brand-wordmark { font-family: var(--body); font-size: 1rem; font-weight: 700; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.dark-page .brand img, .on-dark .brand img { filter: grayscale(1) brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 28px; font-size: .82rem; }
.nav a { text-decoration: none; }
.nav a:not(.button) { min-height: 44px; display: inline-flex; align-items: center; }
.nav a:not(.button):hover { text-decoration: underline; text-underline-offset: 5px; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--black); border-radius: 2px; background: var(--black); color: var(--white); font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease; }
.button:hover { background: var(--graphite); }
.button:active { transform: translateY(1px); }
.button.secondary { background: transparent; color: var(--black); }
.button.secondary:hover { background: var(--black); color: var(--white); }
.button.light { background: var(--white); color: var(--black); border-color: var(--white); }
.button.light:hover { background: var(--silver); }
.button.light.secondary { background: transparent; color: var(--white); border-color: var(--silver); }
.button[disabled] { opacity: .55; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.dark-page a:focus-visible, .dark-page button:focus-visible, .dark-page input:focus-visible, .dark-page select:focus-visible, .dark-page textarea:focus-visible, .on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: var(--white); }

.eyebrow { margin: 0 0 22px; font-size: .68rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.hero { min-height: 0; display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(40px, 4vw, 58px); padding: 52px 0 58px; }
.hero h1 { max-width: 560px; margin: 0; font-family: var(--display); font-size: clamp(4rem, 5.7vw, 5.8rem); font-weight: 600; line-height: .9; letter-spacing: -.045em; }
.hero-copy { max-width: 530px; margin: 30px 0 0; color: #444; font-size: 1rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-artifact { margin: 0; overflow: hidden; background: var(--mist); }
.hero-artifact img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-artifact figcaption { padding: 11px 0 0; color: var(--mid); font-size: .72rem; line-height: 1.5; }

.transition { background: var(--black); color: var(--white); }
.transition-inner { min-height: 360px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10vw; padding-block: 78px; }
.transition h2 { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 4.2vw, 4.2rem); font-weight: 600; line-height: .98; }
.transition p { max-width: 400px; margin: 20px 0 0; color: #bbb; line-height: 1.6; }
.transition-side + .transition-side { padding-left: 10vw; border-left: 1px solid var(--line-dark); }

.section { padding: clamp(82px, 10vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 54px; }
.section-title { max-width: 740px; margin: 0; font-family: var(--display); font-size: clamp(3rem, 5.4vw, 5.5rem); font-weight: 600; line-height: .92; letter-spacing: -.04em; }
.section-lede { max-width: 560px; margin: 0; color: var(--mid); line-height: 1.65; }

.offer-list { border-top: 1px solid var(--black); }
.offer-row { display: grid; grid-template-columns: 60px minmax(260px, .9fr) 1.1fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.offer-row > span { font-family: var(--display); font-size: 1.35rem; }
.offer-row h3 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3vw, 3.15rem); font-weight: 600; line-height: 1; }
.offer-row p { max-width: 560px; margin: 2px 0 0; color: var(--mid); line-height: 1.65; }

.scope { background: var(--mist); }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.scope-panel { padding: 38px 50px 12px 0; }
.scope-panel + .scope-panel { padding-left: 50px; border-left: 1px solid var(--line); }
.scope-panel h3 { margin: 0 0 24px; font-family: var(--display); font-size: 2rem; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 13px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

.work-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: end; }
.work-index { margin-top: 50px; border-top: 1px solid var(--black); }
.work-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 28px; align-items: center; min-height: 118px; border-bottom: 1px solid var(--line); text-decoration: none; }
.work-row strong { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3.5rem); font-weight: 600; }
.work-row span { color: var(--mid); line-height: 1.5; }
.work-row b { font-size: .78rem; text-decoration: underline; text-underline-offset: 5px; }

.faq-list { border-top: 1px solid var(--black); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 24px 4px; font-weight: 600; cursor: pointer; }
details p { max-width: 760px; margin: -4px 0 28px; color: var(--mid); line-height: 1.65; }

.final-cta { background: var(--black); color: var(--white); }
.final-cta-inner { min-height: 470px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.final-cta h2 { max-width: 900px; margin: 0; font-family: var(--display); font-size: clamp(3.6rem, 7vw, 7rem); font-weight: 600; line-height: .88; }
.final-cta p { max-width: 580px; margin: 26px 0 0; color: #bbb; line-height: 1.6; }
.final-cta .button { margin-top: 30px; }

.site-footer { padding: 32px 0 42px; border-top: 1px solid var(--line); color: var(--mid); font-size: .78rem; }
.dark-page .site-footer { border-color: var(--line-dark); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Case study */
.case-hero { padding: 86px 0 70px; }
.case-hero-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: center; }
.case-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(4rem, 7vw, 7rem); line-height: .88; font-weight: 600; }
.case-hero p { margin: 28px 0 0; color: var(--mid); line-height: 1.65; }
.media-frame { margin: 0; border: 1px solid var(--line); background: var(--white); }
.media-frame img { width: 100%; height: auto; }
.media-frame figcaption { padding: 14px 16px; color: var(--mid); font-size: .75rem; line-height: 1.5; }
.journey-map { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-dark); }
.journey-column { padding: clamp(30px, 5vw, 64px); }
.journey-column + .journey-column { background: var(--white); color: var(--black); }
.journey-column h3 { margin: 0 0 26px; font-family: var(--display); font-size: 2.8rem; }
.journey-step { padding: 16px 0; border-top: 1px solid currentColor; line-height: 1.45; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.showcase .wide { grid-column: 1 / -1; }
.proof-note { padding: 34px; border: 1px solid var(--line); background: var(--mist); }
.proof-note h3 { margin: 0 0 12px; font-family: var(--display); font-size: 2rem; }
.proof-note p { margin: 0; color: var(--mid); line-height: 1.6; }

/* Booking */
.booking-main { padding: clamp(56px, 8vw, 100px) 0 120px; }
.booking-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(48px, 8vw, 110px); align-items: start; }
.booking-copy { position: sticky; top: 42px; }
.booking-copy h1 { margin: 0; font-family: var(--display); font-size: clamp(4rem, 7vw, 7rem); line-height: .88; font-weight: 600; }
.booking-copy > p { max-width: 520px; margin: 28px 0 0; color: #b8b8b8; line-height: 1.65; }
.call-outline { margin-top: 42px; border-top: 1px solid var(--line-dark); }
.call-outline div { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.call-outline b { font-family: var(--display); font-size: 1.1rem; }
.call-outline span { color: #aaa; font-size: .88rem; line-height: 1.5; }
.fit-card { background: var(--white); color: var(--black); padding: clamp(26px, 4vw, 48px); }
.fit-card h2 { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 600; line-height: .95; }
.fit-card .intro { margin: 16px 0 34px; color: var(--mid); line-height: 1.55; }
.field { margin-top: 24px; }
.field label { display: block; margin-bottom: 9px; font-size: .8rem; font-weight: 700; }
.field select, .field textarea { width: 100%; border: 1px solid #888; border-radius: 0; background: var(--white); color: var(--black); padding: 14px; }
.field textarea { min-height: 130px; resize: vertical; }
.field-error { min-height: 20px; margin: 7px 0 0; color: #640000; font-size: .78rem; }
.form-status { min-height: 24px; margin-top: 18px; font-size: .82rem; line-height: 1.5; }
.fit-card [tabindex="-1"]:focus { outline: 3px solid var(--black); outline-offset: 4px; }
.fit-card .button { width: 100%; margin-top: 10px; }
.not-ready { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.not-ready h3 { margin: 0; font-family: var(--display); font-size: 2rem; }
.not-ready p { color: var(--mid); line-height: 1.6; }
.not-ready-links { display: flex; flex-wrap: wrap; gap: 10px; }
.calendar-shell { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 30px; }
.calendar-shell h3 { margin: 0 0 18px; font-family: var(--display); font-size: 2rem; }
.calendar-widget { min-width: 280px; height: 720px; overflow: hidden; }
[hidden] { display: none !important; }

.confirmation { min-height: calc(100dvh - 150px); display: grid; place-items: center; padding: 70px 0; }
.confirmation-inner { max-width: 820px; }
.confirmation h1 { margin: 0; font-family: var(--display); font-size: clamp(4rem, 9vw, 8rem); font-weight: 600; line-height: .86; }
.confirmation p { max-width: 620px; margin: 28px 0; color: #bbb; line-height: 1.65; }

@media (max-width: 900px) {
  .nav:not(.homepage-nav) a:not(.button) { display: none; }
  .hero, .case-hero-grid, .booking-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero-copy { max-width: 650px; }
  .hero-artifact { max-width: 760px; }
  .section-head, .work-intro { grid-template-columns: 1fr; align-items: start; }
  .offer-row { grid-template-columns: 50px 1fr; }
  .offer-row p { grid-column: 2; }
  .booking-copy { position: static; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 64px; }
  .nav { gap: 10px; }
  .nav .button { min-height: 44px; padding-inline: 13px; }
  .hero { min-height: 0; gap: 42px; padding: 52px 0 64px; }
  .hero h1, .booking-copy h1 { font-size: clamp(3.75rem, 19vw, 5.2rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .transition-inner, .scope-grid, .journey-map, .showcase { grid-template-columns: 1fr; }
  .transition-side + .transition-side { margin-top: 48px; padding: 48px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .section { padding: 76px 0; }
  .section-title { font-size: clamp(3rem, 15vw, 4.5rem); }
  .offer-row { grid-template-columns: 1fr; gap: 14px; }
  .offer-row p { grid-column: auto; }
  .scope-panel, .scope-panel + .scope-panel { padding: 30px 0; border-left: 0; }
  .scope-panel + .scope-panel { border-top: 1px solid var(--line); }
  .work-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .footer-inner { flex-direction: column; }
  .case-hero-grid { gap: 42px; }
  .showcase .wide { grid-column: auto; }
  .booking-main { padding-top: 44px; }
  .fit-card { margin-inline: -4px; }
  .calendar-widget { height: 780px; }
  .has-pinstripes :is(.site-header, .hero, .transition, .section, .final-cta, .case-hero, .booking-main, .confirmation, .site-footer)::before {
    background-size: 940px auto;
    opacity: .26;
  }
  .has-pinstripes :is(.transition, .final-cta, .dark-page .site-header, .dark-page .booking-main, .dark-page .confirmation, .dark-page .site-footer)::before { opacity: .23; }
}

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

/* Portfolio expansion */
.nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.page-hero { padding: clamp(64px, 8vw, 112px) 0 72px; }
.page-hero-copy { max-width: 980px; }
.page-hero h1 { max-width: 980px; margin: 0; font-family: var(--display); font-size: clamp(4rem, 8vw, 8rem); font-weight: 600; line-height: .86; letter-spacing: -.045em; }
.page-hero .hero-copy { max-width: 680px; }
.page-hero .hero-actions { margin-top: 32px; }

.label { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; border: 1px solid currentColor; border-radius: 2px; font-size: .67rem; font-weight: 700; letter-spacing: .09em; line-height: 1.35; text-transform: uppercase; }
.label.subtle { color: var(--mid); border-color: var(--line); }
.label.on-dark { color: var(--white); border-color: #666; }

.meta-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--black); border-bottom: 1px solid var(--line); }
.meta-item { min-width: 0; padding: 22px 24px 24px 0; }
.meta-item + .meta-item { padding-left: 24px; border-left: 1px solid var(--line); }
.meta-item dt { margin: 0 0 8px; color: var(--mid); font-size: .68rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.meta-item dd { margin: 0; font-size: .9rem; font-weight: 600; line-height: 1.45; }

.layer-list { border-top: 1px solid var(--black); }
.layer-row { display: grid; grid-template-columns: minmax(230px, .7fr) 1.3fr; gap: clamp(32px, 8vw, 120px); padding: 38px 0; border-bottom: 1px solid var(--line); }
.layer-row h3 { margin: 0; font-family: var(--display); font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 600; line-height: .95; }
.layer-row p { max-width: 650px; margin: 3px 0 0; color: var(--mid); font-size: 1.02rem; line-height: 1.65; }

.method-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--black); }
.method-step { position: relative; min-height: 190px; padding: 28px 26px 28px 0; border-bottom: 1px solid var(--line); }
.method-step + .method-step { padding-left: 26px; border-left: 1px solid var(--line); }
.method-step b { display: block; margin-bottom: 42px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.method-step p { margin: 0; color: var(--mid); font-size: .82rem; line-height: 1.55; }

.portfolio-list { border-top: 1px solid var(--black); }
.portfolio-row { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(280px, 1.2fr) minmax(190px, .65fr) auto; gap: 30px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.portfolio-row:hover .portfolio-name, .portfolio-row:focus-visible .portfolio-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.portfolio-name { font-family: var(--display); font-size: clamp(2rem, 3.2vw, 3.25rem); font-weight: 600; line-height: .95; }
.portfolio-transition { color: var(--mid); font-size: .92rem; line-height: 1.55; }
.portfolio-meta { display: grid; gap: 7px; }
.portfolio-meta span { font-size: .72rem; line-height: 1.4; }
.portfolio-link { font-size: .75rem; font-weight: 700; white-space: nowrap; }

.case-hero { padding: 68px 0 60px; }
.case-hero-grid { grid-template-columns: minmax(360px, 1fr) minmax(460px, 1fr); gap: clamp(42px, 5vw, 72px); }
.case-hero h1 { font-size: clamp(3.6rem, 5.1vw, 5.35rem); }
.case-hero .case-summary { max-width: 610px; }
.case-hero .media-frame img { aspect-ratio: 16 / 9; object-fit: cover; }
.case-hero .media-frame.tall img { aspect-ratio: 3 / 2; object-position: top; }
.case-hero .artifact-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-hero .flow-node { min-height: 100px; }
.case-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.prose-grid { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(380px, 1.35fr); gap: clamp(48px, 10vw, 150px); align-items: start; }
.prose-grid h2 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 5vw, 5rem); font-weight: 600; line-height: .93; letter-spacing: -.035em; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 20px; color: var(--mid); font-size: 1.04rem; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }

.workflow-list { counter-reset: workflow; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--black); }
.workflow-list li { counter-increment: workflow; display: grid; grid-template-columns: 72px minmax(180px, .7fr) 1.3fr; gap: 28px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.workflow-list li::before { content: counter(workflow, decimal-leading-zero); font-family: var(--display); font-size: 1.3rem; }
.workflow-list strong { font-size: .96rem; line-height: 1.5; }
.workflow-list span { color: var(--mid); font-size: .9rem; line-height: 1.6; }

.decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--black); }
.decision { min-height: 180px; padding: 30px 42px 32px 0; border-bottom: 1px solid var(--line); }
.decision:nth-child(even) { padding-left: 42px; border-left: 1px solid var(--line); }
.decision h3 { margin: 0 0 14px; font-family: var(--display); font-size: 2rem; font-weight: 600; }
.decision p { margin: 0; color: var(--mid); line-height: 1.65; }

.flow-diagram { padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line-dark); background: var(--carbon); color: var(--white); }
.flow-diagram h3 { margin: 0 0 28px; font-family: var(--display); font-size: 2.4rem; font-weight: 600; }
.artifact-flow { display: grid; grid-template-columns: repeat(8, minmax(90px, 1fr)); gap: 10px; align-items: stretch; }
.flow-node { display: flex; flex-direction: column; justify-content: space-between; min-height: 128px; padding: 15px; border: 1px solid #484848; }
.flow-node strong { font-size: .8rem; line-height: 1.35; }
.flow-node small { color: #aaa; font-size: .68rem; line-height: 1.4; }
.flow-node.artifact { background: var(--white); color: var(--black); border-color: var(--white); }
.flow-node.artifact small { color: var(--mid); }
.flow-note { margin: 24px 0 0; color: #b9b9b9; font-size: .82rem; line-height: 1.6; }

.reference-interface { border: 1px solid var(--line); background: var(--mist); }
.reference-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); background: var(--white); }
.reference-bar strong { font-family: var(--display); font-size: 1.25rem; }
.reference-bar span { color: var(--mid); font-size: .72rem; }
.reference-grid { display: grid; grid-template-columns: .72fr 1.45fr .83fr; min-height: 530px; }
.reference-panel { min-width: 0; padding: 22px; }
.reference-panel + .reference-panel { border-left: 1px solid var(--line); }
.reference-panel h4 { margin: 0 0 18px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.reference-fields { display: grid; gap: 14px; }
.reference-field { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.reference-field b, .reference-field span { display: block; }
.reference-field b { margin-bottom: 5px; font-size: .72rem; }
.reference-field span { color: var(--mid); font-size: .72rem; line-height: 1.45; }
.task-stack { display: grid; gap: 10px; }
.task-node { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px; border: 1px solid var(--line); background: var(--white); }
.task-node strong { font-size: .78rem; }
.task-node span { color: var(--mid); font-size: .68rem; }
.task-node.current { border-color: var(--black); box-shadow: inset 4px 0 0 var(--black); }
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-list li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--mid); font-size: .69rem; line-height: 1.45; }
.approval-tray { margin-top: 20px; padding: 16px; border: 1px solid var(--black); background: var(--white); }
.approval-tray strong { display: block; margin-bottom: 7px; font-size: .78rem; }
.approval-tray p { margin: 0 0 12px; color: var(--mid); font-size: .7rem; line-height: 1.45; }
.reference-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.reference-action { padding: 7px 9px; border: 1px solid var(--black); font-size: .64rem; font-weight: 700; }
.mobile-tabs { display: none; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--white); }
.mobile-tabs span { padding: 13px 4px; border-right: 1px solid var(--line); text-align: center; font-size: .68rem; font-weight: 700; }
.mobile-tabs span:last-child { border-right: 0; }

.role-list { border-top: 1px solid var(--black); }
.role-row { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(260px, .75fr) 1.2fr; gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.role-row h3 { margin: 0; font-family: var(--display); font-size: 2.25rem; font-weight: 600; line-height: .95; }
.role-row p { margin: 0; color: var(--mid); line-height: 1.6; }
.role-row ul { margin: 0; padding-left: 18px; }
.role-row li { margin-bottom: 8px; color: var(--mid); font-size: .86rem; line-height: 1.5; }

.evidence-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.evidence-caption span { max-width: 680px; color: var(--mid); font-size: .75rem; line-height: 1.5; }
.evidence-caption b { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.showcase.single { grid-template-columns: 1fr; }
.showcase.single .media-frame img { width: 100%; }

.proof-boundary { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.proof-column { padding: clamp(28px, 4vw, 48px); }
.proof-column + .proof-column { border-left: 1px solid var(--line); background: var(--mist); }
.proof-column h3 { margin: 0 0 18px; font-family: var(--display); font-size: 2.35rem; font-weight: 600; }
.proof-column ul { margin: 0; padding-left: 18px; }
.proof-column li { margin-bottom: 10px; color: var(--mid); line-height: 1.55; }

.next-projects { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--black); }
.next-project { display: block; padding: 30px 30px 30px 0; text-decoration: none; }
.next-project + .next-project { padding-left: 30px; border-left: 1px solid var(--line); }
.next-project small { display: block; margin-bottom: 9px; color: var(--mid); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.next-project strong { font-family: var(--display); font-size: 2rem; font-weight: 600; }
.next-project:hover strong { text-decoration: underline; text-underline-offset: 6px; }

.compact-head { max-width: 820px; margin-bottom: 50px; }
.compact-head .section-title { margin-bottom: 22px; }
.compact-head .section-lede { max-width: 680px; }
.section.compact { padding-block: clamp(58px, 7vw, 94px); }
.section.dark-section { background: var(--carbon); color: var(--white); }
.section.dark-section .section-lede, .section.dark-section .prose p { color: #b9b9b9; }
.section.dark-section .workflow-list { border-color: var(--white); }
.section.dark-section .workflow-list li { border-color: var(--line-dark); }

@media (max-width: 1100px) {
  .artifact-flow { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .portfolio-row { grid-template-columns: minmax(220px, .8fr) 1.2fr auto; }
  .portfolio-meta { display: none; }
  .meta-strip { grid-template-columns: repeat(3, 1fr); }
  .meta-item:nth-child(4) { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
  .case-hero-grid, .prose-grid { grid-template-columns: 1fr; }
  .case-hero-grid { gap: 42px; }
  .method-flow { grid-template-columns: repeat(2, 1fr); }
  .method-step:nth-child(odd) { padding-left: 0; border-left: 0; }
  .method-step:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line); }
  .method-step:last-child { grid-column: 1 / -1; }
  .reference-grid { grid-template-columns: 1fr 1.4fr; }
  .reference-panel:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .role-row { grid-template-columns: minmax(190px, .65fr) 1.35fr; }
  .role-row ul { grid-column: 2; }
}

@media (max-width: 700px) {
  .page-hero { padding-top: 54px; }
  .page-hero h1 { font-size: clamp(3.8rem, 18vw, 5.6rem); }
  .meta-strip { grid-template-columns: 1fr 1fr; }
  .meta-item, .meta-item + .meta-item { padding: 18px 16px 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .meta-item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .meta-item:last-child { grid-column: 1 / -1; }
  .layer-row, .portfolio-row, .workflow-list li, .role-row { grid-template-columns: 1fr; gap: 14px; }
  .portfolio-row { padding: 28px 0; }
  .portfolio-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .workflow-list li::before { margin-bottom: 12px; }
  .decision-grid, .proof-boundary, .next-projects { grid-template-columns: 1fr; }
  .decision, .decision:nth-child(even) { min-height: 0; padding: 26px 0; border-left: 0; }
  .artifact-flow { grid-template-columns: 1fr; }
  .case-hero .artifact-flow { grid-template-columns: 1fr; }
  .case-hero h1 { font-size: clamp(3.25rem, 15vw, 4.4rem); }
  .flow-node { min-height: 104px; }
  .reference-grid { grid-template-columns: 1fr; }
  .mobile-tabs { display: grid; }
  .reference-panel + .reference-panel, .reference-panel:last-child { border-left: 0; border-top: 1px solid var(--line); }
  .role-row ul { grid-column: auto; }
  .proof-column + .proof-column, .next-project + .next-project { padding-left: 28px; border-left: 0; border-top: 1px solid var(--line); }
  .next-project, .next-project + .next-project { padding: 26px 0; }
}
