@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --green: #0b3d2e;
  --green2: #123f31;
  --green-glow: #10b981;
  --deep: #101412;
  --ink: #19201c;
  --muted: #68736b;
  --gold: #c6a15b;
  --gold-glow: #fbbf24;
  --ivory: #f4f2ec;
  --paper: #faf9f5;
  --card-bg: #fffefa;
  --line: rgba(25, 32, 28, 0.13);
  --header-bg: rgba(250, 249, 245, 0.92);
  --tag-bg: #f0f0e9;
  --section-alt: #f0efe8;
  --section-manifesto: #eaece3;
  --social-hover: #eeeee7;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: Manrope, 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
  --max: 1220px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 24px 60px rgba(18, 36, 26, 0.08);
}

[data-theme="dark"] {
  --green: #10b981;
  --green2: #059669;
  --green-glow: #34d399;
  --deep: #050806;
  --ink: #f1f5f2;
  --muted: #94a397;
  --gold: #e5b869;
  --gold-glow: #fcd34d;
  --ivory: #0f1512;
  --paper: #090d0b;
  --card-bg: rgba(15, 22, 18, 0.85);
  --line: rgba(255, 255, 255, 0.09);
  --header-bg: rgba(9, 13, 11, 0.92);
  --tag-bg: rgba(255, 255, 255, 0.06);
  --section-alt: #0c120e;
  --section-manifesto: #0e1511;
  --social-hover: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

.section-wrap {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  padding: 12px;
}
.skip-link:focus { top: 12px; }

/* Header & Theme Switcher */
.site-header {
  height: 88px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - var(--max)) / 2));
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--green);
  color: var(--ivory);
  font: 700 22px var(--serif);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(11, 61, 46, 0.2);
}
.brand-mark span { color: var(--gold); }
.brand-name {
  font: 800 11px var(--display);
  letter-spacing: .13em;
  line-height: 1.7;
}
.brand-name small {
  display: block;
  font: 10px var(--mono);
  letter-spacing: .06em;
  color: var(--muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.theme-toggle:hover {
  transform: scale(1.08) rotate(15deg);
  border-color: var(--gold);
}
.theme-icon-light, .theme-icon-dark {
  font-size: 16px;
  position: absolute;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
[data-theme="dark"] .theme-icon-dark { transform: translateY(0); opacity: 1; }
[data-theme="dark"] .theme-icon-light { transform: translateY(-26px); opacity: 0; }
:root:not([data-theme="dark"]) .theme-icon-dark { transform: translateY(26px); opacity: 0; }
:root:not([data-theme="dark"]) .theme-icon-light { transform: translateY(0); opacity: 1; }

.nav {
  display: flex;
  align-items: center;
  gap: 31px;
  font-size: 12px;
  color: var(--muted);
}
.nav > a:not(.nav-cta) { transition: color .2s; }
.nav > a:not(.nav-cta):hover { color: var(--green); }
.nav-cta {
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 3px;
  color: var(--ink);
  transition: border-color .25s, transform .2s;
}
.nav-cta:hover { border-color: var(--gold); transform: translateY(-2px); }
.nav-cta span { color: var(--gold); margin-left: 8px; }
.menu-toggle { display: none; }

/* Hero Section */
.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  position: relative;
  padding-top: 50px;
  padding-bottom: 72px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  font: 10px var(--mono);
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse-live 2s infinite;
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  font: 600 clamp(54px, 6.5vw, 91px)/.99 var(--display);
  letter-spacing: -.075em;
  margin: 29px 0 25px;
  max-width: 680px;
}
.hero h1 em, .about-left h2 em, .connect-panel h2 em, .manifesto-inner > p em {
  font: italic 500 1.02em var(--serif);
  color: var(--green);
  letter-spacing: -.06em;
}
.outline-word {
  color: transparent;
  -webkit-text-stroke: 1px rgba(25, 32, 28, .5);
}
[data-theme="dark"] .outline-word {
  -webkit-text-stroke: 1px rgba(255, 255, 255, .5);
}
.hero-intro {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 490px;
  margin-bottom: 29px;
}
.hero-actions, .connect-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding: 15px 19px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), background .25s, border-color .25s, box-shadow .25s;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.button span { font-size: 16px; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green2); }
.button-primary span { color: var(--gold); }
.button-quiet { border: 1px solid var(--line); color: var(--ink); }
.button-quiet:hover { border-color: var(--green); }
.hero-footnote {
  display: flex;
  gap: 20px;
  margin-top: 56px;
  font: 9px var(--mono);
  letter-spacing: .1em;
  color: var(--muted);
}

