/* ============================================================
   Brent Burelle — Portfolio styles (minimalist v2)
   Editorial. Typographic. Quiet chrome, loud work.
   ============================================================ */

:root {
  /* Color tokens — near-monochrome with a single restrained accent */
  --bg:          #FFFFFF;
  --bg-soft:     #FAFAF8;
  --ink:         #141414;
  --ink-soft:    #4A4A4A;
  --ink-mute:    #888888;
  --line:        #E5E2DC;
  --line-strong: #C9C5BD;
  --accent:      #B85C38;
  --accent-soft: #F3D9C7;

  --good:        #2E5A2C;
  --bad:         #8E3727;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Sizing */
  --sp-1:  6px;
  --sp-2:  10px;
  --sp-3:  16px;
  --sp-4:  26px;
  --sp-5:  42px;
  --sp-6:  68px;
  --sp-7:  110px;

  --maxw:  1100px;
  --maxw-prose: 680px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 20, "WONK" 0;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-3);
  color: var(--ink);
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
}
h3 { font-size: 1.2rem; font-weight: 500; }
h4 { font-size: 1rem; font-weight: 500; font-family: var(--font-body); }
p  { margin: 0 0 var(--sp-3); }
a  {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
strong { font-weight: 600; color: var(--ink); }
small  { font-size: .85em; color: var(--ink-mute); }
em { font-style: italic; }
code {
  font-family: var(--font-mono);
  font-size: .9em;
  padding: 1px 5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-4); }
.prose     { max-width: var(--maxw-prose); }
.section   { padding: var(--sp-6) 0; }
.section-lg{ padding: var(--sp-7) 0 var(--sp-6); }
.divider   { height: 1px; background: var(--line); border: 0; margin: var(--sp-5) 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-mark {
  font-family: var(--font-body);
  font-size: .96rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-mark:hover { color: var(--ink); }
.nav-links { display: flex; gap: var(--sp-4); align-items: center; }
.nav-links a {
  color: var(--ink-mute);
  font-size: .92rem;
  text-decoration: none;
  font-weight: 400;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: var(--sp-7) 0 var(--sp-5); }
.hero h1 {
  max-width: 18ch;
  margin-bottom: var(--sp-4);
}
.hero h1 em {
  font-style: italic;
  color: var(--ink);
}
.hero-lede {
  max-width: 58ch;
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: var(--sp-4);
  line-height: 1.55;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
  font-size: .92rem;
  color: var(--ink-mute);
}
.hero-meta a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.hero-meta a:hover { color: var(--ink); border-color: var(--ink); }
.hero-meta .sep { color: var(--line-strong); }
.hero-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; color: var(--ink-soft);
  margin-bottom: var(--sp-3);
}
.hero-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--good);
}

