/* =====================================================================
   PALSKI — mono brand site
   Poppins (display/body) + JetBrains Mono (secondary / UI details)
   ===================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #171717;
  --fg: #f4f4f2;
  --fg-2: #bdbdbb;
  --mute: #7d7d7b;
  --line: rgba(244, 244, 242, 0.12);
  --line-strong: rgba(244, 244, 242, 0.28);

  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1600px;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

/* ---------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
::selection { background: var(--fg); color: var(--bg); }

.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.outline {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px currentColor;
  -webkit-text-stroke-color: var(--fg);
}
.dim { color: var(--mute); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hide-sm { }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--fg); color: var(--bg); padding: 10px 14px; font-weight: 500;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 4px; }

/* ---------------------------------------------------------- grain + pulse */
.grain {
  position: absolute; inset: -50%;
  pointer-events: none; z-index: 3; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(4%, -8%); }
  60% { transform: translate(-3%, 7%); }
  80% { transform: translate(8%, 2%); }
  100% { transform: translate(0, 0); }
}

.pulse {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--fg); margin-right: 8px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(244, 244, 242, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 244, 242, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(244, 244, 242, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 244, 242, 0); }
}

.caret {
  display: inline-block; width: 0.6em; height: 1.1em; background: var(--fg);
  vertical-align: -0.2em; margin-left: 2px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------- loader */
.loader {
  position: fixed; inset: 0; z-index: 900;
  background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__inner { width: min(520px, calc(100% - 2 * var(--gutter))); }
.loader__line { font-size: 14px; color: var(--fg-2); min-height: 1.6em; }
.loader__prompt { color: var(--mute); }
.loader__bar { height: 1px; background: var(--line); margin: 22px 0 14px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.loader__count { font-size: clamp(56px, 12vw, 120px); line-height: 1; letter-spacing: -0.04em; text-align: right; font-weight: 500; }
html:not(.js) .loader { display: none; }

/* ---------------------------------------------------------- cursor */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 1000; mix-blend-mode: difference; display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; }
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor .carousel { cursor: none; }
}
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid #fff;
  display: grid; place-items: center;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.cursor__label { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity 0.2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform-origin: center; }

/* ---------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
  transition: transform 0.6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.nav__brand img { width: 42px; height: 42px; transition: transform 0.8s var(--ease-out); }
.nav__brand:hover img { transform: rotate(-180deg); }

.nav__links { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 14px; font-weight: 500; }
.nav__links a { position: relative; display: block; overflow: hidden; height: 1.6em; }
.nav__links a span { display: block; transition: transform 0.5s var(--ease); }
.nav__links a span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.nav__links a:hover span { transform: translateY(-100%); }

.nav__end { display: flex; align-items: center; gap: 22px; }
.nav__status { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.nav__status .pulse { background: #fff; }

.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 20px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(44px, 14vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08;
  border-bottom: 1px solid var(--line); padding: 8px 0;
  transform: translateY(40px); opacity: 0;
  transition: transform 0.8s var(--ease-out), opacity 0.8s var(--ease-out);
}
.menu__links a span { font-size: 12px; color: var(--mute); letter-spacing: 0; font-weight: 400; }
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.06s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.12s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.18s; }
.menu__foot { margin-top: 28px; font-size: 13px; color: var(--fg-2); }

/* ---------------------------------------------------------- buttons */
.btn {
  --h: 58px;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 8px 0 26px;
  border-radius: 999px; overflow: hidden; isolation: isolate;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn__icon {
  width: calc(var(--h) - 16px); height: calc(var(--h) - 16px);
  border-radius: 50%; display: grid; place-items: center; font-size: 16px;
  transition: transform 0.6s var(--ease), background-color 0.5s, color 0.5s;
}
.btn:hover .btn__icon { transform: rotate(-45deg); }
.btn--light { background: var(--fg); color: var(--bg); }
.btn--light::before { background: var(--bg-3); }
.btn--light .btn__icon { background: var(--bg); color: var(--fg); }
.btn--light:hover { color: var(--fg); }
.btn--light:hover::before { transform: translateY(0); }
.btn--light:hover .btn__icon { background: var(--fg); color: var(--bg); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--fg); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost .btn__icon { border: 1px solid var(--line-strong); }
.btn--ghost:hover { color: var(--bg); }
.btn--ghost:hover::before { transform: translateY(0); }
.btn--ghost:hover .btn__icon { border-color: transparent; background: var(--bg); color: var(--fg); }
.btn--xl { --h: 72px; font-size: clamp(15px, 1.6vw, 20px); padding-left: 32px; }

.round-btn {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 18px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s;
}
.round-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.round-btn:disabled { opacity: 0.3; pointer-events: none; }

/* ---------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
  padding-bottom: calc(44px + clamp(48px, 9vh, 110px));
}
.hero__code {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease-out) forwards;
}
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero__scan {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.28) 3px, rgba(0,0,0,0) 4px);
  opacity: 0.55;
}
.hero__scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30vh; top: -30vh;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.035), rgba(255,255,255,0));
  animation: sweep 7s linear infinite;
}
@keyframes sweep { to { transform: translateY(160vh); } }
.hero__vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(10,10,10,0) 30%, rgba(10,10,10,0.85) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,0.9) 22%, rgba(10,10,10,0) 60%),
    linear-gradient(to bottom, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0) 18%);
}
.hero .grain { z-index: 3; }

.hero__content { position: relative; z-index: 4; }
.hero__eyebrow { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); margin-bottom: clamp(18px, 3vh, 32px); }

.hero__title {
  font-weight: 600;
  font-size: clamp(52px, 11.2vw, 196px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin-left: -0.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; white-space: nowrap; }
.hero__title .line__inner { display: inline-block; }
.hero__title .outline { -webkit-text-stroke-width: 2px; }
.hero__caret {
  display: inline-block; width: 0.08em; height: 0.78em; background: var(--fg);
  margin-left: 0.06em; vertical-align: -0.02em;
  animation: blink 1.05s steps(1) infinite;
}

.hero__row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-top: clamp(28px, 5vh, 56px);
}
.hero__sub { max-width: 30ch; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.45; color: var(--fg-2); font-weight: 300; }

.hero__scroll {
  position: absolute; z-index: 4; right: var(--gutter); top: 50%;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2);
  display: flex; align-items: center; gap: 14px;
}
.hero__scroll i { display: block; width: 1px; height: 64px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--fg); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

.statusbar {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
  height: 44px; display: flex; align-items: center; gap: 0;
  border-top: 1px solid var(--line);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 11px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em;
  padding-inline: calc(var(--gutter) - 14px);
  padding-bottom: env(safe-area-inset-bottom);
}
.statusbar__item { gap: 6px; padding: 0 14px; height: 100%; display: flex; align-items: center; border-right: 1px solid var(--line); white-space: nowrap; }
.statusbar__item:last-child { border-right: 0; border-left: 1px solid var(--line); }
.statusbar__spacer { flex: 1; }
.statusbar__build.is-ok { color: var(--fg); }

/* split chars */
[data-split] .char { display: inline-block; transform: translateY(105%); will-change: transform; }
.is-ready [data-split] .char {
  transform: none;
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i) * 0.028s + var(--d, 0s));
}
[data-split] .word { display: inline-block; white-space: nowrap; }

