/* Build A Hospital */
:root {
  --ink: #0a0e0f;
  --ink-2: #111719;
  --ink-3: #1b2326;
  --bone: #f4f0e8;
  --bone-2: #e9e3d7;
  --text: #1a1e1f;
  --muted: #676a65;
  --muted-d: #9aa09b;
  --brass: #b4966a;
  --brass-l: #d3b98f;
  --teal: #0f8a72;
  --line-d: rgba(244, 240, 232, .16);
  --line-l: rgba(26, 30, 31, .16);
  --display: "Marcellus", "Optima", "Candara", Georgia, serif;
  --body: "Jost", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 4.4vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--text); font: 300 clamp(1.02rem, .98rem + .2vw, 1.14rem)/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.12; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bone); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font: 400 .74rem/1.4 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.h-xl { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5.6rem); }
.h-l { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 4rem); }
.h-m { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.3rem); }
.lead { font-size: clamp(1.14rem, 1.04rem + .5vw, 1.5rem); line-height: 1.5; font-weight: 300; }
.wrap { padding-inline: var(--gutter); max-width: 1640px; margin-inline: auto; }
section { position: relative; }
.pad { padding-block: clamp(84px, 11vw, 176px); }
.dark { background: var(--ink); color: var(--bone); }
.dark .muted { color: var(--muted-d); }
.muted { color: var(--muted); }

/* links and buttons */
.tlink { display: inline-flex; align-items: center; gap: 14px; font: 400 .78rem/1 var(--body); letter-spacing: .24em; text-transform: uppercase; padding-block: 8px; }
.tlink i { display: block; width: 44px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.tlink:hover i { width: 76px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 17px 30px; border: 1px solid currentColor; font: 400 .78rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; background: transparent; color: inherit; cursor: pointer; transition: background .35s, color .35s, border-color .35s; }
.btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn.solid { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn.solid:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }

/* header */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--bone); transition: background .45s, color .45s, box-shadow .45s; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; padding-inline: var(--gutter); transition: height .45s var(--ease); }
.nav.solid { background: rgba(244, 240, 232, .96); color: var(--text); box-shadow: 0 1px 0 var(--line-l); backdrop-filter: blur(10px); }
.nav.solid .nav-in { height: 68px; }
.brand { display: flex; align-items: center; gap: 13px; font: 400 1.02rem/1 var(--display); letter-spacing: .2em; white-space: nowrap; }
.brand-logo { display: block; flex: none; height: 48px; aspect-ratio: 6.835; background: currentColor; -webkit-mask: url(../img/logo/logo-white.svg) left center / contain no-repeat; mask: url(../img/logo/logo-white.svg) left center / contain no-repeat; }
.nav-links { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); font: 400 .74rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.nav-links a { position: relative; padding-block: 8px; white-space: nowrap; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { right: 0; }
.nav-cta { border: 1px solid currentColor; padding: 12px 20px !important; transition: background .3s, color .3s; }
.nav-cta:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.nav-tog { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: inherit; cursor: pointer; padding: 10px; }
.nav-tog span { display: block; height: 1px; background: currentColor; margin-block: 7px; transition: transform .3s; }
@media (max-width: 1180px) {
  .nav-tog { display: block; }
  .nav-in { height: 68px; }
  .brand-logo { height: clamp(30px, 9.7vw, 38px); }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 30px; font-size: .9rem; background: var(--ink); color: var(--bone); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav.open { color: var(--bone); background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav.open .nav-tog span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-tog span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* Projects dropdown */
.nav-drop { display: flex; align-items: center; gap: 6px; }
.drop-tog { width: 22px; height: 28px; padding: 0 5px; display: grid; place-items: center; background: none; border: 0; color: inherit; cursor: pointer; }
.drop-tog svg { width: 10px; height: 6px; transition: transform .3s; }
.nav-drop.open .drop-tog svg { transform: rotate(180deg); }
.drop-panel { letter-spacing: normal; text-transform: none; }
.drop-panel h4 { font: 400 .72rem/1.3 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-l); margin-bottom: 16px; }
.drop-panel li a { display: block; padding-block: 6px; font: 300 1rem/1.3 var(--body); white-space: normal; transition: color .2s; }
.drop-panel li a:hover { color: var(--brass-l); }
.nav-links .drop-panel a::after { display: none; }
.drop-all { margin-top: 26px; }
@media (min-width: 1181px) {
  .drop-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); color: var(--bone); padding: 38px var(--gutter) 34px; box-shadow: 0 24px 50px rgba(0,0,0,.28); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .drop-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 56px); max-width: 1500px; }
  .nav-drop { align-self: stretch; }
  .nav-in { align-items: stretch; }
  .nav-links, .brand, .nav-drop { align-items: center; }
  .nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel, .nav-drop.open .drop-panel { opacity: 1; visibility: visible; transform: none; }
  .nav-drop.closed .drop-panel { opacity: 0; visibility: hidden; }
}
@media (max-width: 1180px) {
  .nav-links { justify-content: flex-start; padding: 104px var(--gutter) 48px; overflow-y: auto; }
  .nav-drop { flex-wrap: wrap; justify-content: center; width: 100%; }
  .drop-tog { width: 44px; height: 44px; }
  .drop-panel { display: none; flex-basis: 100%; margin-top: 18px; text-align: left; }
  .nav-drop.open .drop-panel { display: block; }
  .drop-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; }
}

