/* =====================================================================
   Biprotik Deb · Portfolio
   Palette is pulled straight from the portrait: sage backdrop, black tee,
   warm skin/bone, plus one hot signal colour.
===================================================================== */

:root {
  --ink: #0d0f0c;
  --ink-2: #141712;
  --ink-3: #1d211b;
  --bone: #ece8df;
  --bone-2: #cfcabe;
  --muted: rgba(236, 232, 223, 0.74);
  --line: rgba(236, 232, 223, 0.16);
  --sage: #5f6c5c;
  --sage-2: #707e6c;
  --sage-3: #4a5548;
  --signal: #ff5b2e;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --pad: clamp(16px, 2.6vw, 40px);
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.18, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--ink);
  overflow-x: clip;
}

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 4px; }

.label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 300;
  padding: 10px 14px; border-radius: 8px;
  background: var(--bone); color: var(--ink);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(255, 91, 46, 0.6);
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255, 91, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 91, 46, 0); }
}

/* text-roll hover */
.roll { display: inline-flex; overflow: hidden; line-height: 1.25; vertical-align: top; }
.roll > span { position: relative; display: inline-block; transition: transform 0.55s var(--ease-out); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.roll:hover > span,
.roll:focus-visible > span { transform: translateY(-100%); }

/* split text */
.ch { display: inline-block; white-space: pre; }
.ch > span { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.w { display: inline-block; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wm .w { transform-origin: 0 100%; }

/* ---------- loader ---------- */
.loader { display: none; }
html.js .loader {
  position: fixed; inset: 0; z-index: 400;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
  background: var(--ink);
  color: var(--bone);
}
html.is-loaded .loader { visibility: hidden; pointer-events: none; }
.loader__top, .loader__bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.loader__mid { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.loader__word {
  font-family: var(--f-display); font-stretch: 62%; font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 1; text-transform: uppercase; letter-spacing: 0.01em;
  animation: rise 1s var(--ease-out) both;
}
.loader__word em { text-transform: none; font-size: 1.12em; color: var(--signal); }
.loader__bar { width: min(60vw, 420px); height: 1px; background: rgba(236, 232, 223, 0.18); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--bone); transform-origin: left; transform: scaleX(var(--p, 0)); }
@keyframes rise { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
.loader__count {
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(5rem, 19vw, 20rem);
  line-height: 0.78;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.loader__status { max-width: 40ch; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; display: none; will-change: transform; }
html.has-cursor .cursor { display: block; }
html.has-cursor,
html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type="radio"]),
html.has-cursor textarea { cursor: text !important; }
.cursor.is-native { opacity: 0 !important; }
.cursor__arrow { transform-origin: 4px 2.5px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); transition: scale 0.25s var(--ease-out); }
.cursor__arrow path { fill: var(--signal); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.cursor.is-down .cursor__arrow { scale: 0.82; }
.cursor__label {
  position: absolute; left: 20px; top: 22px;
  padding: 0.45em 0.8em;
  border-radius: 999px;
  background: var(--bone); color: var(--ink);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap;
  transform: scale(0); transform-origin: 0 0;
  transition: transform 0.4s var(--ease-out);
}
.cursor.has-label .cursor__label { transform: scale(1); }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -120px; z-index: 350; pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 30px); }
  50% { transform: translate(30px, -50px); }
  75% { transform: translate(-60px, -20px); }
  100% { transform: translate(20px, 40px); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem);
  padding: 0 var(--pad);
  color: var(--bone);
  transition: transform 0.7s var(--ease-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(13, 15, 12, 0.82), rgba(13, 15, 12, 0));
  opacity: 0; transition: opacity 0.5s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }

