/* DesignArena design system: the gallery wall.
   Near-black and sage, an editorial serif for headings, photographs cut into soft shapes.
   State never depends on colour alone: badges carry an icon and a word, charts print every value,
   and the two chart series (blue and orange) stay distinct for the common colour-vision deficiencies. */

:root {
  --bg: #0f0f10;
  --surface: #1a1a1b;
  --surface-2: #252527;
  --surface-3: #303033;
  --ink: #f1f1ef;
  --ink-2: #d2d3ce;
  --muted: #a8a9a3;
  --line: rgb(255 255 255 / 12%);
  --line-strong: rgb(255 255 255 / 24%);
  --accent: #8fa68e;
  --accent-ink: #0f0f10;
  --accent-soft: rgb(143 166 142 / 16%);
  --link: #c4d5c3;
  --ok: #a9c8f5;
  --ok-soft: rgb(156 194 255 / 13%);
  --warn: #e9b47f;
  --warn-soft: rgb(233 180 127 / 13%);
  --deep: #1a201a;
  --field: #44583f;
  --focus: #9cc2ff;
  --radius: 24px;
  --radius-sm: 14px;
  --m: clamp(20px, 5.5vw, 96px);        /* page margin shared by every section */
  --nav-m: clamp(16px, 2.3vw, 44px);    /* the header sits nearer the corners */
  --pm: clamp(24px, 4.5vw, 80px);       /* inner padding of the large rounded panels */
  --sec: clamp(96px, 11vw, 176px);      /* the gap between home page sections */
  --font: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --motion: 200ms;
  color-scheme: dark;
}

/* ============================================================ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; line-height: 1.05; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
button, input, select, textarea, summary, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.eyebrow { margin: 0 0 12px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.req { color: var(--warn); font-weight: 700; }
.space-top-sm { margin-top: 14px; }
.space-top { margin-top: 28px; }
.space-top-lg { margin-top: 40px; }

/* ============================================================ header for signed-in pages */
.topbar { position: sticky; top: 0; z-index: 30; background: rgb(15 15 16 / 86%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); min-height: 76px; padding: 10px var(--nav-m); }
.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; font: 400 1.625rem/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand svg { display: none; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; padding: 10px 0; color: var(--muted); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color var(--motion); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.account { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.role-chip { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgb(143 166 142 / 45%); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 10px; min-height: 44px; list-style: none; cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--ink); border-radius: 999px; padding: 4px 10px 4px 4px; transition: background var(--motion); }
.account-menu summary:hover { background: var(--surface); }
summary::-webkit-details-marker { display: none; }
.account-menu summary > svg { width: 14px; height: 14px; color: var(--muted); transition: transform var(--motion); }
.account-menu[open] summary > svg { transform: rotate(180deg); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.account-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; display: grid; gap: 4px; min-width: 240px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface-2); box-shadow: 0 24px 60px rgb(0 0 0 / 45%); animation: menu-in var(--motion) ease-out; }
.account-panel strong { font-weight: 600; }
.account-panel form { margin-top: 12px; }

/* ============================================================ header for the public pages (home, log in) */
.site-bar { position: relative; z-index: 20; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); padding: 22px var(--nav-m); font-size: .9375rem; }
.site-bar.over { position: absolute; left: 0; right: 0; top: 0; }
.site-bar .mark { font: 400 1.625rem/1 var(--display); letter-spacing: -.01em; color: var(--ink); text-decoration: none; margin-right: 6px; white-space: nowrap; }
.site-bar nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-right: auto; }
.site-bar nav a { color: var(--ink); text-decoration: none; padding: 8px 0; white-space: nowrap; }
.site-bar nav a:hover { text-decoration: underline; }
.site-bar nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-bar nav .nl, .site-bar nav .nr { display: contents; }

