/* Homepage presentation; hero rules are isolated from the sections below. */
.hero--focused { padding: 0; border-bottom: 1px solid var(--line); }
.hero-focus { position: relative; min-height: min(630px, calc(100svh - 250px)); display: flex; align-items: center; padding-block: 56px; isolation: isolate; }
.hero-focus__copy { position: relative; z-index: 1; width: 57%; pointer-events: none; }
.hero-focus__eyebrow { margin: 0 0 28px; font: 10px/1.5 var(--font-mono); color: var(--fg-mute); text-transform: uppercase; }
.hero-focus h1 { margin: 0; font-size: 64px; font-weight: 600; line-height: 1.06; letter-spacing: 0; }
.hero-focus h1 span { color: var(--accent); }
.hero-focus__description { max-width: 47ch; margin: 26px 0 0; font-size: 17px; line-height: 1.65; color: var(--fg-dim); }
.hero-focus__actions { display: flex; align-items: center; gap: 28px; margin-top: 30px; pointer-events: auto; }
.hero-focus__actions .btn { padding: 15px 20px; font-size: 14px; width: auto; flex: none; }
.hero-focus__link { display: inline-flex; align-items: center; gap: 12px; padding-block: 13px; font-size: 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hero-focus__link:hover { color: var(--accent); border-color: var(--accent); }
.hero-building { position: absolute; right: -2%; top: 4%; width: 48%; height: 92%; min-width: 0; overflow: hidden; touch-action: pan-y; }
.hero-building canvas, .hero-building > img { display: block; width: 100%; height: 100%; }
.hero-building > img { object-fit: contain; }
.hero-building:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.hero-focus__copy { animation: practice-enter 700ms cubic-bezier(.2,.7,.2,1) both; }
.hero--focused .practice-clients { border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .hero-focus { padding-block: 40px; min-height: 500px; }
  .hero-focus h1 { font-size: 48px; }
  .hero-focus__description { font-size: 15px; max-width: 41ch; }
  .hero-focus__copy { width: 56%; }
}
@media (max-width: 800px) {
  .hero-focus { display: block; padding-block: 34px 0; min-height: 0; }
  .hero-focus__copy { width: 100%; }
  .hero-focus h1 { font-size: 44px; }
  .hero-focus__break { display: none; }
  .hero-focus__eyebrow { margin-bottom: 20px; }
  .hero-focus__description { max-width: 48ch; margin-top: 18px; }
  .hero-focus__actions { margin-top: 22px; }
  .hero-building { position: relative; inset: auto; width: 100%; height: 300px; margin-top: 4px; }
}
@media (max-width: 480px) {
  .hero-focus { padding-top: 26px; }
  .hero-focus h1 { font-size: 36px; line-height: 1.08; }
  .hero-focus__break { display: block; }
  .hero-focus__eyebrow { font-size: 9px; margin-bottom: 18px; }
  .hero-focus__description { font-size: 14px; line-height: 1.55; }
  .hero-focus__actions { gap: 22px; margin-top: 20px; }
  .hero-focus__actions .btn { padding: 13px 16px; font-size: 13px; }
  .hero-focus__link { font-size: 13px; }
  .hero-building { height: 230px; margin-top: 0; }
}
@media (max-width: 480px) and (max-height: 740px) {
  .hero-building { height: 185px; }
  .hero-focus__eyebrow { margin-bottom: 12px; }
  .hero-focus__description { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-focus__copy { animation: none; }
}
.home-page :where(.eyebrow, .mono-label, .services__card-num, .services__card-footer, .project-card__sector, .project-card__meta) { letter-spacing: 0; }
.hero--practice { padding: 42px 0 0; border-bottom: 1px solid var(--line); }
.practice-intro { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.8fr); gap: 48px; align-items: end; margin-bottom: 30px; }
.practice-intro__eyebrow { font-family: var(--font-mono); font-size: 10px; color: var(--fg-mute); margin-bottom: 22px; text-transform: uppercase; }
.practice-intro h1 { font-size: 52px; line-height: 1.08; font-weight: 600; margin: 0; letter-spacing: 0; text-wrap: balance; }
.practice-intro h1 > span { color: var(--accent); }
.practice-intro__body { padding-bottom: 3px; }
.practice-intro__statement { font-size: 20px; font-weight: 500; margin: 0 0 8px; line-height: 1.3; }
.practice-intro__body > p:not(.practice-intro__statement) { font-size: 14px; line-height: 1.6; color: var(--fg-dim); margin: 0; max-width: 43ch; }
.practice-intro__actions { display: flex; align-items: center; gap: 22px; margin-top: 20px; }
.practice-intro__actions .btn { padding: 12px 17px; font-size: 13px; width: auto; flex: none; }
.practice-intro__link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; padding-block: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.practice-intro__link:hover { color: var(--accent); border-color: var(--accent); }
.practice-intro > div { animation: practice-enter 750ms cubic-bezier(.2,.7,.2,1) both; }
.practice-intro > div:last-child { animation-delay: 120ms; }
@keyframes practice-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.control-study { min-width: 0; margin-top: 18px; }
.control-study__toolbar { display: flex; align-items: center; justify-content: space-between; height: 38px; color: var(--fg-mute); font: 10px var(--font-mono); text-transform: uppercase; }
.control-study__actions { display: flex; gap: 4px; }
.study-tool { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--fg-dim); cursor: pointer; transition: background 180ms, color 180ms; }
.study-tool:hover { background: var(--bg-2); color: var(--accent); }
.control-study__phases { display: grid; grid-template-columns: 1fr 1.2fr 1.1fr; border-block: 1px solid var(--line); }
.control-study__phases button { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 48px; padding: 12px 20px; border: 0; background: transparent; color: var(--fg-dim); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.control-study__phases button:first-child { padding-left: 0; }
.control-study__phases button > svg { margin-left: auto; color: var(--fg-mute); }
.control-study__phases button::after { position: absolute; content: ""; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 450ms cubic-bezier(.2,.7,.2,1); }
.control-study__phases button[aria-pressed="true"] { color: var(--fg); }
.control-study__phases button[aria-pressed="true"]::after { transform: scaleX(1); }
.control-study__step { color: var(--accent); font: 10px var(--font-mono); }
.control-study__panels { display: grid; grid-template-columns: 1fr 1.2fr 1.1fr; }
.control-study__panel { min-width: 0; padding: 18px 20px 0; display: grid; grid-template-rows: 24px 218px 50px; border-right: 1px solid var(--line); }
.control-study__panel:first-child { padding-left: 0; }
.control-study__panel:last-child { padding-right: 0; border: 0; }
.control-study__panel--model { grid-template-rows: 242px 50px; }
.control-study__model { position: relative; min-width: 0; overflow: hidden; cursor: grab; touch-action: pan-y; }
.control-study__model canvas, .control-study__model > img { width: 100%; height: 100%; display: block; }
.control-study__model > img { object-fit: cover; }
.control-study__model-label { position: absolute; left: 0; top: 0; color: var(--fg-mute); font: 9px var(--font-mono); pointer-events: none; }
.control-study__ledger-head { display: grid; grid-template-columns: minmax(0, 1.5fr) 0.9fr 0.65fr; align-items: start; gap: 12px; font: 9px var(--font-mono); text-transform: uppercase; color: var(--fg-mute); }
.control-study__ledger-head span:last-child { text-align: right; }
.control-study__ledger { display: grid; grid-template-rows: repeat(6, 1fr); }
.control-study__cost-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 0.9fr 0.65fr; align-items: center; gap: 12px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--fg-mute); transition: color 500ms; }
.control-study__cost-row > span:first-child { line-height: 1.25; }
.control-study__cost-row > span:nth-child(2) { font: 10px var(--font-mono); white-space: nowrap; }
.control-study__cost-row small { font-size: 8px; color: var(--fg-mute); }
.control-study__cost-row > strong { font: 500 11px var(--font-mono); text-align: right; opacity: 0; transform: translateY(5px); transition: opacity 450ms, transform 450ms; }
.control-study__cost-row.is-measured { color: var(--fg); }
.control-study__cost-row.is-measured > strong { opacity: 1; transform: translateY(0); }
.control-study__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 8px; }
.control-study__foot > span { font: 9px var(--font-mono); color: var(--fg-mute); display: inline-flex; align-items: center; gap: 6px; }
.control-study__foot > strong { font: 500 21px var(--font-display); font-variant-numeric: tabular-nums; color: var(--accent); }
.control-study__foot small { margin-left: 3px; font: 10px var(--font-mono); }
.control-study__axis, .control-study__task { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 10px; }
.control-study__axis { font: 9px var(--font-mono); color: var(--fg-mute); }
.control-study__axis > div { display: flex; justify-content: space-between; }
.control-study__schedule { display: grid; grid-template-rows: repeat(7, 1fr); }
.control-study__task { align-items: center; font-size: 11px; }
.control-study__track { height: 100%; position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), var(--line-soft) calc(25% - 1px), var(--line-soft) 25%); }
.control-study__bar { position: absolute; height: 10px; top: calc(50% - 5px); background: var(--bg-3); border-radius: 1px; overflow: hidden; }
.control-study__bar > i { position: absolute; inset: 0; background: #6b7470; transform-origin: left; }
.control-study__bar.is-critical { background: var(--accent-dim); }
.control-study__bar.is-critical > i { background: var(--accent); }
.control-study__key { display: inline-block; width: 6px; height: 6px; background: var(--accent); }
.control-study__progress { height: 1px; background: var(--line); margin-top: 6px; overflow: hidden; }
.control-study__progress > i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--sequence-progress)); transform-origin: left; }
.practice-clients { display: flex; align-items: center; gap: 32px; padding: 28px 0; }
.practice-clients__label { font: 10px var(--font-mono); color: var(--fg-mute); width: 174px; flex-shrink: 0; line-height: 1.5; }
.practice-clients > div { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 15px; font-weight: 500; }

