/* ===========================================================
   Intermission shared stylesheet
   Palette: Harbour. Nerano blue at two depths plus amber
   =========================================================== */

:root{
  /* paper */
  --paper:#FBF8F1;
  --paper-deep:#F1ECE0;
  --paper-light:#FFFDF8;

  /* text */
  --ink:#1C2735;
  --ink-soft:#575F6B;
  --ink-faint:#8A919C;

  /* blues */
  --harbour:#2E557A;        /* header band, footer, feature blocks */
  --harbour-deep:#24456A;   /* hover */
  --nerano:#14304E;         /* the one dark section */

  /* amber */
  --amber:#EFB55C;
  --amber-deep:#E2A544;     /* hover */
  --amber-light:#F6D79B;    /* amber on dark backgrounds */
  --amber-ink:#17283A;      /* text sitting on amber */

  /* rules */
  --rule:rgba(28,39,53,.18);
  --rule-light:rgba(251,248,241,.24);

  --display:"Bodoni Moda", Georgia, serif;
  --body:"Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw:1080px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding-left:max(28px, env(safe-area-inset-left, 0px));
  padding-right:max(28px, env(safe-area-inset-right, 0px));
}
a{color:inherit}
img{max-width:100%;display:block}

section{padding-block:84px}

h2{
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(1.8rem,3.6vw,2.6rem);
  line-height:1.12;
  margin:0 0 44px;
  letter-spacing:-.01em;
}

/* ---------- act labels ---------- */

.act{
  font-family:var(--body);
  font-size:12px;
  font-weight:600;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--harbour);
  margin:0 0 14px;
}
.dark .act{color:var(--amber)}

/* ---------- selected work ---------- */

.work-lede{
  font-size:15px;
  letter-spacing:.04em;
  color:rgba(251,248,241,.72);
  margin:-26px 0 26px;
}
.clients{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:1px;
  background:var(--rule-light);
  border-top:1px solid var(--rule-light);
  border-bottom:1px solid var(--rule-light);
}
.clients li{
  background:var(--nerano);
  font-family:var(--display);
  font-size:clamp(1.3rem,2.4vw,1.72rem);
  line-height:1.2;
  color:var(--paper);
  padding:28px 24px;
  min-width:0;
}
.work-note{
  margin:28px 0 0;
  max-width:62ch;
  color:rgba(251,248,241,.78);
  font-size:15.5px;
  line-height:1.6;
}

/* ---------- fund-facing lede ---------- */

.fund-lede{
  font-size:17px;
  line-height:1.62;
  color:var(--ink-soft);
  max-width:64ch;
  margin:-26px 0 44px;
}

/* ---------- header / nav ---------- */

.band{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:var(--nerano);
  color:var(--paper);
}
.band > .wrap{position:relative;z-index:2}
.topbar{
  display:flex;justify-content:space-between;align-items:center;
  gap:16px;flex-wrap:wrap;
  font-size:13.5px;
  color:rgba(251,248,241,.74);
  border-bottom:1px solid var(--rule-light);
  padding:26px 0 14px;
}

/* ---------- logo lockup ---------- */

