/* Axel Balleur, proposal 3 (from proposal 2). White ground and near-black ink, as on the live Home; light grey mounts.
   Type = the live site's rules: Clash Display 500 for display, nav, labels; Clash Grotesk 400/500 for text.
   Blue #0000FF only as small touches: dots (bullets, current page, full stops), selection. */

@font-face { font-family: "Clash Display"; src: url(../fonts/ClashDisplay-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url(../fonts/ClashGrotesk-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url(../fonts/ClashGrotesk-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --blue: #0000ff;
  --paper: #fff;            /* page ground */
  --mount: #f0f0f0;         /* plates sit on a light grey mount (live --white-6 on white) */
  --ink: #0a0a09;
  --ink-80: #0a0a09cc;      /* body text, as on the live site */
  --ink-50: #0a0a0980;      /* captions, meta */
  --ink-12: #0a0a091f;      /* chips, rules */
  --rule: #0a0a091f;
  --chip: #0a0a0914;        /* tags, slider arrows */
  --hd-bg: #ffffffd9;       /* header, translucent */
  --chip-hover: #0a0a092e;  /* filled buttons under the pointer */
  --display: "Clash Display", "Helvetica Neue", Arial, sans-serif;
  --text: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;
  --m: clamp(14px, 1.6vw, 24px);   /* outer margin */
  --gap: clamp(10px, 1.1vw, 16px);
  --hd: 64px;
  --pm: max(var(--m), min(82px, 5.75vw));   /* project-page side margin: the live 1260 px column at 1440 */
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (max-width: 767px) { :root { --hd: 56px; } }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hd); }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--text); letter-spacing: .015em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* Resets for pages written for this proposal (<body class="v3">); template pages keep their own. */
/* :where() keeps them at element weight: they beat the template's element rules (loaded earlier), never a class. */
:where(.v3, .hd, .cards, .band) img { display: block; width: 100%; height: auto; }
:where(.v3) figure { margin: 0; }
:where(.v3, .hd, .menu, .head, .cards, .band, .foot) :is(p, h1, h2, h3, ul, ol, li) { margin: 0; font-weight: inherit; font-size: inherit; max-width: none; opacity: 1; }
:where(.hd, .menu, .cards, .band, .foot) li { padding: 0; }
:where(.v3, .hd, .menu, .head, .cards, .band, .foot) a { color: inherit; text-decoration: none; font-weight: inherit; letter-spacing: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Live-site type scale ----------------------------------------------------- */
.t-xl, .t-lg, .t-md, .t-sm, .t-xs, .t-lead, .t-btn { color: var(--ink); }
.t-md, .t-sm, .t-xs, .t-lead, .t-p, .t-cap { text-transform: none; }
.t-xl  { font: 500 96px/1 var(--display); letter-spacing: .025em; text-transform: uppercase; }        /* h1, heading extra-large */
.t-md  { font: 500 40px/1.2 var(--display); letter-spacing: .015em; }                                  /* section title, heading medium */
.t-sm  { font: 500 24px/1.25 var(--display); letter-spacing: .015em; }                                 /* card name, heading small */
.t-xs  { font: 500 20px/1.25 var(--display); letter-spacing: .015em; }                                 /* heading extra-small */
.t-lead { font: 400 32px/1.5 var(--text); letter-spacing: .01em; }                                     /* paragraph large */
.t-p   { font: 400 20px/1.5 var(--text); letter-spacing: .015em; color: var(--ink-80); }             /* paragraph */
.t-cap { font: 400 18px/1.5 var(--text); letter-spacing: .015em; color: var(--ink-50); }             /* figcaption, meta */
.t-btn { font: 500 18px/1.5 var(--display); letter-spacing: 1px; text-transform: uppercase; }          /* button */
.t-lg  { font: 500 64px/1.1 var(--display); letter-spacing: .015em; text-transform: uppercase; }      /* h2, heading large */
@media (max-width: 767px) { .t-xl { font-size: 52px; } .t-lg { font-size: 40px; } .t-md { font-size: 32px; } }
@media (max-width: 479px) { .t-xl { font-size: 42px; } .t-sm { font-size: 20px; } .t-xs, .t-p { font-size: 18px; } .t-lead { font-size: 24px; } .t-lg { font-size: 36px; } .t-btn { font-size: 16px; } }

/* The blue dot: the one mark of colour, as on the live site's nav and section titles. */
.bullet::before {
  content: ""; display: inline-block; width: max(.2em, 6px); height: max(.2em, 6px); margin-right: .45em;
  border-radius: 50%; background: var(--blue); vertical-align: .22em;
}
.stop { color: var(--blue); }

/* Header ------------------------------------------------------------------- */
.hd {
  position: sticky; top: 0; z-index: 20; height: var(--hd);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--m); background: var(--hd-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mark { font: 500 20px/1.2 var(--display); letter-spacing: .008em; }
.hd__nav { display: flex; gap: 40px; font: 500 18px/1.5 var(--display); letter-spacing: .01em; }
.hd__nav a { position: relative; }
.hd__nav [aria-current="page"]::after, .menu [aria-current="page"]::before {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--blue);
}
.hd__menu { display: none; }
button.text { font: 500 18px/1.5 var(--display); letter-spacing: .01em; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.menu {
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; box-sizing: border-box;
  padding: var(--hd) var(--m) var(--m); background: var(--paper); color: var(--ink);
}
.menu:not(:popover-open) { display: none; }   /* the template sets nav { display: block } */
.menu ul { list-style: none; margin: 0; padding: 20px 0 0; }
.menu li a { position: relative; display: block; padding: 6px 0; }
.menu [aria-current="page"]::before { position: static; display: inline-block; width: .2em; height: .2em; margin: 0 .45em 0 0; vertical-align: .22em; }
.menu__close { position: absolute; top: 0; right: var(--m); height: var(--hd); }
@media (max-width: 767px) { .hd__nav { display: none; } .hd__menu { display: block; } .mark { font-size: 20px; } }

/* Marquee ------------------------------------------------------------------ */
/* Two synchronised copies inside the plate, both spanning the hero (100cqw):
   ink copy behind the image (shows on the paper), white copy above it, clipped to the image. */
.marquee {
  position: absolute; top: 70%; z-index: -1;
  left: calc((var(--pw) - 100cqw) / 2 - var(--mx)); width: calc(100cqw + 2 * var(--mx));
  overflow: hidden; pointer-events: none; color: var(--ink);
  font: 500 clamp(56px, 8.6vw, 156px)/1 var(--display); letter-spacing: .025em; text-transform: uppercase;
  transform: translateY(-50%);
}
.marquee--on { z-index: 1; color: #fff; clip-path: inset(0 calc((100cqw - var(--pw)) / 2 + var(--mx))); }
.marquee__track { display: flex; width: max-content; }
.marquee__track span { padding-right: .6em; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: run 42s linear infinite; }
}
@keyframes run { to { transform: translateX(-50%); } }

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; min-height: calc(100svh - var(--hd)); display: grid; place-items: center; overflow: hidden; container-type: inline-size; --pw: min(48vw, 104svh); --mx: 0px; }
.hero__plate { position: relative; z-index: 1; width: var(--pw); aspect-ratio: 3 / 2; margin-block: 24px 72px; }
.hero__plate img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero__intro { position: absolute; left: var(--m); bottom: var(--m); max-width: 420px; }
.hero__cap { position: absolute; right: var(--m); bottom: var(--m); text-align: right; }
.hero__cap span { display: block; }
@media (max-width: 767px) {
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; padding: 40px var(--m) var(--m); --pw: 100cqw; --mx: var(--m); }
  .hero__plate { margin: 0; }
  .marquee { font-size: 52px; }
  .hero__intro, .hero__cap { position: static; text-align: left; max-width: none; }
  .hero__intro { margin-top: 64px; }
  .hero__cap { margin-top: 20px; }
}

/* Section head: dot title left, count right (the live "Recent work 2021—2026") */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: clamp(72px, 7vw, 112px) var(--m) 32px; }
.head > * { white-space: nowrap; }
.head .t-xs { color: var(--ink-50); }

