/* ==========================================================================
   FriendShape — styles
   Palette: turquoise #66BCC1 · yellow #EFD034 · cream #F8F5EF · navy #102B3A
   ========================================================================== */

@font-face{font-family:"Crimson Text";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/crimson-regular.woff") format("woff")}
@font-face{font-family:"Crimson Text";font-weight:400;font-style:italic;font-display:swap;src:url("../fonts/crimson-italic.woff") format("woff")}
@font-face{font-family:"DM Sans";font-weight:100 1000;font-style:normal;font-display:swap;src:url("../fonts/dmsans.woff") format("woff")}

:root{
  --turquoise:#66BCC1;
  --yellow:#EFD034;
  --cream:#F8F5EF;
  --navy:#102B3A;
  --teal-ink:#25737B;          /* darker turquoise for text on cream (AA) */
  --ink-soft:#3C5563;          /* body text on cream */
  --serif:"Crimson Text",Georgia,"Times New Roman",serif;
  --sans:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --header-h:76px;
  --gutter:clamp(1.25rem,5vw,4rem);
  --ease:cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--header-h);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--cream);color:var(--navy);font-family:var(--sans);font-size:1.0625rem;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{display:block;max-width:100%;height:auto}
h1,h2,h3,p,figure,ul{margin:0}
ul{padding:0;list-style:none}
a{color:inherit}
em{font-style:italic}
:focus-visible{outline:3px solid var(--navy);outline-offset:3px;border-radius:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:1rem;top:-4rem;z-index:200;background:var(--navy);color:var(--cream);padding:.7rem 1rem;border-radius:4px;text-decoration:none;transition:top .2s}
.skip:focus{top:1rem}
.wrap{max-width:1280px;margin-inline:auto;padding-inline:var(--gutter)}

/* shared type */
h1,h2,h3{font-family:var(--serif);font-weight:400;letter-spacing:-.012em;line-height:1.04}
h2{font-size:clamp(2.6rem,6vw,5rem)}
h2 em,h3 em{font-style:italic}
.eyebrow{display:flex;align-items:center;gap:.7rem;font-size:.8125rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--teal-ink);margin-bottom:1.6rem}
.eyebrow--light{color:var(--turquoise)}
.orbs{display:inline-flex;gap:4px}
.orbs::before,.orbs::after{content:"";width:9px;height:9px;border-radius:50%}
.orbs::before{background:var(--turquoise)}
.orbs::after{background:var(--yellow)}

/* ============ HEADER ============ */
.site-header{position:fixed;inset:0 0 auto 0;z-index:100;height:var(--header-h);background:var(--cream);transition:box-shadow .3s}
.site-header.is-scrolled{box-shadow:0 1px 0 rgba(16,43,58,.1)}
.header-inner{height:100%;max-width:1440px;margin-inline:auto;padding-inline:var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:2rem}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none}
.brand-mark{height:44px;width:auto}
.brand-word{height:24px;width:auto}
.nav ul{display:flex;gap:clamp(1.2rem,2.6vw,2.6rem)}
.nav a{position:relative;display:inline-block;padding:.5rem 0;font-size:.9375rem;font-weight:500;text-decoration:none;letter-spacing:.01em}
.nav a::after{content:"";position:absolute;left:0;right:0;bottom:.15rem;height:2px;background:var(--yellow);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease)}
.nav a:hover::after,.nav a.is-active::after{transform:scaleX(1)}
.menu-btn{display:none;position:relative;width:46px;height:46px;background:none;border:0;cursor:pointer;color:var(--navy)}
.menu-btn span{position:absolute;left:11px;right:11px;height:2px;background:currentColor;border-radius:2px;transition:transform .3s var(--ease),top .3s var(--ease)}
.menu-btn span:nth-child(1){top:18px}
.menu-btn span:nth-child(2){top:27px}
.menu-open .menu-btn span:nth-child(1){top:22px;transform:rotate(45deg)}
.menu-open .menu-btn span:nth-child(2){top:22px;transform:rotate(-45deg)}

