/* Every student site. The student's design arrives as custom properties on
   :root (fonts, colours, weights, density, corners: see src/content/design.ts)
   and as data attributes on <body> (hero, work, project, nav, frame, motif).
   Sizes in cqw are measured against .page, so a site scales as one piece. */

:root {
  --pad: clamp(18px, 4.2cqw, 72px);
  --gap: calc(clamp(16px, 2.2cqw, 36px) * var(--space));
  --section: calc(clamp(56px, 8cqw, 136px) * var(--space));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --mat: color-mix(in srgb, var(--surface) 70%, #ffffff);
}
html { background: var(--bg); }
body { background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--f-body); }
::selection { background: var(--accent); color: var(--on-accent); }
a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

.page { container: page / inline-size; min-width: 0; }
.site { max-width: 1680px; margin-inline: auto; overflow: clip; }

/* Display type: the student's headline face, weight, case and tracking. */
.d {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  line-height: 0.98;
  overflow-wrap: break-word;
  text-wrap: balance;
}
[data-case='upper'] .d { line-height: 0.92; }

/* Labels: small, in the label face. */
.lbl { font: 500 12px/1.4 var(--f-label); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.lbl a { color: inherit; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: max(var(--radius), 2px);
  background: var(--text); color: var(--bg); font: 600 15px/1 var(--f-body); text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); color: var(--on-accent); }

.links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: calc(18px * var(--space)); font-size: 15px; }
.links a { color: var(--text); }
.links a:hover { color: var(--accent-text); }

.prose p + p { margin-top: 1em; }
.prose em { font-style: italic; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: var(--gap); }
.num { display: block; font: 500 13px/1 var(--f-label); letter-spacing: 0.06em; color: var(--accent-text); margin-bottom: 10px; }

/* ---------- Navigation ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 18px var(--pad); position: relative; z-index: 3; }
.nav-name { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.nav-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: calc(var(--radius) * 1.4); background: var(--accent); color: var(--on-accent); font: var(--display-style) var(--display-weight) 14px/1 var(--f-display); letter-spacing: -0.02em; }
[data-corners='round'] .nav-mark { border-radius: 50%; }
.nav-text { font: var(--display-style) var(--display-weight) 19px/1.1 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-tracking); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .nav-text { white-space: normal; font-size: 16px; line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
.nav nav { display: flex; gap: clamp(16px, 2.4vw, 32px); font: 500 15px/1.2 var(--f-body); }
.nav nav a { text-decoration: none; padding-block: 6px; color: var(--text); }
.nav nav a:hover, .nav nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.nav-headline { display: none; }

[data-nav='centered'] .nav { flex-direction: column; justify-content: center; padding-top: calc(28px * var(--space)); border-bottom: 1px solid var(--line); }
[data-nav='centered'] .nav-mark { display: none; }
[data-nav='centered'] .nav-text { font-size: clamp(22px, 2.6vw, 34px); }

@media (min-width: 1100px) {
  [data-nav='side'] .site { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
  [data-nav='side'] .nav { position: sticky; top: 0; height: 100vh; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 22px; padding: 32px 28px; border-right: 1px solid var(--line); }
  [data-nav='side'] .nav-name { flex-direction: column; align-items: flex-start; }
  [data-nav='side'] .nav-text { white-space: normal; font-size: 26px; line-height: 1.02; }
  [data-nav='side'] .nav-headline { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 22ch; }
  [data-nav='side'] .nav nav { flex-direction: column; gap: 6px; margin-top: auto; font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--section) * 0.55) var(--pad) var(--section); position: relative; }
.hero .lbl { margin-bottom: calc(18px * var(--space)); }
.hero-title { font-size: min(calc(clamp(46px, 9.5cqw, 176px) * var(--display-scale)), var(--fit, 100cqw)); }
.hero-intro { font-size: clamp(18px, 1.8cqw, 26px); line-height: 1.45; max-width: 40ch; margin-top: calc(22px * var(--space)); }
.hero-sub { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.hero-sub .links { justify-content: flex-end; }

.hero-statement .hero-title { font-size: calc(clamp(30px, 4.8cqw, 84px) * var(--display-scale)); line-height: 1.06; max-width: 20ch; text-wrap: pretty; }
[data-case='upper'] .hero-statement .hero-title { font-size: calc(clamp(26px, 4cqw, 70px) * var(--display-scale)); }

.hero-feature { padding: 0 0 var(--section); }
.hero-feature .hero-media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; margin: 0 var(--pad); border-radius: var(--radius); }
.hero-feature .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature .hero-over { padding: calc(28px * var(--space)) var(--pad) 0; }
.hero-feature .hero-over .lbl { margin: 14px 0 0; }
.hero-feature .hero-below { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; padding: 0 var(--pad); }
.hero-feature .hero-below .links { justify-content: flex-end; }

.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--gap) * 2); align-items: center; }
.hero-split .hero-title { font-size: min(calc(clamp(42px, 6cqw, 110px) * var(--display-scale)), var(--fit, 100cqw)); }
.hero-split .hero-media { border-radius: var(--radius); overflow: hidden; }
.hero-split .hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.hero-minimal { padding-bottom: calc(var(--section) * 0.5); }
.hero-minimal .hero-title { font-size: calc(clamp(32px, 4.2cqw, 64px) * var(--display-scale)); }
.hero-minimal .hero-intro { font-size: clamp(17px, 1.4cqw, 21px); color: var(--muted); max-width: 60ch; margin-top: 12px; }

.hero-group .hero-title { font-size: min(calc(clamp(40px, 7cqw, 130px) * var(--display-scale)), var(--fit, 100cqw)); }

@container page (max-width: 760px) {
  .hero-sub, .hero-feature .hero-below, .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-sub .links, .hero-feature .hero-below .links { justify-content: flex-start; }
  .hero-feature .hero-media { aspect-ratio: 4 / 3; margin: 0; border-radius: 0; }
  .hero-split .hero-media { order: -1; }
  .hero-split .hero-media img { aspect-ratio: 4 / 3; }
}

/* ---------- Work ---------- */
.work { padding: 0 var(--pad) var(--section); scroll-margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font: 500 13px/1 var(--f-body); text-decoration: none; color: var(--text); }
.chips a span { font: 400 11px/1 var(--f-label); color: var(--muted); margin-left: 6px; }
.chips a:hover { border-color: var(--text); }
.chips a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chips a[aria-current] span { color: inherit; opacity: 0.7; }

