/* ==========================================================================
   nuntu.net — stylesheet
   Single source of truth. Mobile-first, one container width, no overrides
   stacked on top of overrides.
   ========================================================================== */

:root{
  --canvas:#f7f5f0;
  --surface:#fffdf8;
  --ink:#16161a;
  --ink-soft:#3a3a36;
  --muted:#6b6a62;
  --line:#e2ded4;
  --line-strong:#cfcabd;
  --accent:#b0402b;
  --accent-soft:#e08872;

  --shell:1180px;
  --measure:720px;
  --gutter:22px;

  --r-sm:10px;
  --r-md:16px;
  --r-lg:24px;

  --step:clamp(64px, 9vw, 128px);
}

*,*::before,*::after{box-sizing:border-box}

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

body{
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}

::selection{background:var(--accent);color:#fff}

:where(a,button,input,select,textarea):focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:4px;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:100;
  padding:12px 18px;
  background:var(--ink);
  color:#fff;
  border-radius:0 0 var(--r-sm) 0;
}
.skip-link:focus{left:0}

/* --------------------------------------------------------------------------
   Layout primitives — every band uses .shell, so everything lines up.
   -------------------------------------------------------------------------- */

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

.measure{max-width:calc(var(--measure) + var(--gutter) * 2)}

/* Same reading width, but flush with the left edge of every other band. */
.measure-left{
  max-width:var(--shell);
}
.measure-left > *{max-width:var(--measure)}

.band{padding-block:var(--step)}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,h2,h3{
  margin:0;
  font-weight:700;
  letter-spacing:-.032em;
  line-height:1.04;
  text-wrap:balance;
}

h1{font-size:clamp(2.5rem,6.2vw,4.6rem)}
h2{font-size:clamp(1.9rem,4vw,3.1rem)}
h3{font-size:1.28rem;letter-spacing:-.02em;line-height:1.25}

p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}

.eyebrow,.kicker{
  margin:0 0 18px;
  color:var(--accent);
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.19em;
  text-transform:uppercase;
}

.lead{
  max-width:62ch;
  color:var(--muted);
  font-size:clamp(1.05rem,1.5vw,1.22rem);
  line-height:1.55;
}

.muted{color:var(--muted)}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header{
  position:sticky;
  top:0;
  z-index:30;
  background:color-mix(in srgb,var(--canvas) 88%,transparent);
  backdrop-filter:saturate(150%) blur(14px);
  -webkit-backdrop-filter:saturate(150%) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .2s ease;
}
.site-header.is-stuck{border-bottom-color:var(--line)}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:72px;
}

.brand{
  font-size:1.65rem;
  font-weight:700;
  letter-spacing:-.06em;
  line-height:1;
}

.site-nav{
  display:none;
  align-items:center;
  gap:30px;
  font-size:.95rem;
}
.site-nav a{color:var(--muted);transition:color .15s ease}
.site-nav a:hover{color:var(--ink)}

