#selected-work {
  position:relative; isolation:isolate; display:grid; align-items:center;
  --open-water-gap:clamp(24px,3.5vw,56px);
  margin-block:calc(clamp(12px,1.3vw,20px) + var(--open-water-gap)) var(--open-water-gap);
  min-height:100svh; padding:clamp(100px,17svh,200px) 6vw clamp(72px,12svh,150px);
  color:#faf6ec; font-family:'Hanken Grotesk',sans-serif;
}
#selected-work .sand-bed { position:absolute; inset:auto 0 0; width:100%; height:82%; z-index:-1; pointer-events:none; }
.work-gallery { width:100%; max-width:1680px; margin:auto; }
/* The last of the gallery sand disappears into the open-water pass. */
#selected-work:has(+ #how-we-work) .sand-bed {
  mask-image:linear-gradient(to bottom,#000 70%,transparent);
}
#main:not(.dive-gpu)::before {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  opacity:var(--midnight-visible,0);
  background:radial-gradient(ellipse at 78% 12%,#091925,#02060c 80%);
}
#how-we-work {
  position:relative; isolation:isolate;
  color:#faf6ec; font-family:'Hanken Grotesk',sans-serif;
}
.encounter-frame {
  position:relative; min-height:100svh; box-sizing:border-box;
  display:grid; align-items:center; padding:clamp(72px,14svh,170px) 7vw;
}
.plankton {
  position:absolute; left:43%; top:5%; width:57%; height:90%;
  touch-action:pan-y pinch-zoom;
  mask-image:linear-gradient(to right,transparent,#000 12%);
}
@media(max-width:860px) {
  .plankton { left:0; top:auto; bottom:0; width:100%; height:max(38svh,220px); mask-image:none; }
}
.approach-note { position:relative; width:min(100%,88rem); margin:auto; }
@media(max-width:860px) {
  .encounter-frame { padding:9svh 7vw max(38svh,220px); }
}
#approach-title {
  margin:0 0 clamp(26px,4.6svh,58px); font:500 clamp(15px,1.15vw,19px)/1.4 var(--font-body);
  color:#d5dfdd; letter-spacing:-.02em;
}
.approach-letter { position:relative; }
.approach-copy { max-width:48rem; }
.letter-opening { margin:0; font:500 clamp(40px,4.4vw,82px)/1.08 var(--font-body); letter-spacing:-.065em; }
.letter-opening span { display:block; text-wrap:balance; }
.letter-opening em { font:500 italic 1.15em/.98 var(--font-display); color:#f0d7a4; }
.letter-body {
  max-width:29ch; margin:clamp(22px,3.8svh,48px) 0 0;
  font:400 clamp(26px,2.4vw,43px)/1.42 var(--font-body); letter-spacing:-.045em; color:#d5dfdd;
}
.letter-body :is(a,button) {
  display:inline; padding:0; margin:0; border:0; background:none; font:inherit; letter-spacing:inherit;
  color:#faf6ec; text-decoration:underline; text-decoration-color:#c5b68b9e;
  text-decoration-thickness:1px; text-underline-offset:.14em; cursor:pointer;
}
.letter-body button[aria-expanded="true"] { color:#f4d9a5; text-decoration-color:currentColor; }
.approach-note button:focus-visible { outline:2px solid #efcd8d; outline-offset:3px; }
.margin-notes article { max-width:38ch; margin-top:2rem; }
.approach-note article h3 {
  margin:0; font:500 italic clamp(28px,2.4vw,40px)/1.04 var(--font-display);
  letter-spacing:-.026em; color:#f0d7a4; text-wrap:balance;
}
.approach-note article p { margin:.85em 0 0; color:#e1e9e7; font-size:clamp(16px,1.17vw,20px); line-height:1.55; }
@media(min-width:861px) {
  .approach-letter { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); gap:6vw; }
  .approach-letter.interactive .margin-notes { position:relative; }
  .interactive .margin-notes article { position:absolute; top:var(--note-offset,0); margin:0; }
}
.note-sheet {
  position:fixed; inset:auto 0 0; box-sizing:border-box; width:100%; max-width:none;
  max-height:80dvh; margin:0; padding:22px max(7vw,20px) max(32px,env(safe-area-inset-bottom));
  border:0; border-top:1px solid #678080; background:#0b222d; color:#faf6ec; overscroll-behavior:contain;
}
.note-sheet > .plankton {
  position:relative; inset:auto; display:block; width:100%; height:clamp(100px,20svh,180px);
  margin:0 auto clamp(20px,3svh,30px); mask-image:none; pointer-events:none;
}
.note-sheet:has(#view-market,#view-contracts,#view-strategy) > .plankton { height:clamp(150px,30svh,260px); }
.note-sheet::backdrop { background:#02101899; }
.note-sheet form { display:flex; justify-content:flex-end; margin-bottom:8px; }
.note-sheet button { min-height:44px; padding:0 .4rem; background:transparent; color:#e4e9e6; border:0; font:inherit; cursor:pointer; }
.note-sheet article { max-width:48ch; margin-inline:auto; }
html:has(.note-sheet[open]) { overflow:hidden; }
@media(prefers-reduced-motion:no-preference) {
  .interactive .margin-notes article:not([hidden]) { animation:note-ink .22s ease-out; }
  .note-sheet[open] { animation:note-rise .24s cubic-bezier(.2,.8,.2,1); }
  @keyframes note-ink { from { opacity:0; } }
  @keyframes note-rise { from { opacity:.4; transform:translateY(22px); } }
}
@media(max-width:860px) {
  .approach-copy { max-width:36rem; }
  .letter-body { max-width:28ch; }
}
.work-gallery h2 { margin:0 0 clamp(28px,5vh,68px); font:500 clamp(42px,5vw,84px)/1.04 var(--font-body); letter-spacing:-.062em; }
.work-gallery h2 em { color:#f0d7a4; font:500 italic 1.12em/1 var(--font-display); }
.work-intro { margin-bottom:clamp(28px,5vh,68px); }
.work-intro h2 { margin:0; }
/* Match the lowercase bodies of Cormorant and Poppins on their shared baseline. */
.work-intro h2 em { font-size:1.4em; }
.work-intro p { margin:clamp(10px,1vw,16px) 0 0; color:#d5e0dc; font-size:clamp(16px,1.2vw,20px); line-height:1.5; text-wrap:pretty; }
.work-intro a { color:#f0d7a4; text-underline-offset:.18em; }
.work-pieces { display:grid; grid-template-columns:1.78fr 1fr 1fr; align-items:start; gap:clamp(18px,2.4vw,48px); padding:0; margin:0; list-style:none; }
.work-pieces li { min-width:0; }
.work-pieces a { display:block; color:inherit; text-decoration:none; }
.work-pieces img { display:block; width:100%; height:auto; background:#163239; }
.work-name { display:block; margin-top:14px; font-size:clamp(19px,1.52vw,28px); line-height:1.2; text-wrap:balance; }
.work-name span { color:#e7ca92; font-size:.8em; }
.work-pieces small { display:block; margin-top:5px; font-size:15px; color:#d5e0dc; }
.work-pieces a:hover .work-name,.work-pieces a:focus-visible .work-name { color:#f0d7a4; }
.art-viewer { width:min(94vw,850px); max-height:96svh; border:0; padding:16px; background:#0b242e; color:#faf6ec; }
.art-viewer::backdrop { background:#031219ed; }
.art-viewer header,.art-pages { display:flex; align-items:center; gap:14px; }
.art-viewer header { justify-content:space-between; margin-bottom:10px; }
.art-viewer h3 { margin:0; font:500 clamp(18px,3vw,26px)/1.15 var(--font-body); }
.art-viewer button { background:transparent; color:inherit; font:inherit; border:1px solid #769094; border-radius:3px; padding:6px 12px; min-height:44px; cursor:pointer; }
.art-original { display:block; width:100%; height:min(66svh,760px); object-fit:contain; }
.art-pages { justify-content:center; padding-top:12px; }
.art-pages[hidden] { display:none; }
#contact {
  position:relative; isolation:isolate; overflow:hidden; min-height:100svh;
  margin-block-start:clamp(48px,10svh,108px);
  display:grid; align-items:end;
  padding:clamp(190px,42svh,560px) 7vw clamp(36px,7svh,90px);
  color:#faf6ec; font-family:var(--font-body);
}
.contact-bed {
  position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:-1;
  mask-image:linear-gradient(to bottom,transparent,#000 19%);
  background:radial-gradient(ellipse at 52% 38%,#64675b 0%,#394d4e 21%,#182e36 51%,#04121a 93%);
}
.contact-bed canvas { display:block; width:100%; height:100%; }
.contact-bed canvas[hidden] { display:none; }
.contact-bed .bed-light {
  position:absolute; inset:-2%; width:104%; height:104%;
  animation:bed-light-drift 16s ease-in-out infinite alternate paused;
}
.contact-bed.bed-moving .bed-light { animation-play-state:running; }
.contact-bed.bed-moving canvas:first-child {
  transform:translate(var(--shift-x,0px),var(--shift-y,0px));
  transition:transform .35s ease-out;
}
@keyframes bed-light-drift {
  from { transform:translate(0,0); }
  to { transform:translate(1.45%,-1.2%); }
}
@media(prefers-reduced-motion:reduce) {
  .contact-bed .bed-light { animation:none; }
}
.contact-bed::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,#020b13f5 0%,#020b13b8 18%,#03101a24 46%,transparent 63%); }
.contact-invitation { position:relative; display:grid; grid-template-columns:1fr auto; align-items:center; gap:0 30px; }
.contact-invitation h2 {
  grid-column:1/-1; margin:0 0 clamp(20px,4svh,48px); text-align:center;
  font:450 clamp(20px,2.1vw,35px)/1.2 var(--font-body); letter-spacing:-.035em;
}
.contact-invitation h2 em {
  display:block; font:italic 500 clamp(96px,16vw,280px)/.90 var(--font-display);
  letter-spacing:-.067em; color:#ffedc9; margin-top:.045em;
}
.contact-invitation h2 span { text-shadow:0 1px 12px #031019; }
.contact-invitation p {
  margin:0; max-width:36ch;
  color:#d5dfdd; font-size:clamp(16px,1.3vw,22px); line-height:1.45; text-wrap:balance;
}
.contact-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 26px; }
.contact-actions a { display:inline-flex; align-items:center; gap:.55em; min-height:44px; font-size:clamp(15px,1.05vw,18px); }
.contact-call { padding:13px 22px; background:#f7ecd5; color:#132d36; border-radius:99px; text-decoration:none; }
.contact-message { color:#e4e9e3; text-underline-offset:.35em; text-decoration-color:#8faaa9; }
.contact-call:hover { background:#fff5e3; }
.contact-message:hover { color:#f0d7a4; }
@media(max-width:700px) {
  #contact { padding:37svh 6vw max(6svh,32px); }
  .contact-invitation { grid-template-columns:1fr; justify-items:center; text-align:center; }
  .contact-invitation h2 { margin-bottom:22px; }
  .contact-invitation h2 em { font-size:clamp(76px,24vw,145px); }
  .contact-invitation p { max-width:30ch; }
  .contact-actions { margin-top:20px; justify-content:center; gap:3px 18px; }
}
html:has(.art-viewer[open]) { overflow:hidden; }
.signature-footer {
  position:relative; background:#06121a; color:#eee2c9;
  padding:0 7vw clamp(16px,2vw,30px);
}
.signature-inner { max-width:96rem; margin-inline:auto; }
.signature-top,.signature-bottom,.signature-footer nav,.signature-bottom div {
  display:flex; align-items:baseline; flex-wrap:wrap; gap:4px clamp(18px,2.5vw,46px);
}
.signature-top,.signature-bottom { justify-content:space-between; }
.signature-footer a { display:inline-block; padding-block:9px; color:inherit; text-decoration:none; }
.signature-footer a:hover { text-decoration:underline; text-underline-offset:.25em; }
.signature-footer a:focus-visible { outline-color:#e4c78c; }
.footer-surface { font:500 italic clamp(22px,2vw,30px)/1.2 var(--font-display); }
.footer-surface span { font:400 .70em var(--font-body); margin-left:.25em; }
.signature-top { border-top:1px solid #decca64a; align-items:center; padding:clamp(16px,2vw,28px) 0; }
.signature-bottom { color:#b0bbba; font-size:13px; }
.signature-bottom small { font:inherit; }
@media(max-width:600px) {
  .signature-top { align-items:start; flex-direction:column-reverse; gap:6px; }
  .signature-bottom { align-items:center; gap:0 12px; }
}
@media(max-width:740px) {
  #selected-work { padding:clamp(104px,16svh,160px) 6vw 70px; }
  .work-pieces { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 16px; }
  .work-pieces li:first-child { grid-column:1/-1; }
  .work-name { margin-top:9px; font-size:18px; }
  .work-pieces small { font-size:14px; }
}
