/* ==========================================================================
   00 — DESIGN TOKENS
   Aesthetic: Robotics, Motorsport, Electronics, Desert, Dust, Engineering.
   Palette: Carbon-fibre charcoal, asphalt ink, safety-signal motorsport orange,
   drafting paper off-white, copper circuit tones.
   ========================================================================== */
:root {
  --accent: #ff5a1f;           /* Motorsport / Signal Safety Orange */
  --accent-dim: #a83e16;
  --accent-glow: rgba(255, 90, 31, 0.28);
  --accent-hot: #ff8533;
  --copper: #d97736;

  --ink: #0a0908;              /* Base chassis, warm carbon black */
  --charcoal: #141311;         /* Primary panel base */
  --charcoal-2: #1c1a17;       /* Raised panel / card base */
  --charcoal-3: #26231f;       /* Highlight borders & frames */
  --paper: #ece7dc;            /* Drafting paper off-white */
  --paper-dim: #b8b2a4;        /* Technical readout muted text */
  --gray: #6f6a61;
  --line: rgba(236,231,220,0.12);
  --line-strong: rgba(236,231,220,0.26);

  --font-display: 'Anton', 'Arial Narrow Bold', 'Arial Narrow', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', Courier, monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-hero: clamp(3.4rem, 12vw, 10.5rem);
  --fs-giant-num: clamp(5.5rem, 20vw, 18rem);
  --fs-h1: clamp(2.4rem, 6.5vw, 5rem);
  --fs-h2: clamp(1.8rem, 4vw, 3rem);
  --fs-h3: clamp(1.25rem, 2.4vw, 1.8rem);
  --fs-body: clamp(0.96rem, 0.9vw + 0.58rem, 1.05rem);
  --fs-small: 0.84rem;
  --fs-label: 0.72rem;

  --pad: clamp(20px, 4.5vw, 64px);
  --pad-y: clamp(70px, 11vw, 140px);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ==========================================================================
   01 — SHARED TECHNICAL CHROME
   Atmospheric film grain, corner alignment crosshairs, frame counters, HUD rails
   ========================================================================== */
.grain {
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}

.frame-corners { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.frame-corners span {
  position: absolute; width: 18px; height: 18px;
  border-color: var(--line-strong); border-style: solid; border-width: 0;
}
.frame-corners .tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.frame-corners .tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.frame-corners .bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.frame-corners .br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

.frame-readout {
  position: fixed; top: 14px; left: 42px; z-index: 55;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--paper-dim); pointer-events: none; display: flex; align-items: center; gap: 8px;
}
.frame-readout .rec-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2s infinite ease-in-out;
}
.frame-counter {
  position: fixed; bottom: 14px; right: 42px; z-index: 55;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--paper-dim); pointer-events: none;
}
.frame-counter b { color: var(--accent); font-weight: 700; }

.edge-rail {
  position: fixed; top: 50%; left: 22px; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.3em;
  color: var(--paper-dim); z-index: 55; pointer-events: none; opacity: 0.6;
}

.side-nav {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 56; display: flex; flex-direction: column; gap: 14px;
  align-items: flex-end;
}
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--paper-dim);
}
.side-nav .nav-label {
  opacity: 0; transform: translateX(6px);
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap; background: rgba(10,9,8,0.85); padding: 2px 6px; border: 1px solid var(--line);
}
.side-nav a:hover .nav-label,
.side-nav a.active .nav-label { opacity: 1; transform: translateX(0); }
.side-nav .nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-strong);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  flex-shrink: 0;
}
.side-nav a.active .nav-dot {
  background: var(--accent);
  transform: scale(1.6);
  box-shadow: 0 0 10px var(--accent);
}
.side-nav a.active { color: var(--paper); }

@media (max-width: 900px) {
  .edge-rail, .side-nav, .frame-readout, .frame-counter { display: none; }
}

/* ==========================================================================
   02 — LOADER
   ========================================================================== */
#loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-direction: column; padding: var(--pad);
  transition: opacity .65s ease, visibility .65s ease;
}
body.loaded #loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-top {
  width: 100%; display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--paper-dim);
}
.loader-mid { margin: auto; text-align: center; }
.loader-mid .li-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 6.5vw, 3.8rem); letter-spacing: 0.02em;
  color: var(--paper); text-transform: uppercase;
}
.loader-sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--accent); margin-top: 8px;
}
.loader-bar {
  width: min(280px, 60vw); height: 2px; background: var(--line);
  margin: 24px auto 0; position: relative; overflow: hidden;
}
.loader-bar span {
  position: absolute; inset: 0; width: 0%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: loaderFill 1.3s cubic-bezier(.65,0,.35,1) forwards;
}
@keyframes loaderFill { to { width: 100%; } }
.loader-bottom {
  width: 100%; text-align: right;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--paper-dim);
}

/* ==========================================================================
   03 — REVEAL / MOTION UTILITIES
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(32px); filter: blur(4px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1), filter .85s ease;
  transition-delay: var(--rd, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
.reveal-side { transform: translateX(-36px); }
.reveal-side.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-side { transition: opacity .3s ease !important; transform: none !important; filter: none !important; }
}

/* ==========================================================================
   04 — SECTION SCAFFOLDING
   ========================================================================== */
.section { position: relative; padding: var(--pad-y) 0; border-top: 1px solid var(--line); overflow: hidden; }
.section-head {
  position: relative;
  margin-bottom: clamp(40px, 6.5vw, 80px);
  padding-top: clamp(16px, 2.5vw, 36px);
}
.section-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5.2rem, 15vw, 11rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  position: absolute;
  top: clamp(4px, 1vw, 12px);
  left: clamp(2px, 0.5vw, 10px);
  z-index: 0;
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.01em;
  opacity: 1;
}
.section-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: clamp(40px, 6.5vw, 76px);
}
.section-tag {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase; display: flex; align-items: center; gap: 8px;
}
.section-tag::before {
  content: ''; width: 6px; height: 6px; background: var(--accent); display: inline-block;
}
.section-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em;
  font-size: var(--fs-h1); line-height: 0.96; text-transform: uppercase;
}
.section-intro {
  position: relative; z-index: 1; margin-top: 16px; max-width: 58ch;
  color: var(--paper-dim); font-size: var(--fs-body); line-height: 1.6;
}

/* ==========================================================================
   05 — HERO
   ========================================================================== */
.section-hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(90px, 9vh, 130px) 0 clamp(24px, 3vh, 44px);
  border-top: none;
}
.hero-topbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--paper-dim);
}
.hero-topbar .id-tag { color: var(--paper); font-weight: 700; letter-spacing: 0.16em; }
.hero-topbar .align-right { text-align: right; }

.hero-main {
  position: relative; margin: clamp(20px, 3vh, 40px) 0;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-name {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: var(--fs-hero); line-height: 0.88; letter-spacing: -0.01em;
  word-break: break-word;
}
.hero-sub { margin-top: clamp(16px, 2vw, 26px); display: flex; flex-direction: column; gap: 8px; }
.hero-field {
  font-family: var(--font-mono); font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  letter-spacing: 0.1em; color: var(--paper); text-transform: uppercase;
}
.hero-role {
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.hero-role::before {
  content: ''; width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.hero-visual { position: relative; }
.hero-visual .media-frame { aspect-ratio: 16/11; max-height: 520px; }

.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 14px; gap: 14px;
}
.hero-meta .m-item { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--paper-dim); }
.hero-meta .m-item b { display: block; color: var(--paper); font-weight: 400; font-size: 12.5px; margin-top: 4px; letter-spacing: 0.05em; }

.scroll-cue {
  position: absolute; bottom: 8px; left: var(--pad);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--paper-dim);
}
.scroll-cue .cue-line { width: 1px; height: 32px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue .cue-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--accent); animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual .media-frame { aspect-ratio: 16/10; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
}

/* ==========================================================================
   06 — MEDIA FRAME (CINEMATIC MOTORSPORT & HARDWARE IMAGE ENGINE)
   Deep dark overlay, cinematic grain, corner bracket marks, glowing telemetry,
   hover scanner sweep, zoom inspection trigger.
   ========================================================================== */
.media-frame {
  position: relative; width: 100%; overflow: hidden;
  background: var(--charcoal); border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transition: border-color .35s ease, box-shadow .35s ease, transform .25s ease-out;
}
.media-frame:hover {
  border-color: var(--accent);
  box-shadow: 0 0 35px -5px var(--accent-glow), 0 14px 40px rgba(0,0,0,0.85);
}
.media-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.16,1,.3,1), filter .3s ease;
  filter: contrast(1.05) brightness(0.96);
}
.media-frame:hover img {
  transform: scale(1.035);
  filter: contrast(1.1) brightness(1.02);
}