/* Work grid: plates on black mounts; hover brings in the blue dot ---------- */
.work { padding: 0 var(--m) var(--m); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card a { display: block; height: 100%; box-sizing: border-box; padding: 10px 10px 20px; background: var(--mount); text-decoration: none; }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; }
.card__img img { height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card a:hover .card__img img { transform: scale(1.02); }
.card__name { margin-top: 18px; }
.card__name::before {
  content: ""; display: inline-block; width: 0; height: max(.2em, 6px); margin-right: 0; border-radius: 50%; background: var(--blue); vertical-align: .22em;
  transition: width .3s var(--ease), margin .3s var(--ease);
}
.card a:hover .card__name::before, .card a:focus-visible .card__name::before { width: max(.2em, 6px); margin-right: .45em; }
.card__meta { margin-top: 2px; }
/* Covers alternate diagonal profile grids and renders/photos. Home order does it on phones and in 3 columns;
   in 2 columns Virtue V45 comes before Van der Valk (desktop-order) to keep the checkerboard. */
@media (min-width: 600px) and (max-width: 1023px) { .card { order: var(--o); } }
@media (max-width: 1023px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px)  { .cards { grid-template-columns: 1fr; } }

/* Split block: title left, text right (About, project intro) -------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); padding: clamp(88px, 10vw, 160px) var(--m); }
.split__body { max-width: 40em; }
.split__body > * + * { margin-top: 24px; }
.skills { list-style: none; margin: 48px 0 0; padding: 0; }
.skills li { padding: 24px 0; border-top: 1px solid var(--rule); }
.skills li:last-child { border-bottom: 1px solid var(--rule); }
.skills .t-p { margin-top: 8px; font-size: 18px; letter-spacing: .02em; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { padding: 18px 28px 17px; background: var(--ink-12); }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; row-gap: 32px; } }

/* Contact footer: the phrase in live H2 caps, four contact columns, a quiet bar */
.foot { padding: clamp(120px, 12vw, 200px) var(--m) var(--m); }
.foot__links { list-style: none; margin: clamp(48px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.foot__links a { display: block; padding-top: 20px; border-top: 1px solid var(--rule); }
.foot__links a:hover { text-decoration: none; }
.foot__links .t-sm { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.foot__links .t-sm::before {
  content: ""; display: inline-block; width: 0; height: max(.2em, 6px); margin-right: 0; border-radius: 50%; background: var(--blue); vertical-align: .22em;
  transition: width .3s var(--ease), margin .3s var(--ease);
}
.foot__links a:hover .t-sm::before, .foot__links a:focus-visible .t-sm::before { width: max(.2em, 6px); margin-right: .45em; }
.foot__bar { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: clamp(96px, 10vw, 160px); font: 500 16px/1.5 var(--text); letter-spacing: normal; color: var(--ink-50); }
.foot__bar .top { margin-left: auto; }
@media (max-width: 1023px) { .foot__links { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 599px)  { .foot__links { grid-template-columns: 1fr; row-gap: 24px; } }

/* Project page: the live Glacier layout (container 1400 / padding 80, images 1260 at 1440 px,
   61/39 pairs = 223.29 : 143.37, 24 px gaps, GA gap 5 %, 16:9 slider), dressed in this proposal's style. */
.wrap { width: calc(100% - 2 * var(--pm)); max-width: 1260px; margin-inline: auto; }
.p-head { padding-block: 144px; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tag { padding: 8px 16px; border-radius: 0; background: var(--chip); color: var(--ink); font: 500 18px/1.5 var(--display); }
.cover { aspect-ratio: 2 / 1; }
.cover img { height: 100%; object-fit: cover; }
.text2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 144px; }
.text2 .rich > * + * { margin-top: 20px; }
.block + .block { margin-top: 80px; }
.block > img, .block > figure { margin-bottom: 24px; }
.block > .tag, .block .tags { margin-top: 0; }
.block > .tag { display: inline-block; }
.pair { display: grid; grid-template-columns: 143.37fr 223.29fr; gap: 24px; margin-bottom: 24px; }
.pair.wide-left { grid-template-columns: 223.29fr 143.37fr; }
.pair.tall { aspect-ratio: 16 / 9; grid-template-rows: minmax(0, 1fr); }
.pair.tall img { height: 100%; min-height: 0; object-fit: cover; }
.ga { display: grid; grid-template-columns: 223.29fr 143.37fr; column-gap: 5%; align-items: stretch; }
.ga__renders img + img { margin-top: 6.72%; }
.ga__plans { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.ga__plans .tag { align-self: flex-start; }
@media (max-width: 991px) { .p-head, .text2 { padding-block: 80px; } }
@media (max-width: 767px) {
  .text2 { grid-template-columns: 1fr; gap: 32px; }
  .pair, .pair.wide-left, .ga { grid-template-columns: 1fr; row-gap: 24px; }
  .pair.tall { aspect-ratio: auto; }
  .pair.tall img { height: auto; }
  .ga__renders img + img { margin-top: 24px; }
  .block + .block { margin-top: 48px; }
}
@media (max-width: 479px) { .p-head, .text2 { padding-block: 64px; } .tag { font-size: 16px; } .block > img, .block > figure, .pair { margin-bottom: 16px; } .pair { gap: 16px; } }

/* Slider: 16:9 frame, image contained (white above and below on purpose), fixed caption + arrows + counter */
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track img { flex: 0 0 100%; aspect-ratio: 16 / 9; object-fit: contain; scroll-snap-align: start; }
.slider__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.slider__bar .tag { white-space: nowrap; }
.slider__ctrl { display: flex; gap: 8px; }
.arrow { min-width: 48px; height: 43px; padding: 0 14px; box-sizing: border-box; display: grid; place-items: center; border: 0; background: var(--chip); color: var(--ink); font: 500 18px/1.5 var(--display); font-variant-numeric: tabular-nums; }
button.arrow { cursor: pointer; transition: background-color .2s; }
button.arrow:hover { background: #0a0a092e; }

/* More work: every other project on a band that slides like the hero line; pauses under the pointer.
   JS doubles the list for a seamless loop; without JS or with reduced motion it is a plain horizontal scroll. */
.more { padding-top: 144px; }
.more .head { padding: 0 0 48px; }
.band { overflow-x: auto; scrollbar-width: none; }
.band::-webkit-scrollbar { display: none; }
.band__track { list-style: none; margin: 0; padding: 0 var(--m); display: flex; gap: var(--gap); width: max-content; }
.band .card { width: clamp(300px, 40vw, 720px); }
.band.run { overflow: hidden; }
.band.run .band__track { padding: 0; animation: run 90s linear infinite; }
.band.run .band__track > li { margin-right: var(--gap); }
.band.run .band__track { gap: 0; }
.band.run:hover .band__track, .band.run:focus-within .band__track { animation-play-state: paused; }

[data-view] { cursor: zoom-in; }

/* Viewer ---------------------------------------------------------------- */
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0; padding: var(--hd) var(--m) 76px; box-sizing: border-box;
  background: #000; color: #fff;
}
.viewer::backdrop { background: #000; }
.viewer img { width: 100%; height: 100%; object-fit: contain; }
.viewer__close { position: absolute; top: 0; right: var(--m); height: var(--hd); }
.viewer__bar { position: absolute; left: var(--m); right: var(--m); bottom: 0; height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.viewer__cap { text-align: center; }

/* Template pages: the live build re-skinned by tools/theme-v3.py ------------
   Its colour variables flip to paper and ink (the live "page-light" values), corners go square,
   header, footer, Work grid and More work are swapped for this proposal's. */
body:not(.v3, .dark) {
  --black: #fff; --white: #0a0a09; --nav-background: #ffffffd9;
  --white-80: #0a0a09cc; --white-64: #0a0a09a3; --white-50: #0a0a0980; --white-18: #0a0a092e; --white-12: #0a0a091f; --white-6: #0a0a090f;
}
:where(body:not(.v3)) p { color: var(--ink-80); }
.page-load-cover { background-color: var(--paper); }
.carousel-arrow { color: var(--ink); background-color: var(--chip); }
.button-secondary { color: var(--ink); }
.button-secondary:hover { text-decoration: none; }
:is(.project-image, .slide-frame, .carousel-mask, .carousel-arrow, .button-secondary, .button, .tag, .work-item, .about-image-wrapper,
    .resume-sheet, .rich-text img, .text-input, .form-dropdown, .form-error, .form-success) { border-radius: 0; }
/* the image viewer stays black, as on the live site */
.lightbox { --black: #0a0a09; --white: #fff; --white-80: #fffc; --white-64: #ffffffa3; --white-50: #ffffff80; --white-12: #ffffff1f; --lb-radius: 0px; }
.lightbox .carousel-arrow { color: #fff; }

/* Project pages keep the live site's black ground; their white bands stay white (theme-v3.py sets body.dark). */
.dark {
  --paper: #0a0a09; --ink: #fff; --ink-80: #fffc; --ink-50: #ffffff80; --ink-12: #ffffff1f; --rule: #ffffff1f;
  --mount: #1a1a19; --chip: #ffffff1f; --chip-hover: #ffffff2e; --hd-bg: #0a0a09d9; color-scheme: dark;
}
html:has(> body.dark) { background: #0a0a09; }

/* Text pages (About, Contact, Resume, legal): four sizes only, as on Home: title 96, section 40,
   item 24 (company, school, language, client, contact line, file; roles grey via the template's .text-white-64), text 20. */
.heading.regular { font-size: 24px; line-height: 1.25; }
.paragraph.large { font-size: 20px; letter-spacing: .015em; }
.resume-meta { font-size: 20px; letter-spacing: .015em; }
@media (max-width: 479px) { .heading.regular { font-size: 20px; } .paragraph.large, .resume-meta { font-size: 18px; } }

/* Template buttons (Resume language switch, Virtual Shipyard link, 404) = the Home buttons: 18 px caps, same padding. */
.button-secondary, .button-secondary.small { min-height: 0; padding: 18px 28px 17px; font: 500 18px/1.5 var(--display); letter-spacing: 1px; text-transform: uppercase; }
@media (max-width: 479px) { .button-secondary, .button-secondary.small { font-size: 16px; } }

/* Clicks and hovers: one behaviour per kind, same timing everywhere -------------------
   Filled buttons (Home chips, template buttons, slider and viewer arrows, resume switch):
   tint on hover, a short press on click. Text links and text buttons: fade on hover, more on press.
   Cards, contact and download items: the blue dot grows on hover, a slight press on click. */
:is(.chip, .button-secondary, .button, button.carousel-arrow, .w-slider-arrow-left.carousel-arrow, .w-slider-arrow-right.carousel-arrow, button.arrow) {
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
:is(.chip, .button-secondary, .button, button.carousel-arrow, .w-slider-arrow-left.carousel-arrow, .w-slider-arrow-right.carousel-arrow, button.arrow):hover:not([aria-pressed="true"]) {
  background-color: var(--chip-hover); text-decoration: none; opacity: 1;
}
:is(.chip, .button-secondary, .button, button.carousel-arrow, .w-slider-arrow-left.carousel-arrow, .w-slider-arrow-right.carousel-arrow, button.arrow):active { transform: scale(.96); opacity: 1; }
.white-band { --chip-hover: #0a0a092e; }   /* arrows on a white band, inside a black page */

/* no underline on hover anywhere (user, 2026-11-09) */
:is(.hd__nav a, .menu li a, button.text, .mark, .foot__bar a, .hero__cap a, .rich-text a) { transition: opacity .2s var(--ease); }
:is(.hd__nav a, .menu li a, button.text, .mark, .foot__bar a, .hero__cap a, .rich-text a):hover { opacity: .72; text-decoration: none; }
:is(.hd__nav a, .menu li a, button.text, .mark, .foot__bar a, .hero__cap a, .rich-text a):active { opacity: .5; transform: none; }
/* the template's own links (a:hover .8, a:active scale .99) get the same fade as the text links */
:where(body:not(.v3)) a:hover { opacity: .72; }
:where(body:not(.v3)) a:active { opacity: .5; transform: none; }

:is(.card a, .foot__links a, .resume-file) { transition: transform .2s var(--ease); }
:is(.card a, .foot__links a, .resume-file):hover { opacity: 1; }
:is(.card a, .foot__links a, .resume-file):active { transform: scale(.985); opacity: 1; }
.resume-file:hover .heading { color: inherit; }
.resume-file .heading::before {
  content: ""; display: inline-block; width: 0; height: max(.2em, 6px); margin-right: 0; border-radius: 50%; background: var(--blue); vertical-align: .22em;
  transition: width .3s var(--ease), margin .3s var(--ease);
}
.resume-file:hover .heading::before, .resume-file:focus-visible .heading::before { width: max(.2em, 6px); margin-right: .45em; }
