/* Hallmark · design-system: design.md · genre: modern-minimal
 * macrostructure: Split Studio + featured evidence reel · Long Document (philosophy)
 * redesign: 2026-08 audit — featured + compact portfolio, no hover scale, quiet motion
 * Core motifs: Balanced Aperture + highway residue (static)
 * pre-emit critique: P4 H4 E4 S4 R5 V4
 */

:root {
  --stone: #F4F0E8;
  --paper: #FBF9F4;
  --carbon: #1D2321;
  --line: #B9B2A7;
  --yellow: #F2C200; /* sole signal / highway */
  --teal: #486F6A;
  --ink-soft: #D9D4CA;
  --ink-muted: #AAAFA9;
  --ink-subtle: #6D746F;
  --ink-rule-dark: #4A504D;

  --shell: 1200px;
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;
  --space-3xl: 112px;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Cinematic extensions */
  --aperture: #1D2321;
  --highway: #F2C200;
  --residue: rgba(29, 35, 33, 0.12);
  --frame-width: 54px; /* derived from mark */
}

/* Base */
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--carbon);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

/* Skip + SR */
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  transform: translateY(-160%);
  background: var(--carbon);
  color: var(--stone);
  padding: 10px 14px;
  z-index: 999;
  font-size: 13px;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Shell / Aperture container */
.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

/* Header — Masthead as frame */
.site-header {
  position: relative;
  z-index: 40;
  background: var(--stone);
  border-bottom: 1px solid var(--carbon);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 750;
  letter-spacing: .1em;
  text-decoration: none;
  font-size: 15px;
}
.brand img { display: block; }

/* Nav — chapter / reel feel */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.site-nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-cta {
  border-bottom: 2px solid var(--yellow);
  padding-bottom: var(--space-2xs);
  position: relative;
}

/* Menu button (mobile) */
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
}
.menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--carbon);
  margin: 5px auto;
}

/* Hero — Title Sequence / Aperture Entry */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  align-items: center;
  gap: var(--space-2xl);
  padding: 96px 0 132px;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 72px;
  width: min(18vw, 220px);
  height: min(12vw, 150px);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
  opacity: 0.6;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: clamp(54px, 7.2vw, 92px);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -.045em;
  max-width: 740px;
}
h2 {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.8vw, 66px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
}
h3 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.hero-lede {
  max-width: 690px;
  font-size: clamp(18px,2vw,22px);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* Buttons & links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--carbon);
  text-decoration: none;
  font-weight: 700;
  transition: background .15s ease, border-color .15s ease;
}
.button.primary {
  background: var(--carbon);
  color: var(--stone);
}
.button.primary:hover { background: var(--teal); border-color: var(--teal); }
.text-link {
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* Identity Stage — The Aperture / Projector Gate (static) */
.identity-stage {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 34px;
  position: relative;
  box-shadow: 0 0 0 1px var(--line) inset;
}
.identity-mark {
  display: block;
  width: 100%;
  overflow: visible;
}

/* Static highway residue (no animation) */
.highway-line {
  fill: none;
  stroke: var(--carbon);
  stroke-width: 28;
  stroke-linecap: butt;
  stroke-dasharray: 80 220;
  opacity: 0.12;
}

.identity-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Sections */
.section { padding-block: 110px; }
.section-dark {
  background: var(--carbon);
  color: var(--stone);
}
.section-accent {
  background: var(--paper);
}

/* Product grid — "Reel" or "Dailies" */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.product-card {
  border: 1px solid var(--line);
  padding: var(--space-lg);
  background: var(--paper);
  position: relative;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 42px; height: 42px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  pointer-events: none;
}
.product-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-subtle);
  margin-bottom: var(--space-2xs);
}
.product-meta {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.product-card h3 {
  margin-bottom: 10px;
}
.product-card p {
  font-size: 14.5px;
  line-height: 1.45;
  margin-bottom: var(--space-md);
}
.product-card a {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* Values / Pressures */
.values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.value-card {
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
}
.value-card span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--teal);
}
.value-card h3 {
  margin: 8px 0 6px;
}