.nav__logo { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.nav__logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bone); color: var(--ink);
  font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
}
.nav__clock { opacity: 0.8; font-variant-numeric: tabular-nums; }
.nav__tz { opacity: 0.6; }
.nav__links { margin-left: auto; display: flex; gap: clamp(1rem, 2vw, 2.2rem); font-size: 15px; font-weight: 500; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(236, 232, 223, 0.35);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.nav__cta:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.nav__burger {
  display: none; margin-left: auto;
  align-items: center; gap: 0.6rem;
  height: 40px; padding: 0 0.6rem 0 1rem;
  border: 1px solid rgba(236, 232, 223, 0.35); border-radius: 999px;
  background: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  position: relative;
}
.nav__burger i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.nav__burger i + i { margin-left: -24px; }
.nav__burger i:first-of-type { transform: translateY(-3.5px); }
.nav__burger i:last-of-type { transform: translateY(3.5px); }
.nav__burger[aria-expanded="true"] i:first-of-type { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-of-type { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 4vh) var(--pad) var(--pad);
  background: var(--sage);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease-in-out);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links a {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-family: var(--f-display); font-stretch: 62%; font-weight: 800;
  font-size: clamp(4rem, 19vw, 9rem); line-height: 0.86; text-transform: uppercase;
}
.menu__links small { font-family: var(--f-mono); font-size: 12px; font-weight: 400; margin-top: 0.8em; }
.menu__foot { display: flex; flex-direction: column; gap: 1rem; font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 34%, #7a8875 0%, rgba(122, 136, 117, 0) 70%),
    linear-gradient(180deg, #5b6858 0%, #677563 60%, #6e7c6a 100%);
  color: var(--bone);
}
.hero__light {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38vmax 38vmax at var(--lx, 50%) var(--ly, 30%), rgba(236, 232, 223, 0.13), transparent 70%);
  mix-blend-mode: soft-light;
}

.hero__name {
  position: absolute; z-index: 1;
  top: calc(var(--nav-h) + 1.2vh); left: 0; right: 0;
  text-align: center;
  perspective: 900px;
  pointer-events: none;
}
.hero__line {
  display: inline-block; white-space: nowrap;
  font-family: var(--f-display); font-stretch: 62%; font-weight: 900;
  font-size: 24.4vw; line-height: 0.8; letter-spacing: -0.012em; text-transform: uppercase;
  color: var(--bone);
  perspective: 1000px;
}
.hero__line .ch { transform-style: preserve-3d; }

.hero__figure {
  position: absolute; z-index: 2;
  left: 50%; bottom: 0;
  height: min(73svh, 1100px);
  aspect-ratio: 1086 / 1448;
  transform: translateX(-50%);
}
.hero__figure-in { position: absolute; inset: 0; transform-origin: 50% 100%; }
.hero__portrait {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 96%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 96%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.hero__portrait canvas { width: 100%; height: 100%; }

/* laptop/mouse only: "watching your cursor" note, its arrow stops beside the face */
.hero__hint {
  position: absolute; right: 82%; top: 35%;
  width: max-content;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(1.05rem, 1.5vw, 1.45rem); line-height: 1.05;
  text-align: right;
  color: var(--bone);
  pointer-events: none;
}
.hero__hint-arrow {
  position: absolute; left: calc(100% + 2px); top: -50px; width: 44px;
  overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
/* note pushed below the name: the arrow turns to point sideways, still beside the face */
.hero__hint.is-low .hero__hint-arrow { transform: rotate(40deg); transform-origin: 3px 45px; }
.hint-sleep { display: none; }
html.is-drowsy .hint-awake { display: none; }
html.is-drowsy .hint-sleep { display: inline; }
@media (hover: none) { .hero__hint { display: none; } }

.hero__bubble {
  position: absolute; right: 70%; top: 16%;
  padding: 0.5em 0.9em; border-radius: 999px 999px 999px 4px;
  white-space: nowrap;
  background: var(--bone); color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink), 0 10px 24px -8px rgba(0, 0, 0, 0.45);
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  transform: scale(0) rotate(-8deg); transform-origin: 100% 100%;
  transition: transform 0.5s var(--ease-out);
  pointer-events: none;
}
.hero__bubble.is-on { transform: scale(1) rotate(-4deg); }

/* phone/touch only: "poke me" note at the side of the head, arrow stops short of the face */
.hero__poke { display: none; }
@media (hover: none) {
  .hero__poke {
    position: absolute; left: 75%; top: 29%;
    display: block;
    color: var(--bone);
    pointer-events: none;
    animation: poke-bob 2.4s ease-in-out infinite;
  }
  .hero__poke-text {
    display: flex; flex-direction: column;
    font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; line-height: 1;
    transform: rotate(-6deg);
  }
  .hero__poke-arrow {
    position: absolute; left: -26px; top: 2px; width: 22px;
    overflow: visible;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  }
  .hero__bubble { left: 10%; right: auto; top: 3%; }
}
@keyframes poke-bob { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, 4px); } }

