:root {
  /* one warm-neutral gray family */
  --bg: #11100f;
  --bg-soft: #191817;
  --line: #2a2826;
  --line-strong: #403d39;
  --text: #ebe8e2;
  --muted: #918d86;
  --accent: #e98b38;
  --accent-ink: #17120b;
  --radius: 2px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", "Avenir Next", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* film grain over the whole page: breaks digital flatness */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90;
  pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.055'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 110;
  background: var(--text); color: var(--bg);
  padding: 10px 18px; font-weight: 600; font-size: 14px; border-radius: 999px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
#preloader .pl-name {
  font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.01em;
  overflow: hidden;
}
#preloader .pl-name span { display: inline-block; transform: translateY(110%); }
#preloader .pl-name b { color: var(--accent); font-weight: 700; }
body.loading { overflow: hidden; }

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.brand { font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a { position: relative; padding: 6px 0; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.current { color: var(--text); }
.nav-links a.current::after, .nav-links a:hover::after { transform: scaleX(1); }
.lang { display: flex; gap: 2px; font-size: 12px; font-weight: 500; }
.lang button {
  background: none; border: 1px solid transparent; color: var(--muted);
  font: inherit; padding: 5px 9px; cursor: pointer; border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.lang button:hover { color: var(--text); }
.lang button.active { color: var(--accent); border-color: var(--line-strong); background: var(--bg-soft); }
@media (max-width: 767px) { .nav-links { display: none; } .lang { margin-left: auto; } }

/* ---------- sections ---------- */
section { padding: 124px 0 148px; border-bottom: 1px solid var(--line); position: relative; }
.chapter {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  margin-bottom: 56px;
}
.chapter b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.chapter::after { content: ""; flex: 0 0 56px; height: 1px; background: var(--line-strong); }

/* ---------- split lines ---------- */
.split .line { display: block; overflow: hidden; }
.split .line-inner { display: block; }

/* ---------- status badge ---------- */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px; font-weight: 500; color: var(--text);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  font-variant-numeric: tabular-nums;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #58c472; flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .status .dot { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(88,196,114,.4); }
    50% { box-shadow: 0 0 0 6px rgba(88,196,114,0); }
  }
}
.status-time { color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 10px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 96px 24px 190px;
  border-bottom: none;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17,16,15,.82) 0%, rgba(17,16,15,.42) 38%, rgba(17,16,15,.7) 72%, var(--bg) 100%),
    radial-gradient(70% 55% at 50% 45%, rgba(17,16,15,.55) 0%, transparent 100%),
    url("img/img_1323.jpg") center / cover no-repeat,
    var(--bg);
}
.hero-noise { display: none; }
.hero-name {
  position: relative; z-index: 1;
  font-size: clamp(3.2rem, 13vw, 11.5rem);
  font-weight: 800; line-height: .92; letter-spacing: -0.045em;
  text-align: center; text-transform: uppercase;
  color: #f2efe9;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
  user-select: none;
}
.hero-foot {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 44px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 48px; padding: 0 40px;
  max-width: 1440px; margin: 0 auto;
}
.hf-left { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hf-left p { max-width: 32ch; font-size: 18px; line-height: 1.5; color: var(--text); }
.hf-right { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; text-align: right; }
.hf-right p { max-width: 38ch; font-size: 14px; color: color-mix(in srgb, var(--text) 70%, transparent); }
@media (max-width: 900px) {
  .hero { flex-direction: column; justify-content: flex-start; padding-bottom: 64px; align-items: center; }
  .hero-name { margin-top: 16dvh; }
  .hero-foot { position: static; margin-top: 18dvh; flex-direction: column; align-items: flex-start; padding: 0; width: 100%; }
  .hf-right { align-items: flex-start; text-align: left; }
}
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 15px; padding: 15px 30px;
  border-radius: 999px;
  transition: background .3s, color .3s;
  will-change: transform;
  white-space: nowrap;
}
.cta::after { content: "→"; transition: transform .35s var(--ease); }
.cta:hover { background: var(--accent); color: var(--accent-ink); }
.cta:hover::after { transform: translateX(4px); }
.cta:active { scale: .98; }

/* ---------- 01 about ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 88px; align-items: center; }
.about-photo { position: relative; max-width: 420px; }
.about-photo .ph { overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(100%) contrast(1.08) brightness(.92); }
.about-photo::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--line-strong); transform: translate(16px, 16px);
  pointer-events: none;
}
.about-text .big {
  font-size: clamp(1.5rem, 2.9vw, 2.3rem); font-weight: 300;
  line-height: 1.32; letter-spacing: -0.015em; margin-bottom: 28px;
}
.about-text .big b { font-weight: 600; color: var(--text); }
.about-text p { color: var(--muted); max-width: 54ch; }
.about-text p.big { color: var(--text); max-width: none; }
@media (max-width: 767px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 300px; }
}

/* ---------- 02 skills ---------- */
.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 72px; row-gap: 0;
  counter-reset: skill;
  border-top: 1px solid var(--line);
}
.skill {
  counter-increment: skill;
  position: relative;
  display: grid; grid-template-columns: 44px 1fr; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .45s var(--ease);
}
.skill::before {
  content: counter(skill, decimal-leading-zero);
  font-size: 12px; font-weight: 500; color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.skill::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.skill h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 2px; grid-column: 2; }
