/* =========================================================
   Bishwajit Kumar Chakraborty — portfolio
   Theme: "Verdant on black" — cool black, greens (emerald/mint/pine) + aqua accent
   ========================================================= */

:root {
  --bg: #070a08;
  --bg-2: #0b0f0c;
  --bg-3: #101613;
  --surface: rgba(228, 255, 238, 0.032);
  --surface-2: rgba(228, 255, 238, 0.055);
  --line: rgba(198, 255, 220, 0.1);
  --line-2: rgba(198, 255, 220, 0.18);

  --text: #e9f2ec;
  --text-2: #b8c8bd;
  --muted: #7e8f85;

  --green: #35d07a;
  --green-2: #6de9a4;
  --aqua: #2fd9c5;
  --pine: #12935a;
  --mint: #8fe0b2;

  /* gold — reserved for emphasis only: heading accents and headline numbers.
     Never used for chips, pills, badges, nav or buttons; those stay green. */
  --gold:      #f0c265;
  --gold-2:    #ffdc93;

  /* chip shades — mint / aqua / emerald cycled so chip rows read varied, not flat */
  --chip-a: #8fe0b2;
  --chip-b: #2fd9c5;
  --chip-c: #4fd18a;

  --radius: 18px;
  --radius-sm: 12px;
  --shell: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(53, 208, 122, 0.1);
  color: var(--green-2);
  border: 1px solid rgba(53, 208, 122, 0.16);
}
::selection {
  background: rgba(53, 208, 122, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pine), var(--green));
  border-radius: 99px;
  border: 3px solid var(--bg);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--fill {
  fill: currentColor;
  stroke: none;
}

/* =========================================================
   preloader
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition:
    opacity 0.6s var(--ease),
    visibility 0.6s;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.preloader__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.preloader__mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--aqua), var(--green), var(--pine));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: breathe 1.6s ease-in-out infinite;
}
.preloader__bar {
  width: 140px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 99px;
}
.preloader__bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: sweep 1.1s ease-in-out infinite;
}
.preloader__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes sweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}
@keyframes breathe {
  50% {
    opacity: 0.55;
  }
}

/* =========================================================
   ambient background
   ========================================================= */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(198, 255, 220, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(198, 255, 220, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(
    ellipse 90% 70% at 50% 0%,
    #000 25%,
    transparent 78%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 90% 70% at 50% 0%,
    #000 25%,
    transparent 78%
  );
}

.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  will-change: transform;
}
.ambient__blob--1 {
  width: 46vw;
  height: 46vw;
  top: -14vw;
  right: -8vw;
  background: radial-gradient(
    circle,
    rgba(53, 208, 122, 0.26),
    transparent 65%
  );
  animation: drift1 22s ease-in-out infinite;
}
.ambient__blob--2 {
  width: 38vw;
  height: 38vw;
  top: 42vh;
  left: -12vw;
  background: radial-gradient(circle, rgba(18, 147, 90, 0.2), transparent 65%);
  animation: drift2 27s ease-in-out infinite;
}
.ambient__blob--3 {
  width: 30vw;
  height: 30vw;
  bottom: -10vw;
  right: 14vw;
  background: radial-gradient(circle, rgba(47, 217, 197, 0.1), transparent 65%);
  animation: drift1 32s ease-in-out infinite reverse;
}
@keyframes drift1 {
  50% {
    transform: translate3d(-5vw, 5vh, 0) scale(1.12);
  }
}
@keyframes drift2 {
  50% {
    transform: translate3d(6vw, -4vh, 0) scale(0.9);
  }
}

