/* Site-wide nav (all eight pages), round 3 (2026-09-24): the island.
   Round 4 (2026-09-28), the user's picks from tools/nav/variants/: the island is a double bezel (a solid
   white plate held in a clear rim, like a machined part), and the tile logo is replaced by the J that
   is a spine (see .nav-mark). Transitions and timing are unchanged. Round 3 is in tools/nav/round3-snapshot/.
   - At the top of a page the bar is transparent over the hero: the lockup on the left, the links in a
     frosted capsule in the middle, and a solid ink Contact pill on the right.
   - Once the page moves, the bar condenses into one frosted island in the middle of the screen: the
     capsule stays exactly where it is while the lockup and the pill slide in to meet it.
   - The links work like a segmented control: one white pill glides to the link you point at, reaching
     with its leading edge first, and rests on the page you are on. Each label rolls up to a fresh copy.
   - A flyout is a floating card under the island (apple.com's timing, Stripe's floating panel): the
     page's photograph, a true line, and three or four ways in. The card grows to fit, the page behind
     softens, and moving along the bar changes the card's height and cross-fades its content.
   - Below 1080px: the island is always there, with a round menu button; the sheet unrolls beneath it.
   The bar never hides: four pages pin things at top: var(--nav-h). */
:root {
  --nav-io: cubic-bezier(0.4, 0, 0.6, 1);        /* apple.com's flyout curve: fades, and the card rolling up */
  --nav-ease: cubic-bezier(0.32, 0.72, 0, 1);    /* moves at once and settles slowly: everything that travels */
  --nav-glass: rgba(255, 255, 255, 0.8);
}
@property --nav-l { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --nav-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --nav-fh { syntax: '<length>'; inherits: true; initial-value: 0px; }

@keyframes nav-drop { from { opacity: 0; translate: 0 -16px; } to { opacity: 1; translate: none; } }
@keyframes nav-track-in { from { opacity: 0; transform: scaleX(0.9); } to { opacity: 1; transform: none; } }
@keyframes nav-link-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes nav-bone-in { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
@keyframes mnav-in { from { opacity: 0; translate: 0 10px; filter: blur(3px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }

/* ---------- The bar ---------- */
.nav {
  --nav-rate: 260ms;
  --fly-top: calc(var(--nav-h) + 10px);
  --fly-w: min(1060px, calc(100vw - 2 * var(--gutter)));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  max-width: 100%;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  transition: max-width 0.6s var(--nav-ease), top 0.6s var(--nav-ease), height 0.6s var(--nav-ease), padding 0.6s var(--nav-ease), --nav-fh var(--nav-rate) var(--nav-ease);
}
.nav.is-closing { transition: max-width 0.6s var(--nav-ease), top 0.6s var(--nav-ease), height 0.6s var(--nav-ease), padding 0.6s var(--nav-ease), --nav-fh var(--nav-rate) var(--nav-io); }
/* the island's glass, drawn on a pseudo-element so the bar itself never becomes a containing block
   for the fixed flyouts */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 16px;
  background: var(--paper);
  /* the bezel: a clear rim round a solid plate, a hairline at its outer edge, then the shadow */
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.55), 0 0 0 7px rgba(10, 13, 18, 0.08), 0 22px 44px -14px rgba(10, 13, 18, 0.3);
  opacity: 0;
  transition: opacity 0.5s var(--nav-ease);
  pointer-events: none;
}
@media (min-width: 1081px) {
  .nav.scrolled { --fly-top: 80px; top: 12px; max-width: 1060px; height: 54px; padding: 0 7px 0 16px; }
  .nav.scrolled::before { opacity: 1; }
}
.nav > nav {
  justify-self: center;
  display: flex;
  justify-content: center;
  max-width: var(--links-w, none);
  transition: max-width 0.62s var(--nav-ease), opacity 0.34s ease 0.22s, visibility 0s;
}

/* ---------- The lockup ---------- */
.nav__logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0.4rem 0.25rem 0;
  color: var(--ink);
  text-decoration: none;
  border-radius: 12px;
  white-space: nowrap;
}
/* The mark: the J is a spine. Seen from the side the spine curves forward at the neck, back at the
   chest, forward at the low back, and the sacrum hooks at the bottom: one line, a letter J. The stem is
   in segments (vertebrae) with gaps (discs); the tail is one solid stroke, because the sacrum is fused
   bone; the bar on top is C1. Point at the lockup and the gaps open: decompression. */
.nav-mark { width: 22px; height: 44px; margin-bottom: -5px; flex: none; overflow: visible; transition: width 0.6s var(--nav-ease), height 0.6s var(--nav-ease), margin 0.6s var(--nav-ease); }
.nav-mark path { fill: none; stroke: var(--ink); stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-mark__stem { stroke-linecap: butt !important; stroke-dasharray: 4.5 1.8; transition: stroke-dasharray 0.55s var(--ease-spring); }
.nav__logo:hover .nav-mark__stem, .nav__logo:focus-visible .nav-mark__stem { stroke-dasharray: 3.5 2.8; }
.nav__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: -0.014em;
  transition: font-size 0.6s var(--nav-ease), translate 0.45s var(--nav-ease);
}
.nav__name small { margin-left: 0.14em; font-weight: 500; font-size: 0.6em; letter-spacing: 0.02em; color: var(--muted); }
.nav__logo:hover .nav__name { translate: 2px 0; }
@media (min-width: 1081px) {
  .nav.scrolled .nav-mark { width: 19px; height: 38px; margin-bottom: -4px; }
  .nav.scrolled .nav__name { font-size: 1.14rem; }
}

/* ---------- The links: a frosted capsule, a gliding pill ---------- */
.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 4px;
}
/* the capsule's track: frosted glass over the hero, a quiet grey inside the island */
.nav__links::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.45), 0 0 0 6px rgba(10, 13, 18, 0.08), 0 14px 30px rgba(10, 13, 18, 0.12);
  transition: background-color 0.5s var(--nav-ease), box-shadow 0.5s var(--nav-ease);
}
@media (min-width: 1081px) {
  .nav.scrolled .nav__links::before { background: var(--mist); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset 0 1px 2px rgba(10, 13, 18, 0.08); }
}
.nav-item { position: relative; }
.nav__links > li > a {
  --mx: 0px; --my: 0px;
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.62rem 1.02rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.94rem;
  line-height: 1.25;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 10px;
  transform: translate(var(--mx), var(--my));
  transition: color 0.25s, transform 0.5s var(--ease-spring);
}
.nav__links > li > a:hover, .nav-item.is-open > .nav__link { color: var(--ink); }
.nav__links > li > a.active { color: var(--ink); font-weight: 600; }
.nav__links > li > a:focus-visible { outline-offset: -2px; }
/* the label rolls up to a fresh copy of itself */
.nav__roll { display: block; height: 1.25em; overflow: hidden; }
.nav__roll-in { position: relative; display: block; transition: transform 0.45s var(--nav-ease); }
.nav__roll-in::after { content: attr(data-t); content: attr(data-t) / ''; position: absolute; left: 0; top: 100%; }
.nav__links > li > a:hover .nav__roll-in, .nav__links > li > a:focus-visible .nav__roll-in, .nav-item.is-open > .nav__link .nav__roll-in { transform: translateY(-100%); }