/* project directory */
.dir { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3.4vw, 60px); }
.dir h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.7rem); padding-bottom: 18px; border-bottom: 1px solid var(--text); }
.dir li a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line-l); transition: padding .4s var(--ease), color .2s; }
.dir li a i { width: 18px; height: 1px; flex: none; background: var(--brass); transition: width .4s var(--ease); }
.dir li a:hover { padding-left: 8px; color: var(--brass); }
.dir li a:hover i { width: 34px; }
@media (max-width: 1100px) { .dir { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .dir { grid-template-columns: 1fr; } }

/* project pages */
.grid3-t h3 { margin-bottom: 0; }
.tags-l { margin-top: 18px; }
.tags-l a:hover { color: var(--brass-l); }
.choice label:last-child { grid-column: 1 / -1; }

/* full-screen film hero */
.hero { height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); color: var(--bone); }
.hero video, .hero .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,10,.55) 0, rgba(5,8,10,0) 24%, rgba(5,8,10,0) 44%, rgba(5,8,10,.82) 100%); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(104px, 15vh, 148px); padding-inline: var(--gutter); }
.hero-copy .eyebrow { color: var(--brass-l); margin-bottom: 20px; }
.hero-copy h1 { max-width: 15em; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.hero-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px); padding: 0 var(--gutter) clamp(24px, 4vh, 40px); }
.stages { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(6px, 1vw, 16px); }
.stages li { font: 400 .68rem/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: rgba(244,240,232,.5); transition: color .4s; }
.stages li::before { content: ""; display: block; height: 1px; margin-bottom: 12px; background: linear-gradient(90deg, var(--brass-l) var(--p, 0%), rgba(244,240,232,.24) var(--p, 0%)); }
.stages li.on { color: var(--bone); }
.hero-pause { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid rgba(244,240,232,.4); border-radius: 50%; background: transparent; color: var(--bone); cursor: pointer; transition: background .3s, color .3s; }
.hero-pause:hover { background: var(--bone); color: var(--ink); }
.hero-pause svg { width: 12px; height: 12px; fill: currentColor; }
@media (max-width: 640px) {
  .stages li { font-size: 0; letter-spacing: 0; }
  .stages li.on { font-size: .62rem; letter-spacing: .14em; white-space: nowrap; }
}

/* statement */
.statement { background: var(--ink); color: var(--bone); text-align: center; }
.statement .wrap { max-width: 1120px; }
.statement .eyebrow { margin-bottom: 30px; }
.statement p.lead { margin: 30px auto 0; max-width: 40em; color: var(--muted-d); }

/* two practices */
.practices { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); gap: 2px; }
.practice { position: relative; display: block; min-height: clamp(520px, 86vh, 900px); overflow: hidden; color: var(--bone); background: var(--ink-2); }
.practice .media { position: absolute; inset: 0; transition: transform 1.6s var(--ease); }
.practice .media img, .practice .media svg { width: 100%; height: 100%; object-fit: cover; }
.practice:hover .media { transform: scale(1.04); }
.practice::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,10,.1) 30%, rgba(5,8,10,.84) 100%); pointer-events: none; }
.practice-copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 5vw, 64px); }
.practice-copy .eyebrow { color: var(--brass-l); margin-bottom: 16px; }
.practice-copy p { margin: 16px 0 26px; max-width: 30em; color: rgba(244,240,232,.8); }
@media (max-width: 860px) { .practices { grid-template-columns: 1fr; } .practice { min-height: 78vh; } }

