/* Ali — Portfolio. Mobile-first. One sans (Bricolage Grotesque), cyan accent.
   Tap targets ≥44px, calm motion, no infinite ambient animation. */

:root {
  --bg: #0a0a0b;
  --bg-elev: #111114;
  --bg-card: #0e0e11;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ededee;
  --text-dim: #a6a6ad;
  --text-muted: #6c6c75;
  --accent: #67e8f9;
  --accent-2: #a5f3fc;
  --accent-soft: rgba(103, 232, 249, 0.12);
  --danger: #ff6b6b;

  --radius-sm: 0.625rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;

  --max: 1180px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);

  --font-sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t: 240ms;
  --t-slow: 280ms;
}

html[data-theme="light"] {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #0f1014;
  --text-dim: #4b4b55;
  --text-muted: #82828c;
  --accent: #0891b2;
  --accent-2: #0e7490;
  --accent-soft: rgba(8, 145, 178, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--accent);
  color: #04181c;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
.btn:focus-visible,
.nav-cta:focus-visible,
.project-link:focus-visible {
  outline-offset: 4px;
}
.theme-toggle:focus-visible,
.socials a:focus-visible {
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04181c;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ============================================================
   NAV — mobile-first
   ============================================================ */
.nav {
  position: fixed;
  top: clamp(0.75rem, 2vh, 1.125rem);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - clamp(1.5rem, 6vw, 2.5rem));
  z-index: 100;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow:
    0 8px 24px -14px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in oklab, var(--bg) 40%, transparent) inset;
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-color: var(--border-strong);
  box-shadow:
    0 14px 32px -14px rgba(0, 0, 0, 0.7),
    0 0 0 1px color-mix(in oklab, var(--bg) 40%, transparent) inset;
}
.nav-inner {
  padding: 0.4375rem 0.5rem 0.4375rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
}

.nav-links {
  display: none;
  gap: 0.125rem;
}
.nav-links a {
  position: relative;
  font-size: 0.875rem;
  color: var(--text-dim);
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: var(--bg-elev);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: transparent;
  flex-shrink: 0;
  overflow: hidden;
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border-strong);
}
.theme-toggle:active {
  transform: scale(0.96);
}
.theme-toggle .icon {
  width: 1.0625rem;
  height: 1.0625rem;
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity 200ms var(--ease), transform 260ms var(--ease);
}
html[data-theme="dark"] .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.55);
}
html[data-theme="dark"] .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
html[data-theme="light"] .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.55);
}
html[data-theme="light"] .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  min-height: 40px;
  transition: background var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.nav-cta:hover {
  box-shadow: 0 8px 24px -10px var(--accent);
}
.nav-cta:active {
  transform: scale(0.98);
}

/* ============================================================
   HERO — mobile-first
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(2.5rem, 8vh, 5.5rem) var(--pad-x)
    clamp(3rem, 10vh, 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100svh;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* hero glow — ONE soft cyan light source, no grid overlay */
