:root {
  --navy: #1a2e47;
  --navy-light: #274469;
  --navy-dark: #070d16;
  --accent-blue: #4f86c6;
  --mac-blue: #007aff;
  --gold: #f0d238;
  --paper: #f7f7f5;
  --obsidian: #0b0b0c;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'League Gothic', Impact, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'Space Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--obsidian);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* --- Top Nav --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(7, 13, 22, 0.72) 0%, rgba(7, 13, 22, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav nav a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-nav nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  opacity: 1 !important;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --- Section 1: Hero (#1a2e47) --- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 760px;
  max-height: 1040px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 84% 74% at 52% 28%,
    var(--navy-light) 0%,
    var(--navy) 48%,
    #101e30 80%,
    var(--navy-dark) 100%
  );
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 36, 0.08) 0%,
    rgba(8, 16, 28, 0.12) 60%,
    rgba(5, 10, 18, 0.88) 100%
  );
  z-index: 18;
  pointer-events: none;
}

.hero-title-stage {
  position: absolute;
  top: clamp(110px, 15vh, 185px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 8;
  pointer-events: none;
}

.hero-title-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}

.hero-accent {
  position: absolute;
  top: clamp(-36px, -4vw, -56px);
  left: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 96px);
  color: var(--gold);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 12;
}

.hero-portfolio {
  font-family: var(--font-display);
  font-size: clamp(180px, 26vw, 440px);
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: #ffffff;
  text-shadow:
    0 0 28px rgba(255, 255, 255, 0.35),
    18px 22px 42px rgba(3, 10, 22, 0.55);
}

.hero-subject {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(540px, 60vw, 1020px);
  max-height: 92vh;
  aspect-ratio: 1 / 1;
  z-index: 15;
  pointer-events: none;
}

.hero-subject img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.55));
}

.hero-bottom-layer {
  position: relative;
  z-index: 25;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 84px) clamp(84px, 11vh, 130px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.bio-card {
  width: min(560px, 44vw);
  padding: 28px 34px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18, 32, 52, 0.58) 0%, rgba(12, 22, 38, 0.36) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.bio-text {
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 500;
  line-height: 1.42;
  color: #ffffff;
  text-align: justify;
  text-align-last: left;
  letter-spacing: -0.01em;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: clamp(0px, 3vw, 48px);
}

.skills-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.sparkle {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 26;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.scroll-hint:hover {
  color: #ffffff;
  transform: translate(-50%, 3px);
}

/* --- Section 2: Interactive macOS Finder --- */
.finder-section {
  position: relative;
  min-height: clamp(720px, 92vh, 940px);
  padding: clamp(72px, 8vh, 108px) clamp(16px, 3.5vw, 56px);
  background: var(--paper);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaf-shadow {
  position: absolute;
  inset: -120px;
  pointer-events: none;
  opacity: 0.2;
  filter: blur(18px);
  z-index: 1;
}

.finder-container {
  position: relative;
  z-index: 5;
  width: 100%;
  min-width: 0;
  max-width: 1420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 6px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink);
  font-weight: 700;
}

.section-hint {
  font-size: 14px;
  color: var(--muted);
}

.mac-window {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  box-shadow:
    -28px 38px 80px rgba(0, 0, 0, 0.13),
    0 10px 28px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mac-titlebar {
  min-height: 62px;
  padding: 12px 24px;
  background: linear-gradient(180deg, #f6f6f7 0%, #ececee 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mac-title-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.traffic-lights {
  display: flex;
  gap: 9px;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; border: 1px solid #e0443e; }
.dot-yellow { background: #ffbd2e; border: 1px solid #dea123; }
.dot-green { background: #27c93f; border: 1px solid #1aab29; }

.nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.11);
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.crumb-root {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.crumb-root:hover {
  color: var(--mac-blue);
}

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

.crumb-current {
  font-weight: 700;
  color: var(--ink);
}

.mac-title-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: #0066cc;
  background: rgba(0, 122, 255, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #3a3a3c;
  background: rgba(0, 0, 0, 0.06);
  padding: 5px 12px;
  border-radius: 8px;
}

.mac-body {
  display: flex;
  min-height: 620px;
}

.mac-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: rgba(242, 242, 246, 0.78);
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8e8e93;
  padding: 0 10px 6px;
}

.sidebar-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #3a3a3c;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sidebar-item.active {
  background: rgba(0, 122, 255, 0.14);
  color: #0066cc;
  font-weight: 600;
}

.mac-pane {
  flex: 1;
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(246, 247, 249, 0.85) 100%);
}

/* 8-Folder Grid */
.folder-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}

.folder-card {
  padding: 20px 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease;
}

.folder-card:hover {
  background: rgba(0, 122, 255, 0.08);
  transform: translateY(-4px);
}

.folder-card:active {
  transform: scale(0.97);
}

.mac-folder-svg {
  width: 118px;
  height: 96px;
  filter: drop-shadow(0 10px 16px rgba(20, 110, 215, 0.22));
}

.folder-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.folder-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: -5px;
}

/* Opened Brand Video Showcase */
.brand-stage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: paneIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes paneIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vid-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #111111;
  box-shadow:
    -18px 24px 36px rgba(0, 0, 0, 0.2),
    0 6px 14px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.vid-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    -22px 30px 44px rgba(0, 0, 0, 0.26),
    0 10px 20px rgba(0, 0, 0, 0.14);
}

.vid-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vid-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.68);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.vid-card:hover .vid-expand {
  opacity: 1;
}

