/* ------------------------------------------------------------------ */
/* Cephas Osei-Bonsu — Portfolio                                       */
/* ------------------------------------------------------------------ */

:root {
  --bg:        #07080a;
  --bg-soft:   #0c0e12;
  --bg-elev:   #11141a;
  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.12);
  --text:      #f4f5f7;
  --text-2:    rgba(244, 245, 247, 0.62);
  --text-3:    rgba(244, 245, 247, 0.40);
  --text-4:    rgba(244, 245, 247, 0.22);
  --accent:    #7dd3fc;
  --accent-2:  #38bdf8;
  --accent-soft: rgba(125, 211, 252, 0.14);
  --accent-glow: rgba(56, 189, 248, 0.42);

  --sans:    "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif:   "Instrument Serif", "Iowan Old Style", "Apple Garamond", Georgia, serif;

  --gutter: clamp(20px, 5vw, 56px);
  --container: 1280px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Selection */
::selection { background: var(--accent-soft); color: var(--text); }

/* Ambient page glow — extremely subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 70vh at 78% -10%, rgba(56,189,248,0.10), transparent 60%),
    radial-gradient(40vw 50vh at 0% 100%, rgba(56,189,248,0.05), transparent 60%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; transition: color .25s cubic-bezier(.4,0,.2,1); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; transition: color .25s cubic-bezier(.4,0,.2,1), background .25s cubic-bezier(.4,0,.2,1), border-color .25s cubic-bezier(.4,0,.2,1); }
img { display: block; max-width: 100%; }

/* ------------------------------------------------------------------ */
/* Containers / layout primitives                                      */
/* ------------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.section-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.section-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 18px 0 0;
  max-width: 880px;
  text-wrap: balance;
}
.section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------------ */
/* Reveal animation                                                   */
/* ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s cubic-bezier(.22,.61,.36,1),
    transform 0.8s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* Directional variants — restrained, senior-feel */
.from-l   { transform: translate3d(-32px, 0, 0); }
.from-r   { transform: translate3d( 32px, 0, 0); }
.from-tl  { transform: translate3d(-24px, -18px, 0); }
.from-tr  { transform: translate3d( 24px, -18px, 0); }
.from-bl  { transform: translate3d(-24px,  18px, 0); }
.from-br  { transform: translate3d( 24px,  18px, 0); }
.from-down{ transform: translate3d(0, 28px, 0); }
.from-up  { transform: translate3d(0, -18px, 0); }
.from-zoom{ transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .from-l, .from-r, .from-tl, .from-tr, .from-bl, .from-br, .from-down, .from-up, .from-zoom {
    opacity: 1; transform: none; filter: none; transition: none;
  }
}