/* ============================================================ page layout */
.container { max-width: 1440px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--m) clamp(56px, 7vw, 104px); min-height: calc(100svh - 220px); }
.notice-stack:empty { display: none; }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.page-header > div:first-child { flex: 1 1 380px; min-width: 0; }
.page-header h1 { margin: 0; overflow-wrap: anywhere; }
.page-header p { margin: 14px 0 0; max-width: 62ch; color: var(--muted); }
.page-header .eyebrow { margin: 0 0 14px; }
.page-header p .badge { vertical-align: middle; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.compact-actions { gap: 6px; }
.breadcrumb { margin-bottom: 18px; font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(20px, 2.2vw, 32px); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); align-items: start; }
.grid-2 { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
.grid-halves { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: 1fr 1fr; align-items: start; }
.grid-2 > *, .grid-halves > * { min-width: 0; }
.stack > * + * { margin-top: clamp(20px, 2.4vw, 28px); }

/* ============================================================ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 32px); }
.card-tight { padding: 0; overflow: hidden; }
.card h2 { margin-bottom: 18px; }
.card-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.card-header h2 { margin: 0; }
.card-header a { font-size: .9375rem; }
.panel-heading { padding: 24px 24px 6px; }
.panel-heading h2 { margin: 0; font-size: 1.5rem; }
.panel-note { padding: 0 24px 24px; }
a.card { position: relative; display: block; padding-right: 64px; color: inherit; text-decoration: none; transition: border-color var(--motion), transform .4s var(--ease), background var(--motion); }
a.card::after { content: "\2197"; position: absolute; right: 28px; top: 26px; font-size: 1.25rem; color: var(--accent); transition: transform .4s var(--ease); }
a.card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-3px); }
a.card:hover::after { transform: translate(3px, -3px); }
a.card h2 { color: var(--ink); }
.details { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 14px 28px; margin: 0; }
.details dt { color: var(--muted); font-size: .875rem; }
.details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.details .badge { vertical-align: middle; }

/* ============================================================ stats */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: clamp(28px, 3.5vw, 44px); }
.stat { position: relative; min-width: 0; padding: 22px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.stat .label { padding-right: 26px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.stat .value { margin: 10px 0 6px; font: 400 clamp(2.125rem, 1.7rem + 1.2vw, 2.75rem)/1 var(--display); font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.stat .note { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.stat-mark { position: absolute; right: 20px; top: 22px; color: var(--accent); }
.stat-mark svg { width: 17px; height: 17px; }

/* ============================================================ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: 600 .875rem/1.2 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--motion), color var(--motion), border-color var(--motion), transform .25s var(--ease); }
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-warning { background: transparent; color: var(--warn); border-color: rgb(233 180 127 / 55%); }
.btn-warning:hover { background: var(--warn); color: var(--bg); border-color: var(--warn); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .8125rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: default; transform: none; }
.btn.is-busy { cursor: wait; opacity: .8; }
.btn.is-busy::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.inline-form { display: inline; margin: 0; }
.icon-btn { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; transition: background var(--motion), color var(--motion); }
.icon-btn:hover { background: var(--ink); color: var(--bg); }
.icon-btn svg { width: 17px; height: 17px; }

/* ============================================================ badges: icon + word, never colour alone */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid transparent; font-size: .75rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.badge svg { width: 11px; height: 11px; }
.badge-active, .badge-published { color: var(--ok); background: var(--ok-soft); border-color: rgb(169 200 245 / 30%); }
.badge-ongoing { color: var(--link); background: var(--accent-soft); border-color: rgb(143 166 142 / 35%); }
.badge-suspended { color: var(--warn); background: var(--warn-soft); border-color: rgb(233 180 127 / 35%); }
.badge-draft { color: var(--ink-2); background: transparent; border: 1px dashed var(--line-strong); }
.badge-completed { color: var(--ink-2); background: var(--surface-3); border-color: var(--line); }
.badge-role { color: var(--ink-2); background: var(--surface-2); border-color: var(--line); }

/* ============================================================ alerts */
.alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 16px 18px; border: 1px solid; border-radius: 18px; font-size: .9375rem; animation: menu-in var(--motion) ease-out; }
.alert > div { flex: 1; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert strong { margin-right: 4px; font-weight: 600; }
.alert-success { background: var(--ok-soft); border-color: rgb(169 200 245 / 35%); color: #d9e7fb; }
.alert-info { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink-2); }
.alert-error { background: var(--warn-soft); border-color: rgb(233 180 127 / 45%); color: #f6d9bc; }
.alert-dismiss { width: 32px; height: 32px; margin: -4px -6px -4px 0; border: 0; background: transparent; color: inherit; }
.alert-dismiss svg { width: 15px; height: 15px; margin: 0; }
.error-links { margin: 8px 0 0; padding-left: 18px; }
.error-links a { color: inherit; }

/* ============================================================ forms */
.form { display: grid; gap: 24px; }
.form-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form .card > .field + .field, .form .card > .field + div:has(> .field) { margin-top: 22px; }
.field { min-width: 0; }
.field label, .field .label, .field legend { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: .8125rem; font-weight: 600; }
.field .hint { margin-top: 7px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; }
.field-error { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; color: var(--warn); font-size: .8125rem; }
.field-error svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=url], input[type=number],
input[type=date], input[type=month], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--font); transition: border-color var(--motion), box-shadow var(--motion), background var(--motion); }
textarea { min-height: 128px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8d8e88; opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: rgb(255 255 255 / 38%); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgb(156 194 255 / 28%); border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--warn) !important; background: rgb(233 180 127 / 8%) !important; }
select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d2d3ce' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
input[type=file] { width: 100%; max-width: 100%; color: var(--muted); font: .875rem var(--font); }
input[type=file]::file-selector-button { margin: 4px 12px 4px 0; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: 600 .8125rem var(--font); cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding-top: 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: .9375rem; font-weight: 500; cursor: pointer; transition: background var(--motion), border-color var(--motion); }
.choice input { flex-shrink: 0; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--link); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.segmented { display: flex; gap: 4px; min-height: 48px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.segmented label { position: relative; flex: 1; margin: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: grid; place-items: center; height: 38px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: .9375rem; font-weight: 500; transition: background var(--motion), color var(--motion); }
.segmented label:hover span { color: var(--ink); background: var(--surface-2); }
.segmented input:checked + span { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.upload-zone { padding: 22px; border: 1px dashed var(--line-strong); border-radius: 18px; background: rgb(255 255 255 / 2%); }
.upload-zone label { font-size: .9375rem; }
.upload-preview { width: 100%; max-height: 280px; margin-top: 14px; object-fit: contain; border-radius: 16px; background: var(--surface-2); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 72px; }
.password-toggle { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--link); font: 600 .8125rem var(--font); cursor: pointer; }
.password-toggle:hover { background: var(--surface-2); }

/* searchable / custom dropdowns: the real select stays in the form and owns the value */
.select-native-enhanced { display: none; }
.custom-select { position: relative; width: 100%; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 12px 42px 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--font); text-align: left; cursor: pointer; transition: border-color var(--motion); }
.select-trigger:hover { border-color: rgb(255 255 255 / 38%); }
.select-trigger:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.select-trigger .select-value { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select > input.select-input { padding-right: 42px; }
.custom-select .select-chevron { position: absolute; right: 15px; top: 50%; width: 16px; height: 16px; color: var(--ink-2); pointer-events: none; transform: translateY(-50%); transition: transform var(--motion); }
.custom-select.is-open .select-chevron { transform: translateY(-50%) rotate(180deg); }
.select-popover { position: absolute; z-index: 45; top: calc(100% + 8px); left: 0; width: max(100%, 240px); max-width: min(380px, 86vw); padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); box-shadow: 0 24px 60px rgb(0 0 0 / 50%); animation: menu-in var(--motion) ease-out; }
.select-popover.align-end { left: auto; right: 0; }
.select-options { max-height: 280px; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.select-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: .9375rem; line-height: 1.4; cursor: pointer; }
.select-option[hidden] { display: none; }
.select-option[aria-selected="true"] { color: var(--link); font-weight: 600; }
.select-option[aria-selected="true"]::after { content: "\2713"; font-weight: 700; }
.select-option.is-active, .select-option:hover { background: var(--surface-3); }
.select-option[aria-disabled="true"] { opacity: .45; cursor: default; }
.select-empty, .select-help { margin: 0; padding: 10px 14px; color: var(--muted); font-size: .8125rem; }
.select-help { border-top: 1px solid var(--line); }

/* ============================================================ search panels and filters */
.filters { margin-bottom: 22px; padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.filters form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; }
.filters .field { flex: 1 1 170px; min-width: 0; }
.filters .field:first-child { flex: 2.4 1 260px; }
.filters .btn { flex: 0 0 auto; min-height: 48px; }
.search-input { position: relative; }
.search-input svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search-input input { padding-left: 46px; }
.discovery-filters form { display: block; }
.discovery-filters input, .discovery-filters .select-trigger, .discovery-filters select { border-radius: 999px; padding-left: 20px; }
.discovery-filters .search-input input { padding-left: 48px; }
.search-row { display: flex; align-items: flex-end; gap: 12px; }
.search-row .keyword-field { flex: 1; }
.filter-toggle { display: none; }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; }
.filter-count[hidden] { display: none; }
.filter-panel { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1.6fr; align-items: start; gap: 18px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.budget-fields { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.budget-fields .field { flex: 1 1 0; min-width: 0; }
.filters .budget-fields .field, .filters .budget-fields .field:first-child { flex: 1 1 0; }   /* not the wide first-field rule of the search panels */
.budget-separator { padding-top: 38px; color: var(--muted); }
.mobile-filter-actions { display: none; }
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.filter-chips:not(:has(a)) { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .8125rem; font-weight: 500; text-decoration: none; transition: background var(--motion), color var(--motion); }
.filter-chip:hover { background: var(--ink); color: var(--bg); }
.filter-chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.clear-filters { padding: 8px; font-size: .8125rem; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 8px 0 28px; }
.result-count { margin: 0 0 22px; color: var(--muted); font-size: .9375rem; }
.results-toolbar .result-count { margin: 0; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); color: var(--ink); }
.results-toolbar .result-count span { color: var(--muted); font-size: .9375rem; }
.result-count strong { font-weight: 600; color: var(--ink); }
.sort-field { display: grid; grid-template-columns: auto minmax(160px, 1fr); align-items: center; gap: 12px; width: min(260px, 100%); flex-shrink: 0; }
.sort-field > label { margin: 0; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.sort-field .custom-select { min-width: 0; }
.sort-field .select-trigger, .sort-field select { min-height: 42px; padding: 9px 40px 9px 16px; border-radius: 999px; font-size: .875rem; }
.sort-field .select-popover { right: 0; left: auto; width: max(100%, 210px); max-width: min(280px, 85vw); }

/* ============================================================ photographs cut into soft shapes */
.sh { overflow: hidden; transition: border-radius .9s var(--ease); }
.sh-arch { border-radius: 50% 50% 28px 28px / 34% 34% 28px 28px; }
.sh-oval { border-radius: 50%; }
.sh-pill { border-radius: 999px; }
.sh-leaf { border-radius: 42% 28px 42% 28px / 42% 28px 42% 28px; }
.sh-corner { border-radius: 38% 28px 28px 28px / 46% 28px 28px 28px; }
.sh:hover, a:hover > .sh, a:focus-visible > .sh, .sh.is-focus, a.is-focus > .sh { border-radius: 32px; }
.sh-leaf:hover, a:hover > .sh-leaf, .sh-leaf.is-focus, a.is-focus > .sh-leaf { border-radius: 28px 42% 28px 42% / 28px 42% 28px 42%; }
.sh-corner:hover, a:hover > .sh-corner, .sh-corner.is-focus, a.is-focus > .sh-corner { border-radius: 28px 28px 38% 28px / 28px 28px 46% 28px; }

/* ============================================================ project cards */
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.project-card a.cover { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 28px; background: var(--surface); transition: border-radius .9s var(--ease); }
.project-card a.cover img, .project-card a.cover svg { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card:hover a.cover img, .project-card:hover a.cover svg { transform: scale(1.04); }
.grid > .project-card:nth-child(3n+1) a.cover { aspect-ratio: 4 / 5; border-radius: 50% 50% 26px 26px / 40% 40% 26px 26px; }
.grid > .project-card:nth-child(3n+2) a.cover { aspect-ratio: 1; border-radius: 50%; }
.grid > .project-card:nth-child(3n+3) a.cover { aspect-ratio: 3 / 2; border-radius: 42% 26px 42% 26px / 42% 26px 42% 26px; }
.grid > .project-card:hover a.cover { border-radius: 30px; }
.project-grid > .project-card:nth-child(3n+2) { margin-top: 72px; }
.grid > .project-card:nth-child(3n+2) .sample-label { left: 50%; bottom: 8%; transform: translateX(-50%); }
.project-card .body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 2px 0; }
.project-card .compact-actions { margin-bottom: 2px; }
.project-card .title { color: var(--ink); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; text-decoration: none; text-wrap: balance; }
.project-card .title:hover { text-decoration: underline; }
.project-card .meta { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.project-card .studio-line { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: .875rem; }
.studio-line svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--muted); }
.project-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price-label { display: block; margin-bottom: 1px; color: var(--muted); font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.project-card .price { font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.metrics { display: inline-flex; gap: 12px; color: var(--ink-2); font-size: .875rem; font-variant-numeric: tabular-nums; }
.metric { display: inline-flex; align-items: center; gap: 5px; }
.metric svg { width: 15px; height: 15px; color: var(--muted); }
.project-card.is-selected a.cover { outline: 3px solid var(--accent); outline-offset: 3px; }
.sample-label { position: absolute; left: 14px; bottom: 14px; padding: 4px 11px; border-radius: 999px; background: rgb(0 0 0 / 62%); color: #fff; font: 500 .75rem/1.5 var(--font); white-space: nowrap; pointer-events: none; }
.inline-confirm { position: relative; margin-top: 10px; }
.inline-confirm > summary { list-style: none; }
.inline-confirm[open] > summary { margin-bottom: 10px; }

/* ============================================================ project detail */
.cover-hero { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 34% 32px 32px 32px / 50% 32px 32px 32px; background: var(--surface); transition: border-radius .9s var(--ease); }
.cover-hero:hover { border-radius: 32px; }
.cover-hero img, .cover-hero svg { width: 100%; height: 100%; object-fit: cover; }
.project-aside { position: sticky; top: 100px; }
.detail-budget { margin: 4px 0 24px; font: 400 clamp(2.75rem, 1.8rem + 3vw, 4.25rem)/1 var(--display); font-variant-numeric: lining-nums; }
.project-aside .save-project { margin-top: 20px; width: 100%; }
.saved-state { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.saved-state:hover { background: var(--ink); color: var(--bg); }
.saved-state svg { animation: heart-in 300ms ease-out; }
.expand-image { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 50%; background: rgb(15 15 16 / 70%); color: #fff; font: 18px var(--font); cursor: pointer; backdrop-filter: blur(6px); transition: background var(--motion), color var(--motion); }
.expand-image:hover { background: var(--ink); color: var(--bg); }
.company-contact .details { grid-template-columns: 95px minmax(0, 1fr); }
.company-contact .contact-link { display: inline-flex; align-items: center; gap: 6px; }
.company-result h2 { margin: 4px 0 10px; }
.company-result .details { margin-top: 16px; }

/* ============================================================ dialogs */
dialog { width: 100%; max-width: min(500px, calc(100vw - 32px)); padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface-2); color: var(--ink); box-shadow: 0 30px 100px rgb(0 0 0 / 60%); }
dialog::backdrop { background: rgb(0 0 0 / 70%); backdrop-filter: blur(4px); }
dialog[open] { animation: menu-in var(--motion) ease-out; }
dialog h2 { margin-bottom: 12px; }
.confirm-dialog .form-actions { margin-top: 22px; }
.confirm-box { max-width: 640px; margin: clamp(24px, 6vw, 72px) auto; padding: clamp(28px, 4vw, 44px); }
.confirm-box .confirm-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 24px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); }
.confirm-icon svg { width: 25px; height: 25px; }
.confirm-box h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 14px; }
.confirm-box .form-actions { margin-top: 28px; justify-content: flex-start; }
.image-dialog { max-width: min(1180px, calc(100vw - 32px)); padding: 18px; background: var(--surface); }
.lightbox-close { display: flex; margin: 0 0 12px auto; font-size: 25px; }
.lightbox-stage { position: relative; display: block; height: min(70vh, 780px); overflow: hidden; border-radius: 18px; background: var(--bg); }
.lightbox-stage img, .lightbox-stage svg { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.lightbox-footer { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.lightbox-caption { flex: 1; margin: 0; font-size: .875rem; overflow-wrap: anywhere; }
.lightbox-controls { display: flex; gap: 8px; }
.lightbox-controls[hidden] { display: none; }

/* ============================================================ tables */
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; border-radius: inherit; }
table.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th { padding: 15px 22px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 3%); color: var(--muted); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.table td { padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--motion); }
.table tbody tr:hover, .table tbody tr:focus-within { background: rgb(255 255 255 / 3%); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .muted { color: var(--muted); }
.table a { color: var(--ink); }
.cell-title { color: var(--ink); font-weight: 600; }
.table a.cell-title { text-decoration: none; }
.table a.cell-title:hover { color: var(--link); text-decoration: underline; }
.cell-sub { margin-top: 3px; color: var(--muted); font-size: .8125rem; }
.period-nav { gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.period-nav .btn { min-height: 40px; background: transparent; border-color: transparent; color: var(--muted); }
.period-nav .btn:hover { background: var(--surface-2); color: var(--ink); transform: none; }
.period-nav .btn[aria-current="page"], .period-nav .btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============================================================ charts: values always printed */
.chart-scroll { overflow-x: auto; }
.chart { width: 100%; min-width: 500px; }
.chart .bar { fill: #8fb4ea; }
.chart .bar-2 { fill: var(--warn); }
.chart .axis { stroke: var(--line-strong); }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 3 5; }
.chart text { font: 10px var(--font); fill: var(--muted); }
.chart text.value { fill: var(--ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; color: var(--ink-2); font-size: .8125rem; }
.legend .key { display: inline-flex; align-items: center; gap: 7px; }
.legend .swatch { width: 12px; height: 12px; border-radius: 3px; background: #8fb4ea; }
.legend .swatch-2 { background: var(--warn); background-image: repeating-linear-gradient(45deg, rgb(0 0 0 / 35%) 0 2px, transparent 2px 5px); }
.chart-data { margin-top: 16px; font-size: .875rem; }
.chart-data summary { display: flex; align-items: center; gap: 8px; min-height: 38px; color: var(--link); font-weight: 600; cursor: pointer; }
.chart-data summary::before { content: "+"; font-size: 1.125rem; }
.chart-data[open] summary::before { content: "\2212"; }
.chart-data .table-wrap { max-height: 320px; margin-top: 8px; overflow: auto; border: 1px solid var(--line); border-radius: 16px; }
.chart-data table { font-size: .8125rem; }
.chart-data td, .chart-data th { padding: 7px 14px; }

/* ============================================================ pagination and empty states */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination a, .pagination > span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 42px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .875rem; text-decoration: none; transition: background var(--motion), color var(--motion); }
.pagination a:hover { background: var(--ink); color: var(--bg); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pagination .disabled { color: #6f706b; background: transparent; border-color: transparent; }
.pagination .ellipsis { min-width: 20px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.pagination svg { width: 15px; height: 15px; }
.pagination-summary { margin: 12px 0 0; color: var(--muted); font-size: .8125rem; text-align: center; }
.empty { padding: clamp(44px, 7vw, 80px) 24px; text-align: center; color: var(--muted); }
.empty h1, .empty h2 { color: var(--ink); }
.empty h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.empty p { max-width: 46ch; margin: 0 auto 26px; }
.empty-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.empty-icon svg { width: 28px; height: 28px; }

/* ============================================================ footers */
.credit-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 var(--m); padding: 20px var(--pm) 22px; border-radius: 28px 28px 0 0; background: #000; color: #e4e4e0; font-size: .875rem; }
.credit-bar a { color: #e4e4e0; text-decoration: none; }
.credit-bar a:hover { text-decoration: underline; }
.credit-bar .build { color: #8d8e88; }

/* ============================================================ log in */
.page.login-page { padding: clamp(20px, 3vw, 44px) var(--m) clamp(40px, 5vw, 72px); }
.login-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); align-items: center; max-width: 1440px; margin: 0 auto; }
.login-copy { grid-column: 1 / span 6; min-width: 0; }
.login-copy h1 { margin: 0; max-width: 14ch; }
.login-copy .lead-s { max-width: 42ch; margin: 22px 0 0; color: var(--muted); font-size: 1.0625rem; }
.lform { display: grid; gap: 18px; max-width: 460px; margin-top: 34px; }
.lform .btn { justify-self: start; min-height: 52px; padding: 0 28px; }
.lform .alert { margin-bottom: 0; }
.login-pic { grid-column: 9 / -1; margin: 0; aspect-ratio: 5 / 6; background: var(--surface); }
.login-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); scale: 1; transition: scale 1.3s var(--ease); }
@keyframes arch-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.16); } to { transform: scale(1); } }
.js .login-pic.reveal { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: border-radius .9s var(--ease); }
.js .login-pic.reveal.in { animation: arch-rise 1.4s var(--ease) var(--d, 0ms) both; }
.login-pic.in img, html:not(.js) .login-pic img { transform: scale(1); }
.login-pic.in img { animation: settle 2.6s var(--ease) .1s both; }
.login-pic.in:hover img { scale: 1.06; }
.demo-accounts { max-width: 460px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.demo-accounts summary { display: flex; align-items: center; justify-content: space-between; min-height: 36px; color: var(--link); font-weight: 600; list-style: none; cursor: pointer; }
.demo-accounts summary::after { content: "+"; font-size: 1.25rem; font-weight: 400; }
.demo-accounts[open] summary::after { content: "\2212"; }
.demo-accounts p { margin: 8px 0; }
.demo-accounts table { width: 100%; margin-top: 6px; border-collapse: collapse; }
.demo-accounts td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.demo-accounts code { color: var(--ink); }

/* ============================================================ home: motion helpers */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; text-indent: 0; }
.split .w > span { display: inline-block; transform: translateY(112%); transition: transform .95s var(--ease) calc(var(--i, 0) * 55ms + var(--d, 0ms)); }
.js .reveal.split { opacity: 1; transform: none; }
.split.in .w > span { transform: none; }
@keyframes drift { from { translate: 0 -8px; } to { translate: 0 8px; } }
@keyframes lift { to { clip-path: inset(0 0 0 0); } }
@keyframes pop { from { opacity: 0; scale: .86; } }
@keyframes fadein { from { opacity: 0; } }
@keyframes imgin { from { opacity: 0; } }
img.pre-img { opacity: 0; }
img.ld { animation: imgin .9s ease; }
.sh, .big, .peek, .sat, .cost-pic, .fphoto, .ac, .login-pic, .cover-hero, .project-card a.cover { isolation: isolate; }

/* loading screen: home only, until every photograph on it is ready */
.boot { display: none; }
.js .boot { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 20px; background: var(--bg); font: 400 2.25rem/1 var(--display); letter-spacing: -.01em; transition: opacity .6s ease; }
.boot i { position: relative; display: block; width: min(260px, 64vw); height: 3px; overflow: hidden; border-radius: 3px; background: rgb(255 255 255 / 20%); }
.boot i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .12s linear; }
.boot .pct { color: var(--muted); font: 500 .875rem/1 var(--font); font-variant-numeric: tabular-nums; }
.boot .rm { max-width: 30ch; margin-top: 12px; line-height: 1.4; text-align: center; }
.boot.out { opacity: 0; pointer-events: none; }

/* ---- hero: one centred arch walking through real projects, the one before and after beside it */
.hero { position: relative; display: grid; align-content: center; min-height: 100svh; padding: clamp(88px, 12svh, 124px) var(--m) clamp(24px, 4svh, 48px); --h: min(64svh, 620px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; column-gap: clamp(20px, 4vw, 72px); }
.hero-l, .hero-r { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; height: var(--h); }
.hero h1 { margin: 0; max-width: 13ch; font-size: clamp(2.25rem, 1.1rem + 2.8vw, 3.75rem); line-height: 1.02; }
.hero .side { max-width: 24ch; margin: 0 0 0 auto; color: var(--muted); font-size: 1.125rem; line-height: 1.4; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.big { position: relative; display: block; width: calc(var(--h) * .8); height: var(--h); overflow: hidden; border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px; background: var(--surface); color: var(--ink); text-decoration: none; clip-path: inset(0 0 100% 0); animation: lift 1.1s var(--ease) .2s forwards; transition: border-radius .9s var(--ease); }
.big:hover, .big:focus-visible { border-radius: 28px; }
.big .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s linear; }
.big .slide.on { opacity: 1; transform: scale(1); }
.big:hover .slide.on { transform: scale(1.05); transition: opacity 1.4s ease, transform 1.4s var(--ease); }
.cap-h { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 64px 24px 22px; background: linear-gradient(to top, rgb(0 0 0 / 78%), rgb(0 0 0 / 0%)); font-size: .875rem; opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .6s var(--ease); }
.big:hover .cap-h, .big:focus-visible .cap-h { opacity: 1; transform: none; }
.cap-h b { display: block; font: 400 1.625rem/1.1 var(--display); }
.cap-h .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.cap-h .go svg { width: 18px; height: 18px; }
.dots { display: flex; align-items: center; }
.dot { display: flex; align-items: center; width: 30px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .5s var(--ease); }
.dot[aria-current="true"] { width: 68px; }
.dot .tr { position: relative; display: block; width: 100%; height: 6px; margin: 0 3px; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / 42%); transition: background var(--motion); }
.dot:hover .tr { background: rgb(255 255 255 / 64%); }
.dot .tr i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.dot[aria-current="true"] .tr { background: rgb(255 255 255 / 28%); }
.dot[aria-current="true"] .tr i { animation: fill var(--dur, 6000ms) linear forwards; }
.stage.paused .dot[aria-current="true"] .tr i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.peek { position: relative; display: block; padding: 0; overflow: hidden; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-radius .9s var(--ease), transform .5s var(--ease); animation: pop .9s var(--ease) .7s backwards, drift 7s ease-in-out .7s infinite alternate; }
.peek.l { align-self: flex-end; width: clamp(120px, calc(var(--h) * .34), 230px); aspect-ratio: 1; }
.peek.r { align-self: flex-start; width: clamp(110px, calc(var(--h) * .3), 210px); aspect-ratio: 3 / 4; animation-delay: .9s, -3s; }
.peek:hover, .peek:focus-visible { border-radius: 24px; transform: scale(1.06); animation-play-state: running, paused; }
.peek img, .sat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: brightness(.82); transition: opacity 1.1s ease, filter .4s ease, transform 1.2s var(--ease); }
.peek img.on, .sat img.on { opacity: 1; }
.peek:hover img, .sat:hover img, .sat:focus-visible img { filter: none; transform: scale(1.08); }
.plabel { position: absolute; left: 50%; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgb(0 0 0 / 68%); color: #fff; font-size: .8125rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, 8px); transition: opacity .3s, transform .4s var(--ease); }
.peek:hover .plabel, .peek:focus-visible .plabel, .sat:hover .plabel, .sat:focus-visible .plabel { opacity: 1; transform: translate(-50%, 0); }
.sat { position: absolute; display: block; overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-radius .9s var(--ease), transform .5s var(--ease); animation: pop .9s var(--ease) var(--pd, 1s) backwards, drift var(--dd, 8s) ease-in-out var(--pd, 1s) infinite alternate; }
.sat:hover, .sat:focus-visible { transform: scale(1.07); animation-play-state: running, paused; }
.sat.l2 { left: 0; top: 46%; width: clamp(96px, calc(var(--h) * .27), 170px); aspect-ratio: 4 / 5; border-radius: 28px; --pd: 1.1s; --dd: 9s; }
.sat.l2:hover, .sat.l2:focus-visible { border-radius: 50%; }
.sat.r2 { right: 0; top: 24%; width: clamp(80px, calc(var(--h) * .22), 150px); aspect-ratio: 1; border-radius: 50%; --pd: 1.3s; --dd: 7.5s; }
.sat.r2:hover, .sat.r2:focus-visible { border-radius: 28px; }
.sat.r3 { left: 22%; top: 50%; width: clamp(110px, calc(var(--h) * .3), 210px); aspect-ratio: 3 / 2; border-radius: 999px; --pd: 1.5s; --dd: 8.5s; }
.sat.r3:hover, .sat.r3:focus-visible { border-radius: 26px; }
.js .hero.pre .big { animation: none; }
.js .hero.pre .peek, .js .hero.pre .sat { animation: none; opacity: 0; }

/* ---- recent work: drag, step with the arrows or scroll sideways; scrolling down always reaches the page */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px); padding: 0 var(--m); }
.run-sec { margin-top: var(--sec); }
.run-side { grid-column: 1 / span 3; display: flex; flex-direction: column; min-height: 100%; padding-bottom: 28px; }
.run-side h2 { margin: 0 0 10px; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1.1; }
.run-side > a { width: fit-content; font-size: .9375rem; color: var(--ink); }
.run-ctl { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.rbtn { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgb(255 255 255 / 30%); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background var(--motion), color var(--motion), border-color var(--motion), transform .25s var(--ease), opacity var(--motion); }
.rbtn:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.rbtn:disabled { opacity: .3; cursor: default; }
.rbtn svg { width: 18px; height: 18px; }
.run-prog { position: relative; flex: 1; max-width: 120px; height: 2px; margin-left: 14px; overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / 22%); }
.run-prog i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(.3); transform-origin: left; transition: transform .3s ease; }
.run-notes { display: grid; gap: 18px; max-width: 26ch; margin-top: auto; color: var(--muted); font-size: .9375rem; }
.run-notes p { margin: 0; }
.run { --hs: clamp(250px, 44svh, 440px); --hl: clamp(340px, 62svh, 600px); grid-column: 4 / -1; display: flex; align-items: flex-end; gap: clamp(14px, 1.6vw, 24px); margin: 0 calc(-1 * var(--m)) 0 -44px; padding: 10px var(--m) 14px 44px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 44px); mask-image: linear-gradient(to right, transparent 0, #000 44px); }
.run::-webkit-scrollbar { display: none; }
.run.drag { cursor: grabbing; }
.run.drag a { pointer-events: none; }
.fr { flex: none; display: block; color: var(--ink); text-decoration: none; user-select: none; -webkit-user-select: none; }
.fr .im { height: var(--hs); background: var(--surface); transition: border-radius .9s var(--ease), transform .6s var(--ease); }
.fr.lift .im { height: var(--hl); }
.fr:hover .im, .fr.is-focus .im { transform: translateY(-6px); }
.fr img { width: auto; height: 100%; aspect-ratio: 1.5; object-fit: cover; -webkit-user-drag: none; transition: transform 1s var(--ease); }
.fr.r08 img { aspect-ratio: .8; }
.fr.r10 img { aspect-ratio: 1; }
.fr:hover img, .fr.is-focus img { transform: scale(1.04); }
.fr .cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: .9375rem; }
.fr .cap span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; transition: color var(--motion); }
.fr:hover .cap span:last-child, .fr.is-focus .cap span:last-child { color: var(--ink); }

