/* kukadia.co
   One pen, one family of type, three grounds: wall, land, water.
   The accent is water: jade. It appears only where water is. */

:root {
  color-scheme: light;
  --bone: #efece5;
  --paper: #f8f6f1;
  --wall: #dad6cf;
  --ink: #15161a;
  --ink-2: #4a4944;
  --on-stone: #1b1a17;
  --rule: rgba(21, 22, 26, .18);
  /* The accent. It is jade now. The three blues before it were mixed from the water this site is
     about and are kept for the record (tools/blues.py has the numbers, fable-blues.html shows
     them). To try another, change the --water line only. */
  --dariyo: #076387;    /* the open Arabian Sea off Surat: marine blue with green in it */
  --khambhat: #2b565f;  /* the gulf itself, silt-laden: blue pulled toward green and grey */
  --chomasu: #184057;   /* the Tapi in the monsoon: blue pulled toward ink */
  --jade: #26684B;      /* the chosen green, #369369, deepened to pass 4.5:1: 5.73 with foam text on it, 4.58 as text on the wall */
  --water: var(--jade);
  --foam: #f1eee7;
  --foam-2: rgba(241, 238, 231, .86);
  --foam-rule: rgba(241, 238, 231, .3);

  --g: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --mark: #121316; --mark-light: #f2f1ee;   /* the wordmark's own ink and white */
  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --t-display: clamp(2.6rem, 6.4vw, 7.25rem);
  --t-title: clamp(2rem, 3.9vw, 4.1rem);
  --t-lead: clamp(1.1875rem, 1.5vw, 1.5625rem);
}
@media (min-width: 700px) { :root { --g: 8.14vw; } }
:root { --screen: 100vh; }
@supports (height: 100svh) { :root { --screen: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.water { background: var(--water); color: var(--foam); }
img, svg { display: block; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--water); color: var(--foam); }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite, .chart-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 2px solid var(--water); outline-offset: 4px; }
.water :focus-visible, .on-water :focus-visible, .foot :focus-visible { outline-color: var(--foam); }

.skip {
  position: absolute; left: var(--g); top: 14px; z-index: 60;
  padding: 12px 18px; background: var(--ink); color: var(--bone);
  text-decoration: none; transform: translateY(-240%);
}
.skip:focus-visible { transform: none; outline-offset: 2px; }

@property --lx { syntax: "<percentage>"; inherits: true; initial-value: 14.4%; }

