/* =========================================================
   berkaygul.com — landing
   Palet: near-black / kemik / koyu kırmızı · Editorial & dark
   ========================================================= */

:root {
  --bg: #080808;
  --bg-2: #0e0d0d;
  --bg-3: #151313;
  --ink: #ede6da;
  --ink-2: rgba(237, 230, 218, 0.62);
  --ink-3: rgba(237, 230, 218, 0.34);
  --line: rgba(237, 230, 218, 0.12);
  --crimson: #9b1b30;
  --crimson-hi: #c8243f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

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

html { -webkit-text-size-adjust: 100%; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 14px; font-family: var(--mono); font-size: 12px; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--crimson-hi); outline-offset: 3px; }
html.smooth { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

@media (hover: hover) and (pointer: fine) {
  body, a, button, input, summary { cursor: none; }
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 100; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor__dot, .cursor__ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  transform: translate3d(-100px, -100px, 0);
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(237, 230, 218, 0.45);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s;
}
.cursor__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease);
  white-space: nowrap;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--crimson-hi); }
.cursor.is-label .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--crimson); border-color: var(--crimson); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform-origin: center; }

/* ---------- progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; }
.progress i { display: block; height: 100%; width: 100%; background: var(--crimson-hi); transform-origin: 0 50%; transform: scaleX(0); }

/* =========================================================
   BOOT
   ========================================================= */
.boot {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  padding: var(--gutter);
  display: grid;
  grid-template-rows: 1fr auto auto;
  font-family: var(--mono);
}
.boot__log { font-size: 12px; line-height: 1.9; color: var(--ink-2); text-transform: lowercase; align-self: start; max-width: 560px; }
.boot__log div { white-space: pre; overflow: hidden; }
.boot__log .ok { color: var(--crimson-hi); }
.boot__log .hl { color: var(--ink); }
.boot__meta { display: flex; gap: 24px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.boot__count {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) + 10px);
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(90px, 20vw, 260px); line-height: .8; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.boot__bar { height: 1px; background: var(--line); margin-top: 14px; }
.boot__bar i { display: block; height: 100%; width: 100%; background: var(--crimson-hi); transform: scaleX(0); transform-origin: 0 50%; }
.boot__curtain {
  position: absolute; inset: 0; background: var(--crimson);
  transform: translateY(100%);
}
.boot.is-done .boot__curtain { animation: curtain 1.1s var(--ease-io) forwards; }
.boot.is-done { animation: bootOut .01s linear .75s forwards; }
@keyframes curtain {
  0% { transform: translateY(100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}
@keyframes bootOut { to { background: transparent; } }
.boot.is-done > :not(.boot__curtain) { animation: fadeOut .01s linear .55s forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.boot.is-gone { display: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 20px var(--gutter);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(8, 8, 8, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-family: var(--serif); font-style: italic; font-size: 38px; line-height: 1; font-weight: 500; display: inline-block; }
.nav__logo span { color: var(--crimson-hi); }
.nav__links { display: flex; justify-content: center; gap: clamp(16px, 2.6vw, 40px); }
.nav__links a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); transition: color .3s; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--crimson-hi); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--ink); }
.nav__meta { display: flex; gap: 20px; align-items: center; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 0 rgba(62, 207, 110, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(62,207,110,.55); } 80%,100% { box-shadow: 0 0 0 10px rgba(62,207,110,0); } }
.clock { font-variant-numeric: tabular-nums; min-width: 11ch; }
.nav__lang { border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; color: var(--ink); transition: border-color .3s, background .3s; }
.nav__lang:hover { border-color: var(--crimson-hi); background: rgba(155,27,48,.25); }

.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 8px; right: 8px; height: 1px; background: var(--ink); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 23px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 65; background: var(--crimson);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: var(--gutter);
  clip-path: circle(0% at calc(100% - 36px) 36px);
  transition: clip-path .8s var(--ease-io);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 36px) 36px); }