.skill p { color: var(--muted); font-size: 14.5px; grid-column: 2; }
@media (hover: hover) {
  .skill:hover { padding-left: 10px; }
  .skill:hover::before { color: var(--accent); }
  .skill:hover::after { transform: scaleX(1); }
}
@media (max-width: 767px) { .skills-grid { grid-template-columns: 1fr; } }

/* ---------- 03 path ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 96px; }
.stat { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.stat .num {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--text);
  line-height: 1.05; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat .lbl { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 18ch; }
@media (max-width: 767px) { .stats { grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-bottom: 72px; } }

.tl-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.tl-drag { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .14em; }
.tl-viewport {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  margin: 0 -24px; padding: 0 24px;
}
.tl-viewport::-webkit-scrollbar { display: none; }
.tl-viewport.dragging { cursor: grabbing; scroll-snap-type: none; }
.tl-track { display: flex; gap: 20px; width: max-content; padding-bottom: 8px; }

/* spotlight surface: border lights up under the cursor */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--spot-bg, var(--bg));
}
@media (hover: hover) { .spot:hover::before { opacity: 1; } }

.t-card {
  width: min(400px, 80vw); flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px 40px;
  display: flex; flex-direction: column; gap: 10px;
  --spot-bg: var(--bg-soft);
  user-select: none;
}
.t-role { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.t-org { font-size: 14px; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.t-body { color: var(--muted); font-size: 15px; }

/* ---------- 04 mind: sticky stack ---------- */
.principles { margin-bottom: 96px; }
.principle { display: grid; grid-template-columns: 60px 1fr; gap: 24px; align-items: start; }
.p-card {
  position: sticky; top: 110px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 44px 56px;
  min-height: 280px;
  margin-bottom: 28px;
  will-change: transform;
  --spot-bg: var(--bg-soft);
  box-shadow: 0 -18px 40px -24px rgba(8,7,6,.9);
}
.p-card:nth-child(2) { top: 130px; }
.p-card:nth-child(3) { top: 150px; }
.p-num { font-size: 13px; font-weight: 500; color: var(--accent); padding-top: 9px; font-variant-numeric: tabular-nums; }
.principle h3 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; }
.principle p { color: var(--muted); max-width: 56ch; }
@media (max-width: 767px) {
  .p-card { position: static; padding: 28px 24px 32px; min-height: 0; }
  .principle { grid-template-columns: 36px 1fr; gap: 12px; }
}

.speak-label { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 22px; letter-spacing: .14em; }
.speak-marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 30px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.speak-marquee .mq-track { display: inline-flex; will-change: transform; }
.speak-marquee .mq-chunk { display: inline-flex; align-items: center; }
.speak-marquee span {
  font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600;
  letter-spacing: -0.02em; padding-right: 44px; color: var(--text);
}
.speak-marquee i { font-style: normal; color: var(--accent); padding-left: 44px; }

/* ---------- 05 connect ---------- */
.connect { border-bottom: none; padding-bottom: 96px; overflow: hidden; }
.connect::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 520px;
  transform: translate(-50%, -30%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 13%, transparent), transparent);
  pointer-events: none;
}
.connect h2 {
  font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 700;
  line-height: 1; letter-spacing: -0.04em; margin-bottom: 24px;
}
.connect .sub { color: var(--muted); max-width: 44ch; margin-bottom: 64px; font-size: 17px; }
.contact-rows { border-top: 1px solid var(--line); position: relative; }
.contact-row {
  position: relative; overflow: hidden; z-index: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 34px 12px;
  border-bottom: 1px solid var(--line);
}
.contact-row .kind { font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--muted); width: 140px; flex-shrink: 0; transition: color .35s; }
.contact-row .val { font-size: clamp(1.2rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; margin-right: auto; transition: color .35s, transform .45s var(--ease); }
.contact-row .arr { font-size: 22px; color: var(--muted); transition: color .35s, transform .45s var(--ease); }
.contact-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--text);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.contact-row:hover::before, .contact-row:focus-visible::before { transform: scaleY(1); }
.contact-row:hover .val, .contact-row:focus-visible .val { color: var(--bg); transform: translateX(12px); }
.contact-row:hover .kind, .contact-row:focus-visible .kind { color: rgba(17,16,15,.6); }
.contact-row:hover .arr, .contact-row:focus-visible .arr { color: var(--accent-ink); transform: translate(4px, -4px); }
@media (max-width: 600px) { .contact-row .kind { display: none; } }

/* ---------- footer ---------- */
footer { padding: 56px 0 32px; color: var(--muted); font-size: 13px; overflow: hidden; }
.foot-name {
  font-size: clamp(2.2rem, 8.6vw, 8rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.045em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 0% 100%;
  -webkit-background-clip: text; background-clip: text;
  margin-bottom: 28px;
  user-select: none;
}
.foot-line { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; }
.foot-line a { transition: color .25s; }
.foot-line a:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .foot-name { background-size: 100% 100%; } }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .skill.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease), padding-left .45s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .speak-marquee .mq-track { transform: none !important; }
}