/* About split */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* Longform / Philosophy pages */
.page-hero {
  padding: 72px 0 48px;
}
.longform {
  max-width: 680px;
}
.longform p, .longform li {
  font-size: 17px;
  line-height: 1.65;
}
.longform ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}
.longform li { margin-bottom: 0.45rem; }
.longform h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
  font-size: 1.05rem;
}
.longform code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.lede {
  font-size: 21px;
  line-height: 1.45;
  margin-bottom: var(--space-xl);
}
.pullquote {
  border-left: 3px solid var(--yellow);
  padding-left: var(--space-md);
  margin: var(--space-xl) 0;
  font-size: 19px;
  line-height: 1.4;
  font-family: var(--font-display);
}

/* Work list — sequences */
.work-list article {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--line);
}
.work-list article:first-child { border-top: none; }
.work-list .status {
  font-size: 12px;
  color: var(--ink-subtle);
  font-family: var(--font-mono);
  margin-top: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--carbon);
  padding: var(--space-xl) 0;
  font-size: 13px;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.footer-brand { font-weight: 700; letter-spacing: .08em; }
.footer-links { display: flex; gap: var(--space-md); align-items: center; }

/* Cinematic accents: recurring trace / highway rules */
.trace-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent);
  margin: var(--space-xl) 0;
}
.passage-divider {
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--yellow) 0,
    var(--yellow) 3px,
    transparent 3px,
    transparent 18px
  );
  opacity: 0.25;
  margin: var(--space-xl) 0;
}

/* Product detail pages */
.product-hero { padding-bottom: 32px; }
.product-detail { max-width: 720px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-xl);
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 80px; }
  .about-grid { grid-template-columns: 1fr; }
  .work-list article { grid-template-columns: 1fr; gap: var(--space-md); }
  .product-grid { grid-template-columns: 1fr; }
  .menu-button { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--stone);
    border-bottom: 1px solid var(--carbon);
    padding: var(--space-md);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .site-nav.is-open { display: flex; }
}

/* Subtle film grain / observational texture (very light, optional) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 25% 30%, rgba(0,0,0,0.015) 0.8px, transparent 1.5px),
    radial-gradient(circle at 70% 75%, rgba(0,0,0,0.01) 0.6px, transparent 1.2px);
  background-size: 3px 3px, 4px 4px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.6;
}
.shell, .section, header, footer { position: relative; z-index: 2; }

/* === Profound Cinematic Extensions (static motif only) ===
 * Motif lifecycle simplified: enclosure + static residue
 * Operations: ENCLOSE, DIVIDE
 * No labels. Effects only.
 */

/* Enclosure (aperture corners as active container) */
.enclosed {
  position: relative;
}
.enclosed::before,
.enclosed::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  pointer-events: none;
  opacity: 0.35;
}
.enclosed::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.enclosed::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Threshold crossing (static highway trace as divider) */
.threshold-cross {
  position: relative;
  height: 2px;
  margin: var(--space-xl) 0;
  background: repeating-linear-gradient(
    to right,
    var(--yellow) 0, var(--yellow) 2px,
    transparent 2px, transparent 14px
  );
  opacity: 0.18;
}
.threshold-cross.mutated {
  background: repeating-linear-gradient(
    to right,
    var(--line) 0, var(--line) 1px,
    transparent 1px, transparent 22px
  );
  opacity: 0.12;
  height: 1px;
}

/* Residue accumulation (traces build across the journey) */
.residue-accumulation {
  position: relative;
}
.residue-accumulation::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -12px;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--carbon) 0, var(--carbon) 1px,
    transparent 1px, transparent 28px
  );
  opacity: 0.07;
}

/* Product card as scene with mutated trace */
.product-card .scene-trace {
  position: absolute;
  bottom: 12px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--yellow) 0, var(--yellow) 2px,
    transparent 2px, transparent 18px
  );
  opacity: 0.12;
}
.product-card .scene-trace.mutated {
  background: repeating-linear-gradient(
    to right,
    var(--line) 0, var(--line) 1px,
    transparent 1px, transparent 26px
  );
  opacity: 0.08;
}

/* Values as pressure points (ritual cost / transformation) */
.value-card {
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
  position: relative;
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--yellow), transparent);
  opacity: 0.06;
}

/* Scroll journey residue (the frame persists while content mutates) */
.shell::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--carbon) 0, var(--carbon) 1px,
    transparent 1px, transparent 32px
  );
  opacity: 0.035;
  pointer-events: none;
}

/* Mercurial traces on product scenes and thresholds (static) */
.product-card .scene-trace.mercurial,
.threshold-cross.mercurial {
  background: repeating-linear-gradient(
    to right,
    #C8A800 0, #C8A800 1px,
    transparent 1px, transparent 24px
  );
  opacity: 0.09;
}
.product-card .scene-trace.mercurial {
  height: 1px;
}

