/* IT Nerd UK — landing page
   Palette, type and motion as agreed in the blueprint (§1b, §2, §4). */

@font-face { font-family: "Jost"; src: url("../fonts/Jost-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sacramento"; src: url("../fonts/Sacramento-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ground: #FFFFFF;
  --mist: #F3F6F5;
  --ink: #1D2523;
  --muted: #55625E;
  --sage: #3B756D;
  --band: #131A18;
  --soft: #B9C4C0;
  --light-sage: #8FBDB5;
  --sky: #557A75;
  --line: #C9D3D0;

  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Sacramento", "Brush Script MT", cursive;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --header-h: 84px;
  --content: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--sage); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 3px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); margin-bottom: calc(var(--header-h) * -1);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0); box-shadow: none; color: #fff;
  transition: background-color .9s var(--ease), box-shadow .9s var(--ease), color .9s var(--ease), height .9s var(--ease), margin-bottom .9s var(--ease);
}
.site-header__inner { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; transition: gap .9s var(--ease); }
.brand:hover { color: inherit; }
.brand__mark { width: 38px; height: 38px; transition: width .9s var(--ease), height .9s var(--ease); }
.brand__mark .mk-line { stroke: currentColor; }
.brand__mark .mk-dot { fill: currentColor; }
.brand__mark .mk-heart { fill: currentColor; transition: fill .9s var(--ease); }
.brand__name { font-size: 1.3rem; font-weight: 500; letter-spacing: .06em; transition: font-size .9s var(--ease); }

.lang { position: relative; }
.lang__toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; background: none; border: 0; color: inherit; font-size: .85rem; font-weight: 600; letter-spacing: .14em; cursor: pointer; transition: font-size .9s var(--ease); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 2px); margin: 0; padding: 6px; list-style: none; min-width: 150px; background: #fff; border-radius: 6px; box-shadow: 0 8px 24px rgba(19, 26, 24, .16);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; }
.lang__menu a { display: block; padding: 10px 14px; color: var(--ink); font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-decoration: none; border-radius: 4px; }
.lang__menu a:hover { background: var(--mist); }
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) { .lang:hover .lang__menu, .lang:focus-within .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }

/* Scrolled: soft white bar, shrunk to 75% (no sideways movement) */
.site-header.is-scrolled { --header-h: 63px; background: rgba(255, 255, 255, 1); color: var(--ink); box-shadow: 0 1px 0 #E3E9E7, 0 6px 18px rgba(19, 26, 24, .06); }
.site-header.is-scrolled .brand { gap: 9px; }
.site-header.is-scrolled .brand__mark { width: 28.5px; height: 28.5px; }
.site-header.is-scrolled .brand__mark .mk-heart { fill: var(--sage); }
.site-header.is-scrolled .brand__name { font-size: .975rem; }
.site-header.is-scrolled .lang__toggle { font-size: .65rem; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 980px; overflow: hidden; background: var(--sky); color: #fff; isolation: isolate; }
.hero__layers { position: absolute; inset: 0; pointer-events: none; }
.layer { position: absolute; will-change: transform; }
.layer--back { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; z-index: 0; transform: translate3d(0, var(--y-back, 0px), 0); }
.layer--middle { left: 50%; bottom: -2%; width: max(100%, 1100px); height: auto; z-index: 1; transform: translate3d(-50%, var(--y-mid, 0px), 0); }
.layer--front { left: 50%; bottom: 0; width: max(100%, 820px); height: auto; z-index: 3; transform: translate3d(-50%, calc(37% - var(--rise, 0px)), 0); }

.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: max(150px, 21vh) 24px 0; opacity: var(--fade, 1); }
/* A soft shade behind the words so white text stays readable on the pale sky */
.hero__content::before { content: ""; position: absolute; z-index: -1; left: 50%; top: max(90px, 14vh); width: min(140%, 1100px); height: 460px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(19, 26, 24, .26), rgba(19, 26, 24, .12) 55%, transparent); pointer-events: none; }
.hero__line, .hero__pillars, .hero__soon, .waitlist__small { text-shadow: 0 1px 2px rgba(19, 26, 24, .45), 0 0 14px rgba(19, 26, 24, .25); }
.hero__title { margin: 0; min-height: 1.2em; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; letter-spacing: .08em; line-height: 1.15; text-shadow: 0 1px 24px rgba(19, 26, 24, .18); }
.rotator { display: inline-block; transition: opacity .5s ease; }
.rotator.is-out { opacity: 0; }
.hero__line { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: .02em; }
.hero__pillars { margin: 0; display: flex; gap: 1.2em; font-size: 1rem; font-weight: 600; letter-spacing: .3em; }
.hero__pillars span:last-child { margin-right: -.3em; }
.hero__soon { margin: 14px 0 0; font-size: .8rem; font-weight: 600; letter-spacing: .18em; }