/* ---------------------------------------------------------- reveal */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-clip] { clip-path: inset(18% 8% 18% 8%); transition: clip-path 1.6s var(--ease); }
.js [data-clip].is-in { clip-path: inset(0 0 0 0); }

/* ---------------------------------------------------------- marquee */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  padding: clamp(14px, 2.4vw, 30px) 0;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span {
  font-weight: 600; font-size: clamp(44px, 8vw, 128px); letter-spacing: -0.045em; line-height: 1;
  padding-inline: clamp(16px, 2vw, 32px);
}
.marquee__group .outline { -webkit-text-stroke-width: 1.5px; }
.marquee__group i { display: block; flex-shrink: 0; width: clamp(12px, 1.4vw, 22px); aspect-ratio: 1; background: var(--fg); transform: rotate(45deg); }

/* ---------------------------------------------------------- sections */
.section { position: relative; padding-block: clamp(96px, 16vh, 200px); }
.sec-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 18px;
  margin-bottom: clamp(48px, 8vh, 96px);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.sec-head__label { color: var(--fg); }
.sec-head__meta { color: var(--mute); text-align: right; }
.display {
  font-weight: 600; font-size: clamp(48px, 8.5vw, 150px);
  line-height: 0.95; letter-spacing: -0.05em;
}