/* ============ 1 · HERO ============ */
.hero{position:relative;min-height:max(640px,100svh);padding-top:var(--header-h);display:flex;flex-direction:column;justify-content:flex-start;color:#fff;overflow:hidden;background:var(--navy)}
.hero-media{position:absolute;inset:0}
.hero-media img{width:100%;height:100%;object-fit:cover;object-position:50% 70%;animation:settle 2.4s var(--ease) both}
.hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,43,58,.42) 0%,rgba(16,43,58,.18) 38%,transparent 62%),linear-gradient(180deg,rgba(16,43,58,.55) 0%,rgba(16,43,58,.3) 26%,rgba(16,43,58,.04) 50%,transparent 60%)}
@keyframes settle{from{transform:scale(1.07)}to{transform:scale(1)}}
.hero-copy{position:relative;z-index:1;max-width:1440px;width:100%;margin-inline:auto;padding:clamp(2rem,6vh,4.5rem) var(--gutter) 0}
.hero h1{font-size:clamp(3.1rem,7.4vw,7rem);line-height:.98;max-width:12ch;text-shadow:0 2px 30px rgba(16,43,58,.35);animation:rise 1.1s .25s var(--ease) both}
.hero h1 span{font-style:italic;color:var(--yellow)}
.hero-lead{margin-top:1.4rem;max-width:30rem;font-size:clamp(1.05rem,1.5vw,1.25rem);line-height:1.55;text-shadow:0 1px 18px rgba(16,43,58,.5);animation:rise 1.1s .45s var(--ease) both}
.cta{display:inline-flex;align-items:center;gap:.75rem;margin-top:1.9rem;padding:.9rem 1.5rem .9rem 1.7rem;border:1.5px solid rgba(255,255,255,.85);border-radius:999px;color:#fff;text-decoration:none;font-weight:500;font-size:.98rem;letter-spacing:.02em;background:rgba(16,43,58,.25);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .3s,color .3s,border-color .3s;animation:rise 1.1s .65s var(--ease) both}
.cta svg{transition:transform .3s var(--ease)}
.cta:hover{background:var(--yellow);border-color:var(--yellow);color:var(--navy)}
.cta:hover svg{transform:translateY(3px)}
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}

/* ============ 2 · PHILOSOPHY ============ */
.philosophy{padding:clamp(5rem,11vw,10rem) 0}
.philosophy-grid{display:grid;grid-template-columns:1fr;gap:clamp(2.5rem,6vw,5rem);align-items:center}
.philosophy h2 em{color:var(--teal-ink)}
.body-lg{margin-top:2rem;max-width:34rem;font-size:clamp(1.1rem,1.5vw,1.3rem);line-height:1.7;color:var(--ink-soft)}
.pull{margin-top:2rem;max-width:26rem;font-family:var(--serif);font-style:italic;font-size:clamp(1.6rem,2.6vw,2.15rem);line-height:1.2;padding-left:1.25rem;border-left:3px solid var(--yellow)}
.philosophy-photo{position:relative}
.philosophy-photo img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:2px}
@media (min-width:900px){
  .philosophy-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)}
  .philosophy-photo img{aspect-ratio:4/5;border-radius:2px}
}

/* ============ 3 · PILLARS ============ */
.pillars{background:var(--navy);color:var(--cream);padding:clamp(5rem,10vw,9rem) 0 clamp(5rem,9vw,8rem)}
.pillars-head{margin-bottom:clamp(3rem,6vw,5.5rem)}
.pillars h2 em{color:var(--yellow)}
.pillars .wrap{max-width:1680px;padding-inline:clamp(1.25rem,3.2vw,3rem)}   /* wider than other sections so the photographs get more room */
.pillar-grid{display:grid;grid-template-columns:1fr;gap:3.25rem}
.pillar{--accent:var(--turquoise);scroll-margin-top:calc(var(--header-h) + 1.5rem)}
.pillar--b{--accent:var(--yellow)}
.pillar-img{position:relative;overflow:hidden;border-radius:2px}
.pillar-img img{width:100%;aspect-ratio:4/5;object-fit:cover;transition:transform 1.2s var(--ease)}
.pillar:hover .pillar-img img{transform:scale(1.04)}
.pillar-img::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--accent)}
.pillar{transition:opacity .5s}
.pillar-grid.has-focus .pillar:not(.is-focus){opacity:.45}
.pillar.is-focus .pillar-img::after{height:8px}
.pillar.is-focus .pillar-img img{transform:scale(1.05)}
.pillar-no{display:block;margin-top:1.5rem;font-size:.8125rem;font-weight:600;letter-spacing:.2em;color:var(--accent)}
.pillar h3{margin-top:.5rem;font-size:clamp(2.1rem,3vw,2.8rem);line-height:1.05}
.pillar h3 em{color:var(--accent)}
.pillar p{margin-top:1rem;max-width:26rem;color:rgba(248,245,239,.82);font-size:1rem;line-height:1.65}
@media (min-width:640px){
  .pillar-grid{grid-template-columns:repeat(2,1fr);gap:4rem 2rem}
  .pillar-img img{aspect-ratio:3/4}
}
@media (min-width:1100px){
  .pillar-grid{grid-template-columns:repeat(4,1fr);gap:clamp(1.25rem,2vw,2rem)}
  .pillar:nth-child(even){margin-top:5rem;scroll-margin-top:calc(var(--header-h) + 6.5rem)}   /* editorial stagger; offset keeps all four links landing at the same height */
}