/* The pill (site.js places it). Its two edges are separate animated lengths, so in travel the leading
   edge reaches for the new link first and the trailing edge follows: it stretches a little on the way
   and settles on arrival, like liquid. */
.nav-line {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: calc(var(--nav-r) - var(--nav-l));
  height: var(--lh, 38px);
  translate: var(--nav-l) var(--ly, 4px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 13, 18, 0.04), 0 1px 2px rgba(10, 13, 18, 0.1), 0 6px 16px rgba(10, 13, 18, 0.1);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: --nav-l 0.38s var(--nav-ease), --nav-r 0.38s var(--nav-ease), opacity 0.2s ease, background-color 0.4s;
}
.nav-line.to-right { transition: --nav-l 0.46s var(--nav-ease), --nav-r 0.28s var(--nav-ease), opacity 0.2s ease, background-color 0.4s; }
.nav-line.to-left { transition: --nav-l 0.28s var(--nav-ease), --nav-r 0.46s var(--nav-ease), opacity 0.2s ease, background-color 0.4s; }
.nav-line.is-on { opacity: 1; }
.nav-line.is-jump { transition: opacity 0.25s ease, background-color 0.4s; }

/* The menu button: a small chevron after a link, shown only to the keyboard (and always on touch
   screens wide enough for the bar), so a flyout opens without leaving the link */
.nav-tog {
  position: absolute;
  right: -2px;
  top: 50%;
  z-index: 3;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.2s;
}
.nav-tog svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: rotate 0.32s var(--nav-ease); }
.nav-tog[aria-expanded="true"] svg { rotate: 180deg; }
.nav-item:has(> a:focus-visible) > .nav-tog, .nav-tog:focus-visible, .nav-tog[aria-expanded="true"]:focus-within { opacity: 1; pointer-events: auto; }
.nav-tog:hover { color: var(--ink); }

