/* =========================================================
   Obaloluwa Adeleke: portfolio
   Two tracks, two colours:
   ink      = brand & design work
   emerald  = AI automation work
========================================================= */

:root {
  color-scheme: light;
  /* Light theme. --ink is the page background, --text the foreground. */
  --ink:       #f4f4f1;
  --ink-2:     #ffffff;
  --ink-3:     #ebebe6;
  --line:      rgba(17, 17, 17, 0.12);
  --line-2:    rgba(17, 17, 17, 0.22);
  --text:      #111111;
  --text-2:    #2b2b28;
  --muted:     #5c5c57;
  --brand:     #111111;
  --brand-dim: rgba(17, 17, 17, 0.06);
  --auto:      #0b7a5a;
  --auto-dim:  rgba(11, 122, 90, 0.09);
  --warn:      #9a6a00;
  --danger:    #c62828;

  --f-display: 'DM Serif Display', Georgia, serif;
  --f-label:   'Syne', ui-sans-serif, system-ui, sans-serif;
  --f-body:    'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --f-mono:    'Geist Mono',  /* terminal text only: run log, workflow steps */
     ui-monospace, 'SFMono-Regular', monospace;

  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --nav-h: 68px;
  --radius: 10px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Glass surfaces */
  --glass:        rgba(255, 255, 255, 0.34);
  --glass-strong: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 18px 40px -16px rgba(11, 60, 45, 0.28);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46vw 46vw at 6% 10%,  rgba(11, 122, 90, 0.42),  transparent 68%),
    radial-gradient(40vw 40vw at 94% 26%, rgba(95, 214, 168, 0.50), transparent 68%),
    radial-gradient(38vw 38vw at 78% 92%, rgba(11, 122, 90, 0.30),  transparent 68%),
    radial-gradient(34vw 34vw at 14% 78%, rgba(17, 17, 17, 0.16),   transparent 68%),
    var(--ink);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
em { font-style: italic; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 200;
  padding: 0.6rem 1rem; background: var(--text); color: var(--ink);
  border-radius: 6px; transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Shared type ---------- */
.label, .eyebrow {
  font-family: var(--f-label);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .sep { color: var(--line-2); margin-inline: 0.25em; }

.section__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-top: 0.75rem;
}
.section__title em { color: var(--text); }
#about .section__title em,
#process .section__title em,
#toolkit .section__title em { color: var(--auto); }
#tech-for-teens .section__title em,
#testimonials .section__title em { color: var(--brand); }
.section__sub { color: var(--muted); max-width: 58ch; margin-top: 1rem; }

.t-brand { color: var(--text); }
.t-auto  { color: var(--auto); }
.t-warn  { color: var(--warn); }

.link {
  display: inline-flex; align-items: center; gap: 0.3em;
  font-weight: 500; border-bottom: 1px solid var(--line-2);
  transition: border-color 0.2s, color 0.2s;
}
.link:hover { color: var(--auto); border-color: var(--auto); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.7rem 1.4rem;
  font-weight: 500; font-size: 0.95rem;
  color: var(--ink); background: var(--auto);
  border: 1px solid var(--auto); border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--text); border-color: var(--text); }
