/* ============================================================
   SHAON — Software Architect Portfolio
   Dark cinematic · lime accent · Space Grotesk + JetBrains Mono
   ============================================================ */

:root {
  --bg:        #07090a;
  --bg-1:      #0b0e10;
  --bg-2:      #0f1315;
  --bg-3:      #151a1c;
  --line:      rgba(255, 255, 255, 0.06);
  --line-2:    rgba(255, 255, 255, 0.11);
  --text:      #e7ece9;
  --text-dim:  #9aa6a3;
  --muted:     #6e7a7e;
  --muted-2:   #454f53;
  --accent:    #72c355;
  --accent-d:  #52a835;
  --accent-soft: #9ed67a;
  --accent-glow: rgba(114, 195, 85, 0.16);

  --ff-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --ff-body:    "Hanken Grotesk", system-ui, sans-serif;
  --ff-mono:    "Spline Sans Mono", "SFMono-Regular", ui-monospace, monospace;

  --maxw: 1380px;
  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.4, 0.01, 0.16, 1);
  --chamfer: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
  letter-spacing: -0.005em;
  font-weight: 400;
}

h1, h2, h3, h4, .section-title, .about-statement, .hero h1,
.contact h2, .ticker-track span { font-family: var(--ff-display); font-weight: 500; }