.ambient__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient__spot {
  position: absolute;
  width: 620px;
  height: 620px;
  left: 0;
  top: 0;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(
    circle,
    rgba(109, 233, 164, 0.075),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.has-pointer .ambient__spot {
  opacity: 1;
}

/* =========================================================
   scroll progress
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  background: transparent;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--aqua), var(--green), var(--pine));
  box-shadow: 0 0 12px rgba(53, 208, 122, 0.7);
}

/* =========================================================
   nav
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(20px, 5vw, 40px);
  transition:
    padding 0.4s var(--ease),
    background 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding-block: 12px;
  background: rgba(7, 10, 8, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #062014;
  background: linear-gradient(
    140deg,
    var(--aqua),
    var(--green) 60%,
    var(--pine)
  );
  box-shadow: 0 6px 20px rgba(53, 208, 122, 0.28);
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.06);
}
.brand__mark--sm {
  width: 28px;
  height: 28px;
  font-size: 10px;
  border-radius: 8px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.brand__text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(11, 15, 12, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__link {
  position: relative;
  z-index: 1;
  padding: 8px 15px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s ease;
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--text);
}
.nav__link.is-active {
  color: #062014;
}
.nav__pill {
  position: absolute;
  z-index: 0;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: 0;
  border-radius: 99px;
  background: linear-gradient(120deg, var(--aqua), var(--green));
  opacity: 0;
  transition:
    transform 0.45s var(--ease),
    width 0.45s var(--ease),
    opacity 0.3s ease;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.35s var(--ease),
    opacity 0.2s ease;
}
.nav__burger span:first-child {
  top: 17px;
}
.nav__burger span:last-child {
  top: 23px;
}
.nav__burger.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav__burger.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* =========================================================
   buttons
   ========================================================= */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--btn-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}
.btn .ico {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}
.btn:hover .ico {
  transform: translateX(3px);
}
.btn--sm {
  padding: 9px 16px;
  font-size: 12.5px;
}
.btn--full {
  width: 100%;
}

.btn--solid {
  border-color: transparent;
  color: #062014;
  background: linear-gradient(
    120deg,
    var(--aqua),
    var(--green) 55%,
    var(--pine)
  );
  box-shadow: 0 10px 30px -12px rgba(53, 208, 122, 0.7);
  font-weight: 600;
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(53, 208, 122, 0.85);
}
.btn--ghost {
  background: var(--surface);
}
.btn--ghost:hover {
  border-color: rgba(53, 208, 122, 0.5);
  background: rgba(53, 208, 122, 0.08);
  transform: translateY(-2px);
}
.btn--ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(47, 217, 197, 0.18),
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn--ghost:hover::after {
  transform: translateX(120%);
}

/* =========================================================
   hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 126px 0 74px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(143, 224, 178, 0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(143, 224, 178, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 224, 178, 0);
  }
}

.hero__title {
  font-size: clamp(2.3rem, 5.3vw, 3.95rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
  color: #f2fff7;
}
/* gradient is applied per-character: an animated child creates its own layer,
   so a background-clip:text gradient on the h1 itself would not paint through */
.hero__title .char {
  display: inline-block;
  background: linear-gradient(180deg, #f2fff7 6%, #c3d6c9 62%, #7f9187);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.5em) rotate(6deg);
  animation: charIn 0.75s var(--ease) forwards;
}
@keyframes charIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__rotator {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-weight: 500;
}
.rotator {
  position: relative;
  display: inline-block;
  min-height: 1.5em;
}
.rotator__word {
  display: inline-block;
  font-weight: 600;
  background: linear-gradient(100deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wordIn 0.5s var(--ease);
}
.rotator__word.is-out {
  animation: wordOut 0.35s var(--ease) forwards;
}
@keyframes wordIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes wordOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.caret {
  width: 2px;
  height: 1.1em;
  background: var(--green);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__lede {
  max-width: 54ch;
  color: var(--text-2);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  margin-bottom: 28px;
}
.hero__lede b {
  color: var(--text);
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
#copyMail {
  font-family: var(--mono);
  font-size: 12.5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.stats li {
  display: grid;
  gap: 4px;
}
.stats b {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(140deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- hero visual: console ---------- */
.hero__visual {
  position: relative;
}

.console {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(
    165deg,
    rgba(16, 22, 19, 0.9),
    rgba(10, 14, 11, 0.94)
  );
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(198, 255, 220, 0.06);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 0% 0%,
    rgba(53, 208, 122, 0.12),
    transparent 55%
  );
  pointer-events: none;
}
.console__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(198, 255, 220, 0.02);
}
.console__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #28352e;
}
.console__bar i:first-child {
  background: var(--pine);
}
.console__bar i:nth-child(2) {
  background: var(--aqua);
}
.console__bar i:nth-child(3) {
  background: var(--mint);
}
.console__bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.console__body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.9;
  min-height: 250px;
}
.console__body p {
  opacity: 0;
  transform: translateY(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-2);
}
.console__body p.is-in {
  animation: lineIn 0.4s var(--ease) forwards;
}
@keyframes lineIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.t-dim {
  color: var(--muted);
}
.t-ok {
  color: var(--mint);
}
.t-warn {
  color: var(--aqua);
}
.t-key {
  color: var(--pine);
}
.t-acc {
  color: var(--green-2);
}

.console__graph {
  padding: 6px 16px 18px;
  border-top: 1px solid var(--line);
}
.graph {
  width: 100%;
  height: auto;
  overflow: visible;
}
.graph__edge {
  fill: none;
  stroke: rgba(198, 255, 220, 0.22);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
  animation: flow 1.6s linear infinite;
}
@keyframes flow {
  to {
    stroke-dashoffset: -18;
  }
}
.graph__node circle {
  fill: rgba(12, 17, 14, 0.9);
  stroke: var(--line-2);
  stroke-width: 1.4;
}
.graph__node text {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  text-anchor: middle;
  letter-spacing: 0.04em;
}
.graph__node--hot circle {
  stroke: var(--green);
  fill: rgba(53, 208, 122, 0.14);
  animation: nodeGlow 2.4s ease-in-out infinite;
}
.graph__node--hot text {
  fill: var(--green-2);
}
@keyframes nodeGlow {
  50% {
    stroke: var(--aqua);
    filter: drop-shadow(0 0 6px rgba(53, 208, 122, 0.8));
  }
}

.chip-float {
  position: absolute;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: rgba(11, 15, 12, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.9);
  animation: bob 5s ease-in-out infinite;
}
.chip-float--a {
  top: -18px;
  left: -14px;
  color: var(--green-2);
}
.chip-float--b {
  top: 42%;
  right: -26px;
  animation-delay: -1.6s;
  color: var(--aqua);
}
.chip-float--c {
  bottom: -14px;
  left: 22px;
  animation-delay: -3.2s;
  color: var(--mint);
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint i {
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--green), transparent);
  animation: hint 2s ease-in-out infinite;
}
@keyframes hint {
  50% {
    transform: scaleY(0.4);
    opacity: 0.4;
  }
}

/* =========================================================
   marquee
   ========================================================= */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  background: rgba(198, 255, 220, 0.018);
  padding: 16px 0;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: scrollX 42s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.marquee i {
  color: var(--green);
  font-size: 8px;
  font-style: normal;
}
@keyframes scrollX {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   sections
   ========================================================= */
.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
}
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(198, 255, 220, 0.018) 30%,
    transparent
  );
  pointer-events: none;
}

