/* Wings Tails & Fins. One idea: the roomy tank. Every screen is one tank, one animal, and the rest is water. */
:root {
  --ground: #0b1a1c;
  --shade: #061012;
  --ink: #efe9dc;
  --ink-dim: #a9b0a8;
  --accent: #ff6b3d;
  --teal: #2e6f6a;
  --teal-lit: #74b5ad;
  --yellow: #d8bf5a;
  --line: color-mix(in srgb, var(--teal) 72%, transparent);
  --edge: var(--ground);
  --serif: Fraunces, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, "Segoe UI", sans-serif;
  --gut: clamp(1.25rem, 4vw, 4.5rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --head-h: 4.75rem;
  --hair: .0625rem;
  --ease: cubic-bezier(.22, .61, .2, 1);
  --fill: 1.6s;
  --fade: .8s;
  /* Where the hood lamp hangs over a tank, left to right. Override per tank. */
  --hood-x: 68%;
  --t-display: clamp(2.75rem, 1rem + 8vw, 9rem);
  --t-title: clamp(2.125rem, 1.2rem + 3.6vw, 4.5rem);
  --t-sub: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  --t-lede: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
  --t-note: .875rem;
  --t-label: .75rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
html.menu-open { overflow: hidden; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-weight: 400; font-synthesis: none;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, dl, dd, ul, ol, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1; text-wrap: balance; overflow-wrap: break-word;
}
p { text-wrap: pretty; }
::selection { background: var(--teal); color: var(--ink); }
:focus-visible { outline: .125rem solid var(--accent); outline-offset: .25rem; }
[hidden] { display: none !important; }

/* Screen-reader-only text: .sr-only. Skip link: .skip (layout only). */
.sr-only { position: absolute; width: .0625rem; height: .0625rem; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -99rem; top: 0; z-index: 99; background: var(--ink); color: var(--shade); padding: .75rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }

/* Type scale: .display (h1, hero size), .title (h2), .subtitle (h3), .lede (opening paragraph), .note (small print). */
.display { font-size: var(--t-display); line-height: .92; letter-spacing: -.03em; }
.title { font-size: var(--t-title); }
.subtitle { font-size: var(--t-sub); line-height: 1.08; letter-spacing: -.01em; }
.lede { font-size: var(--t-lede); line-height: 1.5; max-width: 30rem; }
.note { font-size: var(--t-note); line-height: 1.55; color: var(--ink-dim); }

/* Tracked small-caps label for kickers and table heads: .label, .label--yellow (Tails chapter only). */
.label { font-family: var(--sans); font-size: var(--t-label); line-height: 1.3; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }
.label--yellow { color: var(--yellow); }

/* Vertical rhythm for a column of text: .stack (set --stack to change the step). */
.stack > * + * { margin-top: var(--stack, 1.25rem); }

/* ---- Chrome: the air above the waterline ----------------------------------- */
/* Header sits in normal flow above the first tank: .head, .mark, .mark-name, .head-nav, .menu-btn (layout only). */
.head {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--head-h); padding: .75rem var(--gut);
}
.mark { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; white-space: nowrap; }
.mark-svg { width: 2rem; height: 2rem; flex: none; }
.mark-water { transition: stroke .4s var(--ease); }
.mark:hover .mark-water, .mark:focus-visible .mark-water { stroke: var(--accent); }
.mark-name { font-family: var(--serif); font-size: 1.25rem; line-height: 1; letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.head-nav { display: none; gap: clamp(1rem, 1.8vw, 2rem); font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; }
.head-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-dim); white-space: nowrap; transition: color .3s; }
.head-nav a:hover { color: var(--ink); }
.head-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--teal-lit); text-decoration-thickness: var(--hair); text-underline-offset: .6em; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.1rem;
  background: none; border: var(--hair) solid var(--line); cursor: pointer;
  font-size: var(--t-label); letter-spacing: .22em; text-transform: uppercase; transition: border-color .3s, background-color .3s;
}
.menu-btn:hover { border-color: var(--teal-lit); background: color-mix(in srgb, var(--teal) 22%, transparent); }
html:not(.js) .menu-btn { display: none; }
html:not(.js) .head { flex-wrap: wrap; }
html:not(.js) .head-nav { display: flex; flex-wrap: wrap; }
@media (min-width: 68rem) {
  .head-nav { display: flex; }
  .head .menu-btn { display: none; }
}

