/* ==========================================================================
   Castelleo — site styles
   Concept: the casting wall. A cool studio-white page (the cyclorama), black
   ink, one accent (the yellow gaffer tape that marks where a model stands).
   English is set in Bricolage Grotesque; its French twin in Garamond italic.
   Screen disciplines (film, series, TV) use the dark "nuit" theme.
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-latin.woff2') format('woff2-variations');
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-latin-ext.woff2') format('woff2-variations');
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-500i-latin.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-500i-latin-ext.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-600i-latin.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Tiro Mumbai';
  src: url('../fonts/tiro-mumbai.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0900-097F;
}

:root {
  --cyc: #E9EAEC;
  --paper: #FFFFFF;
  --ink: #000000;
  --stone: #555960;
  --line: #C3C6CC;
  --tape: #FFC21A;
  --nuit: #10163A;
  --nuit-2: #1B2354;
  --alert: #B3001B;
  --ok: #0A6B37;

  --bg: var(--cyc);
  --fg: var(--ink);
  --muted: var(--stone);
  --rule: var(--line);
  --panel: var(--paper);

  --sans: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Cormorant Garamond', 'Tiro Mumbai', 'Times New Roman', serif;

  --gutter: clamp(18px, 4.2vw, 64px);
  --max: 1380px;
  --radius: 2px;
}

.theme-nuit {
  --bg: var(--nuit);
  --fg: #F2F3F6;
  --muted: #AEB3CC;
  --rule: rgba(255, 255, 255, 0.24);
  --panel: var(--nuit-2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.55 var(--sans);
  font-optical-sizing: auto;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.theme-nuit :focus-visible { outline-color: var(--tape); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--tape); color: #000; padding: 10px 14px; font-weight: 700; z-index: 100; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- type ---------------------------------------------------------------- */
.display, .h1, .h2, .h3 { font-stretch: 78%; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.display { font-size: clamp(2.9rem, 8.4vw, 7.75rem); line-height: 0.9; letter-spacing: -0.025em; }
.h1 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); line-height: 0.94; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.1; font-weight: 700; }
.twin { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-stretch: 100%; letter-spacing: 0; text-transform: none; line-height: 1.1; }
.display + .twin, .display > .twin { font-size: clamp(1.6rem, 3.4vw, 3rem); margin-top: 0.28em; }
.h1 > .twin, .h1 + .twin { font-size: clamp(1.5rem, 2.8vw, 2.4rem); margin-top: 0.25em; }
.h2 > .twin, .h2 + .twin { font-size: clamp(1.3rem, 2.1vw, 1.8rem); margin-top: 0.22em; }
.h3 > .twin { font-size: 1.2rem; margin-top: 0.15em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.42; max-width: 34em; }
.kicker { font-size: clamp(1.3rem, 2.3vw, 2rem); line-height: 1.25; font-stretch: 87%; font-weight: 500; max-width: 24em; text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; line-height: 1.45; }
.num { font-variant-numeric: tabular-nums; }
.deva { font-family: 'Tiro Mumbai', var(--serif); font-style: normal; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }

.link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.link:hover { text-decoration-color: var(--tape); text-decoration-thickness: 4px; }

