:root {
  --night: #0a1520;
  --deep: #08121b;
  --white: #f2f5f8;
  --soft: #a9b7c4;
  --mist: #6f8191;
  --hair: rgba(255,255,255,.12);
  --hair-2: rgba(255,255,255,.2);
  --sand: #c2b08f;
  --sand-light: #e3d5b7;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1280px;
  --gap: clamp(16px, 2vw, 24px);
  --header: 88px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
/* Pages cross-fade into one another where the browser supports it. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { min-height: 100svh; display: flex; flex-direction: column; font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.75; color: var(--soft); background: var(--night); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sand); color: var(--night); }
:focus-visible { outline: 1px solid var(--sand-light); outline-offset: 5px; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; background: var(--white); color: var(--night); padding: 10px 16px; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.caps { font-size: 10.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; line-height: 1.6; color: var(--mist); }
.centre .caps, .caps.centre { margin-right: -.28em; }
.display { font-family: Jost, sans-serif; font-weight: 300; color: var(--white); line-height: 1.04; letter-spacing: -.02em; }
main { flex: 1; display: block; }

/* Header: transparent over the page, a frosted bar once you scroll. */
header.site { position: fixed; inset: 0 0 auto; z-index: 60; border-bottom: 1px solid transparent; transition: background .6s var(--ease), border-color .6s var(--ease); }
header.site.scrolled { background: rgba(10,21,32,.72); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border-color: var(--hair); }
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header); transition: height .6s var(--ease); }
.scrolled .bar { height: 68px; }
.brand { display: block; width: 132px; flex: none; }
.brand svg { display: block; width: 100%; height: auto; overflow: visible; }
nav.main ul { list-style: none; display: flex; align-items: center; gap: clamp(26px, 3.4vw, 48px); }
nav.main a { position: relative; display: block; padding: 8px 0; font-size: 10.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; line-height: 1; color: var(--soft); transition: color .3s; }
nav.main a::after { content: ""; position: absolute; left: 0; right: .28em; bottom: 0; height: 1px; background: var(--sand); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease); }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--white); }
nav.main a:hover::after, nav.main a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }

/* Footer */
footer.site { border-top: 1px solid var(--hair); }
footer.site .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 32px; padding-top: 22px; padding-bottom: 26px; }
footer.site .fine { font-size: 12px; color: var(--mist); }
footer.site .fine:last-child { justify-self: end; }
footer.site ul { list-style: none; display: flex; gap: 28px; }
footer.site ul a { font-size: 12px; color: var(--mist); transition: color .3s; }
footer.site ul a:hover, footer.site ul a[aria-current="page"] { color: var(--white); }

/* Reveal on scroll */
.js .reveal .rv { opacity: 0; transform: translateY(16px); }
.reveal.in .rv { opacity: 1; transform: none; transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.reveal.in .rv:nth-child(2) { transition-delay: .1s; }
.reveal.in .rv:nth-child(3) { transition-delay: .2s; }
.reveal.in .rv:nth-child(4) { transition-delay: .3s; }

/* The address, underlined in sand */
.mail { display: inline-block; font-family: Jost, sans-serif; font-weight: 300; font-size: 21px; line-height: 1.3; color: var(--white); padding-bottom: 6px;
  background: linear-gradient(var(--sand), var(--sand)) 0 100% / 100% 1px no-repeat; transition: background-size .8s var(--ease), color .4s; }
.mail:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--sand-light); }

/* Inner pages */
.page-head { position: relative; padding-top: calc(var(--header) + clamp(72px, 11vw, 150px)); padding-bottom: clamp(64px, 8vw, 110px); text-align: center;
  background: radial-gradient(90% 70% at 50% 118%, rgba(26,54,80,.5), rgba(26,54,80,0) 70%), linear-gradient(180deg, var(--deep), var(--night)); }
.page-head h1 { font-size: clamp(40px, 5.4vw, 84px); margin-top: 26px; text-wrap: balance; }
.page-head .intro { margin: 26px auto 0; max-width: 34em; color: var(--soft); text-wrap: balance; }
.section { border-top: 1px solid var(--hair); padding: clamp(72px, 9vw, 130px) 0; }
.section.centre { text-align: center; }
.section h2.caps { margin-bottom: clamp(36px, 4.5vw, 56px); }


.prose { max-width: 680px; margin: 0 auto; }
.prose h2 { margin-top: 52px; font-family: Jost, sans-serif; font-weight: 400; font-size: 21px; line-height: 1.3; color: var(--white); letter-spacing: 0; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--sand); }
.prose a { color: var(--white); border-bottom: 1px solid var(--hair-2); transition: border-color .3s; }
.prose a:hover { border-color: var(--sand); }
.prose .updated { margin-top: 56px; font-size: 12px; color: var(--mist); }

.correspond { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.correspond .mail { font-size: clamp(28px, 3.4vw, 46px); padding-bottom: 10px; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; gap: 24px 56px; margin-top: clamp(56px, 7vw, 90px); }
.facts li { display: flex; flex-direction: column; gap: 6px; }
.facts span:last-child { color: var(--white); }

.page-in { animation: page-in 1.2s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  :root { --header: 72px; }
  .brand { width: 116px; }
  nav.main ul { gap: 22px; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  footer.site ul { grid-column: 1 / -1; grid-row: 1; flex-wrap: wrap; gap: 10px 24px; }
  .facts { grid-template-columns: 1fr; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal .rv { opacity: 1 !important; transform: none !important; }
}