/* press feedback */
.btn { transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.14s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn--ghost { color: var(--text); background: transparent; border-color: var(--line-2); }
.btn--ghost:hover { color: var(--ink); }
.btn--small { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Status dot ---------- */
.status-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--auto); box-shadow: 0 0 0 0 rgba(11, 122, 90, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
.status-dot--off { background: var(--muted); animation: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(11, 122, 90, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(11, 122, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 122, 90, 0); }
}

/* ---------- Reveal (only gated when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .call.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 0.2s; }

/* =========================================================
   HEADER
========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: rgba(244, 244, 241, 0.86); backdrop-filter: blur(12px); border-color: var(--line); }

.nav { height: var(--nav-h); display: flex; align-items: center; gap: 2rem; }
.nav__logo { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-label); font-weight: 500; letter-spacing: 0.06em; margin-right: auto; }
.nav__logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.nav__list { display: flex; gap: 1.75rem; }
.nav__link { font-size: 0.9rem; color: var(--muted); padding-block: 0.4rem; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav__link:hover, .nav__link.active { color: var(--text); border-color: var(--line-2); }

.nav__burger { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 22px; height: 1.5px; background: var(--text); transition: transform 0.25s, opacity 0.2s; }
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--ink); padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 2rem; overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__link { display: block; padding: 0.9rem 0; font-family: var(--f-display); font-size: 1.8rem; border-bottom: 1px solid var(--line); }

/* =========================================================
   HERO
========================================================= */
.hero { padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5.5rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.01em;
  margin-block: 1.25rem 1.5rem;
}
.hero__desc { color: var(--muted); font-size: 1.075rem; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__status { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.75rem; font-family: var(--f-label); font-size: 0.78rem; color: var(--muted); }

/* Run log: the page's signature */
.runlog {
  --text: #ecebe6; --muted: #a3a39b; --auto: #5fd6a8; --warn: #e0b45a; --line: rgba(236, 235, 230, 0.12); --line-2: rgba(236, 235, 230, 0.2);
  border: 1px solid #111111; border-radius: var(--radius); background: #111111; color: var(--text);
  overflow: hidden; font-family: var(--f-mono);
}
.runlog__bar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }
.runlog__live { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--auto); }
.runlog__lines { padding: 1rem; display: grid; gap: 0.7rem; font-size: 0.78rem; line-height: 1.5; }
.runlog__lines li { display: grid; grid-template-columns: 4.9rem 1fr; gap: 0.75rem; }
.runlog__lines time { color: var(--muted); }
.runlog__done { color: var(--auto); padding-top: 0.7rem; border-top: 1px dashed var(--line-2); }
.js .runlog__lines li { opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s; }
.js .runlog__lines li.on { opacity: 1; transform: none; }

.facts { backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(2.5rem, 6vw, 4.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); overflow: hidden; }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.5rem; padding: 1.25rem 1.5rem; background: var(--glass); }
.facts dd { font-family: var(--f-display); font-size: 2.3rem; line-height: 1; }
.facts dt { font-size: 0.8rem; color: var(--muted); max-width: 30ch; }

/* =========================================================
   ABOUT
========================================================= */
.about__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__side { display: grid; gap: 1.25rem; align-self: start; }
@media (min-width: 961px) and (min-height: 880px) { .about__side { position: sticky; top: calc(var(--nav-h) + 1.5rem); } }
.about__photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; background: var(--ink-3); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.credential { padding: 1.25rem; border: 1px solid var(--line); border-left: 2px solid var(--auto); border-radius: var(--radius); background: var(--ink-2); display: grid; gap: 0.25rem; }
.credential__name { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1.2; margin-top: 0.25rem; }
.credential__meta { font-family: var(--f-label); font-size: 0.78rem; color: var(--muted); }
.credential .link { margin-top: 0.75rem; align-self: start; font-size: 0.9rem; }

.about__body p:not(.label) { margin-top: 1.1rem; max-width: 62ch; color: var(--text-2); }
.about__body .section__title { margin-bottom: 1.5rem; max-width: 20ch; }