/* ---------- Contact: a solid ink pill with an arrow chip ---------- */
.nav__right { justify-self: end; display: flex; align-items: center; gap: 0.5rem; }
.nav__cta.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 0.7rem;
  padding: 0.38rem 0.38rem 0.38rem 1.15rem;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.94rem;
  box-shadow: 0 8px 22px rgba(10, 13, 18, 0.2), 0 1px 2px rgba(10, 13, 18, 0.2);
}
.nav__cta.btn:hover { background: #1c232d; }
.nav__cta-t { position: relative; z-index: 1; }
.nav__cta-chip {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--lightbox);
  color: var(--ink);
  transition: background-color 0.3s;
}
.nav__cta-chip svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: rotate 0.5s var(--ease-spring); }
.nav__cta:hover .nav__cta-chip, .nav__cta:focus-visible .nav__cta-chip { background: #fff; }
.nav__cta:hover .nav__cta-chip svg, .nav__cta:focus-visible .nav__cta-chip svg { rotate: -45deg; }
/* a light passes across the pill */
.nav__cta.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--nav-ease);
}
.nav__cta.btn:hover::before { transform: translateX(120%); }
/* on the contact page the pill is where you are */
.nav__cta.active { background: var(--accent-deep); }

/* Reading progress, a hairline inside the island's lower edge (site.js draws it with a transform) */
.nav__progress { position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
@media (min-width: 1081px) { .nav.scrolled .nav__progress { opacity: 1; } }
.nav.is-open .nav__progress, .nav.is-closing .nav__progress { opacity: 0; transition: opacity 0.15s; }
.nav__progress-fill { width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- The card and the curtain (site.js adds both) ---------- */
.nav-sheet {
  position: fixed;
  top: var(--fly-top);
  left: 50%;
  width: var(--fly-w);
  height: var(--nav-fh);
  translate: -50% 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 13, 18, 0.06), 0 34px 80px rgba(10, 13, 18, 0.18), 0 8px 20px rgba(10, 13, 18, 0.06);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.985);
  transform-origin: 50% 0;
  transition: opacity 0.18s var(--nav-io), transform 0.34s var(--nav-ease), top 0.6s var(--nav-ease);
  will-change: opacity, transform;
}
.nav.is-open .nav-sheet { opacity: 1; transform: none; }
/* the caret: a notch on the card's top edge under the link it belongs to, sliding along as you move
   from link to link (site.js sets --caret) */
.nav-sheet::before {
  content: '';
  position: absolute;
  top: -6px;
  left: var(--caret, 50%);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 3px 0 0 0;
  background: #fff;
  box-shadow: -1px -1px 0 rgba(10, 13, 18, 0.06);
  rotate: 45deg;
}
.nav.is-open .nav-sheet::before { transition: left 0.36s var(--nav-ease); }
.nav-curtain {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 13, 18, 0.16);
  backdrop-filter: blur(8px) saturate(0.9);
  -webkit-backdrop-filter: blur(8px) saturate(0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--nav-io) 0.02s, visibility 0s linear 0.3s;
  will-change: opacity;
}
.nav-curtain.is-on { opacity: 1; visibility: visible; transition: opacity 0.24s var(--nav-io) 0.02s, visibility 0s; }

/* ---------- A flyout: the card's content ---------- */
.nav-fly {
  position: fixed;
  top: var(--fly-top);
  left: 50%;
  z-index: 1;
  width: var(--fly-w);
  translate: -50% 0;
  max-height: calc(100vh - var(--fly-top) - 1.5rem);
  max-height: calc(100dvh - var(--fly-top) - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem;
  clip-path: inset(0 0 calc(100% - var(--nav-fh)) 0 round 22px);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--nav-rate);
}
.nav-fly.is-open { z-index: 2; visibility: visible; pointer-events: auto; transition: visibility 0s; }
.nav-fly__in { display: grid; grid-template-columns: 188px minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.2rem; align-items: start; }

/* Every part arrives on its own delay (--d, set by site.js by column and row), rising into place;
   closing, everything leaves at once */
.nav-fly__s { opacity: 0; translate: 0 6px; transition: opacity 0.14s var(--nav-io), translate 0.14s var(--nav-io); }
.nav-fly.is-open .nav-fly__s { opacity: 1; translate: 0 0; transition: opacity 0.26s var(--nav-io) var(--d, 60ms), translate 0.4s var(--nav-ease) var(--d, 60ms); }
.nav-fly.is-in .nav-fly__s { translate: 0 6px; transition: none; }
.nav-fly.is-in.is-open .nav-fly__s { translate: 0 0; transition: opacity 0.2s ease 0.04s, translate 0.36s var(--nav-ease) 0.03s, filter 0.28s ease 0.03s; }
.nav-fly.is-out .nav-fly__s { transition: opacity 0.08s linear, filter 0.08s linear; }