/* pinned build story */
.story { height: 620vh; background: var(--ink); color: var(--bone); }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.story-img.on { opacity: 1; }
.story-pin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,10,.8) 0, rgba(5,8,10,.28) 46%, rgba(5,8,10,0) 72%), linear-gradient(0deg, rgba(5,8,10,.5), rgba(5,8,10,0) 40%); pointer-events: none; }
.story-copy { position: absolute; z-index: 2; left: var(--gutter); top: 50%; transform: translateY(-46%); width: min(540px, calc(100vw - 2 * var(--gutter))); }
.story-item { position: absolute; top: 0; left: 0; right: 0; transform: translateY(18px); opacity: 0; transition: opacity .6s, transform .8s var(--ease); pointer-events: none; }
.story-item.on { opacity: 1; transform: none; }
.story-num { font: 400 .78rem/1 var(--body); letter-spacing: .26em; color: var(--brass-l); margin-bottom: 20px; }
.story-item p { margin-top: 18px; color: rgba(244,240,232,.84); }
.story-rail { position: absolute; z-index: 2; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.story-rail span { display: block; width: 30px; height: 1px; background: rgba(244,240,232,.32); transition: width .4s, background .4s; margin-left: auto; }
.story-rail span.on { width: 58px; background: var(--brass-l); }
@media (max-width: 720px) {
  .story-pin::after { background: linear-gradient(0deg, rgba(5,8,10,.92) 0, rgba(5,8,10,.55) 42%, rgba(5,8,10,0) 68%); }
  .story-copy { top: auto; bottom: 256px; transform: none; }
  .story-item { top: 0; }
  .story-rail { display: none; }
}

/* split intro */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.split .eyebrow { margin-bottom: 22px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ruled list of building types */
.rows { border-top: 1px solid var(--line-l); }
.rows li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(12px, 3vw, 44px); align-items: baseline; padding-block: clamp(20px, 2.6vw, 34px); border-bottom: 1px solid var(--line-l); transition: padding .5s var(--ease); }
.rows li:hover { padding-left: 14px; }
.rows .n { font-size: .78rem; letter-spacing: .2em; color: var(--brass); }
.rows h3 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.1rem); }
.dark .rows, .dark .rows li { border-color: var(--line-d); }
@media (max-width: 720px) { .rows li { grid-template-columns: 2.6em 1fr; } .rows li p { grid-column: 2; } }

/* wide image with caption */
.bleed { position: relative; height: clamp(420px, 88vh, 980px); overflow: hidden; color: var(--bone); background: var(--ink); }
.bleed img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,10,.72), rgba(5,8,10,0) 54%); }
.bleed-copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(30px, 5vw, 72px); max-width: 860px; }
.bleed-copy .eyebrow { color: var(--brass-l); margin-bottom: 16px; }

/* systems grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-l); border-left: 1px solid var(--line-l); }
.grid3 > * { padding: clamp(24px, 3vw, 44px); border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); }
.grid3 h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem); margin-bottom: 12px; }
.grid3 p { font-size: .98em; color: var(--muted); }
.dark .grid3, .dark .grid3 > * { border-color: var(--line-d); }
.dark .grid3 p { color: var(--muted-d); }
@media (max-width: 960px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr; } }

/* principles */
.princ { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 90px); }
.princ h3 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.85rem); margin: 18px 0 14px; }
.princ .n { display: block; padding-top: 18px; border-top: 1px solid var(--line-l); font-size: .78rem; letter-spacing: .2em; color: var(--brass); }
.dark .princ .n { border-color: var(--line-d); }
@media (max-width: 820px) { .princ { grid-template-columns: 1fr; } }

/* marquee of industries */
.inds { overflow: hidden; border-block: 1px solid var(--line-d); padding-block: 26px; white-space: nowrap; background: var(--ink); color: var(--bone); }
.inds-track { display: inline-flex; gap: 56px; font: 400 clamp(1.3rem, 1.1rem + .9vw, 2rem)/1.2 var(--display); animation: slide 52s linear infinite; }
.inds-track span::after { content: "+"; margin-left: 56px; color: var(--brass); }
@keyframes slide { to { transform: translateX(-50%); } }