.mobile-menu a { font-size: clamp(44px, 12vw, 72px); font-style: italic; font-weight: 300; line-height: 1.1; }
.mobile-menu a.mobile-menu__lang { font-style: normal; font-size: 14px; margin-top: 18px; width: max-content; border: 1px solid rgba(237,230,218,.5); border-radius: 100px; padding: 8px 16px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(28px, 5vh, 56px);
  overflow: hidden;
}
.hero__graph { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 72% 42%, transparent 0%, rgba(8,8,8,.35) 60%, var(--bg) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 38%);
}
.hero__hint { position: absolute; top: 96px; right: var(--gutter); color: var(--ink-3); z-index: 2; }
.hero__inner { position: relative; z-index: 2; pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__kicker { display: flex; gap: 32px; color: var(--ink-2); margin-bottom: 18px; }
.hero__title {
  font-weight: 300; font-size: clamp(88px, 19.5vw, 320px);
  line-height: .82; letter-spacing: -0.035em;
  margin-left: -0.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.1em; }
.hero__title .line--indent { padding-left: 16vw; font-style: italic; }
.hero__title .dot { color: var(--crimson-hi); font-style: normal; display: inline-block; transform: translateY(100%); opacity: 0; transition: transform 1s var(--ease) .9s, opacity .4s .9s; }
body.is-ready .hero__title .dot { transform: none; opacity: 1; }

.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(24px, 4vh, 48px); }
.hero__lede { max-width: 640px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; color: var(--ink-2); }
.hero__lede em { color: var(--ink); }
.rotator { display: inline-block; color: var(--crimson-hi); font-style: italic; position: relative; }
.rotator span { display: inline-block; }
.rotator span.out { animation: rotOut .45s var(--ease-io) forwards; }
.rotator span.in { animation: rotIn .6s var(--ease) forwards; }
@keyframes rotOut { to { transform: translateY(-60%); opacity: 0; filter: blur(4px); } }
@keyframes rotIn { from { transform: translateY(60%); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }

.hero__coords { position: absolute; z-index: 2; right: var(--gutter); top: 50%; writing-mode: vertical-rl; display: flex; gap: 20px; color: var(--ink-3); transform: translateY(-50%) rotate(180deg); }

.round-btn { position: relative; width: 132px; height: 132px; flex: 0 0 auto; display: grid; place-items: center; }
.round-btn__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.round-btn__ring text { font-family: var(--mono); font-size: 8.6px; letter-spacing: .22em; fill: var(--ink-2); }
.round-btn__arrow { width: 56px; height: 56px; border-radius: 50%; background: var(--crimson); display: grid; place-items: center; font-size: 22px; transition: transform .5s var(--ease), background .3s; }
.round-btn:hover .round-btn__arrow { transform: scale(1.15); background: var(--crimson-hi); }
@keyframes spin { to { transform: rotate(360deg); } }

/* split text */
.split .ch { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); }
.split .sp { display: inline-block; width: .28em; }
.is-in .split .ch, body.is-ready .hero .split .ch { transform: none; }