::selection { background: var(--accent); color: #081502; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* film grain + vignette overlays ---------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 8999; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* utility ---------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--ff-mono); font-weight: 400; }
.eyebrow {
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.eyebrow .idx { color: var(--accent); }
.accent { color: var(--accent); }

/* reveal animation ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 11, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.02em; }
.brand .mark {
  width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 0;
  display: grid; place-items: center; font-family: var(--ff-mono); font-size: 0.9rem;
  color: var(--accent); position: relative; overflow: hidden;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, var(--accent-glow), transparent 70%);
}
.brand b { font-weight: 600; }
.brand span { color: var(--muted); font-weight: 400; font-size: 0.82rem; font-family: var(--ff-mono); }

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  position: relative; display: inline-flex; overflow: hidden; height: 1.25em; line-height: 1.25;
  font-family: var(--ff-display); font-size: 0.92rem; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-dim); white-space: nowrap;
}
.nav-links a .lbl { display: block; white-space: nowrap; transition: transform 0.45s var(--ease); }
.nav-links a::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%;
  color: var(--accent); transition: transform 0.45s var(--ease);
}
.nav-links a:hover .lbl { transform: translateY(-100%); }
.nav-links a:hover::after { transform: translateY(-100%); }
.nav-links a.active { color: var(--text); }

.nav-resume { font-size: 0.8rem; }
.nav-resume-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-display); font-size: 0.92rem; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text);
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.nav-resume-link:hover { color: var(--accent); gap: 11px; }
.nav-toggle { display: none; }

/* ============================ HERO ============================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
#arch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; }
.hero-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 18% 42%, rgba(6,8,9,0.4), transparent 70%),
    linear-gradient(180deg, rgba(6,8,9,0.5) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}

.hero-grid {
  position: relative; z-index: 3; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: 40px; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  padding-top: 120px; padding-bottom: 60px;
}

.hero-portrait {
  position: absolute; top: 0; right: 0; height: 100%; width: 43%;
  z-index: 2; pointer-events: none;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
.hero-portrait::before { /* blend left edge into black */
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(7,9,10,0.42) 26%, transparent 62%);
}
.hero-portrait::after { /* blend bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: 2;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 38px; }
.hero-eyebrow .who { font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hero-eyebrow .who b { color: var(--text); font-weight: 500; }
.hero-eyebrow .who .sep { color: var(--accent); margin-inline: 9px; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(114,195,85,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(114,195,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(114,195,85,0); }
}

.hero h1 {
  font-size: clamp(2.55rem, 6vw, 5.5rem); line-height: 1.0; font-weight: 500;
  letter-spacing: -0.038em; margin-bottom: 30px; max-width: 15ch; text-wrap: balance;
}
.hero h1 .hl { color: var(--accent); }
.hero h1 em {
  font-style: normal; -webkit-text-stroke: 1.2px var(--text-dim); color: transparent;
}
.hero-sub {
  color: var(--text-dim); font-size: clamp(1rem, 1.25vw, 1.16rem); line-height: 1.6;
  max-width: 46ch; margin-bottom: 44px;
}
.hero-sub b { color: var(--text); font-weight: 500; }

.hero-stats { display: flex; gap: 44px; margin-bottom: 42px; }
.hero-stats .stat .num {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  display: flex; align-items: baseline;
}
.hero-stats .stat .num .plus { color: var(--accent); font-size: 0.6em; margin-left: 2px; }
.hero-stats .stat .lbl { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 9px; }

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

/* ---- chamfer-cut buttons w/ arrow relay ---- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: stretch; white-space: nowrap;
  font-family: var(--ff-display); font-weight: 600; font-size: 0.92rem; letter-spacing: -0.005em;
  border: none; border-radius: 0;
  transition: color 0.45s var(--ease), transform 0.35s var(--ease), box-shadow 0.45s var(--ease);
}
.btn .glitch { position: relative; z-index: 2; display: flex; align-items: center; padding: 14px 22px; }
.btn .arr-cell {
  position: relative; z-index: 2; display: grid; place-items: center; align-self: stretch;
  width: 48px; overflow: hidden;
}
.btn .arr-cell::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px;
  background: currentColor; opacity: 0.18;
}
.btn .arr { grid-area: 1 / 1; display: block; transition: transform 0.5s var(--ease); }
.btn .arr.a2 { transform: translate(-250%, 250%); }
.btn:hover .arr.a1 { transform: translate(250%, -250%); }
.btn:hover .arr.a2 { transform: translate(0, 0); }
/* vertical fill wipe from bottom */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #081502; }
.btn-primary::after { background: rgba(0,0,0,0.16); }
.btn-primary:hover { color: #081502; box-shadow: 0 14px 32px -14px var(--accent-glow); }
.btn-ghost { background: var(--line-2); color: var(--text); }
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--bg-1);
  clip-path: inset(1px);
  transition: opacity 0.45s var(--ease);
}
.btn-ghost:hover::before { opacity: 0; }
.btn-ghost::after { background: var(--accent); }
.btn-ghost:hover { color: #081502; }
@media (prefers-reduced-motion: reduce) {
  .btn::after { transition: none; }
  .btn .arr.a2 { display: none; }
  .btn:hover .arr.a1 { transform: none; }
}

.hero-socials { display: flex; gap: 12px; }
.social {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 0;
  display: grid; place-items: center; color: var(--text-dim);
  transition: all 0.3s var(--ease); background: rgba(255,255,255,0.015);
}
.social:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); background: rgba(114,195,85,0.06); }
.social svg { width: 17px; height: 17px; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.25em; color: var(--muted);
  text-transform: uppercase;
}
.scroll-hint .bar { width: 1px; height: 46px; background: linear-gradient(var(--muted), transparent); position: relative; overflow: hidden; }
.scroll-hint .bar::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--accent); animation: scrolldown 2s var(--ease) infinite; }
@keyframes scrolldown { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ============================ TICKER ============================ */
.ticker { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg-1); }
.ticker-track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marquee 55s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; color: var(--text-dim); display: inline-flex; align-items: center; }
.ticker-track span::after { content: "✦"; color: var(--accent); font-size: 0.7em; margin-inline: 36px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================ SECTION SHELL ============================ */
.section { padding: clamp(90px, 12vh, 160px) 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 64px; flex-wrap: wrap; }
.section-head .label { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.section-head .label::before { content: ""; width: 30px; height: 1px; background: var(--accent); }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.8rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.0; max-width: 18ch; text-wrap: balance; }
.section-title em { font-style: normal; -webkit-text-stroke: 1.2px var(--text-dim); color: transparent; }

/* ============================ ABOUT ============================ */
.about-statement {
  font-size: clamp(1.7rem, 4vw, 3.3rem); font-weight: 400; line-height: 1.18; letter-spacing: -0.03em;
  margin-bottom: 90px;
}
.about-statement b { font-weight: 500; }
.about-statement .dim { color: var(--muted-2); }
.about-statement .hl { color: var(--accent); }

/* architecture stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 0; overflow: hidden; margin-bottom: 90px; }
.stat-strip .cell { padding: 30px clamp(18px, 2.4vw, 34px); border-right: 1px solid var(--line); }
.stat-strip .cell:last-child { border-right: none; }
.stat-strip .cell .v { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; }
.stat-strip .cell .v .plus { color: var(--accent); font-size: 0.55em; margin-left: 2px; }
.stat-strip .cell .k { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: 1fr 1fr; } .stat-strip .cell:nth-child(2) { border-right: none; } }
.about-lower { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 96px); align-items: start; }

/* about meta — architect's manifesto */
.about-meta { display: flex; flex-direction: column; gap: 30px; position: sticky; top: 120px; }
.about-quote {
  font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.3; letter-spacing: -0.025em; color: var(--text);
  padding-left: 24px; border-left: 2px solid var(--accent); max-width: 22ch;
}
.about-note { color: var(--text-dim); font-size: 1.04rem; line-height: 1.6; max-width: 42ch; }
.about-sign { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; padding-top: 24px; border-top: 1px solid var(--line); }
.sig-name { font-family: var(--ff-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--text); }
.sig-role { font-family: var(--ff-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; }

/* principles — distinct cards (deliberately unlike the career timeline) */
.principles { display: grid; gap: 14px; }
.principle {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 20px;
  padding: 24px 26px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(155deg, rgba(255,255,255,0.022), rgba(255,255,255,0.004));
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s;
}
.principle:hover { border-color: var(--line-2); transform: translateX(6px); background: linear-gradient(155deg, rgba(114,195,85,0.05), rgba(255,255,255,0.004)); }
.principle .picon {
  width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line-2); color: var(--accent);
  transition: background 0.4s var(--ease), color 0.4s;
}
.principle:hover .picon { background: var(--accent); color: #081502; }
.principle .ptext h4 { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.principle .ptext p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin-top: 7px; max-width: 44ch; }
.principle .pno {
  position: absolute; top: 16px; right: 20px; font-family: var(--ff-mono); font-size: 0.66rem;
  letter-spacing: 0.1em; color: var(--muted-2); transition: color 0.4s;
}
.principle:hover .pno { color: var(--accent); }

/* ============================ CAPABILITIES ============================ */
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cap-card {
  border: 1px solid var(--line); border-radius: 0; padding: 36px; background: var(--bg-1);
  position: relative; overflow: hidden; transition: border-color 0.4s, transform 0.4s var(--ease);
}
.cap-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.cap-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.cap-card:hover::before { opacity: 0.7; }
.cap-card .cap-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.cap-card .cap-h h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
.cap-card .cap-h .cap-n { font-family: var(--ff-mono); font-size: 0.7rem; color: var(--muted-2); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.01em; color: var(--text-dim);
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,0.012);
  transition: all 0.25s var(--ease); cursor: default;
}
.chip:hover { color: var(--accent); border-color: var(--accent); background: rgba(114,195,85,0.06); transform: translateY(-2px); }

.cap-wide { grid-column: 1 / -1; }
.patterns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pattern-tag {
  font-family: var(--ff-mono); font-size: 0.78rem; color: var(--text); padding: 9px 16px;
  border: 1px solid var(--line-2); border-radius: 0; letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
}
.pattern-tag:hover { background: var(--accent); color: #081502; border-color: var(--accent); }

.comp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: 6px; }
.comp-list li { list-style: none; display: flex; gap: 14px; align-items: flex-start; color: var(--text-dim); font-size: 0.96rem; padding: 4px 0; }
.comp-list li .tick { color: var(--accent); flex-shrink: 0; margin-top: 3px; font-family: var(--ff-mono); }

/* ============================ CAREER ============================ */
.timeline { position: relative; }
.tl-item {
  position: relative; display: grid; grid-template-columns: 168px 1fr; gap: clamp(28px, 5vw, 70px);
  padding: 40px 0 40px 28px; border-top: 1px solid var(--line);
  transition: background 0.45s var(--ease);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-item:hover { background: linear-gradient(90deg, rgba(114,195,85,0.035), transparent 55%); }
/* spine */
.tl-item::before {
  content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px;
  background: var(--line-2);
}
.tl-item:first-child::before { top: 46px; }
.tl-item:last-child::before { bottom: auto; height: 46px; }
/* node dot */
.tl-item::after {
  content: ""; position: absolute; left: 4px; top: 46px; width: 11px; height: 11px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--bg); border: 1.5px solid var(--muted);
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s; z-index: 2;
}
.tl-item:hover::after { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-glow); }
.tl-item.tl-now::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-glow); }

