/* Igor Berroteran Portfolio — Monochrome Editorial Minimalism (Light & Dark) */
:root {
  color-scheme: light;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --color-bg: #f7f7f5;
  --color-bg-elevated: #fafaf8;
  --color-surface: #ffffff;
  --color-card: #ffffff;
  --color-wash: #f0f0ec;
  --color-wash-strong: #e8e8e4;
  --color-chip: #ffffff;

  --color-border: #e6e6e2;
  --color-border-strong: #c8c8c2;
  --color-card-border: #d2d2d7;

  --color-text: #121212;
  --color-muted: #5c5c5c;
  --color-subtle: #6e6e73;

  --color-accent: #111111;
  --color-accent-hover: #2a2a2a;
  --color-accent-fg: #ffffff;
  --color-success: #0f9f6e;
  --color-pdf: #cf222e;

  --color-track: #d0d0d0;
  --color-track-dot: #b0b0b0;

  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-soft: rgba(255, 255, 255, 0.42);
  --glass-border: color-mix(in srgb, #ffffff 72%, var(--color-border));
  --glass-border-soft: color-mix(in srgb, #ffffff 55%, var(--color-border));
  --glass-highlight: rgba(255, 255, 255, 0.8);

  --shadow-soft: 0 12px 40px rgba(18, 18, 18, 0.06);
  --shadow-card: 0 0 0 0.5px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 10px 36px rgba(18, 18, 18, 0.06);
  --focus-ring: rgba(17, 17, 17, 0.08);
  --mark-bg: rgba(18, 18, 18, 0.11);

  --radius-card: 16px;
  --radius-panel: 18px;
  --shell-max: 1440px;
}

html[data-theme="dark"],
html[data-theme="3d"] {
  color-scheme: dark;
  --color-bg: #0e0e0f;
  --color-bg-elevated: #141416;
  --color-surface: #17171a;
  --color-card: #1c1c1f;
  --color-wash: #1a1a1e;
  --color-wash-strong: #121214;
  --color-chip: #232326;

  --color-border: #2a2a2e;
  --color-border-strong: #3d3d43;
  --color-card-border: #2f2f34;

  --color-text: #f2f2f0;
  --color-muted: #a3a3a9;
  --color-subtle: #8f8f97;

  --color-accent: #f2f2f0;
  --color-accent-hover: #ffffff;
  --color-accent-fg: #111111;
  --color-success: #34d399;

  --color-track: #3a3a40;
  --color-track-dot: #6b6b73;

  --glass-bg: rgba(28, 28, 31, 0.78);
  --glass-bg-soft: rgba(28, 28, 31, 0.62);
  --glass-border: color-mix(in srgb, #ffffff 10%, var(--color-border));
  --glass-border-soft: color-mix(in srgb, #ffffff 8%, var(--color-border));
  --glass-highlight: rgba(255, 255, 255, 0.08);

  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 0 0 0.5px rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.35);
  --glass-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
  --focus-ring: rgba(255, 255, 255, 0.14);
  --mark-bg: rgba(242, 242, 240, 0.14);
}

/* 3D Studio Architectural Lighting Mode (Lamp ON vs OFF) */
html[data-theme="3d"] {
  --color-bg: #08080a;
  --color-bg-elevated: #12100d;
  --color-card: #151416;
  --color-wash: #121114;
  --color-card-border: rgba(255, 224, 178, 0.18);
  --glass-border: rgba(255, 224, 178, 0.2);
  --glass-highlight: rgba(255, 228, 188, 0.16);
  --shadow-card:
    0 0 0 0.5px rgba(255, 220, 170, 0.1),
    0 20px 55px rgba(0, 0, 0, 0.65),
    0 0 70px rgba(255, 178, 92, 0.08);
  --mark-bg: rgba(255, 198, 120, 0.24);
}

html[data-theme="3d"][data-lamp="off"] {
  --color-bg: #050506;
  --color-bg-elevated: #070709;
  --color-card: #0c0c0e;
  --color-wash: #09090b;
  --color-card-border: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.04);
  --shadow-card: 0 20px 55px rgba(0, 0, 0, 0.85);
  --mark-bg: rgba(255, 255, 255, 0.09);
}

html[data-theme="3d"] body {
  transition: background 0.45s ease;
  background:
    radial-gradient(920px 560px at 78% 12%, rgba(255, 180, 88, 0.22), transparent 62%),
    radial-gradient(640px 440px at 18% 45%, rgba(255, 214, 165, 0.06), transparent 60%),
    linear-gradient(180deg, #13100c 0%, #08080a 48%),
    #08080a;
}

html[data-theme="3d"][data-lamp="off"] body {
  background:
    radial-gradient(600px 360px at 78% 12%, rgba(120, 130, 160, 0.04), transparent 60%),
    linear-gradient(180deg, #070709 0%, #050506 50%),
    #050506;
}

.theme-btn-3d {
  width: auto;
  padding-inline: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

html[data-theme="3d"] .card,
html[data-theme="3d"] .work-card,
html[data-theme="3d"] .cv-card,
html[data-theme="3d"] .contact-form-card {
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--color-text);
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(900px 480px at 90% -10%, color-mix(in srgb, var(--color-text) 4%, transparent), transparent 55%),
    linear-gradient(180deg, var(--color-bg-elevated) 0%, var(--color-bg) 42%),
    var(--color-bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01" on;
}

/* Container */
.shell {
  width: calc(100% - 2rem);
  max-width: var(--shell-max);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .shell { width: min(92%, calc(100% - 2.5rem)); }
}
@media (min-width: 1024px) {
  .shell { width: min(90%, calc(100% - 3rem)); }
}

.section {
  padding-block: clamp(2.75rem, 5vw, 5.5rem);
}

/* Glass surfaces */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
}

.glass-soft {
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border-soft);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 0.65rem 0.4rem;
}

.site-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.85rem;
  padding: 0.45rem 0.85rem 0.45rem 1rem;
  border-radius: 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 1024px) {
  .site-header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 650;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 1024px) {
  .site-nav { display: flex; }
}

.site-nav a {
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--color-muted);
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  height: 1.5px;
  width: 0;
  background: var(--color-text);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-text) 5%, transparent);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: calc(100% - 1.6rem);
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.status-badge {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 550;
  color: var(--color-text);
}
@media (min-width: 1180px) {
  .status-badge { display: inline-flex; }
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success) 24%, transparent);
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem;
  border-radius: 999px;
  gap: 0.15rem;
}

