/* 162 Strategies website. Matches the Squarespace design as it stood on
   2026-11-22: Instrument Serif headings with tight tracking, Helvetica body,
   black on white, a pale grey (#eaeaee) band, white type over photos.
   Light only, like the original.

   Contrast (WCAG, computed):
     black #000 on white #fff ............ 21.0
     black on band #eaeaee ............... 17.4
     muted #5b5b5b on white .............. 6.6
     white on hero photo under 45% black scrim, worst bright patch (#f1e4c4
       darkened to #85, 7d, 6c) ........... 4.6 */
:root {
  --ink: #000;
  --paper: #fff;
  --band: #eaeaee;
  --muted: #5b5b5b;
  --rule: #808080;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: max(16px, 4vw);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(17px, 1.49vw, 19px)/1.25 var(--sans);
  letter-spacing: -0.02em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(52px, 8.45vw, 108px); line-height: 0.91; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.25vw, 54px); line-height: 1.04; letter-spacing: -0.025em; }
h3 { font-size: clamp(24px, 2.9vw, 37px); line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------- header */
.site-header {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: calc(env(safe-area-inset-top, 0px) + 6px) calc(var(--gutter) + var(--safe-r)) 0 calc(var(--gutter) + var(--safe-l) - 1.2vw);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo img { width: clamp(118px, 21vw, 271px); height: auto; }
.on-dark .site-header { color: #fff; }
.on-light .site-header { color: var(--ink); }
.site-nav { padding-top: clamp(18px, 7.2vw, 92px); }
.site-nav > ul { list-style: none; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); margin: 0; padding: 0; font-size: clamp(16px, 1.49vw, 19px); line-height: 1.25; }
.site-nav a { display: inline-block; text-decoration: none; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"], .folder.current > .folder-toggle { background-size: 100% 1px; }
.folder { position: relative; }
.folder-toggle {
  display: inline-block; font: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  border: 0; padding: 4px 0; cursor: pointer; touch-action: manipulation;
}
.folder-items {
  list-style: none; margin: 0; padding: 10px 14px; position: absolute; right: -14px; top: 100%;
  background: var(--paper); color: var(--ink); white-space: nowrap; box-shadow: 0 6px 24px rgb(0 0 0 / .14);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.folder-items li + li { margin-top: 6px; }
.folder:hover .folder-items, .folder:focus-within .folder-items, .folder.open .folder-items { opacity: 1; visibility: visible; transform: none; }
.menu-toggle { display: none; }

@media (max-width: 800px) {
  .site-header { align-items: center; }
  .menu-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; margin-top: 4px;
    background: none; border: 0; color: inherit; cursor: pointer; touch-action: manipulation;
  }
  .bars, .bars::before, .bars::after { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -8px; } .bars::after { top: 8px; }
  .menu-open .bars { background: transparent; }
  .menu-open .bars::before { transform: translateY(8px) rotate(45deg); }
  .menu-open .bars::after { transform: translateY(-8px) rotate(-45deg); }
  .menu-open .menu-toggle { position: fixed; z-index: 31; top: calc(env(safe-area-inset-top, 0px) + 10px); right: calc(var(--gutter) + var(--safe-r)); color: var(--ink); }
  .site-nav {
    position: fixed; z-index: 30; inset: 0; padding: calc(env(safe-area-inset-top, 0px) + 88px) calc(var(--gutter) + var(--safe-r)) 32px calc(var(--gutter) + var(--safe-l));
    background: var(--paper); color: var(--ink); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .site-nav > ul { flex-direction: column; gap: 6px; font: 400 clamp(36px, 10vw, 46px)/1.15 var(--serif); letter-spacing: -0.02em; }
  .folder-items { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 4px 0 0 18px; font-size: .62em; background: none; }
  .folder-toggle { pointer-events: none; }
}

/* ---------------------------------------------------------- photo sections */
.hero {
  position: relative; color: #fff; isolation: isolate;
  background: #000 var(--bg) center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .3); z-index: -1; }
.hero-inner { padding: 0 calc(var(--gutter) + var(--safe-r)) 0 calc(var(--gutter) + var(--safe-l)); }
.hero-home { min-height: max(640px, min(88vw, 1125px)); display: flex; align-items: flex-end; }
.hero-home::before { background: linear-gradient(to top, rgb(0 0 0 / .55), rgb(0 0 0 / .3) 60%); }
.hero-home .hero-inner { padding-bottom: clamp(64px, 11vw, 140px); width: 100%; }
.hero-home .lede { font-size: clamp(19px, 2.09vw, 26.75px); line-height: 1.25; max-width: 19.5em; margin-bottom: clamp(40px, 7vw, 96px); }
.hero-home h1 { max-width: 12em; }
.hero-news { min-height: max(420px, min(48vw, 560px)); display: flex; align-items: flex-end; justify-content: center; text-align: center; }
/* .45 (was .32) since the 2026-11-22 hallway photo: its bright walls (about rgb 232) darken to about
   128, L 0.21, so the large white title measures about 3.9:1 (3:1 is the large-text minimum). */
.hero-news::before { background: rgb(0 0 0 / .45); }
.hero-news .hero-inner { padding-bottom: clamp(32px, 5vw, 64px); }
.hero-news h1 { font-size: clamp(40px, 5.6vw, 72px); color: rgb(255 255 255 / .92); }

/* ---------------------------------------------------------- home */
.feeds { padding: clamp(40px, 6vw, 80px) var(--gutter); display: grid; gap: clamp(32px, 5vw, 64px); }
.feeds > div { width: min(988px, 100%); margin: 0 auto; min-height: 200px; }
.statements { background: var(--band); padding: clamp(64px, 11vw, 140px) calc(var(--gutter) + 1.5vw); display: grid; gap: 1.1em; }
.statements h2 { max-width: 23em; }
/* Photo behind the statements (2026-11-22). The scrim keeps the black text at 12:1 or better
   over the darkest part of the photo: rgb 234 blended 78% with a 60-grey shadow is about 196, L 0.55. */
.statements.photo { position: relative; isolation: isolate; background: var(--band) var(--bg) center / cover no-repeat; }
.statements.photo::before { content: ""; position: absolute; inset: 0; background: rgb(244 244 246 / .80); z-index: -1; }
.collage {
  position: relative; isolation: isolate; background: var(--band) var(--bg) center / cover no-repeat;
  padding: clamp(48px, 9vw, 120px) var(--gutter);
}
.collage::before { content: ""; position: absolute; inset: 0; background: rgb(234 234 238 / .47); z-index: -1; }
.collage ul {
  list-style: none; margin: 0 auto; padding: 0; width: min(1000px, 100%);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 6vw, 90px) clamp(16px, 9vw, 120px);
}
.collage li { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 2px 14px rgb(0 0 0 / .18); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage li:nth-child(2) { transform: translateY(-4%); }
.collage li:nth-child(5) { transform: translateY(4%); }
.collage li:nth-child(8) { transform: translateY(-4%); }
@media (max-width: 560px) {
  .collage ul { grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
  .collage li:nth-child(n) { transform: none; }
  .collage li:nth-child(even) { transform: translateY(18%); }
}

/* ---------------------------------------------------------- highlights */
.intro { padding: clamp(150px, 27vw, 330px) calc(var(--gutter) + 6vw) clamp(40px, 6vw, 72px); text-align: center; display: grid; gap: .8em; }
.intro h3 { max-width: 30em; margin: 0 auto; }
.gallery { padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.masonry { list-style: none; margin: 0; padding: 0; columns: 4 150px; column-gap: clamp(8px, 1vw, 12px); }
.masonry li { break-inside: avoid; margin-bottom: clamp(8px, 1vw, 12px); }
.masonry a { display: block; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; background: var(--band); }
.lightbox {
  position: fixed; inset: 0; z-index: 40; background: rgb(255 255 255 / .97);
  display: grid; place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 56px) calc(var(--safe-r) + 56px) calc(env(safe-area-inset-bottom, 0px) + 48px) calc(var(--safe-l) + 56px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; touch-action: manipulation;
  font: 400 40px/1 var(--serif); width: 48px; height: 48px; border-radius: 50%;
}
.lb-close { top: calc(env(safe-area-inset-top, 0px) + 6px); right: calc(var(--safe-r) + 8px); }
.lb-prev { left: calc(var(--safe-l) + 4px); top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(var(--safe-r) + 4px); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); left: 0; right: 0; text-align: center; margin: 0; color: var(--muted); font-size: 15px; }
.lightbox-open { overflow: hidden; }

/* ---------------------------------------------------------- news */
.news-grid { padding: clamp(48px, 7vw, 96px) var(--gutter); }
.news-grid ul { list-style: none; margin: 0 auto; padding: 0; width: min(1100px, 100%); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 40px); }
.news-grid .thumb { display: block; aspect-ratio: 16 / 10; background: var(--band); margin-bottom: 18px; overflow: hidden; }
.news-grid .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.news-grid p { margin: 0 0 .7em; }
.news-grid .title a { text-decoration: none; }
.news-grid .title a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- team */
.team { padding: clamp(150px, 26vw, 320px) var(--gutter) clamp(48px, 7vw, 96px); width: min(1160px, 100%); margin: 0 auto; }
.team > h1 { text-align: center; margin-bottom: clamp(32px, 5vw, 64px); }
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.person.flip > img { order: 2; }
.person > img { width: 100%; height: auto; }
.person h2 { font-size: clamp(44px, 6vw, 76px); line-height: .95; letter-spacing: -0.03em; margin-bottom: .45em; }
.team hr { border: 0; border-top: 1px solid var(--rule); width: min(588px, 70%); margin: clamp(48px, 7vw, 88px) auto; }
@media (max-width: 700px) {
  .person, .person.flip { grid-template-columns: 1fr; }
  .person.flip > img { order: 0; }
  .person > img { width: min(100%, 420px); }
}

/* ---------------------------------------------------------- text pages */
.prose { padding: clamp(150px, 24vw, 300px) var(--gutter) clamp(48px, 7vw, 96px); width: min(980px, 100%); margin: 0 auto; }
.prose.wide { width: min(1240px, 100%); padding-bottom: 24px; }
.prose a { overflow-wrap: anywhere; }
.legal h2 { font-size: clamp(40px, 5.2vw, 66px); margin-bottom: .5em; }
.legal h4 { font-size: clamp(22px, 2vw, 26px); margin: 1.6em 0 .5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.notfound { text-align: center; }
.calculator { padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.calculator iframe { display: block; width: min(1100px, 100%); margin: 0 auto; border: 0; height: 1400px; }

/* ---------------------------------------------------------- footer */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
  padding: 36px calc(var(--gutter) + var(--safe-r)) calc(env(safe-area-inset-bottom, 0px) + 36px) calc(var(--gutter) + var(--safe-l));
  font: 400 19.84px/1.2 var(--serif); letter-spacing: -0.01em;
}
.site-footer p { margin: 0; }
.f-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.f-social a { display: grid; place-items: center; width: 44px; height: 44px; }
.f-social svg { width: 22px; height: 22px; }
.f-email { display: flex; align-items: center; gap: 10px; }
.f-legal { display: flex; gap: 32px; }
@media (max-width: 760px) {
  .site-footer { flex-direction: column; text-align: center; }
  .f-legal { gap: 20px; }
}

/* ---------------------------------------------------------- copy + toast */
.copy {
  font: 500 12px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 99px;
  padding: 7px 10px; margin-left: 8px; cursor: pointer; vertical-align: middle; touch-action: manipulation;
}
.copy:hover { background: var(--band); }
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translate(-50%, 20px);
  background: #111; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
