/* =========================================================
   Greysail Partners: shared styles
   Calm, illustrated, nautical-chart inspired.
   ========================================================= */
:root{
  /* Brand palette: Greysail brand identity */
  --charcoal:#1f2933;
  --slate-brand:#3d454f;
  --silver:#8c9196;
  --stone:#d2d6d9;
  --ivory:#f7f7f5;
  --accent:#C8553D;                  /* signal coral: used only on the suns */

  --paper:var(--ivory);
  --paper-2:#eceeef;            /* tint between Ivory and Stone */
  --ink:var(--charcoal);
  --ink-soft:var(--slate-brand);
  --slate:var(--silver);
  --mist:var(--stone);
  --sea:var(--slate-brand);
  --sand:var(--stone);
  --brass:var(--silver);
  --rule:rgba(31,41,51,.85);
  --rule-soft:rgba(31,41,51,.16);
  --gutter:clamp(16px,4.5vw,56px);
  --max:1280px;
  --serif:"Cormorant Garamond",Georgia,serif;
  --sans:"Montserrat",system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--paper);color:var(--ink);font-family:var(--sans);font-weight:300;font-size:15.5px;line-height:1.7;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit}
img,svg{max-width:100%}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}

/* ---------- Type ---------- */
.label{font-family:var(--sans);font-weight:400;font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--slate);display:inline-flex;align-items:center}

.display{font-family:var(--serif);font-weight:400;font-size:clamp(40px,6.4vw,92px);line-height:1.02;letter-spacing:-.01em}
.display em,.h2 em{font-style:italic;color:var(--slate)}
.h2{font-family:var(--serif);font-weight:400;font-size:clamp(32px,4.2vw,56px);line-height:1.08}
.h3{font-family:var(--sans);font-weight:500;font-size:13px;letter-spacing:.18em;text-transform:uppercase;line-height:1.4}
.lede{font-size:clamp(17px,1.5vw,20px);line-height:1.5;color:var(--ink-soft);max-width:34em}
.muted{color:var(--ink-soft)}
.link{text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:1px;transition:color .2s}
.link:hover{color:var(--slate)}
.arrow-link{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-weight:400}
.arrow-link svg{transition:transform .3s}
.arrow-link:hover svg{transform:translateX(6px)}

/* ---------- Header ---------- */
.header{position:fixed;inset:0 0 auto 0;z-index:50;background:color-mix(in srgb,var(--paper) 96%,transparent)}   /* no backdrop blur: it made Chrome redraw on every scroll frame */
/* Animations pause while their part of the page is off screen (set by site.js), so scrolling stays light */
.anim-off,.anim-off *{animation-play-state:paused!important}
.header .wrap{height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--rule)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}
.brand .logo-wide{display:block;height:40px;width:216px}
.brand .logo-full{display:block;width:190px;height:auto}
.nav{display:flex;gap:30px;font-size:14px;white-space:nowrap}
.nav a{text-decoration:none;position:relative;padding:4px 0}
.nav a::after{content:"";position:absolute;left:0;right:100%;bottom:0;height:1px;background:var(--ink);transition:right .3s}
.nav a:hover::after,.nav a[aria-current="page"]::after{right:0}
.nav .pill{border:1px solid var(--ink);border-radius:99px;padding:4px 14px}
.nav .pill::after{display:none}
.nav .pill:hover{background:var(--ink);color:var(--paper)}
.menu-btn{display:none;width:40px;height:40px;margin-right:-9px;background:none;border:0;cursor:pointer;place-items:center}
.menu-btn i{display:block;width:22px;height:1px;background:var(--ink);position:relative;transition:background .2s}
.menu-btn i::before,.menu-btn i::after{content:"";position:absolute;left:0;width:22px;height:1px;background:var(--ink);transition:transform .3s}
.menu-btn i::before{top:-6px}.menu-btn i::after{top:6px}
body.menu-open .menu-btn i{background:transparent}
body.menu-open .menu-btn i::before{transform:translateY(6px) rotate(45deg)}
body.menu-open .menu-btn i::after{transform:translateY(-6px) rotate(-45deg)}
.mobile-menu{position:fixed;inset:0;z-index:40;background:var(--paper);padding:100px var(--gutter) 40px;display:flex;flex-direction:column;justify-content:space-between;opacity:0;pointer-events:none;transition:opacity .35s}
body.menu-open .mobile-menu{opacity:1;pointer-events:auto}
.mobile-menu nav,.mobile-menu > p{width:100%;max-width:calc(var(--max) - 2 * var(--gutter));margin:0 auto}
.mobile-menu a{display:block;text-decoration:none;font-family:var(--serif);font-size:clamp(36px,4.4vw,56px);line-height:1.2;border-bottom:1px solid var(--rule-soft);padding:6px 0;transition:color .25s,padding-left .35s}
.mobile-menu a:hover{padding-left:12px}
.mobile-menu a[aria-current="page"]{color:var(--slate);font-style:italic}
@media (max-width:1000px){
  .nav{display:none}
  .menu-btn{display:grid}
}