.theme-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-subtle);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.theme-btn[aria-pressed="true"] {
  background: var(--color-accent);
  color: var(--color-accent-fg);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-accent) 26%, transparent);
}

.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-soft);
  color: var(--color-text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .menu-btn { display: none; }
}

.mobile-sheet {
  display: none;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 16px;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-sheet.open { display: flex; }
.mobile-sheet a {
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-weight: 550;
  color: var(--color-text);
}
.mobile-sheet a:hover { background: var(--color-wash); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.2rem;
  min-height: 42px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn-sm {
  min-height: 36px;
  padding: 0.42rem 0.95rem;
  font-size: 0.8125rem;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-fg);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--glass-bg-soft);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-ghost:hover {
  background: var(--color-wash);
  transform: translateY(-1px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.4rem;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--color-muted);
}
.btn-link:hover { color: var(--color-text); }

/* Hero */
.hero-viewport {
  min-height: calc(100svh - 4.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  padding-block: clamp(1.5rem, 3.5vw, 3.25rem);
}

@media (min-width: 1024px) {
  .hero-body {
    grid-template-columns: 1.15fr 0.85fr;
    column-gap: 2.5rem;
  }
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-subtle);
  margin-bottom: 0.55rem;
}

.text-hero {
  margin: 0;
  font-size: clamp(2.5rem, 1.35rem + 5.2vw, 5.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-name {
  margin: 0.55rem 0 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-lead {
  margin: 1rem 0 0;
  max-width: 39rem;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.28rem);
  font-weight: 450;
  line-height: 1.65;
  color: var(--color-muted);
}

.hero-mark {
  position: relative;
  display: inline-block;
  color: var(--color-text);
  font-weight: 550;
  padding-inline: 0.14em;
  z-index: 1;
}

.hero-mark::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.08em;
  height: 38%;
  width: 0%;
  background: var(--mark-bg);
  border-radius: 3px;
  z-index: -1;
  animation: mark-sweep 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-mark.m1::before { animation-delay: 0.25s; }
.hero-mark.m2::before { animation-delay: 0.6s; }
.hero-mark.m3::before { animation-delay: 0.95s; }

@keyframes mark-sweep {
  to { width: 100%; }
}

.hero-roles {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 39rem;
}
@media (min-width: 640px) {
  .hero-roles { grid-template-columns: repeat(2, 1fr); }
}

.hero-role {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.hero-role-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--color-text);
}

.hero-role b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.hero-role span {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.hero-actions {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.hero-meta {
  margin-top: 1.1rem;
  font-size: 0.8125rem;
  color: var(--color-subtle);
}

/* Hero Visual: Orbital Portrait (Light/Dark) vs Photorealistic 3D Stage (3D mode) */
.hero-visual {
  display: grid;
  place-items: center;
  padding: 1.25rem 0.25rem;
}

.hero-portrait {
  position: relative;
  width: 290px;
  height: 290px;
}
@media (min-width: 640px) {
  .hero-portrait { width: 350px; height: 350px; }
}
@media (min-width: 1280px) {
  .hero-portrait { width: 410px; height: 410px; }
}

.hero-3d-frame {
  display: none;
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
}

html[data-theme="3d"] .hero-portrait { display: none; }
html[data-theme="3d"] .hero-3d-frame { display: block; }

.hero-3d-glow {
  position: absolute;
  inset: -16%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 182, 88, 0.34) 0%, rgba(255, 178, 86, 0.09) 46%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

html[data-theme="3d"][data-lamp="off"] .hero-3d-glow {
  opacity: 0;
  transform: scale(0.82);
}

.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 178, 0.28);
  background: #0b0a09;
  box-shadow: var(--shadow-card);
  z-index: 1;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

html[data-theme="3d"][data-lamp="off"] .hero-3d-stage {
  border-color: rgba(255, 255, 255, 0.09);
}

.sketchfab-mount,
.sketchfab-mount iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.stage-dark-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(5, 5, 8, 0.56) 0%, rgba(4, 4, 6, 0.86) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s ease;
}

html[data-theme="3d"][data-lamp="off"] .stage-dark-veil {
  opacity: 1;
}

.lamp-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffb84d;
  box-shadow: 0 0 10px #ffb84d, 0 0 0 3px rgba(255, 184, 77, 0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="3d"][data-lamp="off"] .lamp-dot {
  background: #52525b;
  box-shadow: none;
}

.stage-switch {
  pointer-events: auto;
  padding: 0.44rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 130, 0.52);
  background: rgba(26, 20, 14, 0.86);
  color: #fcebd0;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease, color 0.18s ease;
}
.stage-switch:hover {
  background: rgba(255, 184, 77, 0.22);
  border-color: rgba(255, 210, 130, 0.9);
  transform: translateY(-1px);
}
.stage-switch[aria-pressed="false"] {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(14, 14, 17, 0.9);
  color: #e4e4e7;
}