.section__head {
  max-width: 780px;
  margin-bottom: clamp(44px, 6vw, 68px);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.kicker span {
  color: var(--green);
  padding: 3px 8px;
  border: 1px solid rgba(53, 208, 122, 0.3);
  border-radius: 6px;
  background: rgba(53, 208, 122, 0.08);
  letter-spacing: 0.08em;
}
.section__title {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.section__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 65%, #c8994a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- generic card ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  transition:
    border-color 0.4s ease,
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(47, 217, 197, 0.35),
    transparent 45%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.card:hover::after {
  opacity: 1;
}

.bullets {
  display: grid;
  gap: 12px;
}
.bullets li {
  position: relative;
  overflow-wrap: anywhere;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--aqua), var(--pine));
  transform: rotate(45deg);
}
.bullets b {
  color: var(--text);
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--chip-a);
  border: 1px solid rgba(143, 224, 178, 0.24);
  background: rgba(143, 224, 178, 0.07);
  transition:
    filter 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}
.tags span:nth-child(3n + 2) {
  color: var(--chip-b);
  border-color: rgba(47, 217, 197, 0.24);
  background: rgba(47, 217, 197, 0.07);
}
.tags span:nth-child(3n) {
  color: var(--chip-c);
  border-color: rgba(79, 209, 138, 0.26);
  background: rgba(79, 209, 138, 0.08);
}
/* brighten each chip in place — shade-agnostic, so no rule can wipe a chip's
   colour. Gated on real hover so a tap on touch leaves no stuck state. */
@media (hover: hover) {
  .card:hover .tags span {
    filter: brightness(1.25) saturate(1.1);
  }
}

/* =========================================================
   about
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.about__media {
  position: relative;
}
.portrait {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  aspect-ratio: 4 / 5;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  /* no sepia — the green .portrait__glow supplies the tint */
  filter: grayscale(0.6) contrast(1.07) brightness(0.92);
  transition:
    filter 0.6s var(--ease),
    transform 0.8s var(--ease);
}
.portrait:hover img {
  filter: none;
  transform: scale(1.04);
}
.portrait__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    200deg,
    transparent 45%,
    rgba(53, 208, 122, 0.22)
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.portrait__frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(47, 217, 197, 0.35);
  border-radius: 14px;
  pointer-events: none;
  opacity: 0.6;
  transition:
    inset 0.6s var(--ease),
    opacity 0.4s ease;
}
.portrait:hover .portrait__frame {
  inset: 16px;
  opacity: 1;
}