.nav-fly__photo {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mist-2);
  box-shadow: 0 10px 24px rgba(10, 13, 18, 0.14);
}
.nav-fly__photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.05; transition: opacity 0.35s ease, scale 0.7s var(--nav-ease); }
.nav-fly__photo img.is-in { opacity: 1; }
.nav-fly.is-open .nav-fly__photo img { scale: 1; }
.nav-fly.is-open .nav-fly__photo:hover img { scale: 1.04; transition: opacity 0.35s ease, scale 0.6s var(--nav-ease); }

.nav-fly__lead { padding-top: 0.35rem; }
.nav-fly__line {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.62rem;
  line-height: 1.15;
  letter-spacing: -0.014em;
  color: var(--ink);
  text-wrap: balance;
}
.nav-fly__text { margin: 0.75rem 0 0; max-width: 34ch; font-size: 0.95rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.nav-fly__go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: var(--mist);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.nav-fly__go:hover { background: var(--ink); color: #fff; }
.nav-fly__go span { display: inline-block; transition: transform 0.35s var(--ease-spring); }
.nav-fly__go:hover span { transform: translateX(3px); }
.nav-fly__btn.btn { margin-top: 1.15rem; padding: 0.7rem 1.15rem; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.92rem; }
.nav-fly__btn.btn:hover { background: #1c232d; }
.nav-fly__btn.btn:hover .btn__arrow { transform: translateX(4px); }

/* search: a pill field, the lens inside, a round go button */
.nav-fly__search { position: relative; margin-top: 1.15rem; max-width: 22rem; }
.nav-fly__search-i { position: absolute; left: 15px; top: 50%; translate: 0 -50%; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.nav-fly__search input {
  width: 100%;
  height: 46px;
  padding: 0 3.2rem 0 2.55rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-fly__search input::placeholder { color: var(--muted); }
.nav-fly__search input:hover { border-color: var(--line-2); }
.nav-fly__search input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.nav-fly__search button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring), background-color 0.2s;
}
.nav-fly__search button svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-fly__search button:hover { transform: scale(1.08); background: var(--accent-deep); }

/* answers as you type, under the field (site.js): a count, the newest four, and the rest on the page */
.nav-fly__hits { max-width: 22rem; }
.nav-fly__count { margin: 0; padding-left: 0.3rem; font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
.nav-fly__hits.is-on .nav-fly__count { margin-top: 0.7rem; }
.nav-fly__hitlist { list-style: none; margin: 0.3rem 0 0; padding: 0; }
.nav-fly__hitlist a { display: block; padding: 0.5rem 0.6rem; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background-color 0.2s; }
.nav-fly__hitlist a:hover, .nav-fly__hitlist a:focus-visible { background: var(--mist); }
.nav-fly__ht { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.88rem; font-weight: 500; line-height: 1.35; }
.nav-fly__hm { display: block; margin-top: 0.12rem; font-size: 0.76rem; line-height: 1.3; color: var(--muted); }
.nav-fly__allhits a { display: inline-flex; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.nav-fly__allhits a span { transition: translate 0.35s var(--ease-spring); }
.nav-fly__allhits a:hover span { translate: 3px 0; }
.mnav-sub .nav-fly__hits { grid-column: 1 / -1; max-width: none; margin-top: -0.4rem; }

/* the ways in: big rows, a plate that follows the pointer (site.js), an arrow that slides in */
.nav-fly__col { padding-top: 0.35rem; }
.nav-fly__h { margin: 0 0 0.55rem 0.75rem; font-size: 0.8rem; font-weight: 500; line-height: 1.3; color: var(--muted); }
.nav-fly__big { position: relative; list-style: none; margin: 0; padding: 0; }
.nav-fly__big > li:not(.nav-plate) { position: relative; z-index: 1; }
.nav-fly__big a, .nav-fly__big button {
  display: flex;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-fly__big--titles a { font-size: 1.06rem; line-height: 1.3; }
.nav-fly__big a::after, .nav-fly__big button::after {
  content: '\2192';
  content: '\2192' / '';
  flex: none;
  font-family: var(--sans);
  font-size: 0.85em;
  font-weight: 500;
  color: var(--accent);
  opacity: 0;
  translate: -8px 0;
  transition: opacity 0.2s, translate 0.4s var(--ease-spring);
}
.nav-fly__big a:hover::after, .nav-fly__big a:focus-visible::after, .nav-fly__big button:hover::after, .nav-fly__big button:focus-visible::after { opacity: 1; translate: 0 0; }
.nav-fly__big a:hover, .nav-fly__big a:focus-visible, .nav-fly__big button:hover, .nav-fly__big button:focus-visible { color: var(--accent-deep); }
/* without script, each row lights itself */
.nav-fly__big:not(.has-plate) a:hover, .nav-fly__big:not(.has-plate) button:hover { background: var(--mist); }
.nav-fly__big > .nav-plate {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: var(--pw, 100%);
  height: var(--ph, 0px);
  translate: var(--px, 0px) var(--py, 0px);
  border-radius: 12px;
  background: var(--mist);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: translate 0.3s var(--nav-ease), width 0.3s var(--nav-ease), height 0.3s var(--nav-ease), opacity 0.18s;
}
.nav-fly__big > .nav-plate.is-on { opacity: 1; }
.nav-fly__big > .nav-plate.is-jump { transition: opacity 0.2s; }
.nav-nw { white-space: nowrap; }
.nav-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Search: his whole body of work, from any page ----------
   The lens in the bar opens a card like the others: one large field, six searches to try, and as you
   type, the newest three papers and the newest three videos that match, with your words picked out.
   "/" opens it from anywhere (site.js). */
.nav-item--find { position: relative; }
.nav-find-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s;
}
.nav-find-btn svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: rotate 0.5s var(--ease-spring), scale 0.4s var(--ease-spring); }
.nav-find-btn:hover, .nav-item--find.is-open > .nav-find-btn { background: rgba(10, 13, 18, 0.06); }
.nav-find-btn:hover svg { rotate: -12deg; scale: 1.08; }
.nav-find-btn:focus-visible { outline-offset: 2px; }
.nav-fly--find .nav-fly__in { display: block; }
.nav-find { position: relative; display: flex; align-items: center; gap: 0.95rem; padding: 0.15rem 0.4rem 1rem; border-bottom: 1px solid var(--line); }
/* the line under the field draws across in film blue once you are in it */
.nav-find::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform 0.7s var(--nav-ease); }
.nav-find:focus-within::after { transform: none; }
.nav-find__i { flex: none; fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; transition: stroke 0.3s; }
.nav-find:focus-within .nav-find__i { stroke: var(--accent); }
.nav-find input {
  flex: 1;
  min-width: 0;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.nav-find input::placeholder { color: var(--faint); }
.nav-find input:focus { outline: none; }
.nav-find input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-left: 0.6rem;
  background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 4.5l9 9M13.5 4.5l-9 9' stroke='%235D646D' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  cursor: pointer;
  opacity: 0.8;
}
.nav-find input::-webkit-search-cancel-button:hover { opacity: 1; }
.nav-find__try { margin-top: 1.15rem; }
.nav-find__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0.4rem; }
.nav-find__try[hidden], .nav-find__out[hidden], .nav-find__all[hidden] { display: none; }
.nav-find__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem; margin-top: 1.15rem; }
.nav-find__n { margin: 0 0 0.35rem 0.75rem; font-size: 0.8rem; font-weight: 500; line-height: 1.3; color: var(--muted); }
.nav-find__hits { list-style: none; margin: 0; padding: 0; }
.nav-find__hits a { display: block; padding: 0.6rem 0.75rem; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background-color 0.2s; }
.nav-find__hits a:hover, .nav-find__hits a:focus-visible { background: var(--mist); }
.nav-find__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--display); font-weight: 600; font-size: 1.04rem; line-height: 1.3; letter-spacing: -0.005em; }
/* the words you typed, picked out in each title */
.nav-find__hit { font-weight: 700; color: var(--accent-deep); }
.nav-find__m { display: block; margin-top: 0.18rem; font-size: 0.8rem; line-height: 1.3; color: var(--muted); }
.nav-find__all { display: inline-flex; gap: 0.35rem; margin: 0.45rem 0 0 0.75rem; font-size: 0.88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.nav-find__all span { transition: translate 0.35s var(--ease-spring); }
.nav-find__all:hover span { translate: 3px 0; }

/* ---------- Compact: the island draws in while you read (site.js) ----------
   The links fade first and their box closes to nothing, clipped from both sides at once, while the
   island narrows around the lockup, the search and Contact; opening, the island widens first and the
   links fade back in as it arrives. */
@media (min-width: 1081px) {
  .nav.scrolled > nav { overflow: clip; overflow-clip-margin: 12px; }
  .nav.scrolled.is-compact { max-width: 520px; }
  .nav.scrolled.is-compact > nav { max-width: 0; opacity: 0; visibility: hidden; transition: max-width 0.6s var(--nav-ease), opacity 0.16s ease, visibility 0s linear 0.6s; }
}
/* the links never shrink to fit: their width is what site.js measures for the island to close around */
.nav__links { flex: none; width: max-content; }

/* ---------- The menu button ---------- */
.nav__burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(10, 13, 18, 0.06);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s, transform 0.35s var(--ease-spring);
}
.nav__burger:hover { background: rgba(10, 13, 18, 0.1); }
.nav__burger:active { transform: scale(0.92); }
.nav__burger span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; margin: -0.8px 0 0 -8px; border-radius: 1px; background: var(--ink); transition: transform 0.5s var(--ease-spring), opacity 0.2s; }
.nav__burger span:nth-child(1) { transform: translateY(-3.5px); }
.nav__burger span:nth-child(2) { opacity: 0; }
.nav__burger span:nth-child(3) { transform: translateY(3.5px); }
.nav__burger.open span:nth-child(1) { transform: rotate(45deg); }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg); }

