/*───────────────────────────────────────────────────────────
  Daniel De Ciantis — portfolio v2
  Hand-written. No frameworks.
───────────────────────────────────────────────────────────*/

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --blue-1: #00A9FD;
  --blue-2: #1C6AFD;
  --grad: linear-gradient(115deg, var(--blue-1) 0%, var(--blue-2) 100%);
  --green: #4BAF50;

  --bg:        #ffffff;
  --bg-alt:    #f6f7f9;
  --surface:   #ffffff;
  --surface-2: #f4f4f4;
  --text:      #0a0a0a;
  --text-2:    #5c6069;
  --line:      rgba(10,10,10,.10);
  --line-soft: rgba(10,10,10,.06);
  --shadow:    0 1px 2px rgba(10,10,10,.04), 0 12px 32px -12px rgba(10,10,10,.14);
  --shadow-lg: 0 2px 4px rgba(10,10,10,.04), 0 32px 64px -24px rgba(10,10,10,.22);
  --glass:     rgba(255,255,255,.72);
  --icon-invert: 0;

  --shell: 1140px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 32px;

  --ease: cubic-bezier(.22,1,.36,1);
  --dur: .5s;

  color-scheme: light dark;
}

/* Dark appearance follows the operating system automatically. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #070708;
    --bg-alt:    #0d0e10;
    --surface:   #141518;
    --surface-2: #1b1d21;
    --text:      #f5f6f7;
    --text-2:    #9aa0aa;
    --line:      rgba(255,255,255,.12);
    --line-soft: rgba(255,255,255,.07);
    --shadow:    0 1px 2px rgba(0,0,0,.5), 0 12px 32px -12px rgba(0,0,0,.7);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 32px 64px -24px rgba(0,0,0,.85);
    --glass:     rgba(10,10,12,.66);
    --icon-invert: 1;
  }
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

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

::selection { background: var(--blue-2); color: #fff; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
  margin-right: -.08em;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 200; background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 0 0 12px 12px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.nav__mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 6px 16px -6px rgba(28,106,253,.7);
}
.nav__name { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--line-soft); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--grad);
}
.nav__cta {
  margin-left: 8px;
  border: 1px solid var(--line);
  color: var(--text) !important;
}
.nav__cta:hover { border-color: transparent; }
.nav__cta.is-active::after { display: none; }

.nav__tools { display: none; align-items: center; gap: 6px; }
.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  color: var(--text-2);
  border: 1px solid var(--line-soft);
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--line-soft); border-color: var(--line); }
.nav__burger { display: none; }
.burger { display: grid; gap: 5px; width: 17px; }
.burger i {
  display: block; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav.is-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .burger i:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.nav__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--grad); border-radius: 0 2px 2px 0;
  transition: width .1s linear;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--lg { padding: 16px 30px; font-size: 17px; }

.btn--solid {
  background: var(--grad);
  background-origin: border-box;
  background-clip: border-box;
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(28,106,253,.85);
}
.btn--solid:hover { box-shadow: 0 18px 38px -14px rgba(28,106,253,.95); }

.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: var(--text); color: var(--bg); }

.btn--onDark { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--onDark:hover { background: #fff; color: #17361a; border-color: #fff; }

.linkish {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 600; color: var(--blue-2);
}
@media (prefers-color-scheme: dark) { .linkish { color: var(--blue-1); } }
.linkish svg { transition: transform .25s var(--ease); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(70px, 13vh, 130px) 0 clamp(80px, 12vh, 130px);
  overflow: hidden;
  isolation: isolate;
}
.hero__inner { position: relative; z-index: 2; }

.hero__glow { position: absolute; inset: -25% -15% auto; height: 780px; z-index: 0; pointer-events: none; }
.orb {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(75px); opacity: .3;
  will-change: transform, opacity;
}
.orb--a {
  width: 500px; height: 500px; left: 2%; top: 4%;
  background: var(--blue-1);
  animation: driftA 9s ease-in-out infinite alternate;
}
.orb--b {
  width: 580px; height: 580px; right: 0; top: -4%;
  background: var(--blue-2);
  animation: driftB 11s ease-in-out infinite alternate;
  animation-delay: -4s;
}

/* Durations are deliberately mismatched so the two orbs never fall into sync. */
@keyframes driftA {
  0%   { transform: translate3d(0, 0, 0) scale(1);              opacity: .26; }
  50%  { transform: translate3d(150px, 90px, 0) scale(1.34);    opacity: .46; }
  100% { transform: translate3d(-70px, 150px, 0) scale(.88);    opacity: .22; }
}
@keyframes driftB {
  0%   { transform: translate3d(0, 0, 0) scale(1.12);           opacity: .42; }
  50%  { transform: translate3d(-170px, 120px, 0) scale(.8);    opacity: .2; }
  100% { transform: translate3d(80px, -60px, 0) scale(1.3);     opacity: .44; }
}
@media (prefers-color-scheme: dark) {
  .orb { filter: blur(85px); }
  @keyframes driftA {
    0%   { transform: translate3d(0, 0, 0) scale(1);            opacity: .24; }
    50%  { transform: translate3d(150px, 90px, 0) scale(1.34);  opacity: .44; }
    100% { transform: translate3d(-70px, 150px, 0) scale(.88);  opacity: .2; }
  }
  @keyframes driftB {
    0%   { transform: translate3d(0, 0, 0) scale(1.12);         opacity: .4; }
    50%  { transform: translate3d(-170px, 120px, 0) scale(.8);  opacity: .18; }
    100% { transform: translate3d(80px, -60px, 0) scale(1.3);   opacity: .42; }
  }
}

