/* ==========================================================================
   Agil Abdulhadi — portfolio
   Playful "sticker & doodle" system: cobalt blue, sunny yellow, tomato red,
   ink black on warm paper. Heavy grotesk headlines, mono notes, solid colour blocks.
   ========================================================================== */

:root {
  --ink: #111111;
  --paper: #fbf6ea;
  --white: #ffffff;
  --blue: #1f3fe0;
  --blue-deep: #1630b8;
  --red: #da3a1c;
  --yellow: #ffc629;
  --sky: #a8cbf7;
  --pink: #ff9ec4;
  --muted: #5b574e;
  --line: #e7dfcc;

  --f-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --bw: 2.5px;
  --hard: 5px 5px 0 var(--ink);
  --hard-sm: 3px 3px 0 var(--ink);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.1; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, dl, dd { margin: 0; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-blue :focus-visible, .on-red :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 800; font-size: 14px; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.site { overflow-x: clip; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 96px); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 64px); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.022em;
}
.h-xl { font-size: clamp(44px, 7.2vw, 104px); }
.h-lg { font-size: clamp(38px, 5.4vw, 72px); line-height: 1; }
.h-md { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.02; }
.h-sm { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; }
.hand { font-family: var(--f-mono); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.t-blue { color: var(--blue); }
.t-red { color: var(--red); }
.t-yellow { color: var(--yellow); }
.kicker { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Figures are proof: heavy, tight, no stroke. */
.intro-stat strong, .tile strong, .case-no, .ccard .no, .step .num, .msg-list li span {
  font-family: var(--f-body) !important; font-weight: 800 !important; letter-spacing: -.03em; -webkit-text-stroke: 0 !important;
}

.hl { /* highlighter marker */
  background: linear-gradient(transparent 52%, var(--yellow) 52%, var(--yellow) 92%, transparent 92%);
  padding: 0 .12em; margin: 0 -.06em; color: var(--ink); font-weight: 700;
}
.ul-blue { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: 4px; font-weight: 700; color: var(--ink); }
.ul-red { text-decoration: underline wavy var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble > svg {
  position: absolute; left: -4%; width: 108%; height: .26em; bottom: -.16em;
  color: var(--red); overflow: visible; pointer-events: none;
}
.scribble.is-yellow > svg { color: var(--yellow); }
.scribble.is-blue > svg { color: var(--blue); }

/* ---------- doodles ---------- */
.doodle { position: absolute; pointer-events: none; color: var(--ink); }
.doodle svg { width: 100%; height: 100%; overflow: visible; }
.ic { width: 1em; height: 1em; flex: none; }

/* ---------- labels / stickers ---------- */
.label {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--ink); color: #fff;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 16px 7px 14px; border-radius: 999px;
  rotate: -2deg;
}
.label .ic { color: var(--yellow); width: 14px; height: 14px; }
.label.is-yellow { background: var(--yellow); color: var(--ink); }
.label.is-yellow .ic { color: var(--ink); }
.label.is-white { background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); }
.label.is-red { background: var(--red); }
.label.is-blue { background: var(--blue); }
.label.is-red .ic, .label.is-blue .ic { color: #fff; }

/* colour utilities for small badges */
.bg-blue { background: var(--blue); color: #fff; }
.bg-red { background: var(--red); color: #fff; }
.bg-yellow { background: var(--yellow); color: var(--ink); }
.bg-sky { background: var(--sky); color: var(--ink); }
.bg-pink { background: var(--pink); color: var(--ink); }
.bg-ink { background: var(--ink); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.sticker {
  display: inline-flex; align-items: center; gap: .45em;
  background: #fff; color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: .45em .95em; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: var(--hard-sm); white-space: nowrap;
}
.sticker.is-red { background: var(--red); color: #fff; }
.sticker.is-yellow { background: var(--yellow); }
.sticker.is-blue { background: var(--blue); color: #fff; }
.sticker.is-ink { background: var(--ink); color: #fff; }

.bubble { /* black speech bubble */
  position: relative; display: inline-block;
  background: var(--ink); color: #fff;
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; line-height: 1;
  padding: .7em 1em .65em; border-radius: 26px;
}
.bubble::after {
  content: ""; position: absolute; width: 22px; height: 22px; background: inherit;
  bottom: -9px; right: 26px; clip-path: polygon(0 0, 100% 0, 85% 100%); rotate: 8deg;
}
.bubble.tail-left::after { right: auto; left: 26px; clip-path: polygon(0 0, 100% 0, 15% 100%); rotate: -8deg; }
.bubble.is-white { background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); }

.dot-live { width: 9px; height: 9px; border-radius: 50%; background: #18a957; box-shadow: 0 0 0 0 rgba(24,169,87,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(24,169,87,.55); } 70% { box-shadow: 0 0 0 9px rgba(24,169,87,0); } 100% { box-shadow: 0 0 0 0 rgba(24,169,87,0); } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  background: var(--bg); color: var(--fg);
  border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: 14px 22px; min-height: 48px;
  font-family: var(--f-body); font-size: 13.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: translate .16s var(--ease), box-shadow .16s var(--ease), background-color .16s;
}
.btn .ic { width: 18px; height: 18px; transition: translate .2s var(--ease); }
.btn:hover { translate: -2px -3px; box-shadow: 4px 5px 0 var(--ink); }
.btn:hover .ic-arrow { translate: 3px 0; }
.btn:active { translate: 0 0; box-shadow: 0 0 0 var(--ink); }
.btn-ink { --bg: var(--ink); --fg: #fff; }
.btn-white { --bg: #fff; --fg: var(--ink); }
.btn-yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn-red { --bg: var(--red); --fg: #fff; }
.on-blue .btn:hover, .on-red .btn:hover, .site-footer .btn:hover { box-shadow: 4px 5px 0 var(--ink); }
.btn-sm { padding: 10px 16px; min-height: 40px; font-size: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); text-decoration: none; padding: 6px 0;
}
.link-arrow .ic { width: 18px; height: 18px; transition: translate .2s var(--ease); }
.link-arrow:hover .ic { translate: 4px 0; }
.link-arrow:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.link-under {
  font-weight: 800; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) left 100% / 100% 2.5px no-repeat; padding: 4px 0;
  transition: background-size .25s var(--ease);
}
.link-under:hover { background-size: 40% 2.5px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: var(--bw) solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: translate .16s var(--ease), box-shadow .16s var(--ease), background-color .16s;
}
.icon-btn .ic { width: 19px; height: 19px; }
.icon-btn:hover { translate: -2px -2px; box-shadow: var(--hard-sm); background: var(--yellow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: var(--bw) solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin-right: auto; flex: none; }
.brand > * { flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 23px; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; color: var(--ink); --d-fill: var(--yellow); transition: rotate .4s var(--ease); }
.brand:hover .brand-mark { rotate: 20deg; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; text-decoration: none; color: var(--ink);
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 11px; border-radius: 10px; transition: background-color .15s;
}
.nav a:hover { background: color-mix(in srgb, var(--yellow) 45%, transparent); }
.nav a[aria-current="page"] { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }

.header-cta { padding: 6px 6px 6px 18px; gap: 10px; min-height: 46px; }
.header-cta .smile { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; }
.header-cta .smile svg { width: 22px; height: 22px; }

.nav-toggle {
  display: none; width: 48px; height: 44px; border-radius: 14px; border: var(--bw) solid var(--ink);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .22s var(--ease), opacity .15s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-panel { display: none; }

@media (max-width: 1120px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-panel {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: var(--bw) solid var(--ink);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    visibility: hidden; opacity: 0; translate: 0 -8px; transition: opacity .2s, translate .2s var(--ease), visibility 0s .2s;
  }
  .mobile-panel.is-open { visibility: visible; opacity: 1; translate: 0 0; transition: opacity .2s, translate .2s var(--ease); }
  .mobile-panel a.m-link {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: -.035em; line-height: 1; text-decoration: none;
    padding: 14px 4px; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  }
  .mobile-panel a.m-link[aria-current="page"] { color: var(--blue); }
  .mobile-panel a.m-link[aria-current="page"]::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2.5px var(--ink); }
  .mobile-panel .btn { width: 100%; margin-top: 20px; }
}
@media (min-width: 1121px) { .site-header .container { position: static; } }
.site-header .container { position: relative; }

/* ---------- pages & router ---------- */
/* The inline head script sets data-route before first paint; JS keeps it in sync. */
.js .page { display: none; }
.js[data-route="home"] .page[data-page="home"],
.js[data-route="about"] .page[data-page="about"],
.js[data-route="experience"] .page[data-page="experience"],
.js[data-route="work"] .page[data-page="work"],
.js[data-route="engineering"] .page[data-page="engineering"],
.js[data-route="services"] .page[data-page="services"],
.js[data-route="contact"] .page[data-page="contact"] { display: block; }
.js[data-route="contact"] .cta { display: none; }
h1[tabindex="-1"]:focus { outline: none; }
.page.is-entering { animation: pageIn .45s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

.reveal { opacity: 1; }
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ==========================================================================
   HOME — hero
   ========================================================================== */
.hero { position: relative; padding-top: clamp(28px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 16px; align-items: end; }
.hero-copy { position: relative; padding-bottom: clamp(88px, 9vw, 120px); z-index: 2; }

.hey {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px 4px;
  font-family: var(--f-mono); font-size: 15px; font-weight: 700; line-height: 1; color: var(--blue);
  background: #fff; border: var(--bw) solid var(--blue); border-radius: 999px; padding: 8px 18px 7px; rotate: -6deg;
  position: relative;
}
.hey .wave { width: 24px; height: 24px; transform-origin: 70% 80%; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { rotate: 0deg; } 10%, 30% { rotate: 16deg; } 20%, 40% { rotate: -8deg; } }

/* Sized so the widest rotator word always fits the copy column. */
.hero-title { font-size: clamp(56px, 8.4vw, 112px); line-height: .96; margin: 0; position: relative; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .line-1 { display: flex; align-items: center; gap: .3em; }
.hero-title .role-tag {
  font-family: var(--f-body); -webkit-text-stroke: 0; font-size: 14px; font-weight: 800; letter-spacing: .08em; line-height: 1.15;
  background: var(--ink); color: #fff; border-radius: 18px; padding: 10px 14px; rotate: -7deg; text-align: center;
  position: relative; top: -.1em;
}
.hero-title .role-tag b { color: var(--yellow); font-weight: 800; }
.rotator { display: inline-grid; color: var(--blue); }
.rotator > span { grid-area: 1 / 1; transition: opacity .35s var(--ease), translate .45s var(--ease), rotate .45s var(--ease); }
.js .rotator > span { opacity: 0; translate: 0 .35em; rotate: 3deg; }
.js .rotator > span.is-on { opacity: 1; translate: 0 0; rotate: 0deg; }
.js .rotator > span.is-out { opacity: 0; translate: 0 -.35em; rotate: -3deg; }
.no-js .rotator > span:not(:first-child) { display: none; }

.hero-crown { width: .5em; height: .42em; position: absolute; left: 1.55em; top: -.36em; color: var(--yellow); rotate: 8deg; }
.hero-crown path { stroke: var(--ink); }

.hero-lead { font-size: clamp(17px, 1.55vw, 20px); line-height: 1.55; max-width: 34ch; margin: 26px 0 30px; color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; position: relative; }
.hero-actions .curly { position: relative; width: 76px; height: 40px; color: var(--red); rotate: 180deg; scale: 1 -1; }
.hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: 9px 16px; font-size: 13px; font-weight: 700;
}

.hero-art { position: relative; height: clamp(520px, 50vw, 660px); align-self: end; }
.hero-blob { position: absolute; inset: 7% -2% 0 4%; color: var(--blue); }
.hero-blob svg { width: 100%; height: 100%; }
.hero-splat { position: absolute; width: 150px; height: 150px; right: -36px; top: 34%; color: var(--yellow); rotate: 12deg; --d-stroke: var(--ink); }
.hero-photo {
  position: absolute; bottom: 0; left: 52%; translate: -50% 0; height: 94%; width: auto; max-width: none; z-index: 2;
  filter: drop-shadow(6px 6px 0 rgba(17,17,17,.9));
}
.hero-art .bubble { position: absolute; z-index: 3; font-size: clamp(20px, 2vw, 28px); left: 0; top: 9%; rotate: -6deg; }
.hero-art .bubble em { font-style: normal; color: var(--yellow); }
.hero-stack { position: absolute; z-index: 3; right: -8px; top: 3%; display: grid; gap: 6px; justify-items: end; }
.hero-stack .sticker { font-size: clamp(12px, 1.05vw, 15px); padding: .5em 1em; }
.hero-stack .sticker:nth-child(1) { rotate: -6deg; }
.hero-stack .sticker:nth-child(2) { rotate: 3deg; margin-right: 14px; }
.hero-stack .sticker:nth-child(3) { rotate: -4deg; }
.hero-loc {
  position: absolute; z-index: 3; left: 2%; bottom: 17%; rotate: -3deg;
  display: inline-flex; align-items: center; gap: 10px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 18px;
  padding: 10px 12px 10px 16px; box-shadow: var(--hard-sm); line-height: 1.05;
}
.hero-loc small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.hero-loc strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.hero-loc .globe { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.hero-loc .globe svg { width: 24px; height: 24px; }
.d-bolt-hero { width: 46px; height: 60px; right: 6%; top: 47%; z-index: 3; color: var(--ink); rotate: 10deg; }
.d-burst-hero { width: 46px; height: 46px; left: 26%; top: 3%; z-index: 1; color: var(--ink); }
.d-squiggle-hero { width: 90px; height: 24px; left: -6%; top: 44%; color: var(--red); rotate: -20deg; }
.d-star-hero { width: 34px; height: 34px; right: 30%; top: 0; color: var(--ink); --d-fill: var(--yellow); rotate: 12deg; }
.d-smile-hero { width: 64px; height: 64px; left: -82px; top: 6px; color: var(--ink); --d-fill: var(--red); rotate: -12deg; }
.d-spark-copy { width: 30px; height: 30px; right: 4%; top: 30%; color: var(--blue); }

/* googly eyes */
.eyes { display: inline-flex; gap: 2px; }
.eye { width: 30px; height: 36px; border-radius: 50%; background: #fff; border: var(--bw) solid var(--ink); position: relative; display: grid; place-items: center; }
.eye i { width: 12px; height: 14px; border-radius: 50%; background: var(--ink); display: block; translate: var(--px, 2px) var(--py, 3px); transition: translate .08s linear; }
.hero-eyes { position: absolute; z-index: 3; right: 1%; bottom: 30%; rotate: 8deg; }

/* intro card overlapping hero */
.intro-wrap { position: relative; z-index: 5; margin-top: -54px; }
.intro-card {
  position: relative; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-xl);
  box-shadow: 7px 7px 0 var(--ink);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr) minmax(0, .85fr); gap: clamp(24px, 3vw, 44px);
  padding: clamp(28px, 3.4vw, 44px);
}
.intro-card .bubble { position: absolute; top: -26px; left: clamp(20px, 3vw, 40px); font-size: 15px; rotate: -3deg; color: #fff; max-width: none; }
.intro-card h2 { font-size: clamp(40px, 4.4vw, 60px); margin: 10px 0 14px; display: flex; align-items: center; gap: 14px; }
.intro-card h2 svg.smile { width: 46px; height: 46px; color: var(--ink); --d-fill: var(--yellow); rotate: 10deg; }
.intro-card p { color: var(--muted); max-width: 46ch; }
.intro-stats { display: grid; gap: 18px; align-content: center; padding-left: clamp(0px, 2.4vw, 36px); border-left: 2.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.intro-stat { display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; }
.intro-stat .badge { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: var(--bw) solid var(--ink); }
.intro-stat .badge svg { width: 26px; height: 26px; }
.intro-stat strong { display: block; font-size: 32px; line-height: 1; }
.intro-stat span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.terminal {
  align-self: center; background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: 20px; rotate: 3deg;
  box-shadow: var(--hard); overflow: hidden; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.7;
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: var(--bw) solid var(--ink); background: #fff; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); display: block; }
.terminal-bar i:nth-child(1) { background: var(--red); }
.terminal-bar i:nth-child(2) { background: var(--yellow); }
.terminal-bar i:nth-child(3) { background: var(--sky); }
.terminal-bar span { margin-left: auto; font-family: var(--f-mono); font-size: 12px; }
.terminal pre { margin: 0; padding: 14px 16px 16px; white-space: pre-wrap; font: inherit; }
.terminal .ok { color: #0d6b36; font-weight: 700; }
.terminal .cursor { display: inline-block; width: .55em; height: 1.05em; background: var(--ink); vertical-align: -.15em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(26px, 3vw, 40px); }
.sec-head .left { display: grid; gap: 14px; justify-items: start; }

/* ---------- services cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc {
  --bg: var(--blue); --fg: #fff;
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); color: var(--fg); border-radius: var(--r-lg); border: var(--bw) solid var(--ink);
  padding: 22px 22px 70px; text-decoration: none; min-height: 270px;
  transition: translate .2s var(--ease), box-shadow .2s var(--ease), rotate .2s var(--ease);
}
.svc:hover { translate: -3px -4px; box-shadow: 6px 7px 0 var(--ink); rotate: -.6deg; }
.svc.is-yellow { --bg: var(--yellow); --fg: var(--ink); }
.svc.is-red { --bg: var(--red); --fg: #fff; }
.svc.is-ink { --bg: var(--ink); --fg: #fff; }
.svc .svc-ic {
  width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--ink); border: var(--bw) solid var(--ink);
  display: grid; place-items: center; margin-bottom: 6px; --d-fill: var(--yellow); rotate: -6deg; transition: rotate .3s var(--ease);
}
.svc .svc-ic svg { width: 46px; height: 46px; }
.svc.is-yellow .svc-ic { --d-fill: var(--sky); }
.svc.is-red .svc-ic { --d-fill: var(--yellow); }
.svc.is-ink .svc-ic { --d-fill: var(--pink); }
.svc:hover .svc-ic { rotate: 8deg; }
.svc h3 { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.025em; line-height: 1.05; }
.svc p { font-size: 14px; line-height: 1.55; margin: 0; opacity: .95; }
.svc .go {
  position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); display: grid; place-items: center; transition: rotate .25s var(--ease);
}
.svc .go svg { width: 20px; height: 20px; }
.svc:hover .go { rotate: -45deg; }
.svc .num { position: absolute; left: 22px; bottom: 22px; font-family: var(--f-mono); font-size: 13px; opacity: .85; }

/* ---------- work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.work-card { text-decoration: none; color: var(--ink); display: grid; gap: 14px; }
.cover {
  position: relative; aspect-ratio: 4 / 3.3; border-radius: var(--r-lg); border: var(--bw) solid var(--ink); overflow: hidden;
  display: grid; place-items: center; transition: translate .2s var(--ease), box-shadow .2s var(--ease), rotate .2s var(--ease);
}
.work-card:hover .cover { translate: -3px -4px; box-shadow: 6px 7px 0 var(--ink); rotate: -1deg; }
.work-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-inline: 4px; }
.work-meta strong { display: block; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.work-meta span { display: block; font-size: 13px; color: var(--muted); }
.work-meta .ic { width: 22px; height: 22px; color: var(--red); margin-top: 2px; transition: translate .2s var(--ease); }
.work-card:hover .work-meta .ic { translate: 4px 0; }

.cover-title { font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em; line-height: .9; text-align: center; position: relative; z-index: 2; }
.cover-blue { background: var(--blue); color: #fff; }
.cover-yellow { background: var(--yellow); }
.cover-red { background: var(--red); color: #fff; }
.cover-open { background: repeating-linear-gradient(-45deg, #fff 0 14px, #fff6dc 14px 28px); border-style: dashed; }
.cover-shot { background: #fff; }
.cover-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.cover .doodle { z-index: 1; }
.cover .sticker { position: absolute; z-index: 3; }

.mini-dash { position: absolute; z-index: 1; right: 9%; bottom: 10%; width: 44%; background: #fff; border: var(--bw) solid var(--ink); border-radius: 12px; padding: 8px 9px; rotate: 5deg; display: grid; gap: 6px; }
.mini-dash .bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.mini-dash .bars i { flex: 1; border: 2px solid var(--ink); border-radius: 4px 4px 0 0; background: var(--yellow); display: block; }
.mini-dash .bars i:nth-child(2n) { background: var(--red); }
.mini-dash .row { height: 6px; border-radius: 4px; background: var(--line); }
.mini-dash .row.short { width: 60%; }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; position: relative; }
.step { position: relative; text-align: center; display: grid; justify-items: center; align-content: start; gap: 10px; padding-inline: 6px; }
.step-top { display: flex; align-items: center; gap: 10px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; border: var(--bw) solid var(--ink); display: grid; place-items: center;
  font-family: var(--f-display); font-size: 22px; line-height: 1; color: #fff; background: var(--blue);
}
.step:nth-child(2) .num { background: var(--yellow); color: var(--ink); }
.step:nth-child(3) .num { background: var(--red); }
.step:nth-child(4) .num { background: var(--ink); }
.step .step-ic { width: 60px; height: 60px; }
.step h3 { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.step p { font-size: 14px; color: var(--muted); margin: 0; max-width: 26ch; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 18px; right: -34px; width: 40px; height: 22px;
  background: currentColor; color: var(--ink);
  -webkit-mask: var(--arrow-mask) center / contain no-repeat; mask: var(--arrow-mask) center / contain no-repeat;
}
:root { --arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 26' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 15c14-5 30-6 50-2M43 4l11 9-12 9'/%3E%3C/svg%3E"); }

.sticky-note {
  position: relative; background: var(--sky); border: var(--bw) solid var(--ink); padding: 20px 22px 18px; max-width: 250px;
  font-family: var(--f-mono); font-size: 14px; font-weight: 500; line-height: 1.45; rotate: -4deg; box-shadow: var(--hard-sm); border-radius: 4px 4px 18px 4px;
}
.sticky-note::before { /* tape */
  content: ""; position: absolute; top: -14px; left: 50%; translate: -50% 0; rotate: 4deg; width: 84px; height: 26px;
  background: color-mix(in srgb, #fff 70%, transparent); border: 2px solid color-mix(in srgb, var(--ink) 30%, transparent);
}
.sticky-note.is-yellow { background: var(--yellow); }
.sticky-note.is-pink { background: var(--pink); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; background: var(--red); color: #fff; border-top: var(--bw) solid var(--ink);
  padding-block: clamp(56px, 7vw, 88px); overflow: hidden;
}
.cta::before { /* wavy top edge */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 18px; background: var(--paper);
  -webkit-mask: radial-gradient(14px at 50% 0, #000 98%, transparent) 0 0 / 40px 18px repeat-x;
  mask: radial-gradient(14px at 50% 0, #000 98%, transparent) 0 0 / 40px 18px repeat-x;
}
.cta-grid { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.cta-art { width: clamp(90px, 10vw, 140px); color: #fff; rotate: -10deg; }
.cta h2 { font-size: clamp(38px, 5vw, 70px); line-height: .95; }
.cta h2 .t-yellow { color: var(--yellow); }
.cta .bubble { font-size: 16px; margin-bottom: 16px; rotate: -4deg; }
.cta .side { display: grid; gap: 16px; justify-items: start; }
.cta .side p { margin: 0; font-size: 16px; line-height: 1.55; }
.cta .mailline { font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cta .mailline a { color: #fff; font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2.5px; text-underline-offset: 4px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 2px solid currentColor; border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: inherit;
  transition: background-color .15s, color .15s;
}
.copy-btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.copy-btn .ic { width: 14px; height: 14px; }
.cta .d-star-cta { width: 54px; height: 54px; right: 3%; top: 16%; color: var(--ink); --d-fill: var(--yellow); rotate: 14deg; }
.cta .d-spiral-cta { width: 56px; height: 56px; left: 3%; bottom: 12%; color: color-mix(in srgb, #fff 55%, transparent); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-top: clamp(48px, 6vw, 72px); position: relative; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .8fr)) minmax(0, 1fr); gap: 32px; }
.site-footer .brand { color: #fff; margin: 0 0 14px; }
.site-footer .brand-mark { color: var(--yellow); }
.site-footer p { color: color-mix(in srgb, #fff 72%, transparent); font-size: 14.5px; max-width: 34ch; }
.site-footer h3 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.foot-links { display: grid; gap: 8px; }
.foot-links a { text-decoration: none; color: color-mix(in srgb, #fff 82%, transparent); font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.foot-links a:hover { color: var(--yellow); }
.foot-links .ic { width: 16px; height: 16px; }
.site-footer .foot-sticker {
  background: #fff; color: var(--ink); max-width: none; border-radius: 22px; padding: 16px 18px; rotate: 3deg; justify-self: start; align-self: start;
  font-family: var(--f-display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; line-height: 1.1; text-align: center; position: relative;
  border: var(--bw) solid #fff; box-shadow: 4px 4px 0 var(--yellow);
}
.foot-sticker .heart { width: 22px; height: 22px; color: var(--red); --d-fill: var(--red); display: inline-block; vertical-align: -3px; }
.foot-eyes { margin-top: 18px; }
.foot-eyes .eye { width: 40px; height: 46px; border-color: #fff; }
.foot-eyes .eye i { width: 16px; height: 18px; }
.foot-bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-block: 20px 26px; border-top: 1.5px solid color-mix(in srgb, #fff 18%, transparent);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: color-mix(in srgb, #fff 60%, transparent);
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; translate: -50% 140%; opacity: 0;
  background: var(--ink); color: #fff; border: var(--bw) solid var(--ink); border-radius: 999px; padding: 12px 20px;
  font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 10px; box-shadow: 4px 4px 0 var(--yellow);
  transition: translate .3s var(--ease), opacity .3s;
}
.toast.is-on { translate: -50% 0; opacity: 1; }
.toast .ic { width: 18px; height: 18px; color: var(--yellow); }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(36px, 5vw, 64px); position: relative; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.page-hero h1 { margin: 18px 0 0; max-width: 16ch; }
.page-hero .lead { margin: 0; }
.page-hero .d-a { width: 40px; height: 40px; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-copy h1 { margin: 18px 0 28px; font-size: clamp(36px, 4.6vw, 62px); max-width: 18ch; }
.about-copy p { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 60ch; }
.about-copy p:first-of-type { color: var(--ink); font-size: 19px; font-weight: 500; }
.about-side { display: grid; gap: 34px; justify-items: center; position: relative; }
.polaroid {
  background: #fff; border: var(--bw) solid var(--ink); padding: 14px 14px 18px; border-radius: 8px; rotate: 3deg; box-shadow: var(--hard);
  width: min(100%, 340px); position: relative;
}
.polaroid::before {
  content: ""; position: absolute; top: -16px; left: 50%; translate: -50% 0; rotate: -5deg; width: 110px; height: 30px; z-index: 2;
  background: color-mix(in srgb, var(--yellow) 75%, transparent); border: 2px solid color-mix(in srgb, var(--ink) 35%, transparent);
}
.polaroid-photo { position: relative; aspect-ratio: 4 / 5; background: var(--blue); border: 2px solid var(--ink); overflow: hidden; border-radius: 4px; }
.polaroid-photo img { position: absolute; top: 5%; left: 50%; translate: -50% 0; width: 96%; height: auto; max-width: none; }
.polaroid-photo .doodle { z-index: 2; }
.polaroid figcaption { font-family: var(--f-mono); font-size: 13px; text-align: center; margin-top: 12px; line-height: 1.15; }

.notepad {
  position: relative; width: 100%; background: #fff; border: var(--bw) solid var(--ink); border-radius: 18px; padding: 30px 24px 18px; rotate: -1.2deg;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px; box-shadow: var(--hard);
}
.notepad .clip { position: absolute; top: -22px; left: 50%; translate: -50% 0; width: 44px; height: 44px; color: var(--ink); }
.notepad h2 { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.025em; margin-bottom: 12px; }
.facts { display: grid; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); background: #fff; }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 14px; font-weight: 700; text-align: right; display: inline-flex; align-items: center; gap: 8px; }

.color-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ccard {
  --bg: #fff; --fg: var(--ink);
  background: var(--bg); color: var(--fg); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); padding: 24px 22px 26px;
  display: grid; align-content: start; gap: 10px; position: relative;
}
.ccard.is-blue { --bg: var(--blue); --fg: #fff; }
.ccard.is-yellow { --bg: var(--yellow); }
.ccard.is-red { --bg: var(--red); --fg: #fff; }
.ccard.is-sky { --bg: var(--sky); }
.ccard.is-pink { --bg: var(--pink); }
.ccard .no { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); display: grid; place-items: center; font-family: var(--f-display); font-size: 19px; }
.ccard h3 { font-size: 19px; font-weight: 800; line-height: 1.2; }
.ccard .kicker { opacity: .9; }
.case .color-cards + .tags { margin-top: 26px; }
/* Real screenshot of shipped work */
.shot { margin: 0 0 26px; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--hard); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 0; }
.shot figcaption { font-family: var(--f-mono); font-size: 12.5px; padding: 10px 16px; border-top: var(--bw) solid var(--ink); }
.shot figcaption a { font-weight: 700; }

/* ---------- client projects ---------- */
.client-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: clamp(40px, 5vw, 64px) 0 20px; padding-top: 22px; border-top: var(--bw) dashed var(--ink); }
.client-title { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.client-note { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.work-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-grid.is-3 .cover-shot img { object-position: 0 0; }
.cover-phones { background: #e7f4e4; }
.cover-phones img { position: absolute; width: 36%; height: auto; border: var(--bw) solid var(--ink); border-radius: 16px; box-shadow: var(--hard-sm); }
.cover-phones img:nth-of-type(1) { left: 16%; top: 16%; rotate: -6deg; }
.cover-phones img:nth-of-type(2) { right: 14%; top: 24%; rotate: 5deg; }

.gallery { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 18px; margin-bottom: 26px; }
.gallery .shot { margin: 0; }
.gallery .shot img { aspect-ratio: 16 / 10; object-position: 0 0; }
.gallery .shot.is-main { grid-row: span 2; display: grid; grid-template-rows: 1fr auto; }
.gallery .shot.is-main img { height: 100%; aspect-ratio: auto; }
.gallery.is-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 880px; }
.phone { margin: 0; display: grid; gap: 10px; justify-items: center; }
.phone img { width: 100%; height: auto; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--hard); background: #fff; }
.phone figcaption { font-family: var(--f-mono); font-size: 12.5px; }
.color-cards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- platform visits ---------- */
.visits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.visit { display: grid; grid-template-rows: auto 1fr; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--hard); }
.visit-photos { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--bw); background: var(--ink); aspect-ratio: 5 / 4; border-bottom: var(--bw) solid var(--ink); }
.visit-photos img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.visit-photos .is-main { grid-row: span 2; object-position: 50% 30%; }
.visit-photos.is-pair { grid-template-columns: 1fr 1fr; }
.visit-photos.is-pair img { grid-row: span 2; }
.visit-body { display: grid; gap: 10px; align-content: start; padding: clamp(18px, 2vw, 26px); }
.visit-body .kicker { color: var(--red); }
.visit-body h3 { font-family: var(--f-display); font-size: clamp(22px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; }
.visit-body p { color: var(--muted); line-height: 1.6; }
.visit-body .link-arrow { justify-self: start; margin-top: 4px; }
.arch-caption { font-size: 14px; color: var(--muted); margin-top: 20px; background: #fff; }
.split + .tags { margin-top: 28px; }
.ccard p { font-size: 14.5px; line-height: 1.6; margin: 0; opacity: .95; }

.timeline { display: grid; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 104.5px; top: 30px; bottom: 30px; border-left: 3px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.t-row { display: grid; grid-template-columns: 74px 28px 1fr; gap: 18px; align-items: start; padding: 16px 0; position: relative; }
.t-year { font-family: var(--f-mono); font-size: 14px; font-weight: 700; line-height: 1.35; text-align: right; padding-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-year small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.t-dot { width: 28px; height: 28px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--yellow); position: relative; z-index: 1; }
.t-row:nth-child(2) .t-dot { background: var(--red); }
.t-row:nth-child(3) .t-dot { background: var(--sky); }
.t-row:nth-child(4) .t-dot { background: #fff; }
.t-row.is-now .t-dot { background: var(--blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 25%, transparent); }
.t-body { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.t-logo { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; object-fit: cover; }
.t-body h3 { font-size: 19px; font-weight: 800; padding-top: 2px; }
.t-body p { margin: 4px 0 0; color: var(--muted); font-size: 15px; grid-column: 2; }

/* Experience */
.roles { display: grid; gap: 28px; }
.role {
  background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-xl); box-shadow: var(--hard);
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding: clamp(24px, 3vw, 40px); position: relative;
}
.role.is-current { background: var(--blue); color: #fff; }
.role.is-current .muted, .role.is-current .role-desc { color: color-mix(in srgb, #fff 86%, transparent); }
.role-when { display: grid; gap: 10px; align-content: start; justify-items: start; }
.role-logo { width: 64px; height: 64px; border-radius: 16px; border: var(--bw) solid var(--ink); background: #fff; box-shadow: var(--hard-sm); object-fit: cover; }
.role-when .sticker { rotate: -4deg; }
.role-when small { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.role h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1; }
.role-co { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 8px 0 18px; }
.role-co a, .role-co strong { font-weight: 800; font-size: 16px; color: inherit; }
.role-co a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.role:not(.is-current) .role-co a { text-decoration-color: var(--blue); }
.role-co span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.role-desc { color: var(--muted); max-width: 64ch; margin-bottom: 20px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.45; align-items: start; }
.checks .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); color: #fff; display: grid; place-items: center; margin-top: 1px; }
.role.is-current .checks .ck { background: var(--yellow); color: var(--ink); }
.checks .ck svg { width: 13px; height: 13px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; }
.tag.is-hot { background: var(--yellow); }
.tag.is-hot::before { content: "★"; font-size: 11px; }
.role .now-burst { position: absolute; right: -14px; top: -20px; width: 86px; height: 86px; color: var(--yellow); rotate: 12deg; --d-stroke: var(--ink); }
.role .now-burst svg { width: 100%; height: 100%; overflow: visible; }
.role .now-burst span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 18px; color: var(--ink); }

.strip {
  background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: var(--hard);
}
.strip h2 { font-size: clamp(26px, 2.8vw, 38px); max-width: 22ch; }
.strip .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Work / case studies */
.jump { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.jump a { text-decoration: none; }
.case { padding-block: clamp(48px, 6vw, 80px); border-top: var(--bw) solid var(--ink); position: relative; }
.case.is-tint { background: #fff3cf; }
.case-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.case-no { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; border: var(--bw) solid var(--ink); display: grid; place-items: center; font-family: var(--f-display); font-size: 26px; rotate: -8deg; box-shadow: var(--hard-sm); flex: none; }
.case-head h2 { font-size: clamp(36px, 4.6vw, 64px); }
.case-intro { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; max-width: 68ch; margin-bottom: clamp(28px, 3vw, 44px); }
.case-sub { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(32px, 4vw, 52px); }
.tile { border: var(--bw) solid var(--ink); border-radius: 20px; padding: 20px 18px; background: #fff; }
.tile:nth-child(1) { background: var(--blue); color: #fff; }
.tile:nth-child(2) { background: var(--yellow); }
.tile:nth-child(3) { background: var(--red); color: #fff; }
.tile:nth-child(4) { background: var(--sky); }
.tile strong { display: block; font-size: clamp(26px, 2.5vw, 34px); line-height: 1; white-space: nowrap; }
.tile span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-top: 10px; line-height: 1.35; }

.psr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: clamp(32px, 4vw, 52px); }
.psr-card { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); padding: 24px 22px; position: relative; }
.psr-card .label { margin-bottom: 14px; }
.psr-card p { font-size: 15px; line-height: 1.65; color: var(--muted); margin-bottom: 10px; }
.psr-card p:last-of-type { margin-bottom: 0; }

.arch {
  border: var(--bw) solid var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); background-color: #fff;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px; position: relative;
}
.arch-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.arch-head .hand { font-size: 12.5px; color: var(--muted); }
.arch-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px; }
.arch-col { position: relative; display: grid; align-content: start; gap: 10px; }
.arch-col h4 { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; background: #fff; justify-self: start; padding: 2px 6px; border-radius: 6px; }
.arch-col:not(:last-child)::after {
  content: ""; position: absolute; right: -40px; top: 50%; width: 34px; height: 18px; background: var(--ink);
  -webkit-mask: var(--arrow-mask) center / contain no-repeat; mask: var(--arrow-mask) center / contain no-repeat;
}
.node {
  background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 700; line-height: 1.3;
  box-shadow: 3px 3px 0 var(--ink); transition: background-color .15s, translate .15s var(--ease);
}
.node small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.node:hover { background: var(--sky); translate: -1px -1px; }
.node.is-hot { background: var(--yellow); }
.node.is-ghost { border-style: dashed; box-shadow: none; background: transparent; }
.arch-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; padding-top: 22px; border-top: 2.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.arch-notes h4 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.arch-notes p { font-size: 14px; color: var(--muted); margin: 0; }

.impact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.impact > div { border: var(--bw) solid var(--ink); border-radius: 20px; padding: 22px 20px; background: #fff; }
.impact > div:first-child { background: var(--red); color: #fff; }
.impact .kicker { display: block; margin-bottom: 10px; color: var(--blue); }
.impact > div:first-child .kicker { color: var(--yellow); }
.impact > div:first-child p { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.impact p { margin: 0; font-size: 14.5px; line-height: 1.6; }

.stack-vert { display: grid; gap: 0; justify-items: stretch; }
.stack-vert .down { justify-self: center; width: 22px; height: 30px; color: var(--ink); }
.mono-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.mono-grid span { border: 2px dashed var(--ink); border-radius: 8px; padding: 6px 8px; font-size: 12px; font-weight: 600; background: #fff; }

.feature-list { display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: 58px 1fr; gap: 16px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 20px; padding: 18px; }
.feature .f-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; border: var(--bw) solid var(--ink); }
.feature .f-ic svg { width: 34px; height: 34px; }
.feature h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }

/* Engineering */
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stack-card { border: var(--bw) solid var(--ink); border-radius: var(--r-lg); padding: 22px; background: #fff; display: grid; gap: 14px; align-content: start; }
.stack-card:nth-child(1) { background: var(--blue); color: #fff; }
.stack-card:nth-child(2) { background: var(--yellow); }
.stack-card:nth-child(3) { background: #fff; }
.stack-card:nth-child(4) { background: var(--red); color: #fff; }
.stack-card:nth-child(5) { background: var(--sky); }
.stack-card:nth-child(6) { background: var(--pink); }
.stack-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.025em; line-height: 1; display: flex; align-items: center; gap: 10px; }
.stack-card h3 svg { width: 30px; height: 30px; }
.stack-card .tags { margin-top: 0; }

/* Services page */
.svc-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-big .svc { min-height: 0; padding-bottom: 26px; gap: 12px; }
.svc-big .svc:hover { rotate: 0deg; }
.svc-big .svc h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1; }
.svc-big .svc p { font-size: 15px; }
.svc-big .checks { grid-template-columns: 1fr; margin-top: 8px; padding-top: 16px; border-top: 2.5px dashed color-mix(in srgb, currentColor 40%, transparent); }
.svc-big .checks .ck { background: #fff; color: var(--ink); }
.svc-big .svc.is-yellow .checks .ck { background: var(--ink); color: var(--yellow); }
.svc-big .svc-no { font-family: var(--f-mono); font-size: 13px; font-weight: 700; }
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(32px, 4vw, 48px); }
.sec-head + .facts-row { margin-top: 0; }
.fact-sticker { background: #fff; border: var(--bw) solid var(--ink); border-radius: 20px; padding: 18px 20px; box-shadow: var(--hard-sm); }
.fact-sticker:nth-child(1) { rotate: -1.2deg; }
.fact-sticker:nth-child(2) { rotate: 1deg; }
.fact-sticker:nth-child(3) { rotate: -.6deg; }
.fact-sticker small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fact-sticker strong { font-size: 16px; font-weight: 700; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-rows { display: grid; gap: 14px; margin-top: 30px; }
.c-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; text-decoration: none; color: var(--ink);
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; padding: 14px 18px 14px 14px;
  transition: translate .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.c-row:hover { translate: -2px -3px; box-shadow: var(--hard); }
.c-row .c-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; border: var(--bw) solid var(--ink); color: #fff; }
.c-row .c-ic svg { width: 26px; height: 26px; }
.c-row small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.c-row strong { display: block; font-size: clamp(16px, 1.8vw, 22px); font-weight: 800; letter-spacing: -.01em; word-break: break-word; }
.c-row .go { width: 22px; height: 22px; color: var(--ink); transition: translate .2s var(--ease); }
.c-row:hover .go { translate: 4px 0; }
.c-row-wrap { position: relative; }
.c-row-wrap .copy-btn { position: absolute; right: 56px; top: 50%; translate: 0 -50%; background: #fff; color: var(--ink); }
.c-row-wrap .copy-btn:hover { background: var(--yellow); }
.msg-list { display: grid; gap: 0; counter-reset: m; }
.msg-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); font-size: 15px; font-weight: 600; background: #fff; }
.msg-list li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); font-family: var(--f-display); font-size: 15px; background: var(--yellow); }
.msg-list li:nth-child(2) span { background: var(--sky); }
.msg-list li:nth-child(3) span { background: var(--pink); }
.msg-list li:nth-child(4) span { background: #fff; }
.notepad .facts { margin-top: 14px; }
.notepad .btn { width: 100%; margin-top: 20px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1360px) {
  .d-smile-hero { display: none; }
}
@media (max-width: 1180px) {
  .hero-art .bubble { left: -2%; }
}
@media (max-width: 1080px) {
  .svc-grid, .work-grid, .color-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .intro-card { grid-template-columns: 1fr 1fr; }
  .intro-card .intro-main { grid-column: 1 / -1; }
  .intro-stats { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .arch-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .arch-col:nth-child(3)::after { display: none; }
  .tiles, .impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-grid { grid-template-columns: auto 1fr; }
  .cta .side { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .work-grid.is-3, .color-cards.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .shot.is-main { grid-column: 1 / -1; grid-row: auto; display: block; }
  .gallery .shot.is-main img { height: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 36px; }
  .hero-art { height: clamp(440px, 110vw, 560px); max-width: 520px; width: 100%; margin-inline: auto; }
  .intro-wrap { margin-top: -34px; }
  .page-hero-grid, .about-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; }
  .role-when { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .role-logo { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; }
  .psr, .arch-notes, .svc-big, .facts-row { grid-template-columns: 1fr; }
  .about-side { grid-template-columns: 1fr 1fr; align-items: start; gap: 28px; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .brand-name { font-size: 21px; }
  .hero-title { font-size: clamp(44px, 14vw, 76px); }
  .hero-title .line-1 { flex-wrap: wrap; }
  .hero-title .role-tag { font-size: 11px; padding: 8px 11px; border-radius: 14px; }
  .hey { font-size: 21px; }
  .hero-actions .curly { display: none; }
  .hero-stack .sticker { font-size: 11px; }
  .hero-loc strong { font-size: 16px; }
  .hero-loc .globe { width: 32px; height: 32px; }
  .hero-splat { width: 110px; height: 110px; right: -40px; }
  .hero-eyes .eye { width: 24px; height: 29px; }
  .hero-eyes .eye i { width: 10px; height: 11px; }
  .intro-card { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--ink); }
  .terminal { rotate: 1.5deg; }
  .svc-grid, .work-grid, .color-cards, .tiles, .impact, .stack-grid { grid-template-columns: 1fr; }
  .work-grid.is-3, .color-cards.is-3, .gallery { grid-template-columns: 1fr; }
  .visits { grid-template-columns: 1fr; }
  .gallery.is-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .phone img { border-radius: 14px; box-shadow: var(--hard-sm); }
  .phone figcaption { font-size: 11px; text-align: center; }
  .svc { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .step { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 16px; }
  .step .step-top { grid-row: span 3; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-sticker { grid-column: 1 / -1; }
  .arch-cols { grid-template-columns: 1fr; gap: 34px; }
  .arch-col { grid-template-columns: 1fr 1fr; }
  .arch-col h4 { grid-column: 1 / -1; }
  .node { font-size: 12.5px; padding: 9px 10px; }
  .arch-col::after { right: auto !important; left: 50% !important; top: auto !important; bottom: -30px; rotate: 90deg; translate: -50% 0; display: block !important; }
  .arch-col:last-child::after { display: none !important; }
  .checks { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-art { width: 84px; }
  .about-side { grid-template-columns: 1fr; }
  .c-row { grid-template-columns: 46px 1fr auto; gap: 12px; padding: 12px 14px 12px 12px; }
  .c-row .c-ic { width: 46px; height: 46px; border-radius: 13px; }
  .c-row-wrap .copy-btn { position: static; translate: none; margin-top: 8px; }
  .role .now-burst { width: 70px; height: 70px; right: -6px; top: -26px; }
  .role .now-burst span { font-size: 15px; }
  .timeline::before { left: 80.5px; }
  .t-row { grid-template-columns: 56px 28px 1fr; gap: 12px; }
  .t-year { font-size: 13px; }
  .t-year small { font-size: 11px; }
  .t-body { grid-template-columns: 36px 1fr; column-gap: 10px; }
  .t-logo { width: 36px; height: 36px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
}