.stage-hud-top,
.stage-hud-bottom {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
  z-index: 4;
}
.stage-hud-top { top: 0.85rem; }
.stage-hud-bottom { bottom: 0.85rem; }

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #f5efe6;
  background: rgba(16, 14, 12, 0.78);
  border: 1px solid rgba(255, 224, 178, 0.2);
  backdrop-filter: blur(12px);
}

.stage-hint {
  font-size: 0.7rem;
  color: #d4cab8;
  background: rgba(16, 14, 12, 0.72);
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 178, 0.16);
}

.stage-link {
  pointer-events: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: #f7ebd2;
  background: rgba(20, 18, 16, 0.84);
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 140, 0.35);
  backdrop-filter: blur(10px);
}
.stage-link:hover {
  background: rgba(255, 190, 100, 0.2);
  border-color: rgba(255, 210, 140, 0.75);
}

.hero-bracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: color-mix(in srgb, var(--color-text) 35%, transparent);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.hb-tl { top: -8px; left: -8px; border-top-width: 2px; border-left-width: 2px; }
.hb-tr { top: -8px; right: -8px; border-top-width: 2px; border-right-width: 2px; }
.hb-bl { bottom: -8px; left: -8px; border-bottom-width: 2px; border-left-width: 2px; }
.hb-br { bottom: -8px; right: -8px; border-bottom-width: 2px; border-right-width: 2px; }