/* Scroll-progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width .15s linear;
}

/* ------------------------------------------------------------------ */
/* Nav                                                                 */
/* ------------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  transition: backdrop-filter .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 9, 11, 0.66);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.nav-brand .mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(160deg, #1a2330 0%, #0a0d12 100%);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(125,211,252,0.05), 0 0 24px -8px var(--accent-glow);
}

.nav-flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.nav-flags svg { display: block; border-radius: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .25s, background .25s;
  position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  transition: border-color .2s, background .2s, transform .2s;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(125,211,252,0.06);
}
.nav-cta svg { width: 13px; height: 13px; opacity: 0.7; }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text);
  }
  .nav-toggle .bars {
    display: flex; flex-direction: column; gap: 3px;
  }
  .nav-toggle .bars span {
    display: block; width: 14px; height: 1.5px; background: currentColor;
  }
}

.nav-sheet {
  position: fixed;
  inset: 0;
  background: rgba(8,9,11,0.92);
  backdrop-filter: blur(20px);
  z-index: 100;
  padding: 80px var(--gutter) 40px;
  display: flex; flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.nav-sheet.open { transform: translateY(0); }
.nav-sheet a {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.nav-sheet a span.idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
.nav-sheet .close {
  position: absolute;
  top: 22px; right: var(--gutter);
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text-2);
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(140px, 18vh, 200px) 0 clamp(80px, 12vw, 140px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-img {
  position: absolute;
  top: -8%;
  right: -10%;
  width: 92%;
  max-width: 1400px;
  opacity: 0.32;
  mix-blend-mode: screen;
  filter: blur(0.4px) saturate(140%);
  mask-image:
    radial-gradient(ellipse 70% 55% at 60% 45%, black 35%, transparent 75%);
  -webkit-mask-image:
    radial-gradient(ellipse 70% 55% at 60% 45%, black 35%, transparent 75%);
  will-change: transform;
  transition: transform 0.1s linear;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, var(--bg) 100%),
    radial-gradient(40vw 50vh at 18% 60%, rgba(8,9,11,0.7), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
  position: relative;
}
.hero-eyebrow .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px solid rgba(74,222,128,0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(46px, 9vw, 112px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 28px 0 0;
  color: var(--text);
}
.hero-name .first { display: block; }
.hero-name .last  {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: 4px;
  background: linear-gradient(180deg, #f4f5f7 0%, rgba(125,211,252,0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  margin: 24px 0 0;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--text-2);
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  align-items: center;
}
.hero-role .sep { color: var(--text-4); }
.hero-role .accent { color: var(--accent); }

.hero-bio {
  margin: 28px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 540px;
  text-wrap: pretty;
}

.hero-actions {
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.005em;
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255,255,255,0.02);
  transition:
    border-color .25s, background .25s, color .25s, transform .25s;
}
.btn:hover {
  border-color: rgba(125,211,252,0.55);
  background: rgba(125,211,252,0.06);
}
.btn svg { width: 14px; height: 14px; opacity: 0.85; transition: transform .25s; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn.primary {
  background: var(--text);
  color: #0a0c10;
  border-color: var(--text);
}
.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #06121b;
}
.btn.primary svg { opacity: 1; }

.hero-stats {
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
  max-width: 520px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-stats .stat .v {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-stats .stat .v em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}
.hero-stats .stat .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-top: 6px;
}

/* Cinematic portrait composition */
.portrait {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 520px;
}
.portrait-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  overflow: visible;
}

/* World-network atmosphere behind portrait */
.portrait-atmosphere {
  position: absolute;
  inset: -8% -10% -4% -10%;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 55%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 55%, black 30%, transparent 80%);
}
.portrait-atmosphere img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
  mix-blend-mode: screen;
  filter: blur(0.6px) saturate(160%) hue-rotate(-10deg);
}

/* Orbital rings */
.portrait-orbits {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  animation: orbitSpin 90s linear infinite;
  transform-origin: 50% 58%;
  pointer-events: none;
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-orbits { animation: none; }
}

/* Rim-light silhouette behind the cutout */
.portrait-rim {
  position: absolute;
  left: 50%; bottom: 4%;
  transform: translateX(-50%);
  width: 78%;
  height: 78%;
  border-radius: 50% 50% 14% 14% / 60% 60% 14% 14%;
  background: radial-gradient(
    ellipse 55% 70% at 50% 50%,
    rgba(56,189,248,0.55) 0%,
    rgba(56,189,248,0.18) 35%,
    rgba(56,189,248,0) 70%
  );
  filter: blur(36px);
  z-index: 2;
  opacity: 0.85;
  transition: opacity .6s, filter .6s;
}
.portrait:hover .portrait-rim {
  opacity: 1;
  filter: blur(30px);
}

/* The transparent PNG */
.portrait-cutout {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 110%;
  max-width: none;
  height: auto;
  z-index: 3;
  filter:
    grayscale(100%)
    contrast(1.05)
    brightness(0.95)
    drop-shadow(0 18px 50px rgba(0,0,0,0.7))
    drop-shadow(0 0 30px rgba(56,189,248,0.18));
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .8s;
  will-change: transform, filter;
}
.portrait:hover .portrait-cutout {
  transform: translate(-50%, -6px);
  filter:
    grayscale(70%)
    contrast(1.06)
    brightness(1)
    drop-shadow(0 22px 60px rgba(0,0,0,0.7))
    drop-shadow(0 0 40px rgba(56,189,248,0.32));
}

/* Bottom dissolve into page bg */
.portrait-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 22% at 50% 100%, var(--bg) 10%, transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}