/* generic reveal */
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal-up.is-in { opacity: 1; transform: none; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; position: relative; z-index: 2; background: var(--bg); }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__row--rev .marquee__track { animation-direction: reverse; }
.marquee__track { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-size: clamp(40px, 7vw, 104px); font-weight: 300; line-height: 1.05; flex: 0 0 auto; animation: mq 42s linear infinite; }
@keyframes mq { to { transform: translate3d(-100%, 0, 0); } }
.marquee__track span.o { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee__track i { font-style: normal; color: var(--crimson-hi); font-size: .45em; }
.marquee__row--alt { margin-top: 6px; }
.marquee__row--alt .marquee__track { animation-duration: 55s; }
.marquee__row--alt .marquee__track { font-family: var(--mono); font-size: clamp(12px, 1.2vw, 15px); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); gap: 28px; padding-right: 28px; }
.marquee__row--alt i { font-size: 8px; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(96px, 14vw, 180px) var(--gutter); position: relative; }
.section__head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(40px, 6vw, 80px); color: var(--ink-2); }
.section__num { color: var(--crimson-hi); }
.section__label { font-weight: 400; }
.section__line { flex: 1; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.section__head.is-in .section__line { transform: none; }

.big-statement { font-weight: 300; font-size: clamp(44px, 6.4vw, 104px); line-height: .98; letter-spacing: -0.02em; max-width: 14ch; }
.big-statement em { color: var(--crimson-hi); }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about__manifesto { font-size: clamp(30px, 3.5vw, 56px); line-height: 1.12; font-weight: 300; letter-spacing: -0.01em; }
.about__manifesto .w { color: var(--ink); opacity: .14; transition: opacity .4s, color .4s; }
.about__manifesto .w.on { opacity: 1; }
.about__manifesto .w.accent.on { color: var(--crimson-hi); font-style: italic; }
.about__side { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.about__hint { color: var(--ink-3); }

/* ID card */
.idcard { width: min(340px, 100%); aspect-ratio: 0.63; perspective: 1400px; }
.idcard__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.idcard.is-flipped .idcard__inner { transform: rotateY(180deg); }
.idcard__face {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(160deg, #1b1717 0%, #0d0b0b 60%, #140a0c 100%);
  border: 1px solid rgba(237,230,218,.14);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.idcard__back { transform: rotateY(180deg); background: linear-gradient(160deg, #6f1323 0%, #9b1b30 55%, #4a0c17 100%); }
.idcard__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,220,220,.35), transparent 40%),
              linear-gradient(115deg, transparent 30%, rgba(155,27,48,.35) 45%, rgba(237,230,218,.15) 52%, transparent 65%);
  background-size: 100% 100%, 250% 250%;
  background-position: 0 0, var(--sx, 50%) 50%;
}
.idcard__top { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 10px; }
.idcard__back .idcard__top { color: rgba(237,230,218,.7); }
.idcard__portrait { flex: 1; border-radius: 10px; background: #0a0909; border: 1px solid var(--line); overflow: hidden; min-height: 0; }
.idcard__portrait svg { width: 100%; height: 100%; display: block; }
.portrait-spin { transform-origin: 100px 104px; animation: spin 60s linear infinite; }
.idcard { outline-offset: 6px; border-radius: 18px; }
.idcard__name { font-size: 34px; line-height: 1; font-style: italic; font-weight: 400; }
.idcard__name span { color: var(--crimson-hi); font-style: normal; }
.idcard__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; font-size: 10px; }
.idcard__rows small { display: block; color: var(--ink-3); font-size: 9px; margin-bottom: 2px; }
.idcard__rows b { font-weight: 400; color: var(--ink); }
.idcard__barcode { height: 26px; background: repeating-linear-gradient(90deg, var(--ink-2) 0 1px, transparent 1px 3px, var(--ink-2) 3px 5px, transparent 5px 6px, var(--ink-2) 6px 7px, transparent 7px 11px); opacity: .5; }
.idcard__values { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; flex: 1; }
.idcard__values li { font-size: 26px; font-style: italic; font-weight: 300; border-bottom: 1px solid rgba(237,230,218,.2); padding-bottom: 6px; display: flex; gap: 14px; align-items: baseline; }
.idcard__values li .mono { font-style: normal; font-size: 10px; opacity: .7; }
.idcard__quote { font-size: 18px; line-height: 1.25; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 120px); }
.fact { padding: 24px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.fact:last-child { border-right: 0; }
.fact dt { color: var(--crimson-hi); margin-bottom: 10px; }
.fact dd { font-size: 22px; line-height: 1.25; }
.fact:nth-child(2) { transition-delay: .1s; } .fact:nth-child(3) { transition-delay: .2s; } .fact:nth-child(4) { transition-delay: .3s; }

/* ---------- skills ---------- */
.skills, .os, .faq { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.skills .big-statement { margin-bottom: clamp(48px, 6vw, 88px); }
.skill-list { list-style: none; border-top: 1px solid var(--line); }
.skill { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.skill::before { content: ""; position: absolute; inset: 0; background: var(--crimson); transform: translateY(101%); transition: transform .7s var(--ease); z-index: 0; }
.skill:hover::before, .skill.is-open::before { transform: none; }
.skill__row {
  position: relative; z-index: 1; width: 100%; text-align: left;
  display: grid; grid-template-columns: 70px 1fr auto 40px; align-items: center; gap: 24px;
  padding: clamp(22px, 2.6vw, 36px) 0;
}
.skill__num { color: var(--ink-3); transition: color .4s; }
.skill:hover .skill__num, .skill.is-open .skill__num { color: var(--ink); }
.skill__title { font-size: clamp(32px, 4.4vw, 68px); font-weight: 300; line-height: 1; transition: transform .7s var(--ease), font-style .3s; }
.skill:hover .skill__title { transform: translateX(18px); font-style: italic; }
.skill__tags { color: var(--ink-2); text-align: right; font-size: 11px; }
.skill:hover .skill__tags, .skill.is-open .skill__tags { color: var(--ink); }
.skill__plus { width: 22px; height: 22px; position: relative; justify-self: end; }
.skill__plus::before, .skill__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .6s var(--ease); }
.skill__plus::after { transform: rotate(90deg); }
.skill.is-open .skill__plus::after { transform: rotate(0deg); }
.skill__body { position: relative; z-index: 1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.skill__body p { overflow: hidden; max-width: 680px; margin-left: 94px; font-size: 22px; line-height: 1.4; }
.skill.is-open .skill__body { grid-template-rows: 1fr; }
.skill.is-open .skill__body p { padding-bottom: 32px; }

.skill-float {
  position: fixed; top: 0; left: 0; width: 240px; height: 170px; z-index: 60; pointer-events: none;
  border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line);
  opacity: 0; transform: translate3d(-500px,-500px,0) scale(.8); transition: opacity .35s, scale .35s;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.skill-float.is-on { opacity: 1; }
.skill-float svg { width: 100%; height: 100%; display: block; }
@media (hover: none) { .skill-float { display: none; } }

/* ---------- work (horizontal) ---------- */
.work { position: relative; height: 500vh; }
.work__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 70px; }
.work__head { padding: 0 var(--gutter); margin-bottom: clamp(24px, 4vh, 48px); }
.work__counter { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.work__counter b { color: var(--ink); font-weight: 400; }
.work__track { display: flex; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gutter); will-change: transform; align-items: stretch; }
.work__intro { flex: 0 0 min(420px, 80vw); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.work__intro h3 { font-size: clamp(56px, 7vw, 112px); font-weight: 300; line-height: .9; letter-spacing: -.02em; }
.work__intro h3 em { color: var(--crimson-hi); }
.work__intro p { color: var(--ink-2); font-size: 22px; }
.work__intro p em { color: var(--ink); }
.work__intro .mono { color: var(--ink-3); }

.card { flex: 0 0 clamp(300px, 46vw, 720px); display: flex; flex-direction: column; gap: 18px; }
.card__visual {
  position: relative; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line);
  transition: transform 1s var(--ease), border-color .4s;
}
.card__visual { display: block; }
.card__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 1.2s var(--ease); }
.card:hover .card__visual { border-color: rgba(200, 36, 63, .6); }
.card:hover .card__visual img { transform: scale(1.04); }
.card h3 a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.card h3 a:hover { border-color: var(--crimson-hi); }
.poster { background: #090909; display: grid; align-content: space-between; padding: clamp(14px, 2.4vw, 28px); font-family: var(--mono); }
.poster__live { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .08em; color: var(--ink-2); }
.poster__live b { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson-hi); animation: ping 2s infinite; }
.poster__t { font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(54px, 9vw, 132px); line-height: .9; letter-spacing: 2px; color: #f1eee7; }
.poster__bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.poster__bars i { flex: 1; max-width: 8px; height: var(--h); background: rgba(241,238,231,.5); transform-origin: bottom; animation: eq var(--d) ease-in-out infinite alternate; }
.poster__bars i:nth-child(7n+1) { background: var(--crimson-hi); }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.card__meta { display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; }
.card__idx { color: var(--crimson-hi); grid-row: span 3; padding-top: 12px; }
.card h3 { font-size: clamp(30px, 3vw, 46px); font-weight: 400; line-height: 1; }
.card p { color: var(--ink-2); font-size: 20px; max-width: 46ch; }
.card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.card__tags li { border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; font-size: 10px; color: var(--ink-2); }
.badge { font-size: 9px; text-transform: uppercase; white-space: nowrap; vertical-align: super; background: var(--crimson); color: var(--ink); padding: 3px 7px; border-radius: 100px; margin-left: 6px; letter-spacing: .08em; }

/* ---------- OS / terminal ---------- */
.os__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.os__copy .big-statement { font-size: clamp(40px, 4.8vw, 76px); max-width: 16ch; margin-bottom: 28px; }
.os__copy p { color: var(--ink-2); font-size: 22px; max-width: 44ch; }
.os__copy p .mono { color: var(--ink); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { border: 1px solid var(--line); border-radius: 100px; padding: 9px 14px; font-size: 11px; text-transform: none; color: var(--ink-2); transition: all .35s var(--ease); }
.chip:hover { border-color: var(--crimson-hi); color: var(--ink); background: rgba(155,27,48,.2); }

.term {
  border-radius: 14px; overflow: hidden; background: #0b0a0a;
  border: 1px solid rgba(237,230,218,.14);
  box-shadow: 0 50px 100px -40px rgba(155,27,48,.45), 0 0 0 1px rgba(0,0,0,.5);
}
.term__bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #110f0f; color: var(--ink-3); font-size: 11px; }
.term__bar .mono { text-transform: none; }
.term__zsh { margin-left: auto; }
.term__dots { display: flex; gap: 7px; }
.term__dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2525; }
.term__dots i:first-child { background: var(--crimson-hi); }
.term__body { height: 420px; overflow-y: auto; padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.7; scrollbar-width: thin; scrollbar-color: #2a2525 transparent; }
.term__out > div { white-space: pre-wrap; word-break: break-word; }
.term__out .cmd { color: var(--ink); }
.term__out .cmd b { color: var(--crimson-hi); font-weight: 400; }
.term__out .res { color: var(--ink-2); }
.term__out .acc { color: var(--crimson-hi); }
.term__out .ink { color: var(--ink); }
.term__out .grn { color: #3ecf6e; }
.term__out a { color: var(--ink); border-bottom: 1px solid var(--crimson-hi); }
.term__line { display: flex; gap: 10px; align-items: center; }
.term__prompt { color: var(--crimson-hi); text-transform: none; font-size: 13px; }
.term__line input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 13px; text-transform: none; caret-color: var(--crimson-hi); min-width: 0; }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .big-statement { position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; font-weight: 400; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { flex: 0 0 22px; height: 22px; position: relative; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--crimson-hi); transition: transform .5s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__item summary:hover { color: var(--crimson-hi); }
.faq__item p { color: var(--ink-2); font-size: 21px; line-height: 1.4; max-width: 62ch; padding-bottom: 28px; }

/* ---------- contact ---------- */
.contact { position: relative; padding: clamp(120px, 16vw, 220px) var(--gutter) clamp(80px, 10vw, 140px); overflow: hidden; }
.contact__bg {
  position: absolute; left: 50%; top: 55%; width: 120vmax; height: 120vmax; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(155,27,48,.35) 0%, rgba(155,27,48,.08) 30%, transparent 55%);
  pointer-events: none;
}
.contact__kicker { color: var(--crimson-hi); margin-bottom: 24px; position: relative; }
.contact__title { position: relative; font-weight: 300; font-size: clamp(72px, 14vw, 240px); line-height: .86; letter-spacing: -.035em; }
.contact__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.contact__title .line--indent { padding-left: 12vw; color: var(--crimson-hi); }
.contact__actions { position: relative; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 80px); }
.big-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center;
  border: 1px solid var(--ink); border-radius: 100px; padding: 26px 48px;
  font-size: clamp(26px, 2.6vw, 38px); font-style: italic;
}
.big-btn__fill { position: absolute; inset: 0; background: var(--ink); border-radius: 50% 50% 0 0; transform: translateY(102%); transition: transform .7s var(--ease), border-radius .7s var(--ease); }
.big-btn__text { position: relative; transition: color .5s; }
.big-btn__text b { font-weight: 400; font-style: normal; display: inline-block; transition: transform .5s var(--ease); }
.big-btn:hover .big-btn__fill { transform: none; border-radius: 0; }
.big-btn:hover .big-btn__text { color: var(--bg); }
.big-btn:hover .big-btn__text b { transform: translateX(8px); }
.copy { display: inline-flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: 13px; text-transform: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .3s, border-color .3s; }
.copy:hover { color: var(--ink); border-color: var(--crimson-hi); }
.copy i { font-style: normal; color: var(--crimson-hi); }
.socials { position: relative; list-style: none; display: flex; gap: 32px; flex-wrap: wrap; margin-top: 56px; color: var(--ink-2); }
.socials a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px var(--gutter) 28px; overflow: hidden; }
.footer__big { font-size: clamp(64px, 15.5vw, 280px); font-weight: 300; line-height: .85; letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(237,230,218,.28); transition: -webkit-text-stroke-color .5s; }
.footer__big em { -webkit-text-stroke: 1px rgba(200,36,63,.7); }
.footer__big:hover { -webkit-text-stroke-color: var(--ink); }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); margin-top: 28px; }
.footer__row a:hover { color: var(--ink); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 200%); opacity: 0; transition: transform .6s var(--ease), opacity .3s !important; z-index: 120; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 100px; transition: transform .6s var(--ease); text-transform: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav__meta .clock { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact { padding-bottom: 24px; }
  .skill__tags { display: none; }
  .skill__row { grid-template-columns: 50px 1fr 30px; }
  .skill__body p { margin-left: 74px; }
}