/* ---- how it works: three equal steps, each picture with its words directly under it */
.how { margin-top: var(--sec); padding: 0 var(--m); }
.how-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(40px, 5vw, 72px); }
.how-head h2 { margin: 0; font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); line-height: 1; }
.how-head p { max-width: 32ch; margin: 0; color: var(--muted); font-size: 1.0625rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(20px, 3vw, 56px); }
.step:nth-child(2) { margin-top: clamp(28px, 4vw, 64px); }
.step figure { margin: 0; aspect-ratio: 4 / 5; background: var(--surface); }
.step .zoom { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.step figure:hover .zoom, .step figure.is-focus .zoom { transform: scale(1.05); }
.step .zoom img { width: 100%; height: 100%; object-fit: cover; }
.step .n { margin: 22px 0 6px; color: var(--muted); font-size: .875rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.step h3 { margin: 0 0 10px; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1.05; }
.step .t { max-width: 34ch; margin: 0; color: var(--ink-2); font-size: 1.0625rem; }

/* ---- what homes cost: one large picture that follows the row you point at */
.conc { margin: var(--sec) var(--m) 0; padding: clamp(48px, 6vw, 104px) var(--pm); border-radius: 40px; background: var(--deep); }
.conc .head2 { margin: 0; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem); line-height: 1; }
.cost { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; column-gap: clamp(12px, 1.6vw, 28px); margin-top: clamp(36px, 4.5vw, 72px); }
.cost-pic { position: relative; display: block; grid-column: 1 / span 5; aspect-ratio: 5 / 6; overflow: hidden; border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px; background: var(--surface); transition: border-radius .9s var(--ease); }
.cost-pic:hover, .cost-pic.is-focus { border-radius: 28px; }
.cost-pic img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.14); }
.cost-pic img.was { z-index: 1; clip-path: inset(0); transform: none; }
.cost-pic img.on { z-index: 2; clip-path: inset(0); transform: none; transition: clip-path 1.05s var(--ease), transform 1.7s var(--ease); }
html:not(.js) .cost-pic img:first-child { clip-path: none; transform: none; }
.cost-pic .tagc { position: absolute; left: 50%; bottom: 20px; z-index: 3; padding: 5px 14px; border-radius: 999px; background: rgb(0 0 0 / 66%); color: #fff; font-size: .875rem; font-weight: 600; white-space: nowrap; transform: translateX(-50%); }
.cost-list { grid-column: 7 / -1; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.cost-list li { border-top: 1px solid var(--line); }
.cost-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; padding: clamp(20px, 2.4vw, 32px) 0; color: var(--ink); text-decoration: none; transition: opacity .3s, padding-left .45s var(--ease); }
.cost-row:hover { color: var(--ink); }
.cost-row .t { grid-column: 1; grid-row: 1; font: 400 clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem)/1 var(--display); }
.cost-row .go { display: inline-block; margin-left: 10px; font: .6em var(--font); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); }
.cost-row .c { grid-column: 1; grid-row: 2; margin-top: 6px; color: var(--muted); font-size: .875rem; }
.cost-row .r { grid-column: 2; grid-row: 1 / span 2; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.cost-row.is-on { padding-left: 14px; }
.cost-row.is-on .go { opacity: 1; transform: none; }
.cost-list:hover .cost-row:not(:hover) { opacity: .5; }

/* ---- designers: three photographs that open like windows, then the invitation */
.designers { margin-top: var(--sec); }
.acc { display: flex; gap: 12px; height: clamp(300px, 54svh, 540px); padding: 0 var(--m); --aw: calc((100vw - 2 * var(--m) - 24px) * .64); }
.ac { position: relative; flex: 1 1 0; display: block; min-width: 0; overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; transition: flex-grow .8s var(--ease), border-radius .9s var(--ease); }
.ac:nth-child(1) { border-radius: 50% 50% 28px 28px / 34% 34% 28px 28px; }
.ac:nth-child(2) { border-radius: 999px; }
.ac:nth-child(3) { border-radius: 42% 28px 42% 28px / 42% 28px 42% 28px; }
.ac img { position: absolute; top: 0; left: 50%; width: var(--aw); max-width: none; height: 100%; object-fit: cover; filter: brightness(.82); transform: translateX(-50%); transition: filter .5s ease; }
.ac img.op-46 { object-position: 50% 46%; }
.ac:hover, .ac:focus-visible { flex-grow: 2.6; border-radius: 32px; }
.ac:hover img, .ac:focus-visible img, .ac.is-focus img { filter: none; }
.ac.is-focus { border-radius: 32px; }
.acc:has(.ac:hover) .ac:not(:hover), .acc:has(.ac:focus-visible) .ac:not(:focus-visible) { flex-grow: .75; }
.lab { position: absolute; left: 50%; bottom: 30px; width: max-content; max-width: calc(100% - 28px); padding: 8px 16px; border-radius: 18px; background: rgb(15 15 16 / 74%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: .875rem; font-weight: 600; line-height: 1.25; text-align: center; transform: translateX(-50%); }
.invite { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; margin: 12px var(--m) 0; overflow: hidden; border-radius: 40px; background: var(--field); }
.ftext { align-self: center; padding: clamp(36px, 5vw, 72px) var(--pm); }
.invite .st { max-width: 32ch; margin: 0; font: 400 clamp(1.75rem, 1.1rem + 1.9vw, 3.1rem)/1.08 var(--display); letter-spacing: -.005em; }
.invite .st a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; transition: text-decoration-color var(--motion); }
.invite .st a:hover { text-decoration-color: transparent; }
.invite .two { max-width: 46ch; margin: 24px 0 0; font-size: 1.0625rem; }
.fphoto { position: relative; display: block; min-height: clamp(300px, 34vw, 460px); overflow: hidden; border-radius: 999px 0 0 999px; background: var(--surface); transition: border-radius .9s var(--ease); }
.fphoto:hover, .fphoto:focus-visible, .fphoto.is-focus { border-radius: 40px 0 0 40px; }
.fphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 1.8s var(--ease); }
.fphoto img.on, html:not(.js) .fphoto img:first-child { opacity: 1; transform: none; }
.fphoto:hover img.on { transform: scale(1.04); }