/* ---------- The phone sheet ----------
   It unrolls beneath the island like apple.com's phone menu: a clip opens downward at a pace set by
   the screen's height while the rows rise into place one after another. Each row is a page with its
   photograph; the chevron beside it slides that page's ways in from the right (the desktop flyout,
   cloned by site.js), and back, a swipe to the right or Escape slides them away. */
.mobile-nav {
  --mnav-rate: 440ms;
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 5.4rem var(--gutter) 1.6rem;
  background: var(--paper);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.34s var(--nav-io) 0.1s, visibility 0s linear 0.46s;
}
.mobile-nav.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--mnav-rate) var(--nav-io), visibility 0s; }
.mobile-nav.is-sub { overflow: hidden; }
.mnav-home { display: flex; flex-direction: column; flex: 1 0 auto; transition: translate 0.44s var(--nav-ease), opacity 0.3s ease; }
.mobile-nav.is-sub .mnav-home { translate: -24% 0; opacity: 0; }

.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list > li + li { border-top: 1px solid var(--line); }
.mobile-nav__list a { display: grid; align-items: center; column-gap: 1rem; padding: 0.72rem 0; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mnav-row { display: flex; align-items: stretch; }
.mnav-go { flex: 1; min-width: 0; grid-template-columns: auto 1fr; }
.mnav-thumb {
  grid-row: 1 / span 2;
  width: 50px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mist-2);
  box-shadow: 0 4px 12px rgba(10, 13, 18, 0.1);
  transition: box-shadow 0.25s ease, scale 0.35s var(--ease-spring);
}
.mnav-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.mnav-thumb img.is-in { opacity: 1; }
.mobile-nav__t { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.08; letter-spacing: -0.012em; transition: color 0.2s; }
.mobile-nav__d { margin-top: 0.2rem; font-size: 0.86rem; line-height: 1.35; color: var(--muted); }
.mnav-go .mobile-nav__t { grid-column: 2; align-self: end; }
.mnav-go .mobile-nav__d { grid-column: 2; align-self: start; }
.mnav-go:active .mnav-thumb { scale: 0.94; }
.mnav-go:active .mobile-nav__t, .mobile-nav__list a:hover .mobile-nav__t { color: var(--accent); }
/* the page you are on: its title in film blue and a film-blue ring around its photograph */
.mobile-nav__list a.active .mobile-nav__t { color: var(--accent); }
.mnav-go.active .mnav-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.mnav-more {
  flex: none;
  width: 44px;
  height: 44px;
  align-self: center;
  margin-right: -0.2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--mist);
  color: var(--ink-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s, transform 0.35s var(--ease-spring);
}
.mnav-more svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.35s var(--ease-spring); }
.mnav-more:hover svg, .mnav-more:active svg { translate: 2px 0; }
.mnav-more:active { transform: scale(0.92); background: var(--mist-2); }

