/* =========================================================
   Ahmed Hazem — site styles
   Values measured from the Framer design (Desktop = 1440).
   ========================================================= */

@font-face { font-family: "NHG"; src: url(../assets/fonts/NHGDisplay-45-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "NHG"; src: url(../assets/fonts/NHGDisplay-46-Light-Italic.woff2) format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "NHG"; src: url(../assets/fonts/NHGDisplay-55-Roman.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NHG"; src: url(../assets/fonts/NHGDisplay-56-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "NHG"; src: url(../assets/fonts/NHGDisplay-65-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "NHG"; src: url(../assets/fonts/NHGDisplay-75-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mono"; src: url(../assets/fonts/NewScienceMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mono"; src: url(../assets/fonts/NewScienceMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mono"; src: url(../assets/fonts/NewScienceMono-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Framer colour styles */
  --red: #e63f2e;
  --dark-redd: #c03426;
  --dark-red: #4d2111;
  --light-grey: #d9dae6;
  --dark-grey: #a9aab3;
  --darker-grey: #6e6e6e;
  --line: rgba(187, 187, 187, 0.2);
  --black: #000;
  --white: #fff;

  --pad: 60px;        /* side padding at desktop */
  --content: 1440px;  /* max content width */
  --gap: 130px;       /* two-column gap */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "NHG", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, blockquote, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono { font-family: "Mono", ui-monospace, monospace; }

.wrap { width: min(var(--content), 100% - 40px); margin-inline: auto; }

/* ---------- shared bits ---------- */
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 14px; letter-spacing: 0; line-height: 1;
  color: var(--red); border: 1px solid var(--red); border-radius: 2px;
  padding: 10.5px 9px; transition: background .25s, color .25s;
}
.btn-outline:hover { background: var(--red); color: var(--white); }

.tag-mono { font-family: "Mono", monospace; font-weight: 600; font-size: 10px; line-height: 1; color: var(--dark-grey); }

.copy-mark { font-weight: 500; font-size: 14px; line-height: 1.2; }
.subhead { font-weight: 500; font-size: 15px; line-height: 1.2; letter-spacing: 0.01em; max-width: 430px; }
.icon { flex: none; }
.icon--peace { width: 34px; height: 40px; }
.icon--chat { width: 47px; height: 40px; }
.icon--mail { width: 46px; height: 46px; }
.arrow { font-style: normal; display: inline-block; transition: transform .25s; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: #fff;
  transition: transform .5s cubic-bezier(.22,.8,.2,1), background .3s, color .3s, box-shadow .3s;
  height: 80px; padding: 15px 45px;   /* Framer: 15 outer + 30 inner */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav__links { display: flex; gap: 50px; font-size: 16px; line-height: 19px; }
.nav__links a { transition: color .25s; }
.nav__links a:hover { color: var(--dark-redd); }
.nav__logo { display: block; }
.nav__logo img { display: block; width: 56px; height: 50px; }
.nav__cta { justify-self: end; display: flex; align-items: center; gap: 40px; }
.nav__hello { font-family: "Mono", monospace; font-size: 12px; line-height: 14px; color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.nav__burger { display: none; justify-self: end; width: 24px; height: 18px; position: relative; }
.nav__burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: #000; transition: transform .3s, opacity .3s; }
.nav__burger span:nth-child(1) { top: 2px; } .nav__burger span:nth-child(2) { top: 8px; } .nav__burger span:nth-child(3) { top: 14px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer { display: none; }

/* ---------- hero (scroll-driven, desktop) ---------- */
.hero { height: 2655px; position: relative; --p: 0; --fade: 1; }
.hero__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; opacity: var(--fade); }
.hero__inner { width: min(1000px, 100% - 2 * var(--pad)); }
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; transform: translateX(calc((1 - var(--p)) * 8.8%)); }
.hero__title { font-weight: 500; font-size: 62px; line-height: 1.08; max-width: 620px; letter-spacing: -0.005em; }
.hero__log { font-size: 11px; line-height: 1.25; color: var(--dark-grey); text-align: right; white-space: nowrap; letter-spacing: 0.02em; }
.hero__middle { height: calc(78px + var(--p) * 228px); display: flex; align-items: center; justify-content: center; }
.hero__mark { position: relative; width: 176px; height: 176px; opacity: var(--p); transform: scale(calc(.55 + .45 * var(--p))); }
.sig { position: absolute; pointer-events: none; z-index: 2; }   /* both signatures sit above the chrome mark */
.sig--a { width: 210px; left: -139px; top: -33px; }
.sig--h { width: 199px; left: 114px; top: 131px; z-index: 2; }
.liquid-chrome { position: absolute; inset: 0; z-index: 1; }   /* Liquid Chrome embed (assets/chrome) */
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; transform: translateX(calc((var(--p) - 1) * 34.5%)); }
.hero__intro { max-width: 562px; font-size: 20px; line-height: 1.14; text-align: justify; color: var(--darker-grey); }
.hero__intro p + p { margin-top: 22px; }

/* char reveal */
.reveal .ch { color: var(--base); transition: color .15s linear; }
.reveal .ch.on { color: var(--to); }

/* ---------- work ---------- */
.work { padding-bottom: 0; }
.divider, .work__labels { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 0 20px 10px; border-bottom: 1px solid var(--line); }
.lbl { font-size: 14px; line-height: 1.2; text-transform: uppercase; }
.divider { width: min(var(--content), 100% - 40px); margin: 200px auto 0; }
.lbl:nth-child(2) { padding-left: 46px; } .lbl:nth-child(3) { text-align: right; }
.lbl--muted { color: var(--light-grey); }
.ticker { width: min(var(--content), 100% - 40px); margin: 0 auto; overflow: hidden; border-bottom: 1px solid var(--line); padding: 12px 0 2px; }
.ticker__track { display: flex; width: max-content; animation: tick 28s linear infinite; }
.ticker__track span { font-weight: 500; font-size: 212px; line-height: .96; letter-spacing: -0.045em; color: var(--red); padding-right: .25em; white-space: nowrap; }
@keyframes tick { to { transform: translateX(-50%); } }

.strips { width: min(1760px, 100% - 40px); margin: 8px auto 0; display: flex; gap: 8px; height: clamp(480px, 75vh, 935px); }
.strip { position: relative; flex: 1 1 0; min-width: 0; border-radius: 6px; overflow: hidden; transition: flex-grow .6s cubic-bezier(.22,.8,.2,1); background: #ddd; }
.strip.is-open { flex-grow: 10.1; }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.strip__info { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; opacity: 0; transition: opacity .35s; background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)); pointer-events: none; }
.strip.is-open .strip__info { opacity: 1; transition-delay: .2s; }
.strip__view { font-weight: 500; font-size: 15px; color: rgba(255,255,255,.6); }
.strip__name { font-weight: 500; font-size: 30px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.strip__meta { margin-top: 10px; display: flex; justify-content: space-between; font-weight: 500; font-size: 14px; color: rgba(255,255,255,.7); text-transform: uppercase; white-space: nowrap; }
.cards { display: none; }

/* ---------- cursor badge ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; }
.cursor span { position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 500; font-size: 14px; letter-spacing: .01em; transform: scale(0); transition: transform .35s cubic-bezier(.22,.8,.2,1), background .25s; }
.cursor.on span { transform: scale(1); }
.cursor.is-soon span { background: rgba(11,11,11,.85); backdrop-filter: blur(6px); }
@media (hover: hover) and (pointer: fine) { .strip { cursor: none; } }
div.strip { cursor: default; }
@media (hover: hover) and (pointer: fine) { div.strip { cursor: none; } }

/* ---------- red bleed: contact flows into the footer ---------- */
.bleed { background: var(--red); color: #fff; margin-top: 200px; padding-top: 26px; }
.bleed .divider { margin-top: 0; }
.divider--red { border-bottom-color: rgba(255,255,255,.28); }
.divider--red .lbl { color: #fff; }
.divider--red .lbl--muted { color: rgba(255,255,255,.5); }
.bleed .icon { filter: brightness(0) invert(1); }
.bleed .aside__link { color: rgba(255,255,255,.7); }
.bleed .aside__link:hover { color: #fff; }
.bleed .form label span { color: rgba(255,255,255,.7); }
.bleed .form input, .bleed .form textarea { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.bleed .form input::placeholder, .bleed .form textarea::placeholder { color: rgba(255,255,255,.6); }
.bleed .form input:focus, .bleed .form textarea:focus { border-color: #fff; }
.bleed .btn-outline { color: #fff; border-color: #fff; }
.bleed .btn-outline:hover { background: #fff; color: var(--red); }
.bleed + * {}
.footer { border-top: 1px solid rgba(255,255,255,.28); }

/* ---------- split sections (about / faq / contact) ---------- */
.split {
  width: min(var(--content), 100% - 2 * var(--pad)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap);
  padding: 180px 0 0;
}
.split__aside { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; }
.aside__top { display: flex; gap: 38px; align-items: flex-start; }
.aside__link { display: flex; align-items: center; gap: 29px; color: var(--dark-grey); font-size: 12px; line-height: 1.2; }
.aside__link:hover .arrow { transform: translateX(4px); }
.split__main--between { display: flex; flex-direction: column; justify-content: space-between; gap: 127px; }

.quote { font-size: 40px; line-height: 1.2; text-align: justify; max-width: 75%; }
.mono-link { font-family: "Mono", monospace; font-size: 12px; color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- counters + testimonials ---------- */
.proof { margin-top: 220px; padding: 26px 0 170px; display: flex; flex-direction: column; align-items: center; background: #0b0b0b; color: #fff; }
.proof .divider { margin: 0 auto 0; }
.divider--dark { border-bottom-color: rgba(255,255,255,.12); }
.divider--dark .lbl { color: #fff; }
.divider--dark .lbl--muted { color: #4a4a4f; }
/* Framer "Better Counter": 65 Medium 42.53px, -0.04em, affix gap 5, label 8px Light +0.05em */
.proof .counters { margin-top: 56px; }
.counters { display: flex; gap: 35px; }
.counter { display: flex; flex-direction: column; align-items: flex-end; padding: 5px; }
.counter__row { display: flex; align-items: baseline; gap: 5px; }
.plus, .num { font-weight: 500; font-size: 42.53px; line-height: 1; letter-spacing: -0.04em; }
.plus { color: var(--red); }
.num { min-width: 1.15em; text-align: right; }
.counter__lbl { font-weight: 300; font-size: 8px; line-height: 1.2; letter-spacing: 0.05em; margin-top: 2px; color: var(--dark-grey); }

.slider { position: relative; width: 650px; max-width: 100%; margin-top: 200px; }
.slider__viewport { overflow: hidden; margin: 0 auto; height: 190px; }
.slider__track { display: flex; transition: transform .7s cubic-bezier(.22,.8,.2,1); }
.slide { flex: 0 0 100%; text-align: center; padding: 0 70px; }
.slide blockquote { font-size: 19px; line-height: 1.25; letter-spacing: -0.035em; margin: 0 auto; max-width: 520px; }
.slide figcaption { display: inline-flex; flex-direction: column; align-items: flex-start; margin-top: 28px; text-align: left; }
.slide figcaption b { font-weight: 500; font-size: 14px; }
.slide figcaption span { font-size: 13px; color: var(--darker-grey); margin-top: 2px; }
.slider__btn { position: absolute; top: 96px; width: 41px; height: 41px; border-radius: 50%; background: #1d1d1f; border: 1px solid #2c2c2f; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.slider__btn:hover { background: var(--red); border-color: var(--red); }
.slider__btn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; }
.slider__btn--prev { left: 0; } .slider__btn--next { right: 0; }
.slider__dots { width: max-content; margin: 36px auto 0; background: #1d1d1f; border-radius: 99px; padding: 10px 12px; display: flex; gap: 10px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 50%; background: #4a4a4f; transition: background .3s; }
.slider__dots button.on { background: #fff; }

/* ---------- faq ---------- */
#faq { padding-top: 180px; }
.faq details { border-bottom: 1px solid var(--light-grey); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 22px 34px 22px 20px; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #000; border-bottom: 2px solid #000; transform: translateY(-3px) rotate(45deg); transition: transform .3s; flex: none; margin-left: 20px; }
.faq summary::after { transition: transform .5s cubic-bezier(.65,0,.35,1); }
.faq details.is-open summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__a { overflow: hidden; transition: height .5s cubic-bezier(.65,0,.35,1); color: var(--darker-grey); font-size: 15px; line-height: 1.4; }
.faq__in { padding: 0 34px 24px 20px; }
.faq__a p + p { margin-top: 10px; }

/* ---------- contact ---------- */
#contact { padding-top: 180px; padding-bottom: 160px; }
.contact__title { font-weight: 500; font-size: 56px; line-height: 1.02; letter-spacing: -0.03em; max-width: 560px; text-wrap: balance; }
.form { margin-top: 26px; max-width: 520px; display: flex; flex-direction: column; gap: 26px; }
.form label { display: flex; flex-direction: column; gap: 9px; }
.form label span { font-family: "Mono", monospace; font-size: 10px; color: var(--dark-grey); letter-spacing: .02em; }
.form input, .form textarea { font: inherit; font-size: 14px; color: #000; border: 1px solid var(--light-grey); border-radius: 2px; padding: 0 11px; height: 44px; background: #fff; outline: none; transition: border-color .2s; }
.form textarea { height: 140px; padding-top: 12px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--dark-grey); }
.form input:focus, .form textarea:focus { border-color: var(--darker-grey); }
.btn-outline--lg { align-self: flex-start; font-size: 14px; padding: 12px 18px; margin-top: -2px; }

/* ---------- footer ---------- */
.footer { background: var(--red); color: #fff; padding: 55px var(--pad) 0; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; }
.footer__cols { display: flex; gap: 127px; }
.footer__col { display: flex; flex-direction: column; }
.footer__col a { font-size: 48px; line-height: 1.5; transition: color .25s; }
.footer__col a:hover { color: var(--dark-red); }
.footer__contact { display: flex; flex-direction: column; font-size: 21px; line-height: 1.2; padding-top: 40px; }
.footer__contact a { font-weight: 700; }
.footer__mark { margin: 119px -60px 0 -62px; position: relative; }
.footer__mark img { width: 100%; height: auto; }
.footer__mark span { display: none; }

/* =========================================================
   TABLET  (810 – 1439)
   ========================================================= */
@media (max-width: 1439px) {
  :root { --pad: 40px; }
  .nav__links, .nav__cta { gap: 20px; }
  .split { grid-template-columns: 1fr; row-gap: 48px; padding-top: 100px; }
  .divider { margin-top: 140px; }
  .bleed { margin-top: 140px; }
  .split__aside { flex-direction: row; align-items: center; justify-content: space-between; }
  .aside__top { gap: 16px; align-items: center; }
  .subhead { width: 281px; }
  .quote { max-width: 100%; font-size: 28px; }
  .split__main--between { gap: 48px; }
  .contact__title { font-size: 40px; max-width: none; }
  .form { max-width: none; }
  #faq, #contact { padding-top: 100px; }
  .proof { margin-top: 160px; padding-bottom: 120px; }
  .hero__title { font-size: 56px; max-width: 700px; }
  .hero__top, .hero__bottom { transform: none; }
  .hero__intro { font-size: 18px; }
  .ticker__track span { font-size: 150px; }
}

/* =========================================================
   PHONE  (≤ 809)
   ========================================================= */
@media (max-width: 809px) {
  :root { --pad: 20px; }

  /* Framer phone nav: 390×72, lettermark 40×36 at 30px, 24px menu icon inside 20+8px padding */
  .nav { height: 72px; padding: 0 28px 0 30px; grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__logo { justify-self: start; }
  .nav__burger { display: block; width: 24px; height: 24px; }
  .nav__burger span { left: 3px; right: 3px; }
  .nav__burger span:nth-child(1) { top: 5.25px; } .nav__burger span:nth-child(2) { top: 11.25px; } .nav__burger span:nth-child(3) { top: 17.25px; }
  .nav__logo img { width: 40px; height: 36px; }
  .drawer { display: flex; flex-direction: column; gap: 22px; position: fixed; inset: 72px 0 auto 0; z-index: 19; background: #fff; padding: 16px 20px 32px; font-size: 32px; line-height: 30px; transform: translateY(-120%); transition: transform .45s cubic-bezier(.22,.8,.2,1); }
  .nav.is-open + .drawer { transform: none; }
  .drawer__cta { font-size: 12px; line-height: 1; margin-top: 18px; padding: 12px; }

  /* hero: static, no scroll choreography */
  .hero { height: auto; --p: 1 !important; }
  .hero__sticky { position: static; height: auto; display: block; opacity: 1 !important; padding: 47px var(--pad) 52px; }
  /* fills the screen below the 72px nav: title at the top, intro at the bottom, emblem centred between */
  .hero__sticky { display: flex; min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); }
  .hero__inner { width: 100%; display: flex; flex-direction: column; }
  .hero__middle { flex: 1; }
  .hero__top, .hero__bottom { transform: none !important; }
  .hero__top { flex-direction: column; gap: 22px; }
  .hero__title { font-size: 33px; line-height: 1.06; }
  .hero__log { align-self: flex-end; font-size: 7.5px; }
  .hero__middle { height: auto; padding: 20px 0 10px; }
  .hero__mark { transform: scale(.68); opacity: 1; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 30px; }
  .hero__intro { font-size: 16px; line-height: 1.2; max-width: none; text-align: left; }
  .hero__intro p + p { margin-top: 20px; }
  .tag-mono { font-size: 7px; }

  .work__labels { padding: 0 0 10px; }
  .work__labels { grid-template-columns: 1fr 1fr; }
  .lbl { font-size: 10px; font-weight: 600; text-transform: none; color: #000; }
  .lbl:nth-child(2) { display: none; }
  .lbl--muted { color: #000; }
  .ticker__track span { font-size: 210px; }
  .ticker { padding: 22px 0 10px; }
  .strips { display: none; }
  .cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 20px 0; scroll-padding: 0 20px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { position: relative; flex: 0 0 80%; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; scroll-snap-align: start; }
  .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .card .strip__info { opacity: 1; padding: 16px; }
  .card .strip__name { font-size: 24px; }
  .card .strip__meta { font-size: 11px; }
  .card .strip__view { font-size: 11px; }

  .split { padding-top: 48px; row-gap: 32px; }
  .bleed { margin-top: 96px; padding-top: 20px; }
  .divider { margin-top: 96px; padding: 0 0 10px; grid-template-columns: 1fr 1fr; }
  .divider .lbl:nth-child(2) { display: none; }
  #faq, #contact { padding-top: 48px; }
  #contact { padding-bottom: 60px; }
  .split__aside { flex-direction: column; align-items: stretch; gap: 16px; }
  .aside__top { justify-content: space-between; align-items: flex-start; }
  .subhead { width: auto; max-width: 285px; font-size: 10px; font-weight: 700; }
  .icon { width: 46px; height: 46px; }
  .copy-mark { font-size: 12px; }
  .aside__link { justify-content: space-between; font-size: 10px; }
  .quote { font-size: 22px; text-align: left; }
  .proof { margin-top: 96px; padding: 20px 0 80px; }
  .icon--chat { width: 40px; height: 35px; }
  .slider { margin-top: 56px; }
  .slide { padding: 0 8px; }
  .slider__viewport { height: auto; }
  .slide blockquote { font-size: 17px; line-height: 1.38; letter-spacing: -0.03em; max-width: 270px; }
  .slider__btn { display: none; }
  .slider__dots { margin-top: 40px; }
  .faq summary { font-size: 18px; padding: 20px 30px 20px 20px; }
  .faq__in { padding: 0 8px 18px 12px; }
  .contact__title { font-size: 30px; max-width: 290px; }
  .form input, .form textarea { font-size: 16px; }

  /* Framer phone footer: 560px tall, clipped; wordmark 844px wide, bottom-left, cropped on purpose */
  .footer { height: 560px; padding: 24px 24px 0; display: flex; flex-direction: column; justify-content: space-between; }
  .footer__top { flex-direction: column; gap: 55px; }
  .footer__cols { gap: 48px; }
  .footer__col a { font-size: 28px; line-height: 2; }
  .footer__contact { font-size: 20px; padding-top: 0; }
  .footer__mark { margin: 0 0 0 -2px; width: 844px; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .hero { --p: 1 !important; }
}

/* =========================================================
   DARK HERO (experiment) — remove class="hero-dark" from <body> to revert
   ========================================================= */
body.hero-dark .nav { background: var(--p-dark, #0b0b0b); color: #fff; transition: background .3s, color .3s; }
body.hero-dark .nav__logo img { filter: invert(1); }
body.hero-dark .nav__burger span { background: #fff; }
body.hero-dark .nav.is-open { background: #fff; color: #000; }
body.hero-dark .nav.is-open .nav__logo img { filter: none; }
body.hero-dark .nav.is-open .nav__burger span { background: #000; }
body.hero-dark .hero { background: #0b0b0b; color: #fff; }
body.hero-dark .hero__log, body.hero-dark .hero .tag-mono { color: #5c5c62; }

/* =========================================================
   SCROLL CHOREOGRAPHY
   .rv  = fades up into place when it enters the viewport (JS adds .in)
   exit = sections drift up and fade as they leave (inline styles from JS)
   ========================================================= */
.js-motion .rv { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s cubic-bezier(.22,.8,.2,1), transform 1.1s cubic-bezier(.22,.8,.2,1); transition-delay: var(--d, 0ms); }
.js-motion .rv.in { opacity: 1; transform: none; }
.js-motion .ticker.rv { transform: translate3d(0, 60px, 0); transition-duration: 1.4s, 1.4s; }
.js-motion .ticker.rv.in { transform: none; }
/* dividers: labels fade up, the hairline draws left → right */
.divider { --line-c: var(--line); }
.divider--red { --line-c: rgba(255,255,255,.28); }
.divider--dark { --line-c: rgba(255,255,255,.12); }
.js-motion .divider.rv { position: relative; border-bottom-color: transparent; transform: none; }
.js-motion .divider.rv .lbl { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .9s cubic-bezier(.22,.8,.2,1) .25s, transform .9s cubic-bezier(.22,.8,.2,1) .25s; }
.js-motion .divider.rv.in .lbl { opacity: 1; transform: none; }
.js-motion .divider.rv::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line-c); transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.65,0,.35,1); }
.js-motion .divider.rv.in::after { transform: scaleX(1); }
.js-motion .divider.rv, .js-motion .divider.rv.in { opacity: 1; }
[data-exit] { will-change: opacity, transform; }
/* breathing room between the black hero and the white work section */
body.hero-dark .work { padding-top: 160px; }
@media (max-width: 1439px) { body.hero-dark .work { padding-top: 120px; } }
@media (max-width: 809px)  { body.hero-dark .work { padding-top: 72px; } }

/* ---------- nav visibility: fixed bar; hides through hero + works, returns solid after works ---------- */
body { padding-top: 80px; }
.nav.is-hidden { transform: translate3d(0, -100%, 0); }
.nav.is-solid { box-shadow: 0 1px 0 var(--line); }
body.hero-dark .nav.is-solid { background: #fff; color: #000; }
body.hero-dark .nav.is-solid .nav__logo img { filter: none; }
body.hero-dark .nav.is-solid .nav__burger span { background: #000; }
@media (max-width: 809px) { body { padding-top: 72px; } }

/* ---------- icon hover animations (parts are built by main.js) ---------- */
svg.icon { display: block; fill: #000; overflow: visible; }   /* icons keep their own colour; only the link text changes */
.ic-part { transform-box: view-box; }
/* peace: the two fingers dip shorter, then spring back */
.ic-peace.is-play .ic-part { animation: ic-peace .75s cubic-bezier(.34, 1.3, .64, 1); }   /* dips and springs back (played by main.js after a short hover) */
@keyframes ic-peace { 0% { transform: scaleY(1); } 40% { transform: scaleY(.72); } 100% { transform: scaleY(1); } }
/* mail: the letter slides out, ducks back in, settles */
.ic-mail.is-play .ic-part { animation: ic-letter .9s cubic-bezier(.45, 0, .25, 1); }
@keyframes ic-letter { 0% { transform: scaleY(1); } 38% { transform: scaleY(1.28); } 72% { transform: scaleY(.82); } 100% { transform: scaleY(1); } }
/* chat: the two lines are drawn again, one after the other */
.ic-line { transform-box: fill-box; transform-origin: left center; }
.ic-chat.is-play .ic-line { animation: ic-draw .55s cubic-bezier(.65, 0, .35, 1) both; animation-delay: calc(var(--i) * .14s); }
@keyframes ic-draw { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
/* hello: a small wave from the wrist */
.icon--hello { transform-origin: 72% 92%; }
.icon--hello.is-play { animation: ic-wave 1s ease-in-out; }
@keyframes ic-wave { 0%, 100% { transform: rotate(0); } 18% { transform: rotate(14deg); } 36% { transform: rotate(-8deg); } 54% { transform: rotate(12deg); } 72% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .ic-part, .ic-line, .icon--hello { animation: none !important; transition: none !important; transform: none !important; } }

/* ---------- contact form: thank-you moment (built in main.js) ---------- */
.form { position: relative; }
.form > label, .form > button[type="submit"] { transition: opacity .45s ease, transform .55s cubic-bezier(.65,0,.35,1); }
.form > label:nth-of-type(2) { transition-delay: .06s; } .form > label:nth-of-type(3) { transition-delay: .12s; } .form > button[type="submit"] { transition-delay: .18s; }
.form.is-sent > label, .form.is-sent > button[type="submit"], .form.is-sent > .form-error,
.js-motion .form.is-sent > .rv { opacity: 0; transform: translate3d(0, -14px, 0); pointer-events: none; }
.form-error { display: none; font-size: 11px; margin: -10px 0 0; }
.form.is-error .form-error { display: block; }
.form-thanks { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; visibility: hidden; opacity: 0; transition: opacity .4s ease .35s, visibility 0s .8s; }
.form.is-sent .form-thanks { visibility: visible; opacity: 1; transition: opacity .4s ease .35s; }
.form-thanks__heart { position: relative; width: 104px; height: 85px; margin-bottom: 14px; }
.form-thanks__heart > svg { width: 100%; height: 100%; fill: currentColor; transform: scale(0); }
.form.is-sent .form-thanks__heart > svg { animation: heart-pop .7s cubic-bezier(.34,1.56,.64,1) .35s forwards, heart-beat 1.4s ease-in-out 1.2s 2; }
@keyframes heart-pop { 0% { transform: scale(0) rotate(-12deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(1); } 45% { transform: scale(1.09); } }
.form-thanks__mini { position: absolute; left: 50%; top: 50%; width: 104px; height: 85px; pointer-events: none; }
.form-thanks__mini svg { width: 100%; height: 100%; fill: currentColor; }
.form-thanks__title { font-weight: 500; font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; }
.form-thanks__text { font-size: 15px; line-height: 1.4; opacity: .75; max-width: 340px; }
.form-thanks__again { margin-top: 10px; font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 3px; opacity: .85; }
.form-thanks__again:hover { opacity: 1; }
.form-thanks__again:hover .arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .form.is-sent .form-thanks__heart > svg { animation: none; transform: none; }
}

/* ---------- 404: all black, big skull; click lights the candle (js/404.js) ---------- */
body.page-404 { background: #000; }
.nf { height: 100vh; height: 100svh; margin-top: -80px; padding: 104px var(--pad) 40px; background: #000; color: #fff; display: flex; flex-direction: column; overflow: hidden; }
.nf__log { align-self: flex-end; font-size: 11px; line-height: 1.25; color: #5c5c62; text-align: right; letter-spacing: .02em; }
.nf-skull { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px 0; background: none; border: 0; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nf-skull:focus-visible { outline: 1px solid #5c5c62; outline-offset: 8px; }
.nf-skull__svg { height: min(100%, 560px); width: auto; overflow: visible; }
.sk-body { fill: none; stroke: currentColor; stroke-width: 5; stroke-linejoin: bevel; }
.sk-body .sk-fill { fill: currentColor; }
.sk-body .sk-head { fill: #000; }   /* solid, so the flame really disappears behind the skull */
.sk-flame { fill: none; stroke: currentColor; stroke-width: 5; stroke-miterlimit: 10; transform-box: fill-box; transform-origin: 50% 100%; transition: fill .25s, stroke .25s; }
.sk-eyes line { stroke: var(--red); stroke-width: 5; stroke-linejoin: bevel; opacity: 0; transition: opacity .5s .15s; }
.nf-skull.is-lit .sk-flame, .nf-flame path { fill: var(--red); stroke: var(--red); }
.nf-skull.is-lit .sk-eyes line { opacity: 1; }
/* once lit and landed, the eyes glance right, then left, back to centre, then blink (red lines shift inside the sockets / collapse) */
.sk-eyes line { transform-box: fill-box; transform-origin: 50% 50%; }
.nf-skull.is-burning .sk-eyes line { animation: nf-look 6s 1.2s infinite; }
@keyframes nf-look {
  0%, 26%      { transform: translateX(0) scaleY(1); }
  31%, 43%     { transform: translateX(2.5px) scaleY(1); }
  49%, 61%     { transform: translateX(-2.5px) scaleY(1); }
  66%, 74%     { transform: translateX(0) scaleY(1); }
  76.5%        { transform: translateX(0) scaleY(0); }
  79%, 100%    { transform: translateX(0) scaleY(1); }
}
.nf-skull.is-burning .sk-flame { animation: nf-flicker 1.7s ease-in-out infinite alternate; filter: drop-shadow(0 0 5px rgba(230, 63, 45, .45)); }
.nf-skull.is-away .sk-flame { opacity: 0; }

/* the travelling flame: a copy laid exactly over the candle, then flown around the page */
.nf-flame { position: fixed; z-index: 30; overflow: visible; pointer-events: none; will-change: transform; }
.nf-flame path { stroke-width: 5; stroke-miterlimit: 10; transform-box: fill-box; transform-origin: 50% 100%; animation: nf-flicker .9s ease-in-out infinite alternate; }

@keyframes nf-flicker {
  0%   { transform: scale(1, 1) skewX(0deg); }
  22%  { transform: scale(.97, 1.06) skewX(-2.5deg); }
  45%  { transform: scale(1.02, .96) skewX(1.5deg); }
  70%  { transform: scale(.98, 1.04) skewX(-1deg); }
  100% { transform: scale(1.01, .98) skewX(2deg); }
}

.nf__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.nf__code { font-size: 11px; letter-spacing: .02em; color: var(--red); font-weight: 400; }
.nf__title { margin-top: 14px; max-width: 560px; font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.005em; }
.nf__links { display: flex; gap: 32px; font-size: 16px; flex: none; }
.nf__links a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 4px; transition: border-color .3s; }
.nf__links a:hover { border-color: #fff; }
.nf__links .arrow { display: inline-block; transition: transform .3s; }
.nf__links a:hover .arrow { transform: translateX(4px); }
@media (max-width: 809px) {
  .nf { margin-top: -72px; padding: 92px var(--pad) 32px; }
  .nf__foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .nf__links { flex-direction: column; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .nf-skull.is-burning .sk-flame, .nf-skull.is-burning .sk-eyes line { animation: none; } }