/* Full-screen menu, opened by site.js: .menu, .menu-head, .menu-nav, .menu-foot (layout only). */
.menu {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  background: var(--ground); overflow-y: auto; overscroll-behavior: contain; animation: menu-in .5s var(--ease);
}
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--head-h); padding: .75rem var(--gut); border-bottom: var(--hair) solid var(--line); }
.menu-nav { display: flex; flex-direction: column; padding: clamp(1rem, 4vh, 2.5rem) var(--gut); }
.menu-nav a {
  display: flex; align-items: center; min-height: 3.5rem; padding: .35rem 0;
  font-family: var(--serif); font-size: clamp(1.875rem, 1.2rem + 3.6vw, 3.25rem); line-height: 1.05; letter-spacing: -.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink-dim); transition: color .3s;
}
.menu-nav a:hover, .menu-nav a[aria-current="page"] { color: var(--ink); }
.menu-foot { margin-top: auto; padding: 1.5rem var(--gut) 2rem; border-top: var(--hair) solid var(--line); }
.menu-foot > * + * { margin-top: .6rem; }

/* ---- The recurring device: the roomy tank ----------------------------------- */
/* One screen = one tank: section.tank; .tank--full fills the first screen; .tank--short drops the height; .tank--shade is deeper water. */
.tank {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(1.25rem, 3vh, 2rem) var(--gut) clamp(3rem, 9vh, 6.5rem);
  background: var(--ground);
}
.tank--full, .opening { min-height: calc(100vh - var(--head-h)); min-height: calc(100svh - var(--head-h)); }
.tank--short { min-height: 0; }
.tank--shade { background: var(--shade); --edge: var(--shade); }

/* The hood light is drawn by .tank itself and comes up when site.js adds .is-lit; move it with --hood-x. */
.tank::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(62% 58% at var(--hood-x) 0%, color-mix(in srgb, var(--teal) 44%, transparent) 0%, transparent 72%);
  opacity: .55; transition: opacity 2.4s var(--ease);
}
.js .tank:not(.is-lit)::before { opacity: 0; }

/* The waterline: an empty span.waterline as the first child of every .tank; .waterline--mark adds the orange marker (one accent per screen). */
.waterline {
  position: absolute; inset: 0 0 auto 0; height: var(--hair); background: var(--line); pointer-events: none;
  box-shadow: 0 0 1.25rem color-mix(in srgb, var(--teal) 60%, transparent);
  transform-origin: 0 50%; transition: transform var(--fill) var(--ease);
}
.waterline--mark::before { content: ""; position: absolute; left: var(--gut); top: 0; width: 2.25rem; height: .1875rem; background: var(--accent); }
.js .tank:not(.is-lit) .waterline { transform: scaleX(0); }

/* The tank label, in flow under the waterline: p.tank-label ("Wings — 1"); wrap the count in a span; --left, --foot (bottom corner), --yellow. */
.tank-label {
  align-self: flex-end; display: inline-flex; align-items: baseline; gap: .6em; max-width: 100%;
  padding: .45rem .7rem .4rem; border: var(--hair) solid var(--line);
  background: color-mix(in srgb, var(--shade) 55%, transparent);
  font-size: var(--t-label); line-height: 1.25; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim);
  transform: rotate(-1.2deg);
}
.tank-label span { color: var(--ink); }
.tank-label--left { align-self: flex-start; transform: rotate(.9deg); }
.tank-label--foot { order: 9; margin-top: clamp(2rem, 6vh, 4rem); }
.tank-label--yellow { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 45%, transparent); }