.mobile-nav__search { margin-top: auto; padding-top: 1.4rem; }
.mobile-nav__label { display: block; margin-bottom: 0.5rem; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); }
.mobile-nav__search input {
  width: 100%;
  height: 50px;
  padding: 0 1.1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.mobile-nav__search input::placeholder { color: var(--muted); }
.mobile-nav__search input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.mobile-nav__go { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.6rem; }
.mobile-nav__go .btn { justify-content: center; min-height: 48px; border-radius: 10px; }

/* a page's ways in on the phone: the desktop flyout's own content, restacked */
.mnav-sub {
  position: absolute;
  inset: 0;
  padding: 5.4rem var(--gutter) 2.25rem;
  background: var(--paper);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  translate: 100% 0;
  visibility: hidden;
  transition: translate 0.44s var(--nav-ease), visibility 0s linear 0.44s;
}
.mnav-sub.is-on { translate: 0 0; visibility: visible; transition: translate 0.44s var(--nav-ease), visibility 0s; }
.mnav-sub.is-drag { transition: none; }
.mnav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  margin-left: -0.2rem;
  padding: 0 0.95rem 0 0.75rem;
  border: 0;
  border-radius: 10px;
  background: var(--mist);
  color: var(--ink);
  font: 600 0.92rem var(--sans);
  cursor: pointer;
}
.mnav-back svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.35s var(--ease-spring); }
.mnav-back:active svg { translate: -3px 0; }
.mnav-page {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0.9rem 0 1.1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.15rem;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.mnav-page span { font-family: var(--sans); font-weight: 500; font-size: 0.55em; color: var(--accent); transition: translate 0.35s var(--ease-spring); }
.mnav-page:active span, .mnav-page:hover span { translate: 4px 0; }
.mnav-page[aria-current] { color: var(--accent); }
.mnav-sub .nav-fly__in { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; max-width: 34rem; }
.mnav-sub .nav-fly__photo { width: 96px; grid-column: 1; grid-row: 1; box-shadow: 0 6px 16px rgba(10, 13, 18, 0.12); }
.mnav-sub .nav-fly__photo img { opacity: 1; scale: 1; }
.mnav-sub .nav-fly__lead { display: contents; }
.mnav-sub .nav-fly__line { grid-column: 2; grid-row: 1; align-self: center; font-size: 1.32rem; line-height: 1.18; }
.mnav-sub .nav-fly__text, .mnav-sub .nav-fly__go, .mnav-sub .nav-fly__btn, .mnav-sub .nav-fly__search { grid-column: 1 / -1; margin: 0; max-width: none; }
.mnav-sub .nav-fly__btn { justify-content: center; min-height: 48px; }
.mnav-sub .nav-fly__go { justify-self: start; min-height: 44px; }
.mnav-sub .nav-fly__search input { height: 50px; font-size: 1rem; }
.mnav-sub .nav-fly__search button { top: 7px; }
.mnav-sub .nav-fly__col { grid-column: 1 / -1; min-width: 0; padding: 0; margin-top: 0.4rem; }
.mnav-sub .nav-fly__h { margin: 0 0 0.2rem 0.75rem; }
.mnav-sub .nav-fly__big a { min-height: 48px; font-size: 1.22rem; }
.mnav-sub .nav-fly__big a::after { opacity: 1; translate: 0 0; color: var(--faint); }

/* A heading reached through a quick link takes focus for screen readers, without a ring */
[data-nav-arrived]:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  /* backwards, never both: an animation that keeps filling leaves the bar a backdrop root, and the
     island's glass stops blurring the page behind it */
  .nav { animation: nav-drop 0.8s var(--nav-ease) backwards; }
  .nav__links::before { animation: nav-track-in 0.7s var(--nav-ease) 0.12s backwards; }
  .nav__links > li > a { animation: nav-link-in 0.55s var(--nav-ease) backwards; }
  .nav__links > li:nth-child(1) > a { animation-delay: 0.26s; }
  .nav__links > li:nth-child(2) > a { animation-delay: 0.31s; }
  .nav__links > li:nth-child(3) > a { animation-delay: 0.36s; }
  .nav__links > li:nth-child(4) > a { animation-delay: 0.41s; }
  .nav__links > li:nth-child(5) > a { animation-delay: 0.46s; }
  .nav__links > li:nth-child(6) > a { animation-delay: 0.51s; }
  .nav__right { animation: nav-link-in 0.6s var(--nav-ease) 0.4s backwards; }
  .nav-mark path { animation: nav-bone-in 0.5s var(--ease-out) backwards; }
  .nav-mark__c1 { animation-delay: 0.2s; }
  .nav-mark__stem { animation-delay: 0.28s; }
  .nav-mark__sac { animation-delay: 0.36s; }
  /* the main line and the photograph settle from a soft blur as they arrive */
  .nav-fly .nav-fly__line.nav-fly__s, .nav-fly .nav-fly__photo.nav-fly__s { filter: blur(3px); }
  .nav-fly.is-open .nav-fly__line.nav-fly__s, .nav-fly.is-open .nav-fly__photo.nav-fly__s { filter: blur(0); transition: opacity 0.26s var(--nav-io) var(--d, 60ms), translate 0.4s var(--nav-ease) var(--d, 60ms), filter 0.4s ease var(--d, 60ms); }
  .nav-fly.is-in .nav-fly__s { filter: blur(2px); }
  .nav-fly.is-in.is-open .nav-fly__s,
  .nav-fly.is-in.is-open .nav-fly__line.nav-fly__s,
  .nav-fly.is-in.is-open .nav-fly__photo.nav-fly__s { filter: blur(0); transition: opacity 0.2s ease 0.04s, translate 0.36s var(--nav-ease) 0.03s, filter 0.28s ease 0.03s; }
  .nav-fly.is-out .nav-fly__s { translate: 0 0; }
  /* the sheet's rows rise into place one after another, settling from a soft blur */
  .mobile-nav.open .mobile-nav__list > li { animation: mnav-in 0.46s var(--nav-ease) backwards; }
  .mobile-nav.open .mobile-nav__list > li:nth-child(1) { animation-delay: 0.06s; }
  .mobile-nav.open .mobile-nav__list > li:nth-child(2) { animation-delay: 0.09s; }
  .mobile-nav.open .mobile-nav__list > li:nth-child(3) { animation-delay: 0.12s; }
  .mobile-nav.open .mobile-nav__list > li:nth-child(4) { animation-delay: 0.15s; }
  .mobile-nav.open .mobile-nav__list > li:nth-child(5) { animation-delay: 0.18s; }
  .mobile-nav.open .mobile-nav__list > li:nth-child(6) { animation-delay: 0.21s; }
  .mobile-nav.open .mobile-nav__list > li:nth-child(7) { animation-delay: 0.24s; }
  .mobile-nav.open .mobile-nav__search { animation: mnav-in 0.46s var(--nav-ease) 0.27s backwards; }
  .mnav-sub.is-on .mnav-si { animation: mnav-in 0.46s var(--nav-ease) backwards; animation-delay: calc(0.12s + var(--i, 0) * 0.028s); }
  .nav-fly__hitlist li { animation: mnav-in 0.34s var(--nav-ease) backwards; animation-delay: calc(var(--i, 0) * 0.035s); }
}
@media (prefers-reduced-motion: reduce) {
  .nav, .nav *, .nav::before, .nav-curtain, .mobile-nav, .mobile-nav * { transition-delay: 0s !important; }
}

