/* ==========================================================================
   Portfolio — shared stylesheet
   Plain CSS, no build step. System font stack only (no external requests).
   ========================================================================== */

:root {
  --bg: #0b0d11;
  --bg-elevated: #14171d;
  --bg-elevated-2: #1a1e25;
  --border: #272c34;
  --border-soft: #1e222a;
  --text: #f2f1ec;
  --text-muted: #9aa0ac;
  --text-faint: #666d79;
  --accent: #e7b24b;
  --accent-hover: #f2c471;
  --accent-text: #14120a;
  --success: #6fbf8b;

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", Times, serif;

  --container: 1120px;
  --radius: 10px;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  display: block;
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------------------------------- Header / Nav ---------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 17, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.site-logo:hover { color: var(--text); text-decoration: none; }
.site-logo span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

.site-nav a.is-active { color: var(--text); }

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 96px;
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* ---------------------------------- Homepage: Hero ---------------------------------- */

.hero {
  padding: 96px 0 72px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  max-width: 15ch;
}

.hero .lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 32px;
}

/* ---------------------------------- What I Build ---------------------------------- */

.build-section {
  padding: 8px 0 88px;
}

.build-section .section-head {
  margin-bottom: 24px;
}

.build-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.build-list li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.build-list li::before {
  content: "\2192";
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
}

/* ---------------------------------- Project index cards ---------------------------------- */

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 28px;
}

.section-head .lede {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 60ch;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 0 96px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.project-card-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated-2);
  overflow: hidden;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-body .eyebrow { margin-bottom: 8px; }

.project-card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.project-card-body p {
  color: var(--text-muted);
  font-size: 14.5px;
  flex: 1;
}

.project-card-link {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.project-card:hover .project-card-link { color: var(--accent); }

.project-card-link::after { content: " \2192"; }

/* wraps the whole card in an anchor */
a.project-card { color: inherit; }
a.project-card:hover { text-decoration: none; }

/* ---------------------------------- Contact / CTA band ---------------------------------- */

.cta-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 { font-size: 30px; }

.cta-band .lede {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 50ch;
  margin: 0 auto 28px;
}

.cta-band .btn-row { justify-content: center; }

.contact-email {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------------------------------- Case study: proof-first hero ---------------------------------- */

.case-hero {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--border-soft);
}

.case-hero .eyebrow { margin-bottom: 14px; }

.case-hero h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  max-width: 22ch;
  margin-bottom: 14px;
}

.case-hero .dek {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 36px;
}

.product-block {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-soft);
}

.product-block:last-of-type { border-bottom: none; }

.product-block-head {
  margin-bottom: 28px;
}

.product-block-head h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.product-block-head .product-sub {
  color: var(--text-muted);
  font-size: 15px;
}

/* proof grid: video + supporting static ads */
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 8px;
}

.proof-primary {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.proof-primary video, .proof-primary img { width: 100%; display: block; }

.proof-secondary {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 22px;
}

.proof-still {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  position: relative;
}

.proof-still img { width: 100%; height: 100%; object-fit: cover; }

.proof-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 22px 14px 10px;
}

.view-full-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

.subsection-head {
  font-size: 18px;
  margin: 40px 0 16px;
}

/* ---------------------------------- Strategic rationale ---------------------------------- */

.rationale {
  margin-top: 48px;
}

.rationale h3 {
  font-size: 21px;
  margin-bottom: 18px;
}

.rationale-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.rationale-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.rationale-item .eyebrow {
  font-size: 12px;
  margin-bottom: 8px;
}

.rationale-item p {
  font-size: 15px;
  color: var(--text-muted);
}

.rationale-copy p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 72ch;
}

.rationale-copy strong { color: var(--text); }

/* ---------------------------------- Brand brief / asset disclosures (details/summary) ---------------------------------- */

.brand-brief, .asset-disclosure {
  margin: 8px 0 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 22px;
}

.asset-disclosure + .asset-disclosure { margin-top: 12px; }

.brand-brief summary, .asset-disclosure summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-brief summary::-webkit-details-marker,
.asset-disclosure summary::-webkit-details-marker { display: none; }

.brand-brief summary::after, .asset-disclosure summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.15s ease;
}

.brand-brief[open] summary::after, .asset-disclosure[open] summary::after { transform: rotate(45deg); }

.brand-brief-body {
  padding: 0 0 24px;
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
}

.script-text {
  white-space: pre-line;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

.script-text strong { color: var(--text); }

.case-note {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-faint);
  margin-bottom: 28px;
}

.brand-brief-body h4 {
  font-size: 15px;
  margin: 20px 0 8px;
}
.brand-brief-body h4:first-child { margin-top: 0; }

.brand-brief-body p, .brand-brief-body li {
  font-size: 14.5px;
  color: var(--text-muted);
}

.brand-brief-body ul { padding-left: 20px; margin: 0 0 1em; }

.case-section {
  padding: 64px 0;
}
.case-section.tight { padding: 0 0 64px; }

/* ---------------------------------- Responsive ---------------------------------- */

@media (max-width: 860px) {
  .project-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-secondary { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .rationale-grid { grid-template-columns: 1fr; }
  .build-list { grid-template-columns: 1fr; }
  .site-nav { gap: 18px; }
}

@media (max-width: 560px) {
  .hero { padding: 56px 0 48px; }
  .cta-band { padding: 56px 0; }
  .case-hero { padding: 40px 0 16px; }
  .product-block { padding: 44px 0; }
  .proof-secondary { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .site-logo { font-size: 17px; }
}