.layout-3-portrait {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 270px));
  gap: 28px;
  justify-content: center;
}
.layout-3-portrait .vid-card { aspect-ratio: 9 / 16; }

.layout-3-landscape {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  gap: 22px 28px;
  justify-content: center;
}
.layout-3-landscape .vid-card { aspect-ratio: 16 / 9; }
.layout-3-landscape .vid-card:nth-child(3) {
  grid-column: 1 / -1;
  width: min(440px, 100%);
  justify-self: center;
}

.layout-mix {
  display: grid;
  grid-template-columns: minmax(0, 275px) minmax(0, 440px);
  gap: 28px;
  align-items: center;
  justify-content: center;
}
.layout-mix.reverse {
  grid-template-columns: minmax(0, 440px) minmax(0, 275px);
}
.mix-portrait { aspect-ratio: 9 / 16; }
.mix-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mix-stack .vid-card { aspect-ratio: 16 / 9; }

.layout-2-landscape {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 500px));
  gap: 28px;
  justify-content: center;
}
.layout-2-landscape .vid-card { aspect-ratio: 16 / 9; }

/* Bottom Tab Strip */
.mac-tabs {
  padding: 10px 16px;
  background: #f2f2f5;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.tab-pill {
  flex: 1 0 auto;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-pill:hover {
  background: rgba(0, 0, 0, 0.09);
  color: var(--ink);
}

.tab-pill.active {
  background: var(--mac-blue);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 122, 255, 0.3);
}

.mac-statusbar {
  min-height: 36px;
  padding: 8px 22px;
  background: #f6f6f7;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* --- Section 3: Swiss Editorial Footer (#0b0b0c) --- */
.editorial-footer {
  background: var(--obsidian);
  color: #f5f5f3;
  padding: clamp(72px, 10vh, 112px) clamp(24px, 6vw, 116px);
}

.footer-inner {
  max-width: 1520px;
  margin: 0 auto;
  min-height: clamp(460px, 66vh, 660px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
}

.footer-top-wrap,
.footer-bot-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-name {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.78);
}

.footer-avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.hairline {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.footer-headline {
  font-size: clamp(54px, 8.2vw, 128px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #f5f5f3;
}

.footer-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: -0.02em;
}

.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-role {
  font-size: clamp(17px, 1.5vw, 22px);
  color: rgba(255, 255, 255, 0.58);
  max-width: 560px;
  line-height: 1.48;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(17px, 1.5vw, 22px);
}

.footer-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.link-key {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

/* --- Video Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.86);
  backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 1080px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
}

.lightbox-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-content video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 14px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
}

/* --- Responsive Mobile Layout --- */
@media (max-width: 960px) {
  .hero {
    min-height: 720px;
    max-height: 880px;
  }

  .hero-title-stage {
    top: 120px;
  }

  .hero-portfolio {
    font-size: clamp(96px, 26vw, 185px);
  }

  .hero-accent {
    font-size: clamp(32px, 8.6vw, 56px);
    top: -26px;
  }

  .hero-subject {
    width: min(140vw, 580px);
    bottom: -16px;
  }

  .site-nav nav a:not(.nav-cta) {
    display: none;
  }

  .hero-bottom-layer {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px 76px;
    gap: 20px;
  }

  .bio-card {
    width: 100%;
    padding: 20px 22px;
  }

  .bio-text {
    font-size: 16px;
  }

  .skills-list {
    gap: 12px;
    padding-right: 0;
  }

  .skills-list li {
    font-size: 17px;
    gap: 12px;
  }

  .sparkle {
    width: 22px;
    height: 22px;
  }

  .mac-sidebar {
    display: none;
  }

  .mac-body {
    min-height: 460px;
  }

  .folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .mac-folder-svg {
    width: 92px;
    height: 75px;
  }

  .layout-3-portrait,
  .layout-3-landscape,
  .layout-2-landscape,
  .layout-mix,
  .layout-mix.reverse {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .layout-3-portrait {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .layout-3-portrait .vid-card:nth-child(3) {
    grid-column: 1 / -1;
    width: 52%;
    justify-self: center;
  }

  .mix-portrait {
    width: 68%;
    justify-self: center;
  }

  .footer-headline {
    font-size: clamp(40px, 11vw, 96px);
  }

  .footer-links {
    align-items: flex-start;
  }

  .mac-statusbar span:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
