/* One persistent logo. The list and Information backdrop are separate from nav ink. */
:root {
  --v2-nav-start: max(16px, env(safe-area-inset-left, 0px));
  --v2-nav-end: max(16px, env(safe-area-inset-right, 0px));
  --v2-nav-top: max(16px, env(safe-area-inset-top, 0px));
  --v2-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  --v2-strip-img: 32px;
  --v2-logo-width: 76px;
  --v2-space-width: 3px;
  --v2-sentence-offset: calc(var(--v2-logo-width) + var(--v2-space-width));
  --v2-sentence-x: calc(var(--v2-nav-start) + var(--v2-sentence-offset));
  --v2-section-x: min(calc(83.333333% + 3px), calc(100% - var(--v2-nav-end) - 174px));
}

/* iOS 26 Safari ignores theme-color and tints its bars from a fixed box at the screen's edge:
   a see-through one paints them grey. So the nav is a 1px line at its own bottom edge (its bottom
   still reads --nav-h) and the words hang above it. Not 0px: WebKit then drops the difference blend. */
.v2-nav {
  position: fixed;
  z-index: 1100;
  inset: calc(var(--nav-h) - 1px) 0 auto;
  block-size: 1px;
  pointer-events: none;
  color: #dedede;
  mix-blend-mode: difference;
  font: 400 12px/1.35 var(--sans);
  font-feature-settings: var(--sans-features);
  letter-spacing: .24px;
}
html[data-v2-layer="info"] .v2-nav { color: var(--snow); }
/* The entrance's anchor (core.js): on every full load the nav's words wait, hidden, for FT Aktual, then come
   in left to right as one soft wave, a 3px blur clearing with the fade, no movement. It plays even when the
   font is already in (owner, 2026-12-03: the instant nav "still pops"); home's pictures follow 150ms later. */
html.v2-font-wait .v2-nav > * { opacity: 0; filter: blur(3px); }
html.v2-font-fade .v2-nav > * {
  transition: opacity 600ms cubic-bezier(.45, 0, .2, 1) var(--v2-font-delay, 0ms),
    filter 600ms cubic-bezier(.45, 0, .2, 1) var(--v2-font-delay, 0ms);
}
html.v2-font-fade #v2-nav-info { --v2-font-delay: 80ms; }
html.v2-font-fade #v2-nav-actions { --v2-font-delay: 140ms; }
@media (prefers-reduced-motion: reduce) {
  html.v2-font-wait .v2-nav > * { filter: none; }
  html.v2-font-fade :is(#v2-nav-info, #v2-nav-actions) { --v2-font-delay: 0ms; }
}

.v2-logo-link, #v2-nav-info, #v2-nav-actions {
  position: absolute;
  inset-block-start: calc(var(--v2-nav-top) - var(--nav-h) + 1px);
  white-space: nowrap;
}
.v2-logo-link { inset-inline-start: var(--v2-nav-start); font-family: var(--sans-logo); }
.v2-logo-link, .v2-nav a { pointer-events: auto; }
#v2-nav-info { inset-inline-start: var(--v2-section-x); }
#v2-nav-actions {
  inset-inline-end: var(--v2-nav-end);
  display: flex;
  gap: 12px;
}
#v2-nav-actions a { position: relative; }
.v2-nav a:focus-visible { outline-color: #fff; }

.v2-logo-space {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  white-space: pre;
  font: 300 12px/1.35 var(--serif);
  font-feature-settings: var(--serif-features);
  letter-spacing: .16px;
}

/* The title and its client list share the nav's difference ink, so long titles stay readable over pictures. */
#v2-title-mount {
  position: fixed;
  z-index: 1099;
  color: #dedede;
  mix-blend-mode: difference;
  inset-block-start: var(--v2-nav-top);
  inset-inline-start: var(--v2-sentence-x);
  max-inline-size: max(1px, calc(80vw - var(--v2-sentence-x)));
  pointer-events: none;
}
#v2-title-mount > * { pointer-events: auto; }
#v2-title-mount sup, .v2-plate sup {
  font: inherit;
  font-size: .645em;
  vertical-align: super;
}