.orbit-ring {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.orbit-outer {
  inset: -2%;
  border: 1px dashed var(--color-border-strong);
}
.orbit-mid {
  inset: 4.5%;
  border: 1px solid var(--color-border);
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--color-text) 4%, transparent), transparent 62%);
}
.orbit-inner {
  inset: 9%;
  border: 1px solid var(--color-border);
  animation: hero-orbit-spin 28s linear infinite;
}
.orbit-inner::before,
.orbit-inner::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}
.orbit-inner::before {
  width: 7px;
  height: 7px;
  top: -3.5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
}
.orbit-inner::after {
  width: 6px;
  height: 6px;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
}

@keyframes hero-orbit-spin {
  to { transform: rotate(360deg); }
}

.portrait-core {
  position: absolute;
  inset: 14%;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 28%, #27272b 0%, #111113 72%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.portrait-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-fallback {
  text-align: center;
  color: #f2f2f0;
  padding: 1rem;
}
.portrait-fallback .initials {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}
.portrait-fallback .sub-id {
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a3a3a9;
}

.orbit-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  z-index: 3;
}
.orbit-tag .dot-t {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--tag-c, var(--color-text));
}

/* Proof strip */
.hero-strip {
  display: none;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: 0.85rem;
  gap: 1.75rem;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}
@media (min-width: 640px) {
  .hero-strip { display: flex; }
}
.hero-strip strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Section Headers */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.section-title {
  margin: 0.45rem 0 0;
  font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0.75rem 0 0;
  max-width: 48rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-muted);
}

/* 01 Selected Work */
.work-list {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.work-card {
  position: relative;
  border-radius: var(--radius-panel);
  border: 1px solid var(--color-card-border);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .work-card {
    min-height: min(68vh, 36rem);
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.work-index-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 4;
}

.work-stage {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--work-accent, #111) 8%, transparent), transparent 55%),
    var(--color-wash);
  padding: clamp(1rem, 2.2vw, 1.85rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 1024px) {
  .work-stage {
    border-bottom: 0;
    border-right: 1px solid var(--color-border);
  }
}

.browser {
  border-radius: 13px;
  border: 1px solid var(--color-card-border);
  background: var(--color-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  background: var(--color-wash);
  border-bottom: 1px solid var(--color-border);
}

.browser-dots {
  display: flex;
  gap: 5px;
}
.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-border-strong);
}

.browser-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

.work-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-accent-fg);
  font-size: 0.72rem;
  font-weight: 600;
}
.work-visit:hover { background: var(--color-accent-hover); }

.browser-viewport {
  aspect-ratio: 16 / 10;
  background: var(--color-wash-strong);
  position: relative;
  overflow: hidden;
}

.browser-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.mock-ui {
  width: 100%;
  height: 100%;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, var(--color-card) 0%, var(--color-wash) 100%);
}

.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
}

.mock-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.mock-kpi {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.65rem;
}
.mock-kpi small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-subtle);
}
.mock-kpi b {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 76px;
  padding-top: 0.5rem;
}
.mock-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--work-accent, var(--color-text)) 30%, var(--color-border-strong));
}

.work-rail {
  padding: clamp(1.25rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
}

.work-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-right: 2.5rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.role-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
}

.work-title {
  margin: 0.6rem 0 0.55rem;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-chip);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text);
}

.work-outcome {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.work-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-muted);
}

