@property --dot { syntax: '<length>'; inherits: false; initial-value: 0px; }
:root {
  --bg: #060C17;
  --ink: #E9EEF5;
  --soft: #C8D2E0;
  --mute: #AEBACB;
  --gold: #E8CD8E;
  --line: rgba(232, 205, 142, 0.22);
  --hair: rgba(174, 186, 203, 0.2);
  --hz: 58%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Manrope, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
.bar nav a, .links a, .links .vote, .more a, .contact .demos a:not(.btn) { display: inline-block; padding: 10px 0; text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)), linear-gradient(rgba(174, 186, 203, 0.55), rgba(174, 186, 203, 0.55)); background-repeat: no-repeat; background-position: 0 calc(100% - 7px); background-size: 0% 1.5px, 100% 1px; transition: background-size 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.2s; }
.bar nav a { background-size: 0% 1.5px, 0% 1px; }
.bar nav a:hover, .bar nav a:focus-visible, .links a:hover, .links a:focus-visible, .links .vote:hover, .links .vote:focus-visible, .more a:hover, .more a:focus-visible, .contact .demos a:not(.btn):hover, .contact .demos a:not(.btn):focus-visible { color: #FFFFFF; background-size: 100% 1.5px, 100% 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: Jura, Manrope, system-ui, sans-serif; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 14px; background: var(--gold); color: #06101D; }
.skip:focus { left: 8px; }

/* Buttons: the gold fill materialises out of dots */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 0; background: transparent; color: var(--gold); font: 600 14px/1 Jura, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: color 0.2s 0.1s, box-shadow 0.35s 0.1s; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; --dot: -1px; background-image: radial-gradient(circle at center, var(--gold) var(--dot), transparent calc(var(--dot) + 0.7px)); background-size: 7px 7px; background-position: center; transition: --dot 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.btn:hover, .btn:focus-visible { color: #06101D; box-shadow: 0 0 26px rgba(232, 205, 142, 0.45); }
.btn:hover::before, .btn:focus-visible::before { --dot: 5.4px; }
.btn small { font: 500 12px/1 Manrope, sans-serif; letter-spacing: 0; text-transform: none; color: var(--mute); transition: color 0.2s 0.1s; }
.btn:hover small, .btn:focus-visible small { color: #22314A; }
.btn svg { flex: none; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding-top: 64px; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #040913 0%, #0A172B var(--hz), #060D19 calc(var(--hz) + 110px), #040913 100%); }
#water { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fallback { display: none; position: absolute; left: -50%; right: -50%; top: var(--hz); bottom: -60%; background: radial-gradient(circle, rgba(232, 205, 142, 0.5) 1.2px, transparent 1.8px) 0 0 / 28px 28px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 0; }
.nogl #water { display: none; }
.nogl .fallback { display: block; }
.horizon { position: absolute; left: 0; right: 0; top: calc(var(--hz) - 120px); height: 170px; background: linear-gradient(180deg, transparent, rgba(232, 205, 142, 0.07) 72%, transparent); }
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; isolation: isolate; border-bottom: 1px solid transparent; transition: border-color 0.4s; }
.bar::before { content: ''; position: absolute; inset: 0; z-index: -1; --dot: -1px; background-image: radial-gradient(circle at center, #060C17 var(--dot), transparent calc(var(--dot) + 0.7px)); background-size: 7px 7px; background-position: center; transition: --dot 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.docked .bar::before { --dot: 5.4px; }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.docked .bar { border-bottom-color: var(--line); }
.brand { font: 600 20px/1 Jura, Manrope, system-ui, sans-serif; letter-spacing: 0.02em; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; opacity: 0; pointer-events: none; }
.docked .brand { opacity: 1; pointer-events: auto; }
.docked h1 { visibility: hidden; }
.bar nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.bar nav a { color: var(--soft); }
.card { position: relative; z-index: 3; width: 100%; margin-top: clamp(20px, 8vh, 88px); pointer-events: none; }
.card-in { max-width: min(640px, 50vw); pointer-events: auto; }
h1 { width: max-content; max-width: 100%; font-weight: 600; font-size: clamp(40px, 5vw, 68px); line-height: 1.05; letter-spacing: 0.02em; transform-origin: 0 50%; }
.lede { margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: #D8E0EC; max-width: 30em; }
.demos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; margin-left: -18px; }
.label { margin: 30px 0 0; font: 600 12px/1 Jura, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.label + .demos { margin-top: 6px; }

/* Light columns: one per project */
.cols { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.col { position: absolute; width: 90px; margin-left: -45px; pointer-events: auto; text-decoration: none; --w: 3px; }
.col .shaft { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.35) 65%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.35) 65%, transparent 100%); transition: filter 0.25s; }
.col .glow { position: absolute; left: 50%; top: 0; bottom: 0; width: calc(var(--w) * 12); transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(232, 205, 142, 0.05) 25%, rgba(232, 205, 142, 0.26) 50%, rgba(232, 205, 142, 0.05) 75%, transparent); }
.col .beam { position: absolute; left: 50%; top: 0; bottom: 0; width: var(--w); transform: translateX(-50%); background: linear-gradient(90deg, rgba(232, 205, 142, 0.55), #FFF6DC 50%, rgba(232, 205, 142, 0.55)); box-shadow: 0 0 calc(var(--w) * 2.5) rgba(232, 205, 142, 0.75); }
.col .pool { position: absolute; left: 50%; top: 100%; width: calc(var(--w) * 18); height: calc(var(--w) * 3.6); transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(255, 243, 207, 0.85), rgba(232, 205, 142, 0.28) 40%, transparent 70%); }
.col::after { content: ''; position: absolute; left: 50%; top: 100%; width: calc(var(--w) * 1.6); height: 55%; transform: translateX(-50%); background: linear-gradient(to bottom, rgba(232, 205, 142, 0.42), transparent); filter: blur(1px); }
.col .name { position: absolute; left: 50%; top: 100%; margin-top: 14px; transform: translateX(-50%); padding: 3px 6px; background: rgba(6, 12, 23, 0.6); font: 600 11px/1 Jura, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; color: var(--soft); transition: color 0.2s; }
.col:hover .name, .col:focus-visible .name { color: var(--gold); }
.col:hover .shaft, .col:focus-visible .shaft { filter: brightness(1.45); }
.colhint { position: absolute; z-index: 2; right: 24px; bottom: 20px; margin: 0; font-size: 13px; color: var(--mute); }

/* Facts strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip p { margin: 0 auto; padding-top: 18px; padding-bottom: 18px; font-size: 15px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 6px 28px; }
.strip b { font-weight: 600; color: var(--ink); }

/* Sections */
section.block { padding-top: 96px; padding-bottom: 24px; }
h2 { font-weight: 600; font-size: clamp(26px, 3vw, 34px); letter-spacing: 0.02em; }
.sub { margin: 10px 0 0; color: var(--soft); max-width: 38em; }
.proj { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.proj:first-of-type { margin-top: 40px; }
.shot { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 16px; text-align: center; border: 1px solid var(--line); background: radial-gradient(circle, rgba(232, 205, 142, 0.16) 1px, transparent 1.6px) 0 0 / 14px 14px; font: 600 12px/1.5 Jura, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.shot.has-media { position: relative; padding: 0; overflow: hidden; background: var(--bg); }
.shot video, .shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A thumbnail that opens larger: the border lights up and glows outward, as the buttons do. */
.shot.can-open { cursor: zoom-in; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.shot.can-open:hover, .shot.can-open:focus-visible { border-color: var(--gold); box-shadow: 0 0 26px rgba(232, 205, 142, 0.45); }
.shot.can-open::after { content: ''; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border: 1px solid var(--line); background: rgba(6, 12, 23, 0.78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23E8CD8E' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M17 9h4v4M13 21H9v-4M21 9l-5 5M9 21l5-5'/%3E%3C/svg%3E") center / 30px 30px no-repeat; opacity: 0.75; transition: opacity 0.25s ease, border-color 0.25s ease; pointer-events: none; }
.shot.can-open:hover::after, .shot.can-open:focus-visible::after { opacity: 1; border-color: var(--gold); }
/* The larger view. */
.viewer { width: min(94vw, 1280px, calc(80vh * 16 / 9)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.viewer::backdrop { background: rgba(3, 7, 14, 0.88); }
/* Opening and closing: a short fade, with the picture growing in a little. site.js adds and removes "on". */
.viewer, .viewer::backdrop { opacity: 0; transition: opacity 0.24s ease, transform 0.24s ease; }
.viewer { transform: scale(0.96); }
.viewer.on, .viewer.on::backdrop { opacity: 1; }
.viewer.on { transform: none; }
.viewer-stage { aspect-ratio: 16 / 9; border: 1px solid var(--gold); background: var(--bg); box-shadow: 0 0 40px rgba(232, 205, 142, 0.28); }
.viewer-stage video, .viewer-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; }
.viewer-cap { margin: 0; font-size: 15px; line-height: 1.4; color: var(--soft); }
.viewer-close { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: var(--gold); font: 600 13px/1 Jura, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.viewer-close:hover, .viewer-close:focus-visible { border-color: var(--gold); box-shadow: 0 0 26px rgba(232, 205, 142, 0.45); }
html:has(.viewer[open]) { overflow: hidden; }
.meta { margin: 0; font: 600 12px/1.4 Jura, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
h3 { margin-top: 10px; font-weight: 600; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.2; }
.proj p { margin: 12px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--soft); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 8px; min-height: 44px; font-weight: 600; font-size: 15px; }
/* Vote button: reads as one of the links beside it, in gold because it does something */
.vote { border: 0; margin: 0; background-color: transparent; font: inherit; color: var(--gold); text-align: left; cursor: pointer; }
.links .vote[aria-disabled="true"] { color: var(--mute); cursor: default; background-size: 0% 1.5px, 0% 1px; }
details { margin-top: 10px; border-top: 1px solid var(--hair); }
summary { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; font: 600 13px/1 Jura, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+'; display: inline-block; width: 12px; font-size: 16px; }
details[open] summary::before { content: '\2212'; }
details h4 { margin-top: 16px; font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
details p, details ul { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--soft); }
details ul { padding-left: 20px; }
details .stack { color: var(--mute); font-size: 14px; }

.more { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 40px; }
.more li { padding: 8px 0 16px; border-top: 1px solid var(--hair); }
.more a { font-weight: 600; }
.more span { display: block; color: var(--mute); font-size: 15px; }

.rows { margin: 32px 0 0; }
.rows div { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 16px 0; border-top: 1px solid var(--hair); }
.rows dt { flex: 0 0 170px; font: 600 12px/1.9 Jura, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.rows dd { flex: 1 1 420px; margin: 0; color: var(--soft); }

section.contact { padding-bottom: 140px; }
/* Only the email button has 18px of side padding to pull back. Shifting the whole row
   would push a plain link that wraps to a new line 18px outside the text column. */
.contact .demos { align-items: center; gap: 6px 24px; margin-top: 20px; margin-left: 0; }
.contact .demos .btn { margin-left: -18px; }
.mail::after { content: attr(data-aside); position: absolute; left: 18px; top: calc(100% + 10px); font: 500 13px/1 Manrope, system-ui, sans-serif; letter-spacing: 0.02em; white-space: nowrap; color: var(--mute); opacity: 0; transform: translateY(-4px); transition: opacity 0.25s 0.15s, transform 0.25s 0.15s; pointer-events: none; }
.mail:hover::after, .mail:focus-visible::after { opacity: 1; transform: none; }
footer { border-top: 1px solid var(--line); }
footer p { margin: 0; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: var(--mute); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

@media (max-width: 900px) {
  :root { --hz: 72%; }
  .cols, .colhint { display: none; }
  .bar-in { height: 56px; gap: 12px; }
  .bar nav { gap: 18px; }
  .brand { font-size: 18px; }
  .hero { padding-top: 56px; }
  .card { margin-top: 28px; }
  .card-in { max-width: none; }
  .proj { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  section.block { padding-top: 72px; }
}
@media (max-width: 600px) {
  /* Contact: the email sits on its own line with room under it for its hover aside,
     then the plain links stack below it. */
  .contact .demos { flex-direction: column; align-items: flex-start; gap: 0; }
  .contact .demos .btn { margin-bottom: 34px; }
}
@media (max-width: 359px) {
  /* The narrowest phones: tighten the top bar so all four links fit beside the name. */
  .bar-in { gap: 8px; }
  .bar nav { gap: 12px; font-size: 14px; }
  .brand { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .viewer, .viewer::backdrop { transition: none; }
  html { scroll-behavior: auto; }
  .btn, .btn::before, .btn small, .col .shaft, .col .name, .bar, .bar::before, a, .vote { transition: none !important; }
}