/* Cinematic dark vignette overlay */
.media-frame .mf-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at center, transparent 45%, rgba(10,9,8,0.65) 100%),
              linear-gradient(180deg, rgba(10,9,8,0.2) 0%, transparent 40%, rgba(10,9,8,0.6) 100%);
}

/* Corner bracket crosshairs */
.media-frame::before, .media-frame::after,
.media-frame .mf-c1, .media-frame .mf-c2 {
  content: ''; position: absolute; width: 12px; height: 12px; z-index: 4;
  border-color: var(--accent); border-style: solid; border-width: 0;
  pointer-events: none;
}
.media-frame::before { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.media-frame::after { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.media-frame .mf-c1 { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.media-frame .mf-c2 { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }

/* Technical telemetry badges on images */
.media-frame .mf-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 4;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--paper); background: rgba(10,9,8,0.85); padding: 3px 8px;
  border: 1px solid var(--line-strong); backdrop-filter: blur(4px);
  display: flex; align-items: center; gap: 6px; text-transform: uppercase;
}
.media-frame .mf-tag::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
}
.media-frame .mf-hud-top {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  color: var(--accent-hot); background: rgba(10,9,8,0.88); padding: 3px 8px;
  border: 1px solid rgba(255,90,31,0.3); backdrop-filter: blur(4px);
  text-transform: uppercase;
}

/* Hover scanner beam sweep */
.media-frame .mf-scanline {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px var(--accent);
  opacity: 0; z-index: 3; pointer-events: none;
  transform: translateY(-100%);
}
.media-frame:hover .mf-scanline {
  animation: scanSweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes scanSweep {
  0% { transform: translateY(-100%); opacity: 0; }
  25% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateY(500%); opacity: 0; }
}

.media-frame.tilt { transition: transform .2s ease-out; transform-style: preserve-3d; }

/* Interactive zoom icon overlay */
.media-frame .mf-zoom-hint {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,9,8,0.35); opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.media-frame .mf-zoom-badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--ink); background: var(--accent); padding: 6px 14px;
  font-weight: 700; transform: translateY(8px); transition: transform .25s ease;
}
.media-frame:hover .mf-zoom-hint { opacity: 1; }
.media-frame:hover .mf-zoom-badge { transform: translateY(0); }

/* ==========================================================================
   07 — PROFILE
   ========================================================================== */
.profile-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1fr 0.95fr; gap: clamp(30px, 5vw, 80px);
}
.profile-intro {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: var(--fs-h2); line-height: 1.08; letter-spacing: 0.005em;
}
.profile-desc {
  margin-top: 22px; color: var(--paper-dim); max-width: 62ch; line-height: 1.68;
}
.profile-desc p { margin-bottom: 16px; }
.profile-desc p:last-child { margin-bottom: 0; }
.profile-desc .p-lead {
  color: var(--paper); font-size: 1.05rem; border-left: 3px solid var(--accent);
  padding-left: 14px; margin-bottom: 18px;
}
.profile-side { display: flex; flex-direction: column; gap: 32px; }
.spec-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.spec-line .k { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.12em; color: var(--paper-dim); }
.spec-line .v { font-family: var(--font-mono); font-size: var(--fs-small); text-align: right; max-width: 65%; color: var(--paper); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  background: var(--charcoal); border: 1px solid var(--line-strong); padding: 6px 12px;
  color: var(--paper); transition: border-color .2s ease, color .2s ease;
}
.tag-list li:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   08 — EDUCATION SECTION
   Clean, authentic industrial credential cards for ITS & SMAN 2 Pasuruan
   ========================================================================== */
.edu-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3.5vw, 44px);
}
@media (max-width: 860px) { .edu-grid { grid-template-columns: 1fr; } }

.edu-card {
  background: var(--charcoal); border: 1px solid var(--line);
  padding: clamp(24px, 3.2vw, 38px); display: grid;
  grid-template-columns: auto 1fr; gap: clamp(20px, 2.5vw, 32px);
  align-items: start; position: relative; transition: border-color .3s ease, box-shadow .3s ease;
}
.edu-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 10px 32px rgba(0,0,0,0.6);
}
.edu-logo-frame {
  width: 96px; height: 96px; background: #0c0b0a;
  border: 1px solid var(--line-strong); padding: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0; box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.edu-logo-frame img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}