.tl-when { padding-top: 2px; }
.tl-when .tl-yr {
  font-family: var(--ff-display); font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 500;
  letter-spacing: -0.04em; line-height: 1; display: block;
  color: transparent; -webkit-text-stroke: 1.2px var(--text-dim);
  transition: -webkit-text-stroke-color 0.4s var(--ease);
}
.tl-item:hover .tl-yr { -webkit-text-stroke-color: var(--accent); }
.tl-item.tl-now .tl-yr { -webkit-text-stroke-color: var(--accent); }
.tl-when .tl-range { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--muted); display: block; margin-top: 10px; letter-spacing: 0.01em; }
.tl-when .loc { font-family: var(--ff-mono); display: block; color: var(--muted-2); font-size: 0.72rem; margin-top: 7px; }

.tl-main { padding-top: 4px; }
.tl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tl-role h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.025em; }
.tl-co { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--accent); margin-top: 10px; display: inline-flex; align-items: center; gap: 9px; }
.tl-co svg { opacity: 0.85; }
.tl-role p { color: var(--muted); font-size: 0.96rem; margin-top: 14px; max-width: 56ch; line-height: 1.6; }
.tl-bullets { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.tl-bullets li { position: relative; padding-left: 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.tl-bullets li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-size: 0.75em; top: 0.15em; }
.tl-badge {
  font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 0; white-space: nowrap; flex-shrink: 0;
}
.tl-badge.now { background: var(--accent); color: #081502; }
.tl-badge.past { border: 1px solid var(--line-2); color: var(--muted); }
.tl-flag { font-size: 0.9em; }

/* ============================ PROJECTS / CASE STUDIES ============================ */
.proj-list { display: flex; flex-direction: column; gap: 22px; }
.proj-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.proj-card {
  position: relative; border: 1px solid var(--line); border-radius: 0; overflow: hidden;
  background: var(--bg-1); display: flex; flex-direction: column;
  transition: border-color 0.45s var(--ease), transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.proj-card:hover { border-color: var(--line-2); transform: translateY(-5px); box-shadow: 0 30px 60px -40px rgba(0,0,0,0.9); }
.proj-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.45s;
}
.proj-card:hover::after { box-shadow: inset 0 0 0 1px rgba(114,195,85,0.25); }

/* featured (flagship) layout */
.proj-featured { display: grid; grid-template-columns: 1.15fr 1fr; }
.proj-featured .proj-media { border-right: 1px solid var(--line); border-bottom: none; }
/* mirrored flagship — body left, media right */
.proj-featured.rev { grid-template-columns: 1fr 1.15fr; }
.proj-featured.rev .proj-media { order: 2; border-right: none; border-left: 1px solid var(--line); }
.proj-featured.rev .proj-body { order: 1; }

/* horizontal "next system" CTA card */
.proj-next { display: flex; align-items: center; justify-content: space-between; gap: clamp(28px, 5vw, 70px); padding: clamp(34px, 4.5vw, 58px); flex-wrap: wrap; }
.proj-next .pn-text { max-width: 56ch; }
.proj-next .pn-role { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.proj-next .pn-text h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; margin: 14px 0 14px; }
.proj-next .pn-text p { color: var(--text-dim); font-size: 1rem; line-height: 1.6; }
.proj-next .pn-cta { flex-shrink: 0; }

/* media: screenshot OR system diagram */
.proj-media {
  position: relative; overflow: hidden; background:
    radial-gradient(120% 120% at 80% 0%, rgba(114,195,85,0.07), transparent 55%), var(--bg-2);
  border-bottom: 1px solid var(--line); min-height: 230px; display: flex; align-items: stretch;
}
.proj-media.shot { aspect-ratio: 16 / 10; }
.proj-featured .proj-media.shot { aspect-ratio: auto; }
.proj-media.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease); }
.proj-card:hover .proj-media.shot img { transform: scale(1.045); }
.proj-media .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,8,9,0.55)); }