.about__badge {
  position: absolute;
  right: -10px;
  bottom: -18px;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(11, 15, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.95);
}
.about__badge b {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}
.about__badge span {
  font-size: 12.5px;
  color: var(--text-2);
}

.about__body {
  display: grid;
  gap: 18px;
}
.about__body p {
  color: var(--text-2);
  font-size: clamp(0.95rem, 1.25vw, 1.03rem);
}
.about__body b {
  color: var(--text);
  font-weight: 600;
}

.about__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.about__points li {
  display: flex;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition:
    border-color 0.35s ease,
    transform 0.35s var(--ease),
    background 0.35s ease;
}
.about__points li:hover {
  border-color: rgba(53, 208, 122, 0.35);
  background: rgba(53, 208, 122, 0.05);
  transform: translateY(-3px);
}
.about__points .ico {
  width: 16px;
  height: 16px;
  color: var(--mint);
  margin-top: 3px;
  stroke-width: 2.2;
}
.about__points div {
  display: grid;
  gap: 3px;
}
.about__points b {
  font-size: 13.5px;
}
.about__points span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* =========================================================
   timeline
   ========================================================= */
.timeline {
  position: relative;
  display: grid;
  gap: 30px;
  padding-left: 34px;
}
.timeline__rail {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline__rail i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(var(--aqua), var(--green), var(--pine));
  box-shadow: 0 0 12px rgba(53, 208, 122, 0.6);
}

.tl {
  position: relative;
  display: grid;
  gap: 14px;
}
.tl__node {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  display: grid;
  place-items: center;
}
.tl__node::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--aqua), var(--green));
}
.tl:first-child .tl__node::before {
  animation: pulse 2.2s ease-out infinite;
}

.tl__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.tl__meta b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--aqua);
  letter-spacing: 0.04em;
}
.tl__meta span {
  font-size: 11.5px;
  color: var(--muted);
}

.tl__card {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: 12px;
}
.tl__card h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}
.tl__card h3 em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}
.tl__org {
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(100deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tl__scope {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  padding-bottom: 4px;
  line-height: 1.7;
}
.card--quiet .tl__scope {
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text-2);
}
.tl__card .tags {
  margin-top: 4px;
}

/* =========================================================
   work
   ========================================================= */
.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.proj {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.proj--wide {
  grid-column: span 2;
}
.proj:hover {
  border-color: var(--line-2);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}
.proj__shine {
  position: absolute;
  width: 380px;
  height: 380px;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(53, 208, 122, 0.13),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.proj:hover .proj__shine {
  opacity: 1;
}

.proj__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.proj__index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--aqua);
  padding: 5px 9px;
  line-height: 1;
  border: 1px solid rgba(47, 217, 197, 0.3);
  border-radius: 7px;
  background: rgba(47, 217, 197, 0.08);
}
.proj__stack {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.proj__title {
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.proj__sub {
  font-size: 13.5px;
  color: var(--gold);
  margin-bottom: 4px;
}
.proj__foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.proj__links {
  display: flex;
  gap: 8px;
}
.proj__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s var(--ease);
}
.proj__link .ico {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}
.proj__link:hover {
  background: linear-gradient(120deg, var(--aqua), var(--green));
  border-color: transparent;
  color: #062014;
  transform: translateY(-2px);
}
.proj__link:hover .ico {
  transform: translate(2px, -2px);
}

/* ---------- "also built" strip: smaller side projects ---------- */
.mini {
  margin-top: 30px;
}
.mini__label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.mini__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.mini__item {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
}
.mini__item + .mini__item {
  margin-top: 12px;
}
.mini__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: var(--mint);
  border: 1px solid rgba(143, 224, 178, 0.28);
  background: rgba(143, 224, 178, 0.09);
}
.mini__icon .ico {
  width: 20px;
  height: 20px;
}
.mini__body {
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1 1 400px;
  display: grid;
  gap: 4px;
}
.mini__body h3 {
  font-size: 15px;
}
.mini__body p {
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--muted);
}
.mini__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.work__more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* =========================================================
   stack
   ========================================================= */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  align-items: start;
}
.stack__card {
  min-width: 0;
  padding: 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.stack__card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.stack__dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--aqua), var(--pine));
  flex: none;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  line-height: 1;
  padding: 11px 13px;
  border-radius: 9px;
  color: var(--chip-a);
  border: 1px solid rgba(143, 224, 178, 0.22);
  background: rgba(143, 224, 178, 0.06);
  transition:
    transform 0.3s var(--ease),
    filter 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  cursor: default;
}
.chips span:nth-child(3n + 2) {
  color: var(--chip-b);
  border-color: rgba(47, 217, 197, 0.22);
  background: rgba(47, 217, 197, 0.06);
}
.chips span:nth-child(3n) {
  color: var(--chip-c);
  border-color: rgba(79, 209, 138, 0.24);
  background: rgba(79, 209, 138, 0.07);
}
@media (hover: hover) {
  .chips span:hover {
    transform: translateY(-3px);
    filter: brightness(1.25) saturate(1.1);
  }
}