.edu-tag {
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; margin-bottom: 6px;
}
.edu-inst {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  text-transform: uppercase; line-height: 1.05; letter-spacing: 0.01em; color: var(--paper);
}
.edu-degree {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--paper-dim);
  margin-top: 6px; letter-spacing: 0.05em; text-transform: uppercase;
}
.edu-specs {
  margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
}
.edu-specs .ek { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--gray); }
.edu-specs .ev { font-family: var(--font-mono); font-size: 11px; color: var(--paper); margin-top: 2px; }
.edu-desc { margin-top: 14px; color: var(--paper-dim); font-size: var(--fs-small); line-height: 1.55; }
@media (max-width: 520px) {
  .edu-card { grid-template-columns: 1fr; }
  .edu-logo-frame { width: 80px; height: 80px; }
}

/* ==========================================================================
   09 — ORGANIZATIONS SECTION
   ========================================================================== */
.timeline { position: relative; z-index: 1; border-left: 1px solid var(--line-strong); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 56px 36px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-item::before {
  content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--ink); border: 2px solid var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.tl-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.tl-year { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.12em; color: var(--accent); }
.tl-org { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.1; }
.tl-role { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--paper-dim); text-transform: uppercase; margin-top: 4px; }
.tl-body { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 14px; }
.tl-desc { color: var(--paper-dim); font-size: var(--fs-small); max-width: 56ch; line-height: 1.6; }
.tl-mark {
  width: 84px; height: 84px; background: #0c0b0a; border: 1px solid var(--line-strong);
  padding: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}
.tl-mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tl-mark-monogram {
  width: 84px; height: 84px; background: #0c0b0a; border: 1px solid var(--accent-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: inset 0 0 18px rgba(255,90,31,0.15); position: relative;
}
.tl-mark-monogram .tmm-code {
  font-family: var(--font-display); font-size: 19px; color: var(--accent);
  letter-spacing: 0.04em; line-height: 1; text-transform: uppercase;
}
.tl-mark-monogram .tmm-label {
  font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.14em;
  color: var(--paper-dim); margin-top: 4px; text-transform: uppercase;
}
@media (max-width: 640px) {
  .tl-body { grid-template-columns: 1fr; }
  .tl-mark, .tl-mark-monogram { width: 100%; max-width: 110px; }
}

