/* ══════════════════════════════════════
   TOKENS
══════════════════════════════════════ */
:root {
  --bg:        #0C0C0E;
  --bg-2:      #111115;
  --surface:   #16161A;
  --surface-2: #1C1C22;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);
  --text:      #F0EEE8;
  --muted:     rgba(240,238,232,0.5);
  --muted-2:   rgba(240,238,232,0.35);

  /* Warm sand accent — not purple, not blue */
  --sand:      #D4A853;
  --sand-dim:  rgba(212,168,83,0.12);
  --sand-glow: rgba(212,168,83,0.25);

  --font-display: 'Syne', system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'Fira Code', monospace;
  --font-body:    'Syne', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 14px;
  --max:       1100px;
  --nav-h:     60px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding-left: 1.1rem; }
p { margin: 0; }

/* ── GRAIN TEXTURE ── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain-shift 0.5s steps(2) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%,-3%); }
  50%  { transform: translate(3%,1%); }
  75%  { transform: translate(-1%,3%); }
  100% { transform: translate(2%,-1%); }
}

/* ── AMBIENT ORBS ── */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px; height: 600px;
  top: -10%; left: -10%;
  background: radial-gradient(circle, rgba(212,168,83,0.07) 0%, transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  width: 500px; height: 500px;
  top: 30%; right: -10%;
  background: radial-gradient(circle, rgba(100,140,255,0.055) 0%, transparent 70%);
  animation-delay: -7s;
}

.orb-3 {
  width: 400px; height: 400px;
  bottom: 0; left: 30%;
  background: radial-gradient(circle, rgba(212,168,83,0.045) 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 60px) scale(1.1); }
}

/* ── LAYOUT ── */
.container {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.muted { color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  left: 1rem; top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--sand);
  color: #000;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.15s;
  z-index: 9999;
}
.skip-link:focus { transform: translateY(0); }

/* ══════════════════════════════════════
   TOPBAR
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(12,12,14,0.75);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.brand-mark {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Nav links */
.nav-links {
  display: none;
  position: absolute;
  right: 1rem;
  top: calc(var(--nav-h) - 4px);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 0.5rem;
  min-width: 200px;
}

.nav-links a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.12s, color 0.12s;
}
.nav-links a:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.nav-toggle {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  display: grid;
  place-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--text);
  border-radius: 99px;
}

body.nav-open .nav-links { display: block; }

@media (min-width: 700px) {
  .nav-toggle { display: none; }
  .nav-links {
    position: static;
    display: flex;
    gap: 0.1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: auto;
  }
  .nav-links a { display: inline-flex; padding: 0.5rem 0.7rem; }
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

/* Status badge */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border-2);
  padding: 0.35rem 0.875rem;
  border-radius: 99px;
  margin-bottom: 1.75rem;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

/* Title */
.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text);
}

.name-text {
  background: linear-gradient(100deg, var(--sand) 0%, #F5D48A 50%, var(--sand) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

.cursor-blink {
  color: var(--sand);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Role tags */
.hero__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.role-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.role-sep {
  color: var(--border-2);
  font-size: 0.7rem;
}

/* Subtitle */
.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: 2rem;
}

/* Actions */
.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Meta */
.hero__meta { display: flex; align-items: center; gap: 0.75rem; }

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.875rem;
  border-radius: 99px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.15s, color 0.15s;
}
.contact-pill:hover { border-color: var(--border-2); color: var(--text); }

/* ── TERMINAL ── */
.hero__terminal {
  display: none;
  position: relative;
}

.terminal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.t-red    { background: #FF5F57; }
.t-yellow { background: #FEBC2E; }
.t-green  { background: #28C840; }

.terminal__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-2);
  margin-left: 0.5rem;
}

.terminal__body {
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.t-line { display: flex; align-items: baseline; gap: 0.5rem; }
.t-prompt { color: var(--sand); font-size: 0.75rem; }
.t-cmd    { color: var(--text); }
.t-out    { color: var(--muted); padding-left: 1.1rem; }
.t-key    { color: #7dd3fc; }
.t-val    { color: #86efac; }
.t-spacer { height: 0.5rem; }

.t-cursor-blink {
  color: var(--sand);
  animation: blink 1.1s step-end infinite;
  font-size: 0.9rem;
}

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  padding: 0.45rem 0.875rem;
  border-radius: 99px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.float-badge-1 {
  bottom: -0.75rem;
  left: -1rem;
  animation: float 4s ease-in-out infinite;
}

.float-badge-2 {
  top: -0.75rem;
  right: -1rem;
  animation: float 4s ease-in-out infinite 2s;
}

.f-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-2), transparent);
  animation: scroll-drop 2s ease-in-out infinite;
}

@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .hero__terminal { display: block; }
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.07); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--sand-dim);
  border-color: rgba(212,168,83,0.3);
  color: var(--sand);
}
.btn-primary:hover {
  background: var(--sand-glow);
  border-color: rgba(212,168,83,0.5);
  box-shadow: 0 0 24px rgba(212,168,83,0.15);
}