/* HUD ticks */
.portrait-hud {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}
.hud-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid rgba(125,211,252,0.45);
}
.hud-corner.tl { top: 0; left: 0;   border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 0; right: 0;  border-left:  0; border-bottom: 0; }
.hud-corner.bl { bottom: 0; left: 0;  border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 0; right: 0; border-left:  0; border-top: 0; }
.hud-tick { position: absolute; white-space: nowrap; }
.hud-tick.top    { top: -14px; left: 32px; }
.hud-tick.left   { top: 50%; left: -8px; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; }
.hud-tick.right  { top: -14px; right: 32px; color: var(--accent); }
.hud-tick.bottom { bottom: -22px; left: 50%; transform: translateX(-50%); color: var(--accent); display:inline-flex; align-items:center; gap:8px; }
.live-dot {
  display:inline-block; width:6px; height:6px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.4; }
}

.portrait-tags {
  margin-top: 40px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  justify-content: center;
}
.portrait-tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
}
.portrait-tags .tag svg { width: 13px; height: 9px; }

@media (max-width: 980px) {
  .portrait { max-width: 380px; }
  .portrait-cutout { width: 105%; }
  .hud-tick.left, .hud-tick.right { display: none; }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.scroll-hint .line {
  width: 36px; height: 1px;
  background: linear-gradient(90deg, var(--text-4), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint .line::after {
  content: "";
  position: absolute;
  left: -10px; top: 0;
  width: 10px; height: 1px;
  background: var(--accent);
  animation: scrollBlip 2.4s ease-in-out infinite;
}
@keyframes scrollBlip {
  0%   { transform: translateX(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateX(50px); opacity: 0; }
}

@media (max-width: 980px) {
  .scroll-hint { display: none; }
  .hero-stats { max-width: 100%; }
}

/* ------------------------------------------------------------------ */
/* Skills marquee                                                      */
/* ------------------------------------------------------------------ */
.skills {
  padding: clamp(60px, 8vw, 120px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(125,211,252,0.02), transparent 30%, transparent 70%, rgba(125,211,252,0.02)),
    var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.skills-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.skills-head .right {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeL 60s linear infinite;
  will-change: transform;
}
.marquee.reverse .marquee-track { animation-name: marqueeR; }
.marquee.slow .marquee-track    { animation-duration: 80s; }
@keyframes marqueeL {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marqueeR {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .25s, border-color .25s, background .25s;
}
.skill-pill:hover {
  color: var(--text);
  border-color: rgba(125,211,252,0.4);
  background: rgba(125,211,252,0.06);
}
.skill-pill .icon {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: var(--accent);
  opacity: 0.85;
}
.skill-pill .icon svg { width: 100%; height: 100%; }

.marquee:hover .marquee-track { animation-play-state: paused; }

/* ------------------------------------------------------------------ */
/* Philosophy                                                          */
/* ------------------------------------------------------------------ */
.philosophy {
  padding: clamp(80px, 12vw, 140px) 0;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
@media (max-width: 880px) {
  .philosophy-grid { grid-template-columns: 1fr; gap: 32px; }
}
.philosophy-body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: pretty;
}
.philosophy-body em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.philosophy-body .muted {
  color: var(--text-3);
}

.philosophy-pillars {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .philosophy-pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--bg);
  padding: 32px 28px;
}
.pillar .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.pillar h4 {
  margin: 14px 0 6px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.pillar p {
  margin: 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ */
/* Work                                                                */
/* ------------------------------------------------------------------ */
.work-list {
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1.1fr 1fr;
  gap: 40px;
  padding: 40px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .35s ease;
  cursor: pointer;
}
@media (max-width: 880px) {
  .work-row { grid-template-columns: 1fr; gap: 20px; padding: 32px 4px; }
}
.work-row::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .35s;
}
.work-row:hover { background: linear-gradient(90deg, rgba(125,211,252,0.04), transparent 60%); }
.work-row:hover::before { opacity: 1; }

.work-row .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding-top: 6px;
}
.work-row.featured .num { color: var(--accent); }
.work-row.featured .work-title { color: var(--text); }
.work-row.featured::after {
  content: "Flagship";
  position: absolute;
  top: 40px;
  right: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 4px 9px;
  border: 1px solid rgba(125,211,252,0.4);
  border-radius: 999px;
  background: rgba(125,211,252,0.06);
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .work-row.featured::after { position: relative; top: 0; right: 0; align-self: start; display: inline-flex; }
}

.work-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color .25s;
}
.work-title .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s;
  color: var(--accent);
}
.work-row:hover .work-title .arrow {
  opacity: 1; transform: translateX(0);
}

.work-title.is-static { cursor: default; }
.work-title.is-static .arrow { display: none; }

.work-role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 8px;
}

.work-desc {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 520px;
  text-wrap: pretty;
}

.work-meta { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }

.stack-row {
  display: flex; flex-wrap: wrap;
  gap: 6px;
}
.stack-row .chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text-2);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.015);
}