.work a { text-decoration: none; color: inherit; }
.w-title { font-size: calc(clamp(22px, 2.3cqw, 38px) * var(--display-scale)); line-height: 1.04; }
.w-summary { color: var(--muted); max-width: 52ch; margin-top: 8px; font-size: 16px; }
.w-cap { margin-top: 14px; }
.w-cap .lbl { margin-top: 8px; text-transform: none; letter-spacing: 0.02em; font-size: 13px; }

/* Covers: photos may be cropped; drawings and cut-outs are always shown whole. */
.cover { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.cover img { width: 100%; height: auto; transition: transform 0.7s var(--ease); }
.cover.crop { aspect-ratio: 4 / 3; }
.cover.crop img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.cover.k-drawing, .cover.k-cutout { background: var(--mat); }
.cover.k-drawing img, .cover.k-cutout img { padding: 6%; object-fit: contain; }
.w-grid .cover.k-drawing, .w-grid .cover.k-cutout, .w-stack .cover.k-drawing, .w-stack .cover.k-cutout, .w-rows .cover.k-drawing, .w-rows .cover.k-cutout, .w-index .cover { aspect-ratio: 4 / 3; }
.w-grid .cover.k-drawing img, .w-grid .cover.k-cutout img, .w-stack .cover.k-drawing img, .w-stack .cover.k-cutout img, .w-rows .cover.k-drawing img, .w-rows .cover.k-cutout img { position: absolute; inset: 0; height: 100%; }
.cover.strip { display: flex; gap: 3%; padding: 5%; aspect-ratio: 4 / 3; background: var(--mat); }
.cover.strip img { flex: 1; min-width: 0; height: 100%; object-fit: contain; }
.work a:hover .cover img { transform: scale(1.03); }
.work a:hover .cover.k-drawing img, .work a:hover .cover.strip img { transform: scale(1.015); }
.work a:hover .w-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }

.w-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--gap) * 1.8) var(--gap); }
@container page (min-width: 1200px) { [data-density='compact'] .w-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.w-masonry { columns: 3 300px; column-gap: var(--gap); }
.w-masonry li { break-inside: avoid; margin-bottom: calc(var(--gap) * 1.6); }

.w-stack { display: grid; gap: calc(var(--section) * 0.8); }
.w-stack .cover.crop { aspect-ratio: 16 / 8; }
.w-stack .w-cap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: baseline; margin-top: 18px; }
.w-stack .w-cap .num { grid-column: 1 / -1; margin: 0; }
.w-stack .w-title { font-size: calc(clamp(26px, 3.4cqw, 56px) * var(--display-scale)); }