/* === 2026-08 Redesign Additions (Split Studio / Evidence reel) ===
 * New structural rhythms for homepage evidence list and values.
 * Preserves all prior cinematic rules and tokens.
 */

/* Portfolio section heads (products vs skills) */
.portfolio-section-head {
  max-width: 52ch;
  margin-bottom: var(--space-xl);
}
.portfolio-section-head .eyebrow {
  margin-bottom: 8px;
}
.portfolio-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
}
.portfolio-section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.5;
}
.evidence-skills {
  border-top: 1px solid var(--line);
  padding-top: var(--space-2xl);
}

/* Evidence portfolio — featured lead + compact grid */
.evidence-feature {
  margin-top: var(--space-2xl);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}
.evidence-feature .evidence-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}
.evidence-feature .evidence-media {
  aspect-ratio: auto;
  min-height: 280px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.evidence-feature .evidence-body {
  padding: var(--space-xl);
  justify-content: center;
  gap: 10px;
}
.evidence-feature .evidence-title {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
}

.evidence-list {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}
.evidence-list-compact {
  gap: var(--space-md);
}
.evidence-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  min-height: 100%;
}
.evidence-item a.evidence-card,
.evidence-feature a.evidence-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}
.evidence-feature a.evidence-card {
  display: grid;
}
.evidence-item a.evidence-card:hover .evidence-title,
.evidence-item a.evidence-card:focus-visible .evidence-title,
.evidence-feature a.evidence-card:hover .evidence-title,
.evidence-feature a.evidence-card:focus-visible .evidence-title {
  color: var(--carbon);
}
.section-dark .evidence-item a.evidence-card:hover .evidence-title,
.section-dark .evidence-feature a.evidence-card:hover .evidence-title {
  color: var(--stone);
}
.evidence-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c100f;
  border-bottom: 1px solid var(--line);
}
.evidence-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.evidence-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-md);
  flex: 1;
}
.evidence-list-compact .evidence-body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  gap: 4px;
}
.evidence-meta {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}
.evidence-title,
.evidence-body h3,
.evidence-body h2 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  font-weight: 500;
}
.evidence-body p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-muted);
}
.evidence-status {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.evidence-cta {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  width: fit-content;
}

/* Dark evidence band: paper cards on carbon */
.section-dark .evidence-feature,
.section-dark .evidence-item {
  background: rgba(251, 249, 244, 0.04);
  border-color: rgba(244, 240, 232, 0.14);
}
.section-dark .evidence-meta { color: #7a9a94; }
.section-dark .evidence-body p { color: var(--ink-muted); }
.section-dark .evidence-status { color: var(--ink-subtle); }
.section-dark .evidence-title { color: var(--stone); }

.section-lede {
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: var(--space-xl);
}

/* Values as pressures (grid, cleaner) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--line);
  padding-top: var(--space-xl);
}
.value {
  position: relative;
}
.value-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--teal);
  display: block;
  margin-bottom: 6px;
}
.value h3 {
  margin-bottom: 6px;
}
.value p {
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* Hero split-studio refinements */
.hero.split-studio {
  padding-top: 72px;
  padding-bottom: 96px;
}

/* Mobile tightening for new structures */
@media (max-width: 900px) {
  .evidence-feature .evidence-card {
    grid-template-columns: 1fr;
  }
  .evidence-feature .evidence-media {
    min-height: 200px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .evidence-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }
}
@media (max-width: 820px) {
  .evidence-list {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .hero.split-studio {
    padding-top: 48px;
    padding-bottom: 72px;
  }
}

/* === Full repo sweep polish (2026-08) === */

/* Page hero consistency */
.page-hero {
  padding: 72px 0 48px;
}
.page-hero h1 {
  margin-bottom: 16px;
}

/* Product pages */
.product-hero .status {
  margin-top: 12px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-subtle);
}

.product-detail .split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.product-detail h2 {
  margin-top: 0;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}

.longform h2 {
  margin-top: var(--space-xl);
  margin-bottom: 8px;
}

/* Contact specific */
.contact-page .button {
  margin-top: 24px;
}

.placeholder-note {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-top: 8px;
}

/* Evidence status inside items */
.evidence-body .status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-subtle);
  margin: 8px 0;
}

@media (max-width: 820px) {
  .product-detail .split {
    grid-template-columns: 1fr;
  }
}
