:root {
  --ink: #17231d;
  --deep: #0e1c15;
  --green: #214737;
  --moss: #657c5e;
  --amber: #d39a4d;
  --paper: #f5f0e5;
  --paper-2: #fbf8f1;
  --line: rgba(23, 35, 29, .15);
  --muted: #657068;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 10; top: -4rem; left: 1rem; padding: .7rem 1rem; color: #fff; background: var(--deep); }
.skip-link:focus { top: 1rem; }

.portal-shell { width: min(1240px, calc(100% - 2.5rem)); margin: 0 auto; }
.portal-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.portal-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.portal-brand img { width: 42px; height: 42px; object-fit: contain; }
.auth-page .portal-brand img { padding: .42rem; border-radius: 50%; background: var(--green); box-sizing: content-box; }
.portal-brand strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.portal-brand small { display: block; color: var(--muted); font-size: .67rem; letter-spacing: .09em; text-transform: uppercase; }
.portal-actions { display: flex; align-items: center; gap: .65rem; }
.language-switcher { display: inline-flex; gap: .2rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; }
.language-switcher button, .quiet-button { border: 0; border-radius: 999px; padding: .45rem .65rem; color: var(--muted); background: transparent; cursor: pointer; font-size: .7rem; font-weight: 700; letter-spacing: .05em; }
.language-switcher button.is-active { color: var(--paper-2); background: var(--green); }
.quiet-button { border: 1px solid var(--line); border-radius: 4px; font-weight: 600; letter-spacing: 0; }
.quiet-button:hover, .quiet-button:focus-visible { color: var(--green); border-color: var(--green); }

.auth-page { min-height: 100svh; background: radial-gradient(circle at 80% 10%, rgba(211,154,77,.22), transparent 30rem), var(--paper); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(20rem, .8fr); align-items: start; gap: clamp(2.5rem, 7vw, 7rem); min-height: calc(100svh - 76px); padding: 3rem 0 5rem; }
.auth-image { position: sticky; top: 1.5rem; align-self: start; overflow: hidden; border-radius: 1.5rem; box-shadow: 0 24px 70px rgba(14,28,21,.16); }
.auth-image img { display: block; width: 100%; min-height: clamp(24rem, 42vw, 39rem); aspect-ratio: 4 / 3; object-fit: cover; }
.eyebrow { margin: 0 0 .75rem; color: var(--moss); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.auth-copy h1 { max-width: 12ch; margin: 0 0 1.1rem; color: var(--deep); font-family: var(--serif); font-size: clamp(3rem, 7vw, 6.6rem); font-weight: 400; letter-spacing: -.055em; line-height: .9; }
.auth-copy > p:not(.eyebrow) { max-width: 34rem; color: #4f5d54; font-size: 1.05rem; line-height: 1.65; }
.auth-card { max-width: 30rem; margin-top: 2rem; padding: 1.4rem; background: rgba(255,255,255,.52); border: 1px solid var(--line); border-radius: .75rem; }
.auth-card h2 { margin: 0 0 .45rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; }
.auth-card p { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.password-field { position: relative; }
.password-field input { padding-right: 3rem; }
.password-toggle { position: absolute; right: .55rem; bottom: .45rem; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { background: rgba(25, 53, 45, .08); color: var(--deep); }
.password-toggle svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.form-stack { display: grid; gap: .9rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .04em; }
.field input, .field select, .field textarea { width: 100%; min-height: 2.8rem; padding: .7rem .75rem; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: .35rem; outline: none; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(33,71,55,.12); }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .75rem 1rem; color: var(--paper-2); background: var(--green); border: 1px solid var(--green); border-radius: .35rem; cursor: pointer; font-weight: 800; }
.primary-button:hover, .primary-button:focus-visible { background: var(--deep); }
.text-button { padding: .2rem 0; color: var(--green); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.form-message { min-height: 1.3rem; margin: .7rem 0 0; color: #8d3f2d; font-size: .82rem; line-height: 1.45; }
.form-message.is-success { color: #286144; }

.portal-page { min-height: 100svh; background: var(--paper); }
.portal-header { padding: 0 0 2rem; background: var(--deep); color: var(--paper-2); }
.portal-header .portal-topbar { border-bottom: 1px solid rgba(255,255,255,.14); }
.portal-header .portal-brand strong { color: var(--paper-2); }
.portal-header .portal-brand small, .portal-header .quiet-button, .portal-header .language-switcher button { color: rgba(255,255,255,.68); }
.portal-header .quiet-button { border-color: rgba(255,255,255,.25); }
.portal-header .language-switcher { border-color: rgba(255,255,255,.25); }
.portal-header .language-switcher button.is-active { color: var(--deep); background: var(--paper-2); }
.portal-hero-shell { position: relative; overflow: hidden; isolation: isolate; background: var(--deep); }
.portal-hero-shell::before { content: ''; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(90deg, rgba(14,28,21,.93) 0%, rgba(14,28,21,.72) 42%, rgba(14,28,21,.3) 100%), var(--project-hero-image); background-position: center; background-size: cover; opacity: .95; }
.portal-hero-shell::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(14,28,21,.1), rgba(14,28,21,.58)); pointer-events: none; }
.portal-hero { display: grid; grid-template-columns: 1fr .7fr; gap: 2rem; align-items: end; padding: clamp(3.5rem, 8vw, 7rem) 0 3rem; }
.portal-hero h1 { max-width: 12ch; margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 7.2rem); font-weight: 400; letter-spacing: -.06em; line-height: .88; }
.portal-hero-lede { max-width: 38rem; margin: 0; color: rgba(255,255,255,.7); font-size: 1.1rem; line-height: 1.6; }
.portal-welcome { max-width: 35rem; margin-bottom: 1.35rem; }
.welcome-greeting { margin: 0 0 .45rem; color: var(--amber); font-family: var(--serif); font-size: clamp(1.4rem, 2.5vw, 2rem); }
.welcome-copy { max-width: 34rem; margin: 0; color: rgba(255,255,255,.82); font-size: .96rem; line-height: 1.55; }
.portal-project-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.portal-project-meta div { padding: .9rem; border: 1px solid rgba(255,255,255,.15); border-radius: .5rem; }
.portal-project-meta span { display: block; margin-bottom: .25rem; color: rgba(255,255,255,.5); font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; }
.portal-project-meta strong { font-size: .88rem; font-weight: 600; }
.portal-main { padding: 2.5rem 0 6rem; }
.project-jump-nav { position: relative; z-index: 2; display: grid; gap: 1rem; padding: 1rem 0 1.25rem; }
.jump-nav-intro { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.jump-nav-intro strong { color: var(--green); font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.jump-nav-intro small { color: var(--muted); font-size: .78rem; }
.jump-nav-links { display: flex; gap: .55rem; overflow-x: auto; padding: .1rem .1rem .55rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.jump-nav-links a { display: grid; grid-template-columns: auto minmax(8rem, 1fr); gap: .08rem .55rem; flex: 0 0 min(13rem, 70vw); padding: .75rem .8rem; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: .45rem; text-decoration: none; scroll-snap-align: start; }
.jump-nav-links a:hover, .jump-nav-links a:focus-visible { border-color: var(--amber); background: #fcf6ea; }
.jump-nav-links a > span { grid-row: span 2; color: var(--amber); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.jump-nav-links strong { font-size: .78rem; }
.jump-nav-links small { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.project-brief-prompt { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: clamp(1.15rem, 3vw, 1.75rem); margin: 0 0 1rem; color: var(--paper-2); background: linear-gradient(115deg, var(--green), #315a43); border-radius: .75rem; box-shadow: 0 12px 30px rgba(14,28,21,.12); }
.project-brief-prompt .eyebrow { margin-bottom: .35rem; color: var(--amber); }
.project-brief-prompt h2 { margin: 0 0 .4rem; color: var(--paper-2); font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.45rem); font-weight: 400; letter-spacing: -.04em; }
.project-brief-prompt p:not(.eyebrow) { max-width: 38rem; margin: 0; color: rgba(255,255,255,.72); line-height: 1.5; }
.project-brief-prompt .primary-button { flex: 0 0 auto; color: var(--deep); background: var(--paper-2); border-color: var(--paper-2); white-space: nowrap; }
.project-brief-prompt .primary-button:hover, .project-brief-prompt .primary-button:focus-visible { color: var(--paper-2); background: var(--deep); border-color: var(--deep); }
.project-brief-card .primary-button { margin-top: .45rem; }
.brief-dialog { width: min(960px, calc(100% - 2rem)); max-width: none; max-height: calc(100svh - 2rem); padding: 0; color: var(--ink); background: var(--paper-2); border: 1px solid rgba(23,35,29,.2); border-radius: .8rem; box-shadow: 0 28px 80px rgba(14,28,21,.3); }
.brief-dialog::backdrop { background: rgba(14,28,21,.68); backdrop-filter: blur(3px); }
.brief-dialog-inner { max-height: calc(100svh - 2rem); overflow: auto; padding: clamp(1.15rem, 3vw, 2rem); }
.brief-dialog-header { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.brief-dialog-header h2 { margin: 0 0 .5rem; color: var(--deep); font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; letter-spacing: -.05em; }
.brief-dialog-header p:not(.eyebrow) { max-width: 45rem; margin: 0; color: var(--muted); line-height: 1.6; }
.brief-dialog-close { flex: 0 0 auto; white-space: nowrap; }
.brief-dialog #intake-form { display: grid; gap: .9rem; }
.brief-dialog #intake-form h3 { margin-top: 1.3rem; }
.brief-form-section { padding: .85rem 0; border-top: 1px solid var(--line); }
.brief-form-section summary { color: var(--green); cursor: pointer; font-size: .9rem; font-weight: 800; letter-spacing: .06em; list-style-position: outside; text-transform: uppercase; }
.brief-form-section summary::marker { color: var(--amber); }
.brief-form-section[open] summary { margin-bottom: .9rem; }
.brief-form-section > .field + .field { margin-top: .9rem; }
.brief-dialog #intake-form > .primary-button { margin-top: .5rem; }
.brief-upload-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .8rem; align-items: end; padding: 1rem; margin-top: 1.5rem; background: #eef2e9; border: 1px solid rgba(33,71,55,.16); border-radius: .55rem; }
.brief-upload-panel h3 { margin: 0 0 .25rem; color: var(--green); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.brief-upload-panel p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.brief-upload-input { position: relative; display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; }
.brief-upload-input input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.brief-upload-input:focus-within { color: var(--green); border-color: var(--green); box-shadow: 0 0 0 3px rgba(33,71,55,.12); }
.brief-upload-panel .form-message { grid-column: 1 / -1; margin: 0; }
.portal-section[id] { scroll-margin-top: 1rem; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 1rem; align-items: start; }
.portal-section { padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper-2); border: 1px solid var(--line); border-radius: .75rem; }
.portal-section + .portal-section { margin-top: 1rem; }
.portal-section h2 { margin: 0 0 .7rem; color: var(--deep); font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; letter-spacing: -.04em; }
.portal-section h3 { margin: 1.25rem 0 .5rem; color: var(--green); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.portal-section p { color: #4f5d54; line-height: 1.65; }
.muted { color: var(--muted); font-size: .86rem; line-height: 1.55; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .6rem; margin-top: 1.3rem; }
.summary-card { padding: .85rem; background: var(--paper); border: 1px solid var(--line); border-radius: .45rem; }
.summary-card span { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.summary-card strong { font-size: .92rem; font-weight: 700; }
.phase-card { padding: 1.15rem; color: var(--paper-2); background: var(--green); border-radius: .55rem; }
.phase-card .eyebrow { color: var(--amber); }
.phase-card h3 { margin: 0 0 .45rem; color: var(--paper-2); font-family: var(--serif); font-size: 1.8rem; font-weight: 400; letter-spacing: -.03em; text-transform: none; }
.phase-card p { margin: 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.progress-track { height: .45rem; margin: 1rem 0 .45rem; overflow: hidden; background: rgba(255,255,255,.18); border-radius: 999px; }
.progress-track span { display: block; height: 100%; background: var(--amber); border-radius: inherit; }
.progress-label { display: flex; justify-content: space-between; color: rgba(255,255,255,.66); font-size: .72rem; }
.timeline { display: grid; gap: .55rem; margin-top: 1.25rem; }
.timeline-item { display: grid; grid-template-columns: 2.7rem minmax(0,1fr) auto; gap: .7rem; align-items: center; padding: .8rem; border: 1px solid var(--line); border-radius: .45rem; }
.timeline-item.is-current { border-color: var(--amber); background: #fcf6ea; }
.timeline-number { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--paper-2); background: var(--moss); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.timeline-item.is-current .timeline-number { color: var(--deep); background: var(--amber); }
.timeline-item strong { display: block; font-size: .88rem; }
.timeline-item small { color: var(--muted); font-size: .72rem; }
.phase-deliverables { display: flex; flex-wrap: wrap; gap: .3rem .5rem; padding: 0; margin: .55rem 0 0; list-style: none; }
.phase-deliverables li { color: var(--green); font-size: .68rem; line-height: 1.35; }
.phase-deliverables li::before { content: '·'; margin-right: .25rem; color: var(--amber); }
.status-pill { display: inline-flex; padding: .3rem .5rem; color: var(--green); background: #e7efe5; border-radius: 999px; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.status-pill.is-open { color: #86511a; background: #faedcf; }
.concept-gallery { display: grid; grid-template-columns: 1fr; gap: .7rem; margin-top: 1.2rem; }
.concept-gallery figure { margin: 0; overflow: hidden; background: var(--paper); border-radius: .5rem; }
.concept-gallery img { display: block; width: 100%; height: auto; object-fit: contain; }
.concept-gallery figure:first-child { grid-row: auto; }
.concept-gallery figcaption { padding: .65rem .75rem .8rem; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.visual-layer { padding: 0; overflow: hidden; background: var(--deep); border-color: rgba(255,255,255,.08); }
.visual-layer-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; padding: clamp(1.25rem, 3vw, 2rem); color: var(--paper-2); }
.visual-layer-heading .eyebrow { color: var(--amber); }
.visual-layer-heading h2 { margin-bottom: .45rem; color: var(--paper-2); }
.visual-layer-heading p:not(.eyebrow) { max-width: 34rem; margin: 0; color: rgba(255,255,255,.68); }
.visual-stamp { align-self: start; padding: .35rem .5rem; color: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.2); font-size: .62rem; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
.visual-layer figure { margin: 0; background: var(--paper); }
.visual-layer img { display: block; width: 100%; height: auto; }
.visual-layer figcaption { padding: .7rem .9rem .85rem; color: var(--muted); background: var(--paper-2); font-size: .72rem; letter-spacing: .04em; }
.visual-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; padding: .7rem; background: rgba(255,255,255,.06); }
.list-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
.plain-list { display: grid; gap: .45rem; padding: 0; margin: .75rem 0 0; list-style: none; }
.plain-list li { position: relative; padding-left: 1.1rem; color: #4f5d54; font-size: .88rem; line-height: 1.45; }
.plain-list li::before { content: '·'; position: absolute; left: .25rem; color: var(--amber); font-size: 1.3rem; line-height: 1; }
.document-list, .message-list, .update-list { display: grid; gap: .55rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.document-list li, .message-list li, .update-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: .4rem; }
.document-list strong, .message-list strong, .update-list strong { display: block; font-size: .83rem; }
.document-list small, .message-list small, .update-list small { display: block; margin-top: .2rem; color: var(--muted); font-size: .71rem; line-height: 1.4; }
.decision-card { padding: 1rem; margin-top: .8rem; background: #fcf6ea; border: 1px solid rgba(211,154,77,.45); border-radius: .5rem; }
.decision-card h3 { margin-top: 0; color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 1rem; }
.decision-card p { margin: .35rem 0; font-size: .86rem; }
.two-column-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.two-column-form .field-full { grid-column: 1 / -1; }
.check-group { display: grid; gap: .45rem; padding: 0; margin: 0; border: 0; }
.check-row { display: flex; gap: .55rem; align-items: flex-start; color: #4f5d54; font-size: .83rem; line-height: 1.45; }
.check-row input { margin-top: .22rem; accent-color: var(--green); }
.actions-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.admin-note { padding: .9rem; color: #5c411e; background: #fbefd7; border: 1px solid #e4c98f; border-radius: .45rem; font-size: .82rem; line-height: 1.5; }
.footer-note { margin-top: 2rem; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.budget-download { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 4; }
.budget-download a { display: inline-flex; align-items: center; padding: .65rem .85rem; color: var(--paper-2); background: var(--deep); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; box-shadow: 0 8px 24px rgba(14,28,21,.18); font-size: .72rem; font-weight: 700; text-decoration: none; }
.budget-download a:hover, .budget-download a:focus-visible { background: var(--green); }
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 5; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.65rem; padding: .6rem .8rem; color: var(--paper-2); background: var(--green); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; box-shadow: 0 8px 24px rgba(14,28,21,.18); cursor: pointer; font-size: .72rem; font-weight: 800; }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--deep); }

@media (max-width: 900px) {
  .auth-layout, .portal-hero, .portal-grid { grid-template-columns: 1fr; }
  .auth-copy { order: -1; }
  .auth-image { position: static; max-width: 48rem; }
  .portal-hero { gap: 1.5rem; }
  .portal-hero-shell::before { background-image: linear-gradient(180deg, rgba(14,28,21,.78), rgba(14,28,21,.68)), var(--project-hero-image); }
  .portal-project-meta { max-width: 40rem; }
}

@media (max-width: 620px) {
  .portal-shell { width: min(100% - 1.2rem, 1240px); }
  .portal-topbar { align-items: flex-start; }
  .portal-brand img { width: 34px; height: 34px; }
  .portal-brand strong { font-size: 1rem; }
  .portal-brand small { font-size: .55rem; }
  .portal-actions { flex-wrap: wrap; justify-content: flex-end; }
  .auth-layout { min-height: auto; padding: 2rem 0 4rem; }
  .auth-copy h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .portal-hero { padding-top: 3rem; }
  .portal-hero h1 { font-size: clamp(3.5rem, 17vw, 6rem); }
  .project-brief-prompt { align-items: stretch; flex-direction: column; }
  .project-brief-prompt .primary-button { width: 100%; }
  .brief-dialog-header { flex-direction: column; }
  .brief-dialog-close { align-self: flex-end; }
  .brief-upload-panel { grid-template-columns: 1fr; align-items: stretch; }
  .brief-upload-panel .primary-button, .brief-upload-input { width: 100%; }
  .jump-nav-intro { align-items: start; flex-direction: column; gap: .25rem; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-columns, .concept-gallery, .two-column-form { grid-template-columns: 1fr; }
  .visual-layer-heading { align-items: start; flex-direction: column; }
  .visual-support-grid { grid-template-columns: 1fr; }
  .concept-gallery figure:first-child { grid-row: auto; }
  .concept-gallery img { min-height: auto; max-height: 22rem; }
  .timeline-item { grid-template-columns: 2.2rem minmax(0,1fr); }
  .timeline-item .status-pill { grid-column: 2; justify-self: start; }
  .document-list li, .message-list li, .update-list li { flex-direction: column; }
  .budget-download { right: .7rem; bottom: .7rem; }
  .back-to-top { right: .7rem; bottom: 4.3rem; }
}

/* Spacious project view: fewer containers, clearer hierarchy, calmer reading rhythm. */
.portal-main { padding: 4.5rem 0 8rem; }
.portal-grid { grid-template-columns: 1fr; gap: 0; }
.portal-grid > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.portal-section { padding: clamp(3rem, 7vw, 6rem) 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.portal-section + .portal-section { margin-top: 0; }
.project-jump-nav { padding: 1.5rem 0 1.75rem; border-bottom: 1px solid var(--line); }
.jump-nav-links a { flex-basis: min(12rem, 65vw); padding: .55rem .1rem; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.jump-nav-links a:hover, .jump-nav-links a:focus-visible { border-color: var(--amber); background: transparent; }
.project-brief-prompt { padding: 2.2rem 0; margin: 0; color: var(--ink); background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.project-brief-prompt .eyebrow { color: var(--moss); }
.project-brief-prompt h2 { color: var(--deep); }
.project-brief-prompt p:not(.eyebrow) { color: var(--muted); }
.project-brief-prompt .primary-button { color: var(--paper-2); background: var(--green); border-color: var(--green); }
.project-brief-prompt .primary-button:hover, .project-brief-prompt .primary-button:focus-visible { color: var(--paper-2); background: var(--deep); border-color: var(--deep); }
.portal-project-meta div { padding: .8rem 0; border: 0; border-top: 1px solid rgba(255,255,255,.2); border-radius: 0; }
.summary-card { padding: .85rem 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.timeline-item { padding: 1.05rem 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.timeline-item.is-current { border-color: var(--amber); background: linear-gradient(90deg, rgba(252,246,234,.8), transparent); }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.section-status { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.design-gallery { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr); gap: 1.25rem; margin-top: 2rem; }
.design-gallery figure { margin: 0; background: var(--paper-2); border: 1px solid var(--line); }
.design-gallery-main { grid-row: span 2; }
.design-gallery img { display: block; width: 100%; height: auto; object-fit: contain; background: #e7e5db; }
.design-gallery figcaption { display: flex; justify-content: space-between; gap: .75rem; padding: .75rem .9rem; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.design-gallery figcaption strong { color: var(--ink); font-weight: 700; }
.section-note { padding-top: 1rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.section-note summary { display: flex; justify-content: space-between; gap: 1rem; color: var(--green); cursor: pointer; font-size: .78rem; font-weight: 700; list-style: none; }
.section-note summary::-webkit-details-marker { display: none; }
.section-note summary::after { content: '+'; color: var(--amber); }
.section-note[open] summary::after { content: '⌃'; }
.section-note-count { color: var(--amber); }
.section-note-current { max-width: 45rem; margin: .75rem 0; color: var(--muted); font-size: .84rem; }
.remark-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: start; margin-top: .8rem; }
.remark-form textarea { width: 100%; min-height: 3rem; padding: .7rem; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); resize: vertical; }
.remark-form .form-message { grid-column: 1 / -1; margin: 0; }
.communication-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .5rem; }
.communication-grid .field { gap: .35rem; }
.free-share-field { gap: .5rem; }
.field-hint { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.empty-state { padding: .75rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.budget-download { display: none !important; }
.back-to-top { left: 1.25rem; right: auto; }
.back-to-top { opacity: 0; transform: translateY(.5rem); pointer-events: none; transition: opacity .2s ease, transform .2s ease, background .2s ease; }
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.portal-footer { padding: 2rem 0 2.75rem; color: var(--muted); background: var(--paper-2); border-top: 1px solid var(--line); }
.portal-footer strong { color: var(--green); font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.portal-footer p { margin: .35rem 0 0; font-size: .76rem; line-height: 1.5; }
.portal-footer .portal-home-link { display: inline-flex; margin-top: .8rem; color: var(--green); font-size: .8rem; font-weight: 700; text-underline-offset: .18em; }

@media (max-width: 620px) {
  .portal-grid > aside { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; gap: .5rem; }
  .design-gallery { grid-template-columns: 1fr; }
  .design-gallery-main { grid-row: auto; }
  .remark-form { grid-template-columns: 1fr; }
  .remark-form .quiet-button { width: 100%; }
  .communication-grid { grid-template-columns: 1fr; }
  .back-to-top { left: .7rem; right: auto; bottom: .7rem; }
}

/* Client view refinements: a lighter sketch-led hero and full-width progress/design work areas. */
.portal-page .portal-brand img { padding: .42rem; border-radius: 50%; background: var(--green); box-sizing: content-box; }
.portal-hero-shell::before { background-image: linear-gradient(90deg, rgba(14,28,21,.72) 0%, rgba(14,28,21,.42) 46%, rgba(14,28,21,.12) 100%), var(--project-hero-image); opacity: .96; }
.portal-hero-shell::after { background: linear-gradient(180deg, rgba(14,28,21,.03), rgba(14,28,21,.24)); }
.portal-hero-lede { color: rgba(255,255,255,.84); }
.route-section, .design-section { width: 100%; max-width: none; }
.route-section .phase-card { width: 100%; max-width: none; }
.design-section .design-slideshow { max-width: none; }
.design-section .design-slide img { max-height: min(70vw, 52rem); }

/* Supplier references stay in one calm horizontal strip with explicit controls. */
.supplier-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; margin-top: 1.5rem; }
.supplier-reference-grid { display: flex; gap: .8rem; min-width: 0; overflow-x: auto; padding: .1rem .1rem .7rem; margin-top: 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.supplier-reference-card { flex: 0 0 min(17rem, 30vw); scroll-snap-align: start; }
.supplier-reference-card img { height: 10rem; }
.supplier-carousel-button { width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%; }

@media (max-width: 620px) {
  .supplier-carousel { grid-template-columns: auto minmax(0, 1fr) auto; gap: .35rem; }
  .supplier-reference-card { flex-basis: min(16rem, 76vw); }
  .supplier-reference-card img { height: auto; max-height: 14rem; object-fit: contain; }
}

/* The design direction is an open conversation: one calm, accessible slideshow rather than a dense gallery. */
.design-slideshow { max-width: 64rem; margin-top: 2rem; }
.design-slides { position: relative; overflow: hidden; background: #e7e5db; border: 1px solid var(--line); }
.design-slide { display: none; margin: 0; }
.design-slide.is-active { display: block; }
.design-slide img { display: block; width: 100%; height: auto; max-height: min(62vw, 40rem); object-fit: contain; background: #e7e5db; }
.design-slide figcaption { display: flex; justify-content: space-between; gap: .8rem; padding: .8rem 1rem; color: var(--muted); background: var(--paper-2); font-size: .75rem; line-height: 1.4; }
.design-slide figcaption strong { color: var(--ink); font-weight: 700; }
.design-slide-controls { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding-top: .8rem; }
.design-slide-controls button[disabled] { opacity: .45; cursor: not-allowed; }
.design-slide-counter { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.design-slide-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .8rem; }
.design-slide-dot { width: .58rem; height: .58rem; padding: 0; background: transparent; border: 1px solid var(--moss); border-radius: 50%; cursor: pointer; }
.design-slide-dot:hover, .design-slide-dot:focus-visible { border-color: var(--amber); }
.design-slide-dot.is-active { background: var(--amber); border-color: var(--amber); }
.design-preference-summary { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem 2rem; padding: 1.1rem 0; margin-top: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.design-preference-summary span { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.design-preference-summary strong { display: block; margin-top: .3rem; color: var(--ink); font-size: .92rem; line-height: 1.35; }
.design-preference-summary p { max-width: 48rem; margin: .3rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; white-space: pre-wrap; }
.design-form-link { margin-top: 1rem; }
.budget-notice { max-width: 54rem; padding: 1rem 1.1rem; margin: 1.5rem 0 0; background: #eef2e9; border-left: 3px solid var(--amber); }
.budget-notice strong { display: block; color: var(--green); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.budget-notice p { margin: .4rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.budget-notice .budget-tax-note { padding-top: .65rem; margin-top: .65rem; border-top: 1px solid rgba(33,71,55,.14); font-size: .78rem; }
.budget-variant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.budget-variant-card { min-height: 15rem; padding: 1.15rem; background: var(--paper-2); border: 1px solid var(--line); }
.budget-variant-card:nth-child(2) { background: #fbf6e9; border-color: rgba(211,154,77,.45); }
.budget-variant-card:nth-child(3) { background: #f2e7df; border-color: rgba(141,63,45,.2); }
.budget-variant-card .eyebrow { margin-bottom: .45rem; }
.budget-variant-total { display: block; color: var(--deep); font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.budget-variant-meta, .budget-variant-exvat { display: block; margin-top: .65rem; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.budget-variant-exvat { margin-top: .15rem; opacity: .8; }
.budget-variant-card > p:last-child { margin: 1rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.budget-download-copy { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.budget-download-copy p { max-width: 34rem; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }

@media (max-width: 620px) {
  .design-preference-summary { grid-template-columns: 1fr; }
  .design-slide figcaption { flex-direction: column; gap: .2rem; }
  .design-slide-controls .quiet-button { padding-inline: .55rem; }
  .budget-variant-grid { grid-template-columns: 1fr; }
  .budget-download-copy { flex-direction: column; }
}

/* Final clarity pass: a quiet, sequential reading path for clients. */
.portal-hero { grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .7fr); padding: clamp(4rem, 9vw, 8rem) 0 clamp(2.75rem, 5vw, 4.5rem); }
.portal-hero h1 { max-width: 10ch; font-size: clamp(3rem, 6.5vw, 6rem); }
.portal-hero-lede { max-width: 34rem; font-size: 1rem; }
.portal-project-meta { align-self: end; gap: .9rem 1.2rem; }
.portal-project-meta div { padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.23); }
.project-jump-nav { gap: .7rem; padding: 2.4rem 0 1.5rem; }
.jump-nav-intro strong { font-size: 1.15rem; }
.jump-nav-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; overflow: visible; padding: 0; }
.jump-nav-links a { display: grid; grid-template-columns: auto minmax(0, 1fr); flex: none; min-height: 4.3rem; padding: .9rem .4rem .75rem 0; border-top: 1px solid var(--line); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; }
.jump-nav-links a:hover, .jump-nav-links a:focus-visible { border-top-color: var(--amber); background: transparent; }
.jump-nav-links a > span { grid-row: span 2; }
.project-brief-prompt { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 62rem; padding: 2.6rem 0 3.1rem; margin: 0; }
.project-brief-prompt h2 { max-width: 16ch; font-size: clamp(2rem, 4vw, 3.35rem); }
.project-brief-prompt p:not(.eyebrow) { max-width: 38rem; }
.portal-section { max-width: 72rem; padding: clamp(3rem, 7vw, 5.25rem) 0; }
.portal-grid > aside { max-width: 72rem; width: 100%; margin: 0 auto; }
.route-section .phase-card { max-width: 39rem; margin-bottom: 2.5rem; }
.summary-grid { gap: 1.25rem; }
.summary-card strong { display: block; max-width: 13rem; font-size: 1rem; line-height: 1.3; }
.budget-variant-card { min-height: 14rem; }

@media (max-width: 900px) {
  .portal-hero { grid-template-columns: 1fr; }
  .portal-project-meta { max-width: 42rem; }
  .jump-nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .portal-hero { padding-top: 3.5rem; }
  .portal-hero h1 { font-size: clamp(3rem, 16vw, 5.2rem); }
  .project-jump-nav { padding-top: 1.8rem; }
  .jump-nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .85rem; }
  .jump-nav-links a { min-height: 3.8rem; padding-block: .7rem; }
  .jump-nav-links small { display: none; }
  .project-brief-prompt { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 2.25rem; }
  .project-brief-prompt .primary-button { width: max-content; }
  .summary-grid { gap: .8rem; }
}

/* Construction strategy research: clear choices, grounded references, no implied selection. */
.strategy-research { max-width: none; }
.strategy-heading { max-width: 62rem; }
.strategy-heading h2 { max-width: 16ch; }
.strategy-heading .muted { max-width: 48rem; }
.strategy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.strategy-card { overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.strategy-card-balanced { background: #fbf6e9; border-color: rgba(211,154,77,.5); }
.strategy-card-bespoke { background: #f2e7df; border-color: rgba(141,63,45,.23); }
.strategy-image { margin: 0; background: #e7e5db; }
.strategy-image img { display: block; width: 100%; height: 14rem; object-fit: cover; }
.strategy-image figcaption { display: block; padding: .65rem .85rem .75rem; color: var(--muted); background: var(--paper-2); font-size: .68rem; line-height: 1.45; }
.strategy-card-balanced .strategy-image figcaption { background: #fbf6e9; }
.strategy-card-bespoke .strategy-image figcaption { background: #f2e7df; }
.strategy-image figcaption a, .supplier-reference-card figcaption a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.strategy-card-content { padding: 1.25rem; }
.strategy-card-content h3 { margin: 0 0 .5rem; color: var(--deep); font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 400; letter-spacing: -.045em; text-transform: none; }
.strategy-card-content > p:not(.eyebrow) { margin: 1rem 0 0; font-size: .86rem; line-height: 1.58; }
.strategy-range { display: block; color: var(--green); font-size: .9rem; line-height: 1.35; }
.strategy-card .plain-list { margin-top: 1rem; }
.strategy-card .plain-list li { font-size: .78rem; }
.strategy-budget-link { display: inline-block; margin-top: 1.2rem; color: var(--green); font-size: .75rem; font-weight: 800; text-underline-offset: .18em; }
.strategy-note { max-width: 62rem; padding: 1rem 1.15rem; margin-top: 1.5rem; background: #eef2e9; border-left: 3px solid var(--amber); }
.strategy-note strong { display: block; color: var(--green); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.strategy-note p { margin: .45rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.supplier-research { padding-top: 3rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.supplier-research h3 { margin: 0 0 .45rem; color: var(--deep); font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 400; letter-spacing: -.045em; text-transform: none; }
.supplier-research .section-heading { max-width: 45rem; }
.supplier-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.supplier-reference-card { margin: 0; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.supplier-reference-card img { display: block; width: 100%; height: 10rem; object-fit: cover; background: #e7e5db; }
.supplier-reference-card figcaption { display: grid; gap: .28rem; padding: .7rem .8rem .8rem; color: var(--muted); font-size: .68rem; line-height: 1.42; }
.supplier-reference-card figcaption strong { color: var(--ink); font-size: .76rem; }
.strategy-research-links { max-width: 48rem; padding-top: 1rem; margin: 1.25rem 0 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.55; }
.strategy-research-links a { color: var(--green); font-weight: 700; text-underline-offset: .15em; }
.strategy-form-button { margin-top: 1rem; }

@media (max-width: 900px) {
  .strategy-grid { grid-template-columns: 1fr; }
  .strategy-card { display: grid; grid-template-columns: minmax(14rem, .7fr) minmax(0, 1fr); }
  .strategy-image img { height: 100%; min-height: 14rem; }
  .strategy-image figcaption { height: 100%; }
  .supplier-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .strategy-card { display: block; }
  .strategy-image img { height: 12rem; }
  .strategy-image figcaption { height: auto; }
  .supplier-reference-grid { grid-template-columns: 1fr; }
  .supplier-reference-card img { height: auto; max-height: 14rem; object-fit: contain; }
}

/* Final client-view overrides. */
.portal-page .portal-brand img { padding: .42rem; border-radius: 50%; background: var(--green); box-sizing: content-box; }
.portal-hero-shell::before { background-image: linear-gradient(90deg, rgba(14,28,21,.72) 0%, rgba(14,28,21,.42) 46%, rgba(14,28,21,.12) 100%), var(--project-hero-image); opacity: .96; }
.portal-hero-shell::after { background: linear-gradient(180deg, rgba(14,28,21,.03), rgba(14,28,21,.24)); }
.portal-hero-lede { color: rgba(255,255,255,.84); }
.route-section, .design-section { width: 100%; max-width: none; }
.route-section .phase-card { width: 100%; max-width: none; }
.design-section .design-slideshow { max-width: none; }
.design-section .design-slide img { max-height: min(70vw, 52rem); }
.choices-helper { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--line); }
.choices-helper p { max-width: 45rem; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.choices-helper .quiet-button { flex: 0 0 auto; }

/* Supplier references stay in one calm horizontal strip with explicit controls. */
.supplier-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; margin-top: 1.5rem; }
.supplier-reference-grid { display: flex; gap: .8rem; min-width: 0; overflow-x: auto; padding: .1rem .1rem .7rem; margin-top: 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.supplier-reference-card { flex: 0 0 min(17rem, 30vw); scroll-snap-align: start; }
.supplier-reference-card img { height: 10rem; }
.supplier-carousel-button { width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%; }

@media (max-width: 620px) {
  .choices-helper { align-items: stretch; flex-direction: column; gap: .8rem; }
  .choices-helper .quiet-button { width: max-content; }
  .supplier-carousel { grid-template-columns: auto minmax(0, 1fr) auto; gap: .35rem; }
  .supplier-reference-card { flex-basis: min(16rem, 76vw); }
  .supplier-reference-card img { height: auto; max-height: 14rem; object-fit: contain; }
}

/* November client feedback: clearer entry, readable headings and warmer form language. */
.auth-copy,
.portal-hero > div:first-child { min-width: 0; }

.auth-copy h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 5.8vw, 5.7rem);
  line-height: .94;
  overflow-wrap: normal;
  text-wrap: balance;
}

.portal-hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, .6fr);
}

.portal-hero .eyebrow { color: rgba(255,255,255,.86); }

.portal-hero h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.6vw, 4.15rem);
  line-height: .96;
  white-space: nowrap;
}

.portal-welcome { margin: 1.35rem 0 1.15rem; }

.project-brief-prompt p:not(.eyebrow) { max-width: 48rem; }

.project-provisional-note {
  max-width: 52rem;
  padding-left: 1rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  border-left: 3px solid var(--amber);
  font-size: .9rem;
  line-height: 1.65;
}

.brief-dialog .field > label,
.brief-dialog .field > legend {
  color: var(--ink);
  font-size: .78rem;
  letter-spacing: .01em;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .portal-hero { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .auth-copy h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11.5vw, 3.8rem);
    line-height: .98;
  }

  .portal-hero h1 {
    font-size: clamp(1.65rem, 7.2vw, 2.35rem);
    letter-spacing: -.045em;
  }

  .portal-welcome { margin-top: 1.1rem; }
}

.first-login-password-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  color: var(--ink);
  background: var(--paper-2);
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 28px 90px rgba(14,28,21,.34);
}

.first-login-password-dialog::backdrop {
  background: rgba(14,28,21,.72);
  backdrop-filter: blur(5px);
}

.first-login-password-inner { padding: clamp(1.5rem, 5vw, 2.5rem); }

.first-login-password-inner h2 {
  margin: 0 0 .8rem;
  color: var(--deep);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.first-login-password-inner > p:not(.eyebrow) {
  margin: 0 0 1.4rem;
  color: var(--muted);
  line-height: 1.6;
}

.password-change-hint {
  margin: -.15rem 0 .2rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

.first-login-password-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  margin-top: .35rem;
}

@media (max-width: 620px) {
  .first-login-password-dialog { width: min(100% - 1rem, 34rem); }
  .first-login-password-actions { align-items: stretch; flex-direction: column; }
}