/* ── type ─────────────────────────────────────────────── */
.display { font-weight: 300; font-size: var(--t-display); line-height: 1; letter-spacing: -.014em; text-wrap: balance; }
.title { font-weight: 300; font-size: var(--t-title); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.lead { font-weight: 300; font-size: var(--t-lead); line-height: 1.36; text-wrap: pretty; }
.label { font-weight: 500; font-size: .75rem; line-height: 1.3; letter-spacing: .15em; text-transform: uppercase; }
.quiet { color: var(--ink-2); }
.water .quiet, .on-water .quiet { color: var(--foam-2); }

/* the wordmark: "Kukadia" in Questrial, outlined. Its symbol box is 352.1 x 72.8 with one unit of
   air round the letters; it takes the brand's own ink, or its white on water */
.wm { display: block; overflow: visible; fill: currentColor; aspect-ratio: 352.1 / 72.8; height: auto; }
.sprite symbol { overflow: visible; }
/* the Foundation's mark, small: 480 x 720 symbol, strokes 30 units clear of every edge */
.ka { flex: none; width: 22px; height: 33px; margin-left: -1px; overflow: visible; stroke-width: 27; }
.pen { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* ── links and buttons ────────────────────────────────── */
.link {
  display: inline-flex; align-items: center; gap: .6em; min-height: 44px;
  color: inherit; font-weight: 500; text-decoration: none;
}
.link > span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .45s var(--ease);
}
.link:hover > span { background-size: 0 1px; background-position: 100% 100%; }
.link svg, .btn svg { width: .82em; height: .82em; flex: none; stroke-width: 1.5; transition: transform .35s var(--ease); }
.link:hover .i-out, .btn:hover .i-out, .plate:hover .i-out, .row:hover .i-out { transform: translate(2px, -2px); }
.link:hover .i-go, .btn:hover .i-go { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.4em;
  min-height: 54px; padding: 0 22px 1px; border: 1px solid currentColor;
  background: transparent; color: inherit; font: 500 1rem/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .12s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.water .btn:hover, .on-water .btn:hover { background: var(--foam); border-color: var(--foam); color: var(--water); }
.water .btn--solid, .on-water .btn--solid { background: var(--foam); border-color: var(--foam); color: var(--water); }
.water .btn--solid:hover, .on-water .btn--solid:hover { background: transparent; color: var(--foam); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
@media (max-width: 699.98px) { .actions .btn { flex: 1 1 auto; } }

/* ── top bar ──────────────────────────────────────────── */
.top {
  position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: 96px;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--g);
}
.top__brand { display: flex; align-items: center; min-height: 44px; color: var(--mark); }
.top__brand .wm { width: 112px; }
.top--home .top__brand { visibility: hidden; }
.top__nav { display: flex; gap: clamp(1.4rem, 2.8vw, 2.8rem); }
.top__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; position: relative;
}
.top__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease);
}
.top__nav a:hover::after, .top__nav a[aria-current="page"]::after { transform: scaleX(1); }
.top__menu {
  display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0;
  border: 0; background: none; color: inherit; font: 400 1.0625rem/1 var(--font); cursor: pointer;
}
.top__menu i { display: block; width: 22px; height: 7px; border-block: 1px solid currentColor; transition: height .3s var(--ease); }
.top__menu[aria-expanded="true"] i { height: 1px; }
.water .top { color: var(--foam); }
.water .top__brand { color: var(--mark-light); }

.menu {
  position: fixed; inset: 0; z-index: 25; background: var(--bone); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 120px var(--g) 40px;
}
.menu[hidden] { display: none; }
.menu a { display: flex; align-items: center; min-height: 64px; font-weight: 300; font-size: 2.4rem; line-height: 1.1; text-decoration: none; border-top: 1px solid var(--rule); }
.menu a.menu__mail { font-size: 1.0625rem; font-weight: 400; min-height: 56px; }
.menu-open { overflow: hidden; }
.menu-open .top { position: fixed; color: var(--ink); }
.menu-open .top__brand { color: var(--mark); }
.menu-open .top--home .top__brand { visibility: visible; }

@media (max-width: 699.98px) {
  .top { height: 68px; }
  .top__brand .wm { width: 100px; }
  .js .top__nav { display: none; }
  .js .top__menu { display: inline-flex; }
  html:not(.js) .top { position: static; height: auto; flex-wrap: wrap; gap: 4px 0; padding-block: 12px; }
  html:not(.js) .top__nav { gap: 0 1.2rem; flex-wrap: wrap; }
}