.tl-desc .tl-lead {
  color: var(--paper);
  font-size: var(--fs-small);
  line-height: 1.6;
  margin-bottom: 12px;
}
.tl-bullets {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}
.tl-bullets li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--paper-dim);
  line-height: 1.55;
}
.tl-bullet-caret {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

/* ==========================================================================
   10 — SELECTED PROJECTS (HERO SPREADS)
   ========================================================================== */
.project-spread {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.2vw, 32px); padding: clamp(56px, 9vw, 110px) 0;
  border-top: 1px solid var(--line); align-items: start;
}
.project-spread:first-of-type { border-top: none; padding-top: 0; }
.project-num {
  position: absolute;
  top: clamp(10px, 1.8vw, 24px);
  left: clamp(2px, 0.5vw, 10px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.8rem, 13vw, 9.5rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
.p-media { grid-column: 1 / 8; position: relative; z-index: 1; cursor: pointer; }
.p-media .media-frame { aspect-ratio: 16/10; }
.p-body {
  grid-column: 8 / 13; position: relative; z-index: 2;
  align-self: end; background: var(--charcoal); border: 1px solid var(--line);
  padding: clamp(22px, 2.6vw, 36px); margin-top: -64px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}
.project-spread.flip .p-media { grid-column: 6 / 13; grid-row: 1; }
.project-spread.flip .p-body { grid-column: 1 / 6; grid-row: 1; align-self: start; margin-top: 0; margin-bottom: -64px; }
.project-spread.flip .project-num { right: 0; }

.p-eyebrow {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: var(--fs-label); color: var(--accent); letter-spacing: 0.14em;
}
.p-eyebrow .p-eyebrow-left { display: flex; align-items: center; gap: 8px; }
.p-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.p-category-badge {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em;
  color: var(--paper-dim); background: var(--charcoal-2); padding: 3px 8px; border: 1px solid var(--line);
}
.p-art-dir {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  color: var(--copper); text-transform: uppercase; margin-top: 10px;
}
.p-title {
  margin-top: 6px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: 0.01em;
}
.p-desc { margin-top: 14px; color: var(--paper-dim); font-size: var(--fs-small); line-height: 1.6; }
.p-specs {
  margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.p-specs .sk { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; color: var(--gray); text-transform: uppercase; }
.p-specs .sv { font-family: var(--font-mono); font-size: 11px; margin-top: 4px; color: var(--paper); }
.p-action {
  margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; justify-content: flex-end;
}

@media (max-width: 900px) {
  .project-spread, .project-spread.flip { grid-template-columns: 1fr; }
  .p-media, .project-spread.flip .p-media { grid-column: 1 / -1; }
  .p-body, .project-spread.flip .p-body { grid-column: 1 / -1; margin: -40px 14px 0; align-self: start; }
  .project-num { font-size: 4.5rem; }
}

/* ==========================================================================
   11 — ENGINEERING CARD GRID (IOT & PCB PROJECT CATALOG)
   Reusable high-performance engineering module cards
   ========================================================================== */
.eng-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3.5vw, 44px);
}
@media (max-width: 860px) { .eng-grid { grid-template-columns: 1fr; } }

.eng-card {
  background: var(--charcoal); border: 1px solid var(--line);
  display: flex; flex-direction: column; position: relative;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.eng-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 14px 44px rgba(0,0,0,0.7);
}
.eng-card-header {
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10,9,8,0.5); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
}
.eng-card-num { color: var(--accent); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.eng-card-num::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.eng-card-cat { color: var(--paper-dim); font-size: 9.5px; }

.eng-card-media { position: relative; cursor: pointer; }
.eng-card-media .media-frame { aspect-ratio: 16/10; }

.eng-card-body {
  padding: clamp(18px, 2.2vw, 26px); display: flex; flex-direction: column; flex-grow: 1;
}
.eng-card-art {
  font-family: var(--font-mono); font-size: 9px; color: var(--copper);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px;
}
.eng-card-title {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  text-transform: uppercase; line-height: 1.05; letter-spacing: 0.01em; color: var(--paper);
}
.eng-card-desc { margin-top: 10px; color: var(--paper-dim); font-size: var(--fs-small); line-height: 1.6; }
.eng-card-specs {
  margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px; border-top: 1px solid var(--line);
}
.eng-card-specs .sk { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--gray); text-transform: uppercase; }
.eng-card-specs .sv { font-family: var(--font-mono); font-size: 11px; color: var(--paper); margin-top: 3px; }

.eng-card-action {
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; justify-content: flex-end;
}
.inspect-btn {
  background: transparent; border: 1px solid var(--line-strong); color: var(--paper-dim);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  padding: 6px 14px; cursor: pointer; transition: all .2s ease;
  display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase;
}
.inspect-btn:hover {
  background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700;
}

/* ==========================================================================
   11B — MAIN WEBSITE & OTHER WORKS PORTAL (aefera.me)
   ========================================================================== */

/* Topbar Portal Link & Header Chip */
.hero-topbar-portal {
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 90, 31, 0.08);
  border: 1px solid rgba(255, 90, 31, 0.35);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--paper);
  text-decoration: none;
  transition: all .25s ease;
}
.topbar-portal-pill:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.topbar-portal-pill .pill-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  animation: pulseDot 1.8s infinite ease-in-out;
}
.topbar-portal-pill:hover .pill-dot {
  background: var(--ink);
  box-shadow: none;
}
.topbar-portal-pill .pill-arr {
  font-size: 12px;
  color: var(--accent);
}
.topbar-portal-pill:hover .pill-arr {
  color: var(--ink);
}

/* Hero Notice Strip: Differentiates Hardware Archive from Main Site */
.site-notice-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 14px 20px;
  background: rgba(18, 17, 16, 0.9);
  border-left: 3px solid var(--accent);
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.sns-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 90, 31, 0.15);
  border: 1px solid rgba(255, 90, 31, 0.4);
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent-hot);
  flex-shrink: 0;
  text-transform: uppercase;
}
.sns-text {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--paper-dim);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.sns-text strong {
  color: var(--paper);
}
.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--charcoal-2);
  border: 1px solid var(--accent);
  color: var(--accent-hot);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  flex-shrink: 0;
  transition: all .2s ease;
}
.sns-link:hover {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 14px var(--accent-glow);
}