/* ---- layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 120px); }
.section--tight { padding-block: clamp(36px, 5vw, 72px); }
.section--rule { border-top: 2px solid var(--fg); }
.section__head { display: grid; gap: 18px 48px; grid-template-columns: minmax(0, 1fr); margin-bottom: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; }
}
.stack > * + * { margin-top: 1rem; }
.stack-l > * + * { margin-top: 1.75rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.7em 1.3em;
  font-weight: 700; font-stretch: 87%; font-size: 1rem; line-height: 1.15; text-decoration: none; text-align: center;
  color: var(--fg); background: transparent; border: 2px solid var(--fg); border-radius: var(--radius);
  cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; }
.btn[disabled]:hover, .btn.is-disabled:hover { background: transparent; color: var(--fg); }
.btn--tape {
  background: var(--tape); border-color: var(--tape); color: #000; border-radius: 0; padding-inline: 1.6em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 17%, 100% 34%, calc(100% - 5px) 50%, 100% 67%, calc(100% - 5px) 84%, 100% 100%, 0 100%, 5px 84%, 0 67%, 5px 50%, 0 34%, 5px 17%);
}
.btn--tape:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn--tape:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #000; }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--fg); }
.btn--small { min-height: 38px; padding: 0.45em 0.9em; font-size: 0.9rem; }
.btn--wide { width: 100%; }
.btn--google { background: #fff; color: #1f1f1f; border-color: #747775; font-stretch: 100%; font-weight: 600; }
.btn--google:hover { background: #f2f2f2; color: #1f1f1f; }
.btn--danger { border-color: var(--alert); color: var(--alert); }
.btn--danger:hover { background: var(--alert); color: #fff; }
.btn .icon { flex: none; }

/* ---- header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 75%; font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1; }
.logo__mark { width: 26px; height: 26px; flex: none; }
.nav { display: none; margin-left: auto; align-items: center; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 0.975rem; text-decoration: none; background: linear-gradient(var(--tape), var(--tape)) no-repeat 12px 72% / 0 0.42em; transition: background-size 0.2s; border: 0; cursor: pointer; background-color: transparent; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__menu[open] > .nav__link { background-size: calc(100% - 24px) 0.42em; }
.theme-nuit .nav__link:hover, .theme-nuit .nav__link[aria-current="page"] { color: #fff; background-image: linear-gradient(rgba(255, 194, 26, 0.55), rgba(255, 194, 26, 0.55)); }
.nav__menu { position: relative; }
.nav__menu > summary { list-style: none; }
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__panel { position: absolute; top: calc(100% + 12px); left: -24px; width: min(680px, 86vw); background: var(--panel); border: 2px solid var(--fg); padding: 22px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; }
.nav__panel a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; text-decoration: none; border-bottom: 1px solid var(--rule); font-weight: 600; }
.nav__panel a:hover { border-bottom-color: var(--fg); }
.nav__panel a .twin { font-size: 1.05rem; color: var(--muted); white-space: nowrap; }
.nav__panel .nav__all { grid-column: 1 / -1; border-bottom: 0; padding-top: 16px; }
.header-actions { display: none; align-items: center; gap: 10px; margin-left: 8px; }
.header-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; text-decoration: none; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--tape); color: #000; font-size: 0.7rem; font-weight: 800; line-height: 18px; text-align: center; }
.menu-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: none; border: 2px solid var(--fg); border-radius: var(--radius); font-weight: 700; cursor: pointer; }
@media (min-width: 1080px) {
  .nav, .header-actions { display: flex; }
  .menu-btn { display: none; }
}

.drawer { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; padding: 16px var(--gutter) 40px; display: none; }
.drawer.is-open { display: block; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 18px; }
.drawer__group { border-top: 2px solid var(--fg); padding-block: 14px; }
.drawer__group a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; text-decoration: none; font-weight: 700; font-stretch: 80%; font-size: 1.5rem; line-height: 1.1; }
.drawer__group--small a { font-size: 1.1rem; font-stretch: 100%; font-weight: 600; padding: 8px 0; }
.drawer__group a .twin { font-size: 1.05rem; color: var(--muted); font-weight: 500; }
.drawer .btn { margin-top: 12px; }
body.is-locked { overflow: hidden; }

/* ---- flash --------------------------------------------------------------- */
.flash { border-bottom: 1px solid var(--rule); }
.flash__item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; font-weight: 600; }
.flash__item::before { content: ''; flex: none; width: 14px; height: 14px; margin-top: 0.35em; background: var(--tape); }
.flash__item--error::before { background: var(--alert); }
.flash__item--ok::before { background: var(--ok); }

/* ---- the wall (home hero) ------------------------------------------------ */
.wall { padding-top: clamp(28px, 5vw, 72px); overflow: hidden; }
.wall__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 64px; margin-bottom: clamp(32px, 4.5vw, 64px); }
.wall__intro { display: grid; gap: 22px; align-content: end; }
@media (min-width: 960px) {
  .wall__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}