/* ── home: the shelf ──────────────────────────────────── */
.stage {
  --u: clamp(16px, .94vw, 19px);
  --face: min(17.71vw, calc(var(--u) * 15.625));
  --shift: calc(17.71vw - var(--face));
  --rise: calc(34.25vw - var(--shift));
  --stage-h: max(var(--screen), calc(var(--rise) + 350px));
  --zone: calc(var(--stage-h) - var(--rise) - 124px);
  position: relative; height: var(--stage-h);
  background: var(--wall); overflow: hidden; isolation: isolate;
  container-type: inline-size;
}
.stage__view { display: contents; }
.stage__world { position: absolute; left: 0; right: 0; bottom: calc(var(--shift) * -1); aspect-ratio: 3 / 2; }
.stage__world img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%);
}
.stage__world::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(ellipse 36% 62% at var(--lx) 72%, rgba(72, 60, 42, 0) 28%, rgba(72, 60, 42, .15) 100%);
}
.stage { --lx: 14.4%; transition: --lx 1s var(--ease); }
.stage:has(#co-2:checked) { --lx: 38.5%; }
.stage:has(#co-3:checked) { --lx: 61.5%; }
.stage:has(#co-4:checked) { --lx: 87.1%; }
.stage__wall {
  position: absolute; left: var(--g); right: var(--g); top: 98px; height: var(--zone);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 2.1vw, 34px);
  font-size: inherit; font-weight: inherit;
}
/* the name on the wall: as tall as the wall's free height allows, less the line under it */
.wm-box { display: block; width: min(100%, calc((var(--zone) - 5.6rem) * 4)); color: var(--mark); }
.wm--hero { width: 100%; }
.stage__line { display: block; font-weight: 300; font-size: clamp(1.25rem, 2.05vw, 2.15rem); line-height: 1.16; letter-spacing: -.006em; }
.stage__line a {
  text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--water), var(--water)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 2px; transition: background-size .45s var(--ease), color .2s ease;
}
.stage__line a:hover { color: var(--water); background-size: 100% 1px; }

.shelf { position: absolute; left: 0; right: 0; bottom: 0; height: var(--face); border: 0; min-width: 0; font-size: var(--u); }
.shelf::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6.5em; pointer-events: none;
  background: linear-gradient(rgba(196, 186, 172, .62), rgba(196, 186, 172, 0));
}
.shelf__card {
  position: absolute; top: .625em; left: calc(8.14cqw - 1.25em); width: 18.25em; height: 12.9em;
  background: var(--paper);
  box-shadow: 0 1px 0 #fff inset, 0 26px 44px -22px rgba(46, 36, 20, .55), 0 2px 5px rgba(46, 36, 20, .14);
  transition: left .6s var(--ease);
}
.shelf:has(#co-2:checked) .shelf__card { left: calc(36.13cqw - 1.25em); }
.shelf:has(#co-3:checked) .shelf__card { left: calc(57.94cqw - 1.25em); }
.shelf:has(#co-4:checked) .shelf__card { left: calc(91.86cqw - 17em); }

.exhibit { position: absolute; top: .625em; width: 15.75em; }
.exhibit--1 { left: 8.14cqw; }
.exhibit--2 { left: 36.13cqw; }
.exhibit--3 { left: 57.94cqw; }
.exhibit--4 { right: 8.14cqw; text-align: right; }
.exhibit input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.exhibit label { display: block; padding: 1.125em 0 .5em; cursor: pointer; }
.exhibit__name { display: block; font-size: 1.3125em; line-height: 1.2; }
.exhibit__name::after {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 12px; vertical-align: 2px;
  background: linear-gradient(currentColor, currentColor) 50% 50% / 100% 1px no-repeat,
              linear-gradient(currentColor, currentColor) 50% 50% / 1px 100% no-repeat;
  transition: transform .4s var(--ease), opacity .3s ease;
}
.exhibit label:hover .exhibit__name::after { transform: rotate(90deg); }
.exhibit input:checked + label .exhibit__name::after { opacity: 0; transform: rotate(90deg) scale(.4); }
.exhibit__cat { display: block; margin-top: .6em; color: var(--on-stone); font-size: .75em; }
.exhibit input:focus-visible + label { outline: 2px solid var(--water); outline-offset: 6px; }
.exhibit__panel {
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
}
.exhibit input:checked ~ .exhibit__panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .5s ease .22s, transform .6s var(--ease) .22s, visibility 0s;
}
.exhibit__panel p { font-size: 1em; line-height: 1.375; margin-top: .375em; text-wrap: pretty; }
.exhibit__panel .link { margin-top: .125em; font-size: 1em; }
.exhibit--4 .exhibit__panel .link { justify-content: flex-end; }

@supports not selector(:has(*)) {
  .shelf__card { display: none; }
  .exhibit input:checked ~ .exhibit__panel { background: var(--paper); margin: 0 -14px; padding: 2px 14px 8px; }
}

/* narrower than the shelf can carry its labels: the camera pans instead */
@media (max-width: 1279.98px) {
  .stage { height: auto; overflow: visible; background: var(--bone); --hu: max(clamp(430px, calc(var(--screen) * .6), 600px), 52.1vw); --iw: calc(var(--hu) * 1.92); }
  .stage__view { display: block; position: relative; height: var(--hu); overflow: hidden; background: var(--wall); }
  .stage__world {
    left: 0; right: auto; top: 0; bottom: auto; height: 128%; width: auto;
    transform: translate3d(var(--pan, 0px), 0, 0); transition: transform 1s var(--ease);
  }
  .stage__world img { -webkit-mask-image: none; mask-image: none; }
  .stage:has(#co-1:checked) { --pan: clamp(calc(100cqw - var(--iw)), calc(50cqw - var(--iw) * .15), 0px); }
  .stage:has(#co-2:checked) { --pan: clamp(calc(100cqw - var(--iw)), calc(50cqw - var(--iw) * .386), 0px); }
  .stage:has(#co-3:checked) { --pan: clamp(calc(100cqw - var(--iw)), calc(50cqw - var(--iw) * .618), 0px); }
  .stage:has(#co-4:checked) { --pan: clamp(calc(100cqw - var(--iw)), calc(50cqw - var(--iw) * .871), 0px); }
  .stage__wall { top: 88px; height: calc(var(--hu) * .622 - 100px); }
  .wm-box { width: min(100%, calc((var(--hu) * .622 - 100px - 4.6rem) * 4)); }

  .shelf { position: static; height: auto; padding: 6px var(--g) 34px; font-size: 1rem; }
  .shelf__card, .shelf::before { display: none; }
  .exhibit, .exhibit--4 { position: relative; top: auto; left: auto; right: auto; width: auto; text-align: left; border-bottom: 1px solid var(--rule); }
  .exhibit label { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 20px; min-height: 64px; padding: 20px 0 18px; }
  .exhibit__name { font-size: 1.375rem; }
  .exhibit__name::after { display: none; }
  .exhibit__cat { margin: 0; color: var(--ink-2); font-size: .75rem; }
  .exhibit label::after {
    content: ""; grid-column: 2; grid-row: 1; align-self: center; width: 11px; height: 11px;
    background: linear-gradient(currentColor, currentColor) 50% 50% / 100% 1px no-repeat,
                linear-gradient(currentColor, currentColor) 50% 50% / 1px 100% no-repeat;
    transition: transform .4s var(--ease);
  }
  .exhibit__cat { grid-column: 1; grid-row: 2; }
  .exhibit input:checked + label::after { background-size: 100% 1px, 1px 0; }
  .exhibit__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease), opacity .3s ease, visibility 0s .5s; transform: none; }
  .exhibit__panel > div { overflow: hidden; }
  .exhibit input:checked ~ .exhibit__panel { grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease), opacity .5s ease .1s, visibility 0s; }
  .exhibit__panel p { margin-top: 0; max-width: 34rem; font-size: 1.0625rem; line-height: 1.45; }
  .exhibit__panel .link { margin: 6px 0 14px; }
  .exhibit--4 .exhibit__panel .link { justify-content: flex-start; }
}
@media (max-width: 699.98px) {
  .stage__wall { top: 76px; height: calc(var(--hu) * .622 - 84px); gap: 16px; }
  .stage__line { font-size: 1.3125rem; }
}

/* ── home: the coast ──────────────────────────────────── */
.origin {
  position: relative; min-height: max(100vh, 62.5vw); min-height: max(100svh, 62.5vw);
  background: var(--bone); overflow: hidden; isolation: isolate;
}
.chart { position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 1440 / 900; z-index: -2; }
.chart > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__sea { fill: var(--water); }
.chart__land { fill: var(--bone); }
.chart__grat { fill: none; stroke: var(--foam); stroke-opacity: .13; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.chart__river { fill: none; stroke: var(--water); stroke-width: 1.5; stroke-linecap: round; }
.chart__mark { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; }
.chart__mark--sea { color: var(--foam); letter-spacing: .34em; }
.chart__mark--land { color: var(--ink-2); letter-spacing: .34em; }
.chart__mark--river { color: var(--water); font-size: .6875rem; letter-spacing: .3em; }
.chart__pin { position: absolute; left: 70.14%; top: 42%; width: 0; height: 0; }
.chart__pin::before {
  content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 3px var(--bone), 0 0 0 4px var(--ink);
}
.chart__pin::after { content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; }
.chart__pin span { position: absolute; left: 24px; bottom: -4px; display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.chart i { font-style: normal; }
.chart__pin b { font-weight: 300; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -.01em; }
.chart__north { position: absolute; left: 91.86%; top: 86%; width: 40px; height: 40px; margin: -20px 0 0 -40px; color: var(--foam); stroke-width: 1.25px; }
.chart__north i { position: absolute; right: 100%; bottom: 100%; margin: 0 2px 0 0; letter-spacing: 0; }
.origin::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 9%; background: linear-gradient(transparent, var(--water)); }
.origin__copy { padding: clamp(96px, 12.5vh, 150px) var(--g) 0; max-width: calc(var(--g) + 31rem); }
.origin--page::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 190px; background: linear-gradient(var(--bone) 52%, rgba(239, 236, 229, 0)); }
.origin--page .origin__copy { max-width: calc(var(--g) + 44rem); padding-top: clamp(124px, 17vh, 190px); }
.origin__copy .lead { margin-top: clamp(16px, 2.2vh, 26px); max-width: 26rem; }
.origin__copy .link { margin-top: clamp(10px, 1.6vh, 18px); }

@media (max-width: 899.98px) {
  .origin { min-height: max(100vh, 780px); min-height: max(100svh, 780px); }
  .chart { --cw: max(820px, 150vw); --cl: calc(46vw - var(--cw) * .7014); width: var(--cw); left: var(--cl); bottom: auto; top: calc(450px - var(--cw) * .2625); }
  .chart__mark--gulf, .chart__mark--land, .chart__mark--river { display: none; }
  .chart__mark--sea { left: calc(42vw - var(--cl)) !important; top: calc(245px + var(--cw) * .2625) !important; }
  .chart__north { left: calc(100vw - 30px - var(--cl)); top: calc(280px + var(--cw) * .2625); }
  .origin__copy { position: relative; padding-top: 84px; padding-bottom: 28px; max-width: none; }
  .origin__copy::before { content: ""; position: absolute; z-index: -1; inset: 0 0 -56px 0; background: linear-gradient(var(--bone) 78%, rgba(239, 236, 229, 0)); }
}

/* ── home: the water ──────────────────────────────────── */
.flood {
  position: relative; background: var(--water); color: var(--foam); isolation: isolate;
  min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(84px, 13vh, 150px) var(--g);
}
.flood__copy { position: relative; z-index: 1; }
.flood__name { display: flex; align-items: center; gap: 13px; }
.flood .display { margin-top: clamp(22px, 3.4vh, 40px); }
.flood .lead { margin-top: clamp(20px, 3vh, 34px); max-width: 27rem; color: var(--foam-2); }
.flood .actions { margin-top: clamp(26px, 4.4vh, 48px); }
.flood__art { position: absolute; z-index: 0; right: calc(var(--g) - 1vw); top: 50%; width: min(34vw, 66vh); transform: translateY(-50%); pointer-events: none; }
.drop { width: 100%; height: auto; overflow: visible; color: var(--foam); fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linecap: round; }
.drop path, .drop ellipse { vector-effect: non-scaling-stroke; }
.drop__bead { fill: currentColor; stroke: none; opacity: .9; }
.drop__ring { fill: none; stroke: currentColor; opacity: var(--o, 1); transform-box: fill-box; transform-origin: 50% 50%; }
@media (max-width: 899.98px) {
  .flood { display: block; padding-top: 72px; padding-bottom: 0; min-height: 0; }
  .flood__art { position: static; transform: none; width: auto; margin: 30px -8% -24px 22%; }
}

/* ── foot ─────────────────────────────────────────────── */
.foot { background: var(--water); color: var(--foam); padding: clamp(56px, 8vh, 88px) var(--g) 30px; }
.foot--ruled { border-top: 1px solid var(--foam-rule); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 40px 4vw; }
.foot__brand .wm { width: 100%; }
.foot__brand a { display: inline-flex; align-items: center; min-height: 44px; width: min(168px, 100%); color: var(--mark-light); }
.foot h2 { color: var(--foam-2); margin-bottom: 8px; }
.foot li a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + .72em) / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.foot li a:hover { background-size: 100% 1px; }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 32px;
  margin-top: clamp(40px, 7vh, 72px); padding-top: 14px; border-top: 1px solid var(--foam-rule);
  font-size: .9375rem; color: var(--foam-2);
}
.foot__base ul { display: flex; gap: 28px; }
.foot__base a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot__base a:hover { color: var(--foam); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 899.98px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* ── inner pages ──────────────────────────────────────── */
.head { padding: clamp(150px, 25vh, 250px) var(--g) clamp(44px, 8vh, 92px); }
.head .lead { margin-top: clamp(18px, 3vh, 32px); max-width: 33rem; }
.head--tight { padding-bottom: clamp(28px, 5vh, 56px); }
@media (max-width: 699.98px) { .head { padding-top: 132px; } }
.band { padding: clamp(64px, 12vh, 140px) var(--g); }
.band--water { background: var(--water); color: var(--foam); }
.band--water .lead { color: var(--foam-2); }

/* companies: one shelf, four windows */
.poly { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 26px); padding: 0 var(--g) clamp(72px, 12vh, 140px); }
.plate { display: block; color: inherit; text-decoration: none; transition: transform .45s var(--ease); }
.plate:hover { transform: translateY(-2px); }
.plate { transition: transform .45s var(--ease), opacity .45s ease; }
.poly:has(.plate:hover) .plate:not(:hover), .poly:has(.plate:focus-visible) .plate:not(:focus-visible) { opacity: .5; }
.plate__win { display: block; position: relative; overflow: hidden; aspect-ratio: 33 / 50; background: var(--wall); }
.plate__win img {
  position: absolute; max-width: none; width: 465.45%; height: auto; left: var(--x); top: -66%;
  transform-origin: var(--ox) 72%; transition: transform 1.1s var(--ease);
}
.plate:hover .plate__win img { transform: scale(1.035); }
.plate__name { display: block; margin-top: 22px; font-weight: 300; font-size: clamp(1.5rem, 2.1vw, 2.1rem); line-height: 1.1; letter-spacing: -.008em; }
.plate__cat { display: block; margin-top: 10px; color: var(--ink-2); }
.plate p { margin-top: 16px; max-width: 22rem; text-wrap: pretty; }
.plate .link { margin-top: 8px; }
@media (max-width: 999.98px) {
  .poly { grid-template-columns: 1fr; gap: 0; }
  .plate { display: grid; grid-template-columns: 34% 1fr; gap: 0 22px; align-items: start; padding: 22px 0; border-top: 1px solid var(--rule); }
  .plate:hover { transform: none; }
  .plate__win { grid-row: 1 / span 4; }
  .plate__name { margin-top: 0; }
}

/* the group, drawn as it is built: family beneath, companies on it, foundation above */
.build { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.build__top, .build__base { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; text-decoration: none; }
.build__top { border-bottom: 3px solid var(--water); color: var(--water); }
.build__base { border-top: 3px solid currentColor; }
.build__col { padding: 26px 20px 30px 0; border-left: 1px solid var(--rule); padding-left: 20px; text-decoration: none; min-height: clamp(170px, 27vh, 280px); display: flex; flex-direction: column; justify-content: flex-end; transition: background-color .3s ease; }
.build__top + .build__col { border-left: 0; padding-left: 0; }
.build__col b { font-weight: 300; font-size: clamp(1.25rem, 1.9vw, 1.9rem); line-height: 1.1; }
.build__col span { margin-top: 8px; color: var(--ink-2); }
.build__top b, .build__base b { font-weight: 400; font-size: 1.125rem; }
.build a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.water .build__top, .band--water .build__top { border-color: var(--foam); color: var(--foam); }
.water .build__col, .band--water .build__col { border-color: var(--foam-rule); }
.water .build__col span, .band--water .build__col span { color: var(--foam-2); }
.build__base svg { width: .82em; height: .82em; flex: none; stroke-width: 1.5; transition: transform .35s var(--ease); }
.build__base:hover svg { transform: translateX(4px); }
@media (max-width: 899.98px) {
  .build { grid-template-columns: 1fr; }
  .build__col, .build__top + .build__col { min-height: 64px; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0 16px; border-left: 0; border-top: 1px solid var(--rule); }
  .build__top + .build__col { border-top: 0; }
  .build__col span { margin-top: 0; text-align: right; }
  .water .build__col { border-color: var(--foam-rule); }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 6vw; align-items: start; }
.split > .prose { padding-top: .5em; }
@media (max-width: 899.98px) { .split { grid-template-columns: 1fr; } }

.band--ruled { border-top: 1px solid var(--rule); }
.water .band--ruled { border-color: var(--foam-rule); }
.split--head { margin-bottom: clamp(40px, 8vh, 88px); align-items: end; }
.split--head .lead { max-width: 27rem; }
.band--mail { padding-block: clamp(8px, 2vh, 24px) clamp(56px, 10vh, 110px); }
.band--mail .actions { margin-top: clamp(28px, 5vh, 48px); }
.band--routes { padding-top: 0; }
.band--routes .rows { margin-top: clamp(28px, 5vh, 48px); }
.flood--page { padding-top: clamp(130px, 18vh, 190px); }
/* on its own page the mark sits under the top bar: keep it clear of the links on short screens */
@media (min-width: 900px) { .flood--page .flood__art { top: calc(50% + 34px); width: min(34vw, 60vh); } }
@media (max-width: 899.98px) { .flood--page { padding-top: 132px; } }

.close { padding: clamp(72px, 14vh, 160px) var(--g); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; border-top: 1px solid var(--rule); }
@media (max-width: 699.98px) { .close { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px; } }
.water .close { border-color: var(--foam-rule); }

/* lists: contact routes, apps */
.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); align-items: center; gap: 6px 32px;
  min-height: 76px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none;
  transition: padding .4s var(--ease);
}
a.row:hover { padding-left: 10px; }
.row b { font-weight: 300; font-size: clamp(1.375rem, 2vw, 1.9rem); line-height: 1.15; }
.row__end { display: inline-flex; align-items: center; justify-self: end; gap: .6em; font-weight: 500; }
.row__end svg { width: .82em; height: .82em; stroke-width: 1.5; }
.row__links { display: flex; justify-self: end; gap: 6px 26px; }
@media (max-width: 799.98px) {
  .row { grid-template-columns: 1fr auto; }
  .row > .quiet { grid-column: 1; grid-row: 2; }
  .row__end, .row__links { grid-column: 2; grid-row: 1 / span 2; }
  .row--app { grid-template-columns: 1fr; }
  .row--app .row__links { grid-column: 1; grid-row: 3; justify-self: start; }
}

