/* =========================================================
   VERGIELYN CUBOL · BRAND SYSTEM
   Editorial design system for a Brand System Strategist.
   Typography: Fraunces (display) + Syne (UI) + Plus Jakarta (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..700,30..100;1,9..144,300..700,30..100&family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Color · refined warmth */
  /* Color · neutral greige (red balanced out; no pink cast) */
  --cream:        #F0EFE8;
  --cream-deep:   #E5E4DB;
  --cream-light:  #F7F6F0;
  --paper:        #FFFFFF;
  --ink:          #18140D;
  --charcoal:     #221D15;
  --graphite:     #2C261C;
  --stone:        #4A4A4A;
  --slate:        #6B6B6B;
  --pebble:       #9A9A9A;
  --line:         #E3DCCF;
  --line-soft:    #EDE8DD;

  /* Accent · gold. Premium, confident; lives on marks, rules & fills. */
  --clay:         #E3B82E;        /* gold · dots, underlines, borders, fills */
  --clay-deep:    #C0991E;        /* deeper gold · current-nav, pressed states */
  --clay-bright:  #EBC846;        /* brightest gold · on dark grounds (footer) */
  /* Legacy aliases · keep old references working */
  --yellow:       var(--clay);
  --yellow-deep:  var(--clay-deep);
  --rust:         var(--clay-deep);

  /* Typography */
  --font-display: 'Fraunces', 'PP Editorial New', Georgia, serif;
  --font-ui:      'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Type scale · fluid */
  --type-mono:    0.75rem;
  --type-label:   0.6875rem;
  --type-sm:      0.875rem;
  --type-base:    1rem;
  --type-lg:      1.125rem;
  --type-xl:      1.375rem;
  --type-2xl:     clamp(1.5rem, 2.5vw, 2rem);
  --type-3xl:     clamp(2rem, 4vw, 3rem);
  --type-display: clamp(2.5rem, 7vw, 5rem);
  --type-hero:    clamp(3rem, 10vw, 7.5rem);

  /* Spacing */
  --gutter:       clamp(1.5rem, 5vw, 4rem);
  --section:      clamp(5rem, 10vw, 9rem);
  --rhythm:       1.5rem;

  /* Layout */
  --max-w:        1400px;
  --max-prose:    65ch;

  /* Motion */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quick:   cubic-bezier(0.32, 0.72, 0, 1);
  --dur:          0.4s;
  --dur-slow:     0.7s;
}

/* ---------- BASE ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--type-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--clay); color: var(--ink); }

/* ---------- LAYOUT ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow { max-width: 1100px; }
.wrap--prose  { max-width: 800px; }

section { padding: var(--section) 0; }
section.tight { padding: calc(var(--section) * 0.6) 0; }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
}

.eyebrow--yellow { color: var(--yellow-deep); }
.eyebrow--yellow::before { background: var(--yellow-deep); }

.chapter {
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
  margin-bottom: 2.5rem;
  display: block;
}

.chapter strong {
  color: var(--ink);
  font-weight: 500;
  margin-right: 0.5rem;
}

.label {
  font-family: var(--font-ui);
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Display headlines · editorial serif */
.display, h1.display, h2.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: var(--type-display);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.display--hero {
  font-size: var(--type-hero);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

.display em, .display .italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--ink);
}

.display .accent { color: var(--yellow-deep); }

/* Body headings */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: var(--type-3xl); }
h3 { font-size: var(--type-2xl); }
h4 { font-size: var(--type-xl); }
h5 { font-size: var(--type-lg); font-family: var(--font-ui); font-weight: 700; letter-spacing: 0; }

/* Body text */
p { color: var(--stone); }
.lede { font-size: var(--type-xl); line-height: 1.5; color: var(--ink); font-weight: 400; }
.dim { color: var(--slate); }
.dimmer { color: var(--pebble); }

/* Lists */
ul, ol { list-style: none; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 239, 232, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.site-logo small {
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--dur) var(--ease);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}

.site-nav a:hover { color: var(--ink); }