.btn-ghost { color: var(--muted); }

/* ══════════════════════════════════════
   SECTION HEADINGS
══════════════════════════════════════ */
.section-head {
  margin-bottom: 3rem;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-head p {
  margin-top: 1rem;
  max-width: 70ch;
  line-height: 1.75;
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-card {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  transition: background 0.15s;
}
.about-card:hover { background: var(--surface-2); }

.about-icon {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.about-card h3 {
  margin: 0 0 0.625rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 800px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════════
   PROJECTS
══════════════════════════════════════ */
.proud-block {
  display: grid;
  gap: 1.5rem;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 900px) {
  .proud-block {
    grid-template-columns: 1.2fr auto;
    align-items: center;
  }
}

.proud-title {
  margin: 0.9rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.proud-desc {
  max-width: 70ch;
  line-height: 1.75;
}

.proud-points {
  margin: 1.25rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.proud-points span {
  font-weight: 700;
  color: var(--text);
}

.proud-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  transform: translateY(-3px);
}

/* Invisible full-card link for cursor UX */
.project-card-link {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── BROWSER MOCKUP ── */
.project-preview {
  position: relative;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FEBC2E; }
.browser-dots span:nth-child(3) { background: #28C840; }

.browser-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted-2);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-viewport {
  height: 200px;
  overflow: hidden;
  padding: 0;
  transform-origin: top;
  position: relative;
}

/* Helper for mock content lines */
.mock-line {
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  margin-bottom: 4px;
  opacity: 0.15;
}
.w30 { width: 30%; }
.w35 { width: 35%; }
.w40 { width: 40%; }
.w45 { width: 45%; }
.w50 { width: 50%; }
.w55 { width: 55%; }
.w60 { width: 60%; }
.w65 { width: 65%; }
.w70 { width: 70%; }
.w75 { width: 75%; }
.w80 { width: 80%; }
.w85 { width: 85%; }
.w90 { width: 90%; }

/* ════ ORBIT UI ════ */
.orbit-ui {
  background: #F7F6F3;
  color: #0D0D0D;
}

.ou-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid #E4E3DF;
  background: rgba(247,246,243,0.96);
}

.ou-logo {
  width: 22px; height: 22px;
  background: #0D0D0D;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.45rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ou-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.ou-nav span {
  height: 3px; width: 24px;
  background: #CCCBC7;
  border-radius: 2px;
}

.ou-cta {
  width: 36px; height: 14px;
  background: #2B5BFF;
  border-radius: 2px;
}

.ou-hero {
  display: flex;
  gap: 8px;
  padding: 10px;
  height: calc(100% - 34px);
}

.ou-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
}

.ou-h1 { height: 7px !important; opacity: 0.35 !important; background: #0D0D0D !important; }
.ou-body { height: 4px !important; opacity: 0.18 !important; background: #4A4A4A !important; }
.ou-h1:first-child { margin-top: 0; }
.ou-body { margin-top: 2px; }

.ou-btns {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.ou-btn-solid {
  height: 12px; width: 44px;
  background: #2B5BFF;
  border-radius: 2px;
}

.ou-btn-ghost {
  height: 12px; width: 36px;
  border: 1px solid #E4E3DF;
  border-radius: 2px;
}

.ou-widget {
  width: 110px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #E4E3DF;
  border-radius: 4px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ou-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ou-badge {
  font-family: var(--font-mono);
  font-size: 0.38rem;
  color: #16A34A;
  border: 1px solid rgba(22,163,74,0.25);
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(22,163,74,0.06);
}

.ou-stats {
  display: flex;
  gap: 4px;
}

.ou-stat-box {
  flex: 1;
  background: #F2F1EE;
  border-radius: 2px;
  padding: 4px 3px;
}

.ou-stat-n {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  color: #0D0D0D;
  line-height: 1;
  margin-bottom: 2px;
}

.ou-chart {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 40px;
  padding-top: 4px;
}

.ou-bar {
  flex: 1;
  height: var(--h);
  background: #2B5BFF;
  opacity: 0.4;
  border-radius: 1px 1px 0 0;
}

.ou-bar-hi { opacity: 1; }

/* ════ NOCTURNE UI ════ */
.nocturne-ui {
  background: #080808;
  color: #F0EDE8;
}

.nu-topbar {
  display: flex;
  align-items: center;
  height: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 8px;
  gap: 4px;
}

.nu-logo {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  color: #C8F23C;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.nu-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  justify-content: flex-end;
}

.nu-nav span {
  width: 20px; height: 14px;
  border-left: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
}

.nu-nav span::after {
  content: '';
  display: block;
  width: 10px; height: 2px;
  background: rgba(255,255,255,0.3);
  border-radius: 1px;
}

.nu-cta {
  width: 28px !important; height: 14px !important;
  background: #C8F23C !important;
  border-left: none !important;
}
.nu-cta::after { display: none !important; }

.nu-body {
  display: flex;
  height: calc(100% - 55px);
  padding: 8px;
  gap: 6px;
}

.nu-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nu-eyebrow { opacity: 0.25 !important; background: #C8F23C !important; height: 3px !important; }
.nu-h1      { height: 8px !important; background: #F0EDE8 !important; opacity: 0.7 !important; }
.nu-h1.nu-accent { background: #C8F23C !important; opacity: 0.85 !important; }
.nu-body-t  { height: 3px !important; background: rgba(240,237,232,0.3) !important; opacity: 1 !important; }

.nu-btns {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.nu-btn-gold {
  height: 10px; width: 36px;
  background: #C8F23C;
  border-radius: 2px;
}

.nu-btn-ghost {
  height: 10px; width: 30px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px;
}

.nu-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.nu-stat {
  flex: 1;
  padding: 3px 4px;
}

.nu-sn {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}

.nu-sdiv {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.nu-right {
  width: 70px;
  flex-shrink: 0;
}

.nu-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.nu-img-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 55%, rgba(200,242,60,0.06), transparent 70%);
}

.nu-img-caption {
  position: absolute;
  bottom: 5px; left: 5px; right: 5px;
}

.nu-cap-sm { height: 2px !important; background: #C8F23C !important; opacity: 0.5 !important; margin-bottom: 3px !important; }
.nu-cap-lg { height: 4px !important; background: rgba(240,237,232,0.5) !important; opacity: 1 !important; }

.nu-metric-row {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  height: 33px;
  padding: 0 8px;
}

.nu-metric {
  flex: 1;
  padding: 0 4px;
}

.nu-met-n {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

.nu-metric-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ════ FIELDSTONE UI ════ */
.fieldstone-ui {
  background: #16120E;
  color: #EDE4D4;
}

.fs-topbar {
  display: flex;
  align-items: center;
  height: 22px;
  border-bottom: 1px solid rgba(184,150,90,0.15);
  padding: 0 8px;
  gap: 4px;
  background: rgba(22,18,14,0.95);
}

.fs-brand {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  color: #B8965A;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.fs-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  justify-content: flex-end;
}

.fs-nav span {
  width: 22px; height: 22px;
  border-left: 1px solid rgba(184,150,90,0.12);
  display: flex; align-items: center; justify-content: center;
}

.fs-nav span::after {
  content: '';
  display: block;
  width: 10px; height: 2px;
  background: rgba(237,228,212,0.25);
  border-radius: 1px;
}

.fs-hero {
  display: flex;
  gap: 6px;
  height: calc(100% - 56px);
  padding: 8px 8px 0;
}

.fs-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fs-eyebrow { height: 3px !important; background: #B8965A !important; opacity: 0.5 !important; }
.fs-h1      { height: 8px !important; background: #EDE4D4 !important; opacity: 0.7 !important; }
.fs-h1.fs-em { background: #D4AE72 !important; opacity: 0.9 !important; }
.fs-body    { height: 3px !important; background: rgba(237,228,212,0.35) !important; opacity: 1 !important; }

.fs-btns {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.fs-btn-brass {
  height: 10px; width: 36px;
  background: #B8965A;
  border-radius: 2px;
}

.fs-btn-ghost {
  height: 10px; width: 30px;
  border: 1px solid rgba(237,228,212,0.15);
  border-radius: 2px;
}

.fs-right {
  width: 70px;
  flex-shrink: 0;
}

.fs-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #231A12 0%, #16120E 100%);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.fs-img-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 60%, rgba(184,150,90,0.12), transparent 65%);
}

.fs-caption {
  position: absolute;
  bottom: 5px; left: 5px; right: 5px;
}

.fs-cap-sm { height: 2px !important; background: #B8965A !important; opacity: 0.6 !important; margin-bottom: 3px !important; }
.fs-cap-lg { height: 4px !important; background: rgba(237,228,212,0.5) !important; opacity: 1 !important; }

.fs-metrics {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(184,150,90,0.12);
  height: 34px;
  padding: 0 8px;
}

.fs-met {
  flex: 1;
  padding: 0 4px;
}

.fs-mn {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  color: #EDE4D4;
  display: block;
  margin-bottom: 2px;
}

.fs-met-sep {
  width: 1px;
  height: 14px;
  background: rgba(184,150,90,0.15);
  flex-shrink: 0;
}

/* ── PROJECT INFO ── */
.project-info {
  padding: 1.25rem 1.25rem 1.5rem;
  position: relative;
  z-index: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}

.ptag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.project-info h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-info p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sand);
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(212,168,83,0.3);
  padding-bottom: 2px;
  transition: gap 0.15s, border-color 0.15s;
  position: relative;
  z-index: 2;
}
.project-link:hover { gap: 0.55rem; border-color: var(--sand); }

/* ══════════════════════════════════════
   SKILLS
══════════════════════════════════════ */
.skills-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 800px) {
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
}

.skill-card {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  transition: background 0.15s;
}
.skill-card:hover { background: var(--surface-2); }

.skill-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--sand);
  opacity: 0.6;
  letter-spacing: 0.12em;
  margin-bottom: 0.875rem;
}

.skill-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.skill-card ul {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-card li {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-block {
  display: grid;
  gap: 3rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 760px) {
  .contact-block { grid-template-columns: 1fr auto; align-items: center; }
}

.contact-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 50ch;
  margin-bottom: 1.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 2px solid var(--sand);
  padding-bottom: 2px;
  transition: color 0.15s;
}
.contact-email:hover { color: var(--sand); }

.contact-socials-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.875rem;
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.social-link:hover {
  border-color: var(--border-2);
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: rgba(0,0,0,0.2);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted-2);
  transition: color 0.15s;
}
.footer-top:hover { color: var(--text); }

/* ══════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger children inside grids */
.about-grid .about-card:nth-child(2)     { transition-delay: 0.08s; }
.about-grid .about-card:nth-child(3)     { transition-delay: 0.16s; }
.proud-block                             { transition-delay: 0.02s; }
.projects-grid .project-card:nth-child(2){ transition-delay: 0.1s; }
.projects-grid .project-card:nth-child(3){ transition-delay: 0.2s; }
.skills-grid .skill-card:nth-child(2)    { transition-delay: 0.06s; }
.skills-grid .skill-card:nth-child(3)    { transition-delay: 0.12s; }
.skills-grid .skill-card:nth-child(4)    { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grain  { animation: none; }
  .orb    { animation: none; }
  .name-text { animation: none; }
  .cursor-blink { animation: none; }
  .float-badge  { animation: none; }
  .scroll-line  { animation: none; }
  .status-dot   { animation: none; }
}