/* narrower desktops: the links tighten, then the photograph leaves the card */
@media (min-width: 1081px) and (max-width: 1260px) {
  .nav { column-gap: 0.6rem; }
  .nav__links > li > a { padding-inline: 0.8rem; font-size: 0.9rem; }
  .nav__name { font-size: 1.18rem; }
  .nav-fly__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .nav-fly__photo { display: none; }
}
/* touch screens wide enough for the bar (a tablet held sideways): a tap on a link goes to the page,
   so the chevrons stay in view as the way to a flyout, each with a 44px target */
@media (hover: none) and (min-width: 1081px) {
  .nav-tog { opacity: 1; pointer-events: auto; }
  .nav-tog::before { content: ''; position: absolute; inset: -12px; }
  .nav__links > li > a { padding-right: 1.4rem; }
}

/* ---------- Phones and tablets: the island, always ---------- */
@media (max-width: 1080px) {
  .nav { top: 12px; left: 12px; right: 12px; max-width: none; height: 54px; padding: 0 7px 0 14px; grid-template-columns: minmax(0, 1fr) auto; }
  .nav::before { opacity: 1; border-radius: 14px; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.55), 0 0 0 6px rgba(10, 13, 18, 0.08), 0 14px 30px -12px rgba(10, 13, 18, 0.28); }
  .nav > nav, .nav-line, .nav-sheet, .nav-curtain, .nav-fly, .nav-item--find { display: none; }
  .nav__burger { display: block; }
  .nav-mark { width: 18px; height: 36px; margin-bottom: -4px; }
  .nav__logo { gap: 0.6rem; }
  .nav__name { font-size: 1.1rem; }
  .nav__cta.btn { height: 40px; padding: 0 0.95rem; font-size: 0.9rem; box-shadow: none; }
  .nav__cta-chip { display: none; }
}
/* while the sheet is open the island reads as part of it */
.nav.nav--sheet::before { background: rgba(255, 255, 255, 0.96); box-shadow: 0 0 0 1px rgba(10, 13, 18, 0.07); }
.nav.nav--sheet .nav__progress { opacity: 0; }
@media (max-width: 420px) {
  .nav__name small { display: none; }
}
@media (max-width: 340px) {
  .nav__cta { display: none; }
}