/* page hero */
.phero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: var(--bone); padding-bottom: clamp(44px, 7vw, 96px); padding-top: 130px; }
.phero > img, .phero > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,10,.5), rgba(5,8,10,.08) 30%, rgba(5,8,10,.84) 100%); pointer-events: none; }
.phero .wrap { position: relative; z-index: 2; width: 100%; }
.phero .eyebrow { color: var(--brass-l); margin-bottom: 18px; }
.phero .lead { margin-top: 24px; max-width: 34em; color: rgba(244,240,232,.86); }

/* drawings */
.draw text { stroke: none; }
.js .draw .s { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .draw.seen .s { animation: ink 1.8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * .28ms); }
@keyframes ink { to { stroke-dashoffset: 0; } }
.js .draw .lbl { opacity: 0; transition: opacity .9s 1s; }
.js .draw.seen .lbl { opacity: 1; }
.plan { background: var(--ink-2); padding: clamp(14px, 2.4vw, 36px); }
.plan-note { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.dark .plan-note { color: var(--muted-d); }

/* process list */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 32px); margin-top: clamp(44px, 5vw, 72px); }
.steps li { border-top: 1px solid var(--line-d); padding-top: 18px; }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font-size: .78rem; letter-spacing: .2em; color: var(--brass-l); margin-bottom: 16px; }
.steps h3 { font-size: 1.36rem; margin-bottom: 10px; }
.steps p { font-size: .96em; color: var(--muted-d); }
.steps-l li { border-color: var(--line-l); }
.steps-l li::before { color: var(--brass); }
.steps-l p { color: var(--muted); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line-l); border: 2px solid var(--line-l); margin-top: clamp(40px, 5vw, 70px); }
.tier { background: var(--bone); padding: clamp(26px, 3vw, 46px); display: flex; flex-direction: column; }
.tier h3 { font-size: clamp(1.5rem, 1.3rem + .7vw, 2rem); margin: 14px 0 10px; }
.tier .for { color: var(--muted); margin-bottom: 22px; }
.tier li { padding: 11px 0; border-top: 1px solid var(--line-l); font-size: .98em; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* tag list */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tags li { border: 1px solid var(--line-l); padding: 9px 16px; font-size: .92rem; }
.dark .tags li { border-color: var(--line-d); }

/* closing call */
.close { position: relative; overflow: hidden; background: var(--ink); color: var(--bone); text-align: center; }
.close > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,10,.65), rgba(5,8,10,.42)); }
.close .wrap { position: relative; z-index: 2; max-width: 1000px; }
.close .eyebrow { color: var(--brass-l); margin-bottom: 24px; }
.close .btn { margin-top: 42px; }

/* form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(26,30,31,.4); background: transparent; color: var(--text); font: inherit; border-radius: 0; transition: border-color .25s; }
.field select { appearance: auto; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
.field textarea { resize: vertical; min-height: 110px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.choice label { display: flex; align-items: center; min-height: 58px; padding: 12px 18px; border: 1px solid var(--line-l); color: var(--text); font-size: 1rem; letter-spacing: 0; text-transform: none; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.choice input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 3px; }
.form-msg { grid-column: 1 / -1; min-height: 1.5em; font-size: .96rem; color: var(--teal); }
@media (max-width: 620px) { .form, .choice { grid-template-columns: 1fr; } }

/* footer */
.foot { background: var(--ink); color: var(--muted-d); padding-block: clamp(50px, 6vw, 84px) 30px; font-size: .95rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-d); }
.foot .brand { color: var(--bone); }
.foot .brand-logo { height: clamp(44px, 5vw, 62px); }
.foot-tag { margin-top: 18px; max-width: 26em; }
.foot-cols { display: flex; flex-wrap: wrap; gap: clamp(40px, 7vw, 110px); }
.foot h4 { font: 400 .72rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-l); margin-bottom: 18px; }
.foot li { margin-bottom: 10px; }
.foot a:hover { color: var(--bone); }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: .84rem; }

/* scroll reveal */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .draw .s { stroke-dashoffset: 0; animation: none !important; }
  .js .draw .lbl { opacity: 1; transition: none; }
  .inds-track { animation: none; }
  .practice .media, .story-img, .story-item { transition: none; }
}