.mark{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
.mark img{height:54px;width:auto;display:block}

footer .wordmark{display:inline-flex;align-items:center}
footer .wordmark img{height:62px;width:auto;display:block}
.topbar nav{display:flex;gap:24px}
.topbar nav a{text-decoration:none;padding-bottom:2px}
.topbar nav a:hover{color:var(--paper)}
.topbar nav a[aria-current="page"]{
  color:var(--paper);
  border-bottom:2px solid var(--amber);
}

/* ---------- hero (home) ---------- */

.hero{padding:64px 0 72px}
.hero h1{
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(2.5rem,7vw,5.4rem);
  line-height:1.03;
  margin:0;
  max-width:15ch;
  letter-spacing:-.02em;
}
.lede{
  font-size:clamp(1.05rem,2vw,1.28rem);
  line-height:1.52;
  max-width:50ch;
  color:rgba(251,248,241,.93);
  margin:0 0 36px;
}

/* ===========================================================
   Stage light
   A single luminous object behind the header band: an amber
   bloom ringed by marquee bulbs. It morphs slowly and, on the
   home page, scales up as the hero scrolls away.
   =========================================================== */

.stagelight{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
  /* the bloom adds light to the band rather than painting over it, so
     amber across blue stays luminous instead of turning khaki */
  mix-blend-mode:screen;
}
.sl-inner{
  position:absolute;
  top:46%;
  left:72%;
  width:0;height:0;
  display:grid;
  place-items:center;
  transform:translate3d(0,0,0) scale(1);
  will-change:transform;
}
.sl-inner > *{
  position:absolute;
  grid-area:1/1;
  border-radius:50%;
}

.orb{
  width:min(60vw,560px);
  aspect-ratio:1;
  border-radius:48% 52% 44% 56% / 52% 46% 54% 48%;
  background:
    /* the filament */
    radial-gradient(40% 36% at 38% 32%,
      rgba(255,243,219,.95) 0%,
      rgba(243,201,126,.52) 40%,
      rgba(226,165,68,.14) 68%,
      rgba(0,0,0,0) 84%),
    /* the warm body */
    radial-gradient(70% 66% at 54% 54%,
      rgba(226,165,68,.42) 0%,
      rgba(198,141,62,.18) 46%,
      rgba(0,0,0,0) 80%),
    /* cool rim light, so it reads as a sphere and not a smear */
    radial-gradient(52% 48% at 67% 73%,
      rgba(86,138,188,.34) 0%,
      rgba(46,85,122,.12) 46%,
      rgba(0,0,0,0) 78%);
}

/* rings of bulbs */
.ring{
  aspect-ratio:1;
  border:1px dotted rgba(251,248,241,.26);
}
.r1{width:min(76vw,700px)}
.r2{width:min(92vw,860px);border-color:rgba(251,248,241,.18)}
.r3{width:min(110vw,1020px);border-color:rgba(251,248,241,.12)}

/* keeps the headline legible where it crosses the bloom */
.band::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(100deg,
    rgba(20,48,78,.82) 0%,
    rgba(20,48,78,.46) 34%,
    rgba(20,48,78,0) 62%);
}

/* inner pages carry a smaller, quieter version */
.band.inner .sl-inner{top:50%;left:80%}
.band.inner .orb{width:min(46vw,400px);opacity:.82}
.band.inner .r1{width:min(58vw,500px)}
.band.inner .r2{width:min(70vw,620px)}
.band.inner .r3{width:min(84vw,740px)}

@media (prefers-reduced-motion: no-preference){
  .orb{animation:orbmorph 26s ease-in-out infinite}
  .r1{animation:ringspin 80s linear infinite}
  .r2{animation:ringspin 120s linear infinite reverse}
  .r3{animation:ringspin 170s linear infinite}
}
@keyframes orbmorph{
  0%,100%{border-radius:48% 52% 44% 56% / 52% 46% 54% 48%;transform:rotate(0deg) scale(1)}
  33%    {border-radius:56% 44% 52% 48% / 46% 54% 46% 54%;transform:rotate(5deg) scale(1.03)}
  66%    {border-radius:43% 57% 49% 51% / 57% 43% 57% 43%;transform:rotate(-4deg) scale(.975)}
}
@keyframes ringspin{to{transform:rotate(360deg)}}

@media (max-width:640px){
  .sl-inner{top:40%;left:78%}
  .orb{width:min(92vw,420px)}
  .band::before{
    background:linear-gradient(170deg,
      rgba(20,48,78,.80) 0%,
      rgba(20,48,78,.52) 46%,
      rgba(20,48,78,.12) 100%);
  }
}

/* ---------- page head (inner pages) ---------- */

.pagehead{padding:60px 0 68px}
.pagehead h1{
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(2.1rem,5vw,3.6rem);
  line-height:1.08;
  margin:0 0 18px;
  max-width:18ch;
  letter-spacing:-.015em;
}
.pagehead p{
  font-size:clamp(1rem,1.8vw,1.18rem);
  line-height:1.55;
  max-width:52ch;
  color:rgba(251,248,241,.9);
  margin:0;
}

/* ---------- bulbs motif ---------- */

.bulbs{display:flex;gap:9px;margin:28px 0 24px}
.bulbs span{
  width:8px;height:8px;border-radius:50%;
  background:var(--amber);opacity:.28;
  animation:warm 2.6s ease-in-out infinite;
}
.bulbs span:nth-child(2){animation-delay:.18s}
.bulbs span:nth-child(3){animation-delay:.36s}
.bulbs span:nth-child(4){animation-delay:.54s}
.bulbs span:nth-child(5){animation-delay:.72s}
.bulbs span:nth-child(6){animation-delay:.9s}
@keyframes warm{0%,100%{opacity:.25}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .bulbs span{animation:none;opacity:.85}
  html{scroll-behavior:auto}
}

