/* ==========================================================================
   Allord Archard portfolio
   Hand-written CSS. No framework, no build step.

   1. Tokens        5. Hero
   2. Reset/base    6. Sections
   3. Utilities     7. CTA / contact / footer
   4. Cursor+boot   8. Responsive + reduced motion
   ========================================================================== */

/* ============================ 1. TOKENS ============================ */
:root {
  --bg:            #05070c;
  --bg-soft:       #090d15;
  --surface:       rgba(255, 255, 255, 0.03);
  --surface-hi:    rgba(255, 255, 255, 0.06);
  --line:          rgba(255, 255, 255, 0.09);
  --line-hi:       rgba(255, 255, 255, 0.17);

  --text:          #e8eef7;
  --text-dim:      #9aa8bd;
  --text-faint:    #6b7a90;

  --accent:        #22d3ee;
  --accent-2:      #8b7cff;
  --wa:            #25d366;

  --accent-soft:   rgba(34, 211, 238, 0.1);
  --accent-line:   rgba(34, 211, 238, 0.32);
  --grad:          linear-gradient(105deg, var(--accent), #6ee7ff 45%, var(--accent-2));

  --shadow:        0 22px 60px -26px rgba(0, 0, 0, 0.8);
  --glow-opacity:  0.4;
  --canvas-opacity: 0.5;

  --font: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'Cascadia Code', monospace;

  --nav-h:  72px;
  --radius: 16px;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  --bg:            #f8f9fc;
  --bg-soft:       #ffffff;
  --surface:       rgba(11, 18, 32, 0.025);
  --surface-hi:    rgba(11, 18, 32, 0.05);
  --line:          rgba(11, 18, 32, 0.1);
  --line-hi:       rgba(11, 18, 32, 0.2);

  --text:          #0d1526;
  --text-dim:      #4d5a70;
  --text-faint:    #7a879b;

  --accent:        #0891b2;
  --accent-2:      #6d5cf0;

  --accent-soft:   rgba(8, 145, 178, 0.09);
  --accent-line:   rgba(8, 145, 178, 0.28);
  --grad:          linear-gradient(105deg, var(--accent), #0ea5b7 45%, var(--accent-2));

  --shadow:        0 22px 50px -28px rgba(13, 21, 38, 0.25);
  --glow-opacity:  0.25;
  --canvas-opacity: 0.35;
}

/* ============================ 2. RESET / BASE ============================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(15px, 0.5vw + 13.6px, 16.5px);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
body.is-locked { overflow: hidden; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
p { margin: 0 0 1.1em; }
b, strong { font-weight: 600; color: var(--text); }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #04070d; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: #04070d; font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

/* ============================ 3. UTILITIES ============================ */
.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.accent { color: var(--accent); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.card:hover { border-color: var(--accent-line); transform: translateY(-3px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--wa);
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.9rem 1.55rem;
  border-radius: 99px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--xl { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--xl svg { width: 21px; height: 21px; }

.btn--wa { background: linear-gradient(135deg, #25d366, #14b355); color: #04170c; }
.btn--wa:hover { box-shadow: 0 16px 40px -14px rgba(37, 211, 102, 0.55); transform: translateY(-2px); }

.btn--ghost { border-color: var(--line-hi); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--ghost svg { transition: transform 0.3s var(--ease); }
.btn--ghost:hover svg { transform: translateX(4px); }

.btn:active { transform: translateY(0) scale(0.98); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills li {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 7px;
  color: var(--text-faint);
  background: var(--surface-hi);
  border: 1px solid var(--line);
}

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

/* ---- background ---- */
#bgCanvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  opacity: var(--canvas-opacity);
}
.glow {
  position: fixed;
  z-index: -1;
  top: -18vw; right: -12vw;
  width: 48vw; height: 48vw;
  max-width: 640px; max-height: 640px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: var(--glow-opacity);
  pointer-events: none;
  background: radial-gradient(circle, rgba(34,211,238,0.35), transparent 68%);
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: var(--grad); }

/* ============================ 4. CURSOR + BOOT ============================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  z-index: 9999; pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--accent); }
.cursor-ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid var(--accent-line);
  transition: opacity 0.3s var(--ease), width 0.3s var(--ease),
              height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s var(--ease);
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: var(--accent-soft); }
body.cursor-hover .cursor-dot { opacity: 0; }

.boot {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: var(--bg);
  cursor: pointer;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot.done .boot__inner { transform: scale(1.04); }

.boot__inner {
  width: min(400px, 84vw);
  transition: transform 0.55s var(--ease);
}

/* --- monogram --- */
.boot__logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 700;
  font-size: 2.5rem; letter-spacing: -0.05em;
  margin-bottom: 1.1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bootIn 0.5s var(--ease) both;
}
.boot__logo-cursor {
  width: 11px; height: 30px;
  border-radius: 2px;
  background: var(--accent);
  animation: blink 0.9s steps(2, start) infinite;
}
@keyframes bootIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* --- the little terminal --- */
.boot__win {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: bootIn 0.5s var(--ease) 0.08s both;
}
.boot__win-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.boot__win-bar .tdot { width: 8px; height: 8px; }
.boot__win-title {
  margin-left: auto;
  font-family: var(--mono); font-size: 0.62rem; color: var(--text-faint);
}

.boot__log {
  padding: 0.85rem 0.95rem 0.95rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.85;
  color: var(--text-faint);
  min-height: 9.6em;      /* holds the full sequence so nothing jumps */
}
.boot__cmd { color: var(--text); }
.boot__cmd::before { content: '$ '; color: var(--accent); }

.boot__row {
  display: flex; align-items: baseline; gap: 7px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.boot__row.in { opacity: 1; transform: none; }
.boot__k { color: var(--text-dim); white-space: nowrap; }
.boot__lead {
  flex: 1;
  border-bottom: 1px dotted var(--line-hi);
  transform: translateY(-3px);
}
.boot__s {
  color: #34d399;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.boot__row.ok .boot__s { opacity: 1; transform: none; }

.boot__ready {
  color: var(--accent);
  animation: bootIn 0.3s var(--ease) both;
}

/* faint moving scanline over the terminal */
.boot__scan {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--accent-soft), transparent);
  height: 40%;
  opacity: 0.5;
  animation: scan 2.4s linear infinite;
}
@keyframes scan {
  from { transform: translateY(-100%); }
  to   { transform: translateY(320%); }
}

/* --- meter --- */
.boot__meter { display: flex; align-items: center; gap: 10px; margin-top: 1rem; }
.boot__bar { flex: 1; height: 2px; background: var(--line); border-radius: 99px; overflow: hidden; }
.boot__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--grad);
  transition: width 0.25s var(--ease);
}
.boot__pct {
  font-family: var(--mono); font-size: 0.68rem; color: var(--text-faint);
  min-width: 3.2ch; text-align: right;
}

.boot__skip {
  margin: 0.9rem 0 0;
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0;
  animation: fadeIn 0.4s var(--ease) 1s forwards;
}
@keyframes fadeIn { to { opacity: 0.6; } }

/* ============================ 5. NAV + HERO ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              height 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav.stuck {
  height: 62px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav.hide { transform: translateY(-105%); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand__mark { font-family: var(--mono); color: var(--accent); font-size: 1rem; }
.brand__name { font-size: 0.95rem; }

.nav__links { display: flex; align-items: center; gap: 0.25rem; }
.nav__links > a {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  border-radius: 9px;
  transition: color 0.3s var(--ease);
}
.nav__links > a:hover, .nav__links > a.active { color: var(--text); }
.nav__links > a.active::after {
  content: '';
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.2rem;
  height: 1.5px; border-radius: 99px; background: var(--accent);
}
.nav__cta {
  margin-left: 0.5rem;
  border: 1px solid var(--accent-line);
  color: var(--accent) !important;
  background: var(--accent-soft);
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--accent) !important; color: #04070d !important; }

.nav__tools { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: var(--surface);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.icon-btn svg { width: 18px; height: 18px; }
.i-moon { display: none; }
html[data-theme="light"] .i-sun { display: none; }
html[data-theme="light"] .i-moon { display: block; }

.burger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.burger span { display: block; width: 18px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.3px) rotate(-45deg); }

/* ---- hero ---- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title { margin-bottom: 1.1rem; }
.hero__name {
  display: block;
  font-size: clamp(2.7rem, 7.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.hero__role {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-top: 0.25rem;
}

/* the ask, right under the name; the second thing anyone reads */
.hero__pitch {
  font-size: clamp(1.05rem, 2.1vw, 1.32rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1.4rem;
}

.hero__typed {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  min-height: 2.6em;
}
.hero__typed .prompt { color: var(--accent); margin-right: 0.6ch; }
.hero__typed .typed-prefix { color: var(--text-faint); margin-right: 0.6ch; }
.hero__typed .typed { color: var(--text); }
.caret {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--accent);
  transform: translateY(0.15em);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__lede { max-width: 52ch; color: var(--text-dim); margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }

.hero__stack {
  display: flex; flex-wrap: wrap;
  column-gap: 0.7rem; row-gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__stack li { display: inline-flex; align-items: center; gap: 0.7rem; }
.hero__stack li:not(:last-child)::after {
  content: ''; width: 3px; height: 3px; border-radius: 99px;
  background: var(--accent); opacity: 0.6;
}

/* ---- terminal ---- */
.terminal {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.4s var(--ease);
}
.terminal:hover { border-color: var(--accent-line); }
.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.tdot { width: 10px; height: 10px; border-radius: 99px; }
.tdot--r { background: #ff5f57; } .tdot--y { background: #febc2e; } .tdot--g { background: #28c840; }
.terminal__title { margin-left: auto; font-family: var(--mono); font-size: 0.66rem; color: var(--text-faint); }

.terminal__body {
  margin: 0;
  padding: 1.2rem 1.3rem 1.4rem;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.8vw, 0.77rem);
  line-height: 2;
  min-height: 20em;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-dim);
}
.terminal__body .t-cmd { color: var(--text); }
.terminal__body .t-cmd::before { content: '$ '; color: var(--accent); }
.terminal__body .t-ok { color: #34d399; }
.terminal__body .t-warn { color: #fbbf24; }
.terminal__body .t-out { color: var(--text-faint); }
.terminal__body .t-cur {
  display: inline-block; width: 8px; height: 1em;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1s steps(2, start) infinite;
}

/* ============================ 6. SECTIONS ============================ */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-title {
  display: flex; align-items: baseline; gap: 0.75rem;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 0.8rem;
}
.section-title i {
  font-style: normal; font-family: var(--mono);
  font-size: 0.8rem; font-weight: 500; color: var(--accent);
}
.section-lede { max-width: 54ch; color: var(--text-dim); margin-bottom: 2.8rem; }

/* ---- about ---- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  margin-top: 2.4rem;
}

/* Round frame. The photo is already cropped square to a headshot, so cover
   has nothing left to trim and the face sits where it should in the circle. */
.avatar {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-hi);
  box-shadow: 0 0 0 7px var(--accent-soft);   /* soft ring around the circle */
  background: linear-gradient(150deg, var(--accent-soft), var(--surface));
  display: grid; place-items: center;
}
.avatar picture { display: contents; }
.avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.avatar__fallback {
  font-family: var(--mono);
  font-size: 3.4rem; font-weight: 700;
  letter-spacing: -0.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.about__facts { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; }
.about__facts li { display: flex; flex-direction: column; }
.about__facts b {
  font-family: var(--mono);
  font-size: 1.5rem; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.about__facts span { font-size: 0.78rem; color: var(--text-faint); }

.about__text p { color: var(--text-dim); max-width: 60ch; }

/* ---- services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
}
.service { padding: 1.7rem 1.5rem; }
.service__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  margin-bottom: 1rem;
}
.service__icon svg { width: 20px; height: 20px; }
.service h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.55rem; }
.service p { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 1.1rem; }

/* ---- work ---- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1rem;
}
.work-card { padding: 1.7rem 1.6rem; display: flex; flex-direction: column; }
.work-card--feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface);
  border-color: var(--accent-line);
}
.work-card__top { margin-bottom: 0.9rem; }
.work-card__badge {
  font-family: var(--mono);
  font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.work-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; transition: color 0.3s var(--ease); }
.work-card--feature h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.work-card:hover h3 { color: var(--accent); }
.work-card > p { color: var(--text-dim); font-size: 0.9rem; }
.work-card--feature > p { max-width: 66ch; }
.work-card .pills { margin-top: auto; padding-top: 0.5rem; }
.work-card__links { margin-top: 0.4rem; }
.work-card__links a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-family: var(--mono); font-size: 0.76rem;
  color: var(--text-dim);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.work-card__links a:hover { color: var(--accent); transform: translateX(3px); }

/* ============================ 7. CTA / CONTACT / FOOTER ============================ */
.cta-band { padding: 0 0 clamp(1rem, 3vw, 2rem); }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 2.6rem);
  border-radius: 20px;
  border: 1px solid var(--accent-line);
  background: linear-gradient(120deg, var(--accent-soft), transparent 65%), var(--surface);
}
.cta-band h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 0.4rem; }
.cta-band p { color: var(--text-dim); font-size: 0.92rem; margin: 0; max-width: 52ch; }

.section--contact { text-align: center; padding-bottom: clamp(5rem, 10vw, 8rem); }
.contact { display: flex; flex-direction: column; align-items: center; }
.contact__title {
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  font-weight: 800; letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
}
.contact__lede { max-width: 50ch; color: var(--text-dim); margin-bottom: 2.2rem; }
.contact__actions {
  display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center;
  width: 100%;
}
.contact__preview { margin-top: 2.4rem; }
.bubble {
  display: inline-block;
  max-width: 32ch;
  padding: 0.8rem 1.1rem;
  border-radius: 18px 18px 5px 18px;
  background: linear-gradient(135deg, #25d366, #16a34a);
  color: #04170c;
  font-size: 0.93rem; font-weight: 500; line-height: 1.5;
  text-align: left;
  box-shadow: 0 14px 34px -18px rgba(37, 211, 102, 0.7);
}

.footer { border-top: 1px solid var(--line); padding: 2rem 0; background: var(--surface); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint);
}
.footer p { margin: 0; }
.footer b { color: var(--text-dim); font-weight: 500; }
.footer__links { display: flex; gap: 1.3rem; }
.footer__links a {
  display: inline-flex; align-items: center; min-height: 34px;
  transition: color 0.3s var(--ease);
}
.footer__links a:hover { color: var(--accent); }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  display: inline-flex; align-items: center;
  height: 54px; padding: 0 17px;
  border-radius: 99px;
  background: linear-gradient(135deg, #25d366, #14b355);
  color: #04170c;
  box-shadow: 0 16px 38px -14px rgba(37, 211, 102, 0.6);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.wa-float.show { transform: none; }
.wa-float svg { width: 25px; height: 25px; flex: none; }
.wa-float__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-weight: 600; font-size: 0.9rem; opacity: 0;
  transition: max-width 0.4s var(--ease), opacity 0.3s var(--ease), margin 0.4s var(--ease);
}
.wa-float:hover .wa-float__label { max-width: 130px; opacity: 1; margin-left: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 30px;
  transform: translate(-50%, 140%);
  z-index: 500;
  padding: 0.8rem 1.25rem;
  border-radius: 13px;
  background: color-mix(in srgb, var(--bg-soft) 94%, transparent);
  border: 1px solid var(--accent-line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-family: var(--mono); font-size: 0.78rem; color: var(--text);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  max-width: min(420px, 90vw); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============================ 8. RESPONSIVE ============================ */
@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 2rem); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.8rem; }
  .hero__panel { order: 2; }
  .terminal__body { min-height: 16em; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .avatar { max-width: 220px; }
}

@media (max-width: 780px) {
  .burger { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    flex-direction: column; align-items: stretch; justify-content: center;
    gap: 0.4rem;
    padding: 2rem 1.6rem;
    background: color-mix(in srgb, var(--bg-soft) 96%, transparent);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    box-shadow: var(--shadow);
    z-index: 1;
  }
  .nav__links.open { transform: none; }
  .nav__links > a { font-size: 1.05rem; padding: 0.8rem 1rem; }
  .nav__links > a.active::after { left: 1rem; right: auto; width: 24px; }
  .nav__cta { margin: 0.6rem 0 0; text-align: center; justify-content: center; }

  /* keep the header controls above the fixed drawer */
  .brand, .nav__tools { position: relative; z-index: 2; }

  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .footer__inner { justify-content: center; text-align: center; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-float__label { display: none; }
}

@media (max-width: 560px) {
  .hero__typed { min-height: 4.4em; }
}

@media (max-width: 460px) {
  .hero__actions .btn,
  .contact__actions .btn,
  .cta-band__inner .btn { width: 100%; }
  .about__facts { gap: 1.1rem; }
}

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

@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; }
  .wa-float { transform: none; }
}