.w-rows { display: grid; gap: var(--section); }
.w-rows a { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--gap) * 1.6); align-items: center; }
.w-rows li:nth-child(even) a .cover { order: 2; }
.w-rows .w-title { font-size: calc(clamp(26px, 3.2cqw, 52px) * var(--display-scale)); }
.w-rows .w-text .lbl { margin-top: 14px; text-transform: none; letter-spacing: 0.02em; }
.w-more { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--accent-text); }

.w-index { border-top: 1px solid var(--line); }
.w-index li { border-bottom: 1px solid var(--line); }
.w-index a { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 220px) 160px; gap: var(--gap); align-items: center; padding: calc(18px * var(--space)) 0; }
.w-index .num { margin: 0; }
.w-index .w-title { font-size: calc(clamp(24px, 3.4cqw, 58px) * var(--display-scale)); }
.w-index .w-kind { text-align: right; }
.w-index .w-thumb { width: 160px; }
.w-index .cover img { transition: transform 0.5s var(--ease); }
.w-index a:hover .w-title { color: var(--accent-text); text-decoration: none; }

@container page (max-width: 760px) {
  .w-grid { grid-template-columns: minmax(0, 1fr); }
  .w-stack .w-cap { grid-template-columns: minmax(0, 1fr); }
  .w-rows a { grid-template-columns: minmax(0, 1fr); }
  .w-rows li:nth-child(even) a .cover { order: 0; }
  .w-index a { grid-template-columns: 36px minmax(0, 1fr) 96px; }
  .w-index .w-kind { display: none; }
  .w-index .w-thumb { width: 96px; }
}

/* ---------- About teaser ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--gap) * 2); align-items: end; padding: var(--section) var(--pad); background: var(--surface); }
.teaser.has-photo { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.teaser-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.teaser-bio { font-size: clamp(19px, 1.9cqw, 28px); line-height: 1.42; max-width: 42ch; margin-top: 14px; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: calc(28px * var(--space)) 0 calc(30px * var(--space)); font-size: 15px; }
.facts-inline dd { margin-top: 4px; max-width: 32ch; }
@container page (max-width: 760px) {
  .teaser.has-photo { grid-template-columns: minmax(0, 1fr); }
  .teaser-photo { max-width: 70%; }
}

/* ---------- Project pages ---------- */
.project { padding: calc(var(--section) * 0.5) var(--pad) 0; }
.crumbs { margin-bottom: calc(22px * var(--space)); }
.p-title { font-size: min(calc(clamp(40px, 7.4cqw, 132px) * var(--display-scale)), var(--fit, 100cqw)); }
.p-summary { font-size: clamp(20px, 2cqw, 30px); line-height: 1.32; max-width: 34ch; margin-top: calc(24px * var(--space)); text-wrap: pretty; }
.prose { margin-top: calc(22px * var(--space)); max-width: 62ch; color: color-mix(in srgb, var(--text) 88%, var(--bg)); }
.p-note { margin-top: 18px; font: 400 13px/1.5 var(--f-label); color: var(--muted); max-width: 56ch; }

.facts { display: grid; gap: 0; border-top: 1px solid var(--line); align-self: start; }
.facts > div { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dd { font-size: 15.5px; line-height: 1.45; }

.p-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: calc(var(--gap) * 2); margin-top: 4px; }
.c-lead { margin-top: calc(var(--section) * 0.7); }

.shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: calc(var(--gap) * 1.4) var(--gap); align-items: start; margin-top: calc(var(--gap) * 1.4); }
.shot { grid-column: span 12; min-width: 0; }
.shot.w-half { grid-column: span 6; }
.shot.w-third { grid-column: span 4; }
.shot a { display: block; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.shot img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.shot a:hover img { transform: scale(1.01); }
.shot.k-drawing a, .shot.k-cutout a { background: var(--mat); }
.shot.k-drawing a { padding: clamp(10px, 2cqw, 32px); }
.shot.k-cutout a { padding: clamp(18px, 4cqw, 64px); }
.shot figcaption { font: 400 13px/1.5 var(--f-label); color: var(--muted); margin-top: 10px; max-width: 64ch; }

/* Frames, chosen by the design. */
[data-frame='border'] .shot a, [data-frame='border'] .cover { box-shadow: inset 0 0 0 1px var(--line); outline: 1px solid var(--line); outline-offset: -1px; }
[data-frame='mat'] .shot a { background: var(--mat); padding: clamp(12px, 2.6cqw, 40px); }
[data-frame='mat'] .cover:not(.strip) { padding: 0; box-shadow: 0 0 0 clamp(6px, 0.9cqw, 14px) var(--mat); margin: clamp(6px, 0.9cqw, 14px); }
[data-frame='shadow'] .shot a, [data-frame='shadow'] .cover { box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 14px 40px -12px rgb(0 0 0 / 0.28); }

.palette { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: calc(var(--gap) * 1.6); }
.palette li { display: flex; align-items: center; gap: 12px; }
.swatch { width: clamp(40px, 4.4cqw, 68px); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }

.process { margin: var(--section) calc(var(--pad) * -1) 0; padding: var(--section) var(--pad); background: var(--surface); }
.process-intro { font-size: clamp(18px, 1.6cqw, 24px); line-height: 1.45; max-width: 48ch; margin-bottom: var(--gap); }
.process .shot.k-drawing a, .process .shot.k-cutout a { background: var(--bg); }

.p-sidebar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--gap) * 2); align-items: start; }
.p-side { position: sticky; top: 24px; }
.p-sidebar .p-title { font-size: calc(clamp(34px, 4.4cqw, 76px) * var(--display-scale)); }
.p-sidebar .p-summary { font-size: clamp(18px, 1.5cqw, 23px); }
.p-sidebar .facts { margin-top: calc(var(--gap) * 1.4); }
.p-images .shots { margin-top: 0; }
.p-images .process { margin: var(--section) 0 0; padding: var(--gap); border-radius: var(--radius); }
.p-sidebar .next { grid-column: 1 / -1; }