/* ---- footer: the name across the last photograph, then the black credit bar */
.last { margin: 12px var(--m) 0; overflow: hidden; border-radius: 40px 40px 0 0; background: #000; color: var(--ink); }
.last-pic { position: relative; min-height: clamp(380px, 48svh, 520px); overflow: hidden; }
.last-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.last .top { position: relative; display: flex; justify-content: space-between; gap: 16px 32px; padding: 32px var(--pm) 0; font-size: 1.0625rem; }
.last .top div { display: grid; gap: 4px; max-width: 24ch; }
.last .top div:last-child { text-align: right; }
.last .top a { width: fit-content; color: var(--ink); text-decoration: none; }
.last .top div:last-child a { margin-left: auto; }
.last .top a:hover { text-decoration: underline; }
.last .name { position: absolute; left: 0; right: 0; bottom: 34px; margin: 0; font: 400 clamp(56px, 15vw, 290px)/.9 var(--display); letter-spacing: -.02em; text-align: center; white-space: nowrap; }
.last .legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 20px var(--pm) 22px; background: #000; color: #e4e4e0; font-size: .875rem; }
.last .legal a { color: #e4e4e0; text-decoration: none; }
.last .legal a:hover { text-decoration: underline; }
.last .legal .build { color: #8d8e88; }

/* ============================================================ responsive */
@media (max-width: 1339px) { .sat { display: none; } }
@media (max-width: 1100px) {
  .account-role { display: none; }
  .filter-panel { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 980px) {
  .grid-2, .grid-halves { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid > .project-card:nth-child(3n+2) { margin-top: 0; }
  .project-grid > .project-card:nth-child(2n) { margin-top: 56px; }
  .project-aside { position: static; }
  .hero { --h: min(56svh, 520px); padding-top: 100px; }
  .hero-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "h h" "s s" "pl pr" "t t"; row-gap: 28px; justify-items: center; }
  .hero-l, .hero-r { display: contents; }
  .hero h1 { grid-area: h; max-width: 16ch; text-align: center; }
  .stage { grid-area: s; }
  .peek.l { grid-area: pl; justify-self: end; align-self: center; margin-right: 10px; }
  .peek.r { grid-area: pr; justify-self: start; align-self: center; margin-left: 10px; }
  .hero .side { grid-area: t; max-width: 34ch; margin: 0 auto; text-align: center; }
  .run-side { grid-column: 1 / -1; min-height: 0; padding-bottom: 20px; }
  .run-notes { display: none; }
  .run { grid-column: 1 / -1; margin-left: calc(-1 * var(--m)); padding-left: var(--m); -webkit-mask-image: none; mask-image: none; }
  .cost-pic { grid-column: 1 / span 5; }
  .cost-list { grid-column: 6 / -1; }
  .login-copy { grid-column: 1 / span 7; }
  .login-pic { grid-column: 8 / -1; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step:nth-child(2) { margin-top: 0; }
  .step figure { aspect-ratio: 4 / 3; }
  .cost { display: block; }
  .cost-pic { aspect-ratio: 4 / 3; margin-bottom: 28px; }
  .cost-row { grid-template-columns: 1fr; }
  .cost-row .r { grid-column: 1; grid-row: 3; margin-top: 6px; }
  .acc { flex-direction: column; height: auto; }
  .ac { flex: none; height: 38svh; }
  .ac img { left: 0; width: 100%; transform: none; }
  .ac:hover, .ac:focus-visible { flex-grow: 0; }
  .acc:has(.ac:hover) .ac:not(:hover) { flex-grow: 0; }
  .invite { grid-template-columns: 1fr; }
  .fphoto { min-height: 300px; border-radius: 999px 999px 0 0; }
  .fphoto:hover, .fphoto:focus-visible, .fphoto.is-focus { border-radius: 40px 40px 0 0; }
  .login-copy { grid-column: 1 / -1; }
  .login-pic { grid-column: 1 / -1; margin-top: 32px; aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .container { padding: 28px var(--m) 52px; }
  .topbar-inner { flex-wrap: wrap; gap: 4px 16px; min-height: 0; padding: 12px var(--m) 0; }
  .account { margin-left: auto; }
  .account-name { display: none; }
  .account-panel { top: calc(100% + 4px); }
  .nav { order: 3; flex-basis: 100%; gap: 20px; padding-bottom: 2px; }
  .nav a { font-size: .875rem; }
  .site-bar { flex-wrap: wrap; padding: 14px var(--m); }
  .site-bar nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .site-bar nav .nl, .site-bar nav .nr { display: flex; gap: 22px; }
  .site-bar .btn { margin-left: auto; }
  .page-header { gap: 16px; }
  .page-header > div:first-child { flex-basis: 100%; }
  .filters form { gap: 12px; }
  .filters .field, .filters .field:first-child, .filters .btn { flex: 1 1 100%; }
  .search-row { flex-wrap: wrap; gap: 10px; }
  .search-row .keyword-field { flex: 1 1 100%; }
  .search-row .keyword-field > label { display: none; }
  .search-row .btn { flex: 1; }
  .filter-toggle:not([hidden]) { display: inline-flex; }
  .filter-panel { grid-template-columns: 1fr; gap: 18px; margin-top: 16px; }
  .filters-enhanced .filter-panel:not(.is-open) { display: none; }
  .mobile-filter-actions { display: flex; justify-content: space-between; gap: 12px; }
  .results-toolbar { flex-wrap: wrap; gap: 12px; }
  .results-toolbar .result-count span { display: none; }
  .sort-field { display: block; width: 170px; }
  .sort-field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .grid, .project-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-grid > .project-card:nth-child(n) { margin-top: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .form .form-actions { justify-content: stretch; }
  .form .form-actions .btn { flex: 1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 18px; }
  .stat-mark { right: 14px; top: 18px; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 12px; }
  .company-contact .details { grid-template-columns: 1fr; }
  .table th { padding: 13px 16px; }
  .table td { padding: 14px 16px; }
  .pagination { gap: 4px; }
  .pagination a, .pagination > span { min-width: 38px; padding: 8px 10px; }
  .pagination .page-direction span { display: none; }
  .lightbox-stage { height: 55vh; }
  .lightbox-footer { flex-wrap: wrap; gap: 10px; }
  .lightbox-caption { flex-basis: 100%; }
  .credit-bar { padding: 18px var(--pm) 72px; }
  .hero { --h: min(50svh, 420px); padding-top: 138px; }
  .run-side { align-items: center; text-align: center; }
  .run-ctl { flex-wrap: wrap; justify-content: center; }
  .run-prog { flex-basis: 100%; max-width: 140px; margin: 16px auto 0; }
  .run { --hs: 66vw; --hl: 66vw; margin: 0 calc(-1 * var(--m)); padding-left: 9vw; padding-right: 9vw; scroll-padding-left: 9vw; scroll-snap-type: x mandatory; }
  .fr { scroll-snap-align: start; }
  .fr .im { min-height: 150px; }
  .conc .head2 { font-size: 9.5vw; }
  .last-pic { display: flex; flex-direction: column; min-height: 66svh; }
  .last .name { position: relative; bottom: auto; margin: auto 0 28px; font-size: 19vw; }
  .last .legal { padding: 18px var(--pm) 72px; }
  .last .top { gap: 16px; }
}
/* a phone has no hover: captions stay visible, taps give feedback, and the picture in view takes the hover look */
@media (hover: none), (max-width: 720px) {
  .cap-h { opacity: 1; transform: none; }
  .plabel { opacity: 1; transform: translate(-50%, 0); }
  .fr:active .im, .ac:active, .cost-row:active, .peek:active, .fphoto:active { transform: scale(.98); }
}

/* ============================================================ motion preferences and page transitions */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes heart-in { 50% { transform: scale(1.2); } }
@keyframes designarena-page-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes designarena-login-reveal { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .topbar { view-transition-name: navigation; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: ease-out; }
  ::view-transition-old(navigation), ::view-transition-new(navigation) { animation: none; }
  .js.page-arriving #main { animation: designarena-page-enter 260ms ease-out both; }
  html.login-arrival::view-transition-new(root) { animation: designarena-login-reveal 360ms ease-out both; }
  .js.login-arrival.page-arriving #main { animation: designarena-login-reveal 360ms ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  /* movement is replaced by gentle fades; nothing jumps */
  .peek, .sat { animation: fadein .9s ease .3s backwards; }
  .js .hero.pre .peek, .js .hero.pre .sat { animation: none; opacity: 0; }
  .big { clip-path: none; animation: fadein .9s ease .1s backwards; }
  .js .hero.pre .big { animation: none; opacity: 0; }
  .big .slide { transition: opacity .5s ease; transform: none; }
  .dot[aria-current="true"] .tr i { animation: none; transform: scaleX(1); }
  .split .w > span { opacity: 0; transform: none; transition: opacity .6s ease calc(var(--i, 0) * 40ms + var(--d, 0ms)); }
  .split.in .w > span { opacity: 1; }
  .js .reveal { transform: none; transition: opacity .6s ease var(--d, 0ms); }
  img.ld { animation-duration: .5s; }
  .sh, .project-card a.cover, .ac, .cost-pic, .fr .im, .sat, .fphoto, .cover-hero, .btn, a.card { transition: none; }
  .fr img, .project-card a.cover img, .step .zoom, .ac img { transition: none; }
  .project-card:hover a.cover img, .project-card:hover a.cover svg, .fr:hover img, .step figure:hover .zoom { transform: none; }
  .fphoto img { transition: opacity .5s ease; transform: none; }
  .cost-pic img, .cost-pic img.on, .cost-pic img.was { clip-path: none; transform: none; opacity: 0; transition: opacity .5s ease; }
  .cost-pic img.on { opacity: 1; z-index: 2; }
  .cost-pic img.was { opacity: 0; }
  .js .login-pic.reveal { clip-path: none; opacity: 0; }
  .js .login-pic.reveal.in { opacity: 1; animation: fadein .8s ease var(--d, 0ms) both; }
  .login-pic img, .login-pic.in img { transform: none; animation: none; }
  .login-pic.in:hover img { scale: 1; }
}
/* motion is an enhancement: without scripting everything is static and visible */
html:not(.js) *, html:not(.js) *::before, html:not(.js) *::after { animation: none !important; transition: none !important; }
html:not(.js) .big { clip-path: none; }
html:not(.js) .big .slide:first-child, html:not(.js) .peek img:first-child, html:not(.js) .sat img:first-child { opacity: 1; }
@media print {
  .topbar, .site-bar, .credit-bar, .last, .filter-toggle, .expand-image, .password-toggle, .alert-dismiss { display: none !important; }
  body { background: #fff; color: #000; }
  .container { max-width: none; padding: 0; }
  .chart { min-width: 0; }
}