/* ---------- Sections ---------- */
section{position:relative}
.pad{padding:clamp(56px,7vw,104px) 0}
.rule-top{border-top:1px solid var(--rule-soft)}
.grid-2{display:grid;grid-template-columns:5fr 7fr;gap:clamp(32px,6vw,96px)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,3vw,40px)}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(18px,2.4vw,32px)}
@media (max-width:1080px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:860px){.grid-2,.grid-3{grid-template-columns:1fr}}
@media (max-width:600px){.grid-4{grid-template-columns:1fr}}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{padding:clamp(112px,13vw,160px) 0 clamp(44px,6vw,72px)}
.page-hero .wrap{display:grid;grid-template-columns:7fr 5fr;gap:40px;align-items:end}
.page-hero .display{margin:22px 0 26px}
.page-hero .art{justify-self:end;width:min(100%,380px)}
/* Every page's heading starts on the same line, whatever the height of the drawing beside it;
   the drawing keeps its place at the bottom of the row */
.page-hero .wrap > div:first-child{align-self:start}
.page-hero .wrap > .art{align-self:end}
@media (max-width:860px){.page-hero .wrap{grid-template-columns:1fr}.page-hero .art{justify-self:start;width:auto;height:210px;max-width:80%;order:-1}}

/* ---------- Numbered list ---------- */
.numbered{list-style:none;counter-reset:n}
.numbered li{counter-increment:n;display:grid;grid-template-columns:72px 1fr;gap:16px;padding:28px 0;border-top:1px solid var(--rule-soft)}
.numbered li:last-child{border-bottom:1px solid var(--rule-soft)}
.numbered li::before{content:"0" counter(n);font-family:var(--serif);font-size:30px;line-height:1;color:var(--brass)}
.numbered h3{margin-bottom:6px}

/* ---------- Cards ---------- */
.card{background:#ffffff;border:1px solid var(--rule-soft);border-radius:4px;padding:32px}
.pillar svg{width:72px;height:72px;margin-bottom:18px}
.pillar h3{margin-bottom:10px}

/* ---------- Bands ---------- */
.band-sand{background:var(--sand)}
.band-mist{background:var(--paper-2)}
.quote{font-family:var(--serif);font-size:clamp(30px,3.8vw,50px);line-height:1.15;max-width:22em}
.quote cite{display:block;margin-top:22px;font-family:var(--sans);font-style:normal;font-size:13px;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-soft)}

/* ---------- Forms ---------- */
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:22px}
.field label{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-soft);font-weight:400}
.field input,.field textarea,.field select{font:inherit;font-size:17px;color:var(--ink);background:transparent;border:0;border-bottom:1px solid var(--rule);padding:10px 0;outline:none;border-radius:0}
.field textarea{min-height:120px;resize:vertical}
.field input:focus,.field textarea:focus,.field select:focus{border-bottom-color:var(--brass);box-shadow:0 1px 0 var(--brass)}
.btn{display:inline-flex;align-items:center;gap:12px;font:inherit;font-weight:400;font-size:15px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:99px;padding:12px 26px;cursor:pointer;text-decoration:none;transition:background .2s,color .2s}
.btn:hover{background:transparent;color:var(--ink)}
.btn.ghost{background:transparent;color:var(--ink)}
.btn.ghost:hover{background:var(--ink);color:var(--paper)}
.notice{margin-top:16px;font-size:14px;color:var(--sea);min-height:1.4em}

/* ---------- Reveal on scroll ---------- */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}