/* The water itself, a twelve-column grid kept under-filled: .tank-body (in a tank, copy sits low) or .grid (anywhere); --mid and --top change where copy rests. */
.tank-body, .grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: clamp(2rem, 5vh, 3.5rem);
}
.tank-body { flex: 1; align-content: end; margin-top: clamp(2rem, 6vh, 4rem); }
.tank-body--mid { align-content: center; }
.tank-body--top { align-content: start; }
.tank-body > *, .grid > * { grid-column: 1 / -1; min-width: 0; }

/* Column placements from 56rem up; text never takes more than five columns: .col-text, .col-text--right, .col-pic, .col-pic--left. */
@media (min-width: 56rem) {
  .col-text { grid-column: 1 / span 5; }
  .col-text--right { grid-column: 8 / span 5; }
  .col-pic { grid-column: 7 / -1; }
  .col-pic--left { grid-column: 1 / span 6; }
}

/* A page opening: section.tank.opening > .waterline + .tank-label + .tank-body > .col-text > h1.display + p.lede (+ a.action). */
.opening .display + .lede, .opening .title + .lede { margin-top: clamp(1.25rem, 3vh, 2rem); }
.opening .lede + .action { margin-top: clamp(1.5rem, 4vh, 2.5rem); }

/* ---- Shared pieces ----------------------------------------------------------- */
/* Photograph whose edges dissolve into the water: figure.pic > .pic-frame > img, then figcaption.cap; crops: .pic--wide, .pic--tall, .pic--pano. */
.pic { position: relative; }
.pic-frame { position: relative; overflow: hidden; background: var(--shade); }
.pic-frame img { width: 100%; height: 100%; object-fit: cover; }
.pic-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 78% 78% at 50% 45%, transparent 52%, var(--edge) 100%);
}
.pic--wide .pic-frame { aspect-ratio: 16 / 9; }
.pic--tall .pic-frame { aspect-ratio: 4 / 5; }
.pic--pano .pic-frame { aspect-ratio: 21 / 9; }
.cap {
  margin-top: .9rem; max-width: 26rem;
  font-size: var(--t-label); line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim);
}

/* Hairline rules in hood-light teal: hr.rule (horizontal), span.rule--v (vertical, give it a height and keep it in a margin). */
.rule { display: block; width: 100%; height: var(--hair); margin: 0; border: 0; background: var(--line); }
.rule--v { display: block; width: var(--hair); background: var(--line); }

/* Inline text link: .link. */
.link {
  text-decoration: underline; text-decoration-color: var(--teal-lit); text-decoration-thickness: var(--hair);
  text-underline-offset: .28em; overflow-wrap: anywhere; transition: text-decoration-color .3s;
}
.link:hover { text-decoration-color: var(--ink); }