/* Site name (wordmark) sits inside .site-nav, so it inherits the nav-link
   style unless we beat that specificity. Use the Fraunces display serif
   (same face as the "and some more" hero) and double the size. */
.site-nav a.site-logo,
.site-nav a.nav-logo {
  font-family: var(--font-display);
  font-size: calc(var(--type-label) * 2.2);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a.is-current { color: var(--ink); }
.site-nav a.is-current::after { transform: scaleX(1); background: var(--yellow-deep); height: 2px; }

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

@media (max-width: 880px) {
  .site-nav ul,
  body > nav.site-nav .nav-links { display: none; }
  .site-nav ul.is-open,
  body > nav.site-nav .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    align-items: flex-start;
    z-index: 60;
  }
  .nav-toggle { display: inline-flex; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  position: relative;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--clay);
  color: var(--ink);
  border-color: var(--clay);
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--text {
  padding: 0.5rem 0;
  background: none;
  border: none;
  color: var(--ink);
}

.btn--text::after {
  content: '→';
  transition: transform var(--dur) var(--ease);
}

.btn--text:hover::after { transform: translateX(6px); }

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}

.btn:hover .arrow { transform: translateX(4px); }

/* ---------- RULES / DIVIDERS ---------- */
.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
  border: none;
}

.rule--soft { background: var(--line-soft); }

.rule--editorial {
  height: 1px;
  background: var(--ink);
  width: 60px;
  margin: 0 0 2.5rem 0;
  border: none;
}

/* ---------- PULL QUOTE ---------- */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  color: var(--ink);
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--yellow);
  max-width: 900px;
}

.pullquote em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.pullquote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 2rem;
}

/* ---------- IMAGE PLACEHOLDERS ---------- */
/* Intentional, editorial placeholders · swap for real photography later.
   Usage: <div class="ph" data-ph="Label · 4:5"></div>  */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(15,15,15,0.025) 22px 23px),
    var(--cream-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 120px;
}

.ph::after {
  content: attr(data-ph);
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: rgba(245,241,235,0.7);
  backdrop-filter: blur(2px);
}

.ph--dark {
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,0.03) 22px 23px),
    var(--ink);
  border-color: var(--graphite);
}

.ph--dark::after {
  color: var(--clay-bright);
  border-color: rgba(255,255,255,0.18);
  background: rgba(15,15,15,0.55);
}

/* ---------- CARDS ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2.5rem;
  transition: all var(--dur) var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  margin-top: clamp(4rem, 8vw, 7rem);
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.site-footer .footer-mark {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

/* Footer signature crest · flourish mark + name + role */
.site-footer .footer-crest {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}
.site-footer .footer-crest-mark {
  height: 96px;
  width: auto;
  display: block;
  margin-left: -8px;
}
.site-footer .footer-crest-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
  line-height: 1;
  white-space: nowrap;
  color: var(--cream);
}
.site-footer .footer-crest-role {
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
  max-width: 22ch;
  text-wrap: balance;
  color: var(--clay-bright);
}

.site-footer .footer-crest-note {
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  line-height: 1.6;
  max-width: 34ch;
  margin-top: 1.1rem;
  color: rgba(245, 241, 235, 0.7) !important;
  text-transform: none;
  letter-spacing: 0;
}

.site-footer p { color: rgba(245, 241, 235, 0.7); }

.site-footer h6 {
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay-bright);
  margin-bottom: 1.25rem;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer a {
  font-size: var(--type-sm);
  color: rgba(245, 241, 235, 0.85);
  transition: color var(--dur) var(--ease);
}

.site-footer a:hover { color: var(--clay-bright); }

.site-footer .foot-faint {
  font-size: 0.5em;
  opacity: 0.5;
  letter-spacing: 0.02em;
}

.site-footer .footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(245, 241, 235, 0.12);
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 241, 235, 0.5);
}

@media (max-width: 760px) {
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .site-footer .footer-base { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-footer .footer-main { grid-template-columns: 1fr; }
}

/* ---------- FORMS ---------- */
.form-field {
  margin-bottom: 2rem;
  position: relative;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  font-size: var(--type-lg);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease);
  border-radius: 0;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.form-field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--pebble);
}