/* ---------- Footer ---------- */
.footer{position:relative;background:var(--ink);color:#e8ecef;overflow:hidden}
.footer .contours{position:absolute;inset:0;width:100%;height:100%;opacity:.22;pointer-events:none}
.footer .wrap{position:relative;z-index:1;padding-top:clamp(24px,3vw,48px);padding-bottom:40px}
.footer-cta{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:32px;padding-bottom:clamp(56px,7vw,96px);border-bottom:1px solid rgba(255,255,255,.18)}
.footer-cta .h2{max-width:11em}
.footer-cta .h2 em{color:#9fb0c0}
.footer .btn{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.footer .btn:hover{background:transparent;color:var(--paper)}
.footer-cols{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;padding:48px 0}
.footer-cols h4{font-weight:400;font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:#8e9daa;margin-bottom:14px}
.footer-cols a{display:block;text-decoration:none;color:#cfd7de;font-size:15px;padding:3px 0}
.footer-cols a:hover{color:#fff}
.footer .brand{display:inline-flex;background:transparent}
/* Disclaimer: small print tucked under the logo in the footer's first column */
.footer-disclaimer{font-size:11.5px;line-height:1.7;color:#8e9daa;margin:22px 0 0;max-width:46ch}
.footer-cols .footer-disclaimer a{display:inline;padding:0;font-size:inherit;color:#cfd7de;text-decoration:underline;text-underline-offset:2px}
.footer-disclaimer a:hover{color:#fff}
.footer-legal{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:12px;color:#7c8a97}
@media (max-width:860px){.footer-cols{grid-template-columns:1fr 1fr}.footer-cols > div:first-child{grid-column:1 / -1}.footer-disclaimer{max-width:none}}

/* ---------- Set by edit mode ---------- */
[hidden]{display:none!important}
b,strong{font-weight:500}
.portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* ---------- Motion on the inner pages ----------
   Same calm, slow easing as the homepage boat and gulls. */
@keyframes rise{from{opacity:0;transform:translateY(22px)}}
.page-hero .label{animation:rise .9s ease both}
.page-hero .display{animation:rise 1s .12s ease both}
.page-hero .lede{animation:rise 1s .28s ease both}

.m-bob{animation:m-bob 5s ease-in-out infinite}
@keyframes m-bob{50%{transform:translateY(5px)}}
.m-wave{animation:m-wave 9s ease-in-out infinite}
.m-wave.slow{animation-duration:13s;animation-direction:reverse}
@keyframes m-wave{50%{transform:translateX(-22px)}}
.m-gulls{animation:m-gulls 14s ease-in-out infinite}
@keyframes m-gulls{50%{transform:translate(46px,-12px)}}
.m-ring{animation:m-turn 60s linear infinite}
/* Gulls: a few wing beats, then a long glide, each bird on its own rhythm */
.gull{animation:gull-wing 6.5s ease-in-out infinite}
.gull-2{animation-duration:7.6s;animation-delay:-2.4s}
.gull-3{animation-duration:8.4s;animation-delay:-4.6s}
@keyframes gull-wing{0%,44%,100%{d:path("M-20 1.5 C-14 -3 -8 -3.5 -1.2 0.6 Q0 1.6 1.2 0.6 C8 -3.5 14 -3 20 1.5 C14 -1.6 8 -1.6 1 1.9 Q0 2.6 -1 1.9 C-8 -1.6 -14 -1.6 -20 1.5 Z")}12%,30%{d:path("M-18 -6 C-13 -6.5 -7 -5 -1.2 0.6 Q0 1.6 1.2 0.6 C7 -5 13 -6.5 18 -6 C13 -4.6 7 -3.4 1 1.9 Q0 2.6 -1 1.9 C-7 -3.4 -13 -4.6 -18 -6 Z")}21%,38%{d:path("M-19 4 C-14 -0.5 -8 -1.5 -1.2 0.6 Q0 1.6 1.2 0.6 C8 -1.5 14 -0.5 19 4 C14 1 8 0.2 1 1.9 Q0 2.6 -1 1.9 C-8 0.2 -14 1 -19 4 Z")}}
.gull-drift{animation:gull-drift 7s ease-in-out infinite}
.gull-drift.d2{animation-duration:8.6s;animation-delay:-3s}
.gull-drift.d3{animation-duration:6.2s;animation-delay:-1.6s}
@keyframes gull-drift{50%{transform:translate(4px,-3px)}}
@keyframes m-turn{to{transform:rotate(360deg)}}

/* About: chart and compass */
.m-sway{transform-origin:180px 160px;animation:m-sway 11s ease-in-out infinite}
@keyframes m-sway{50%{transform:rotate(1.6deg)}}
.m-course{animation:m-course 3s linear infinite}
@keyframes m-course{to{stroke-dashoffset:-22}}
.m-needle{animation:m-needle 10s ease-in-out infinite}
@keyframes m-needle{0%,100%{transform:rotate(-14deg)}30%{transform:rotate(16deg)}55%{transform:rotate(-7deg)}78%{transform:rotate(9deg)}}
.m-voyage{offset-path:path("M60 230 C 120 170, 140 240, 200 180 S 280 110, 300 90");offset-rotate:0deg;animation:m-voyage 16s ease-in-out infinite alternate}
@keyframes m-voyage{from{offset-distance:0%}to{offset-distance:100%}}

/* Strategy: the tower draws itself, then its lights come and go */
.m-outline{stroke-dasharray:1;animation:m-outline 2.6s ease both}
@keyframes m-outline{from{stroke-dashoffset:1}}
.m-fill{animation:m-fade 1.6s .9s ease both}
.m-fill.late{animation-delay:1.5s}
@keyframes m-fade{from{opacity:0}}
.m-lights rect{opacity:0;animation:m-light 9s ease-in-out infinite}
.m-lights rect:nth-child(2n){animation-duration:12s;animation-delay:2s}
.m-lights rect:nth-child(3n){animation-duration:10s;animation-delay:4.5s}
.m-lights rect:nth-child(5n){animation-delay:6.5s}
@keyframes m-light{0%,20%,100%{opacity:0}45%,75%{opacity:.85}}

/* The Anchor Theory: what moves below the waterline */
.m-anchor{transform-origin:169px 250px;animation:m-anchor 7s ease-in-out infinite}
@keyframes m-anchor{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
.m-bubbles circle{opacity:0;animation:m-bubble 6s ease-in infinite}
.m-bubbles circle:nth-child(2){animation-delay:1.6s}
.m-bubbles circle:nth-child(3){animation-delay:3.1s}
.m-bubbles circle:nth-child(4){animation-delay:4.4s}
@keyframes m-bubble{15%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateY(-150px)}}

/* Team: wheel and portrait sails */
.m-wheel{animation:m-wheel 18s ease-in-out infinite}
@keyframes m-wheel{0%,100%{transform:rotate(0)}28%{transform:rotate(46deg)}55%{transform:rotate(12deg)}80%{transform:rotate(-34deg)}}
.m-sail{animation:m-sail 12s ease-in-out infinite}
.m-sail.b{animation-duration:15s;animation-direction:reverse}
@keyframes m-sail{50%{transform:translateX(14px)}}

/* Investors: turning beam */
.m-beam{transform-origin:150px 92px;animation:m-beam 10s ease-in-out infinite}
.m-beam.b{animation-delay:-5s}
@keyframes m-beam{0%,100%{transform:scaleX(1)}50%{transform:scaleX(.04)}}
.m-lamp{animation:m-lamp 5s ease-in-out infinite}
@keyframes m-lamp{50%{fill:#ffffff}}

/* Contact: buoy and signal */
.m-buoy{transform-origin:170px 230px;animation:m-buoy 6s ease-in-out infinite}
@keyframes m-buoy{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg) translateY(3px)}}
.m-ping path{animation:m-ping 3.6s ease-out infinite both}
.m-ping path:nth-child(2){animation-delay:.45s}
.m-ping path:nth-child(3){animation-delay:.9s}
@keyframes m-ping{0%,100%{opacity:.1}30%{opacity:1}}

/* Line icons draw themselves when they come into view */
.draw{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 2s ease .2s}
.in .draw{stroke-dashoffset:0}
/* Illustrated icons rise into view */
.reveal .ill{opacity:0;transform:translateY(10px);transition:opacity .9s ease .15s,transform 1.1s cubic-bezier(.3,.6,.2,1) .15s}
.reveal.in .ill{opacity:1;transform:none}
/* Lists and cards arrive one after another */
.numbered.reveal li,.reveal .focus li{opacity:0;transform:translateY(16px);transition:opacity .8s ease,transform .8s ease}
.numbered.reveal.in li,.reveal.in .focus li{opacity:1;transform:none}
.numbered li:nth-child(2),.focus li:nth-child(2),.team .member:nth-child(3n+2),.facet:nth-child(even){transition-delay:.15s}
.numbered li:nth-child(3),.focus li:nth-child(3),.team .member:nth-child(3n){transition-delay:.3s}
.numbered li:nth-child(4),.focus li:nth-child(4){transition-delay:.45s}

/* Footer swell */
.footer .contours path{animation:m-swell 11s ease-in-out infinite}
.footer .contours path:nth-child(2n){animation-duration:14s}
.footer .contours path:nth-child(3n){animation-delay:-5s}
@keyframes m-swell{50%{transform:translateY(9px)}}

/* ---------- Tight scroll: section stops used by site.js ---------- */
.snap-steps{position:absolute;inset:0;pointer-events:none}
.snap-steps i{position:absolute;left:0;width:1px;height:1px}