/* =========================================================
   WORK
========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.filter {
  min-height: 40px; padding: 0.4rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 0.875rem; color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { color: var(--ink); background: var(--text); border-color: var(--text); }
.filter--auto[aria-pressed="true"]  { background: var(--auto);  border-color: var(--auto); }
.filter--brand[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); }

.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card[hidden] { display: none; }
.card--wide { grid-column: 1 / -1; }

.card {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); }
  .card--auto:hover  { border-color: rgba(11, 122, 90, 0.45); }
  .card--brand:hover { border-color: rgba(17, 17, 17, 0.45); }
}

.card__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tag { font-family: var(--f-label); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.tag--auto { color: var(--auto); }
.tag--brand { color: var(--brand); }
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--f-label); font-size: 0.72rem; color: var(--muted); }
.status--live { color: var(--auto); }
.card__year { font-family: var(--f-label); font-size: 0.75rem; color: var(--muted); }

.card__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.15; margin-top: 0.4rem; }
.card__kicker { font-family: var(--f-label); font-size: 0.78rem; color: var(--muted); }
.card__desc { color: var(--text-2); max-width: 62ch; }
.card__fail { font-size: 0.875rem; color: var(--muted); padding-top: 0.75rem; border-top: 1px dashed var(--line-2); max-width: 66ch; }
.card__fail strong { color: var(--text); font-weight: 500; }
.card .link { align-self: flex-start; margin-top: auto; padding-top: 0.25rem; }

.flow { display: flex; flex-wrap: wrap; gap: 0.5rem 0; margin-block: 0.5rem; font-family: var(--f-mono); font-size: 0.75rem; }
.flow li { padding: 0.35rem 0.7rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--ink-3); transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.flow li.lit { background: var(--auto-dim); border-color: rgba(11, 122, 90, 0.4); color: var(--auto); }
.flow li + li { margin-left: 1.4rem; position: relative; }
.flow li + li::before { content: '\2192'; position: absolute; left: -1.15rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.flow__ai { color: var(--auto); border-color: rgba(11, 122, 90, 0.4) !important; background: var(--auto-dim) !important; }

.stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-block: 0.4rem; }
.stack li { padding: 0.15rem 0.55rem; border: 1px solid var(--line); border-radius: 4px; font-family: var(--f-label); font-size: 0.72rem; color: var(--muted); }

.card--media { padding: 0; overflow: hidden; }
.card__media { aspect-ratio: 16 / 10; background: var(--ink-3); overflow: hidden; }
.card--wide.card--media { flex-direction: row; align-items: stretch; }
.card--wide .card__media { flex: 1.15; aspect-ratio: auto; min-height: 280px; }
.card--wide .card__body { flex: 1; justify-content: center; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .card--media:hover .card__media img { transform: scale(1.03); }
}
.card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: clamp(1.25rem, 3vw, 1.75rem); }

.work__more { margin-top: 2rem; color: var(--muted); }

/* =========================================================
   SERVICES
========================================================= */
.services__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.svc { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.svc--auto  { border-top: 2px solid var(--auto); }
.svc--brand { border-top: 2px solid var(--brand); }
.svc__head { display: flex; flex-direction: column; gap: 0.2rem; font-family: var(--f-display); font-weight: 400; font-size: 1.65rem; line-height: 1.15; }
.svc__head span { font-family: var(--f-label); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.svc__list { margin-top: 1.25rem; }
.svc__list li { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.svc__list h4 { font-weight: 500; font-size: 1rem; }
.svc__list p { margin-top: 0.3rem; font-size: 0.925rem; color: var(--muted); }


/* =========================================================
   PROCESS
========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { padding-top: 1.25rem; border-top: 1px solid var(--line-2); position: relative; }
.step::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--auto); transform-origin: left; }
.js .step::before { transform: scaleX(0); transition: transform 1.3s var(--ease) 0.35s; }
.js .step.visible::before { transform: scaleX(1); }
.step__n { font-family: var(--f-label); font-size: 0.75rem; color: var(--auto); }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; margin-block: 0.4rem 0.6rem; }
.step p { font-size: 0.925rem; color: var(--muted); }

/* =========================================================
   TOOLKIT
========================================================= */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.tools div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.tools div:nth-child(odd) { padding-right: 2rem; }
.tools dt { font-family: var(--f-label); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.tools dd { color: var(--text); }

/* =========================================================
   EXPERIENCE
========================================================= */
.timeline { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; padding-left: 1.25rem; }
.job--auto  { border-left-color: var(--auto); }
.job--brand { border-left-color: var(--brand); }
.job__date { font-family: var(--f-label); font-size: 0.8rem; color: var(--muted); padding-top: 0.45rem; }
.job__role { font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; line-height: 1.2; }
.job__org { font-weight: 500; margin-top: 0.15rem; }
.job__desc { margin-top: 0.6rem; color: var(--muted); max-width: 62ch; }

/* =========================================================
   TECH FOR TEENS
========================================================= */
.tft { background: var(--ink-2); }
.tft__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.tft__copy p:not(.label) { margin-top: 1rem; max-width: 56ch; color: var(--text-2); }
.tft__copy .section__title { margin-bottom: 1.5rem; max-width: 20ch; }
.tft__copy .btn { margin-top: 1.75rem; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { padding: 1.25rem; background: var(--ink-2); }
.pillar h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; color: var(--brand); }
.pillar p { margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted); }

/* =========================================================
   TESTIMONIALS
========================================================= */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.quote blockquote { font-family: var(--f-display); font-size: 1.1rem; line-height: 1.5; }
.quote figcaption { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; align-items: center; font-size: 0.875rem; color: var(--muted); }
.quote figcaption strong { color: var(--text); font-weight: 500; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-dim); color: var(--brand); font-family: var(--f-label); font-size: 0.75rem; }
.quote__proj { grid-column: 2; font-family: var(--f-label); font-size: 0.72rem; color: var(--brand); }
.quote--auto .avatar, .quote--auto .quote__proj { color: var(--auto); }
.quote--auto .avatar { background: var(--auto-dim); }

/* =========================================================
   CONTACT
========================================================= */
.contact__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__left p:not(.label) { margin-top: 1.1rem; max-width: 54ch; color: var(--text-2); }
.contact__left .section__title { max-width: 20ch; margin-bottom: 1.5rem; }

.call { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.75rem; padding: 1rem 1.25rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink-2); transition: border-color 0.2s; }
.call:hover { border-color: var(--auto); }
.call span:first-child { font-size: 0.9rem; color: var(--muted); }
.call strong { color: var(--text); font-weight: 500; }

.contact__info { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.contact__info div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
.contact__info dt { font-family: var(--f-label); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0.15rem; }
.contact__info a { border-bottom: 1px solid var(--line-2); transition: color 0.2s, border-color 0.2s; }
.contact__info a:hover { color: var(--auto); border-color: var(--auto); }

.form { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink-2); }
.form__note { font-size: 0.8rem; color: var(--muted); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 0.65rem 0.9rem;
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 8px;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.85; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--auto); outline-offset: 1px; border-color: var(--auto); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { min-height: 1.1em; font-size: 0.8rem; color: var(--danger); }
.form__status { font-size: 0.9rem; min-height: 1.2em; }
.form__status.ok { color: var(--auto); }
.form__status.err { color: var(--danger); }

/* =========================================================
   FOOTER
========================================================= */
.footer { padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; border-top: 1px solid var(--line); }
.footer__grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__logo { font-family: var(--f-label); font-weight: 500; letter-spacing: 0.06em; font-size: 1.25rem; }
.footer__logo span { color: var(--brand); }
.footer__tag { margin-top: 0.5rem; max-width: 36ch; font-size: 0.9rem; color: var(--muted); }
.footer__links { display: grid; grid-template-columns: repeat(2, auto); gap: 0.5rem 2.5rem; font-size: 0.9rem; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink-3); border: 1px solid var(--line-2);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--auto); }