/* plans stay legible on phones: scroll inside their frame rather than shrinking */
.plan-scroll { overflow-x: auto; }
.plan-scroll svg { min-width: 760px; }

/* legibility over imagery */
.hero::after { background: linear-gradient(180deg, rgba(5,8,10,.55) 0, rgba(5,8,10,0) 22%, rgba(5,8,10,0) 38%, rgba(5,8,10,.58) 60%, rgba(5,8,10,.9) 100%); }
.practice::after { background: linear-gradient(180deg, rgba(5,8,10,0) 28%, rgba(5,8,10,.72) 58%, rgba(5,8,10,.94) 100%); }
/* line drawings sit above their copy, never behind it */
.practice:has(svg) { display: flex; flex-direction: column; background: #0d1214; }
.practice:has(svg)::after { display: none; }
.practice:has(svg) .media { position: relative; inset: auto; flex: 1 1 0; min-height: 240px; background: #0d1214; }
.practice:has(svg) .practice-copy { position: relative; left: auto; right: auto; bottom: auto; padding: 28px var(--gutter) clamp(32px, 5vw, 64px); }
.phero:has(> svg) { flex-direction: column; align-items: stretch; padding-top: 0; background: #0d1214; }
.phero:has(> svg)::after { display: none; }
.phero > svg { position: relative; inset: auto; flex: 1 1 0; height: 0; min-height: 280px; margin-bottom: clamp(24px, 4vw, 48px); }
.phero > svg { margin-top: 84px; }
@media (max-width: 860px) { .phero > svg { margin-top: 68px; } }
@media (max-width: 720px) {
  .story-pin::after { background: linear-gradient(0deg, rgba(5,8,10,.96) 0, rgba(5,8,10,.84) 44%, rgba(5,8,10,0) 72%); }
  .story-copy { bottom: 88px; }
}
.phero:has(> svg) { min-height: 100vh; min-height: 100svh; }

/* Product catalogue */
.cat { background: var(--bone-2); }
.cat-head { max-width: 900px; }
.cat-head .eyebrow { margin-bottom: 22px; }
.cat-head .lead { margin-top: 22px; color: var(--muted); }
.cat-tools { margin-top: clamp(32px, 4vw, 56px); }
.cat-search { display: block; max-width: 560px; }
.cat-search span { display: block; font: 400 .74rem/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cat-search input { width: 100%; padding: 14px 16px; border: 1px solid var(--line-l); background: #fff; color: var(--text); font: 300 1rem/1.3 var(--body); border-radius: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 10px 14px; border: 1px solid var(--line-l); background: transparent; color: var(--text); font: 400 .88rem/1.2 var(--body); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.chip i { font-style: normal; color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.chip[aria-pressed="true"] i { color: var(--brass-l); }
.cat-count { margin-top: 18px; font-size: .92rem; color: var(--muted); min-height: 1.5em; }
.cat-group { margin-top: clamp(32px, 4vw, 56px); }
.cat-group[hidden], .item[hidden] { display: none; }
.cat-group > h3 { padding-bottom: 16px; border-bottom: 1px solid var(--line-l); margin-bottom: 20px; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: #fff; scroll-margin-top: 100px; }
.item.wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); }
.pics { display: grid; align-content: start; gap: 12px; padding: 14px; }
.ph { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.ph img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; transition: transform .5s var(--ease); }
.item.wide .ph img { aspect-ratio: 4 / 3; }
.ph:hover img { transform: scale(1.03); }
.txt { padding: clamp(18px, 2vw, 28px) clamp(18px, 2vw, 28px) clamp(18px, 2vw, 28px) 10px; display: flex; flex-direction: column; min-width: 0; }
.code { font: 400 .8rem/1.3 var(--body); letter-spacing: .14em; color: var(--teal); text-transform: uppercase; }
.item h4 { font-size: clamp(1.14rem, 1.05rem + .3vw, 1.38rem); margin-top: 8px; }
.var { font-size: .92rem; color: var(--muted); margin-top: 4px; }
.specs, .sg ul { margin-top: 14px; font-size: .9rem; line-height: 1.45; }
.specs li, .sg li { position: relative; padding-left: 14px; margin-top: 5px; overflow-wrap: anywhere; }
.specs li::before, .sg li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 1px; background: var(--brass); }
.sgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 28px; }
.sg h5 { margin: 18px 0 0; font: 400 .74rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sg ul { margin-top: 6px; }
.ask { align-self: flex-start; margin-top: auto; padding-top: 18px; font: 400 .74rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--text); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--brass); }
.ask:hover { color: var(--teal); }
.lb { border: 0; padding: 0; max-width: min(1400px, 94vw); max-height: 94vh; background: #fff; color: var(--text); overflow: auto; }
.lb::backdrop { background: rgba(10, 14, 15, .86); }
.lb img { max-width: 100%; max-height: 82vh; margin: 0 auto; }
.lb p { padding: 12px 56px 16px 18px; font-size: .95rem; }
.lb-x { position: sticky; float: right; top: 8px; margin: 8px 8px 0 0; width: 44px; height: 44px; border: 1px solid var(--line-l); background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 1; }
@media (max-width: 1080px) {
  .items { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 6px; scrollbar-width: thin; }
  .chip { flex: none; }
  .item, .item.wide { grid-template-columns: minmax(0, 1fr); }
  .txt { padding: 4px 18px 20px; }
  .ph img, .item.wide .ph img { aspect-ratio: 4 / 3; }
}

/* Rane Health Care contact details */
.foot-contact { max-width: 19em; }
.reach { margin-top: clamp(30px, 4vw, 48px); padding-top: 26px; border-top: 1px solid var(--line-l); }
.reach ul { margin-top: 18px; }
.reach li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding-block: 9px; font-size: 1rem; }
.reach li span { font: 400 .72rem/1.9 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.reach address { font-style: normal; }
.reach a { overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.reach a:hover { color: var(--teal); }

/* Human Resource: staff directory */
.staff { border-top: 1px solid var(--line-l); }
.staff-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(30px, 4vw, 54px); border-bottom: 1px solid var(--line-l); }
.staff-h .n { display: block; margin-bottom: 14px; }
.staff-h h3 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2.2rem); }
.staff-h p { margin-top: 12px; max-width: 26em; }
.staff-row h4 { font: 400 .74rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 26px; }
.staff-row h4:first-child { margin-top: 0; }
.staff-row .tags { margin-top: 12px; gap: 8px; }
.staff-row > div:last-child > .tags:first-child { margin-top: 0; }
.staff-more { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
@media (max-width: 820px) { .staff-row { grid-template-columns: minmax(0, 1fr); } }

/* Human Resource: line under the film title */
.hero-lead { max-width: 30em; margin-top: 16px; color: rgba(244,240,232,.86); text-shadow: 0 1px 24px rgba(0,0,0,.45); }

/* Package film: what the viewer is looking at, and the facts of the package */
.film-cap { position: absolute; z-index: 2; top: clamp(92px, 13vh, 128px); right: var(--gutter); width: min(340px, 34vw); padding: 20px 22px; background: rgba(6,9,12,.62); backdrop-filter: blur(10px); border: 1px solid rgba(244,240,232,.16); color: var(--bone); }
.film-cap-model { font: 400 .68rem/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-l); }
.film-cap-title { margin-top: 10px; font-size: 1.35rem; line-height: 1.2; }
.film-cap-detail { margin-top: 6px; min-height: 3.9em; font-size: .9rem; line-height: 1.3; color: rgba(244,240,232,.8); }
.film-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(244,240,232,.18); font-size: .78rem; color: rgba(244,240,232,.75); }
.film-facts b { display: block; font-weight: 400; font-size: 1rem; color: var(--bone); }
.film-facts .wide { grid-column: 1 / -1; }
.film-cap-note { margin-top: 10px; font-size: .68rem; color: rgba(244,240,232,.55); }
@media (max-width: 820px) {
  .film-cap { top: 76px; left: var(--gutter); right: var(--gutter); width: auto; padding: 12px 14px; }
  .film-cap-title { margin-top: 4px; font-size: 1.05rem; }
  .film-cap-detail { min-height: 2.6em; font-size: .8rem; }
  .film-facts { grid-template-columns: repeat(3, 1fr); gap: 4px 10px; margin-top: 8px; padding-top: 8px; font-size: .68rem; }
  .film-facts b { font-size: .84rem; }
  .film-facts .wide { grid-column: span 2; }
  .film-cap-note { display: none; }
}
