/*
Theme Name: GT-Industries
Theme URI: https://gtindustries.net/
Author: GT-Industries
Description: Project documentation theme for GT-Industries.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: gt-industries
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;1,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #101214;
  --ink-soft: #1a1d20;
  --paper: #eeeae1;
  --paper-bright: #f8f5ed;
  --muted: #a7a59f;
  --line: rgba(238, 234, 225, .18);
  --amber: #ffb629;
  --orange: #f36a2d;
  --blue: #76a8c7;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.skip-link { position: fixed; top: -80px; left: 18px; z-index: 100; padding: 12px 18px; background: var(--amber); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 18px; }

.site-header {
  height: 96px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { width: 51px; height: 51px; display: grid; place-items: center; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font: 700 21px/1 "Barlow Condensed", sans-serif; letter-spacing: .045em; }
.brand-name small { display: block; margin-top: 5px; color: var(--muted); font: 600 9px/1 Inter, sans-serif; letter-spacing: .18em; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.site-nav a { position: relative; padding: 13px 0; color: #c9c6bf; }
.site-nav a:hover, .site-nav .is-current { color: var(--paper-bright); }
.site-nav .is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; background: var(--amber); }
.site-nav .nav-youtube { padding: 12px 17px; border: 1px solid var(--line); }
.site-nav .nav-youtube:hover { background: var(--paper); color: var(--ink); }
.menu-toggle { display: none; }

.hero { max-width: var(--max); min-height: 720px; margin: 0 auto; padding: 56px 30px 72px; display: grid; grid-template-columns: minmax(0, .87fr) minmax(520px, 1.13fr); gap: 65px; align-items: center; }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.eyebrow span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border: 1px solid var(--line); color: var(--amber); letter-spacing: 0; }
.hero h1 { margin: 0; color: var(--paper-bright); font: 800 clamp(74px, 7vw, 118px)/.79 "Barlow Condensed", sans-serif; letter-spacing: -.045em; text-transform: uppercase; }
.hero h1 em { color: var(--amber); font-style: italic; }
.hero-lede { max-width: 610px; margin: 36px 0 34px; color: #bbb8b1; font-size: 17px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 19px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; transition: .2s ease; }
.button-primary { background: var(--amber); color: var(--ink); }
.button-primary:hover { background: var(--paper-bright); transform: translateY(-2px); }
.button-quiet { border: 1px solid var(--line); color: var(--paper); }
.button-quiet:hover { border-color: var(--paper); }

.hero-project { position: relative; min-height: 590px; overflow: hidden; background: #25282a; isolation: isolate; }
.hero-project::before, .project-image::before { content: ""; position: absolute; inset: 0; z-index: 2; border: 1px solid rgba(255,255,255,.14); pointer-events: none; }
.hero-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.74) contrast(1.08); transition: transform .6s ease; }
.hero-project:hover img { transform: scale(1.025); }
.project-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(9,11,12,.1), rgba(9,11,12,.1) 34%, rgba(9,11,12,.9)); }
.project-state, .project-number, .project-title, .project-meta { position: absolute; z-index: 3; }
.project-state { top: 24px; left: 24px; padding: 9px 11px; background: rgba(16,18,20,.86); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.project-state i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 99px; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,182,41,.16); }
.project-number { top: 25px; right: 25px; color: rgba(255,255,255,.8); font: 600 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; }
.project-title { left: 28px; right: 20px; bottom: 74px; color: white; font: 800 clamp(48px, 5vw, 86px)/.82 "Barlow Condensed", sans-serif; letter-spacing: -.035em; }
.project-meta { left: 29px; bottom: 29px; color: #d5d2cb; font: 600 10px/1.2 Inter, sans-serif; letter-spacing: .11em; }

.signal-bar { max-width: var(--max); margin: 0 auto; min-height: 78px; padding: 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr .8fr; align-items: center; gap: 30px; }
.signal-bar p { margin: 0; font: 600 10px/1.5 Inter, sans-serif; letter-spacing: .08em; color: #aaa7a1; }
.signal-bar span { display: block; color: var(--amber); margin-bottom: 4px; }

.section-shell { max-width: var(--max); margin: 0 auto; padding: 120px 30px; }
.section-heading { display: grid; grid-template-columns: .6fr 1.05fr .75fr; gap: 50px; align-items: end; margin-bottom: 54px; }
.section-heading .eyebrow { align-self: start; }
.section-heading h2, .bench h2, .youtube-cta h2 { margin: 0; color: var(--paper-bright); font: 700 clamp(48px, 4.8vw, 76px)/.94 "Barlow Condensed", sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
.section-heading > p:last-child { margin: 0; color: #a9a69f; font-size: 14px; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.project-card { background: var(--ink-soft); }
.project-image { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.68); transition: .4s ease; }
.project-card:hover .project-image img { transform: scale(1.025); filter: saturate(.9); }
.card-index { position: absolute; z-index: 3; right: 16px; bottom: 13px; color: white; font: 800 52px/1 "Barlow Condensed", sans-serif; }
.project-card-copy { padding: 29px 30px 33px; }
.tag-row { display: flex; gap: 10px; margin: 0 0 18px; }
.tag-row span { padding: 6px 8px; color: var(--amber); border: 1px solid rgba(255,182,41,.32); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.project-card h3 { margin: 0 0 16px; font: 700 clamp(28px, 2.8vw, 44px)/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.project-card h3 a:hover { color: var(--amber); }
.project-card-copy > p:not(.tag-row) { margin: 0 0 27px; color: #aaa7a1; font-size: 13px; line-height: 1.65; }
.text-link { color: var(--paper-bright); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid #54514b; padding-bottom: 5px; }
.text-link:hover { color: var(--amber); border-color: var(--amber); }

.bench { display: grid; grid-template-columns: .78fr 1.22fr; gap: 90px; border-top: 1px solid var(--line); }
.bench-list { border-top: 1px solid var(--line); }
.bench-list a { display: grid; grid-template-columns: 44px .8fr 1.3fr 22px; gap: 22px; align-items: center; min-height: 92px; border-bottom: 1px solid var(--line); transition: .2s; }
.bench-list a:hover { padding-left: 13px; background: rgba(255,255,255,.025); }
.bench-list span { color: var(--amber); font: 600 11px Inter, sans-serif; }
.bench-list strong { font: 700 27px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.bench-list small { color: #94918a; font-size: 12px; }
.bench-list b { color: var(--amber); }

.youtube-cta { max-width: var(--max); margin: 0 auto 70px; padding: 76px 30px; background: var(--paper); color: var(--ink); display: grid; grid-template-columns: 1fr .65fr; gap: 100px; }
.youtube-cta .eyebrow { color: #686762; }
.youtube-cta .eyebrow span { border-color: #c4c0b7; }
.youtube-cta h2 { color: var(--ink); }
.youtube-cta > div:last-child { align-self: end; }
.youtube-cta > div:last-child p { margin: 0 0 28px; color: #5d5c58; font-size: 14px; line-height: 1.75; }
.youtube-cta .button-primary:hover { background: var(--ink); color: var(--paper); }

.site-footer { max-width: var(--max); min-height: 220px; margin: 0 auto; padding: 46px 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr .8fr .8fr; grid-template-rows: 1fr auto; align-items: start; gap: 30px; }
.site-footer > p { margin: 16px 0; color: #96938d; font-size: 12px; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 22px; margin-top: 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.site-footer nav a:hover { color: var(--amber); }
.site-footer > small { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid var(--line); color: #77746e; font-size: 9px; letter-spacing: .08em; }

/* Project index */
.page-hero { min-height: 500px; padding-top: 90px; padding-bottom: 90px; display: grid; grid-template-columns: .48fr 1.52fr; gap: 70px; align-items: end; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { align-self: start; max-width: 250px; line-height: 1.6; }
.page-hero .eyebrow span { width: auto; padding: 0 8px; }
.page-hero h1 { margin: 0; color: var(--paper-bright); font: 800 clamp(74px, 9vw, 132px)/.79 "Barlow Condensed", sans-serif; letter-spacing: -.045em; text-transform: uppercase; }
.page-hero h1 em { color: var(--amber); font-style: italic; }
.page-hero > div > p { max-width: 650px; margin: 35px 0 0; color: #aaa7a1; font-size: 16px; line-height: 1.7; }
.project-directory { padding-top: 55px; }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.directory-toolbar > p { margin: 0; color: #8d8a84; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { padding: 9px 12px; border: 1px solid var(--line); background: transparent; color: #aaa7a1; font: 700 9px Inter, sans-serif; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.filter:hover, .filter.is-active { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.archive-project { padding: 48px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr); gap: 55px; }
.archive-project[hidden] { display: none; }
.archive-image { position: relative; min-height: 330px; overflow: hidden; }
.archive-image::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55)); }
.archive-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72); transition: .45s ease; }
.archive-image:hover img { transform: scale(1.025); filter: saturate(.95); }
.archive-image span { position: absolute; z-index: 2; right: 19px; bottom: 15px; font: 800 58px/1 "Barlow Condensed", sans-serif; }
.archive-copy { align-self: center; }
.archive-copy h2 { max-width: 720px; margin: 0 0 18px; color: var(--paper-bright); font: 700 clamp(41px, 4.5vw, 68px)/.92 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.archive-copy h2 a:hover { color: var(--amber); }
.archive-copy > p:not(.tag-row) { max-width: 680px; margin: 0 0 24px; color: #aaa7a1; font-size: 14px; line-height: 1.72; }
.archive-copy dl { margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.archive-copy dl div { padding: 14px 12px 14px 0; }
.archive-copy dt { margin-bottom: 5px; color: #74716b; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.archive-copy dd { margin: 0; color: #d6d2ca; font: 600 14px "Barlow Condensed", sans-serif; }

/* Project details */
.detail-hero { position: relative; min-height: 810px; max-width: var(--max); margin: 0 auto; overflow: hidden; isolation: isolate; }
.detail-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.68) contrast(1.08); }
.detail-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9,11,12,.97) 0%, rgba(9,11,12,.8) 47%, rgba(9,11,12,.12) 80%), linear-gradient(0deg, rgba(9,11,12,.9), transparent 38%); }
.detail-hero-copy { position: relative; z-index: 2; max-width: 900px; padding: 76px 38px 180px; }
.back-link { display: inline-block; margin-bottom: 70px; color: #b3b0a9; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.back-link:hover { color: var(--amber); }
.detail-hero h1 { margin: 0; font: 800 clamp(75px, 8.8vw, 132px)/.78 "Barlow Condensed", sans-serif; letter-spacing: -.045em; text-transform: uppercase; }
.detail-hero h1 em { color: var(--amber); font-style: italic; }
.detail-hero-copy > p:last-child { max-width: 650px; margin: 35px 0 0; color: #c6c2ba; font-size: 17px; line-height: 1.65; }
.detail-facts { position: absolute; z-index: 3; left: 38px; right: 38px; bottom: 34px; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(16,18,20,.92); border: 1px solid var(--line); }
.detail-facts div { padding: 19px 22px; border-right: 1px solid var(--line); }
.detail-facts div:last-child { border-right: 0; }
.detail-facts dt { margin-bottom: 7px; color: #74716b; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.detail-facts dd { margin: 0; font: 600 17px "Barlow Condensed", sans-serif; }
.story-intro { display: grid; grid-template-columns: .48fr 1.52fr; gap: 70px; }
.story-intro h2, .video-heading h2, .ledger-heading h2, .roadmap-heading h2, .workflow-heading h2, .tool-grid h2, .project-resources h2 { margin: 0 0 30px; color: var(--paper-bright); font: 700 clamp(48px, 5.2vw, 78px)/.91 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.story-intro h2 em { color: var(--amber); font-style: italic; }
.story-intro > div > p { max-width: 790px; margin: 0 0 20px; color: #aaa7a1; font-size: 15px; line-height: 1.82; }
.video-section { border-top: 1px solid var(--line); }
.video-heading { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; margin-bottom: 42px; }
.episode-status { min-width: 185px; padding: 22px; border: 1px solid var(--line); text-align: right; }
.episode-status span, .episode-status small { display: block; color: #8e8b84; font-size: 8px; letter-spacing: .13em; }
.episode-status strong { display: block; color: var(--amber); font: 700 35px "Barlow Condensed", sans-serif; }
.video-frame { position: relative; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.episode-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1px; background: var(--line); }
.episode-notes > div { padding: 38px; background: var(--ink-soft); }
.episode-notes h3 { margin: 0 0 17px; font: 700 30px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.episode-notes ul { margin: 0; padding-left: 18px; color: #aaa7a1; font-size: 13px; line-height: 1.9; }
.episode-notes p { color: #aaa7a1; font-size: 13px; line-height: 1.8; }
.ledger { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; border-top: 1px solid var(--line); }
.ledger-heading > p:last-child, .roadmap-heading > p:last-child { color: #99968f; font-size: 13px; line-height: 1.72; }
.ledger-table { align-self: start; border-top: 1px solid var(--line); }
.ledger-row { min-height: 64px; display: grid; grid-template-columns: 1.5fr .5fr .6fr .5fr; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); color: #b6b3ac; font-size: 12px; }
.ledger-row strong { justify-self: end; color: var(--paper); }
.ledger-head { min-height: 44px; color: #77746e; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.ledger-total { color: var(--paper); font-weight: 700; }
.ledger-total strong { color: var(--amber); font: 700 22px "Barlow Condensed", sans-serif; }
.series-roadmap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; border-top: 1px solid var(--line); }
.roadmap-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.roadmap-list li { display: grid; grid-template-columns: 70px 1fr; gap: 20px; min-height: 140px; padding: 28px 0; border-bottom: 1px solid var(--line); opacity: .58; }
.roadmap-list li.is-current { opacity: 1; }
.roadmap-list > li > span { color: var(--amber); font: 700 28px "Barlow Condensed", sans-serif; }
.roadmap-list small { color: var(--amber); font-size: 8px; letter-spacing: .13em; }
.roadmap-list h3 { margin: 7px 0 8px; font: 700 31px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.roadmap-list p { margin: 0; color: #a09d96; font-size: 12px; line-height: 1.65; }
.project-resources { display: grid; grid-template-columns: 1fr .7fr; gap: 80px; border-top: 1px solid var(--line); }
.resource-empty { padding: 34px; background: var(--ink-soft); align-self: start; }
.resource-empty > span { color: var(--amber); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.resource-empty p { margin: 14px 0 26px; color: #aaa7a1; font-size: 13px; line-height: 1.75; }
.safety-notice { padding-top: 32px; padding-bottom: 32px; display: grid; grid-template-columns: .35fr 1.65fr; gap: 40px; background: rgba(255,182,41,.08); border-top: 1px solid rgba(255,182,41,.25); border-bottom: 1px solid rgba(255,182,41,.25); }
.safety-notice strong { color: var(--amber); font: 700 21px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.safety-notice p { margin: 0; color: #b6b3ac; font-size: 12px; line-height: 1.75; }
.workflow { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; border-top: 1px solid var(--line); }
.workflow ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.workflow li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.workflow li > span { color: var(--amber); font: 700 24px "Barlow Condensed", sans-serif; }
.workflow h3 { margin: 0 0 7px; font: 700 28px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.workflow p { margin: 0; color: #a19e97; font-size: 12px; line-height: 1.7; }
.tool-grid { border-top: 1px solid var(--line); }
.tool-grid > div:first-child { display: grid; grid-template-columns: .5fr 1.5fr; gap: 60px; }
.tool-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; background: var(--line); }
.tool-cards article { padding: 28px; background: var(--ink-soft); }
.tool-cards small { color: var(--amber); font-size: 8px; letter-spacing: .12em; }
.tool-cards h3 { margin: 14px 0 10px; font: 700 27px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.tool-cards p { margin: 0; color: #98958e; font-size: 11px; line-height: 1.65; }

/* Downloads */
.download-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; padding-top: 55px; padding-bottom: 55px; }
.download-notice { padding: 28px; border: 1px solid rgba(255,182,41,.3); background: rgba(255,182,41,.06); }
.download-notice strong { color: var(--amber); font: 700 24px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.download-notice p { margin: 11px 0 0; color: #aaa7a1; font-size: 12px; line-height: 1.75; }
.repo-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.repo-summary div { padding: 26px 18px; border-right: 1px solid var(--line); text-align: center; }
.repo-summary div:last-child { border: 0; }
.repo-summary span { display: block; color: var(--paper-bright); font: 700 34px "Barlow Condensed", sans-serif; }
.repo-summary small { color: #7f7c76; font-size: 7px; letter-spacing: .11em; }
.download-library { padding-top: 0; }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 1px; background: var(--line); }
.download-card { padding: 34px; background: var(--ink-soft); }
.download-card[hidden] { display: none; }
.download-top { display: flex; justify-content: space-between; align-items: center; }
.file-type { display: inline-grid; place-items: center; width: 42px; height: 42px; background: var(--amber); color: var(--ink); font: 800 14px "Barlow Condensed", sans-serif; }
.download-top small { color: #7d7a74; font-size: 8px; letter-spacing: .12em; }
.download-card h2 { margin: 28px 0 10px; font: 700 39px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.download-card > p { margin: 0 0 25px; color: #9b9891; font-size: 12px; line-height: 1.68; }
.download-card dl { margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.download-card dl div { padding: 13px 8px 13px 0; }
.download-card dt { color: #706d68; font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.download-card dd { margin: 5px 0 0; color: #d2cfc7; font: 600 13px "Barlow Condensed", sans-serif; overflow-wrap: anywhere; }
.download-request { width: 100%; border: 0; font-family: inherit; cursor: pointer; }
.download-gate { width: min(560px, calc(100% - 32px)); padding: 42px; color: var(--paper); background: #111311; border: 1px solid rgba(255,182,41,.45); box-shadow: 0 24px 90px rgba(0,0,0,.72); }
.download-gate::backdrop { background: rgba(4,5,4,.84); backdrop-filter: blur(5px); }
.download-gate .gate-close { position: absolute; top: 15px; right: 17px; width: 38px; height: 38px; color: #aaa7a1; background: transparent; border: 1px solid var(--line); font-size: 25px; cursor: pointer; }
.download-gate h2 { margin: 24px 0 10px; font: 700 clamp(36px, 6vw, 54px)/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.gate-file { margin: 0; color: var(--amber); font-size: 12px; }
.gate-copy { margin: 24px 0; color: #aaa7a1; font-size: 13px; line-height: 1.7; }
.turnstile-wrap { min-height: 70px; margin-bottom: 22px; display: flex; align-items: center; }
.gate-continue { width: 100%; border: 0; cursor: pointer; }
.gate-continue:disabled { opacity: .38; cursor: wait; transform: none; }
.gate-status { min-height: 20px; margin: 14px 0 4px; color: #c9c6be; font-size: 12px; }
.gate-status.is-error { color: #ff8b69; }
.download-gate > small { display: block; margin-top: 12px; color: #6f6d67; font-size: 9px; line-height: 1.55; }
.licensing-note { margin-top: 34px; padding: 30px; border: 1px solid var(--line); }
.licensing-note strong { color: var(--paper); font: 700 22px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.licensing-note p { margin: 10px 0 0; color: #939089; font-size: 12px; line-height: 1.75; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .hero-project { min-height: 640px; }
  .section-heading { grid-template-columns: 1fr 1.4fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .project-grid { grid-template-columns: 1fr; }
  .bench { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 760px) {
  .site-header { height: 78px; padding: 0 18px; }
  .brand-mark { width: 40px; height: 40px; }
  .menu-toggle { display: block; border: 1px solid var(--line); background: transparent; color: var(--paper); padding: 9px 12px; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
  .site-nav { display: none; position: absolute; z-index: 20; left: 0; right: 0; top: 78px; padding: 24px 20px; background: var(--ink-soft); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 3px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 10px; }
  .site-nav .is-current::after { display: none; }
  .hero { min-height: 0; padding: 58px 18px 54px; gap: 42px; }
  .hero h1 { font-size: clamp(66px, 21vw, 96px); }
  .hero-lede { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-project { min-height: 470px; }
  .project-title { font-size: clamp(50px, 14vw, 72px); }
  .project-meta { right: 20px; line-height: 1.45; }
  .signal-bar { padding: 20px 18px; grid-template-columns: 1fr; gap: 18px; }
  .section-shell { padding: 82px 18px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 25px; }
  .project-card-copy { padding: 24px 20px 28px; }
  .bench-list a { grid-template-columns: 35px 1fr 20px; gap: 12px; }
  .bench-list small { grid-column: 2; margin: -25px 0 20px; }
  .youtube-cta { margin-bottom: 38px; padding: 58px 20px; grid-template-columns: 1fr; gap: 38px; }
  .site-footer { padding: 40px 18px; grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .site-footer > small { grid-column: 1; }
  .page-hero { min-height: 0; padding-top: 65px; padding-bottom: 65px; grid-template-columns: 1fr; gap: 28px; }
  .page-hero h1 { font-size: clamp(68px, 20vw, 98px); }
  .directory-toolbar { align-items: flex-start; flex-direction: column; }
  .archive-project { grid-template-columns: 1fr; gap: 28px; }
  .archive-image { min-height: 240px; }
  .archive-copy dl { grid-template-columns: 1fr; }
  .archive-copy dl div { border-bottom: 1px solid var(--line); }
  .detail-hero { min-height: 720px; }
  .detail-overlay { background: linear-gradient(0deg, rgba(9,11,12,.96), rgba(9,11,12,.45)); }
  .detail-hero-copy { padding: 55px 18px 230px; }
  .back-link { margin-bottom: 50px; }
  .detail-hero h1 { font-size: clamp(65px, 19vw, 92px); }
  .detail-facts { left: 18px; right: 18px; bottom: 18px; grid-template-columns: 1fr 1fr; }
  .detail-facts div { padding: 13px; border-bottom: 1px solid var(--line); }
  .story-intro, .ledger, .series-roadmap, .workflow, .project-resources { grid-template-columns: 1fr; gap: 38px; }
  .video-heading { grid-template-columns: 1fr; }
  .episode-status { width: 100%; text-align: left; }
  .episode-notes { grid-template-columns: 1fr; }
  .episode-notes > div { padding: 26px 20px; }
  .ledger-row { grid-template-columns: 1.2fr .45fr .55fr .5fr; font-size: 10px; }
  .safety-notice { grid-template-columns: 1fr; gap: 12px; }
  .tool-grid > div:first-child { grid-template-columns: 1fr; gap: 20px; }
  .tool-cards { grid-template-columns: 1fr 1fr; }
  .download-intro { grid-template-columns: 1fr; }
  .repo-summary { grid-template-columns: 1fr; }
  .repo-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { padding: 26px 20px; }
  .download-card dl { grid-template-columns: 1fr; }
}

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

/* WordPress content */
.project-body { max-width: 1000px; margin: 0 auto; padding: 100px 30px; color: #aaa7a1; font-size: 15px; line-height: 1.8; }
.project-body > * { max-width: 820px; }
.project-body > .alignwide { max-width: 1000px; }
.project-body > .alignfull { max-width: none; }
.project-body h2 { margin: 70px 0 24px; color: var(--paper-bright); font: 700 clamp(45px, 5vw, 72px)/.93 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.project-body h3 { margin: 45px 0 15px; color: var(--paper-bright); font: 700 34px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.project-body a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.project-body figure { margin: 42px 0; }
.project-body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.project-body .wp-block-embed { max-width: 1000px; }
.project-body .wp-block-table table { width: 100%; border-collapse: collapse; }
.project-body .wp-block-table td, .project-body .wp-block-table th { padding: 13px; border: 1px solid var(--line); }
.project-body .wp-block-file { padding: 18px; background: var(--ink-soft); }
.project-body .wp-block-file__button { background: var(--amber); color: var(--ink); border-radius: 0; text-decoration: none; }
.generic-page { max-width: 1000px; min-height: 55vh; margin: 0 auto; padding: 90px 30px; }
.generic-page h1 { font: 800 clamp(60px, 8vw, 100px)/.85 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.generic-page .entry-content { color: #aaa7a1; line-height: 1.8; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.admin-bar .site-header { margin-top: 0; }

@media (max-width: 760px) {
  .project-body, .generic-page { padding-left: 18px; padding-right: 18px; }
}
