/* =====================================================================
   victordsantos.com — portfolio styles
   Fraunces (display) + JetBrains Mono (labels)
   Dark painted hero → warm paper editorial body
   ===================================================================== */

/* ───────────────────── RESET / ROOT ───────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-bloom: #0a0814;
  --ink: #ece8e0;

  /* paper theme */
  --paper: #f6f1e8;
  --paper-deep: #efe8db;
  --pink: #191410;
  --pink-soft: #6b6154;
  --pline: #ddd4c3;
  --pline-soft: #e8e1d2;
  --hot: #ff3a18;
  --accent: #c92507;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  background: var(--paper);
  color: var(--pink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-feature-settings: "ss01", "ss02", "calt", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--hot);
  color: #fff;
}

/* ───────────────────── BLOOM (HERO) ───────────────────── */
.bloom {
  position: relative;
  height: 100vh;
  width: 100%;
  background: #050310;
  overflow: hidden;
  isolation: isolate;
}

#bloom-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(22px) saturate(2.1) contrast(1.18) brightness(1.05);
  z-index: 1;
}

.bloom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.18) 60%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.bloom::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
  z-index: 3;
}

.bloom-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px clamp(20px, 4vw, 56px);
  color: #fff;
}

.bloom-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.92;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.brand .sig {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-variation-settings: "opsz" 60, "SOFT" 80, "WONK" 1;
  font-weight: 360;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
}
.brand .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}
.brand .meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
}
.bloom-top .nav-link {
  margin-left: 22px;
  position: relative;
}
.bloom-top .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bloom-top .nav-link:hover::after {
  transform: scaleX(1);
}

.bloom-mid {
  align-self: center;
  padding: clamp(20px, 4vh, 60px) 0;
  display: grid;
  gap: clamp(36px, 5vh, 64px);
  justify-items: start;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* STOIC EPIGRAPH — centerpiece */
.quote {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  font-weight: 320;
  font-style: italic;
  font-size: clamp(40px, 7.4vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 18ch;
  text-wrap: balance;
  user-select: none;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.quote .word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.18em;
}
.quote .ltr {
  display: inline-block;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.quote .em-key {
  font-style: italic;
  color: #ffd9a0;
}

.quote-attr {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
}
.quote-attr .dash {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.quote-attr em {
  font-style: italic;
  font-family: "Fraunces", serif;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.85;
  max-width: 760px;
}
.hero-sub span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.hero-sub i {
  font-style: normal;
  opacity: 0.55;
}

.bloom-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.scroll-cue .bar {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, #fff);
  animation: bar-drop 1.8s ease-in-out infinite;
}
@keyframes bar-drop {
  0% { transform: translateY(-12px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.live-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.live-stamp .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #84ffc9;
  box-shadow: 0 0 12px #84ffc9;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue .bar,
  .live-stamp .pulse {
    animation: none;
  }
}

/* ───────────────────── PAPER (MAIN) ───────────────────── */
.paper {
  position: relative;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/></svg>"),
    var(--paper);
  color: var(--pink);
  padding: 0 clamp(20px, 4vw, 56px) 90px;
}

.page-inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* thin painted thread along the very top of the paper —
   ties the white page back to the hero palette */
.paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #b8123b, #1d3a9e, #d99a1a, #4a1466, #0f6a4d, #a8351a, #7a2c5c, #1f6b8a
  );
  opacity: 0.85;
}

section {
  padding-top: clamp(70px, 11vh, 130px);
}

/* section heads — quiet editorial */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--pink);
  padding-bottom: 18px;
  margin-bottom: clamp(34px, 5vh, 60px);
}
.sec-head h2 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-weight: 380;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.sec-head h2 em {
  font-style: italic;
  color: var(--accent);
}
.sec-head .sec-no {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--pink-soft);
  margin-right: 18px;
  vertical-align: super;
}
.sec-head .sec-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
  text-align: right;
  line-height: 1.8;
}
.sec-head .sec-sub b {
  color: var(--pink);
  font-weight: 600;
}