.waitlist { width: min(100%, 460px); margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.waitlist__row { display: flex; width: 100%; }
.waitlist input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 3px 0 0 3px; background: #fff; color: var(--ink); font-size: .95rem; }
.waitlist input::placeholder { color: #7A8682; }
.waitlist button { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 0 3px 3px 0; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .16em; cursor: pointer; transition: background-color .2s; }
.waitlist button:hover { background: #2C3634; }
.waitlist__small { margin: 0; font-size: .8rem; }
.waitlist__small a { color: #fff; }
.hero .form-status { color: #fff; }
.hero .form-status.is-ok { color: var(--sage); font-weight: 500; background: rgba(255, 255, 255, .92); padding: 6px 14px; border-radius: 3px; }
.hero .form-status.is-error { background: rgba(19, 26, 24, .55); padding: 4px 10px; border-radius: 3px; }

/* ---------- Sections ---------- */
.section { padding: 104px 24px; }
.section--mist { background: var(--mist); }
.section-title { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: .14em; text-align: center; }

.pillars { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.pillars__grid { width: 100%; max-width: 1080px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.pillar { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.pillar__icon { width: 56px; height: 56px; color: var(--sage); }
.pillar h3 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: .2em; }
.pillar p { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: .95rem; color: var(--muted); }

.why__inner { max-width: var(--content); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.why__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.why__text .section-title { text-align: left; }
.why__text p { margin: 0; font-size: .98rem; line-height: 1.8; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border: 0; border-radius: 3px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.btn:hover { background: #2C3634; color: #fff; }

.slider { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.slider__frame { position: relative; width: 100%; aspect-ratio: 799 / 597; border-radius: 6px; overflow: hidden; background: #E2EAE8; }
.slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.slider__img.is-active { opacity: 1; }
.slider__dots { display: flex; gap: 4px; }
.slider__dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider__dots button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--soft); transition: background-color .3s; }
.slider__dots button.is-active::before { background: var(--ink); }

/* ---------- Dark photo bands ---------- */
.band { position: relative; overflow: hidden; background: var(--band); color: #fff; padding: 112px 24px; text-align: center; isolation: isolate; }
.band__bg { position: absolute; inset: -15% 0; z-index: -2; transform: translate3d(0, var(--y-band, 0px), 0); will-change: transform; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(19, 26, 24, .55); }
.band__content { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.band__title { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; letter-spacing: .12em; }
.band__subtitle { margin: 0; font-size: .75rem; font-weight: 500; letter-spacing: .16em; color: var(--light-sage); }
.band__text { margin: 0; max-width: 760px; font-size: 1rem; line-height: 1.8; color: #D3DBD8; }

.band--quote { padding: 96px 24px; }
.quote { margin: 0 auto; gap: 22px; }
.quote__mark { fill: var(--soft); }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 300; line-height: 1.6; }
.quote__sign { font-family: var(--script); font-size: 2.1rem; line-height: 1; margin-top: 8px; transform: rotate(-6deg); }

/* ---------- Founder ---------- */
.founder { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.founder__title { margin: 0; font-size: 2.025rem; font-weight: 600; letter-spacing: .14em; }
.founder__photo { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin-top: 10px; filter: grayscale(1); }
.founder__name { margin: 0; font-family: var(--script); font-size: 1.152rem; line-height: 1; color: var(--muted); }
.founder__pillars { margin: 0; display: flex; gap: 1.4em; font-size: .95rem; font-weight: 600; letter-spacing: .2em; color: var(--muted); }
.founder__dots { margin-top: 6px; fill: var(--soft); }

/* ---------- Contact ---------- */
.contact { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.contact__intro { margin: 0; max-width: 680px; text-align: center; font-size: .98rem; line-height: 1.8; color: var(--muted); }
.contact__form { width: 100%; max-width: 760px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); font-size: 1rem; }
.field textarea { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(59, 117, 109, .18); }
.field [aria-invalid="true"] { border-color: #A6473A; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sage); flex: none; }
.contact__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.contact__small { margin: 0; font-size: .82rem; color: var(--muted); }
.form-status { margin: 0; min-height: 0; font-size: .92rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: #A6473A; }
.contact .form-status.is-ok { color: var(--sage); font-weight: 500; }
.is-sent .field, .is-sent .check, .is-sent .btn, .is-sent .cf-turnstile { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); padding: 56px 24px 48px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.to-top { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); transition: border-color .2s; }
.to-top:hover { border-color: var(--sage); }
.copyright { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; letter-spacing: .16em; color: var(--muted); }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.pillars__grid .pillar:nth-child(2) { transition-delay: .15s; }
.pillars__grid .pillar:nth-child(3) { transition-delay: .3s; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .site-header__inner { padding: 0 16px; }
  .brand__name { font-size: 1.15rem; }
  .section { padding: 80px 16px; }
  .band { padding: 88px 16px; }
  .hero__content { padding-top: max(130px, 19vh); padding-left: 16px; padding-right: 16px; }
  .hero__pillars { gap: .9em; letter-spacing: .24em; }
  .hero__soon { font-size: .64rem; letter-spacing: .08em; white-space: nowrap; }
  .waitlist button { padding: 0 14px; letter-spacing: .1em; }
  .founder__title { font-size: 1.7rem; }
}

/* ---------- Reduced motion: everything still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .layer, .band__bg { transform: none !important; }
  .layer--middle { transform: translate3d(-50%, 0, 0) !important; }
  .layer--front { transform: translate3d(-50%, 37%, 0) !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.waitlist__small a, .contact__small a { white-space: nowrap; }