.hero__intro, .hero__aside { position: absolute; z-index: 3; bottom: clamp(100px, 17vh, 190px); }
.hero__intro { left: var(--pad); width: min(26ch, 27vw); }
.hero__aside { right: var(--pad); text-align: right; }
.hero__intro .label, .hero__aside .label { opacity: 0.75; margin-bottom: 0.9rem; }
.hero.is-tight .hero__intro .label { margin-bottom: 0.5rem; }
.hero.is-tight .hire-btn { margin-top: 1rem; }
.hero__lede { font-size: clamp(1.05rem, 1.38vw, 1.42rem); line-height: 1.22; letter-spacing: -0.02em; font-weight: 450; }
.hero__lede em { font-size: 1.18em; }
.hire-btn {
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin-top: 1.5rem; padding: 0.5rem 0.5rem 0.5rem 1.4rem;
  border-radius: 999px;
  background: var(--signal); color: var(--ink);
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 16px 34px -14px rgba(255, 91, 46, 0.75);
  transition: background 0.3s;
}
.hire-btn:hover { background: #ff6d43; }
.hire-btn__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--bone);
  transition: transform 0.5s var(--ease-out);
}
.hire-btn__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.hire-btn:hover .hire-btn__icon { transform: rotate(-45deg); }
.hero__status { display: inline-flex; align-items: baseline; gap: 0.6rem; font-size: clamp(1rem, 1.2vw, 1.2rem); line-height: 1.25; letter-spacing: -0.015em; text-align: left; }

.hero__surname {
  position: absolute; z-index: 3;
  right: calc(var(--pad) + 1vw); top: 51%;
  font-family: var(--f-serif); font-style: italic;
  font-size: min(clamp(4rem, 12vw, 13rem), 18vh); line-height: 0.8; letter-spacing: -0.03em;
  color: var(--bone);
}
.hero__surname sup { font-family: var(--f-mono); font-style: normal; font-size: 0.1em; vertical-align: top; margin-left: 0.15em; position: relative; top: 0.7em; }