/* 3D WebGL Canvas & Hero Art */
.hero-art {
  height: 480px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-3d-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  z-index: 0;
  pointer-events: auto;
}
.hero-art:before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), rgba(198, 161, 91, 0.08) 48%, transparent 72%);
  filter: blur(12px);
  z-index: -1;
}
.art-orbit {
  position: absolute;
  border: 1px solid rgba(11, 61, 46, .2);
  border-radius: 50%;
  width: 72%;
  aspect-ratio: 1;
  transform: rotate(-24deg) scaleY(.68);
  animation: orbit 22s linear infinite;
  pointer-events: none;
}
[data-theme="dark"] .art-orbit { border-color: rgba(16, 185, 129, 0.25); }
.orbit-two {
  width: 88%;
  transform: rotate(38deg) scaleY(.52);
  border-color: rgba(198, 161, 91, .6);
  animation-duration: 28s;
  animation-direction: reverse;
}
.orbit-three {
  width: 56%;
  transform: rotate(68deg) scaleY(.9);
  border-style: dashed;
  border-color: rgba(11, 61, 46, .18);
  animation-duration: 34s;
}
.art-core {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(145deg, #124633, #082b20);
  color: #f5f0e5;
  box-shadow: 0 24px 70px rgba(11, 61, 46, .26), inset 0 0 0 1px rgba(255, 255, 255, .15);
  z-index: 1;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
.core-symbol { font: 500 88px/.9 var(--serif); letter-spacing: -.1em; }
.core-symbol span { color: var(--gold); }
.core-kicker { font: 9px var(--mono); letter-spacing: .2em; color: #b8c9bc; }
.art-label {
  position: absolute;
  font: 9px var(--mono);
  letter-spacing: .14em;
  color: var(--muted);
}
.label-top { top: 40px; right: 5%; }
.label-bottom { bottom: 45px; left: 6%; }
.art-line {
  position: absolute;
  width: 1px;
  height: 74%;
  background: linear-gradient(transparent, rgba(198, 161, 91, .7), transparent);
  transform: rotate(44deg);
  pointer-events: none;
}
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 9px var(--mono);
  letter-spacing: .12em;
  color: var(--muted);
}
.hero-scroll span { width: 30px; height: 1px; background: var(--gold); }

@keyframes orbit { to { rotate: 360deg; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Stats Bar Section */
.stats-section {
  padding-top: 10px;
  padding-bottom: 50px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  padding: 24px 22px;
  border-radius: 4px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.stat-value {
  font: 700 clamp(30px, 3.5vw, 42px)/1.1 var(--display);
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-plus {
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 400;
  margin-left: 2px;
}
.stat-dot-live {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  margin-left: 8px;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse-live 2s infinite;
}
.stat-label {
  font: 11px/1.6 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 8px;
}

/* Ticker */
.ticker {
  overflow: hidden;
  background: var(--green);
  color: #e8e8dc;
  padding: 18px 0;
}
.ticker-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 38px;
  min-width: max-content;
  animation: marquee 32s linear infinite;
  font: 10px var(--mono);
  letter-spacing: .13em;
}
.ticker-track i { font-style: normal; color: var(--gold); font-size: 17px; }
@keyframes marquee { to { transform: translateX(-25%); } }

/* Work Section & 3D Tilt Cards */
.work-section { padding-top: 100px; padding-bottom: 118px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 44px;
}
.section-heading h2, .about-left h2 {
  font: 600 clamp(38px, 4.6vw, 61px)/1.1 var(--display);
  letter-spacing: -.065em;
  margin: 16px 0 0;
}
.gold-dot { color: var(--gold); }
.section-heading > p {
  max-width: 365px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 3px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  border-radius: 4px;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.project-card:hover {
  border-color: rgba(198, 161, 91, 0.45);
  box-shadow: var(--shadow-lg);
}
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(198, 161, 91, 0.18), transparent 60%);
  z-index: 4;
}
.project-card:hover .card-glare { opacity: 1; }

.project-card.featured-large { grid-column: span 1; }

.project-visual {
  height: 178px;
  position: relative;
  overflow: hidden;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(12px);
}
.project-visual:before, .project-visual:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(244, 242, 236, .24);
  border-radius: 50%;
  width: 220px;
  height: 220px;
  transform: scaleX(1.7) rotate(-24deg);
}
.project-visual:after {
  width: 150px;
  height: 150px;
  transform: scaleX(1.7) rotate(30deg);
  border-color: rgba(198, 161, 91, .6);
}
.project-visual .visual-index {
  position: absolute;
  top: 16px;
  left: 18px;
  font: 10px var(--mono);
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .7);
}
.project-visual .visual-word {
  position: relative;
  z-index: 1;
  font: 500 clamp(25px, 3vw, 40px)/1 var(--serif);
  letter-spacing: -.04em;
  color: #f3f0e5;
  text-align: center;
  padding: 20px;
  max-width: 95%;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}
.project-visual .visual-word em { color: var(--gold); font-weight: 400; }
.project-visual.v-1 { background: linear-gradient(135deg, #0b3d2e, #1c5943); }
.project-visual.v-2 { background: linear-gradient(135deg, #15251e, #365b4a); }
.project-visual.v-3 { background: linear-gradient(135deg, #263e33, #0b3d2e); }
.project-visual.v-4 { background: linear-gradient(135deg, #1d3028, #17201b); }
.project-visual.v-5 { background: linear-gradient(135deg, #213f34, #507a5c); }
.project-visual.v-6 { background: linear-gradient(135deg, #0b3d2e, #9d8655); }

.project-content {
  padding: 22px 23px 20px;
  transform: translateZ(16px);
}
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.project-category {
  font: 9px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-pill {
  font: 9px var(--mono);
  padding: 6px 8px;
  border: 1px solid rgba(16, 185, 129, .25);
  border-radius: 30px;
  color: var(--green);
  white-space: nowrap;
}
.project-card h3 {
  font: 600 20px/1.25 var(--display);
  letter-spacing: -.04em;
  margin-bottom: 10px;
  color: var(--ink);
}
.project-card p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
}
.tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 19px;
}
.tag-list span {
  font-size: 9px;
  padding: 6px 8px;
  background: var(--tag-bg);
  color: var(--ink);
  border-radius: 2px;
  border: 1px solid var(--line);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}
.project-link span { color: var(--gold); font-size: 15px; }

.archive-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin: 92px 0 25px;
}
.archive-top h3 {
  font: 600 29px var(--display);
  letter-spacing: -.05em;
  margin: 10px 0 0;
  color: var(--ink);
}
.archive-top h3 span {
  font: 11px var(--mono);
  color: var(--gold);
  vertical-align: top;
  margin-left: 6px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
}
.search-box > span { font-size: 23px; }
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 12px;
  color: var(--ink);
}
.search-box input:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter-button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  padding: 9px 12px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.filter-button:hover, .filter-button[aria-pressed=true] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.project-grid .project-visual { height: 124px; }
.project-grid .project-content { padding: 18px; }
.project-grid .project-card h3 { font-size: 16px; }
.project-grid .project-card p { font-size: 11px; }
.project-grid .project-visual .visual-word { font-size: 28px; }
.empty-state { padding: 45px 0; color: var(--muted); text-align: center; font-size: 13px; }
.archive-note {
  display: flex;
  gap: 13px;
  align-items: start;
  margin-top: 24px;
  padding: 17px;
  background: var(--tag-bg);
  border-radius: 3px;
  border: 1px solid var(--line);
}
.note-mark {
  display: grid;
  place-items: center;
  flex: 0 0 21px;
  height: 21px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 11px var(--serif);
  color: var(--green);
}
.archive-note p { margin: 1px 0 0; font-size: 10px; line-height: 1.7; color: var(--muted); }

/* Manifesto */
.manifesto {
  background: var(--section-manifesto);
  padding: 94px 0;
  transition: background 0.3s;
}
.manifesto-inner { position: relative; }
.manifesto-inner > p {
  font: 500 clamp(30px, 4.5vw, 57px)/1.28 var(--display);
  letter-spacing: -.055em;
  margin: 27px 0 0;
  max-width: 850px;
  color: var(--ink);
}
.manifesto-line {
  display: block;
  width: 86px;
  height: 2px;
  background: var(--gold);
  margin-top: 35px;
}

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 100px;
  padding-top: 124px;
  padding-bottom: 130px;
}
.about-left h2 { font-size: clamp(35px, 4vw, 52px); margin-top: 23px; color: var(--ink); }
.about-right { padding-top: 7px; }
.about-right p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.about-right .about-lead {
  font: 500 21px/1.5 var(--display);
  letter-spacing: -.03em;
  color: var(--ink);
}
.text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.text-link span { color: var(--gold); }

/* Expertise Section */
.expertise-section {
  background: var(--section-alt);
  padding: 110px 0 105px;
  transition: background 0.3s;
}
.expertise-section .section-heading { margin-bottom: 48px; }
.expertise-list { border-top: 1px solid var(--line); }
.expertise-item {
  display: grid;
  grid-template-columns: 70px 1fr 30px;
  align-items: center;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s;
}
.expertise-item:hover { padding-inline: 10px; }
.expertise-number { font: 10px var(--mono); color: var(--gold); }
.expertise-item h3 { font: 600 21px var(--display); letter-spacing: -.04em; margin: 0 0 6px; color: var(--ink); }
.expertise-item p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0; max-width: 620px; }
.expertise-symbol { font-size: 18px; color: var(--gold); }
.tool-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 35px; }
.tool-cloud span {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--ink);
  background: var(--tag-bg);
  border-radius: 3px;
}

/* Connect Section */
.connect-section { padding-top: 120px; padding-bottom: 94px; }
.connect-panel {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: #f4f2ec;
  padding: 66px 7%;
  min-height: 360px;
  border-radius: 4px;
}
.connect-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(198, 161, 91, .4);
  border-radius: 50%;
  right: -70px;
  top: -250px;
  box-shadow: 0 0 0 35px rgba(198, 161, 91, .035), 0 0 0 70px rgba(198, 161, 91, .025);
}
.connect-panel .eyebrow { color: #b9c6b9; position: relative; }
.connect-panel h2 {
  position: relative;
  font: 600 clamp(38px, 5vw, 62px)/1.07 var(--display);
  letter-spacing: -.06em;
  margin: 24px 0 18px;
}
.connect-panel h2 em { color: #d9c28f; }
.connect-panel p {
  position: relative;
  color: #c1ccc2;
  font-size: 12px;
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 24px;
}
.button-gold { background: var(--gold); color: #17251c; font-weight: 700; }
.button-gold:hover { background: #d3b574; }
.button-border { border: 1px solid rgba(255, 255, 255, .25); color: #f4f2ec; }
.button-border:hover { border-color: var(--gold); }
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.social-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink);
  transition: background .2s;
}
.social-grid a:hover { background: var(--social-hover); }
.social-grid b { font-weight: 400; color: var(--gold); font-size: 15px; }

/* Site Footer */
.site-footer {
  min-height: 92px;
  padding: 24px max(32px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--section-alt);
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--line);
}
.footer-brand .brand-mark { width: 34px; height: 34px; font-size: 18px; }
.footer-brand .brand-name { font-size: 9px; }
.footer-brand .brand-name small { font-size: 8px; }
.back-top { color: var(--green); font-weight: 600; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .65, .25, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.project-card.reveal { opacity: 1; }

/* Interactive Project Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.project-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 8, 0.75);
  backdrop-filter: blur(14px);
}
.modal-card {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--line);
  padding: 36px 32px 32px;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-modal.is-open .modal-card {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--line);
  transform: rotate(90deg);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-category {
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.modal-title {
  font: 700 clamp(24px, 3.5vw, 34px)/1.2 var(--display);
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: var(--ink);
}
.modal-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}
.modal-meta-box {
  background: var(--tag-bg);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  margin-bottom: 24px;
  border-radius: 2px;
}
.modal-meta-tag {
  font: 9px var(--mono);
  letter-spacing: 0.14em;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.modal-meta-box p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
}
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.modal-tags span {
  font-size: 10px;
  padding: 6px 10px;
  background: var(--tag-bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
}
.modal-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* Interactive Developer Terminal */
.terminal-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #0f1612;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 30px;
  font: 600 12px var(--mono);
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 15px rgba(16, 185, 129, 0.2);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.terminal-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #10b981;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(16, 185, 129, 0.4);
}
.terminal-pulse {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-live 1.8s infinite;
}
.terminal-widget {
  position: fixed;
  bottom: 82px;
  right: 24px;
  z-index: 999;
  width: min(540px, calc(100vw - 32px));
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 30px rgba(16, 185, 129, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}
.terminal-widget.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.terminal-header {
  background: #121915;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-controls {
  display: flex;
  gap: 7px;
}
.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
}
.t-red { background: #ff5f56; }
.t-yellow { background: #ffbd2e; }
.t-green { background: #27c93f; }
.terminal-title {
  font: 11px var(--mono);
  color: #8b9990;
  letter-spacing: 0.06em;
}
.t-exit-btn {
  background: transparent;
  border: 0;
  color: #8b9990;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}
.t-exit-btn:hover { color: #fff; }
.terminal-body {
  background: rgba(7, 12, 9, 0.96);
  backdrop-filter: blur(18px);
  padding: 16px;
  height: 310px;
  overflow-y: auto;
  font: 12px/1.6 var(--mono);
  color: #d1fae5;
  display: flex;
  flex-direction: column;
}
.terminal-output {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
}
.t-dim { color: #6b7f74; margin: 3px 0; }
.t-hl { color: #e5b869; font-weight: 600; }
.t-command { color: #34d399; margin: 6px 0 2px; }
.t-response { color: #d1fae5; margin: 2px 0 8px; white-space: pre-wrap; word-break: break-word; }
.t-link { color: #fbbf24; text-decoration: underline; }
.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}
.t-prompt {
  color: #10b981;
  font-weight: 600;
  white-space: nowrap;
}
.terminal-input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font: inherit;
  width: 100%;
}

/* Custom Cursor (Desktop Only) */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, transform 0.1s ease;
  }
  .custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
  }
  .custom-cursor-ring.is-hover {
    width: 54px;
    height: 54px;
    background: rgba(198, 161, 91, 0.14);
    border-color: var(--green);
  }
}
@media (hover: none), (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-ring {
    display: none !important;
  }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .section-wrap { width: calc(100% - 42px); }
  .site-header { padding: 0 21px; }
  .nav { gap: 17px; }
  .hero { min-height: 590px; grid-template-columns: 1.05fr .8fr; }
  .hero-art { height: 380px; }
  .hero-3d-canvas { width: 400px; height: 400px; }
  .art-core { width: 145px; height: 145px; }
  .core-symbol { font-size: 72px; }
  .about-section { gap: 45px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 72px; }
  .section-wrap { width: calc(100% - 36px); }
  .site-header { height: 72px; padding: 0 18px; }
  .brand-mark { width: 35px; height: 35px; font-size: 20px; }
  .brand-name { font-size: 9px; }
  .brand-name small { font-size: 8px; }
  .header-right { gap: 10px; }
  .menu-toggle {
    display: flex;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  .menu-toggle span { width: 15px; height: 1px; background: var(--ink); }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    padding: 16px 18px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 10px; text-align: center; }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 50px;
    padding-bottom: 60px;
    min-height: auto;
  }
  .hero h1 { font-size: clamp(48px, 13vw, 70px); margin-top: 23px; }
  .hero-intro { font-size: 13px; }
  .hero-art { height: 320px; margin-top: 16px; }
  .hero-3d-canvas { width: 320px; height: 320px; }
  .art-core { width: 130px; height: 130px; }
  .core-symbol { font-size: 64px; }
  .art-orbit { width: 68%; }
  .orbit-two { width: 83%; }
  .orbit-three { width: 54%; }
  .hero-scroll { bottom: 20px; }
  .hero-footnote { margin-top: 34px; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .ticker-track { gap: 24px; font-size: 9px; }
  .work-section { padding-top: 70px; padding-bottom: 70px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > p { margin-top: 17px; max-width: 100%; font-size: 12px; }
  .section-heading h2, .about-left h2 { font-size: 40px; }
  .featured-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-visual { height: 155px; }
  .project-content { padding: 19px; }
  .archive-top { display: block; margin: 62px 0 21px; }
  .archive-top h3 { font-size: 25px; }
  .search-box { min-width: 0; margin-top: 20px; }
  .filter-bar { gap: 6px; }
  .filter-button { font-size: 9px; padding: 8px 9px; }
  .project-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-grid .project-visual { height: 140px; }
  .project-grid .project-content { padding: 17px; }
  .manifesto { padding: 67px 0; }
  .manifesto-inner > p { font-size: 30px; }
  .about-section { grid-template-columns: 1fr; gap: 28px; padding-top: 70px; padding-bottom: 75px; }
  .about-left h2 { font-size: 36px; }
  .about-right .about-lead { font-size: 18px; }
  .expertise-section { padding: 75px 0; }
  .expertise-item { grid-template-columns: 30px 1fr 18px; gap: 12px; padding: 20px 0; }
  .expertise-item h3 { font-size: 17px; }
  .expertise-item p { font-size: 11px; }
  .tool-cloud { gap: 7px; }
  .tool-cloud span { font-size: 9px; padding: 8px 9px; }
  .connect-section { padding-top: 70px; padding-bottom: 60px; }
  .connect-panel { padding: 42px 24px; min-height: auto; }
  .connect-panel h2 { font-size: 40px; }
  .connect-panel p { font-size: 11px; }
  .connect-actions { gap: 8px; }
  .button { padding: 13px 13px; gap: 12px; font-size: 11px; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid a { padding: 15px 12px; }
  .site-footer { padding: 22px 18px; flex-wrap: wrap; }
  .site-footer > span { order: 3; width: 100%; }
  .terminal-launcher { bottom: 16px; right: 16px; padding: 10px 14px; font-size: 11px; }
  .terminal-widget { bottom: 70px; right: 16px; width: calc(100vw - 32px); }
  .modal-card { padding: 26px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