/* reveals */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ───────────────────── FEATURED ARTICLE ───────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.feature-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  overflow: hidden;
  background: #050310;
  box-shadow: 14px 14px 0 var(--paper-deep), 14px 14px 0 1px var(--pline);
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.feature-media:hover img {
  transform: scale(1.03);
}
/* painted fallback shown until the essay's artwork is added */
.media-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, #b8123bcc, transparent 70%),
    radial-gradient(ellipse 55% 60% at 80% 25%, #1d3a9ecc, transparent 70%),
    radial-gradient(ellipse 50% 55% at 65% 80%, #d99a1abb, transparent 70%),
    radial-gradient(ellipse 45% 50% at 25% 85%, #0f6a4dbb, transparent 70%),
    radial-gradient(ellipse 40% 45% at 50% 50%, #4a1466bb, transparent 72%),
    #0a0814;
  filter: saturate(1.6) blur(6px);
  transform: scale(1.1);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.feature-media:hover .media-fallback {
  transform: scale(1.16);
}
.feature-media .media-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-bottom: 22px;
}
.feature-meta .new {
  color: var(--accent);
  font-weight: 600;
}

.feature h3 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-weight: 420;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.feature h3 em {
  font-style: italic;
  color: var(--accent);
}
.feature h3 a:hover em {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.standfirst {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 40, "SOFT" 50, "WONK" 0;
  font-weight: 380;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: #3c352c;
  max-width: 54ch;
  margin-bottom: 30px;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--paper);
  background: var(--pink);
  padding: 14px 22px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn-read:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.mini-link {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
  border-bottom: 1px solid var(--pline);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.mini-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ───────────────────── FIELD NOTES ───────────────────── */
.notes {
  margin-top: clamp(56px, 8vh, 90px);
}
.notes-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink-soft);
  border-bottom: 1px solid var(--pline);
  padding-bottom: 12px;
}
.note {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 10px 30px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--pline-soft);
}
.note-date {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-soft);
}
.note h4 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 1;
  font-weight: 430;
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.note h4 em {
  font-style: italic;
  color: var(--accent);
}
.note p {
  grid-column: 2;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--pink-soft);
  max-width: 68ch;
  margin-top: 6px;
}
.note .note-out {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--pink-soft);
  transition: color 0.3s ease;
}
.note .note-out:hover {
  color: var(--accent);
}

/* ───────────────────── PROJECTS ───────────────────── */
.project-list {
  list-style: none;
}
.project-row {
  border-bottom: 1px solid var(--pline);
}
.project-toggle {
  display: grid;
  grid-template-columns: 44px 56px minmax(150px, auto) 1fr auto 30px;
  align-items: center;
  gap: 18px;
  padding: 26px 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.project-toggle:hover {
  background: var(--paper-deep);
}
.project-toggle .ix {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--pink-soft);
}
.project-toggle .mark {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--accent-c, var(--accent));
}
.project-toggle .name {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 90, "SOFT" 40, "WONK" 1;
  font-weight: 430;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1;
}
.project-link {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.project-link .domain-hint {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-soft);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.project-link:hover .domain-hint {
  opacity: 1;
  transform: none;
  color: var(--accent);
}
.project-toggle .tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--pink-soft);
}
.project-toggle .year {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-soft);
  white-space: nowrap;
}
.project-toggle .chev {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--pink-soft);
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}
.project-row.open .chev {
  transform: rotate(45deg);
  color: var(--accent);
}

.project-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-row.open .project-detail {
  grid-template-rows: 1fr;
}
.project-detail-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0 60px;
}
.project-row.open .project-detail-inner {
  padding: 0 4px 34px 118px;
}
.project-detail p {
  font-size: 13px;
  line-height: 1.85;
  color: #46403a;
  max-width: 62ch;
}
.project-detail b {
  color: var(--pink);
}
.stat-row {
  display: flex;
  gap: 34px;
  margin-bottom: 18px;
}
.stat .v {
  font-family: "Fraunces", serif;
  font-weight: 480;
  font-size: 26px;
  color: var(--accent-c, var(--accent));
}
.stat .k {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-top: 4px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-soft);
  border: 1px solid var(--pline);
  padding: 5px 10px;
}

.projects-coda {
  padding-top: 26px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
}
.projects-coda a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ───────────────────── ABOUT + EXPERIENCE ───────────────────── */
.about-lede {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 90, "SOFT" 50, "WONK" 1;
  font-weight: 390;
  font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 30ch;
  margin-bottom: clamp(40px, 6vh, 70px);
}
.about-lede em {
  font-style: italic;
  color: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.about-facts {
  display: grid;
  gap: 26px;
}
.fact h4 {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-bottom: 8px;
}
.fact p {
  font-size: 12.5px;
  line-height: 1.8;
  color: #46403a;
}
.fact .accent {
  color: var(--accent);
}

.roles {
  border-top: 1px solid var(--pink);
}
.role-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pline-soft);
  align-items: baseline;
}
.role-row .when {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
}
.role-row .what {
  font-size: 12.5px;
  line-height: 1.6;
}
.role-row .what b {
  font-family: "Fraunces", serif;
  font-weight: 480;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.role-row .what i {
  font-style: normal;
  color: var(--pink-soft);
}

.resume-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--pink);
  padding: 13px 20px;
  transition: background 0.3s ease, color 0.3s ease;
}
.resume-cta:hover {
  background: var(--pink);
  color: var(--paper);
}
.resume-cta .arr {
  transition: transform 0.3s ease;
}
.resume-cta:hover .arr {
  transform: translateX(4px);
}