/* ---------------------------------------------------------- about */
.about__lead {
  font-weight: 500; font-size: clamp(30px, 4.6vw, 76px);
  line-height: 1.1; letter-spacing: -0.035em;
  max-width: 20ch;
}
.about__lead .w { color: rgba(244,244,242,0.14); transition: color 0.35s linear; }
.about__lead .w.on { color: var(--fg); }
.about__lead .w--key.on { font-style: italic; font-weight: 300; }

.about__grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 120px);
  margin-top: clamp(64px, 10vh, 140px); align-items: end;
}
.about__media { position: relative; overflow: hidden; border-radius: 4px; background: var(--bg-2); aspect-ratio: 16 / 10; }
.about__media img { width: 100%; height: 118%; object-fit: cover; filter: grayscale(1) contrast(1.08); transform: translateY(-8%); }
.about__media figcaption {
  position: absolute; left: 16px; bottom: 14px; font-size: 11px; color: var(--fg-2);
  text-transform: uppercase; letter-spacing: 0.08em; mix-blend-mode: difference;
}
.about__copy p { font-size: clamp(16px, 1.25vw, 19px); color: var(--fg-2); font-weight: 300; line-height: 1.75; max-width: 46ch; }
.about__copy p + p { margin-top: 1.4em; }
.about__copy p:first-child::first-line { color: var(--fg); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(80px, 12vh, 160px);
  border-top: 1px solid var(--line);
}
.stat { padding: 22px 20px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 20px; }
.stat:last-child { border-right: 0; }
.stat dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); }
.stat dd { font-weight: 600; font-size: clamp(56px, 7.5vw, 128px); letter-spacing: -0.06em; line-height: 1; margin-top: 18px; }
.stat sup { font-size: 0.4em; vertical-align: 0.9em; margin-left: 0.04em; font-weight: 400; }

/* ---------------------------------------------------------- work / carousel */
.work { padding-bottom: clamp(72px, 10vh, 120px); }
.work__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 7vh, 80px); }
.carousel__controls { display: flex; align-items: center; gap: 12px; }
.carousel__count { font-size: 13px; color: var(--mute); margin-right: 14px; letter-spacing: 0.04em; }
.carousel__count span:first-child { color: var(--fg); }