@media (max-width: 820px) {
  body { font-size: 18px; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links, .nav__meta { display: none; }
  .nav__burger { display: block; justify-self: end; }
  .hero { padding-top: 100px; }
  .hero__hint { top: 80px; left: var(--gutter); right: auto; }
  .hero__coords { display: none; }
  .hero__kicker { flex-direction: column; gap: 4px; }
  .hero__title .line--indent { padding-left: 10vw; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .round-btn { width: 104px; height: 104px; align-self: flex-end; margin-top: -40px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__side { position: relative; top: 0; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); }
  .skill__body p { margin-left: 0; font-size: 19px; padding-inline: 14px; }
  .skill__row { padding-inline: 14px; }
  .skill__row { grid-template-columns: 40px 1fr 24px; gap: 12px; }

  /* horizontal -> native swipe */
  .work { height: auto; }
  .work__sticky { position: relative; height: auto; padding: 96px 0; }
  .work__track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 12px; scrollbar-width: none; }
  .work__track::-webkit-scrollbar { display: none; }
  .work__intro, .card { scroll-snap-align: start; }
  .card { flex-basis: 84vw; }
  .card p { font-size: 18px; }
  .work__counter { display: none; }

  .os__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq .big-statement { position: static; }
  .faq__item p { font-size: 19px; }
  .term__body { height: 360px; font-size: 12px; }
  .big-btn { padding: 20px 34px; }
  .contact__title .line--indent { padding-left: 6vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