@media (min-width: 600px) and (max-width: 949.98px) {
  #v2-title-mount {
    max-inline-size: max(1px, calc(min(80vw, var(--v2-section-x) - 16px) - var(--v2-sentence-x)));
  }
}

#v2-info {
  position: fixed;
  z-index: 1050;
  inset: 0;
  background: #000; /* Safari's bars take this colour (iOS 26); the ground alone left them grey. */
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--fade-out) var(--ease-soft), visibility 0s var(--fade-out);
}
#v2-info.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--fade-in) var(--ease-soft);
}
#v2-info:focus { outline: none; }

/* Safari's bars (iOS 26) follow Information without lag (owner, 2026-12-03: half a second late on close).
   Safari keeps the colour of a fixed box it has read until that box leaves the page: hiding it with
   opacity or visibility isn't enough. So on touch screens two black strips, 12px tall so Safari reads
   their colour rather than sampling pixels, sit at the edges only while Information is open (chrome.js
   adds and removes them), and the closed panel is display: none. Opening keeps its fade; closing is
   instant, as before. */
.v2-bar-tint { display: none; }
@media (max-width: 599.98px), (pointer: coarse) {
  .v2-bar-tint {
    display: block;
    position: fixed;
    inset-inline: 0;
    z-index: 1060;
    block-size: 12px;
    background: #000;
    pointer-events: none;
  }
  .v2-bar-tint.is-top { inset-block-start: -7px; }
  .v2-bar-tint.is-bottom { inset-block-end: -7px; }
  #v2-info:not(.open) { display: none; }
  @starting-style {
    #v2-info.open { opacity: 0; }
  }
}

.v2-info-ground {
  position: absolute;
  inset: 0;
  background: #000;
}

.v2-info-scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  block-size: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: var(--v2-nav-top) var(--v2-nav-end) var(--v2-bottom) var(--v2-nav-start);
  color: var(--snow);
}
.v2-info-bio { inline-size: 221px; max-inline-size: 100%; }
.v2-info-bio p { margin: 0; text-wrap: pretty; }
.v2-info-bio p:first-child { text-indent: var(--v2-sentence-offset); }
.v2-info-bio p + p { margin-block-start: 1.35em; }

.v2-info-experience {
  margin-block-start: auto;
  font: 400 12px/1.35 var(--sans);
  font-feature-settings: var(--sans-features);
  letter-spacing: .2px;
}
.v2-info-experience h2 { margin: 0 0 6px; font: inherit; font-size: 10px; }
.v2-info-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 102.5px)); gap: 16px; }
.v2-info-columns ul { margin: 0; padding: 0; list-style: none; }
.v2-info-columns li { padding-inline-start: 8px; text-indent: -8px; }

@media (max-width: 599.98px) {
  .v2-info-bio { max-inline-size: max(110px, calc(100vw - var(--v2-nav-start) - var(--v2-nav-end) - 182px)); }
  #v2-title-mount {
    inset-block-start: var(--v2-nav-top);
    max-inline-size: calc(100% - var(--v2-sentence-x) - var(--v2-nav-end) - 46px);
  }
  /* Phones keep the top line for the title: no Information in focus (owner, 2026-11-29: it clashed with titles). */
  html[data-v2-layer="focus"] #v2-nav-info { display: none; }
  #v2-title-mount sup { font-size: .75em; }
  .v2-nav a { -webkit-user-select: none; -webkit-touch-callout: none; }
}
@media (pointer: coarse) {
  .v2-nav a:active { opacity: .5; }
}
@media (max-width: 599.98px), (any-pointer: coarse) {
  .v2-nav a::before {
    content: "";
    position: absolute;
    inset: -14px 0 auto;
    min-inline-size: 44px;
    block-size: 44px;
  }
  #v2-nav-actions { gap: 14px; }
  #v2-nav-actions a::before { inset-inline: auto 0; }
}