.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 30%, #000 20%, transparent 78%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  color: var(--text-2); text-transform: uppercase;
  margin-bottom: 26px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue-1);
  box-shadow: 0 0 0 0 rgba(0,169,253,.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(0,169,253,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,169,253,0); }
}

.hero__title {
  font-size: clamp(3rem, 8.6vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
  margin-bottom: 26px;
}
.br-sm { display: none; }

.hero__sub {
  max-width: 620px;
  font-size: clamp(1.06rem, 2.1vw, 1.32rem);
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
}

.hero__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 26px;
}
.hero__tags li {
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  background: var(--surface);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 20px 44px;
  margin-top: 56px; padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}
.hero__stats dt {
  font-size: 12.5px; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-2);
  margin-bottom: 4px;
}
.hero__stats dd { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }


/* ── Sections ─────────────────────────────────────────── */
.section {
  --section-pad: clamp(60px, 6.5vw, 88px);
  padding-block: var(--section-pad);
  position: relative;
}
.section--alt { background: var(--bg-alt); }

.s-head { margin-bottom: 46px; max-width: 720px; }
.s-title {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  font-weight: 800; letter-spacing: -.04em;
}
.s-desc { margin-top: 12px; color: var(--text-2); font-size: 1.06rem; }

/* ── About ────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.about__media { position: sticky; top: 100px; }
.avatar { position: relative; }
.avatar img { width: 100%; }

.about__facts { margin-top: 22px; display: grid; gap: 12px; }
.about__facts li {
  display: grid; gap: 2px;
  font-size: 14.5px; font-weight: 500;
  padding-left: 14px; border-left: 2px solid var(--line);
}
.about__facts span {
  font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-2); font-weight: 600;
}

.about__copy { display: grid; gap: 20px; max-width: 68ch; }
.about__copy p { color: var(--text-2); font-size: 1.04rem; }
.about__copy .lead {
  font-size: clamp(1.18rem, 2.2vw, 1.42rem);
  line-height: 1.5; color: var(--text); font-weight: 500;
  letter-spacing: -.015em;
}
.about__copy strong { color: var(--text); font-weight: 600; }

/* ── Feature (CalmJaw) ────────────────────────────────── */
.feature {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center;
  padding: 44px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #4BAF50 0%, #2f8a56 55%, #21706b 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.feature__glow {
  position: absolute; z-index: -1; inset: auto -10% -60% auto;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 70%);
}
.feature__icon img {
  width: 150px; border-radius: 34px;
  box-shadow: 0 24px 48px -18px rgba(0,0,0,.55);
}
.feature__flag {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 14px;
}
.feature h3 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.feature__text { color: rgba(255,255,255,.9); max-width: 58ch; }
.feature .chips { margin: 20px 0 26px; }