.home-page .section { padding-block: 88px; }
.home-page .section--tight { padding-block: 64px; }
.home-page .section__head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 40px; }
.home-page .section__head-title { max-width: none; }
.home-page .section__head-title .h-xl { font-size: 44px; line-height: 1.12; max-width: 23ch; text-wrap: pretty; }
.home-page .section__head-body { font-size: 15px; line-height: 1.65; max-width: 58ch; }
.home-page .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.home-page .services__card { display: flex; flex-direction: column; min-height: 275px; padding: 28px; gap: 16px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; transition: background 300ms; }
.home-page .services__card:nth-child(3n) { border-right: 0; }
.home-page .services__card::before { position: absolute; content: ""; top: -1px; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 400ms cubic-bezier(.2,.7,.2,1); }
.home-page .services__card:hover, .home-page .services__card:focus-visible { background: var(--bg-1); }
.home-page .services__card:hover::before, .home-page .services__card:focus-visible::before { transform: scaleX(1); }
.home-page .services__card-num { font-size: 10px; }
.home-page .services__card-title { font-size: 22px; margin: 0; }
.home-page .services__card-icon { height: 24px; width: 24px; border: 0; color: var(--accent); transition: transform 350ms cubic-bezier(.2,.7,.2,1); }
.home-page .services__card:hover .services__card-icon { transform: translateY(-3px); }
.home-page .services__card-desc { font-size: 14px; line-height: 1.65; margin: 0; }
.home-page .services__card-footer { margin-top: auto; font-size: 9px; }
.home-page .services__card-footer > svg { transition: transform 300ms; }
.home-page .services__card:hover .services__card-footer > svg { transform: translate(3px,-3px); }
.home-page .featured { grid-template-columns: 1.1fr 1fr; background: transparent; border: 0; border-radius: 0; }
.home-page .featured__image { min-height: 480px; border-radius: 4px; }
.home-page .featured__body { padding: 32px 0 32px 48px; }
.home-page .featured__title { font-size: 34px; line-height: 1.12; }
.home-page .selected-work .projects-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; }
.home-page .selected-work .project-card { grid-column: span 6 !important; min-width: 0; border: 0; border-radius: 0; }
.home-page .selected-work .project-card:nth-child(6n + 1), .home-page .selected-work .project-card:nth-child(6n) { grid-column: span 7 !important; }
.home-page .selected-work .project-card:nth-child(6n + 2), .home-page .selected-work .project-card:nth-child(6n + 5) { grid-column: span 5 !important; }
.home-page .selected-work .project-card__img { aspect-ratio: auto; height: 360px; overflow: hidden; border-radius: 4px; transform: none; }
.home-page .selected-work .project-card__img img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.home-page .selected-work .project-card:hover .project-card__img img, .home-page .selected-work .project-card:focus-visible .project-card__img img { transform: scale(1.035); }
.home-page .selected-work .project-card__body { padding: 18px 0 22px; }
.home-page .project-card__eyebrow { display: flex; align-items: center; justify-content: space-between; }
.home-page .project-card__eyebrow > svg { color: var(--accent); transition: transform 350ms; }
.home-page .project-card:hover .project-card__eyebrow > svg { transform: translate(3px,-3px); }
.home-page .selected-work .project-card__title { font-size: 22px; line-height: 1.25; min-height: 2.5em; margin: 10px 0 12px; }
.home-page .selected-work .project-card__meta { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 8px 18px; font-size: 10px; }
.home-page [data-reveal] { transition: opacity 700ms ease var(--reveal-delay, 0ms), translate 700ms cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms); }
.home-page [data-reveal="waiting"] { opacity: 0; translate: 0 20px; }
.home-page [data-reveal="visible"] { opacity: 1; translate: 0 0; }

