/* SASTRUGI · shared styles. Ice white, glacier navy, one beacon red. */
:root {
  --ice: #eef2f5;
  --frost: #dbe3ea;
  --navy: #14213a;
  --slate: #55657a;
  --blue: #8db6d4;
  --acc: #c4301f;
  --acc-ink: #ffffff;
  --line: rgba(20, 33, 58, .12);
  --glass: rgba(20, 33, 58, .68);
  --cond: 'Antonio', 'Arial Narrow', sans-serif;
  --serif: 'Cormorant', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --gut: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--ice); color: var(--navy); font: 400 16px/1.6 var(--sans); overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* type */
.cond { font-family: var(--cond); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .92; font-size: clamp(54px, 8.4vw, 148px); }
.serif { font-family: var(--serif); font-weight: 500; line-height: 1.04; font-size: clamp(34px, 4.4vw, 72px); letter-spacing: -.005em; }
.serif em, .serif-i { font-family: var(--serif); font-style: italic; }
.serif-i { font-size: clamp(20px, 1.7vw, 27px); line-height: 1.3; font-weight: 500; }
.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.gps { font: 500 13px/1.3 var(--cond); letter-spacing: .12em; text-transform: uppercase; margin: 0; }

/* hairline grid (drawn by site.js on a fixed canvas) */
.grid-gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 40; pointer-events: none; }

/* header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px var(--gut); pointer-events: none; }
.top > * { pointer-events: auto; }
.pills { display: flex; gap: 6px; }
.pills.r { justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 112px; height: 40px; padding: 0 18px; border: 0; border-radius: 2px; background: var(--glass); color: #fff; font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); transition: background .3s var(--ease); }
.pill:hover, .pill[aria-current="page"] { background: rgba(20, 33, 58, .86); }
.pill.acc { background: var(--acc); }
.pill.acc:hover { background: #a82718; }
.menu-btn { display: none; min-width: 84px; }
.mark { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--navy); transition: color .3s; }
body.on-dark .mark { color: #fff; text-shadow: 0 1px 14px rgba(10, 20, 40, .35); }
.mark span { font: 500 26px/1 var(--cond); letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em; }
.mark small { font: italic 500 13px/1.2 var(--serif); margin-top: 5px; letter-spacing: .02em; }
body.scrolled:not(.on-dark) .top::before { opacity: 1; }
.top::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(238, 242, 245, .92), rgba(238, 242, 245, 0)); opacity: 0; transition: opacity .4s; pointer-events: none; z-index: -1; }

/* sticky side tab, like a flag on the ice */
.tab { position: fixed; right: 0; top: 50%; z-index: 45; transform: translateY(-50%); writing-mode: vertical-rl; background: var(--acc); color: #fff; text-decoration: none; padding: 22px 13px; font: 600 13px/1 var(--sans); letter-spacing: .08em; display: flex; gap: 12px; align-items: center; }
.tab span { writing-mode: horizontal-tb; font-size: 16px; }
.tab:hover { background: #a82718; }

/* menu */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--navy); color: #fff; overflow: auto; }
.menu[hidden] { display: none; }
.m-in { min-height: 100%; padding: 90px var(--gut) 40px; display: flex; flex-direction: column; }
.m-close { position: absolute; top: 16px; right: var(--gut); }
.menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.menu nav a { font: 400 clamp(44px, 12vw, 84px)/1.02 var(--cond); text-transform: uppercase; text-decoration: none; display: flex; align-items: baseline; gap: 14px; }
.menu nav a small { font: italic 500 18px/1 var(--serif); text-transform: none; opacity: .7; }
.menu nav a:hover { color: var(--blue); }
.m-foot { margin-top: auto; padding-top: 40px; font-size: 14px; opacity: .75; }

/* media sections */
.on-media { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.on-media > .bgv, .on-media > video.bgv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.on-media::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 22, 40, .18), rgba(12, 22, 40, .46)); pointer-events: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 28px; border: 1px solid currentColor; border-radius: 2px; background: transparent; font: 600 14px/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .3s, color .3s; }
.btn.acc { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.acc:hover { background: #a82718; border-color: #a82718; }
.btn.ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* reveal: the class is added from JS only, to elements an observer watches */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* inner page bands */
.band { min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; padding: 140px var(--gut) 56px; }
.band-in { max-width: 1100px; }
.band .cond { font-size: clamp(64px, 12vw, 210px); }
.band .serif-i { max-width: 640px; margin: 18px 0 16px; }

/* footer */
.ft { position: relative; background: var(--navy); color: #dfe7ee; padding: 70px var(--gut) 40px; overflow: hidden; }
.ft-mark { font: 400 clamp(80px, 21.5vw, 420px)/.8 var(--cond); letter-spacing: .02em; color: rgba(223, 231, 238, .1); margin: 0 0 40px -.04em; white-space: nowrap; }
.ft-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid rgba(223, 231, 238, .18); padding-top: 32px; }
.ft-cols p, .ft-cols li { font-size: 14px; line-height: 1.7; }
.ft-cols ul { list-style: none; padding: 0; margin: 0; }
.ft-cols a { text-decoration: none; }
.ft-cols a:hover { text-decoration: underline; }
.ft .eyebrow { color: var(--blue); margin-bottom: 12px; font-size: 11px; }
.ft-legal { margin: 48px 0 10px; font-size: 14px; }
.ft-legal a { text-decoration: underline; }
.ft-credits { font-size: 12px; opacity: .72; max-width: 980px; }
.ft-credits a { text-decoration: none; }
.ft-credits a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .pills.l { display: none; }
  .pills.r .pill:not(.menu-btn):not(.acc) { display: none; }
  .menu-btn { display: inline-flex; }
  .top { grid-template-columns: auto 1fr auto; }
  .top .pills.r { grid-column: 3; }
  .mark { grid-column: 1; grid-row: 1; align-items: flex-start; }
  .mark span { font-size: 21px; letter-spacing: .24em; }
  .mark small { display: none; }
  .pill { min-width: 0; padding: 0 14px; height: 38px; }
  .tab { display: none; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .ft-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