/* ---------- buttons ---------- */

.actions{display:flex;gap:14px;flex-wrap:wrap}
.btn{
  display:inline-block;padding:14px 26px;
  background:var(--amber);color:var(--amber-ink);
  text-decoration:none;font-weight:600;font-size:15px;
  border:1px solid var(--amber);cursor:pointer;
  font-family:var(--body);
  transition:background .15s ease,border-color .15s ease;
}
.btn:hover{background:var(--amber-deep);border-color:var(--amber-deep)}
.btn.ghost{background:transparent;color:var(--paper);border:1px solid rgba(251,248,241,.52)}
.btn.ghost:hover{border-color:var(--paper);background:rgba(251,248,241,.1)}
.btn.dark{background:var(--harbour);color:var(--paper);border-color:var(--harbour)}
.btn.dark:hover{background:var(--harbour-deep);border-color:var(--harbour-deep)}

a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--harbour);
  outline-offset:3px;
}
.band a:focus-visible,.dark a:focus-visible,footer a:focus-visible,
.tier.lead a:focus-visible{outline-color:var(--amber)}

/* ---------- statement ---------- */

.statement p{
  font-family:var(--display);
  font-size:clamp(1.4rem,3.1vw,2.1rem);
  line-height:1.38;
  max-width:24ch;
  margin:0;
}
.statement .sub{
  font-family:var(--body);
  font-size:17px;line-height:1.65;
  max-width:58ch;margin-top:28px;
  color:var(--ink-soft);
}

/* ---------- who / column grid ---------- */

.tint{background:var(--paper-deep)}

.cols{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(196px,1fr));
  gap:28px;
}
.cols > div{border-top:2px solid var(--harbour);padding-top:18px;min-width:0}
.cols h3{
  font-family:var(--body);font-size:16px;font-weight:600;
  margin:0 0 8px;
}
.cols p{margin:0;color:var(--ink-soft);font-size:15.5px;max-width:34ch}

/* ---------- service rows ---------- */

/* ---------- quadrants (home: what we do) ---------- */

.quads{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  background:var(--rule);
  border:1px solid var(--rule);
}
.quad{
  background:var(--paper);
  padding:38px 36px 40px;
  min-width:0;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  transition:background .18s ease;
}
a.quad:hover{background:var(--paper-light)}
.quad .tag{
  font-size:12.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--harbour);
  font-weight:600;
  margin-bottom:16px;
}
.quad h3{
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(1.4rem,2.4vw,1.85rem);
  line-height:1.15;
  margin:0 0 12px;
  letter-spacing:-.01em;
}
.quad p{
  margin:0;
  color:var(--ink-soft);
  font-size:15.5px;
  line-height:1.6;
}
a.quad::after{
  content:"";
  display:block;
  width:26px;
  height:2px;
  background:var(--amber);
  margin-top:20px;
  opacity:0;
  transition:opacity .18s ease;
}
a.quad:hover::after,
a.quad:focus-visible::after{opacity:1}

/* expandable "what's included" inside a quadrant */

.quad .more{
  margin-top:auto;
  padding-top:30px;
}
.quad .more summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  list-style:none;
  padding-top:22px;
  border-top:1px solid var(--rule);
  font-size:13px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--harbour);
}
.quad .more summary::-webkit-details-marker{display:none}
.quad .more summary::after{
  content:"";
  flex:0 0 auto;
  width:7px;height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
  transition:transform .2s ease;
}
.quad .more[open] summary::after{transform:translateY(1px) rotate(-135deg)}
.quad .more summary:hover{color:var(--nerano)}
.quad .more summary:focus-visible{outline:2px solid var(--harbour);outline-offset:3px}
.quad .more ul{
  margin:22px 0 4px;
  padding-left:20px;
  color:var(--ink-soft);
  font-size:15px;
  line-height:1.62;
}
.quad .more li{margin-bottom:13px;padding-left:4px}
.quad .more li:last-child{margin-bottom:0}