@media (min-width: 1600px) {
  .practice-intro h1 { font-size: 60px; }
  .control-study__panel { grid-template-rows: 24px 248px 50px; }
  .control-study__panel--model { grid-template-rows: 272px 50px; }
}
@media (max-width: 1100px) {
  .practice-intro { grid-template-columns: minmax(0, 1.3fr) minmax(270px, .8fr); gap: 28px; }
  .practice-intro h1 { font-size: 40px; }
  .control-study__panel { padding-inline: 14px; }
  .control-study__phases button { padding-inline: 14px; gap: 8px; }
  .control-study__cost-row, .control-study__ledger-head { grid-template-columns: minmax(0, 1fr) 54px; gap: 8px; }
  .control-study__cost-row > span:nth-child(2), .control-study__ledger-head > span:nth-child(2) { display: none; }
  .control-study__axis, .control-study__task { grid-template-columns: 79px minmax(0,1fr); gap: 6px; }
  .control-study__task { font-size: 10px; }
  .practice-clients > div { flex-wrap: wrap; gap: 16px 24px; justify-content: flex-start; font-size: 13px; }
  .home-page .section__head { gap: 32px; }
  .home-page .section__head-title .h-xl { font-size: 38px; }
  .home-page .services__card { padding: 24px 20px; }
  .home-page .services__card-title { font-size: 20px; }
  .home-page .featured__body { padding: 16px 0 16px 28px; }
  .home-page .selected-work .project-card__img { height: 290px; }
}
@media (max-width: 760px) {
  .hero--practice { padding-top: 28px; }
  .practice-intro { grid-template-columns: 1fr; gap: 16px; margin-bottom: 12px; }
  .practice-intro__eyebrow { font-size: 9px; margin-bottom: 16px; }
  .practice-intro h1 { font-size: 36px; max-width: 22ch; text-wrap: initial; }
  .practice-intro__statement { font-size: 18px; }
  .practice-intro__body > p:not(.practice-intro__statement) { font-size: 13px; }
  .practice-intro__actions { margin-top: 16px; }
  .control-study { margin-top: 0; }
  .control-study__toolbar { height: 34px; font-size: 9px; }
  .control-study__phases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .control-study__phases button { padding: 10px 8px; gap: 6px; font-size: 11px; min-height: 44px; }
  .control-study__phases button > svg { display: none; }
  .control-study__panels { display: block; }
  .control-study__panel { display: none; height: 248px; padding: 10px 0 0; border: 0; grid-template-rows: 20px 172px 46px; }
  .control-study__panel--model { grid-template-rows: 192px 46px; }
  .control-study[data-phase="0"] .control-study__panel--model,
  .control-study[data-phase="1"] .control-study__panel--cost,
  .control-study[data-phase="2"] .control-study__panel--schedule { display: grid; }
  .control-study__ledger-head, .control-study__cost-row { grid-template-columns: minmax(0,1.5fr) 0.9fr 0.65fr; gap: 10px; }
  .control-study__cost-row > span:nth-child(2), .control-study__ledger-head > span:nth-child(2) { display: block; }
  .control-study__axis, .control-study__task { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .control-study__task { font-size: 12px; }
  .practice-clients { display: block; padding-block: 16px; }
  .practice-clients__label { display: block; width: auto; margin-bottom: 10px; }
  .practice-clients > div { column-gap: 20px; row-gap: 6px; font-size: 11px; }
  .home-page .section { padding-block: 60px; }
  .home-page #services { padding-top: 36px; }
  .home-page .section--tight { padding-block: 48px; }
  .home-page .section__head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .home-page .section__head-title .h-xl { font-size: 32px; }
  .home-page .section__head-body { font-size: 14px; }
  .home-page .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .services__card:nth-child(3n) { border-right: 1px solid var(--line); }
  .home-page .services__card:nth-child(2n) { border-right: 0; }
  .home-page .featured { grid-template-columns: 1fr; }
  .home-page .featured__image { min-height: 0; aspect-ratio: 3 / 2; }
  .home-page .featured__body { padding: 28px 0 0; }
  .home-page .featured__title { font-size: 30px; }
  .home-page .selected-work .projects-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-page .selected-work .projects-grid > .project-card { grid-column: 1 !important; }
  .home-page .selected-work .project-card__img { height: auto; aspect-ratio: 3 / 2; }
  .home-page .selected-work .project-card__title { min-height: 0; font-size: 20px; }
}
@media (max-width: 460px) {
  .practice-intro h1 { font-size: 32px; }
  .practice-intro__body > p:not(.practice-intro__statement) { display: none; }
  .practice-intro__actions { gap: 24px; }
  .home-page .services { grid-template-columns: 1fr; }
  .home-page .services__card { min-height: 0; padding: 24px 0; border-right: 0 !important; }
  .home-page .services__card-footer { margin-top: 6px; }
  .home-page .section__head-title .h-xl { font-size: 30px; }
}
@media (min-width: 761px) and (max-height: 900px) {
  .hero--practice { padding-top: 24px; }
  .practice-intro { margin-bottom: 18px; }
  .control-study__panel { grid-template-rows: 24px 174px 46px; }
  .control-study__panel--model { grid-template-rows: 198px 46px; }
  .practice-clients { padding-block: 20px; }
  .home-page #services { padding-top: 36px; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .hero--practice { padding-top: 16px; }
  .practice-intro { gap: 10px; margin-bottom: 8px; }
  .practice-intro h1 { font-size: 28px; }
  .practice-intro__eyebrow { margin-bottom: 12px; }
  .practice-intro__statement { font-size: 16px; margin-bottom: 0; }
  .practice-intro__actions { margin-top: 10px; }
  .practice-intro__actions .btn { padding-block: 10px; }
  .control-study__phases button { font-size: 10px; }
  .control-study__panel { height: 190px; padding-top: 6px; grid-template-rows: 16px 128px 40px; }
  .control-study__panel--model { grid-template-rows: 144px 40px; }
  .control-study__cost-row { font-size: 10px; }
  .control-study__cost-row > span:nth-child(2), .control-study__cost-row > strong { font-size: 9px; }
  .control-study__foot > strong { font-size: 18px; }
  .practice-clients { padding-block: 12px; }
  .practice-clients__label { display: none; }
  .practice-clients > div { font-size: 10px; column-gap: 14px; }
  .home-page #services { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .practice-intro > div { animation: none; }
  .home-page [data-reveal] { opacity: 1; translate: none; transition: none; }
  .home-page .project-card__img img { transition: none; }
}