/* ============ 4 · INSPIRATION ============ */
.inspire{display:grid;grid-template-columns:1fr;background:var(--turquoise);color:var(--navy)}
.inspire-copy{padding:clamp(4rem,9vw,8rem) var(--gutter);display:flex;flex-direction:column;justify-content:center}
.inspire h2{font-size:clamp(2.6rem,5.4vw,4.9rem);max-width:12ch}
.inspire mark{background:linear-gradient(transparent 62%,var(--yellow) 62% 92%,transparent 92%);color:inherit;font-style:italic;padding:0 .08em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.inspire-text{margin-top:2.6rem;max-width:30rem}
.inspire-first{font-family:var(--serif);font-size:clamp(1.5rem,2.3vw,2rem);line-height:1.2}
.inspire-lines{margin-top:1.4rem;font-size:clamp(1.05rem,1.4vw,1.2rem);line-height:1.85}
.inspire-last{margin-top:1.6rem;font-family:var(--serif);font-style:italic;font-size:clamp(1.5rem,2.3vw,2rem);line-height:1.2}
.inspire-photo{position:relative;min-height:108vw}
.inspire-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:30% 50%}
@media (min-width:900px){
  .inspire{grid-template-columns:5fr 7fr;min-height:min(100svh,920px)}
  .inspire-photo{min-height:0}
}

/* ============ 5 · CLOSING ============ */
.closing{position:relative;min-height:max(720px,120svh);display:flex;align-items:flex-start;color:#fff;overflow:hidden;background:var(--navy)}
.closing-media{position:absolute;inset:0}
.closing-media img{width:100%;height:100%;object-fit:cover;object-position:50% 62%}
.closing-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,43,58,.9) 0%,rgba(16,43,58,.72) 28%,rgba(16,43,58,.45) 42%,rgba(16,43,58,.08) 60%,transparent 70%)}
.closing-copy{position:relative;z-index:1;width:100%;max-width:1280px;margin-inline:auto;padding:clamp(5rem,12vh,9rem) var(--gutter) 0;text-align:center}
.closing-kicker{font-size:.8125rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--yellow);margin-bottom:1.6rem}
.closing h2{font-size:clamp(2.7rem,6.6vw,5.8rem);line-height:1.02;text-shadow:0 2px 30px rgba(16,43,58,.4)}
.closing h2 em{color:var(--turquoise)}
.closing-lead{margin:1.8rem auto 0;max-width:30rem;font-size:clamp(1.05rem,1.5vw,1.25rem);text-shadow:0 1px 14px rgba(16,43,58,.6)}

.site-footer{background:var(--navy);color:var(--cream);text-align:center;padding:clamp(4rem,8vw,6.5rem) var(--gutter) 2rem}
.signoff-logo{width:clamp(190px,24vw,290px);height:auto;margin-inline:auto}
.signoff-tag{margin-top:2rem;font-family:var(--serif);font-size:clamp(1.6rem,3vw,2.4rem);letter-spacing:.005em}
.signoff-tag em{color:var(--yellow)}
.legal{margin-top:3.5rem;padding-top:1.5rem;border-top:1px solid rgba(248,245,239,.16);font-size:.85rem;color:rgba(248,245,239,.62)}

/* ============ SCROLL REVEAL ============ */
.js .reveal{opacity:0;transform:translateY(26px);transition:opacity 1s var(--ease),transform 1s var(--ease)}
.js .reveal.is-in{opacity:1;transform:none}
.pillar-grid .reveal:nth-child(2){transition-delay:.1s}
.pillar-grid .reveal:nth-child(3){transition-delay:.2s}
.pillar-grid .reveal:nth-child(4){transition-delay:.3s}

/* ============ MOBILE / TABLET NAV ============ */
@media (max-width:860px){
  :root{--header-h:64px}
  .brand-mark{height:38px}
  .brand-word{height:20px}
  .menu-btn{display:block}
  .nav{position:fixed;inset:var(--header-h) 0 auto 0;height:calc(100dvh - var(--header-h));background:var(--cream);padding:2.5rem var(--gutter);transform:translateY(-12px);opacity:0;visibility:hidden;transition:opacity .3s,transform .3s var(--ease),visibility .3s}
  .menu-open .nav{opacity:1;transform:none;visibility:visible}
  .nav ul{flex-direction:column;gap:.4rem}
  .nav a{font-family:var(--serif);font-size:2.3rem;padding:.4rem 0;line-height:1.1}
  .nav a::after{bottom:.3rem}
  .menu-open{overflow:hidden}
}

/* Short screens (small laptops, landscape phones): smaller headline, text stays over sky */
@media (min-width:641px) and (max-height:780px){
  .hero h1{font-size:clamp(2.8rem,6.2vw,4.5rem);max-width:none}
  .hero-copy{padding-top:1.5rem}
  .hero-lead{font-size:1rem;max-width:25rem;margin-top:1rem}
  .cta{margin-top:1.3rem}
}

/* Mobile hero: keep the people visible, text sits in the sky */
@media (max-width:640px){
  .hero{min-height:max(600px,100svh)}
  .hero-media img{object-position:63% 70%}
  .hero-media::after{background:linear-gradient(180deg,rgba(16,43,58,.64) 0%,rgba(16,43,58,.47) 36%,rgba(16,43,58,.08) 62%,transparent 72%)}
  .hero-lead{font-size:1.02rem}
  .closing{min-height:max(680px,100svh)}
  .closing-media img{object-position:14% 78%}
}

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