/* "Right now" ticker */
.now-ticker {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-soft);
  border-radius: 6px;
  border-left: 3px solid var(--ink);
  max-width: 58ch;
  display: flex; gap: var(--sp-3); align-items: center;
  font-size: .96rem;
  position: relative;
  overflow: hidden;
}
.now-ticker .label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex: 0 0 auto;
}
.now-ticker .label::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: ticker-pulse 2.2s ease-in-out infinite;
}
@keyframes ticker-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .35; transform: scale(.7); }
}
.now-ticker .rotator {
  color: var(--ink);
  flex: 1;
  position: relative;
  min-height: 1.6em;
}
.now-ticker .rotator span {
  position: absolute;
  inset: 0;
  display: flex; align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.now-ticker .rotator span.is-active {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .now-ticker .label::before { animation: none; }
  .now-ticker .rotator span { transition: none; }
}

/* ============================================================
   Section heads
   ============================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: var(--sp-3);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--sp-4);
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.section-head .right {
  font-size: .88rem;
  color: var(--ink-mute);
}

/* ============================================================
   Work list — editorial vertical sequence
   ============================================================ */
.work-list { list-style: none; padding: 0; margin: 0; }
.work-row {
  display: grid;
  grid-template-columns: 60px 1fr 280px;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s ease;
}
.work-row:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.work-row .num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink-mute);
  font-variation-settings: "SOFT" 0;
  font-weight: 400;
}
.work-row .body { min-width: 0; }
.work-row h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--ink);
}
.work-row .meta {
  font-size: .88rem;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.work-row .meta .sep { color: var(--line-strong); margin: 0 6px; }
.work-row .outcome {
  font-size: .98rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}
.work-row .thumb {
  width: 280px;
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.work-row .thumb img {
  max-height: 96%;
  width: auto;
  object-fit: contain;
}
.work-row .thumb.desktop img {
  max-width: 96%;
}
@media (max-width: 760px) {
  .work-row {
    grid-template-columns: 30px 1fr;
  }
  .work-row .thumb { display: none; }
  .work-row h3 { font-size: 1.35rem; }
}

/* Selected work — tighter list */
.selected-list { list-style: none; padding: 0; margin: 0; }
.selected-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1fr;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s ease;
}
.selected-row:hover { background: var(--bg-soft); }
.selected-row .num { color: var(--ink-mute); font-family: var(--font-display); font-size: 1rem; }
.selected-row h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.selected-row .scope {
  font-size: .92rem;
  color: var(--ink-soft);
  margin: 0;
}
.selected-row .meta {
  font-size: .82rem;
  color: var(--ink-mute);
  margin-top: 2px;
}
@media (max-width: 600px) {
  .selected-row { grid-template-columns: 30px 1fr; }
  .selected-row .scope { grid-column: 2; }
}

/* About snippet on homepage */
.about-snippet {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-5);
  align-items: start;
}
@media (max-width: 760px) { .about-snippet { grid-template-columns: 1fr; } }
.about-snippet .photo { overflow: hidden; }
.about-snippet .photo img { width: 100%; height: auto; display: block; }
.about-snippet h2 { max-width: 22ch; }

/* Footer */
.footer {
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: .88rem;
  margin-top: var(--sp-6);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3); }
.footer a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.footer a:hover { color: var(--ink); border-color: var(--ink); }
.footer .sep { color: var(--line-strong); margin: 0 6px; }

/* ============================================================
   Case study
   ============================================================ */
.cs-hero {
  padding: var(--sp-6) 0 var(--sp-4);
}
.cs-hero h1 { max-width: 20ch; margin-bottom: var(--sp-3); }
.cs-hero .tagline {
  max-width: 58ch;
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* Scan band — text-driven, no chips */
.scan-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--sp-5) 0;
}
@media (max-width: 700px) { .scan-band { grid-template-columns: 1fr; gap: var(--sp-4); } }
.scan-band .group h5 {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 var(--sp-2);
}
.scan-band .field {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  font-size: .94rem;
  align-items: baseline;
}
.scan-band .field .label {
  font-size: .8rem;
  color: var(--ink-mute);
  flex: 0 0 88px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.scan-band .field .value { color: var(--ink); }
.scan-band .field .value.good { color: var(--good); font-weight: 500; }
.scan-band .field .value.bad  { color: var(--bad);  font-weight: 500; }
.scan-band .field .value a { color: var(--ink); text-decoration-color: var(--line-strong); }

/* At-a-glance */
.glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin: var(--sp-5) 0;
  padding-top: var(--sp-4);
}
@media (max-width: 760px) { .glance { grid-template-columns: 1fr; gap: var(--sp-4); } }
.glance .item h5 {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 var(--sp-2);
}
.glance .item p {
  margin: 0;
  font-size: .98rem;
  color: var(--ink);
  line-height: 1.55;
}

/* Deep sections */
.cs-section { padding: var(--sp-5) 0; }
.cs-section h2 {
  margin-bottom: var(--sp-3);
  max-width: 28ch;
}
.cs-section h3 { margin-top: var(--sp-4); }
.cs-section p { max-width: var(--maxw-prose); color: var(--ink-soft); line-height: 1.65; }
.cs-section p strong { color: var(--ink); }

/* Decision callouts — quieter */
.callout {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-4);
  border-left: 2px solid var(--ink);
}
.callout h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--ink);
}
.callout p {
  margin: 0;
  font-size: .98rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Phone frame */
.phone-row {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  justify-content: center;
  margin: var(--sp-4) 0;
}
.phone {
  width: 240px;
  flex-shrink: 0;
  border-radius: 28px;
  padding: 6px;
  background: #141414;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.phone img {
  width: 100%;
  display: block;
  border-radius: 22px;
}
.phone-caption {
  text-align: center;
  font-size: .82rem;
  color: var(--ink-mute);
  margin-top: var(--sp-2);
  max-width: 240px;
}
.phone-stack {
  display: flex; flex-direction: column; align-items: center; gap: 0;
}

/* Desktop frame for web screenshots */
.desktop-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin: var(--sp-4) 0;
}
.desktop-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .desktop-row.cols-2 { grid-template-columns: 1fr; } }