/* =========================================================
   RESPONSIVE
========================================================= */
html { scroll-padding-top: calc(var(--nav-h) + 1rem); }

@media (max-width: 960px) {
  .nav__list, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero__grid, .about__grid, .tft__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__side { position: static; grid-template-columns: minmax(0, 260px) 1fr; align-items: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: 1fr; }
  .tools div:nth-child(odd) { padding-right: 0; }
}

@media (max-width: 700px) {
  .facts { grid-template-columns: 1fr; }
  .about__side { grid-template-columns: minmax(0, 220px) 1fr; gap: 1rem; }
  .work__grid, .services__cols, .quotes, .pillars { grid-template-columns: 1fr; }
  .card--wide.card--media { flex-direction: column; }
  .card--wide .card__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .tools div { grid-template-columns: 1fr; gap: 0.25rem; }
  .job { grid-template-columns: 1fr; gap: 0.25rem; padding-left: 1rem; }
  .contact__info div { grid-template-columns: 1fr; gap: 0.15rem; }
  .runlog__lines li { grid-template-columns: 1fr; gap: 0; }
  .footer__links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .runlog__lines li { opacity: 1; transform: none; }
  .card:hover, .card--media:hover .card__media img { transform: none; }
}

/* =========================================================
   404
========================================================= */
.not-found { min-height: 100vh; display: grid; place-content: center; gap: 1rem; text-align: center; padding: 2rem var(--gutter); }
.not-found h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1.05; }
.not-found p { color: var(--muted); }
.not-found .btn { justify-self: center; margin-top: 0.5rem; }