/* ---------- UTILITY ---------- */
.is-italic { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }
.is-yellow { color: var(--yellow-deep); }
.is-rust   { color: var(--rust); }
.is-dim    { color: var(--slate); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-6 { margin-bottom: 4rem; }
.mb-7 { margin-bottom: 5rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* ---------- ANIMATION ---------- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  animation: reveal-up 0.9s var(--ease) forwards;
}

.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
.reveal-5 { animation-delay: 0.45s; }
.reveal-6 { animation-delay: 0.55s; }

/* ---------- Scroll-triggered reveal (slight, on-scroll) ---------- */
[data-observe] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
[data-observe].in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-observe] { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- GRID HELPERS ---------- */
.grid {
  display: grid;
  gap: var(--rhythm);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-asym { grid-template-columns: 5fr 7fr; gap: 5rem; }
.grid-asym-rev { grid-template-columns: 7fr 5fr; gap: 5rem; }

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4, .grid-asym, .grid-asym-rev {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* =========================================================
   PORTFOLIO DETAIL PAGES · styling the legacy markup
   (nav-container / portfolio-item / meta-grid / file-placeholder)
   so the older project pages join the editorial system.
   ========================================================= */

/* Nav · bare <nav class="site-nav"> as a direct child of body */
body > nav.site-nav {
  display: block;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  background: rgba(240, 239, 232, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

body > nav.site-nav .nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color var(--dur) var(--ease);
}

.nav-links a:hover { color: var(--ink); }

/* Article body */
.portfolio-item {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(4rem, 8vw, 7rem);
}

.portfolio-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 2rem;
}

.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--ink); }

.portfolio-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--ink);
}

/* Meta strip */
.portfolio-meta {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding: 2rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.meta-item { display: flex; flex-direction: column; gap: 0.6rem; }

.meta-label {
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

.meta-value { font-size: var(--type-sm); line-height: 1.45; color: var(--ink); }

/* Content */
.portfolio-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.75rem 0 1rem;
}

.portfolio-content h2:first-child { margin-top: 0; }

.portfolio-content p {
  font-size: var(--type-lg);
  line-height: 1.65;
  color: var(--stone);
  max-width: 65ch;
  margin-bottom: 1.25rem;
}

/* Project figures · portfolio + case imagery */
.portfolio-figure,
.case-figure {
  margin: 3rem 0 1rem;
}
.portfolio-figure img,
.case-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 32px rgba(24,20,13,0.08);
}
.portfolio-figure figcaption,
.case-figure figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  letter-spacing: 0.1em;
  color: var(--slate);
  text-align: center;
}

/* Long full-page site image · scroll-in-frame browser chrome */
.site-shot { margin: 3rem 0 1rem; }
.site-shot .shot-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(24,20,13,0.08);
  background: var(--paper);
}
.site-shot .shot-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream-deep);
}
.site-shot .shot-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pebble);
  display: block;
}
.site-shot .shot-bar .shot-url {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  letter-spacing: 0.08em;
  color: var(--slate);
}
.site-shot .shot-scroll {
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.site-shot .shot-scroll img { display: block; width: 100%; height: auto; }
.site-shot figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  letter-spacing: 0.1em;
  color: var(--slate);
  text-align: center;
}

/* File placeholder · editorial hatch */
.file-placeholder {
  margin: 3rem 0 1rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(24,20,13,0.03) 22px 23px),
    var(--cream-deep);
  border: 1px solid var(--line);
  text-align: center;
}

.placeholder-content { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.placeholder-icon { display: none; }

.placeholder-text {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--type-sm);
  color: var(--stone);
}

.placeholder-note {
  font-family: var(--font-mono);
  font-size: var(--type-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pebble);
}

/* Simple one-line footer used by portfolio pages */
.site-footer .footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer .footer-container p { color: rgba(245, 241, 235, 0.7); font-size: var(--type-sm); margin: 0; }
.site-footer .footer-container a { color: var(--clay-bright); }

@media (max-width: 760px) {
  .meta-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 880px) {
  body > nav.site-nav .nav-container { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
}