/* ───────────────────── CONTACT ───────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 5vw, 90px);
  align-items: start;
}
.pitch {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-weight: 390;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.pitch em {
  font-style: italic;
  color: var(--accent);
}
.pitch a {
  border-bottom: 3px solid var(--accent);
  transition: color 0.3s ease;
}
.pitch a:hover {
  color: var(--accent);
}

.contact-list {
  display: grid;
}
.contact-list a {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 15px 2px;
  border-bottom: 1px solid var(--pline);
  font-size: 13px;
  transition: background 0.3s ease, padding 0.3s ease;
}
.contact-list a:hover {
  background: var(--paper-deep);
  padding-left: 10px;
}
.contact-list .k {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink-soft);
}
.contact-list .arrow {
  color: var(--pink-soft);
}
.contact-list a:hover .arrow {
  color: var(--accent);
}

/* ───────────────────── FOOTER ───────────────────── */
.colophon {
  margin-top: clamp(70px, 10vh, 120px);
  padding-top: 22px;
  border-top: 1px solid var(--pline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-soft);
}

/* ───────────────────── ARTICLE PAGE ───────────────────── */
.article-page {
  background: var(--paper);
}
.article-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--pline);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.article-topbar .back:hover {
  color: var(--accent);
}
.article-topbar .tb-meta {
  color: var(--pink-soft);
}

.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(50px, 8vh, 100px) 20px 80px;
}
.article-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-head .eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pline);
}
.article-head h1 {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-weight: 420;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.article-head h1 em {
  font-style: italic;
  color: var(--accent);
}
.article-head .article-standfirst {
  font-family: "Fraunces", serif;
  font-weight: 380;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
  color: #3c352c;
  margin-bottom: 30px;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
  padding-bottom: 30px;
}
.byline b {
  color: var(--pink);
}

.article-hero {
  margin: 10px 0 46px;
}
.article-hero .frame {
  position: relative;
  overflow: hidden;
  background: #050310;
  box-shadow: 14px 14px 0 var(--paper-deep), 14px 14px 0 1px var(--pline);
}
.article-hero img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  display: block;
}
.article-hero figcaption {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
}

.article-body p {
  font-family: "Fraunces", serif;
  font-variation-settings: "opsz" 20, "SOFT" 30, "WONK" 0;
  font-weight: 400;
  font-size: 18.5px;
  line-height: 1.75;
  color: #241f18;
  margin-bottom: 26px;
}
.article-body p:first-of-type::first-letter {
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  padding: 6px 10px 0 0;
  font-style: italic;
  color: var(--accent);
}
.article-body h2 {
  font-family: "Fraunces", serif;
  font-weight: 460;
  font-size: 30px;
  letter-spacing: -0.015em;
  margin: 44px 0 18px;
}
.article-body blockquote {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 34px 0;
  color: #3c352c;
}
.article-body a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.article-share {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--pink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 28px;
}
.article-share .lbl {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pink-soft);
}

/* ───────────────────── MOBILE ───────────────────── */
@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-grid,
  .contact {
    grid-template-columns: 1fr;
  }
  .project-detail-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .project-row.open .project-detail-inner {
    padding-left: 4px;
  }
}

@media (max-width: 720px) {
  .bloom-top nav {
    display: none;
  }
  .hero-sub {
    gap: 8px 18px;
  }
  .bloom-bottom {
    font-size: 10px;
  }
  .sec-head {
    flex-direction: column;
    gap: 12px;
  }
  .sec-head .sec-sub {
    text-align: left;
  }
  .project-toggle {
    grid-template-columns: 40px 1fr auto 24px;
    gap: 12px;
  }
  .project-toggle .ix,
  .project-toggle .tag {
    display: none;
  }
  .note {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .note p {
    grid-column: 1;
  }
  .contact-list a {
    grid-template-columns: 76px 1fr auto;
    gap: 12px;
  }
  .role-row {
    grid-template-columns: 1fr;
  }
}