.wall__stage {
  --fw: 150px;
  --unit: calc(var(--fw) / 104);
  --label: 66px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  position: relative;
  height: calc(190 * var(--unit) + var(--label) + 16px);
}
@media (min-width: 620px) { .wall__stage { --fw: 190px; } }
@media (min-width: 1080px) { .wall__stage { --fw: 232px; } }
.wall__lines {
  position: absolute; left: 0; right: 0; bottom: var(--label); height: calc(190 * var(--unit));
  background-image: repeating-linear-gradient(to top, var(--rule) 0, var(--rule) 1px, transparent 1px, transparent calc(10 * var(--unit)));
  pointer-events: none;
}
.wall__floor { position: absolute; left: 0; right: 0; bottom: calc(var(--label) - 2px); height: 2px; background: var(--fg); pointer-events: none; z-index: 4; }
.wall__scale { position: absolute; left: 0; top: 0; bottom: 0; width: var(--edge); background: var(--bg); pointer-events: none; z-index: 3; font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; display: none; }
.wall__scale span { position: absolute; right: 10px; transform: translateY(50%); line-height: 1; }
.wall__scale::after { content: ''; position: absolute; right: 0; bottom: var(--label); height: calc(190 * var(--unit)); width: 6px; background-image: repeating-linear-gradient(to top, var(--fg) 0, var(--fg) 1px, transparent 1px, transparent calc(10 * var(--unit))); }
@media (min-width: 1080px) { .wall__scale { display: block; } }
.wall__track {
  position: absolute; inset: 0; display: flex; align-items: flex-end; gap: clamp(10px, 1.5vw, 22px);
  padding-inline: var(--edge) var(--gutter); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--edge) var(--gutter); -webkit-overflow-scrolling: touch;
}
.wall__track::-webkit-scrollbar { display: none; }
.wall__frame { flex: none; width: var(--fw); display: block; text-decoration: none; scroll-snap-align: start; position: relative; z-index: 1; }
.wall__frame img, .wall__frame video { width: 100%; max-height: calc(190 * var(--unit)); object-fit: cover; object-position: center top; animation: stand 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes stand { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.wall__label { display: block; height: var(--label); padding-top: 10px; font-weight: 700; font-stretch: 87%; font-size: 0.95rem; line-height: 1.15; }
.wall__label .twin { font-size: 1.05rem; margin-top: 2px; color: var(--muted); }
.wall__frame:hover .wall__label > span:first-child { background: linear-gradient(var(--tape), var(--tape)) no-repeat 0 85% / 100% 0.4em; }
.wall__mark { flex: none; width: var(--fw); scroll-snap-align: start; text-decoration: none; color: #000; position: relative; z-index: 1; display: block; }
.wall__mark-card { display: flex; flex-direction: column; justify-content: space-between; height: calc(150 * var(--unit)); padding: 16px; background: var(--tape); font-weight: 800; font-stretch: 78%; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1; transition: background-color 0.15s, color 0.15s; }
.wall__mark-card small { font: 600 0.9rem/1.25 var(--sans); font-stretch: 100%; }
.wall__mark:hover .wall__mark-card { background: var(--fg); color: var(--bg); }
.wall__mark-floor { display: block; height: var(--label); position: relative; }
.wall__mark-floor::before, .wall__mark-floor::after { content: ''; position: absolute; background: var(--tape); left: 50%; }
.wall__mark-floor::before { width: 64px; height: 11px; top: 12px; transform: translateX(-50%) rotate(-2deg); }
.wall__mark-floor::after { width: 11px; height: 34px; top: 20px; transform: translateX(-50%) rotate(-2deg); }
.wall__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; }
.wall__nav { display: flex; gap: 8px; }
.wall__nav button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 2px solid var(--fg); border-radius: var(--radius); cursor: pointer; }
.wall__nav button:hover { background: var(--fg); color: var(--bg); }

/* ---- discipline index ----------------------------------------------------- */
.index { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); border-top: 2px solid var(--fg); }
@media (min-width: 860px) { .index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.index__row { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.index__name { font-weight: 800; font-stretch: 78%; font-size: clamp(1.6rem, 2.9vw, 2.4rem); line-height: 1; letter-spacing: -0.015em; justify-self: start; background: linear-gradient(var(--tape), var(--tape)) no-repeat 0 88% / 0 0.36em; transition: background-size 0.25s; }
.index__row:hover .index__name { background-size: 100% 0.36em; }
.index__row .twin { font-size: 1.3rem; }
.index__row p { color: var(--muted); margin-top: 6px; max-width: 34em; }

/* ---- steps (a real sequence) ---------------------------------------------- */
.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 80px); }
@media (min-width: 960px) { .steps-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.steps { counter-reset: step; border-top: 2px solid var(--fg); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-weight: 800; font-stretch: 75%; font-size: 2.6rem; line-height: 0.9; grid-row: span 2; }
.steps h3 { font-size: 1.3rem; font-weight: 700; font-stretch: 87%; line-height: 1.15; }
.steps p { color: var(--muted); max-width: 36em; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); align-items: end; }
.trio > :nth-child(2) { transform: translateY(clamp(16px, 3vw, 44px)); }
.trio img, .trio video { width: 100%; }