.rows{border-top:1px solid var(--rule)}
.row{
  display:grid;
  grid-template-columns:minmax(0,8rem) minmax(0,1fr);
  gap:12px 44px;
  padding-block:38px;
  border-bottom:1px solid var(--rule);
  align-items:start;
}
.row > div{min-width:0}
.row .tag{font-size:13.5px;color:var(--harbour);line-height:1.45;padding-top:9px;font-weight:500}
.row h3{
  font-family:var(--display);font-weight:400;
  font-size:clamp(1.45rem,2.8vw,1.95rem);
  margin:0 0 10px;line-height:1.15;
}
.row p{margin:0 0 14px;max-width:62ch;color:var(--ink-soft)}
.row p:last-child{margin-bottom:0}
.row ul{margin:0;padding-left:20px;color:var(--ink-soft);max-width:58ch}
.row li{margin-bottom:6px}

/* ---------- process (deep blue) ---------- */

.dark{background:var(--nerano);color:var(--paper)}
.dark h2{color:var(--paper)}
.dark .cols > div{border-top-color:var(--amber)}
.dark .cols h3{color:var(--paper)}
.dark .cols p{color:rgba(251,248,241,.8)}

.steps{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:40px;
}
.steps .num{
  font-family:var(--display);
  font-size:2.6rem;color:var(--amber);
  display:block;margin-bottom:12px;line-height:1;
}
.steps h3{
  font-family:var(--body);font-size:16px;font-weight:600;
  margin:0 0 8px;color:var(--paper);
}
.steps p{margin:0;color:rgba(251,248,241,.8);font-size:15.5px;max-width:36ch}

/* ---------- tiers ---------- */

.tiers-lede{
  font-size:16.5px;
  line-height:1.6;
  color:var(--ink-soft);
  max-width:62ch;
  margin:-26px 0 40px;
}

.tiers{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:24px;
  align-items:start;
}
/* wide screens: the lead tier is wider, taller and lifted above the others */
@media (min-width:900px){
  .tiers{grid-template-columns:1fr 1fr 1.24fr}
  .tier.lead{margin-top:-18px;padding:42px 34px 44px}
}
.tier{
  background:var(--paper-light);
  padding:34px 30px;
  border-radius:14px;
  display:flex;flex-direction:column;gap:12px;
  min-width:0;
}
.tier.lead{background:var(--harbour);color:var(--paper)}
.tier h3{
  font-family:var(--display);font-weight:400;
  font-size:1.7rem;margin:0;line-height:1.15;
}
.tier .what{font-size:15px;color:var(--harbour);margin:0;font-weight:500}
.tier.lead .what{color:var(--amber-light)}
.tier ul{margin:8px 0 0;padding-left:18px;font-size:15.5px;color:var(--ink-soft)}
.tier.lead ul{color:rgba(251,248,241,.88)}
.tier li{margin-bottom:7px}

/* the recommended tier */

.tier.lead{
  box-shadow:0 0 0 1px var(--harbour), 0 16px 34px rgba(20,48,78,.16);
}
.tier .badge{
  align-self:flex-start;
  background:var(--amber);
  color:var(--amber-ink);
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:6px 11px;
  border-radius:999px;
  margin-bottom:2px;
}
.tier .why{
  font-size:14.5px;
  line-height:1.55;
  color:var(--ink-faint);
  margin:auto 0 0;
  padding-top:20px;
}
.tier.lead .why{color:rgba(251,248,241,.82)}
.tier .btn{margin-top:22px;align-self:flex-start;padding:12px 22px}

/* ---------- about ---------- */

.split{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);
  gap:48px;align-items:start;
}
.steps li{min-width:0}
.split h2{margin:0}
.split p{max-width:58ch;color:var(--ink-soft)}
.split p:first-child{color:var(--ink)}

/* ---------- note ---------- */

.note{
  background:var(--paper-light);
  border-left:3px solid var(--amber);
  padding:22px 26px;
  font-size:15.5px;
  color:var(--ink-soft);
  max-width:64ch;
  margin:0;
}

/* ---------- form ---------- */

.formwrap{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:64px;align-items:start;
}
.formwrap > div{min-width:0}

form{display:flex;flex-direction:column;gap:22px}
.field{display:flex;flex-direction:column;gap:7px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:22px}

label{
  font-size:14px;font-weight:600;
  letter-spacing:.01em;
}
label .opt{font-weight:400;color:var(--ink-faint);font-size:13px}