/* =========================================================
   GLASSMORPHISM
   Frosted surfaces over the fixed ambient gradient.
========================================================= */
.card, .svc, .quote, .credential, .form, .call {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
}
.pillar { background: var(--glass); }
.tft { background: transparent; }
.header.scrolled {
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 1px 0 var(--line);
}
.mobile-nav { background: var(--glass-strong); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.field input, .field select, .field textarea { background: rgba(255, 255, 255, 0.6); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .svc, .quote, .credential, .form, .call, .facts div, .pillar { background: var(--ink-2); }
  .header.scrolled, .mobile-nav { background: var(--ink); }
}

/* =========================================================
   MOTION
   Strong ease-out for entrances. Transform and opacity only.
========================================================= */
.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 150; height: 2px;
  background: var(--auto); transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* Hero headline: words rise in sequence */
.w { display: inline-block; }
.js .hero__title .w {
  opacity: 0; transform: translateY(0.45em);
  animation: word-in 0.95s var(--ease) forwards;
  animation-delay: calc(200ms + var(--i) * 90ms);
}
@keyframes word-in { to { opacity: 1; transform: none; } }

/* Ambient drift behind the hero: slow enough to read as atmosphere */
.hero { position: relative; overflow-x: clip; }
.hero::before, .hero::after {
  content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
.hero::before { width: 34rem; height: 34rem; top: 4rem; left: -10rem; background: rgba(11, 122, 90, 0.16); animation: drift-a 20s var(--ease-in-out) infinite alternate; }
.hero::after  { width: 26rem; height: 26rem; top: 14rem; right: -6rem; background: rgba(17, 17, 17, 0.08); animation: drift-b 24s var(--ease-in-out) infinite alternate; }
@keyframes drift-a { to { transform: translate3d(4rem, 3rem, 0); } }
@keyframes drift-b { to { transform: translate3d(-3rem, 4rem, 0); } }

/* Work filter: cards that appear settle in */
.card.is-entering { animation: card-in 0.65s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* =========================================================
   INTERACTIVE RUN LOG (the "break it" game)
========================================================= */
.runlog { box-shadow: 0 24px 60px -24px rgba(17, 17, 17, 0.55); transition: box-shadow 0.6s var(--ease); }
.runlog--won { box-shadow: 0 24px 70px -20px rgba(11, 122, 90, 0.65), 0 0 0 1px rgba(95, 214, 168, 0.5) inset; }
.runlog__tabs { display: inline-flex; align-items: center; gap: 0.75rem; }
.runlog__dots { display: inline-flex; gap: 5px; }
.runlog__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(236, 235, 230, 0.22); }
.runlog__title { color: var(--text); }
.runlog__lines { min-height: 15.5rem; align-content: start; }

.runlog__game { padding: 1rem; border-top: 1px solid var(--line); display: grid; gap: 0.85rem; background: rgba(255, 255, 255, 0.03); }
.runlog__prompt { font-size: 0.78rem; color: var(--muted); }
.runlog__btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chaos {
  min-height: 36px; padding: 0.35rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--f-mono); font-size: 0.72rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.14s var(--ease);
}
.chaos:active:not(:disabled) { transform: scale(0.96); }
.chaos:disabled { opacity: 0.5; cursor: progress; }
.chaos--ok { border-style: dashed; color: var(--muted); }
.chaos.is-done::before { content: '\2713\00a0'; color: var(--auto); }
@media (hover: hover) and (pointer: fine) {
  .chaos:not(:disabled):hover { background: rgba(236, 235, 230, 0.1); border-color: var(--auto); }
}

.runlog__score { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.9rem; font-size: 0.72rem; color: var(--muted); }
.pips { display: inline-flex; gap: 5px; }
.pips li { width: 22px; height: 6px; border-radius: 3px; background: rgba(236, 235, 230, 0.16); transition: background-color 0.4s var(--ease); }
.pips li.on { background: var(--auto); }
.runlog__runs { margin-left: auto; color: var(--auto); }

.runlog__cta {
  display: block; padding: 0.7rem 0.9rem; border-radius: 8px;
  background: var(--auto); color: #04150f; font-size: 0.8rem; font-weight: 500;
  animation: cta-in 0.5s var(--ease) both;
}
.runlog__cta[hidden] { display: none; }
@keyframes cta-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .hero__title .w { opacity: 1; transform: none; }
  .js .step::before { transform: scaleX(1); }
  .progress { display: none; }
  .card.is-entering, .runlog__cta { animation: none; }
}