/* ---- assignments ---------------------------------------------------------- */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) clamp(12px, 2vw, 28px); }
@media (min-width: 760px) { .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.job { display: flex; flex-direction: column; min-width: 0; }
.job__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--line); overflow: hidden; }
.job__media img { width: 100%; height: 100%; object-fit: cover; }
.job__blank { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 14px; background: var(--fg); color: var(--bg); font-weight: 800; font-stretch: 75%; font-size: 1.6rem; line-height: 0.95; }
.job__tag { position: absolute; left: 0; top: 12px; background: var(--tape); color: #000; font-size: 0.8rem; font-weight: 700; padding: 4px 10px 4px 12px; }
.job__body { padding-top: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.job__pay { font-weight: 800; font-stretch: 78%; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.job__pay small { font: 500 0.85rem/1 var(--sans); font-stretch: 100%; color: var(--muted); margin-left: 4px; }
.job__title { font-weight: 700; font-size: 1.05rem; line-height: 1.25; text-decoration: none; }
a.job__title:hover { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 4px; }
.job__meta { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.job__foot { margin-top: auto; padding-top: 12px; }
.job__foot .btn { width: 100%; }
.job__lock { margin-top: 8px; font-size: 0.82rem; line-height: 1.35; color: var(--muted); text-align: center; }
/* Guests see the fee only: the lines below are placeholder bars, never the real text. */
.veil { filter: blur(5px); user-select: none; pointer-events: none; opacity: 0.8; }
.veil span { display: block; height: 0.85em; margin: 0.4em 0; background: var(--fg); opacity: 0.35; border-radius: 2px; }
.empty { border: 2px dashed var(--rule); padding: clamp(28px, 5vw, 56px); text-align: left; }
.empty p { max-width: 36em; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--fg); border-radius: 20px; text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.pill:hover { background: var(--fg); color: var(--bg); }
.pill[aria-current="true"] { background: var(--fg); color: var(--bg); }

.job-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .job-detail { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.job-detail__media { position: sticky; top: 92px; }
.job-detail__media img { width: 100%; }
.facts { border-top: 2px solid var(--fg); }
.facts > div { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { font-weight: 600; }

/* ---- discipline page ------------------------------------------------------ */
.page-head { padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 80px); }
@media (min-width: 960px) { .page-head__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; text-decoration: none; margin-bottom: 22px; }
.crumb:hover { text-decoration: underline; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px clamp(32px, 5vw, 80px); }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.listing { border-top: 2px solid var(--fg); }
.listing + .listing { margin-top: 36px; }
.listing h3 { padding: 14px 0 10px; font-size: 1.15rem; font-weight: 700; font-stretch: 87%; }
.listing li { padding: 11px 0 11px 22px; border-top: 1px solid var(--rule); position: relative; }
.listing li::before { content: ''; position: absolute; left: 0; top: 1.25em; width: 10px; height: 4px; background: var(--tape); }

.board { column-count: 2; column-gap: clamp(8px, 1.2vw, 18px); }
@media (min-width: 700px) { .board { column-count: 3; } }
@media (min-width: 1100px) { .board { column-count: 4; } }
.board--few { column-count: 2; }
@media (min-width: 700px) { .board--few { column-count: 3; } }
.board__item { break-inside: avoid; margin-bottom: clamp(8px, 1.2vw, 18px); position: relative; }
.board__item img, .board__item video { width: 100%; }
.board__item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.board__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--muted); font-size: 0.875rem; max-width: 46em; }
.board__note::before { content: ''; flex: none; width: 18px; height: 6px; margin-top: 0.5em; background: var(--tape); }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--fg); }
.pager a { display: block; padding: 22px 0 28px; text-decoration: none; }
.pager a + a { text-align: right; border-left: 1px solid var(--rule); padding-left: 16px; }
.pager small { display: block; color: var(--muted); font-size: 0.875rem; margin-bottom: 4px; }
.pager strong { font-weight: 800; font-stretch: 78%; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1; }
.pager a:hover strong { background: linear-gradient(var(--tape), var(--tape)) no-repeat 0 88% / 100% 0.36em; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; margin: 0; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.lightbox__in { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 16px; gap: 10px; }
.lightbox img { max-width: min(100%, 736px); max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox p { color: #fff; font-size: 0.875rem; text-align: center; max-width: 44em; }
.lightbox__btn { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; background: var(--tape); color: #000; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__btn--prev { left: 10px; }
.lightbox__btn--next { right: 10px; }
.lightbox__btn--close { top: 10px; right: 10px; transform: none; }

/* ---- divisions ------------------------------------------------------------ */
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1vw, 14px); align-items: end; }
.strip > :nth-child(even) { transform: translateY(clamp(10px, 2vw, 28px)); }
.strip > :nth-child(n+6) { display: none; }
@media (min-width: 900px) {
  .strip { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .strip > :nth-child(n+6) { display: block; }
}
.strip img, .strip video { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.division-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 80px); border-top: 2px solid var(--fg); }
@media (min-width: 800px) { .division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .division-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.division { padding: 22px 0 26px; border-bottom: 1px solid var(--rule); }
.division h3 { font-weight: 800; font-stretch: 78%; font-size: 1.7rem; line-height: 1; }
.division h3 .twin { font-size: 1.25rem; }
.division p { margin-top: 10px; max-width: 34em; }
.division p.small { color: var(--muted); }

/* ---- studios -------------------------------------------------------------- */
.studios { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 2px solid var(--fg); }
@media (min-width: 860px) { .studios { grid-template-columns: 1fr 1fr; } }
.studio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(16px, 2.5vw, 36px); padding: clamp(24px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--rule); align-items: end; }
@media (min-width: 860px) {
  .studio:first-child { padding-right: clamp(20px, 3vw, 48px); border-right: 1px solid var(--rule); }
  .studio:last-child { padding-left: clamp(20px, 3vw, 48px); }
}
.studio img, .studio video { width: 100%; }
.studio__city { font-weight: 800; font-stretch: 75%; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 0.9; letter-spacing: -0.02em; }
.studio__city .twin { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-top: 0.2em; }
.studio__clock { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 14px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.35rem; }
.studio__clock small { font-weight: 500; font-size: 0.85rem; color: var(--muted); }

/* ---- bands ---------------------------------------------------------------- */
.band { background: var(--nuit); color: #F2F3F6; --fg: #F2F3F6; --bg: var(--nuit); --muted: #AEB3CC; --rule: rgba(255, 255, 255, 0.24); }
.band__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 860px) { .band__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); } }
.band img, .band video { width: 100%; max-width: 300px; justify-self: end; }
.band--tape { background: var(--tape); color: #000; --fg: #000; --bg: var(--tape); --muted: #3b3000; --rule: rgba(0, 0, 0, 0.3); }
.charter-line { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.charter-line p { font-weight: 700; font-stretch: 87%; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.2; max-width: 30em; }

/* ---- footer --------------------------------------------------------------- */
.site-footer { background: #000; color: #fff; --fg: #fff; --bg: #000; --muted: #B4B7BE; --rule: rgba(255, 255, 255, 0.24); padding-block: clamp(48px, 6vw, 88px) 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.footer-grid { display: grid; gap: 36px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr); } }
.footer-grid h2 { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.footer-grid li { padding: 4px 0; }
.footer-brand, .footer-castings { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand, .footer-castings { grid-column: auto; } }
.footer-brand .logo { font-size: 2.4rem; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 26em; }
.footer-cols { columns: 2; column-gap: 24px; }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: clamp(36px, 5vw, 64px); padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.85rem; }

/* ---- forms ---------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form-grid { display: grid; gap: 20px 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.span-all, .span-3 { grid-column: 1 / -1; }
@media (min-width: 640px) { .form-grid--4 > .span-3 { grid-column: span 3; } }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field > label, .field > .label, legend.label { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; background: var(--panel); color: var(--fg);
  border: 1.5px solid var(--fg); border-radius: var(--radius); appearance: none;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.theme-nuit .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--tape); outline-offset: 0; border-color: var(--fg); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--alert); border-width: 2px; }
.hint { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.field__error { color: var(--alert); font-size: 0.875rem; font-weight: 600; }
.theme-nuit .field__error { color: #FF8A9A; }
.with-unit { position: relative; }
.with-unit .input { padding-right: 48px; }
.with-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #000; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--fg); border-radius: 20px; font-size: 0.92rem; font-weight: 500; background: var(--panel); }
.chip input:checked + span { background: var(--fg); color: var(--bg); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--tape); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.9rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* ---- sign-in / narrow pages ---------------------------------------------- */
.narrow { max-width: 560px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); }
@media (min-width: 920px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.card { background: var(--panel); border: 2px solid var(--fg); padding: clamp(20px, 3vw, 36px); }
.card--flat { border-width: 1px; border-color: var(--rule); }
.card h2, .card h3 { margin-bottom: 6px; }

/* ---- become a model ------------------------------------------------------- */
.digitals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 20px); }
.digital { text-align: left; }
.digital__frame { aspect-ratio: 3 / 4; background: var(--paper); border: 1.5px solid var(--fg); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.digital__frame svg { width: 78%; height: auto; display: block; }
.digital h3 { margin-top: 10px; font-size: 1.05rem; font-weight: 700; }
.digital p { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.faq { border-top: 2px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; max-width: 46em; color: var(--muted); }

/* ---- legal / prose pages --------------------------------------------------- */
.doc { max-width: 70ch; }
.doc h2 { font-size: 1.6rem; font-weight: 800; font-stretch: 80%; margin-top: 2.2em; line-height: 1.1; }
.doc h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.6em; }
.doc p, .doc ul, .doc ol { margin-top: 0.9em; }
.doc ul { list-style: none; }
.doc ul li { position: relative; padding-left: 22px; margin-top: 0.5em; }
.doc ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 10px; height: 4px; background: var(--tape); }
.doc a { text-decoration: underline; text-underline-offset: 0.2em; }
.notice { border-left: 6px solid var(--tape); background: var(--panel); padding: 16px 18px; }

/* ---- account area ---------------------------------------------------------- */
.acct { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px clamp(28px, 4vw, 64px); padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 96px); }
@media (min-width: 980px) { .acct { grid-template-columns: 232px minmax(0, 1fr); align-items: start; } }
.acct-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.acct-nav::-webkit-scrollbar { display: none; }
.acct-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 600; border: 1.5px solid var(--rule); border-radius: 22px; white-space: nowrap; background: var(--panel); }
.acct-nav a[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.acct-nav .count { background: var(--tape); color: #000; font-size: 0.72rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
@media (min-width: 980px) {
  .acct-nav { position: sticky; top: 92px; flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 0; border-top: 2px solid var(--fg); }
  .acct-nav a { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; padding: 0; min-height: 50px; justify-content: space-between; }
  .acct-nav a[aria-current="page"] { background: none; color: var(--fg); box-shadow: inset 6px 0 0 var(--tape); padding-left: 16px; }
}
.acct-who { display: none; }
@media (min-width: 980px) { .acct-who { display: block; margin-bottom: 18px; } .acct-who strong { display: block; font-size: 1.15rem; line-height: 1.2; } .acct-who span { color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; } }
.acct > *, .acct-main { min-width: 0; }
.acct-main > .h2 { margin-bottom: 6px; }
.acct-main > .h2 + p { margin-bottom: 28px; }
.panel { background: var(--panel); border: 1px solid var(--rule); padding: clamp(18px, 2.6vw, 30px); }
.panel + .panel { margin-top: 20px; }
.panel__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.panel__head h2, .panel__head h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 80%; line-height: 1.1; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.status::before { content: ''; width: 12px; height: 12px; background: var(--line); }
.status--pending::before, .status--applied::before, .status--new::before, .status--in_review::before { background: var(--tape); }
.status--approved::before, .status--selected::before, .status--accepted::before, .status--converted::before, .status--live::before { background: var(--ok); }
.status--rejected::before, .status--declined::before, .status--suspended::before { background: var(--alert); }
.status--shortlisted::before { background: #2D4BFF; }

/* the tape measure: profile completion */
.tape { --pct: 0; }
.tape__bar { position: relative; height: 34px; background: var(--tape); border: 1.5px solid #000; overflow: hidden;
  background-image: repeating-linear-gradient(to right, #000 0, #000 1.5px, transparent 1.5px, transparent 10%), repeating-linear-gradient(to right, rgba(0,0,0,.55) 0, rgba(0,0,0,.55) 1px, transparent 1px, transparent 2%);
  background-size: 100% 60%, 100% 30%; background-repeat: no-repeat; background-position: left bottom, left bottom; }
.tape__rest { position: absolute; top: 0; bottom: 0; right: 0; width: calc(100% - var(--pct) * 1%); background: var(--paper); border-left: 2px solid #000; background-image: repeating-linear-gradient(to right, var(--line) 0, var(--line) 1px, transparent 1px, transparent calc(10% / (1 - var(--pct) / 100))); }
.tape__read { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.tape__read strong { font-weight: 800; font-stretch: 75%; font-size: 2.6rem; line-height: 0.9; font-variant-numeric: tabular-nums; }
.todo { display: grid; gap: 0; margin-top: 16px; }
.todo li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); }
.todo li a { text-decoration: underline; text-underline-offset: 0.2em; }
.todo .tick { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.todo .is-done { color: var(--muted); }
.todo .is-done .tick { background: var(--fg); color: var(--bg); }

.timeline { display: grid; gap: 0; counter-reset: tl; }
.timeline li { position: relative; padding: 0 0 22px 34px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 2px solid var(--fg); background: var(--panel); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--fg); }
.timeline li.is-now::before { background: var(--tape); }
.timeline strong { display: block; }
.timeline span { color: var(--muted); font-size: 0.92rem; }

/* uploads */
.drops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 18px); }
.drop { position: relative; }
.drop__zone { position: relative; aspect-ratio: 3 / 4; border: 2px dashed var(--fg); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 10px; cursor: pointer; overflow: hidden; }
.drop__zone:hover, .drop__zone.is-over { background: #FFF6D6; }
.drop__zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop__zone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop.has-file .drop__zone { border-style: solid; }
.drop__zone .drop__hint { font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
.drop__title { display: block; margin-top: 8px; font-weight: 700; font-size: 0.95rem; }
.drop__state { display: block; font-size: 0.82rem; color: var(--muted); min-height: 1.3em; }
.drop.is-busy .drop__zone::after { content: 'Uploading…'; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.86); display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 2; }
.drop.is-error .drop__state { color: var(--alert); font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
@media (min-width: 640px) { .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .shots { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.shot { position: relative; background: var(--line); aspect-ratio: 3 / 4; overflow: hidden; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; }
.shot__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 6px; padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }
.shot__bar button { min-height: 34px; padding: 0 10px; border: 0; background: #fff; color: #000; font-size: 0.8rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.shot__bar button:hover { background: var(--tape); }
.shot__flag { position: absolute; top: 0; left: 0; background: var(--tape); color: #000; font-size: 0.75rem; font-weight: 800; padding: 3px 8px; }
.shot--add { border: 2px dashed var(--fg); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 10px; cursor: pointer; font-weight: 700; }
.shot--add:hover { background: #FFF6D6; }
.shot--add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.shot--add small { font-weight: 400; color: var(--muted); font-size: 0.8rem; line-height: 1.3; }
.shot--add.is-busy { pointer-events: none; opacity: 0.6; }

/* height chart beside the height field */
.heightchart { position: relative; height: 230px; border-left: 2px solid var(--fg); border-bottom: 2px solid var(--fg); background-image: repeating-linear-gradient(to top, var(--rule) 0, var(--rule) 1px, transparent 1px, transparent 10%); margin-left: 34px; }
.heightchart__tick { position: absolute; left: -34px; width: 30px; text-align: right; font-size: 0.7rem; color: var(--muted); transform: translateY(50%); font-variant-numeric: tabular-nums; }
.heightchart__fig { position: absolute; left: 50%; bottom: 0; width: 64px; transform: translateX(-50%); transform-origin: bottom center; transition: height 0.3s; }
.heightchart__fig svg { width: 100%; height: 100%; display: block; }
.heightchart__mark { position: absolute; left: 0; right: 0; height: 0; border-top: 3px solid var(--tape); transition: bottom 0.3s; }
.heightchart__mark span { position: absolute; right: 0; bottom: 4px; background: var(--tape); color: #000; font-weight: 800; font-size: 0.8rem; padding: 2px 6px; white-space: nowrap; }

/* tables in the account area */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.85rem; padding: 8px 12px 8px 0; border-bottom: 2px solid var(--fg); white-space: nowrap; }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table td:last-child, .table th:last-child { padding-right: 0; }
@media (max-width: 639px) {
  .table, .table tbody { display: block; }
  .table thead { display: none; }
  .table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .table td { padding: 0; border: 0; }
  .table td:first-child { flex: 1 1 100%; font-weight: 600; }
  .table td:empty, .table td.is-empty { display: none; }
}

/* notifications */
.notes li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.notes li::before { content: ''; width: 12px; height: 12px; margin-top: 0.4em; background: var(--line); }
.notes li.is-new::before { background: var(--tape); }
.notes a { text-decoration: none; font-weight: 700; }
.notes a:hover { text-decoration: underline; }
.notes time { display: block; color: var(--muted); font-size: 0.82rem; }

/* ---- chat ------------------------------------------------------------------ */
.chat { display: flex; flex-direction: column; height: min(72vh, 720px); min-height: 420px; background: var(--panel); border: 1px solid var(--rule); }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.chat__head strong { font-size: 1.05rem; }
.chat__log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: #F6F7F8; }
.chat__day { align-self: center; font-size: 0.78rem; color: var(--muted); padding: 4px 0; }
.msg { max-width: min(78%, 560px); padding: 10px 14px; background: #fff; border: 1px solid var(--rule); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.45; }
.msg--mine { align-self: flex-end; background: #000; color: #fff; border-color: #000; }
.msg time { display: block; margin-top: 4px; font-size: 0.72rem; opacity: 0.65; white-space: normal; }
.msg a { color: inherit; }
.msg img { max-width: 240px; max-height: 300px; width: auto; margin-bottom: 6px; background: var(--line); }
.msg__file { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: underline; }
.chat__empty { margin: auto; text-align: center; color: var(--muted); max-width: 26em; }
.chat__form { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; padding: 10px; border-top: 1px solid var(--rule); align-items: end; }
.chat__form textarea { min-height: 48px; max-height: 140px; resize: none; padding: 12px; border: 1.5px solid var(--fg); border-radius: var(--radius); background: #fff; line-height: 1.4; }
.chat__attach { position: relative; width: 48px; height: 48px; border: 1.5px solid var(--fg); border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: #fff; }
.chat__attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.chat__attach.has-file { background: var(--tape); }
.chat__note { grid-column: 1 / -1; font-size: 0.8rem; color: var(--muted); min-height: 1.2em; }
.chat__note.is-error { color: var(--alert); font-weight: 600; }

/* ---- error page ------------------------------------------------------------ */
.oops { min-height: 56vh; display: grid; align-content: center; gap: 18px; }
.oops__code { font-weight: 800; font-stretch: 75%; font-size: clamp(5rem, 18vw, 13rem); line-height: 0.8; letter-spacing: -0.04em; }

/* ---- motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .wall__nav, .menu-btn { display: none; }
  body { background: #fff; }
}