.band--mail { container-type: inline-size; }
.mail { display: block; width: fit-content; min-height: 44px; font-weight: 300; font-size: clamp(2rem, 7vw, 7.25rem); font-size: min(7.25rem, 11.4cqw); line-height: 1.05; letter-spacing: -.02em; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: .06em; transition: background-size .5s var(--ease); }
.mail:hover { background-size: 0 1px; background-position: 100% 100%; }
.copy[data-state="done"] { background: var(--water); border-color: var(--water); color: var(--foam); }
.copy__tick { width: .9em; height: .9em; stroke-width: 1.6; display: none; }
.copy[data-state="done"] .copy__tick { display: block; }
html:not(.js) .copy { display: none; }

/* running text: privacy, app pages */
.prose { max-width: 40rem; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-weight: 400; font-size: 1.3125rem; line-height: 1.25; margin-top: 2.3em; }
.prose h2 + * { margin-top: .5em; }
.prose ul { list-style: none; }
.prose li { position: relative; padding-left: 1.5em; }
.prose li + li { margin-top: .5em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .74em; width: .7em; height: 1px; background: currentColor; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 500; }
.text { padding: 0 var(--g) clamp(80px, 14vh, 160px); }
.text--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 28px 32px; align-items: start; border-top: 1px solid var(--rule); padding-top: 0; margin-top: 0; }
.text--split { margin-inline: var(--g); padding-inline: 0; padding-top: clamp(28px, 5vh, 48px); }
.text--split .lead { max-width: 21rem; }
.text--split aside > * + * { margin-top: 14px; }
.text--split .prose > h2:first-child { margin-top: 0; }
@media (max-width: 899.98px) { .text--split { grid-template-columns: 1fr; } }
.crumb { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; margin-bottom: 8px; text-decoration: none; color: var(--ink-2); }
.crumb:hover { color: var(--ink); }
.crumb svg { width: .8em; height: .8em; stroke-width: 1.5; transform: scaleX(-1); }

/* ── motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* the hero enters once: the name fades in and rises a few pixels, then the line and the labels settle */
  .enter .wm--hero { animation: arrive 1.1s var(--ease) .1s both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .enter .stage__line { animation: rise .9s var(--ease) .45s both; }
  .enter .exhibit { animation: rise .8s var(--ease) both; }
  .enter .exhibit--1 { animation-delay: .7s; }
  .enter .exhibit--2 { animation-delay: .78s; }
  .enter .exhibit--3 { animation-delay: .86s; }
  .enter .exhibit--4 { animation-delay: .94s; }
  .enter .shelf__card { animation: card .9s var(--ease) .6s both; }
  .enter .stage__world img { animation: settle 2.6s cubic-bezier(.2, .6, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes card { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.035); } to { transform: none; } }

  /* the coast: the river runs to the sea, then the pin lands */
  .io .moment .chart__river { stroke-dasharray: 1 2; stroke-dashoffset: 1.01; }
  .io .moment.is-in .chart__river { stroke-dashoffset: 0; transition: stroke-dashoffset 2s cubic-bezier(.4, 0, .3, 1) .1s; }
  .io .moment .chart__pin { opacity: 0; transform: translateY(-18px); }
  .io .moment.is-in .chart__pin { opacity: 1; transform: none; transition: opacity .4s ease 1.1s, transform .7s var(--ease) 1.1s; }

  .io .moment.is-in .chart__pin::after { animation: ping 1.8s cubic-bezier(.2, .6, .3, 1) 1.5s both; }
  @keyframes ping { from { opacity: .65; transform: scale(1); } to { opacity: 0; transform: scale(7); } }

  /* the water: one drop, then the rings */
  .io .moment .drop__ring { opacity: 0; transform: scale(.2); }
  .io .moment.is-in .drop__ring { opacity: var(--o, 1); transform: none; transition: transform 2.2s cubic-bezier(.16, .7, .2, 1), opacity 1.2s ease; transition-delay: calc(.55s + var(--i) * .22s); }
  .io .moment .drop__bead { transform: translateY(-34px); opacity: 0; }
  .io .moment.is-in .drop__bead { transform: none; opacity: .9; transition: transform .6s cubic-bezier(.5, 0, .9, .6) .1s, opacity .25s ease .1s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
