/* SustainAxis Digital — sustainaxisdigital.com
   Ink and paper, one orange data point, client colour used only on client work. */

:root{
  --ink:#0A1726;
  --ink-2:#16293C;
  --paper:#F3F5F6;
  --line:#CBD5DB;
  --text:#15293A;
  --muted:#44606F;
  --soft:#5E7786;
  --on-ink:#B9C9D6;
  --on-ink-dim:#7F97A9;
  --signal:#FF7A1A;        /* on ink only */
  --signal-ink:#B8470A;    /* the same accent, darkened for use on paper (4.9:1) */
  --action:#B8F03C;
  --display:"Space Grotesk","Segoe UI",system-ui,sans-serif;
  --body:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --wrap:1180px;
  --gut:clamp(18px,4vw,24px);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{
  margin:0;background:var(--ink);color:var(--text);
  font:400 17px/1.6 var(--body);-webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:4px}
:focus-visible{outline:3px solid var(--signal);outline-offset:3px;border-radius:6px}
h1,h2,h3{margin:0;font-family:var(--display);font-weight:700;letter-spacing:-.03em;line-height:1}
p{margin:0}

.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gut)}
.skip{position:absolute;left:16px;top:-56px;z-index:30;background:var(--action);color:var(--ink);
  padding:10px 16px;border-radius:8px;font-weight:700}
.skip:focus{top:16px}