/* ── Chips ────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  background: var(--bg);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.chips li:hover { color: var(--text); border-color: var(--text); transform: translateY(-2px); }
.chips--onDark li {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.92);
}
.chips--onDark li:hover { color: #fff; border-color: #fff; }

/* ── Cards (apps) ─────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}
.card__top { display: flex; align-items: center; gap: 18px; }
.app-icon img { width: 78px; border-radius: 18px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.55rem; font-weight: 700; }
.card__kicker { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.card__text { color: var(--text-2); font-size: 1rem; }
.card .chips { margin-top: 4px; }
.card__btn { margin-top: auto; align-self: flex-start; }

.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .only-dark { display: block; }
  .only-light { display: none; }
}

/* ── Skills ───────────────────────────────────────────── */
.skills { display: grid; gap: 18px; }
.skill {
  padding: 30px 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.skill:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.skill__head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 20px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.skill__icon {
  width: 44px; height: 44px; flex: none;
  filter: invert(var(--icon-invert));
  opacity: .9;
}
.skill h3 { font-size: 1.3rem; font-weight: 700; }
.skill__tag {
  margin-top: 5px; font-size: 14.5px; line-height: 1.45;
  color: var(--text-2); letter-spacing: -.005em;
}
.skill .chips li { background: var(--bg-alt); }
@media (prefers-color-scheme: dark) { .skill .chips li { background: var(--surface-2); } }

/* Sub-grouped skills (iOS + UAV) */
.skill__groups { display: grid; gap: 24px; }
.skill__group h4 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 11px;
}
.chips--accent li {
  border-color: rgba(28,106,253,.4);
  color: var(--blue-2);
  background: rgba(28,106,253,.07) !important;
  font-weight: 600;
}
.chips--accent li:hover { border-color: var(--blue-2); color: var(--blue-2); }
@media (prefers-color-scheme: dark) {
  .chips--accent li {
    border-color: rgba(0,169,253,.42);
    color: var(--blue-1);
    background: rgba(0,169,253,.1) !important;
  }
  .chips--accent li:hover { border-color: var(--blue-1); color: var(--blue-1); }
}

/* ── Models ───────────────────────────────────────────── */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.model {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.model:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.model__link { display: flex; flex-direction: column; height: 100%; }
.model__media { position: relative; aspect-ratio: 364 / 220; overflow: hidden; background: var(--surface-2); }
.model__media picture { display: block; width: 100%; height: 100%; }
.model__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.model:hover .model__media img { transform: scale(1.06); }
.model__badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--grad); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 8px 20px -8px rgba(28,106,253,.9);
}
.model__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.model__body .linkish { margin-top: auto; align-self: flex-start; padding-top: 4px; }
.model h3 { font-size: 1.24rem; font-weight: 700; }
.model__body p { color: var(--text-2); font-size: .97rem; }
.model:hover .linkish svg { transform: translate(2px,-2px); }

.models__more { margin-top: 30px; color: var(--text-2); font-size: .98rem; }
.models__more a { color: var(--text); font-weight: 600; border-bottom: 1.5px solid var(--line); }
.models__more a:hover { border-color: currentColor; }

/* ── CTA ──────────────────────────────────────────────── */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
  padding: clamp(48px, 8vw, 84px) 32px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
}
.cta__glow {
  position: absolute; z-index: -1; inset: -60% -10% auto 50%;
  width: 760px; height: 620px; border-radius: 50%;
  background: var(--grad); filter: blur(110px);
  transform: translateX(-50%);
  opacity: .22;
  will-change: transform, opacity;
  animation: ctaBreathe 9s ease-in-out infinite;
}
@keyframes ctaBreathe {
  0%   { transform: translateX(-50%) translateY(0) scale(1);         opacity: .20; }
  35%  { transform: translateX(-62%) translateY(46px) scale(1.28);   opacity: .40; }
  70%  { transform: translateX(-38%) translateY(-26px) scale(1.08);  opacity: .28; }
  100% { transform: translateX(-50%) translateY(0) scale(1);         opacity: .20; }
}
.cta h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.05rem);
  font-weight: 800; letter-spacing: -.04em;
  margin-bottom: 14px;
}
.cta p { color: var(--text-2); max-width: 52ch; margin: 0 auto 30px; font-size: 1.06rem; }

/* ── Footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-alt); padding: 62px 0 32px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px 32px;
}
.footer__brand p { margin-top: 14px; color: var(--text-2); font-size: .96rem; max-width: 34ch; }
.footer__col h4 {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); margin-bottom: 16px;
}
.footer__col > a:not(.nav__brand) {
  display: block; color: var(--text-2); font-size: .97rem; padding: 4px 0;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer__col > a:hover { color: var(--text); transform: translateX(3px); }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-soft); background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.socials a:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: var(--shadow); }
.socials img { width: 20px; height: 20px; filter: invert(var(--icon-invert)); opacity: .85; }

.footer__base {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-start;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-2); font-size: 13.5px;
}

/* ── Motion ───────────────────────────────────────────── */
.stagger {
  opacity: 0; transform: translateY(18px);
  animation: rise .85s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about__media { position: static; max-width: 260px; }
  .about__facts { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
  .models { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Tablet portrait: avatar + facts side by side instead of fully stacked,
   so the section doesn't sprawl into a tall column of white space. */
@media (min-width: 641px) and (max-width: 980px) {
  .about__media {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    max-width: none;
    min-width: 0;
  }
  .about__media .avatar { flex: 0 0 160px; width: 160px; }
  .about__facts {
    flex: 1;
    min-width: 0;
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 12px 40px;
    justify-content: start;
  }
  .about__copy { max-width: none; }
}

@media (max-width: 860px) {
  .nav__tools { display: flex; }
  .nav__burger { display: grid; }
  .nav__links {
    position: fixed; inset: 68px 0 auto;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px 24px 26px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow-lg);
    transform: translateY(-14px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav.is-open { background: var(--bg); }
  .nav__links a { padding: 13px 12px; font-size: 17px; border-radius: 12px; }
  .nav__links a.is-active::after { display: none; }
  .nav__cta { margin: 8px 0 0; text-align: center; }

  .cards { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 26px; padding: 32px; text-align: center; }
  .feature__icon { display: flex; justify-content: center; }
  .feature .chips, .feature__flag { justify-content: center; }
  .feature .chips { justify-content: center; }
  .feature__text { margin-inline: auto; }

  /* Left orb removed (clashed with hero text); right orb shrunk, re-anchored
     to the hero's horizontal centre, and given a tighter drift range so it
     stays within the right half instead of spanning the full width. */
  .orb--a { display: none; }
  .orb--b { left: 50%; right: auto; width: 460px; height: 460px; }
  @keyframes driftB {
    0%   { transform: translate3d(0, 0, 0) scale(1.12);        opacity: .42; }
    50%  { transform: translate3d(-90px, 90px, 0) scale(.83);  opacity: .22; }
    100% { transform: translate3d(55px, -50px, 0) scale(1.22); opacity: .42; }
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { padding-inline: 20px; }
  .br-sm { display: block; }
  .hero { padding-top: 46px; }

  /* Avatar centered above the (still left-aligned) facts list — the fixed
     260px media column left it stranded against a wide gutter of white
     space on narrow phones. */
  .about__media { display: flex; flex-direction: column; align-items: center; max-width: none; }
  .about__media .avatar { width: 200px; }
  .about__facts { align-self: stretch; }
  .hero__stats { gap: 18px 32px; }
  .hero__stats dd { font-size: 20px; }
  .models { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .card, .skill { padding: 26px 22px; }
  .hero__actions .btn { flex: 1 1 auto; }

  /* Left orb removed (clashed with hero text); right orb shrunk, re-anchored
     to the hero's horizontal centre, and given a tighter drift range so it
     stays within the right half instead of spanning the full width. */
  .orb--a { display: none; }
  .orb--b { left: 50%; right: auto; width: 380px; height: 380px; }
  @keyframes driftB {
    0%   { transform: translate3d(0, 0, 0) scale(1.12);        opacity: .42; }
    50%  { transform: translate3d(-50px, 70px, 0) scale(.85);  opacity: .24; }
    100% { transform: translate3d(35px, -40px, 0) scale(1.18); opacity: .4; }
  }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .stagger, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Print ────────────────────────────────────────────── */
@media print {
  .nav, .hero__glow, .hero__grid, .cta__glow { display: none !important; }
  .reveal, .stagger { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
}