.carousel {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  user-select: none; -webkit-user-select: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { scroll-snap-type: none; }
.carousel.is-dragging .card a { pointer-events: none; }
.carousel:focus-visible { outline-offset: -2px; }

.carousel__track { display: flex; gap: clamp(14px, 1.6vw, 28px); width: max-content; }
.card {
  width: clamp(290px, 31vw, 500px);
  flex-shrink: 0; scroll-snap-align: start;
}
.card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px;
  background:
    radial-gradient(90% 70% at 50% 100%, #1d1d1d 0%, #0f0f0f 70%),
    var(--bg-2);
  border: 1px solid var(--line);
}
.card__media::before {
  /* fine grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 80%);
}
.card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 100%;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transform: translateY(6%) scale(0.98);
  transition: filter 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  pointer-events: none;
}
.card__media--video video { object-fit: cover; object-position: 50% 50%; transform: scale(1.02); }
.card:hover .card__media img, .card.is-active .card__media img { filter: grayscale(0) contrast(1) brightness(1); transform: translateY(2%) scale(1); }
.card:hover .card__media video, .card.is-active .card__media video { filter: grayscale(0.2); transform: scale(1.08); }
.card__index, .card__tag {
  position: absolute; z-index: 2; top: 16px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.card__index { left: 18px; color: var(--fg); }
.card__tag { right: 16px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(10,10,10,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.card__body { padding: 22px 2px 0; }
.card__title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.card__title { font-weight: 600; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -0.04em; line-height: 1; }
.card__kind { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); white-space: nowrap; }
.card__desc { margin-top: 14px; color: var(--fg-2); font-size: 15px; font-weight: 300; line-height: 1.65; max-width: 44ch; min-height: 5em; }
.card__links { display: flex; gap: 8px; margin-top: 18px; }
.card__links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.card__links { flex-wrap: wrap; }
.card__links a.is-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.card__links a.is-primary:hover { background: transparent; color: var(--fg); }
.card__links a:not(.is-primary):hover, .card__links a:not(.is-primary):focus-visible { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.carousel__progress { position: relative; height: 1px; background: var(--line); margin-top: clamp(40px, 6vh, 64px); overflow: hidden; }
.carousel__progress span { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0.16); transition: transform 0.25s linear; }
.carousel__hint { margin-top: 14px; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------------------------------------------------------- hire me (inverted) */
.hire { background: var(--fg); color: var(--bg); }
.hire .outline { -webkit-text-stroke-color: var(--bg); }
.hire .sec-head { border-color: rgba(10,10,10,0.14); }
.hire .sec-head__label { color: var(--bg); }
.hire .sec-head__meta { color: #4a4a48; }
.hire .pulse { background: var(--bg); animation-name: pulseDark; }
@keyframes pulseDark {
  0% { box-shadow: 0 0 0 0 rgba(10,10,10,0.4); }
  70% { box-shadow: 0 0 0 9px rgba(10,10,10,0); }
  100% { box-shadow: 0 0 0 0 rgba(10,10,10,0); }
}

.hire__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(64px, 10vh, 120px); }
.hire .display { font-size: clamp(48px, 7vw, 124px); }
.hire__intro { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; color: #3d3d3b; max-width: 40ch; }

.services { border-top: 1px solid rgba(10,10,10,0.14); }
.service {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 64px minmax(0, 1.05fr) minmax(0, 1fr) 56px; gap: clamp(16px, 3vw, 48px);
  align-items: start;
  padding: clamp(28px, 4vh, 44px) 0;
  border-bottom: 1px solid rgba(10,10,10,0.14);
  transition: color 0.5s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1; background: var(--bg);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.service__num { font-size: 12px; color: #6d6d6b; padding-top: 0.9em; }
.service__title { font-weight: 600; font-size: clamp(32px, 4.2vw, 68px); letter-spacing: -0.045em; line-height: 1; }
.service__body p { font-size: 16px; line-height: 1.7; color: #3d3d3b; max-width: 46ch; transition: color 0.5s; }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.service__tags li {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 7px 12px; border: 1px solid rgba(10,10,10,0.2); border-radius: 999px;
  transition: border-color 0.5s, color 0.5s;
}
.service__arrow {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(10,10,10,0.2);
  display: grid; place-items: center; font-size: 18px;
  transition: transform 0.6s var(--ease), background-color 0.5s, color 0.5s, border-color 0.5s;
}
@media (hover: hover) {
  .service:hover { color: var(--fg); }
  .service:hover::before { transform: scaleY(1); }
  .service:hover .service__body p { color: var(--fg-2); }
  .service:hover .service__num { color: var(--fg-2); }
  .service:hover .service__tags li { border-color: var(--line-strong); }
  .service:hover .service__arrow { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: rotate(45deg); }
}

.hire__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: clamp(56px, 9vh, 104px); }
.perks { display: grid; grid-template-columns: repeat(4, auto); gap: 16px clamp(24px, 4vw, 64px); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #6d6d6b; }
.perks span { display: block; font-family: var(--sans); font-weight: 600; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.04em; text-transform: none; color: var(--bg); line-height: 1.1; margin-bottom: 6px; }

.btn--dark { background: var(--bg); color: var(--fg); }
.btn--dark::before { background: #2a2a2a; }
.btn--dark .btn__icon { background: var(--fg); color: var(--bg); }

/* ---------------------------------------------------------- contact / footer */
.socials { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.socials a { color: var(--fg-2); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease), color 0.3s; }
.socials a:hover { color: var(--fg); background-size: 100% 1px; }

.contact { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(96px, 16vh, 200px); }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; filter: grayscale(1); opacity: 0.55; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.75) 100%); }
.contact .grain { z-index: 0; }
.contact__inner { position: relative; z-index: 1; }

.contact__title { font-weight: 600; font-size: clamp(52px, 10vw, 180px); line-height: 0.92; letter-spacing: -0.055em; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(40px, 7vh, 72px); }

.foot {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  margin-top: clamp(96px, 16vh, 180px); padding-top: 26px; border-top: 1px solid var(--line);
}
.foot__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); margin-bottom: 14px; }
.foot__label + .foot__value + .foot__label { margin-top: 28px; }
.foot__value { font-size: 14px; color: var(--fg); }
.foot__legal { display: grid; gap: 8px; }
.foot__legal li { display: grid; grid-template-columns: 110px auto auto 1fr; gap: 16px; align-items: baseline; font-size: 14px; }
.foot__legal span { color: var(--fg); }
.foot__legal a { font-family: var(--mono); font-size: 12px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.04em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease), color 0.3s; }
.foot__legal a:hover { color: var(--fg); background-size: 100% 1px; }
.foot__col--end { display: flex; justify-content: flex-end; align-items: flex-start; }
.foot__top { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }

.wordmark {
  font-weight: 700; letter-spacing: -0.07em; line-height: 0.8;
  font-size: 25.5vw; text-align: center;
  margin: clamp(56px, 10vh, 120px) calc(var(--gutter) * -1) 0;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  user-select: none; white-space: nowrap;
  background: linear-gradient(to bottom, transparent 50%, var(--fg) 50%) 0 var(--wm, 0%) / 100% 200% no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
@media (min-width: 1700px) { .wordmark { font-size: 420px; } }

.foot__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 max(22px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); font-size: 11px; color: var(--mute);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hire__top { grid-template-columns: 1fr; }
  .service { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .service__body { grid-column: 2 / 3; grid-row: 2; }
  .service__arrow { grid-column: 3; grid-row: 1; width: 48px; height: 48px; }
  .hire__foot { flex-direction: column; align-items: flex-start; }
  .perks { grid-template-columns: repeat(2, auto); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__col--end { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__status { display: none; }
  .nav__toggle { display: block; }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .card { width: min(78vw, 440px); }
  .work__top { flex-direction: column; align-items: flex-start; }
  .carousel__controls { width: 100%; }
  .carousel__count { margin-right: auto; }
}

@media (max-width: 600px) {
  .hide-sm { display: none !important; }
  .hero { padding-bottom: calc(44px + 40px); }
  .hero__title { font-size: clamp(40px, 12.4vw, 96px); letter-spacing: -0.05em; }
  .hero__title .outline { -webkit-text-stroke-width: 1.5px; }
  .btn { --h: 54px; }
  .btn--xl { --h: 60px; padding-left: 22px; }
  .btn--xl .btn__label { font-size: 15px; }
  .sec-head { font-size: 11px; }
  .service { grid-template-columns: minmax(0, 1fr) 44px; gap: 14px; }
  .service__num { grid-column: 1 / -1; padding-top: 0; }
  .service__title { grid-column: 1; grid-row: 2; }
  .service__arrow { grid-column: 2; grid-row: 2; width: 44px; height: 44px; font-size: 16px; }
  .service__body { grid-column: 1 / -1; grid-row: 3; }
  .perks { grid-template-columns: 1fr 1fr; width: 100%; }
  .hire__foot .btn { width: 100%; justify-content: space-between; }
  .foot { grid-template-columns: 1fr; }
  .foot__legal li { grid-template-columns: 90px auto auto 1fr; }
  .round-btn { width: 50px; height: 50px; }
  .card__desc { min-height: 0; }
  .contact__cta .btn { width: 100%; justify-content: space-between; }
}

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