/* ============================================
   Ermiyas Asrat — Shopify Developer Portfolio
   Visual system measured from wetakeflight.co.uk:
   cream canvas (#fcf9ef), ink (#090909), pink accent (#ff00a3),
   blue (#164be4), Poppins display, Inter body, Ultra italic
   accents, monospace labels, pill buttons with arrow discs,
   sticky stacking sections and scroll-linked reveals.
   ============================================ */

/* ---------- SELF-HOSTED FONTS (latin subset; OFL-licensed Google Fonts) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/poppins-800.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/space-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/space-mono-700.woff2") format("woff2"); }
@font-face { font-family: "Ultra"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ultra-400.woff2") format("woff2"); }

:root {
  --cream: #fcf9ef;
  --paper: #ffffff;
  --soft: #f5f4f3;
  --ink: #090909;
  --ink-2: #29292b;
  --grey: #6b6b6e; /* >= 4.5:1 on white and cream */
  --line: #d9d9d9;
  --pink: #ff00a3;
  --pink-aa: #c4007d; /* 5.8:1 with white text */
  --blue: #164be4;
  --blue-deep: #0d2c9a;

  --radius: 24px;
  --border: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-serif: "Ultra", Georgia, serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: normal; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* Scroll progress */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--pink);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  z-index: 100;
}

/* Page transition: native cross-document view transition, no navigation delay */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