/* Dedicated Section 07: Portal Card & Side-by-Side Comparison */
.portal-card {
  position: relative;
  background: linear-gradient(135deg, var(--charcoal-2) 0%, #0d0c0a 100%);
  border: 1px solid var(--line-strong);
  padding: clamp(28px, 4.5vw, 56px);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.85);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.portal-card:hover {
  border-color: rgba(255,90,31,0.5);
  box-shadow: 0 0 45px -10px var(--accent-glow), 0 20px 60px rgba(0,0,0,0.9);
}
.portal-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,90,31,0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.portal-header-row {
  position: relative; z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}
.portal-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.portal-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.portal-lead {
  margin-top: 16px;
  color: var(--paper);
  font-size: 1.02rem;
  line-height: 1.6;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  max-width: 65ch;
}
.portal-desc {
  margin-top: 12px;
  color: var(--paper-dim);
  font-size: var(--fs-small);
  line-height: 1.65;
  max-width: 65ch;
}
.portal-domain-chip {
  text-align: right;
  flex-shrink: 0;
  background: #090807;
  border: 1px solid var(--line-strong);
  padding: 18px 24px;
}
.pd-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--paper-dim);
  text-transform: uppercase;
}
.pd-domain {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--accent);
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-top: 4px;
}
.portal-hud-status {
  margin-top: 12px;
  padding: 4px 10px;
  background: rgba(255,90,31,0.1);
  border: 1px solid rgba(255,90,31,0.3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--accent-hot);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.portal-hud-status .hud-live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulseDot 1.8s infinite ease-in-out;
}

/* Comparison Grid: This Site vs aefera.me */
.portal-compare-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  margin-top: 32px;
}
.compare-box {
  background: rgba(10, 9, 8, 0.85);
  border: 1px solid var(--line-strong);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
}
.current-box {
  border-color: rgba(255,255,255,0.08);
}
.main-box {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255,90,31,0.07) 0%, rgba(10,9,8,0.95) 100%);
  box-shadow: 0 0 28px -8px var(--accent-glow);
}
.cb-header {
  margin-bottom: 14px;
}
.cb-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.current-badge {
  background: var(--charcoal-2);
  color: var(--paper-dim);
  border: 1px solid var(--line);
}
.main-badge {
  background: rgba(255,90,31,0.2);
  color: var(--accent-hot);
  border: 1px solid var(--accent);
}
.cb-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--paper);
  margin: 0;
}
.cb-desc {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--paper-dim);
  line-height: 1.55;
  margin-top: 8px;
  margin-bottom: 18px;
}
.cb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.cb-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--paper-dim);
  line-height: 1.45;
}
.cb-dot {
  color: var(--gray);
  font-weight: 700;
  font-size: 14px;
}
.cb-arrow {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 12px;
}
.main-list li {
  color: var(--paper);
}
.cb-foot {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--paper-dim);
}
.cb-foot-label {
  color: var(--gray);
  margin-right: 6px;
}
.cb-action {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,90,31,0.3);
}
.portal-cta-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 12px 22px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .25s ease;
  box-shadow: 0 4px 16px rgba(255,90,31,0.35);
  text-decoration: none;
  width: 100%;
}
.portal-cta-btn:hover {
  background: #ff753e;
  border-color: #ff753e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,90,31,0.5);
  color: var(--ink);
}