.aurora {
  position: absolute;
  filter: blur(110px);
  border-radius: 50%;
}
.aurora-a {
  width: min(40rem, 110vw);
  aspect-ratio: 1;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.32;
  background: radial-gradient(
    circle,
    rgba(103, 232, 249, 0.55),
    transparent 70%
  );
}
html[data-theme="light"] .aurora-a {
  opacity: 0.45;
  background: radial-gradient(
    circle,
    rgba(8, 145, 178, 0.35),
    transparent 70%
  );
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-name {
  font-size: clamp(3.25rem, 13vw, 11rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
  color: var(--text);
  text-wrap: balance;
}
.ai {
  color: var(--accent);
}

.hero-role {
  font-size: clamp(1.125rem, 3vw, 1.875rem); /* 18 → 30 */
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 auto 1.25rem;
  max-width: 52ch;
}
.accent {
  color: var(--accent);
}

.hero-lede {
  font-size: clamp(0.8125rem, 3.4vw, 1.0625rem); /* 13 → 17 */
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 auto 2rem;
  text-wrap: balance;
}

/* phone-only forced line break inside hero-lede */
@media (min-width: 40rem) {
  .br-phone {
    display: none;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
}
.hero-cta .btn {
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  min-height: 48px;
  transition: background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}
.btn svg {
  width: 1.0625rem;
  height: 1.0625rem;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  box-shadow: 0 18px 36px -18px var(--accent);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
}
.btn-ghost:active {
  transform: scale(0.98);
}
.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
  min-height: 52px;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin-inline: auto;
}
.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.meta-key {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.meta-val {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.4;
}
.meta-val a {
  color: var(--accent);
  border-bottom: 1px dashed currentColor;
}
.meta-val a:hover {
  color: var(--accent-2);
}

/* scroll-down hint at hero bottom */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(2.5rem, 6vh, 4rem);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.scroll-hint:hover,
.scroll-hint:focus-visible {
  opacity: 1;
  color: var(--text);
}
.scroll-hint-arrow {
  width: 1.125rem;
  height: 1.125rem;
  animation: scrollHintBounce 1.8s ease-in-out infinite;
}
@keyframes scrollHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--pad-x);
}
.section-tall {
  padding: clamp(3.5rem, 10vh, 8rem) var(--pad-x);
}
.section-narrow {
  max-width: 56rem; /* 896px */
}
.section-tight {
  padding: clamp(2.5rem, 7vh, 5rem) var(--pad-x);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 45rem;
}
.eyebrow {
  font-size: 0.9375rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.section-title {
  font-size: clamp(1.875rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 0.875rem;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.section-lede {
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  color: var(--text-dim);
  margin: 0;
  max-width: 38rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* SERVICES — editorial pair, no cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.25rem;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  max-width: 38rem;
}
.service-rule {
  width: 2.75rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 14px -2px color-mix(in oklab, var(--accent) 60%, transparent);
}
.service-headline {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
.service-pitch {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  line-height: 1.55;
  color: var(--text-dim);
  text-wrap: pretty;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  min-height: 44px;
  padding: 0.25rem 0;
  margin-top: 0.125rem;
  transition: color var(--t-fast) var(--ease);
}
.service-link svg {
  width: 0.9375rem;
  height: 0.9375rem;
  transition: transform var(--t-fast) var(--ease);
}
.service-link:hover {
  color: var(--accent-2);
}
.service-link:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   WORK — mobile: 1col, tablet+: 2col
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 720px;
  margin-inline: auto;
}

.project {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t) var(--ease),
    transform var(--t) var(--ease);
  display: flex;
  flex-direction: column;
}
.project:hover {
  border-color: var(--border-strong);
}

.project-frame {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-card));
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.project-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.art-tag {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  font-size: 0.75rem;
  padding: 0.3125rem 0.6875rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
  font-weight: 500;
}

/* project-1 — live screenshot */
.project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--t) var(--ease);
}
.project:hover .project-image {
  transform: scale(1.015);
}

/* project-art: bars (reports project) */
.project-art-2 {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 65%),
    linear-gradient(135deg, var(--bg-elev), var(--bg-card));
}
.project-art-2 .bars {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 58%;
}
.project-art-2 .bars span {
  width: clamp(14px, 3.2vw, 22px);
  background: linear-gradient(180deg, var(--accent), color-mix(in oklab, var(--accent) 20%, transparent));
  border-radius: 6px 6px 2px 2px;
}
.project-art-2 .bars span:nth-child(1) { height: 32%; }
.project-art-2 .bars span:nth-child(2) { height: 56%; }
.project-art-2 .bars span:nth-child(3) { height: 44%; }
.project-art-2 .bars span:nth-child(4) { height: 78%; }
.project-art-2 .bars span:nth-child(5) { height: 60%; }
.project-art-2 .bars span:nth-child(6) { height: 92%; }

/* project-art: chat (always-on replies project) */
.project-art-4 {
  background:
    radial-gradient(circle at 70% 70%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 65%),
    linear-gradient(135deg, var(--bg-elev), var(--bg-card));
}
.project-art-4 .chat-stack {
  position: absolute;
  inset: 18% 14%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.625rem;
}
.project-art-4 .chat-bubble {
  height: 2.5rem;
  border-radius: 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  width: 68%;
  flex-shrink: 0;
}
.project-art-4 .chat-bubble.them {
  align-self: flex-start;
}
.project-art-4 .chat-bubble.us {
  align-self: flex-end;
  background: var(--accent-soft);
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 20%, transparent);
}
.project-art-4 .chat-bubble.us.short {
  width: 40%;
}

.project-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.project-title {
  font-size: 1.1875rem; /* 19 */
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}
.project-title a:hover {
  color: var(--accent);
}
.project-desc {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.9375rem; /* 15 */
  line-height: 1.55;
}

.project-stat {
  padding: 0.875rem 1rem;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent);
  border-radius: 0.625rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
}
.project-stat strong {
  color: var(--accent);
  font-weight: 700;
}

.project-desc strong {
  color: var(--text);
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.125rem;
}
.tags li {
  font-size: 0.78125rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  min-height: 44px;
  padding: 0.375rem 0;
}
.project-link svg {
  width: 0.9375rem;
  height: 0.9375rem;
  transition: transform var(--t-fast) var(--ease);
}
.project-link:hover svg {
  transform: translate(2px, -2px);
}

.project-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  padding-top: 0.375rem;
}
.project-link-alt {
  color: var(--text-dim);
}
.project-link-alt:hover {
  color: var(--text);
}