/* ---------- header ---------- */
.top{display:flex;flex-wrap:wrap;align-items:center;gap:14px 30px;padding-block:24px}
.brand{display:flex;align-items:center;gap:12px;margin-right:auto;color:#fff}
.brand:hover{text-decoration:none}
.brand svg,.brand img{width:38px;height:38px;color:#fff}
.brand b{font-family:var(--display);font-size:22px;font-weight:700;letter-spacing:-.03em}
.nav{display:flex;flex-wrap:wrap;gap:22px;font-size:16px;color:var(--on-ink)}
.nav a:hover{color:#fff}

.btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 22px;border-radius:10px;
  font-weight:700;font-size:17px;border:0;cursor:pointer;font-family:inherit}
.btn svg{flex:none}
.btn-go{background:var(--action);color:var(--ink)}
.btn-go:hover{background:#c8f75c;text-decoration:none}
.btn-line{border:1px solid #3A5168;color:#fff}
.btn-line:hover{border-color:#5C7996;text-decoration:none}
.btn-sun{background:var(--signal);color:#1A0B00}
.btn-sun:hover{background:#ff8c3a;text-decoration:none}
.btn-lg{min-height:56px;font-size:19px;padding:0 26px}

/* ---------- hero ---------- */
.hero{display:flex;flex-wrap:wrap;gap:clamp(32px,5vw,56px);align-items:center;padding-block:28px 88px}
.hero-copy{flex:999 1 460px;min-width:0;display:flex;flex-direction:column;gap:26px}
.hero h1{font-size:clamp(40px,6vw,76px);line-height:.98;color:#fff}
.hero-lede{max-width:46ch;font-size:clamp(18px,2vw,21px);line-height:1.5;color:var(--on-ink)}
.hero-acts{display:flex;flex-wrap:wrap;gap:12px}

.switch{margin-top:6px;display:flex;flex-direction:column;gap:12px}
.switch-hint{font-size:15px;color:var(--on-ink-dim)}
.switch-row{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;padding:0 16px;border-radius:10px;border:1px solid #3A5168;background:none;
  color:#C3D2DD;font:600 16px/1 var(--body);cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.chip:hover{border-color:#5C7996;color:#fff}
.chip[aria-selected="true"]{background:var(--action);border-color:var(--action);color:var(--ink)}

.stage{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:18px}
.phone{width:300px;max-width:100%;padding:10px;border-radius:38px;background:var(--ink-2);
  box-shadow:0 30px 60px rgba(0,0,0,.45)}
.screen{position:relative;border-radius:29px;overflow:hidden;background:#fff;aspect-ratio:560/1212}
.screen img{width:100%;height:100%;object-fit:cover;object-position:center top;
  transition:opacity .34s ease}
.screen.loading img{opacity:.15}
.bar{position:absolute;left:0;top:0;height:3px;width:0;opacity:0;background:var(--action);
  transition:width .42s ease,opacity .26s ease}
.screen.loading .bar{width:72%;opacity:1}
.stage figcaption{text-align:center;display:flex;flex-direction:column;gap:4px}
.stage .who{font-family:var(--display);font-size:20px;font-weight:700;color:#fff}
.stage .what{font-size:16px;color:#8EA6B8}

/* ---------- light body ---------- */
.sheet{background:var(--paper);border-radius:28px 28px 0 0}
.sec{padding-block:clamp(56px,8vw,84px) 0}
.sheet>.sec:last-child{padding-bottom:clamp(56px,8vw,88px)}  /* keep the dark block off it */
.sec-head{display:flex;flex-direction:column;gap:16px}
.sec h2{font-size:clamp(30px,4.2vw,48px);color:var(--ink)}
.sec-lede{max-width:62ch;font-size:clamp(17px,1.8vw,20px);line-height:1.55;color:var(--muted)}
.mark{flex:none}

/* work — the screenshot gets the full column, because a desktop site shrunk
   into half a column is unreadable. Phones are served the phone screenshot. */
.work{display:flex;flex-direction:column;gap:clamp(52px,7vw,76px);padding-block:clamp(32px,5vw,44px) 0}
.proj{display:flex;flex-direction:column;gap:22px}
.proj-shot{
  position:relative;border-radius:14px;overflow:hidden;background:var(--c,#15293A);
  border-bottom:5px solid var(--c,#15293A);
  box-shadow:0 18px 44px rgba(10,23,38,.16)}
.proj-shot img{width:100%;height:auto;display:block}
/* the shot stops mid-page, as every screenshot must — fade it so the cut
   reads as "there is more below" rather than as a broken image */
.proj-shot::after{content:"";position:absolute;left:0;right:0;bottom:0;height:56px;
  background:linear-gradient(to bottom,rgba(243,245,246,0) 0%,rgba(243,245,246,.62) 60%,var(--paper) 100%);
  pointer-events:none}
.proj-text{display:flex;flex-wrap:wrap;gap:16px clamp(28px,4vw,56px);align-items:baseline}
.proj-id{flex:1 1 280px;min-width:0}
.proj-say{flex:1.4 1 420px;min-width:0;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.proj-kind{font-size:16px;font-weight:600;color:var(--c,#15293A)}
.proj h3{font-size:clamp(26px,3vw,34px);color:var(--ink);margin-top:4px}
.proj p{font-size:19px;line-height:1.55;color:var(--muted)}
.proj-link{font-size:18px;font-weight:700;color:var(--c,#15293A);text-decoration:underline;text-underline-offset:4px}
.proj-note{font-size:17px;font-weight:600;color:var(--muted)}

@media (max-width:760px){
  /* the phone shot is tall, so show the top of it rather than the whole screen */
  .proj-shot{max-width:320px;margin-inline:auto;aspect-ratio:320/430;border-radius:20px}
  .proj-shot img{height:100%;object-fit:cover;object-position:center top}
}

/* services */
.svc-grid{display:flex;flex-wrap:wrap;gap:0 clamp(28px,4vw,56px);margin-top:22px}
.svc-col{flex:1 1 400px;min-width:0}
.svc{padding-block:22px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.svc:last-child{border-bottom:1px solid var(--line)}
.svc b{font-family:var(--display);font-size:clamp(21px,2.4vw,25px);font-weight:700;letter-spacing:-.025em;color:var(--ink)}
.svc span{font-size:19px;line-height:1.5;color:var(--muted)}
.quote-box{margin-top:22px;padding:26px;border-radius:14px;background:var(--ink);
  display:flex;flex-direction:column;gap:14px}
.quote-box p{font-size:19px;line-height:1.5;color:#C3D2DD}
.quote-box .btn{align-self:flex-start}

/* process */
.steps{display:flex;flex-wrap:wrap;gap:24px;margin-top:22px}
.step{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:10px}
.step-rule{display:flex;align-items:center;gap:12px}
.step-rule i{font-family:var(--display);font-style:normal;font-size:20px;font-weight:700;color:var(--signal-ink)}
.step-rule span{flex-grow:1;height:1px;background:var(--line)}
.step b{font-family:var(--display);font-size:clamp(21px,2.3vw,24px);font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.step p{font-size:18px;line-height:1.5;color:var(--muted)}

/* questions — plain <details>, so it works with JavaScript switched off */
.faq{margin-top:22px;max-width:76ch}
.faq details{border-top:1px solid var(--line)}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{
  display:flex;align-items:flex-start;gap:16px;padding:20px 0;cursor:pointer;list-style:none;
  font-family:var(--display);font-size:clamp(19px,2.1vw,23px);font-weight:700;
  letter-spacing:-.02em;color:var(--ink)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"";flex:none;margin-left:auto;margin-top:.35em;width:13px;height:13px;
  border-right:2.5px solid var(--signal-ink);border-bottom:2.5px solid var(--signal-ink);
  transform:rotate(45deg);transition:transform .25s ease}
.faq details[open] summary::after{transform:rotate(-135deg)}
.faq summary:hover{color:var(--signal-ink)}
.faq details>div{overflow:hidden}
.faq details[open]>div{animation:openUp .3s ease}
.faq details p{padding-bottom:22px;max-width:64ch;font-size:19px;line-height:1.6;color:var(--muted)}
@keyframes openUp{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* team */
.team-grid{display:flex;flex-wrap:wrap;gap:clamp(28px,4vw,40px);margin-top:14px}
.team-words{flex:1 1 430px;min-width:0;display:flex;flex-direction:column;gap:16px}
.team-words p{font-size:clamp(18px,1.9vw,20px);line-height:1.55;color:var(--muted)}
.team-people{flex:1 1 370px;min-width:0;display:flex;flex-direction:column;gap:16px}
.person{display:flex;gap:18px;align-items:center}
.person img{width:96px;height:96px;flex:none;border-radius:50%;object-fit:cover;background:#DDE5E9}
.person b{font-family:var(--display);font-size:23px;font-weight:700;letter-spacing:-.02em;color:var(--ink);display:block}
.person .role{font-size:17px;font-weight:600;color:#0B4F6C}
.person .cred{font-size:17px;line-height:1.4;color:var(--muted)}
.pledges{display:flex;flex-wrap:wrap;gap:24px clamp(28px,4vw,44px);margin-top:36px}
.pledge{flex:1 1 290px;min-width:0;font-size:19px;line-height:1.5;color:var(--muted)}
.pledge b{color:var(--ink)}

/* contact */
.contact{display:flex;flex-wrap:wrap;gap:clamp(28px,4vw,44px);align-items:center;padding-block:clamp(56px,8vw,88px)}
.contact-copy{flex:999 1 460px;min-width:0;display:flex;flex-direction:column;gap:22px}
.contact h2{font-size:clamp(32px,4.6vw,54px);line-height:1.04;color:#fff}
.contact p{max-width:52ch;font-size:clamp(18px,2vw,20px);line-height:1.5;color:var(--on-ink)}
.contact .btn{align-self:flex-start}
.contact-list{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:20px}
.contact-list div{display:flex;flex-direction:column;gap:4px}
.contact-list dt{font-size:16px;color:var(--on-ink-dim)}
.contact-list dd{margin:0;font-size:19px;font-weight:600;color:#fff}
.contact-list .sub{font-size:17px;font-weight:400;color:#8EA6B8}

footer{border-top:1px solid #1E3449}
.foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding-block:26px}
.foot-brand{display:flex;align-items:center;gap:11px;color:#fff}
.foot-brand svg,.foot-brand img{width:26px;height:26px}
.foot span,.foot a{font-size:16px;color:#8EA6B8}

/* ---------- phone dock: the one action, always in reach ---------- */
.dock{
  position:fixed;left:16px;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:25;
  display:none;align-items:center;gap:12px;min-height:58px;padding:0 20px;border-radius:14px;
  background:var(--action);color:var(--ink);box-shadow:0 10px 30px rgba(0,0,0,.35);
  transform:translateY(130%);transition:transform .32s cubic-bezier(.16,1,.3,1),opacity .2s ease}
.dock b{font-family:var(--display);font-size:19px;font-weight:700;letter-spacing:-.02em}
.dock span{margin-left:auto;font-size:17px;font-weight:600;opacity:.75}
.dock:hover{text-decoration:none}
.dock.up{transform:none}
.dock[hidden]{display:none}

@media (max-width:720px){
  .dock:not([hidden]){display:flex}
  body.has-dock{padding-bottom:88px}   /* so the footer is never sitting under the bar */
}

/* ---------- one orchestrated entrance ---------- */
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes riseBig{from{opacity:0;transform:translateY(40px) scale(.97)}to{opacity:1;transform:none}}
.in{animation:rise .8s cubic-bezier(.16,1,.3,1) both}
.in-2{animation-delay:.09s}
.in-3{animation-delay:.18s}
.in-4{animation-delay:.27s}
.in-stage{animation:riseBig 1.05s cubic-bezier(.16,1,.3,1) .12s both}

/* ---------- phone: tighten the top so the hero arrives sooner ---------- */
@media (max-width:560px){
  .top{padding-block:18px;gap:12px 20px}
  .top .btn{display:none}        /* the hero carries the same action, one screen down */
  .nav{gap:18px;font-size:15px}
  .hero{padding-block:16px 64px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}