.site-nav .nav-cta,
.site-nav .nav-cta:hover,
.nav-cta{
  padding:10px 20px;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font-weight:600;
}
.site-nav .nav-cta:hover{background:#000}

.menu-toggle{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:9px 16px 9px 14px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:transparent;
  font-size:.9rem;
  font-weight:600;
  cursor:pointer;
}
.menu-toggle::before{
  content:"";
  width:15px;
  height:9px;
  border-top:2px solid currentColor;
  border-bottom:2px solid currentColor;
}
.menu-toggle[aria-expanded="true"]::before{
  border-bottom-color:transparent;
  transform:translateY(2px);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px;
  margin-top:34px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 28px;
  border:1px solid transparent;
  border-radius:999px;
  font-weight:600;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{background:#000;transform:translateY(-1px)}

.btn-quiet{
  padding:0 14px;
  color:var(--ink);
  background:transparent;
}
.btn-quiet span{margin-left:9px;transition:transform .16s ease;display:inline-block}
.btn-quiet:hover span{transform:translateX(4px)}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero{padding-block:clamp(44px,7vw,86px) var(--step)}

.hero-inner{
  display:grid;
  grid-template-columns:1fr;
  align-items:center;
  gap:clamp(34px,5vw,64px);
}

.hero-copy{min-width:0}
.hero-copy h1{margin-bottom:26px}

.hero-figure{
  margin:0;
  min-width:0;
  border-radius:var(--r-lg);
  overflow:hidden;
  background:linear-gradient(160deg,#f2efe8,#e8e4da);
}
.hero-figure img{
  width:100%;
  aspect-ratio:5/4;
  object-fit:cover;
  object-position:50% 46%;
}

/* --------------------------------------------------------------------------
   Quote band
   -------------------------------------------------------------------------- */

.band-quote{
  padding-block:clamp(56px,7vw,96px);
  text-align:center;
  border-block:1px solid var(--line);
}
.band-quote .kicker{color:var(--muted)}

.statement{
  font-size:clamp(1.7rem,3.4vw,2.7rem);
  font-weight:700;
  letter-spacing:-.03em;
  line-height:1.12;
  margin-bottom:.5em;
}
.statement em{font-style:italic}

.statement-sub{
  max-width:48ch;
  margin-inline:auto;
  color:var(--muted);
  font-size:1.05rem;
}

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */

.band-head{
  max-width:800px;
  margin-bottom:clamp(38px,5vw,60px);
}
.band-head h2{margin-bottom:20px}

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */

.pillars{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.pillar{
  min-width:0;
  padding:30px 28px 32px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-md);
}
.pillar h3{margin-bottom:12px}
.pillar p:last-child{color:var(--muted)}

.pillar-index{
  margin-bottom:44px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.14em;
}

.pillar-accent{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.pillar-accent .pillar-index,
.pillar-accent p:last-child{color:rgba(255,255,255,.96)}

/* --------------------------------------------------------------------------
   Ink band — principles
   -------------------------------------------------------------------------- */

.band-ink{
  background:var(--ink);
  color:#f4f2ec;
}
.band-ink .kicker{color:var(--accent-soft)}
.band-ink .lead{color:rgba(244,242,236,.72)}

.principles{
  display:grid;
  grid-template-columns:1fr;
  gap:34px;
}
.principles article{
  padding-top:24px;
  border-top:1px solid rgba(244,242,236,.22);
}
.principles h3{margin-bottom:12px}
.principles p{color:rgba(244,242,236,.68)}

/* --------------------------------------------------------------------------
   Split (partners)
   -------------------------------------------------------------------------- */

.split{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(26px,4vw,56px);
}
.split-body p{color:var(--muted)}
.split-body .btn{margin-top:12px}

.tick-list{
  margin:0 0 24px;
  padding:0;
  list-style:none;
}
.tick-list li{
  position:relative;
  padding-left:28px;
  margin-bottom:10px;
  color:var(--ink-soft);
}
.tick-list li::before{
  content:"";
  position:absolute;
  left:2px;
  top:.62em;
  width:11px;
  height:6px;
  border-left:2px solid var(--accent);
  border-bottom:2px solid var(--accent);
  transform:rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Status band
   -------------------------------------------------------------------------- */

.band-status{
  border-top:1px solid var(--line);
}
.band-status h2{margin-bottom:22px}
.band-status .lead{margin-bottom:1.1em}
.band-status .btn{margin-top:16px}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero{
  padding-block:clamp(48px,7vw,92px) clamp(30px,4vw,48px);
}
.page-hero h1{margin-bottom:22px}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.band-contact{padding-top:clamp(20px,3vw,34px)}

.contact-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(28px,4vw,48px);
  align-items:start;
}

.contact-form{
  padding:clamp(24px,3.5vw,36px);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
}

.field{margin-bottom:18px}
.field label{
  display:block;
  margin-bottom:7px;
  font-size:.88rem;
  font-weight:600;
}
.field input,
.field select,
.field textarea{
  width:100%;
  padding:13px 15px;
  background:var(--canvas);
  border:1px solid var(--line-strong);
  border-radius:var(--r-sm);
  transition:border-color .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus{border-color:var(--ink)}
.field textarea{resize:vertical;min-height:120px}

.form-consent{
  margin-bottom:20px;
  color:var(--muted);
  font-size:.86rem;
}
.contact-form .btn{width:100%}

.form-status{
  margin-top:14px;
  font-size:.92rem;
  min-height:1.4em;
}
.form-status.is-error{color:var(--accent)}

.contact-aside{
  display:grid;
  gap:14px;
}
.card{
  padding:26px 24px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-md);
}
.card .kicker{margin-bottom:14px}
.card .tick-list{margin-bottom:0}

.contact-email{
  font-size:1.22rem;
  font-weight:700;
  letter-spacing:-.02em;
  border-bottom:2px solid var(--accent);
  padding-bottom:2px;
}

/* --------------------------------------------------------------------------
   Prose (privacy)
   -------------------------------------------------------------------------- */

.prose h2{
  margin-top:2em;
  margin-bottom:.6em;
  font-size:clamp(1.35rem,2.4vw,1.8rem);
}
.prose h2:first-child{margin-top:0}
.prose p{color:var(--ink-soft)}
.prose a{border-bottom:1px solid var(--accent)}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer{
  padding-block:clamp(46px,6vw,72px);
  border-top:1px solid var(--line);
}

.footer-inner{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
}

.footer-brand{
  margin:0 0 4px;
  font-size:1.65rem;
  font-weight:700;
  letter-spacing:-.06em;
  line-height:1;
}
.footer-tagline{
  margin:0;
  color:var(--muted);
  font-size:.92rem;
}

.footer-nav{
  display:flex;
  flex-wrap:wrap;
  gap:12px 26px;
  font-size:.95rem;
}
.footer-nav a{color:var(--muted)}
.footer-nav a:hover{color:var(--ink)}

.footer-legal{
  color:var(--muted);
  font-size:.85rem;
}
.footer-legal p{margin-bottom:6px}
.footer-note{max-width:44ch}

/* ==========================================================================
   Breakpoints — additive only, from small to large.
   ========================================================================== */

@media (min-width:640px){
  .pillars{grid-template-columns:repeat(2,minmax(0,1fr))}
  .contact-form .btn{width:auto;min-width:200px}
  .footer-inner{
    grid-template-columns:1fr auto;
    align-items:start;
  }
  .footer-legal{grid-column:1 / -1}
}

@media (min-width:900px){
  :root{--gutter:32px}

  .menu-toggle{display:none}
  .site-nav{display:flex}

  .hero-inner{grid-template-columns:1.04fr .96fr}
  .principles{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
  .split{grid-template-columns:.9fr 1.1fr}
  .contact-layout{grid-template-columns:1.25fr .75fr}
  .prose{font-size:1.05rem}
}

@media (min-width:1120px){
  .pillars{grid-template-columns:repeat(4,minmax(0,1fr))}
  .pillar{padding:32px 30px 36px}
  .pillar-index{margin-bottom:64px}
}

/* Mobile navigation panel */
@media (max-width:899px){
  .site-nav{
    position:absolute;
    top:calc(100% + 8px);
    left:var(--gutter);
    right:var(--gutter);
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:12px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--r-md);
    box-shadow:0 18px 44px rgba(0,0,0,.09);
  }
  .site-nav.is-open{display:flex}
  .site-nav a{padding:13px 12px}
  .nav-cta{margin-top:8px;text-align:center;justify-content:center}
  .actions .btn{width:100%}
  .actions{gap:12px}
  .btn-quiet{justify-content:flex-start;padding-inline:4px}
}

/* --------------------------------------------------------------------------
   Scroll reveal — progressive enhancement.
   The .reveal class is only ever added by script.js, and only when the
   visitor has not asked for reduced motion. No JS → nothing is hidden.
   -------------------------------------------------------------------------- */

.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:
    opacity .8s cubic-bezier(.2,.6,.2,1),
    transform .8s cubic-bezier(.2,.6,.2,1);
  transition-delay:var(--reveal-delay,0s);
  will-change:opacity,transform;
}
.reveal.is-in{
  opacity:1;
  transform:none;
}

/* Hero entrance on load — same rules: classes come from JS only. */
.hero-enter .hero-copy > *{
  opacity:0;
  transform:translateY(22px);
  transition:
    opacity .9s cubic-bezier(.2,.6,.2,1),
    transform .9s cubic-bezier(.2,.6,.2,1);
}
.hero-enter .hero-figure{
  opacity:0;
  transform:scale(1.025);
  transition:
    opacity 1.1s cubic-bezier(.2,.6,.2,1) .15s,
    transform 1.4s cubic-bezier(.2,.6,.2,1) .15s;
}
.hero-enter.hero-in .hero-copy > *,
.hero-enter.hero-in .hero-figure{
  opacity:1;
  transform:none;
}
.hero-enter .hero-copy > :nth-child(1){transition-delay:.05s}
.hero-enter .hero-copy > :nth-child(2){transition-delay:.13s}
.hero-enter .hero-copy > :nth-child(3){transition-delay:.21s}
.hero-enter .hero-copy > :nth-child(4){transition-delay:.29s}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    transition-duration:.01ms !important;
    transition-delay:0s !important;
  }
  .reveal,
  .hero-enter .hero-copy > *,
  .hero-enter .hero-figure{
    opacity:1;
    transform:none;
  }
}

@media print{
  .site-header,.skip-link,.actions,.contact-form{display:none}
  body{background:#fff}
}