input,select,textarea{
  font-family:var(--body);
  font-size:16px;
  color:var(--ink);
  background:var(--paper-light);
  border:1px solid var(--rule);
  border-radius:4px;
  padding:13px 14px;
  width:100%;
}
input:hover,select:hover,textarea:hover{border-color:rgba(28,39,53,.36)}
textarea{min-height:140px;resize:vertical;line-height:1.55}
select{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23575F6B' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:38px;
}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.formnote{font-size:14px;color:var(--ink-faint);margin:0}

.status{
  padding:16px 18px;
  font-size:15.5px;
  border-radius:4px;
  display:none;
}
.status.ok{display:block;background:#E4EDE6;color:#27432F;border:1px solid #B7CDBD}
.status.err{display:block;background:#F5E6E2;color:#5C2C22;border:1px solid #DCBDB4}

.aside h3{
  font-family:var(--body);font-size:15px;font-weight:600;
  margin:0 0 10px;
}
.aside p,.aside ul{color:var(--ink-soft);font-size:15.5px}
.aside ul{padding-left:20px;margin:0 0 26px}
.aside li{margin-bottom:7px}
.aside > div{margin-bottom:34px}
.aside > div:last-child{margin-bottom:0}

/* ---------- footer ---------- */

footer{
  background:var(--nerano);
  color:rgba(251,248,241,.8);
  padding:60px 0 48px;
  font-size:15px;
}
footer .cta-line{
  font-family:var(--display);
  font-size:clamp(1.5rem,3.4vw,2.2rem);
  color:var(--paper);
  margin:0 0 30px;max-width:20ch;line-height:1.2;
}
footer .row-foot{
  display:flex;justify-content:space-between;gap:28px;
  flex-wrap:wrap;align-items:baseline;
}
footer a{text-decoration:none}
footer a:hover{color:var(--paper)}
footer nav{display:flex;gap:20px;margin-top:8px;font-size:14.5px}
.wordmark{font-family:var(--display);font-size:1.45rem;color:var(--paper)}

/* ---------- responsive ---------- */

@media (max-width:820px){
  .formwrap{grid-template-columns:1fr;gap:48px}
  .split{grid-template-columns:1fr;gap:26px}
}

@media (max-width:640px){
  section{padding-block:58px}
  .wrap{
    padding-left:max(20px, env(safe-area-inset-left, 0px));
    padding-right:max(20px, env(safe-area-inset-right, 0px));
  }
  .quads{grid-template-columns:1fr}
  .quad{padding:30px 24px 32px}
  .row{grid-template-columns:1fr;gap:6px}
  .row .tag{padding-top:0;order:-1}
  .pair{grid-template-columns:1fr;gap:22px}
  .topbar{padding-top:22px}
  .topbar nav{gap:18px}
  .mark img{height:42px}
  footer .wordmark img{height:50px}
  .hero{padding:48px 0 56px}
  .pagehead{padding:44px 0 52px}
}

/* ===========================================================
   Motion
   Hidden states apply only when JS has added .reveal-on and the
   reader has not asked for reduced motion, so the site is fully
   legible with JS off or motion turned down.
   =========================================================== */

@media (prefers-reduced-motion: no-preference){

  .reveal-on [data-reveal] :is(
    .act, h1, h2, .lede, .actions, .bulbs, .statement p, .cols > div,
    .quad, .clients li, .tier, .split > div, .work-lede, .work-note,
    .fund-lede, .tiers-lede, .cta-line, .formwrap > div
  ){
    opacity:0;
    transform:translateY(18px);
  }

  .reveal-on [data-reveal].in :is(
    .act, h1, h2, .lede, .actions, .bulbs, .statement p, .cols > div,
    .quad, .clients li, .tier, .split > div, .work-lede, .work-note,
    .fund-lede, .tiers-lede, .cta-line, .formwrap > div
  ){
    opacity:1;
    transform:none;
    transition:
      opacity .66s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
      transform .66s cubic-bezier(.2,.7,.2,1) var(--d, 0ms);
  }

  /* the lead tier settles last, so the eye finishes on it */
  .reveal-on [data-reveal].in .tier.lead{transition-delay:.26s}

  .tier{transition:transform .22s ease, box-shadow .22s ease}
  .tier:hover{transform:translateY(-3px)}
  .tier.lead:hover{transform:translateY(-3px)}

  .clients li{transition:background .22s ease}
  .clients li:hover{background:#1A3C60}
}