.p-magazine .p-head { text-align: left; }
.p-magazine .facts { display: flex; flex-wrap: wrap; gap: 8px 36px; border: 0; margin-top: calc(var(--gap) * 1.2); }
.p-magazine .facts > div { display: block; border: 0; padding: 0; }
.p-magazine .facts dd { margin-top: 4px; }
.m-lead { margin: calc(var(--section) * 0.6) calc(var(--pad) * -1) 0; }
.m-lead .shot a { border-radius: 0; }
.m-flow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: calc(var(--gap) * 1.6) var(--gap); margin-top: var(--section); align-items: center; }
.m-flow .m-para { grid-column: 3 / span 8; margin: 0; font-size: clamp(18px, 1.5cqw, 22px); line-height: 1.6; }
.m-flow .shot.w-full { grid-column: 1 / -1; }
.m-flow .shot.w-half { grid-column: span 6; }
.m-flow .shot.w-third { grid-column: span 4; }

.next { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: var(--section); padding: calc(var(--gap) * 1.4) 0 var(--section); border-top: 1px solid var(--line); }
.next a { text-decoration: none; color: inherit; }
.next-title { display: block; margin-top: 10px; font-size: calc(clamp(30px, 5cqw, 90px) * var(--display-scale)); }
.next a:hover .next-title { color: var(--accent-text); }

@container page (max-width: 760px) {
  .p-intro, .p-sidebar { grid-template-columns: minmax(0, 1fr); }
  .p-side { position: static; }
  .shot.w-half, .shot.w-third, .m-flow .shot.w-half, .m-flow .shot.w-third { grid-column: span 12; }
  .m-flow .m-para { grid-column: 1 / -1; }
  .facts > div { grid-template-columns: minmax(0, 100px) minmax(0, 1fr); }
}