.desktop {
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 8px 8px 0;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.desktop::before {
  content: "";
  display: block;
  position: relative;
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='10'><circle cx='6' cy='5' r='3.5' fill='%23E5E2DC'/><circle cx='20' cy='5' r='3.5' fill='%23E5E2DC'/><circle cx='34' cy='5' r='3.5' fill='%23E5E2DC'/></svg>") left center no-repeat;
  margin-bottom: 4px;
}
.desktop img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px 3px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}
.desktop-caption {
  text-align: center;
  font-size: .84rem;
  color: var(--ink-mute);
  margin-top: var(--sp-2);
}

/* Outcomes — metrics as text rows */
.metrics-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-3) 0;
  max-width: 560px;
}
.metrics-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.metrics-list .label { color: var(--ink-soft); font-size: .96rem; }
.metrics-list .platform {
  font-size: .72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 10px;
}
.metrics-list .num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.metrics-list .num.up   { color: var(--good); }
.metrics-list .num.down { color: var(--bad); }

/* Bullets */
.cs-section ul {
  max-width: var(--maxw-prose);
  padding-left: 1.2em;
  color: var(--ink-soft);
}
.cs-section ul li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.cs-section ul li::marker { color: var(--ink-mute); }

/* Prev/next nav */
.cs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: var(--sp-6) 0 var(--sp-4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) { .cs-nav { grid-template-columns: 1fr; } .cs-nav a + a { border-top: 1px solid var(--line); } }
.cs-nav a {
  padding: var(--sp-4) var(--sp-3);
  color: var(--ink);
  display: block;
  text-decoration: none;
  transition: background .15s ease;
}
.cs-nav a + a { border-left: 1px solid var(--line); }
.cs-nav a:hover { background: var(--bg-soft); }
.cs-nav .dir {
  font-size: .72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.cs-nav .title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
}
.cs-nav .next { text-align: right; }

/* Interactive prototype container */
.proto-wrap {
  display: flex; justify-content: center;
  margin: var(--sp-4) 0;
}
.proto-shell {
  width: 300px;
  border-radius: 32px;
  padding: 7px;
  background: #141414;
  position: relative;
}
.proto-shell::before {
  content: "";
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.proto-shell iframe {
  width: 100%;
  height: 580px;
  border: 0;
  border-radius: 26px;
  display: block;
}
.proto-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.proto-label .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  animation: ticker-pulse 1.6s infinite;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   About page
   ============================================================ */
.about-hero {
  padding: var(--sp-6) 0 var(--sp-4);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-5);
  align-items: end;
}
@media (max-width: 760px) { .about-hero { grid-template-columns: 1fr; align-items: start; } }
.about-hero .photo { overflow: hidden; }
.about-hero .photo img { width: 100%; }
.about-hero h1 { margin-bottom: var(--sp-3); max-width: 16ch; }
.about-hero .sub { font-size: 1.05rem; color: var(--ink-soft); margin: 0; }

.about-body { max-width: var(--maxw-prose); }
.about-body h2 { margin-top: var(--sp-5); }
.about-body p { color: var(--ink-soft); line-height: 1.65; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4) var(--sp-5);
  max-width: var(--maxw-prose);
}
@media (max-width: 600px) { .skill-grid { grid-template-columns: 1fr; } }
.skill-grid .col h4 {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 var(--sp-2);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.skill-grid ul { list-style: none; padding: 0; margin: 0; }
.skill-grid li {
  padding: 4px 0;
  color: var(--ink-soft);
  font-size: .94rem;
}

.rec {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.rec blockquote {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.rec blockquote::before { content: "“"; margin-right: 2px; color: var(--ink-mute); }
.rec blockquote::after  { content: "”"; margin-left: 2px;  color: var(--ink-mute); }
.rec cite {
  font-style: normal;
  font-size: .88rem;
  color: var(--ink-mute);
}
.rec cite strong { color: var(--ink-soft); font-weight: 500; }