.portal-footer-notice {
  position: relative; z-index: 1;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.pfn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  line-height: 1.5;
}
.pfn-left strong {
  color: var(--accent);
}
.pfn-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.pfn-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site-notice-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .portal-header-row {
    flex-direction: column;
  }
  .portal-domain-chip {
    text-align: left;
    width: 100%;
  }
  .portal-compare-grid {
    grid-template-columns: 1fr;
  }
  .portal-footer-notice {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   12 — TECHNICAL SKILLS (SPEC SHEET)
   ========================================================================== */
.spec-sheet {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.spec-col {
  background: var(--charcoal);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex; flex-direction: column;
}
.spec-col .sc-head {
  display: flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.spec-col .sc-head::before {
  content: ''; width: 6px; height: 6px; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.spec-col ul { margin-top: 14px; display: flex; flex-direction: column; }
.spec-col li {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--paper);
  padding: 8px 0; border-top: 1px dashed var(--line);
  display: flex; align-items: baseline; gap: 8px;
}
.spec-col li::before {
  content: '>'; color: var(--copper); font-size: 10px; font-weight: 700;
}
.spec-col li:first-child { border-top: none; }
@media (max-width: 640px) {
  .spec-sheet { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13 — ACHIEVEMENTS & DEV LOG
   ========================================================================== */
.stat-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.stat-tile {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(22px, 2.6vw, 32px); position: relative; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat-tile .st-year { font-family: var(--font-mono); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--paper); line-height: 1; }
.stat-tile .st-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.1rem, 1.8vw, 1.45rem); margin-top: 14px; line-height: 1.08; }
.stat-tile .st-meta { margin-top: auto; padding-top: 14px; }
.stat-tile .st-event { font-family: var(--font-mono); font-size: 10px; color: var(--paper-dim); letter-spacing: 0.05em; }
.stat-tile .st-result { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.08em; margin-top: 4px; font-weight: 700; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }

.log-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px;
}
.log-cell { background: var(--ink); padding: clamp(24px, 3vw, 40px); min-height: 180px; display: flex; flex-direction: column; gap: 14px; }
.log-head { display: flex; align-items: center; gap: 9px; }
.log-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulseDot 2.4s infinite ease-in-out; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(255,90,31,0.4); } 50% { box-shadow: 0 0 0 7px rgba(255,90,31,0); } }
.log-label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--paper-dim); }
.log-text { font-family: var(--font-body); font-size: 1rem; line-height: 1.5; color: var(--paper); }
.log-text::after { content: '_'; color: var(--accent); animation: blinkCursor 1.1s steps(1) infinite; }
@keyframes blinkCursor { 50% { opacity: 0; } }
@media (max-width: 700px) { .log-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   14 — CONTACT
   ========================================================================== */
.section-contact { position: relative; padding: var(--pad-y) 0 clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.contact-head { position: relative; }
.contact-tag { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.16em; color: var(--accent); }
.contact-title {
  margin-top: 16px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 7.5rem); line-height: 0.92; letter-spacing: -0.01em;
}
.contact-list { margin-top: clamp(48px, 7vw, 84px); border-top: 1px solid var(--line); }
.contact-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 2.4vw, 24px) 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.2rem, 3vw, 2rem); position: relative; overflow: hidden;
}
.contact-row .cr-k { font-family: var(--font-mono); font-size: 10px; color: var(--paper-dim); letter-spacing: 0.12em; text-transform: none; }
.contact-row .cr-arrow { font-family: var(--font-mono); font-size: 14px; color: var(--accent); transition: transform .3s ease; }
.contact-row:hover .cr-arrow { transform: translateX(6px); }
.contact-row::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: var(--accent); transition: width .35s ease;
}
.contact-row:hover::after { width: 100%; }

.site-footer {
  margin-top: clamp(48px, 7vw, 80px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--gray);
}

/* ==========================================================================
   15 — HIGH-RES TELEMETRY LIGHTBOX MODAL
   Allows the user to inspect any project schematic / photo in full resolution
   ========================================================================== */
.lightbox-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8, 7, 6, 0.95); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; padding: clamp(16px, 3vw, 32px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.lightbox-modal.is-open { opacity: 1; visibility: visible; }
.lightbox-bar {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--paper-dim);
}
.lightbox-title { color: var(--paper); font-weight: 700; text-transform: uppercase; }
.lightbox-close {
  background: transparent; border: 1px solid var(--line-strong); color: var(--paper);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  padding: 6px 14px; cursor: pointer; transition: all .2s ease;
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.lightbox-content {
  flex-grow: 1; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 20px 0; overflow: hidden;
}
.lightbox-img-wrap {
  max-width: 92vw; max-height: 76vh; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9); border: 1px solid var(--line-strong);
}
.lightbox-img-wrap img {
  max-width: 100%; max-height: 76vh; object-fit: contain; display: block;
}
.lightbox-footer {
  border-top: 1px solid var(--line); padding-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--paper-dim);
}
.lightbox-nav-btn {
  background: transparent; border: 1px solid var(--line); color: var(--paper);
  font-family: var(--font-mono); font-size: 10px; padding: 5px 12px; cursor: pointer;
}
.lightbox-nav-btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