/* ---------- About page ---------- */
.about { padding: calc(var(--section) * 0.5) var(--pad) 0; }
.about-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--gap) * 2); align-items: end; }
.about-head.has-photo { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.about-title { font-size: calc(clamp(36px, 5.6cqw, 100px) * var(--display-scale)); margin-top: 16px; }
.about-lede { font-size: clamp(20px, 1.9cqw, 28px); line-height: 1.4; max-width: 40ch; margin-top: calc(26px * var(--space)); }
.about-p { max-width: 62ch; margin-top: 1em; color: color-mix(in srgb, var(--text) 88%, var(--bg)); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.cv-block, .cv-cols { margin-top: var(--section); }
.jobs { border-top: 1px solid var(--line); }
.jobs li { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 8px var(--gap); padding: calc(20px * var(--space)) 0; border-bottom: 1px solid var(--line); }
.jobs .when { padding-top: 4px; }
.role { font-weight: 650; font-size: 18px; }
.role span { font-weight: 400; }
.place { color: var(--muted); font-size: 15px; }
.job-text { margin-top: 8px; max-width: 66ch; font-size: 16px; }
.cv-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--gap) * 1.6); }
.plain { display: grid; gap: 12px; font-size: 16px; }
.plain strong, .plain span { display: block; }
.plain span { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.resume { margin-top: var(--section); }
@container page (max-width: 760px) {
  .about-head.has-photo, .cv-cols { grid-template-columns: minmax(0, 1fr); }
  .about-photo { order: -1; max-width: 70%; }
  .jobs li { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact & footer ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: calc(var(--gap) * 2); padding: var(--section) var(--pad); margin-top: var(--section); background: var(--text); color: var(--bg); scroll-margin-top: 0; }
.contact a { color: inherit; }
.contact-title { font-size: calc(clamp(36px, 5.4cqw, 96px) * var(--display-scale)); }
.contact-avail { font-size: clamp(18px, 1.5cqw, 22px); margin-top: calc(20px * var(--space)); max-width: 34ch; }
.contact-links { display: grid; gap: 8px; margin-top: calc(22px * var(--space)); font-size: 16px; }
.form { display: grid; gap: 18px; align-content: start; }
.form label { display: grid; gap: 6px; font: 500 12px/1.3 var(--f-label); letter-spacing: 0.08em; text-transform: uppercase; }
.form input, .form select, .form textarea { font: 400 17px/1.4 var(--f-body); color: inherit; background: transparent; border: 0; border-bottom: 1.5px solid color-mix(in srgb, var(--bg) 55%, transparent); border-radius: 0; padding: 9px 0; width: 100%; letter-spacing: 0; text-transform: none; }
.form select option { color: #111; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 0; border-bottom-color: var(--accent); }
.send { justify-self: start; border: 0; background: var(--accent); color: var(--on-accent); padding: 15px 24px; border-radius: max(var(--radius), 2px); font: 650 15px/1 var(--f-body); cursor: pointer; transition: transform 0.2s var(--ease); }
.send:hover { transform: translateY(-2px); }
.send:disabled { opacity: 0.6; cursor: progress; transform: none; }
.status { min-height: 1.5em; font-size: 15px; }
.status[data-state='error'] { font-weight: 600; text-decoration: underline wavy; text-underline-offset: 4px; }
.status[data-state='ok'] { font-weight: 600; }
.contact-off { font: 400 13px/1.5 var(--f-label); border: 1.5px dashed color-mix(in srgb, var(--bg) 40%, transparent); padding: 18px; border-radius: var(--radius); align-self: start; }
@container page (max-width: 760px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px var(--pad); font: 400 12px/1.4 var(--f-label); color: var(--muted); }
.foot a { color: inherit; }

.message { padding: var(--section) var(--pad); }
.message .btn { margin-top: 28px; }

/* ---------- Motifs ---------- */
/* rules: firm lines under section labels and between sections */
[data-motif='rules'] .section-head { border-bottom: 2px solid var(--text); padding-bottom: 12px; }
[data-motif='rules'] .work, [data-motif='rules'] .teaser { border-top: 0; }
[data-motif='rules'] .hero { border-bottom: 1px solid var(--line); margin-bottom: calc(var(--section) * 0.6); }

/* grid: a faint drafting grid behind the page */
[data-motif='grid'] body, body[data-motif='grid'] {
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
}
body[data-motif='grid'] .section-head .lbl::before { content: '+ '; color: var(--accent-text); }

/* dots: dotted dividers and a dot before labels */
body[data-motif='dots'] .section-head { border-bottom: 2px dotted var(--line); padding-bottom: 12px; }
body[data-motif='dots'] .section-head .lbl::before, body[data-motif='dots'] .hero .lbl::before { content: ''; display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--accent); margin-right: 0.6em; vertical-align: 0.02em; }
body[data-motif='dots'] .w-index li, body[data-motif='dots'] .jobs li, body[data-motif='dots'] .facts > div { border-bottom-style: dotted; }

/* marks: printer's crop marks around the hero and section heads */
body[data-motif='marks'] .hero::before, body[data-motif='marks'] .hero::after {
  content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none;
  background: linear-gradient(var(--accent), var(--accent)) center / 1.5px 100% no-repeat, linear-gradient(var(--accent), var(--accent)) center / 100% 1.5px no-repeat;
}
body[data-motif='marks'] .hero::before { left: calc(var(--pad) - 30px); top: 12px; }
body[data-motif='marks'] .hero::after { right: calc(var(--pad) - 30px); bottom: calc(var(--section) * 0.5); }
body[data-motif='marks'] .section-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
body[data-motif='marks'] .section-head .lbl::after { content: ' ⌟'; color: var(--accent-text); }

/* numbers: shown through .num elements in the markup */
body[data-motif='numbers'] .section-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; }

/* ---------- Density tweaks ---------- */
body[data-density='airy'] .hero-intro { max-width: 36ch; }
body[data-density='compact'] { font-size: 16px; }

/* Dark grounds: soften pure white mats a touch. */
body[data-ground='dark'] { --mat: color-mix(in srgb, #ffffff 92%, var(--bg)); }