/* =========================================================
   OLD-PORTFOLIO CONTENT, RESTORED
   Hero name, marquee band, Why choose me.
========================================================= */
.hero__name { font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; margin-bottom: 0.9rem; }
.hero__name em { color: var(--auto); }
.eyebrow { line-height: 1.8; }

.marquee { border-block: 1px solid var(--line); background: var(--glass); overflow: hidden; padding-block: 0.9rem; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.marquee__track { display: flex; align-items: center; gap: 1.75rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--f-label); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--auto); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }

.about__photo { position: relative; }

.why__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.why__text { margin-block: 1.1rem 1.75rem; max-width: 52ch; color: var(--text-2); }
.why__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why-item { display: grid; grid-template-columns: 1.75rem 1fr; column-gap: 0.75rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.why-item::before { content: '\2192'; grid-row: 1 / 3; color: var(--auto); font-family: var(--f-label); padding-top: 0.15rem; }
.why-item h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.02rem; }
.why-item p { grid-column: 2; margin-top: 0.25rem; font-size: 0.95rem; color: var(--muted); }

.svc__list .stack, .job .stack { margin-top: 0.6rem; }
.job .stack { margin-bottom: 0; }

@media (max-width: 960px) { .why__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }


/* =========================================================
   ROUND 3
   Glass buttons, justified long text, bento grid, testimonial slider.
========================================================= */

/* ---------- Glass buttons ---------- */
.btn {
  color: #fff;
  background: linear-gradient(180deg, rgba(22, 150, 113, 0.80), rgba(11, 122, 90, 0.90));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 24px -10px rgba(11, 122, 90, 0.65);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
}
.btn:hover {
  background: linear-gradient(180deg, rgba(30, 170, 128, 0.88), rgba(8, 100, 74, 0.96));
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--ghost {
  color: var(--text);
  background: var(--glass-strong);
  border-color: var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 20px -10px rgba(17, 17, 17, 0.25);
}
.btn--ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.85); border-color: rgba(11, 122, 90, 0.5); }