/* system diagram (legacy — superseded by arch engine) */

.proj-cat { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
  background: rgba(8,11,12,0.66); backdrop-filter: blur(8px); padding: 7px 13px; border-radius: 0; border: 1px solid var(--line); }
.proj-cat .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.proj-body { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; flex: 1; }
.proj-featured .proj-body { justify-content: center; }
.proj-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.proj-top h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.025em; }
.proj-top .yr { font-family: var(--ff-mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.proj-role { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: -8px; }
.proj-desc { color: var(--text-dim); font-size: 0.97rem; line-height: 1.58; }

/* architecture metric strip — the 'smart' part */
.metrics { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.metric { flex: 1; min-width: 90px; padding: 14px 16px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: none; }
.metric .mv { font-size: 1.18rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text); display: flex; align-items: baseline; gap: 2px; }
.metric .mv .u { color: var(--accent); font-size: 0.62em; }
.metric .mk { font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.proj-tech { display: flex; flex-wrap: wrap; gap: 7px; }
.proj-tech .s { font-family: var(--ff-mono); font-size: 0.68rem; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 0; transition: color 0.25s, border-color 0.25s; white-space: nowrap; }
.proj-card:hover .proj-tech .s { border-color: var(--line-2); }
.proj-links { display: flex; gap: 22px; margin-top: auto; padding-top: 4px; }
.proj-links a { font-family: var(--ff-mono); font-size: 0.76rem; color: var(--text); display: inline-flex; align-items: center; gap: 7px; transition: color 0.3s, gap 0.3s; }
.proj-links a:hover { color: var(--accent); gap: 11px; }
.proj-links a.muted { color: var(--muted); }
.proj-links a.muted:hover { color: var(--text); }

/* ============================ CONTACT ============================ */
.contact { position: relative; padding: clamp(100px, 14vh, 180px) 0; overflow: hidden; }
.contact-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start;
}
.contact .eyebrow { display: inline-flex; gap: 12px; align-items: center; margin-bottom: 26px; }
.contact-h { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.0; }
.contact-h em { font-style: normal; -webkit-text-stroke: 1.2px var(--text-dim); color: transparent; }
.contact-intro { color: var(--text-dim); font-size: 1.05rem; line-height: 1.6; margin-top: 26px; max-width: 42ch; }

.contact-methods { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
.cmethod {
  display: flex; align-items: center; gap: 16px; padding: 16px 8px;
  border-bottom: 1px solid var(--line); transition: padding 0.4s var(--ease);
}
.cmethod:first-child { border-top: 1px solid var(--line); }
a.cmethod:hover { padding-left: 16px; }
.cm-ic { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 0; display: grid; place-items: center; color: var(--accent); transition: border-color 0.4s, background 0.4s; }
.cm-ic svg { width: 18px; height: 18px; }
a.cmethod:hover .cm-ic { border-color: var(--accent); background: rgba(114,195,85,0.06); }
.cm-body { display: flex; flex-direction: column; gap: 4px; }
.cm-k { font-family: var(--ff-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cm-v { font-size: 1rem; color: var(--text); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }

.contact-socials { display: flex; gap: 10px; margin-top: 34px; }

/* form */
.contact-form {
  background: linear-gradient(160deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  backdrop-filter: blur(16px) saturate(118%); -webkit-backdrop-filter: blur(16px) saturate(118%);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 0;
  padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 30px 70px -50px rgba(0,0,0,0.9);
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--ff-body); font-size: 0.98rem; color: var(--text);
  background: rgba(255,255,255,0.022); border: 1px solid var(--line); border-radius: 0;
  padding: 14px 16px; outline: none; resize: vertical;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 120px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent); background: rgba(114,195,85,0.04);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field input.invalid, .field textarea.invalid { border-color: #c0705f; box-shadow: 0 0 0 3px rgba(176,82,64,0.12); }
.cf-submit { align-self: flex-start; margin-top: 4px; border: none; cursor: pointer; }
.cf-note { font-family: var(--ff-mono); font-size: 0.78rem; color: var(--accent); min-height: 1em; margin-top: -4px; }
.cf-note.err { color: #d98a7c; }

.contact-glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle, var(--accent-glow), transparent 60%); opacity: 0.4; z-index: 0; pointer-events: none; filter: blur(20px); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--line); padding: 18px 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-grid .fcol { display: flex; flex-direction: column; gap: 7px; }
.footer .mono { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.03em; }
.footer .fbig { font-size: 1.1rem; font-weight: 500; color: var(--text); }
.footer-socials { display: flex; gap: 10px; }
.footer .totop { font-family: var(--ff-mono); font-size: 0.74rem; color: var(--text-dim); display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s; }
.footer .totop:hover { color: var(--accent); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-portrait { position: absolute; width: 100%; opacity: 0.32; }
  .hero-portrait::before { background: linear-gradient(90deg, var(--bg) 0%, transparent 60%, var(--bg) 100%); }
  .hero-content { position: relative; z-index: 3; }
  .about-lower { grid-template-columns: 1fr; gap: 56px; }
  .about-meta { position: static; top: auto; }
  .cap-grid { grid-template-columns: 1fr; }
  .proj-row { grid-template-columns: 1fr; }
  .proj-featured { grid-template-columns: 1fr; }
  .proj-featured.rev { grid-template-columns: 1fr; }
  .proj-featured .proj-media { border-right: none; border-bottom: 1px solid var(--line); min-height: 280px; }
  .proj-featured.rev .proj-media { order: 0; border-left: none; border-bottom: 1px solid var(--line); }
  .proj-featured.rev .proj-body { order: 1; }
  .comp-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .tl-item { grid-template-columns: 1fr; gap: 16px; }
  .work-more { grid-template-columns: 1fr; }
  .proj-row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .principle { padding: 20px 22px; }
}

/* ---- MOBILE HERO — stacked layout: portrait on top, content below, zero overlap ---- */
@media (max-width: 640px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100svh;
  }
  /* portrait becomes an in-flow block at top — no margin so it bleeds behind the transparent nav */
  .hero-portrait {
    position: relative;
    width: 100%;
    height: 72vw;
    max-height: 400px;
    opacity: 1;
    flex-shrink: 0;
    z-index: 2;
    top: auto; right: auto;
  }
  .hero-portrait img {
    object-position: 50% 12%;
  }
  /* strong top-fade keeps nav button legible; bottom-fade dissolves into content */
  .hero-portrait::before {
    background: linear-gradient(
      180deg,
      rgba(7,9,10,0.55) 0%,
      rgba(7,9,10,0.1) 28%,
      transparent 55%,
      var(--bg) 100%
    );
  }
  .hero-portrait::after {
    height: 45%;
    background: linear-gradient(0deg, var(--bg), transparent);
  }
  /* content block sits below portrait on solid dark ground */
  .hero-grid {
    position: relative;
    z-index: 3;
    padding-top: 0;
    padding-bottom: 56px;
    background: var(--bg);
    flex: 1;
    display: flex;
    align-items: flex-start;
  }
  .hero-content {
    padding-top: 12px;
  }
  /* hero fade stays but only affects the very top */
  .hero-fade {
    height: 80px;
    background: linear-gradient(180deg, rgba(7,9,10,0.7) 0%, transparent 100%);
  }
  /* tighten headline and sub for narrow screens */
  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    margin-bottom: 20px;
  }
  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }
  .hero-actions {
    gap: 12px;
    margin-bottom: 28px;
  }
  .scroll-hint { display: none; }
}

/* ============================================================
   v3 — GLASS MORPHISM · BLUEPRINT MOTIFS · ARCH DIAGRAMS
   ============================================================ */

/* page-wide faint blueprint grid (gives glass something to refract) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 18%, #000 50%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 18%, #000 50%, transparent 100%);
}
/* soft warm depth glows behind glass sections */
#capabilities::before, #work::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(114,195,85,0.06), transparent 62%);
  filter: blur(34px);
}
#capabilities::before { top: 4%; right: -12%; }
#work::before { top: 30%; left: -16%; }
.section .wrap, .contact .wrap { position: relative; z-index: 1; }

/* glass surface mixin applied to cards */
.cap-card, .proj-card, .stat-strip, .more-card {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.028), rgba(255,255,255,0.006) 60%);
  backdrop-filter: blur(16px) saturate(118%);
  -webkit-backdrop-filter: blur(16px) saturate(118%);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025), 0 18px 44px -38px rgba(0,0,0,0.7);
}
.proj-media {
  background:
    radial-gradient(130% 130% at 85% 0%, rgba(114,195,85,0.08), transparent 52%),
    linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.metrics {
  background: linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255,255,255,0.09);
}
.chip, .proj-tech .s {
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(10,13,14,0.78), rgba(10,13,14,0.62));
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04);
}
.proj-cat {
  background: rgba(10,13,14,0.55);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* blueprint corner ticks on glass cards */
.cap-card, .proj-card { position: relative; }
.cap-card > .tick-tl, .cap-card > .tick-br,
.proj-card > .tick-tl, .proj-card > .tick-br { position: absolute; width: 7px; height: 7px; opacity: 0.22; pointer-events: none; z-index: 2; transition: opacity 0.4s; }
.cap-card:hover > .tick-tl, .cap-card:hover > .tick-br,
.proj-card:hover > .tick-tl, .proj-card:hover > .tick-br { opacity: 0.55; }
.tick-tl { top: 10px; left: 10px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.tick-br { bottom: 10px; right: 10px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

/* section label — make it read like a schematic tag */
.section-head .label { padding: 5px 0; }

/* ============================ ARCH DIAGRAM ============================ */
.arch-media { min-height: 300px; position: relative; }
.arch-mount { position: absolute; inset: 0; }
.proj-featured .arch-media { min-height: 100%; }
.arch { width: 100%; height: 100%; display: block; padding: 34px 30px 42px; }
.arch-edges .ae { fill: none; stroke: rgba(255,255,255,0.16); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.arch-edges .ae.dim { stroke: rgba(255,255,255,0.14); stroke-dasharray: 1 5; }
.arch-edges .ae.hot { stroke: var(--accent); stroke-opacity: 0.9; stroke-width: 1.4; stroke-dasharray: 5 6; animation: dashflow 1.1s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -22; } }

.zn rect { fill: rgba(255,255,255,0.012); stroke: rgba(255,255,255,0.10); stroke-width: 1; stroke-dasharray: 4 5; }
.zn-l { fill: var(--muted); font-family: var(--ff-mono); font-size: 8.5px; letter-spacing: 0.14em; }

.an-box { fill: rgba(16,21,23,0.82); stroke: rgba(255,255,255,0.17); stroke-width: 1; }
.an.core .an-box { stroke: var(--accent); fill: rgba(114,195,85,0.09); }
.an.client .an-box { stroke: rgba(255,255,255,0.28); }
.an.edge .an-box { stroke: rgba(150,170,180,0.4); }
.an.data .an-box { stroke: rgba(118,180,205,0.5); fill: rgba(40,60,70,0.32); }
.an.cache .an-box { stroke: rgba(225,170,90,0.5); }
.an.store .an-box { stroke: rgba(165,150,215,0.5); }
.an.mon .an-box { stroke: rgba(120,200,150,0.42); }
.an.mod .an-box { fill: rgba(114,195,85,0.06); stroke: rgba(114,195,85,0.32); }

.an-t { fill: var(--text); font-family: var(--ff-mono); font-size: 9.5px; font-weight: 500; letter-spacing: -0.01em; }
.an.core .an-t { fill: #fff; }
.an.mod .an-t { fill: var(--accent); font-size: 8.5px; }
.an-s { fill: var(--muted); font-family: var(--ff-mono); font-size: 7.5px; letter-spacing: 0.02em; }

.an-ic { color: var(--muted); }
.an-ic svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.an.core .an-ic { color: var(--accent); }
.an.client .an-ic { color: #c4cdd0; }
.an.edge .an-ic { color: #9fb2bb; }
.an.data .an-ic { color: #82bcd2; }
.an.cache .an-ic { color: #e6b878; }
.an.store .an-ic { color: #b1a6e0; }
.an.mon .an-ic { color: #82cc9e; }
.an.mod { display: block; }

/* legend strip under diagrams */
.arch-legend {
  position: absolute; bottom: 10px; left: 18px; right: 18px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 12px;
  font-family: var(--ff-mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  pointer-events: none;
}
.arch-legend i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; }
.arch-legend i::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; }
.arch-legend i.svc { color: #9fb2bb; }
.arch-legend i.core { color: var(--accent); }
.arch-legend i.data { color: #82bcd2; }
.arch-legend i.flow::before { border: none; width: 14px; height: 0; border-top: 1px dashed var(--accent); }
.arch-legend i.flow { color: var(--accent); }

@media (max-width: 720px) {
  .arch-media { min-height: 250px; }
  .arch-legend { display: none; }
}

/* ============================================================
   v5 — DECORATIVE GRAPHIC ELEMENTS
   ============================================================ */

/* --- Ghost section numbers --- */
.section[data-num]::after {
  content: attr(data-num);
  position: absolute;
  right: -0.02em;
  top: clamp(20px, 5vh, 70px);
  font-family: var(--ff-display);
  font-size: clamp(8rem, 17vw, 19rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.042);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
#about[data-num]::after    { top: clamp(40px, 7vh, 90px); }
#capabilities[data-num]::after { right: calc(var(--gutter) * 0.4); top: clamp(60px, 10vh, 130px); }
#career[data-num]::after   { top: clamp(20px, 4vh, 55px); }
#work[data-num]::after     { top: clamp(55px, 9vh, 110px); right: 0; }

/* --- Section separators --- */
.section-sep {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  height: 0;
}
.section-sep::before,
.section-sep::after {
  content: "";
  flex: 1;
  height: 1px;
}
.section-sep::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 70%);
}
.section-sep::after {
  background: linear-gradient(270deg, transparent, rgba(255,255,255,0.07) 70%);
}
.section-sep .sep-gem {
  color: var(--accent);
  font-size: 0.5rem;
  padding: 0 22px;
  flex-shrink: 0;
  opacity: 0.45;
  letter-spacing: 0.25em;
  transform: translateY(-0.5px);
}

/* --- Blockquote decorative opening mark --- */
.about-quote { position: relative; overflow: visible; }
.about-quote::before {
  content: "\201C";
  position: absolute;
  top: -0.32em;
  left: -0.16em;
  font-size: 5.5em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.07;
  pointer-events: none;
  font-family: var(--ff-display);
  font-weight: 700;
  z-index: 0;
}

/* --- "RS" ghost monogram in contact --- */
.contact { overflow: hidden; }
.contact::after {
  content: "RS";
  position: absolute;
  right: -0.04em;
  bottom: -0.18em;
  font-family: var(--ff-display);
  font-size: clamp(14rem, 28vw, 26rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(114,195,85,0.07);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* --- Career timeline: accent glow along spine --- */
.timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    rgba(114,195,85,0.3) 20%,
    rgba(114,195,85,0.08) 60%,
    transparent 100%
  );
  opacity: 0.35;
  pointer-events: none;
}

/* --- Hide decorative text on small screens --- */
@media (max-width: 720px) {
  .section[data-num]::after { display: none; }
  .contact::after { display: none; }
}

/* ============================================================
   v4 — REFINED FONTS · CREATIVE TEXTURE · GOOD/BAD VIZ · SCROLL
   ============================================================ */

/* mono everywhere it was used keeps Spline Sans Mono via --ff-mono */
.eyebrow, .mono, .hero-eyebrow .who, .hero-stats .stat .lbl,
.section-head .label, .stat-strip .cell .k, .proj-role, .proj-cat, .proj-tech .s,
.tl-when, .tl-role .co, .tl-badge, .proj-links a, .chip, .pattern-tag,
.about-signature, .contact-sub, .scroll-hint { font-family: var(--ff-mono); }

/* hero h1 — let the display face show its character */
.hero h1 { font-weight: 500; letter-spacing: -0.03em; }
.section-title { letter-spacing: -0.03em; }

/* scroll reveal variants (zoox-style) */
.r-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.r-up.in { opacity: 1; transform: none; }
.r-wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.r-wipe.in { clip-path: inset(0 0 0 0); }
.r-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.r-scale.in { opacity: 1; transform: none; }
.r-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.r-stagger.in > * { opacity: 1; transform: none; }
.r-stagger.in > *:nth-child(2) { transition-delay: 0.07s; }
.r-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.r-stagger.in > *:nth-child(4) { transition-delay: 0.21s; }
.r-stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .r-up, .r-scale, .r-stagger > * { opacity: 1; transform: none; transition: none; }
  .r-wipe { clip-path: none; transition: none; }
}

/* parallax base — JS sets --py */
[data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

/* ============================ GOOD vs BAD ARCHITECTURE ============================ */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch;
  position: relative;
}
.compare-vs {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5;
  width: 66px; height: 66px; display: grid; place-items: center;
  background: var(--bg-1);
  border-radius: 50%;
  font-family: var(--ff-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text);
  box-shadow: 0 0 0 8px var(--bg), 0 20px 44px -24px rgba(0,0,0,0.9);
}
.compare-vs span { position: relative; z-index: 3; display: inline-flex; align-items: center; }
.vs-label { display: block; }
/* crisp static ring */
.compare-vs::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; z-index: 1;
  border: 1px solid var(--line-2);
  background: radial-gradient(circle at 50% 30%, rgba(114,195,85,0.14), transparent 70%);
}

.cpanel {
  position: relative; z-index: 0;
  background: var(--line-2);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease);
}
.cpanel > * { position: relative; z-index: 1; }
/* inner fill, inset 1px with MATCHING 16px chamfer -> diagonals stay parallel, uniform border on folds */
.cpanel::before {
  content: ""; position: absolute; inset: 1px; z-index: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.022), rgba(255,255,255,0.004)), var(--bg-1);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.cpanel.bad::before  { background: linear-gradient(160deg, rgba(176,82,64,0.07), rgba(176,82,64,0.01)), var(--bg-1); }
.cpanel.good::before { background: linear-gradient(160deg, rgba(114,195,85,0.07), rgba(114,195,85,0.01)), var(--bg-1); }
.cpanel-head { padding: 26px 28px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cpanel-tag {
  font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 11px; display: inline-flex; align-items: center; gap: 7px;
}
.cpanel.bad .cpanel-tag  { background: rgba(176,82,64,0.14); color: #d98a7c; border: 1px solid rgba(176,82,64,0.3); }
.cpanel.good .cpanel-tag { background: rgba(114,195,85,0.16); color: var(--accent-soft); border: 1px solid rgba(114,195,85,0.34); }
.cpanel-tag .dt { width: 6px; height: 6px; border-radius: 50%; }
.cpanel.bad .cpanel-tag .dt  { background: #c66; }
.cpanel.good .cpanel-tag .dt { background: var(--accent); }
.cpanel-head h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; text-align: right; }
.cpanel-head h3 span { display: block; font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 400; }
.cpanel-media { position: relative; height: 300px; }
.cpanel-media .arch-mount { position: absolute; inset: 0; }
.cpanel-foot { padding: 18px 28px 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.cpanel-trait { display: flex; align-items: flex-start; gap: 11px; font-size: 0.9rem; color: var(--text-dim); }
.cpanel-trait .ti { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; }
.cpanel.bad .cpanel-trait .ti  { color: #c0705f; }
.cpanel.good .cpanel-trait .ti { color: var(--accent); }
.compare-note { text-align: center; color: var(--muted); font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.03em; margin-top: 34px; }
.compare-note b { color: var(--text); font-weight: 500; }

@media (max-width: 860px) {
  .compare { grid-template-columns: 1fr; gap: 44px; }
  .compare-vs { display: none; }
}

/* diagram extras for chaos/order */
.arch-edges .ae.bad { stroke: rgba(190,96,78,0.42); stroke-dasharray: none; animation: none; }
.arch-edges .ae.bad.x { stroke: rgba(200,86,70,0.6); }
.an.bad .an-box { stroke: rgba(190,96,78,0.45); fill: rgba(40,22,20,0.5); }
.an.bad .an-t { fill: #cf9c92; }
.an.godobj .an-box { stroke: rgba(210,90,72,0.7); fill: rgba(80,30,24,0.5); }
.an.godobj .an-t { fill: #e8b0a4; }