/* ---------- SHARED TYPE ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow--blue { color: var(--blue); }

.h-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: 1;
  letter-spacing: -.045em;
}
.h-lg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.h-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.h-xl em, .h-lg em, .h-md em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  color: var(--pink);
}

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 640px;
}
.muted { color: var(--grey); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  padding: 10px 12px 10px 22px;
  background: var(--paper);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: padding .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { padding-top: 6px; padding-bottom: 6px; }

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.04em;
  text-decoration: none;
}
.nav__logo span { color: var(--pink); }
.nav__logo small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-left: 10px;
  opacity: .7;
  vertical-align: 3px;
}
@media (max-width: 420px) { .nav__logo small { display: none; } }

/* Overlay nav: transparent, sits on top of a full-bleed hero (home page only) */
.nav--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 26px var(--gutter);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
}
.nav--overlay .nav__links a { color: #fff; }
.nav--overlay .nav__links a em { color: rgba(255,255,255,.7); }
.nav--overlay .nav__links a:hover { background: rgba(255,255,255,.14); }
.nav--overlay .nav__cta { background: var(--cream) !important; color: var(--ink) !important; }
.nav--overlay .nav__cta i { background: var(--blue); color: #fff; }
.nav--overlay .nav__cta:hover { background: #fff !important; }
.nav--overlay .nav__burger { border-color: #fff; }
.nav--overlay .nav__burger span { background: #fff; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  transition: background .2s ease;
}
.nav__links a em { font-family: var(--font-mono); font-size: 10px; color: var(--grey); }
.nav__links a:hover { background: var(--soft); }
.nav__links a[aria-current="page"] { background: var(--soft); }

.nav__cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding-right: 8px !important;
}
.nav__cta em { color: rgba(255,255,255,.7) !important; }
.nav__cta:hover { background: var(--blue-deep) !important; }
.nav__cta i {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-left: 6px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-style: normal;
  font-size: 13px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px 10px;
  background: none;
  border: var(--border);
  border-radius: 14px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  background: var(--soft);
  border-radius: 999px;
  box-shadow: inset 0 0 4px rgba(0,0,0,.05);
  transition: background .25s ease, color .25s ease, transform .25s var(--ease);
  will-change: transform;
}
.btn__disc {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  transition: transform .35s var(--ease), background .25s ease;
}
button.btn { border: 0; cursor: pointer; font: inherit; }
.btn:hover .btn__disc { transform: translateX(4px) rotate(-12deg); background: var(--pink); }
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink .btn__disc { background: var(--ink); }
.btn--pink:hover { background: var(--ink); }
.btn--pink:hover .btn__disc { background: var(--pink); }
.btn--ghost { background: transparent; border: var(--border); padding: 14px 26px; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light .btn__disc { background: var(--blue); }
.btn--light:hover { background: #fff; }
.btn--sm { font-size: 15px; padding: 6px 6px 6px 18px; gap: 12px; }
.btn--sm .btn__disc { width: 34px; height: 34px; font-size: 15px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 3px solid var(--pink);
  padding-bottom: 2px;
  transition: color .2s ease;
}
.link-arrow:hover { color: var(--pink); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 58%, var(--ink) 130%);
  color: #f9f9f9;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(150px, 16vw, 190px) 0 clamp(72px, 9vw, 110px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(255,0,163,.45), transparent 60%);
  transition: background .2s linear;
}
.hero .eyebrow { color: rgba(249,249,249,.8); }
.hero .btn--ghost { color: #fff; border-color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); }
.hero__title { margin-top: 26px; max-width: 980px; }
.hero__title em { hyphens: manual; white-space: nowrap; }
.hero__sub { margin-top: 28px; max-width: 560px; font-size: 19px; color: rgba(249,249,249,.85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__badge {
  position: absolute;
  top: clamp(40px, 8vw, 100px);
  right: clamp(20px, 6vw, 90px);
  width: 150px; height: 150px;
  will-change: transform;
}
.hero__badge svg { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.hero__badge text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.4px;
  fill: #fff;
}
.hero__badge-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 44px;
  color: var(--pink);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Word split reveal (JS adds .word/.inner) */
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .inner { display: inline-block; transform: translateY(110%); animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
@keyframes rise { to { transform: translateY(0); } }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
  margin-top: clamp(56px, 8vw, 96px);
}
.hero__stats li {
  padding: 22px 20px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -.04em;
  line-height: 1.1;
}
.hero__stats span { font-size: 14px; color: rgba(249,249,249,.8); }

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 22px 0;
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
  border-block: var(--border);
}
.marquee-section { overflow: hidden; }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  white-space: nowrap;
}
.marquee__track i { color: var(--pink); font-style: normal; font-size: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- INTRO ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.intro__title { font-size: clamp(28px, 3.6vw, 46px); }

/* ---------- PORTRAIT ---------- */
.portrait {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    radial-gradient(60% 50% at 70% 35%, rgba(255,0,163,.55), transparent 70%),
    linear-gradient(160deg, var(--blue), var(--blue-deep));
}
.portrait img { display: block; width: 98%; height: auto; flex-shrink: 0; }
.portrait__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border: var(--border);
  border-radius: 99px;
  background: var(--paper);
  font: 600 13px/1.2 var(--font-display);
  box-shadow: var(--shadow-sm);
}
.portrait__tag span { display: block; font: 400 11px/1.4 var(--font-body); color: var(--grey); }
.intro__grid .portrait { margin-top: 28px; }
.case-hero .portrait { justify-self: end; }
@media (max-width: 960px) {
  .portrait { max-width: 320px; }
  .case-hero .portrait { justify-self: start; }
}

/* ---------- STICKY STACK (services) ---------- */
.stack { position: relative; display: grid; gap: 22px; margin-top: 56px; }
.stack-card {
  position: sticky;
  top: calc(120px + var(--i, 0) * 22px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border: var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  color: var(--ink);
  background: var(--paper);
  transform-origin: top center;
}
.stack-card .stack-card__num { font-family: var(--font-serif); font-style: italic; font-size: 26px; color: var(--pink); }
.stack-card h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.05; margin-top: 10px; }
.stack-card p { color: var(--ink-2); }
.stack-card ul { list-style: none; display: grid; gap: 10px; }
.stack-card li { padding-left: 26px; position: relative; }
.stack-card li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.stack-card--blue { background: var(--blue); color: #fff; }
.stack-card--blue p, .stack-card--blue li { color: rgba(255,255,255,.9); }
.stack-card--blue li::before { background: #fff; }
.stack-card--blue .stack-card__num { color: #fff; }
.stack-card--pink { background: var(--pink-aa); color: #fff; }
.stack-card--pink p, .stack-card--pink li { color: #fff; }
.stack-card--pink li::before { background: var(--ink); }
.stack-card--pink .stack-card__num { color: var(--ink); }
.stack-card--ink { background: var(--ink); color: var(--cream); }
.stack-card--ink p, .stack-card--ink li { color: #d9d4c4; }
.stack-card--ink li::before { background: var(--pink); }
.stack-card--ink .stack-card__num { color: var(--pink); }

/* ---------- CARDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease), box-shadow .3s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card h2, .card h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.03em; line-height: 1.15; }
.card p { color: var(--ink-2); font-size: 16px; }
.card__metric {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5vw, 64px);
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--pink);
}
.card__metric--blue { color: var(--blue); }
.card__metric--ink { color: var(--ink); }
.card__domain { font-family: var(--font-mono); font-size: 13px; color: var(--grey); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  padding: 5px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
}

.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.process__step { padding: 32px 26px 36px; border-right: var(--border); transition: background .3s ease; }
.process__step:last-child { border-right: 0; }
.process__step:hover { background: var(--cream); }
.process__step b { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 34px; color: var(--pink); display: block; }
.process__step h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 14px 0 10px; letter-spacing: -.02em; }
.process__step p { font-size: 15px; color: var(--ink-2); }

/* ---------- STATS STRIP ---------- */
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.big-stats div { padding: 34px 30px; border: var(--border); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.big-stats strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 6vw, 84px); letter-spacing: -.05em; line-height: 1; color: var(--blue); }
.big-stats span { display: block; margin-top: 10px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: 14px; margin-top: 44px; }
.faq__item {
  background: var(--paper);
  border: var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 28px;
  font-weight: 500;
  color: var(--pink);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__num { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 20px; color: var(--blue); min-width: 32px; }
.faq__item p { padding: 0 26px 24px 76px; color: var(--ink-2); }

/* ---------- CTA BLOCK ---------- */
.cta {
  margin: 0 14px 14px;
  padding: clamp(80px, 12vw, 130px) var(--gutter);
  text-align: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: clamp(28px, 4vw, 44px);
  border: var(--border);
}
.cta .h-xl { font-size: clamp(48px, 9vw, 120px); }
.cta p { color: #c9c4b4; max-width: 520px; margin: 26px auto 0; font-size: 18px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-head { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 72px); }
.page-head .lead { margin-top: 26px; }
.crumbs { font-family: var(--font-mono); font-size: 13px; color: var(--grey); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--pink); }

/* ---------- CASE STUDY ---------- */
.case-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.big-metric { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 10vw, 150px); letter-spacing: -.06em; line-height: .9; color: var(--pink); }
.big-metric small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 18px; letter-spacing: 0; color: var(--ink-2); margin-top: 16px; }
.check-list { list-style: none; margin-top: 18px; }
.check-list li { padding: 14px 0 14px 34px; border-bottom: 1.5px solid var(--line); position: relative; }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; }
.case-block--ink .check-list li { border-color: rgba(255,255,255,.18); color: #d9d4c4; }
.case-block { padding: 40px; background: var(--paper); border: var(--border); border-radius: 30px; box-shadow: var(--shadow-sm); }
.case-block--ink { background: var(--ink); color: var(--cream); }
.case-block--ink p { color: #d9d4c4; }
.case-block--ink .big-metric { color: var(--pink); }
.case-block h2, .case-block h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.case-block p + p { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.facts div { padding: 22px; border: var(--border); border-radius: 20px; background: var(--cream); }
.facts strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.04em; line-height: 1.1; color: var(--blue); }
.facts span { font-size: 14px; color: var(--ink-2); }

/* ---------- ABOUT ---------- */
.timeline { display: grid; gap: 0; border-left: var(--border); margin-left: 8px; }
.timeline__item { position: relative; padding: 0 0 36px 36px; }
.timeline__item::before { content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--pink); border: var(--border); }
.timeline__item h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.timeline__meta { font-family: var(--font-mono); font-size: 13px; color: var(--grey); margin: 4px 0 12px; }
.timeline__item ul { list-style: none; display: grid; gap: 10px; color: var(--ink-2); }
.timeline__item li { padding-left: 22px; position: relative; }
.timeline__item li::before { content: "→"; position: absolute; left: 0; color: var(--pink); }

/* ---------- CONTACT FORM ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; gap: 16px; padding: 34px; background: var(--paper); border: var(--border); border-radius: 30px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.form input, .form textarea, .form select {
  font: inherit;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 18px;
  border: var(--border);
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
  transition: box-shadow .2s ease, background .2s ease;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; box-shadow: 4px 4px 0 var(--blue); background: #fff; }
.form .btn { justify-self: start; }
.form__note { font-size: 14px; color: var(--grey); }
.contact-list { display: grid; gap: 14px; margin-top: 32px; }
.contact-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border: var(--border); border-radius: 22px; background: var(--paper); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; transition: background .25s ease, transform .25s var(--ease); }
.contact-list a:hover { background: var(--pink); color: #fff; transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.contact-list small { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--grey); }
.contact-list a:hover small { color: rgba(255,255,255,.85); }

/* ---------- FOOTER ---------- */
.footer { margin: 0 14px; padding: 56px var(--gutter) 40px; background: var(--cream); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 7vw, 96px); letter-spacing: -.05em; line-height: .95; }
.footer__big span { color: var(--pink); }
.footer nav { display: grid; gap: 10px; font-family: var(--font-display); font-weight: 600; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--pink); }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--ink-2); }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: var(--paper);
    border: var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 16px; font-size: 17px; }
  .hero__badge { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .intro__grid, .contact, .case-hero { grid-template-columns: 1fr; }
  .stack-card { grid-template-columns: 1fr; position: relative; top: auto; }
  .grid-3, .process { grid-template-columns: 1fr; }
  .process__step { border-right: 0; border-bottom: var(--border); }
  .process__step:last-child { border-bottom: 0; }
  .big-stats { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav--overlay .nav__links.is-open { background: var(--paper); color: var(--ink); border: var(--border); box-shadow: var(--shadow); }
  .nav--overlay .nav__links.is-open a { color: var(--ink); }
  .nav--overlay .nav__links.is-open a em { color: var(--grey); }
  .nav--overlay .nav__links.is-open .nav__cta { color: var(--ink) !important; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__stats li { padding: 16px; }
  .faq__item p { padding-left: 26px; }
  .faq__item summary { font-size: 16px; gap: 12px; }
  .cta, .footer { margin-left: 8px; margin-right: 8px; }
  .form { padding: 22px; }
  .case-block { padding: 26px; }
  .btn { font-size: 16px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
  .marquee__track { flex-wrap: wrap; width: 100%; justify-content: center; }
  .split .inner { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .stack-card { position: relative; top: auto; }
}

/* ---------- FOOTER NAVS ---------- */
.footer__navs { display: flex; gap: clamp(32px, 6vw, 72px); flex-wrap: wrap; }

/* ---------- LONG-FORM (blog posts, service intros) ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 22px; padding-left: 22px; display: grid; gap: 10px; }
.prose li::marker { color: var(--pink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--pink-aa); }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.post-meta { margin-top: 22px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.lead a { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq__item p a { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; }

/* ---------- SMALL-SCREEN OVERFLOW GUARDS ---------- */
.h-xl, .h-lg { hyphens: auto; overflow-wrap: break-word; }
.contact > * { min-width: 0; }
.contact-list a { overflow-wrap: anywhere; }