.filter {
  background: var(--glass); border-color: var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
}
.filter:hover { background: var(--glass-strong); }
.filter[aria-pressed="true"] { background: rgba(17, 17, 17, 0.86); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.filter--auto[aria-pressed="true"] { background: linear-gradient(180deg, rgba(22, 150, 113, 0.85), rgba(11, 122, 90, 0.92)); }
.filter--brand[aria-pressed="true"] { background: rgba(17, 17, 17, 0.86); }

.to-top, .slider__btn, .slider__toggle {
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 18px -10px rgba(17, 17, 17, 0.3);
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
}
.chaos { background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- Justified long text ---------- */
p, blockquote, dd {
  text-align: justify; text-justify: inter-word;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}
/* labels read better ragged */
.eyebrow, .hero__status, .runlog__prompt, .form__note { text-align: left; hyphens: manual; }

/* ---------- Tech for Teens: bento grid ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(150px, auto);
  gap: 0.9rem; background: none; border: 0; border-radius: 0; overflow: visible;
}
.pillar {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35rem;
  padding: 1.4rem; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.pillar:nth-child(1) {
  grid-row: span 2;
  background: linear-gradient(165deg, rgba(11, 122, 90, 0.22), rgba(255, 255, 255, 0.34) 65%);
}
.pillar:nth-child(1) h3 { font-size: 1.7rem; }
.pillar:nth-child(4) { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
.pillar:nth-child(4) p { max-width: 38ch; margin: 0; }
.pillar h3 { color: var(--text); }
.pillar:nth-child(1) h3, .pillar:nth-child(4) h3 { color: var(--auto); }
@media (hover: hover) and (pointer: fine) { .pillar:hover { transform: translateY(-3px); border-color: rgba(11, 122, 90, 0.4); } }
@media (max-width: 700px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar:nth-child(1) { grid-row: auto; }
  .pillar:nth-child(4) { flex-direction: column; align-items: flex-start; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .pillar { background: var(--ink-2); } }

/* ---------- Testimonial slider ---------- */
.slider { max-width: 860px; margin-inline: auto; }
.slider__viewport { display: grid; gap: 1.25rem; }
.slider .quote { padding: clamp(1.5rem, 4vw, 2.5rem); gap: 1.75rem; }
.slider .quote blockquote { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5; }
.quote--auto { border-top: 2px solid var(--auto); }

.js .slider__viewport { gap: 0; }
.js .slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), visibility 0s linear 0.8s;
}
.js .slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.slider__controls { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.slider__btn { width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; transition: border-color 0.2s, transform 0.14s var(--ease); }
.slider__btn:active, .slider__toggle:active { transform: scale(0.95); }
.slider__toggle { min-height: 44px; padding: 0 1rem; border-radius: 999px; font-family: var(--f-label); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 0.5rem; }
.slider__dots { display: flex; gap: 0.15rem; }
.slider__dot { width: 28px; height: 44px; position: relative; }
.slider__dot::after {
  content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 4px; margin-top: -2px;
  border-radius: 2px; background: var(--line-2); transition: background-color 0.4s var(--ease), left 0.4s var(--ease), right 0.4s var(--ease);
}
.slider__dot[aria-current="true"]::after { background: var(--auto); left: 0; right: 0; }
@media (hover: hover) and (pointer: fine) { .slider__btn:hover, .slider__toggle:hover { border-color: var(--auto); } }
@media (max-width: 700px) { .slider__toggle { margin-left: 0; } .slider__controls { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) {
  .js .slide, .js .slide.is-active { transform: none; transition: opacity 0.2s linear, visibility 0s; }
}

/* About: photo + credential stack on phones, with a generous headshot */
@media (max-width: 520px) {
  .about__side { grid-template-columns: 1fr; }
  .about__photo { width: 100%; max-width: 340px; margin-inline: auto; }
  .credential { max-width: 340px; margin-inline: auto; width: 100%; }
}



/* =========================================================
   ROUND 4
   Glass stats strip, collapsible services.
========================================================= */
.facts {
  gap: 0; background: var(--glass); border-color: var(--glass-border);
  box-shadow: var(--glass-shadow); overflow: hidden;
  backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
}
.facts div { background: transparent; }
.facts div + div { border-left: 1px solid var(--line-2); }
@media (max-width: 700px) { .facts div + div { border-left: 0; border-top: 1px solid var(--line-2); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .facts { background: var(--ink-2); } }

.svc__list li { padding-block: 0; }
.svc-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.05rem; cursor: pointer; list-style: none;
}
.svc-item summary::-webkit-details-marker { display: none; }
.svc-item summary h4 { font-weight: 500; font-size: 1rem; }
.svc-item__cue {
  display: inline-flex; align-items: center; gap: 0.5rem; flex: none;
  font-family: var(--f-label); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.svc-item__cue::before { content: 'Read more'; }
.svc-item[open] .svc-item__cue::before { content: 'Show less'; }
.svc-item__cue::after {
  content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.35s var(--ease);
}
.svc-item[open] .svc-item__cue::after { transform: translateY(1px) rotate(-135deg); }
.svc-item[open] summary h4 { color: var(--auto); }
.svc--brand .svc-item[open] summary h4 { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .svc-item summary:hover .svc-item__cue { color: var(--text); } }
.svc-item__more { padding-bottom: 1.2rem; animation: svc-open 0.5s var(--ease) both; }
.svc-item__more p { font-size: 0.925rem; color: var(--muted); }
@keyframes svc-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .svc-item__more { animation: none; } }