/* ABOUT — editorial letter, single column, signed */
.about-letter {
  max-width: 38rem;
  margin-inline: 0;
}
.about-letter p {
  margin: 0 0 1.125rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-dim);
  text-wrap: pretty;
}
.about-letter p strong {
  color: var(--text);
  font-weight: 600;
}
.about-letter p strong.accent {
  color: var(--accent);
}
.about-lead {
  font-size: clamp(1.1875rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.015em;
}

.about-rule {
  border: 0;
  height: 1px;
  width: 3.5rem;
  background: var(--accent);
  margin: 2.5rem 0 1.75rem;
}

.about-promise {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 1.5rem;
}

.about-outcomes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 0 2.75rem;
  padding: 0;
  list-style: none;
}
.outcome {
  position: relative;
  padding-left: 1.25rem;
}
.outcome::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.outcome-title {
  margin: 0 0 0.3125rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.outcome-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-dim);
}


/* ============================================================
   CONTACT — mobile: stack with horizontal dividers
   ============================================================ */
.section-contact {
  text-align: center;
}
.section-contact .section-head {
  margin-inline: auto;
  text-align: center;
}
.contact-title {
  font-size: clamp(2rem, 7vw, 5rem); /* 32 → 80 */
  letter-spacing: -0.04em;
}
.section-contact .section-lede {
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 2rem 0;
  text-align: left;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem 0.875rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  min-height: 88px;
  transition: background var(--t) var(--ease);
}
.contact-card:last-child {
  border-bottom: 0;
}
.contact-card:hover {
  background: var(--bg-card);
}
.contact-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.contact-value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  word-break: break-word;
}
.contact-cta {
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--accent);
  padding-top: 0.5rem;
  font-weight: 500;
}

.contact-bottom {
  display: flex;
  justify-content: center;
}

/* ============================================================
   FOOTER — mobile: stack
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem var(--pad-x) 2.25rem;
  margin-top: 0.75rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.footer-tag {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  text-wrap: balance;
}
.footer-tag .accent {
  color: var(--accent);
}
.footer-line {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
.socials {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.socials a svg {
  width: 1.0625rem;
  height: 1.0625rem;
}
.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.socials a:active {
  transform: scale(0.95);
}

/* ============================================================
   HERO ENTRANCE — short staggered fade-up on first paint
   ============================================================ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-name,
.hero-role,
.hero-lede,
.hero-cta,
.hero-meta {
  animation: heroFadeUp 420ms ease-out both;
  will-change: opacity, transform;
}
.hero-name { animation-delay: 40ms; }
.hero-role { animation-delay: 140ms; }
.hero-lede { animation-delay: 240ms; }
.hero-cta  { animation-delay: 340ms; }
.hero-meta { animation-delay: 440ms; }

/* ============================================================
   REVEAL — short fade-up on section heads only
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms ease-out, transform 280ms ease-out;
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ============================================================
   BREAKPOINTS — mobile-first additive
   ============================================================ */

/* Small tablet — 480px+ */
@media (min-width: 30rem) {
  .hero-cta {
    gap: 0.75rem;
  }
  .hero-cta .btn {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* Tablet — 640px+ */
@media (min-width: 40rem) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 3.5rem;
  }

  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .contact-card {
    padding: 1.5rem 1.375rem;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
  .contact-card:last-child {
    border-right: 0;
  }
  .contact-card:hover {
    background: var(--bg-card);
  }
}

/* Desktop — 1024px+ */
@media (min-width: 64rem) {
  .nav-links {
    display: inline-flex;
  }
  .nav-inner {
    padding: 0.4375rem 0.4375rem 0.4375rem 1.125rem;
    gap: 0.75rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: clamp(3rem, 8vh, 5rem);
    padding-bottom: clamp(3rem, 8vh, 5rem);
  }

  #about {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: clamp(5rem, 11vh, 7rem);
    padding-bottom: clamp(2rem, 5vh, 3rem);
    max-width: 78rem;
  }
  #about .section-head {
    margin-bottom: 1.5rem;
  }
  #about .about-letter {
    max-width: none;
  }
  #about .about-rule {
    margin: 1.5rem 0 1.125rem;
  }
  #about .about-outcomes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    margin-bottom: 0;
  }
  #about .outcome {
    padding-left: 1rem;
  }
  #about .outcome::before {
    top: 0.5rem;
  }
  #about .outcome-title {
    margin-bottom: 0.375rem;
  }
  #about .outcome-body {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .project-body {
    padding: 1.375rem 1.5rem 1.5rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .project:hover {
    transform: translateY(-3px);
  }
}


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

/* ============================================================
   Hover-only effects gated to hover-capable pointers
   (touch devices skip them, get :active states instead)
   ============================================================ */
@media (hover: none) {
  .project:hover { transform: none; }
  .btn:hover svg { transform: none; }
  .service-link:hover svg { transform: none; }
}