/* Signature Dark Terminal Snippet inside Work Rail */
.terminal {
  margin-top: auto;
  border-radius: 12px;
  background: #121214;
  border: 1px solid #2a2a2e;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.65;
  color: #e4e4e7;
  overflow-x: auto;
}
.terminal .t-cmd { color: #7ee787; }
.terminal .t-ok { color: #3ddc97; }
.terminal .t-dim { color: #a1a1aa; }

/* More Projects Grid */
.sub-heading {
  margin: 3rem 0 1.15rem;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1120px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-card-border);
  background: var(--color-card);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.card-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-subtle);
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
}
.card-link:hover { text-decoration: underline; }
.card-link.muted { color: var(--color-subtle); font-weight: 500; }

.card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
  flex: 1;
}

/* 02 Capabilities */
.cap-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--color-border);
  background: var(--color-wash);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--color-text);
}

.cap-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.cap-head small {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* 03 Experience */
.exp-panel {
  margin-top: 2rem;
  border-radius: var(--radius-panel);
  border: 1px solid var(--color-card-border);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.exp-company {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.exp-company:first-child { border-top: 0; }
@media (min-width: 640px) {
  .exp-company { grid-template-columns: 56px minmax(0, 1fr); padding: 1.75rem 2rem; }
}

.exp-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-wash);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
}
@media (min-width: 640px) {
  .exp-logo { width: 56px; height: 56px; }
}

.exp-role {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.exp-org {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.exp-dates {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-subtle);
}

.exp-desc {
  margin: 0.75rem 0 0;
  max-width: 48rem;
  font-size: 0.925rem;
  line-height: 1.62;
  color: var(--color-muted);
}

.exp-skills {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text);
}
.exp-skills span { color: var(--color-muted); }

/* 04 About */
.about-layout {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: minmax(220px, 0.76fr) minmax(0, 1.24fr);
    gap: 3rem;
  }
}

.about-avatar {
  width: min(210px, 65%);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: radial-gradient(circle at 32% 28%, #27272b 0%, #111113 72%);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.about-side h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.about-handle {
  margin: 0.15rem 0 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.about-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.about-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.about-copy p {
  margin: 0 0 1rem;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.7;
  color: var(--color-text);
}
.about-copy p.muted { color: var(--color-muted); }

.cv-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .cv-grid { grid-template-columns: repeat(2, 1fr); }
}

.cv-card {
  min-height: 7.4rem;
  border-radius: 12px;
  border: 1px solid var(--color-card-border);
  background: var(--color-card);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  transition: transform 0.14s ease, border-color 0.16s ease;
}
.cv-card:hover {
  transform: translateY(-1px);
  border-color: var(--color-border-strong);
}
.cv-card b {
  font-size: 0.925rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.cv-card:hover b { text-decoration: underline; }
.cv-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}
.cv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-subtle);
}
.pdf-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-pdf);
  margin-right: 0.35rem;
}

/* 05 Contact */
.contact-layout {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .contact-layout { grid-template-columns: 1.35fr 0.85fr; }
}

.contact-form-card {
  border-radius: var(--radius-panel);
  border: 1px solid var(--color-card-border);
  background: var(--color-card);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.925rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-text);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-foot {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}
.form-foot small { color: var(--color-subtle); font-size: 0.8rem; }

.contact-success {
  display: none;
  padding: 1.5rem 0.5rem;
  text-align: center;
}
.contact-success.show { display: block; }
.contact-success .check {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-success) 16%, transparent);
  color: var(--color-success);
  display: grid;
  place-items: center;
  margin: 0 auto 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-channel {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-card-border);
  background: var(--color-card);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.contact-channel .k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-subtle);
}
.contact-channel .email {
  display: block;
  margin: 0.35rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 650;
  word-break: break-all;
}
.contact-channel .acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--color-card-border);
  background: var(--color-card);
  transition: border-color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease;
}
.quick-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-wash);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.quick-card b { display: block; font-size: 0.9rem; font-weight: 600; }
.quick-card span { display: block; font-size: 0.78rem; color: var(--color-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 1.5rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Reduced motion & transparency */
@media (prefers-reduced-motion: reduce) {
  .orbit-inner { animation: none; }
  .hero-mark::before { animation: none; width: 100%; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-soft {
    background: var(--color-card);
    backdrop-filter: none;
  }
}