.hero__scroll {
  position: absolute; z-index: 3; left: var(--pad); bottom: clamp(60px, 10vh, 100px);
  display: inline-flex; align-items: center; gap: 0.8rem; opacity: 0.85;
}
.hero__scroll-line { position: relative; width: 44px; height: 1px; background: rgba(236, 232, 223, 0.35); overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--bone);
  animation: scrollline 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollline { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* ---------- bands ---------- */
.bands {
  position: relative; z-index: 6;
  height: clamp(150px, 24vh, 260px);
  margin-top: clamp(-130px, -12vh, -75px);
  overflow-x: clip;
  pointer-events: none;
}
.band {
  position: absolute; left: -6vw; width: 112vw; top: 50%;
  padding: clamp(0.6rem, 1vw, 1.1rem) 0;
  white-space: nowrap;
  font-family: var(--f-display); font-stretch: 72%; font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 3.6rem); line-height: 1; text-transform: uppercase; letter-spacing: -0.005em;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.band--a { background: var(--bone); color: var(--ink); transform: translateY(-62%) rotate(-3.2deg); }
.band--a b { color: var(--signal); }
.band--b { background: var(--signal); color: var(--ink); transform: translateY(-38%) rotate(2.4deg); }
.band__track { display: inline-flex; will-change: transform; }
.band__unit { padding-right: 0.3em; }
.band b { font-weight: 800; margin: 0 0.35em; display: inline-block; }

/* ---------- section scaffolding ---------- */
.section-head {
  display: flex; gap: clamp(1rem, 6vw, 7rem); align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.section-head__right { margin-left: auto; }

/* ---------- about ---------- */
.about { position: relative; padding: clamp(80px, 14vh, 160px) var(--pad) clamp(100px, 18vh, 200px); background: var(--ink); }
.about__top {
  margin-top: clamp(48px, 10vh, 110px);
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(250px, 24vw, 340px);
  gap: clamp(2rem, 5vw, 6rem); align-items: end;
}
.hello__hi {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1.1rem 0.5rem 0.8rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 1.02rem; font-weight: 500;
}
.hello__wave { display: inline-block; transform-origin: 70% 75%; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave {
  0%, 55%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(16deg); }
  20%, 40% { transform: rotate(-9deg); }
}
.hello__line {
  margin-top: 1.5rem;
  max-width: 14ch;
  font-weight: 500;
  font-size: clamp(2.5rem, 6.4vw, 6.8rem); line-height: 1; letter-spacing: -0.05em;
}
.flip {
  position: relative; display: inline-block; vertical-align: bottom;
  overflow: hidden; padding: 0 0.08em 0.12em 0.02em; margin-bottom: -0.12em;
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  color: var(--signal);
}
.flip__word { display: inline-block; white-space: nowrap; }
.hello__sub { margin-top: 1.5rem; max-width: 34ch; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.4; color: var(--muted); }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 1.02rem; text-align: right; }

.stats {
  margin-top: clamp(60px, 11vh, 130px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats li { padding: clamp(1.4rem, 3.4vh, 2.4rem) clamp(0.8rem, 1.8vw, 1.8rem); border-left: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats__num {
  display: block;
  font-family: var(--f-display); font-stretch: 62%; font-weight: 900;
  font-size: clamp(3.4rem, 7vw, 7.6rem); line-height: 0.85; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stats__num small { font-size: 0.6em; color: var(--signal); margin-left: 0.04em; }
.stats__label { display: block; margin-top: 0.8rem; font-size: 1rem; color: var(--muted); }

.about__grid { margin-top: clamp(70px, 12vh, 140px); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem var(--pad); }
.principles li { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.principles__no { font-family: var(--f-mono); font-size: 12px; color: var(--signal); }
.principles h3 { margin: 1.4rem 0 0.5rem; font-family: var(--f-display); font-stretch: 75%; font-weight: 750; font-size: clamp(1.6rem, 2.3vw, 2.4rem); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.005em; }
.principles p { color: var(--muted); max-width: 32ch; }

/* ---------- shared big titles ---------- */
.big-title {
  font-family: var(--f-display); font-stretch: 62%; font-weight: 900;
  font-size: clamp(3.4rem, 10.5vw, 12rem); line-height: 0.82; text-transform: uppercase; letter-spacing: -0.01em;
}
.big-title em { text-transform: none; font-size: 1.04em; letter-spacing: -0.035em; color: var(--signal); }

.skills__intro, .work__intro {
  margin-top: clamp(48px, 9vh, 100px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32ch);
  gap: 2rem clamp(2rem, 5vw, 6rem); align-items: end;
}
.skills__lede, .work__lede { padding-bottom: 0.8rem; font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.45; color: var(--muted); }

/* ---------- skills (bento) ---------- */
.skills { position: relative; padding: clamp(80px, 14vh, 160px) var(--pad); background: var(--ink); }
.bento {
  margin-top: clamp(50px, 9vh, 110px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px);
}
.bento__card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  grid-column: span 4;
  display: flex; flex-direction: column;
  min-height: 280px;
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--ink-2);
  overflow: hidden;
  transition: border-color 0.4s;
}
.bento__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(440px circle at var(--mx) var(--my), rgba(236, 232, 223, 0.1), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.bento__card:hover::before { opacity: 1; }
.bento__card:hover { border-color: rgba(236, 232, 223, 0.34); }
.bento__no { font-family: var(--f-mono); font-size: 12px; color: var(--signal); }
.bento__title {
  margin: 1rem 0 0.55rem;
  font-family: var(--f-display); font-stretch: 70%; font-weight: 800;
  font-size: clamp(1.7rem, 2.3vw, 2.5rem); line-height: 0.92; text-transform: uppercase;
}
.bento__text { max-width: 40ch; font-size: 1rem; line-height: 1.45; color: var(--muted); }
.bento__chips { margin-top: auto; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.bento__chips li {
  padding: 0.45em 0.85em;
  border: 1px solid rgba(236, 232, 223, 0.26); border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; letter-spacing: -0.01em;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.bento__chips li:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.bento__card--lead { grid-column: span 7; grid-row: span 2; min-height: 560px; background: var(--bone); color: var(--ink); border-color: var(--bone); }
.bento__card--lead::before { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 91, 46, 0.18), transparent 60%); }
.bento__card--lead:hover { border-color: var(--bone); }
.bento__card--lead .bento__no { color: var(--ink); opacity: 0.7; }
.bento__card--lead .bento__text { max-width: 46ch; font-size: clamp(1.05rem, 1.25vw, 1.25rem); color: rgba(13, 15, 12, 0.74); }
.bento__card--lead .bento__chips li { border-color: rgba(13, 15, 12, 0.26); }
.bento__card--lead .bento__chips li:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.core {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.16em;
  margin: 0.8rem 0 1.4rem;
  font-family: var(--f-display); font-stretch: 62%; font-weight: 900;
  font-size: clamp(3.4rem, 7.3vw, 8.4rem); line-height: 0.84; text-transform: uppercase; letter-spacing: -0.01em;
}
.core span { display: inline-block; }
.core span:nth-of-type(2) { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; font-size: 1.04em; letter-spacing: -0.03em; }
.core span:nth-of-type(3) { color: var(--signal); }
.core i { font-style: normal; color: rgba(13, 15, 12, 0.22); }

.bento__card--sphere { grid-column: span 5; grid-row: span 2; min-height: 560px; align-items: center; justify-content: center; padding: 14px; }
.bento__cap { margin-top: 0.2rem; text-align: center; color: var(--muted); }

.sphere {
  position: relative;
  width: 100%; max-width: 500px; aspect-ratio: 1; margin: 0 auto;
  touch-action: pan-y;
  user-select: none;
}
.sphere::before {
  content: ""; position: absolute; inset: 21%; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(122, 136, 117, 0.6), rgba(95, 108, 92, 0.2) 45%, transparent 70%);
}
.sphere::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  border: 1px dashed rgba(236, 232, 223, 0.12);
}
.sphere span {
  position: absolute; left: 50%; top: 50%;
  padding: 0.35em 0.8em;
  border: 1px solid rgba(236, 232, 223, 0.24); border-radius: 999px;
  background: rgba(13, 15, 12, 0.7);
  font-family: var(--f-mono); font-size: clamp(11px, 0.95vw, 14px); text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap;
  will-change: transform, opacity;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.sphere span:hover { background: var(--signal); color: var(--ink); border-color: var(--signal); }

/* ---------- work: stacked project cards ---------- */
.work { position: relative; padding: clamp(80px, 14vh, 160px) var(--pad) clamp(60px, 10vh, 120px); background: var(--ink); }
.projects { margin-top: clamp(50px, 9vh, 110px); }
.project {
  position: sticky; top: calc(var(--nav-h) + 10px + var(--i) * 14px);
  margin-bottom: clamp(40px, 12vh, 140px);
}
.project:last-child { margin-bottom: 0; }
.project__inner {
  --bg: #1b1f19; --fg: var(--bone); --sub: var(--muted); --chip: rgba(236, 232, 223, 0.26);
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 52px);
  min-height: min(74vh, 740px);
  padding: clamp(20px, 2.6vw, 40px);
  border-radius: clamp(20px, 2vw, 32px);
  background: var(--bg); color: var(--fg);
  box-shadow: 0 -24px 60px -28px rgba(0, 0, 0, 0.7);
  transform-origin: 50% 0;
  will-change: transform;
}
.project:nth-child(3n + 1) .project__inner { --bg: #47533f; --sub: rgba(236, 232, 223, 0.84); }
.project:nth-child(3n + 2) .project__inner { --bg: var(--bone); --fg: var(--ink); --sub: rgba(13, 15, 12, 0.74); --chip: rgba(13, 15, 12, 0.26); }
.project__shade { position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: #050605; opacity: 0; pointer-events: none; }

.project__info { display: flex; flex-direction: column; }
.project__meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--sub); }
.project__title {
  margin-top: auto; padding-top: 2rem;
  font-family: var(--f-display); font-stretch: 62%; font-weight: 900;
  font-size: clamp(2.8rem, 5.8vw, 6.4rem); line-height: 0.86; text-transform: uppercase; letter-spacing: -0.01em;
}
.project__desc { margin-top: 1rem; max-width: 40ch; font-size: clamp(1rem, 1.15vw, 1.16rem); line-height: 1.5; color: var(--sub); }
.project__stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.project__stack li { padding: 0.4em 0.8em; border: 1px solid var(--chip); border-radius: 999px; font-size: 0.86rem; font-weight: 500; }
.project__cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.6rem; padding: 1rem 1.4rem;
  border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-weight: 500; font-size: 15px;
}
.project__cta svg, .browser__visit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.5s var(--ease-out); }
.project__cta:hover svg { transform: rotate(45deg); }

.project__preview { position: relative; align-self: center; display: block; perspective: 1400px; }
.browser {
  position: relative;
  border-radius: 14px; overflow: hidden;
  background: #0b0c0a;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.25);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.7s var(--ease-out);
}
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1c1f1b; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser__url {
  flex: 0 1 60%; margin: 0 auto; height: 22px;
  display: flex; align-items: center; justify-content: center; padding: 0 10px;
  border-radius: 6px; background: #2a2e28;
  font-family: var(--f-mono); font-size: 11px; color: rgba(236, 232, 223, 0.78);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #d9d5cc; }
.browser__view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.4s var(--ease-out); }
.project__preview:hover .browser__view img { transform: scale(1.045); }
.browser__visit {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7em 1.1em; border-radius: 999px;
  background: var(--signal); color: var(--ink);
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.project__preview:hover .browser__visit, .project__preview:focus-visible .browser__visit { opacity: 1; transform: none; }

/* ---------- services ---------- */
.services-sec { position: relative; padding: clamp(80px, 14vh, 160px) var(--pad); background: var(--ink); }
.services-sec__title { margin-top: clamp(48px, 9vh, 100px); }
.services { margin-top: clamp(50px, 9vh, 110px); }
.services li {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr); gap: 0.8rem clamp(1rem, 3vw, 3rem); align-items: start;
  padding: clamp(1.5rem, 3.4vh, 2.4rem) 0.8rem;
  border-top: 1px solid var(--line);
  transition: color 0.5s var(--ease-out);
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.services li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bone);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease-out);
}
.service__no { padding-top: 0.5em; font-family: var(--f-mono); font-size: 12px; color: var(--signal); }
.service__title { font-family: var(--f-display); font-stretch: 68%; font-weight: 800; font-size: clamp(2rem, 4.2vw, 4.4rem); line-height: 0.9; text-transform: uppercase; }
.service__body p { max-width: 46ch; font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.5; color: var(--muted); transition: color 0.5s; }
.service__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.service__tags span { padding: 0.35em 0.8em; border: 1px solid currentColor; border-radius: 999px; font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; opacity: 0.85; }
@media (hover: hover) {
  .services li:hover { color: var(--ink); }
  .services li:hover::before { transform: scaleY(1); }
  .services li:hover .service__no { color: var(--ink); }
  .services li:hover .service__body p { color: rgba(13, 15, 12, 0.78); }
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  padding: clamp(80px, 14vh, 160px) var(--pad) 0;
  background:
    radial-gradient(60% 45% at 50% 30%, #6c7a68 0%, rgba(108, 122, 104, 0) 70%),
    linear-gradient(180deg, #56634f, #3c4639);
  color: var(--bone);
  overflow: hidden;
}
.contact .section-head { color: rgba(236, 232, 223, 0.82); border-color: rgba(236, 232, 223, 0.24); }
.contact__kicker {
  margin-top: clamp(48px, 9vh, 100px);
  max-width: 30ch;
  font-size: clamp(1.4rem, 2.6vw, 2.7rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 450;
}
.contact__kicker em { font-size: 1.1em; }
.contact__title { margin: clamp(24px, 5vh, 60px) 0 clamp(40px, 8vh, 90px); text-align: center; }
.contact__line {
  display: inline-block; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: 22vw; line-height: 0.78; text-transform: uppercase; letter-spacing: -0.01em;
}
.contact__line .ch > span { will-change: font-variation-settings; }

.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem clamp(2rem, 4vw, 5rem); align-items: start; }
.contact__direct > .label { margin-bottom: 1rem; color: rgba(236, 232, 223, 0.85); }

.mailcard {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: clamp(22px, 2.4vw, 34px);
  border-radius: 24px;
  background: var(--bone); color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s var(--ease-out);
}
.mailcard:hover { transform: translateY(-4px) rotate(-0.6deg); }
.mailcard__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.mailcard__top svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.5s var(--ease-out); }
.mailcard:hover .mailcard__top svg { transform: rotate(45deg); }
.mailcard__addr { font-size: clamp(1.4rem, 2.4vw, 2.6rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.mailcard__hint { font-size: 0.98rem; color: rgba(13, 15, 12, 0.68); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.95rem 1.4rem;
  border: 0; border-radius: 999px;
  background: var(--bone); color: var(--ink);
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn--ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px rgba(236, 232, 223, 0.5); }
.btn--ghost:hover { background: rgba(236, 232, 223, 0.12); }
.btn.is-done { background: var(--signal); color: var(--ink); box-shadow: none; }

.contact__now { margin-top: clamp(32px, 6vh, 64px); }
.contact__now .label { margin-bottom: 0.6rem; color: rgba(236, 232, 223, 0.85); }
.contact__now-time {
  font-family: var(--f-display); font-stretch: 62%; font-weight: 800;
  font-size: clamp(3rem, 6vw, 6.5rem); line-height: 0.85; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.contact__now-note { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.8rem; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(236, 232, 223, 0.9); }

.waform {
  padding: clamp(22px, 2.6vw, 38px);
  border: 1px solid rgba(236, 232, 223, 0.14); border-radius: 24px;
  background: #171a15;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.waform__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.waform__head .label { color: rgba(236, 232, 223, 0.85); }
.waform__logo { width: 30px; height: 30px; fill: #25d366; }
.field { margin: 0 0 1.35rem; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend {
  display: block; margin-bottom: 0.6rem; padding: 0;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(236, 232, 223, 0.85);
}
.field input[type="text"], .field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(236, 232, 223, 0.22); border-radius: 12px;
  background: rgba(236, 232, 223, 0.05); color: var(--bone);
  font: inherit; font-size: 1.05rem; line-height: 1.4;
  resize: vertical;
  transition: border-color 0.3s, background 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(236, 232, 223, 0.45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); background: rgba(236, 232, 223, 0.08); }
.field .is-invalid { border-color: #ff9a7a; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 0.6em 1em;
  border: 1px solid rgba(236, 232, 223, 0.28); border-radius: 999px;
  font-size: 0.95rem; letter-spacing: -0.01em;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chips label:hover span { border-color: rgba(236, 232, 223, 0.6); }
.chips input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chips input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }
.waform__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; margin-top: 0.4rem; }
.btn--wa { margin: 0; padding: 1.05rem 1.5rem; background: #25d366; color: #052b12; font-size: 12.5px; }
.btn--wa:hover { background: #3be07a; }
.btn--line { margin: 0; padding: 0.4rem 0; background: none; color: var(--bone); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.btn--line:hover { color: #fff; }
.waform__status { min-height: 1.5em; margin-top: 1rem; font-size: 0.98rem; color: rgba(236, 232, 223, 0.9); }
.waform__status.is-error { color: #ffb39b; }

.footer {
  margin-top: clamp(80px, 14vh, 160px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid rgba(236, 232, 223, 0.24);
  color: rgba(236, 232, 223, 0.85);
}
.footer [data-clock] { font-variant-numeric: tabular-nums; }

/* ---------- skill cards: each has its own colour ---------- */
.bento__card--group {
  --accent: #9fd3ff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 17%, var(--ink-2)) 0%, var(--ink-2) 58%);
  transition: color 0.5s var(--ease-out), border-color 0.4s;
}
.bento__card--group::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.7s var(--ease-out);
}
.bento__card--group .bento__no { color: var(--accent); transition: color 0.4s; }
.bento__card--group .bento__text, .bento__card--group .bento__chips li { transition: color 0.5s, border-color 0.5s, background 0.3s; }
.bento__card--q { grid-column: span 3; }
.bento__card--group.is-lit { color: var(--ink); border-color: var(--accent); }
.bento__card--group.is-lit::after { transform: scaleY(1); }
.bento__card--group.is-lit .bento__no { color: var(--ink); }
.bento__card--group.is-lit .bento__text { color: rgba(13, 15, 12, 0.76); }
.bento__card--group.is-lit .bento__chips li { border-color: rgba(13, 15, 12, 0.3); }
.bento__card--group.is-lit .bento__chips li:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
@media (hover: hover) {
  .bento__card--group:hover { color: var(--ink); border-color: var(--accent); }
  .bento__card--group:hover::after { transform: scaleY(1); }
  .bento__card--group:hover .bento__no { color: var(--ink); }
  .bento__card--group:hover .bento__text { color: rgba(13, 15, 12, 0.76); }
  .bento__card--group:hover .bento__chips li { border-color: rgba(13, 15, 12, 0.3); }
  .bento__card--group:hover .bento__chips li:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
}
.bento__chips li.is-linked { cursor: pointer; }
.sphere span.is-hot { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.core span { cursor: default; }

/* ---------- work on phones / short screens: a sideways slider ---------- */
.projects-progress { display: none; }
.work--h .projects-pin {
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  margin: 0 calc(var(--pad) * -1);
  overflow: hidden;
}
.work--h .projects { display: flex; gap: 14px; width: max-content; margin: 0; padding: 0 var(--pad); will-change: transform; }
.work--h .project { position: relative; top: auto; flex: none; width: min(84vw, 680px); margin: 0; }
.work--h .project__inner { grid-template-columns: 1fr; gap: 14px; min-height: 0; padding: 14px 14px 18px; border-radius: 22px; box-shadow: none; }
.work--h .project__preview { order: -1; }
.work--h .browser__bar { height: 28px; }
.work--h .project__title { padding-top: 0.2rem; font-size: clamp(2rem, 9vw, 3.2rem); }
.work--h .project__desc { margin-top: 0.5rem; font-size: 0.96rem; }
.work--h .project__stack { margin-top: 0.8rem; }
.work--h .project__stack li { font-size: 0.78rem; }
.work--h .project__cta { margin-top: 1rem; padding: 0.8rem 1.15rem; font-size: 14px; }
.work--h .projects-progress { display: flex; align-items: center; gap: 12px; padding: 0 var(--pad); color: var(--muted); }
.projects-progress__bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.projects-progress__bar span { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); }
@media (max-height: 600px) and (orientation: landscape) {
  .work--h .project { width: min(80vw, 860px); }
  .work--h .project__inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .work--h .project__desc, .work--h .project__stack { display: none; }
}

/* services: tap to light a row on touch screens */
.services li.is-active { color: var(--ink); }
.services li.is-active::before { transform: scaleY(1); }
.services li.is-active .service__no { color: var(--ink); }
.services li.is-active .service__body p { color: rgba(13, 15, 12, 0.78); }
@media (hover: none) { .services li { cursor: pointer; -webkit-tap-highlight-color: transparent; } }

/* ---------- process ---------- */
.process { position: relative; padding: clamp(80px, 14vh, 160px) var(--pad); background: var(--ink); }
.process__intro {
  margin-top: clamp(48px, 9vh, 100px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32ch);
  gap: 2rem clamp(2rem, 5vw, 6rem); align-items: end;
}
.process__lede { padding-bottom: 0.8rem; font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.45; color: var(--muted); }
.steps-wrap { position: relative; margin-top: clamp(50px, 9vh, 110px); }
.steps__track { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.steps__fill { position: absolute; inset: 0; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 40px); }
.step__dot {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(236, 232, 223, 0.32);
  background: var(--ink);
  font-family: var(--f-mono); font-size: 13px;
  transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.step.is-on .step__dot { background: var(--signal); color: var(--ink); border-color: var(--signal); box-shadow: 0 0 0 8px rgba(255, 91, 46, 0.16); }
.step h3 {
  margin: 1.5rem 0 0.6rem;
  font-family: var(--f-display); font-stretch: 70%; font-weight: 800;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem); line-height: 0.92; text-transform: uppercase;
}
.step p { max-width: 30ch; line-height: 1.5; color: var(--muted); }
.step__tag {
  display: inline-block; margin-top: 1.1rem; padding: 0.35em 0.85em;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero__intro { width: min(24ch, 32vw); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .bento__card--lead, .bento > .bento__card--sphere { grid-column: span 12; grid-row: auto; min-height: 0; }
  .bento > .bento__card--sphere { order: -1; }
  .bento__card--sphere .sphere { max-width: 440px; }
  .bento > .bento__card--group { grid-column: span 6; }
  .bento > .bento__card--group:last-child:nth-child(odd) { grid-column: span 12; }
  .project__inner { grid-template-columns: 1fr; min-height: 0; }
  .project__preview { order: -1; }
  .project__title { padding-top: 1.4rem; }

  .steps { grid-template-columns: 1fr; gap: 2.4rem; }
  .steps__track { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps__fill { transform-origin: 50% 0; transform: scaleY(0); }
  .step { position: relative; padding-left: 84px; }
  .step__dot { position: absolute; left: 0; top: -0.4rem; }
  .step h3 { margin-top: 0.4rem; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__clock, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__logo-text { display: none; }

  /* hero: "Deb" hangs right under BIPROTIK so the name reads as one */
  .hero__figure { height: min(72svh, 155vw); }
  .hero__name { top: calc(var(--nav-h) + 3vh); }
  .hero__surname { top: calc(var(--name-b, 24%) - 0.14em); bottom: auto; right: var(--pad); font-size: 19vw; }
  .hero__hint, .hero__aside, .hero__scroll { display: none; }
  .hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 42%;
    background: linear-gradient(to top, rgba(13, 15, 12, 0.72), rgba(13, 15, 12, 0));
    pointer-events: none;
  }
  .hero__intro { left: var(--pad); right: var(--pad); width: auto; bottom: 26px; text-align: left; }
  .hero__intro .label { margin-bottom: 0.6rem; }
  .hero__lede { font-size: 1.08rem; max-width: 28ch; }
  .hire-btn { margin-top: 1rem; }
  .bands { margin-top: -20px; height: 150px; }

  .section-head { gap: 1.2rem; }
  .section-head__right { display: none; }
  .about__top { grid-template-columns: 1fr; }
  .hello__line { font-size: clamp(2.4rem, 11vw, 4rem); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stats__num { font-size: clamp(3rem, 15vw, 4.6rem); }
  .principles { grid-template-columns: 1fr; gap: 2rem; }

  .skills__intro, .work__intro, .process__intro { grid-template-columns: 1fr; }
  .bento > .bento__card { grid-column: span 12; min-height: 0; }
  .browser__visit { opacity: 1; transform: none; }

  .services li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .service__body { grid-column: 2; }

  .contact__grid { grid-template-columns: 1fr; }
  .footer__made { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .dot, .hero__scroll-line::after, .loader__word, .hello__wave, .hero__poke { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