/* =========================================================
   credentials
   ========================================================= */
.cred {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
}
.cred__col {
  display: grid;
  gap: 14px;
  align-content: start;
}
.cred__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.cred__item {
  padding: 22px;
  display: grid;
  gap: 6px;
}
.cred__year {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--aqua);
  letter-spacing: 0.05em;
}
.cred__item h4 {
  font-size: 16px;
}
.cred__org {
  font-size: 13.5px;
  color: var(--text-2);
}
.cred__note {
  font-size: 12.5px;
  color: var(--muted);
}
.cred__note b {
  color: var(--gold);
}

.certs {
  display: grid;
  gap: 12px;
}
.certs li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.certs li:hover {
  transform: translateX(4px);
  border-color: var(--line-2);
}
.certs__badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--mint);
  border: 1px solid rgba(143, 224, 178, 0.28);
  background: rgba(143, 224, 178, 0.09);
}
.certs div {
  display: grid;
  gap: 2px;
}
.certs b {
  font-size: 13.5px;
  font-weight: 600;
}
.certs span {
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   contact
   ========================================================= */
.contact {
  display: grid;
  gap: 22px;
}
.contact__rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.contact__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.contact__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}
.contact__row .ico {
  color: var(--green);
  width: 20px;
  height: 20px;
}
.contact__row div {
  display: grid;
  gap: 2px;
}
.contact__row b {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.contact__row span {
  font-size: 14px;
  color: var(--text);
}
.contact__arrow {
  margin-left: auto;
  font-style: normal;
  color: var(--muted);
  transition:
    transform 0.35s var(--ease),
    color 0.35s ease;
}
a.contact__row:hover {
  border-color: rgba(53, 208, 122, 0.4);
  transform: translateY(-3px);
}
a.contact__row:hover .contact__arrow {
  transform: translateX(5px);
  color: var(--green);
}
.contact__row--static {
  opacity: 0.86;
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  transition:
    transform 0.35s var(--ease),
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}
.socials .ico {
  width: 19px;
  height: 19px;
}
.socials a:hover {
  transform: translateY(-4px);
  color: var(--aqua);
  border-color: rgba(47, 217, 197, 0.4);
  background: rgba(47, 217, 197, 0.08);
}
.contact__cv {
  flex: none;
}

/* =========================================================
   footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
}
.footer__note {
  font-size: 12px;
  color: var(--muted);
}
.footer__note a {
  color: var(--aqua);
}
.footer__note a:hover {
  text-decoration: underline;
}
.footer__up {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  transition:
    transform 0.35s var(--ease),
    color 0.3s ease,
    border-color 0.3s ease;
}
.footer__up:hover {
  transform: translateY(-4px);
  color: var(--green);
  border-color: rgba(53, 208, 122, 0.4);
}

/* =========================================================
   scroll reveal
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1020px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero {
    padding-top: 120px;
  }
  .hero__visual {
    max-width: 560px;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about__media {
    max-width: 340px;
  }
  .contact__rows {
    grid-template-columns: 1fr;
  }
  .cred {
    grid-template-columns: 1fr;
  }
  /* two-up project cards get too narrow for their bullet density below this */
  .work {
    grid-template-columns: 1fr;
  }
  .proj--wide {
    grid-column: span 1;
  }
  .about__points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 90px 24px 30px;
    border-radius: 0 0 26px 26px;
    border: 1px solid var(--line);
    background: rgba(7, 10, 8, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateY(-105%);
    transition: transform 0.5s var(--ease);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95);
  }
  .nav__links.is-open {
    transform: none;
  }
  .nav__link {
    padding: 14px 12px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav__link:last-of-type {
    border-bottom: none;
  }
  .nav__link.is-active {
    color: var(--green);
  }
  .nav__pill {
    display: none;
  }
  .nav__burger {
    display: block;
  }
  .nav__actions .btn--ghost {
    display: none;
  }

  .chip-float--b {
    right: 0;
  }
  .scroll-hint {
    display: none;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .stats li:last-child {
    grid-column: span 2;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .about__badge {
    right: 8px;
    bottom: -14px;
  }
  .console__body {
    font-size: 10.5px;
  }
  .chip-float {
    display: none;
  }
  .footer__inner {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- small phones: tighten rhythm, centre standalone blocks ---------- */
@media (max-width: 430px) {
  /* 80px top+bottom per section is a lot of dead space on a small screen */
  .section {
    padding: 62px 0;
  }
  .section__head {
    margin-bottom: 34px;
  }

  /* the eyebrow wraps to 2 lines here (measured h=53 vs 34), and a stadium
     radius on a 2-line pill looks broken — square it off and top-align the dot */
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.01em;
    line-height: 1.5;
    align-items: flex-start;
    border-radius: 13px;
    padding: 8px 12px 8px 10px;
    margin-bottom: 22px;
  }
  .eyebrow .dot {
    margin-top: 5px;
  }

  /* portrait was left-anchored with a wide gap to its right */
  .about__media {
    margin-inline: auto;
  }

  /* socials and the résumé button were edge-anchored, leaving 50-150px of
     empty space to the right — centre them instead */
  .contact__foot {
    justify-content: center;
    gap: 16px;
  }
  .socials {
    justify-content: center;
    width: 100%;
  }
  .contact__cv {
    width: 100%;
  }

  /* reclaim horizontal room from the timeline gutter */
  .timeline {
    padding-left: 26px;
    gap: 24px;
  }
  .tl__node {
    left: -26px;
  }

  .stack {
    gap: 12px;
  }
  .work {
    gap: 14px;
  }
  .work__more .btn {
    width: 100%;
  }
  .about__points {
    gap: 10px;
  }
}

/* ---------- very small phones (iPhone SE, folded foldables) ---------- */
@media (max-width: 380px) {
  .shell {
    padding-inline: 16px;
  }
  .nav {
    padding-inline: 16px;
  }
  .brand__text {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stats li:last-child {
    grid-column: span 1;
  }
  .console__body {
    font-size: 9.5px;
    padding: 12px;
  }
  .chips span {
    font-size: 11.5px;
    padding: 9px 11px;
  }
  .proj,
  .tl__card,
  .stack__card,
  .contact__right {
    padding: 18px;
  }
  .mini__item {
    padding: 16px;
  }
  .proj__stack {
    text-align: left;
  }
  .certs li {
    padding: 14px;
  }
}

/* ---------- short landscape (phone rotated) ---------- */
@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 110px 0 60px;
  }
  .scroll-hint {
    display: none;
  }
}

/* ---------- very wide displays: use some of the extra room ---------- */
@media (min-width: 1800px) {
  :root {
    --shell: 1340px;
  }
  .hero__title {
    font-size: 4.4rem;
  }
}

/* =========================================================
   print
   ========================================================= */
@media print {
  .ambient,
  .scroll-progress,
  .preloader,
  .nav,
  .marquee,
  .console,
  .chip-float,
  .scroll-hint,
  .footer__up,
  .socials {
    display: none !important;
  }
  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }
  .section {
    padding: 18px 0 !important;
    break-inside: avoid;
  }
  .card,
  .proj,
  .mini__item {
    border-color: #ccc !important;
    background: none !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .hero {
    min-height: auto !important;
    padding: 0 0 20px !important;
  }
  .hero__title,
  .hero__title .char,
  .section__title em,
  .stats b,
  .rotator__word,
  .tl__org,
  .proj__sub {
    -webkit-text-fill-color: #111 !important;
    color: #111 !important;
    background: none !important;
  }
  .tags span,
  .chips span {
    color: #333 !important;
    border-color: #bbb !important;
    background: none !important;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9px;
    color: #555;
  }
}

/* =========================================================
   reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__title .char {
    opacity: 1 !important;
    transform: none !important;
  }
  .console__body p {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee__track {
    animation: none !important;
  }
}