.work-highlight {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  border-left: 1px solid var(--line-2);
  padding-left: 16px;
  max-width: 520px;
}
.work-highlight strong {
  color: var(--text);
  font-weight: 500;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.005em;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.work-link:hover { color: var(--accent); border-color: var(--accent); }
.work-link svg { width: 11px; height: 11px; transition: transform .2s; }
.work-link:hover svg { transform: translate(2px,-2px); }
.work-link.disabled { color: var(--text-4); cursor: not-allowed; }
.work-link.disabled:hover { color: var(--text-4); border-color: var(--line); }

/* ------------------------------------------------------------------ */
/* Experience                                                          */
/* ------------------------------------------------------------------ */
.experience {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exp-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
}
.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.exp-item:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .exp-item { grid-template-columns: 1fr; gap: 12px; }
}
.exp-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  padding-top: 4px;
  display: flex; flex-direction: column; gap: 6px;
}
.exp-date .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  width: fit-content;
  background: rgba(125,211,252,0.06);
  border: 1px solid rgba(125,211,252,0.25);
  color: var(--accent);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.exp-body h3 {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.exp-body .org {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}
.exp-body p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 640px;
}
.exp-body ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-body ul li {
  color: var(--text-2);
  font-size: 14.5px;
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.exp-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 1px;
  background: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Spotlight                                                           */
/* ------------------------------------------------------------------ */
.spotlight-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.spotlight-head .right {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.spotlight-head .right .ping {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.spot {
  background: var(--bg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  position: relative;
}
.spot.s-6 { grid-column: span 6; }
.spot.s-4 { grid-column: span 4; }
.spot.s-8 { grid-column: span 8; }
.spot.s-12 { grid-column: span 12; }
@media (max-width: 880px) {
  .spot.s-6, .spot.s-4, .spot.s-8 { grid-column: span 12; }
}
.spot-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}
.spot-head .tag {
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.spot-head .tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.spot-head .when { color: var(--text-3); }

.spot-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.spot-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  text-wrap: pretty;
}
.spot-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.spot-foot .more {
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.spot-foot .more:hover { color: var(--accent); }

.spot.now {
  background:
    linear-gradient(135deg, rgba(125,211,252,0.07), transparent 60%),
    var(--bg);
}
.spot.now::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(125,211,252,0.25);
  border-radius: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Contact + Footer                                                    */
/* ------------------------------------------------------------------ */
.contact {
  padding: clamp(120px, 18vw, 220px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 90vw; height: 90vw;
  max-width: 1100px; max-height: 1100px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56,189,248,0.18), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}
.contact-inner {
  position: relative;
  text-align: center;
}
.contact-greeting {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-title {
  margin: 24px auto 0;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 14ch;
  text-wrap: balance;
}
.contact-title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}
.contact-sub {
  margin: 26px auto 0;
  color: var(--text-2);
  max-width: 540px;
  font-size: 16.5px;
  line-height: 1.55;
}
.contact-actions {
  margin: 40px auto 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.contact-channels {
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  max-width: 980px;
}
@media (max-width: 760px) {
  .contact-channels { grid-template-columns: repeat(2, 1fr); }
}
.channel {
  background: var(--bg);
  padding: 26px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .3s;
}
.channel:hover { background: rgba(125,211,252,0.04); }
.channel .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.channel .v {
  font-size: 15px;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  word-break: break-word;
}
.channel:hover .v { color: var(--accent); }
.channel .v svg { width: 12px; height: 12px; opacity: 0.6; transition: transform .25s; }
.channel:hover .v svg { transform: translate(2px,-2px); opacity: 1; }

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand .n {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: -0.01em;
}
.footer-brand .r {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.footer-base .right {
  display: inline-flex; gap: 14px; align-items: center;
}

/* Hide scrollbars but keep scrollable */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }
::-webkit-scrollbar-track { background: transparent; }