/* The one orange action a screen may carry, led by a short waterline: a.action. */
.action {
  display: inline-flex; align-items: center; gap: .9rem; min-height: 2.75rem; padding: .35rem 0;
  font-size: .8125rem; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.action::before { content: ""; flex: none; width: 2.25rem; height: .125rem; background: var(--accent); transition: width .5s var(--ease); }
.action:hover::before, .action:focus-visible::before { width: 3.75rem; }

/* Quiet hairline button for secondary actions (tel, mailto, consent): .btn. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .35rem 1.25rem;
  background: none; border: var(--hair) solid var(--ink-dim); cursor: pointer;
  font-size: var(--t-label); line-height: 1.3; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  transition: border-color .3s, background-color .3s;
}
.btn:hover { border-color: var(--teal-lit); background: color-mix(in srgb, var(--teal) 28%, transparent); }

/* Care facts as ruled rows: dl.facts > div > dt + dd. */
.facts { border-bottom: var(--hair) solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding: .8rem 0; border-top: var(--hair) solid var(--line); }
.facts dt { font-size: var(--t-label); line-height: 1.7; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
.facts dd { font-size: 1rem; line-height: 1.45; }

/* Long reading text (legal pages, care notes): .prose around h2, h3, p, ul, ol. */
.prose { max-width: 36rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--t-sub); line-height: 1.08; margin-top: clamp(2.5rem, 6vh, 3.75rem); }
.prose h3 { font-size: 1.25rem; line-height: 1.15; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .5rem; }
.prose li::marker { color: var(--teal-lit); }
.prose a { text-decoration: underline; text-decoration-color: var(--teal-lit); text-decoration-thickness: var(--hair); text-underline-offset: .28em; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: var(--ink); }

/* Fade up out of the dark, for pictures only and never for type: .reveal (site.js adds .is-in once it is seen). */
.js .reveal { opacity: 0; transition: opacity var(--fade) var(--ease); }
.js .reveal.is-in { opacity: 1; }

/* ---- Footer: the bottom of the tank ------------------------------------------ */
/* Footer is a short, shaded tank: .foot, .foot-grid, .foot-name, .foot-tag, .foot-addr, .foot-list, .foot-base (layout only). */
.foot { padding-bottom: 1.5rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.75rem var(--gap); margin-top: clamp(2.5rem, 8vh, 5rem); }
.foot-grid > * { min-width: 0; }
.foot-name { font-family: var(--serif); font-size: var(--t-title); line-height: .98; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.foot-tag { margin-top: 1.25rem; max-width: 24rem; color: var(--ink-dim); }
.foot .label { margin-bottom: 1rem; }
.foot-addr span { display: block; }
.foot-addr + .note { margin-top: .9rem; max-width: 18rem; }
.foot-list { list-style: none; padding: 0; }
.foot-find .foot-list { margin-top: .6rem; }
.foot-list a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot-nav a { color: var(--ink-dim); transition: color .3s; }
.foot-nav a:hover, .foot-nav a[aria-current="page"] { color: var(--ink); }
.foot-base {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.75rem;
  margin-top: clamp(2.5rem, 7vh, 4.5rem); padding-top: .75rem; border-top: var(--hair) solid var(--line);
  font-size: var(--t-note); color: var(--ink-dim);
}
.foot-base a, .foot-base button, .foot-base span { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot-base button { padding: 0; background: none; border: 0; cursor: pointer; }
.foot-base a, .foot-base button { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: var(--hair); text-underline-offset: .3em; transition: color .3s; }
.foot-base a:hover, .foot-base button:hover { color: var(--ink); }
@media (min-width: 56rem) {
  .foot-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
}

/* ---- Consent: a label stuck to the corner of the glass ----------------------- */
/* Consent banner, fixed in the lower left and never over the whole page: #consent.consent, .consent-text, .consent-acts (layout only). */
.consent {
  position: fixed; left: var(--gut); bottom: 1rem; z-index: 40;
  width: min(26rem, calc(100% - var(--gut) * 2)); padding: 1rem 1.15rem 1.1rem;
  background: var(--shade); border: var(--hair) solid var(--line);
  box-shadow: 0 1rem 3rem color-mix(in srgb, var(--shade) 80%, transparent);
}
.consent-text { font-size: var(--t-note); line-height: 1.55; }
.consent-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .9rem; }

/* ---- Reduced motion: the tank is already full and lit ------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; }
  .js .reveal { opacity: 1; }
  .js .tank:not(.is-lit)::before { opacity: .55; }
  .js .tank:not(.is-lit) .waterline { transform: none; }
}

/* A page never scrolls sideways. */
html, body { overflow-x: clip; }
/* Past a full-HD window the whole page grows with the window - type, gaps and pictures
   together - so a very wide screen (or a page zoomed far out) shows the same composition,
   not a small column of text lost in an enormous picture. */
@media (min-width: 1921px) { html { font-size: calc(100vw / 120); } }
