/* Valenti Construction (Growth). Tokens documented in DESIGN_SYSTEM.md. */
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-cond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-cond-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #f7f8f7; --wall: #e3e7e5; --shade: #cdd3d0; --steel: #8a918c; --graphite: #4a4f4a; --ink: #252825; --black: #191b19;
  --orange: #f18920; --orange-2: #d9761a; --glass: #cfe0ea;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Public Sans", system-ui, sans-serif;
  --r-sm: 4px; --r: 10px; --wrap: 1240px; --gut: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --lift: 0 1px 2px rgba(37, 40, 37, .06), 0 12px 32px -12px rgba(37, 40, 37, .28);
  --header: 68px;
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--orange); color: var(--ink); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .98; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.6rem + 5.4vw, 5.75rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.ic { width: 24px; height: 24px; flex: none; }
.ic--sm { width: 18px; height: 18px; } .ic--lg { width: 36px; height: 36px; } .ic--xl { width: 48px; height: 48px; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ buttons + links (CSS springs) */
.btn { --bg: var(--orange); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 2px solid var(--bg); border-radius: var(--r-sm); background: var(--bg); color: var(--fg); font: 600 1.125rem/1 var(--display); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .35s var(--spring), background-color .2s, border-color .2s, box-shadow .3s var(--ease-out); }
.btn:hover { box-shadow: var(--lift); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn__ic { display: grid; place-items: center; width: 28px; height: 28px; margin-right: -8px; border-radius: 3px; background: rgba(37, 40, 37, .12); transition: transform .35s var(--spring); }
.btn__ic .ic { width: 18px; height: 18px; }
.btn:hover .btn__ic { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--ghost .ic { width: 20px; height: 20px; }
.btn--lg { min-height: 56px; padding: 0 24px; font-size: 1.25rem; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 1.0625rem; }
.btn--light { --bg: var(--orange); }
.btn--on-dark { --fg: var(--paper); border-color: rgba(247, 248, 247, .6); }
.btn--on-dark:hover { --bg: var(--paper); --fg: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.link .ic { width: 20px; height: 20px; transition: transform .35s var(--spring); }
.link:hover .ic { transform: translateX(4px); }

/* ------------------------------------------------ header */
.header { position: sticky; top: 0; z-index: 40; height: var(--header); background: rgba(247, 248, 247, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-bottom-color: var(--shade); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.logo .mark { width: 38px; height: 38px; }
.logo__word { display: flex; flex-direction: column; font: 700 1.5rem/0.85 var(--display); letter-spacing: .02em; }
.logo__word small { font-size: .62rem; font-weight: 600; letter-spacing: .24em; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; font-weight: 600; font-size: .98rem; text-decoration: none; border-radius: var(--r-sm); }
.nav > a:not(.btn):hover { background: var(--wall); }
.nav > a[aria-current=page]:not(.btn) { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.nav__tel .ic { width: 18px; height: 18px; }
@media (max-width: 899px) { .nav__tel { display: none !important; } }
@media (max-width: 599px) { .nav .btn { display: none; } .logo__word { font-size: 1.3rem; } .logo .mark { width: 34px; height: 34px; } }

/* ------------------------------------------------ hero */
.hero { padding: 20px 0 48px; overflow: clip; }
.hero__in { display: grid; gap: 24px; }
.hero__copy { order: 2; }
.hero__stage { order: 1; position: relative; aspect-ratio: 4 / 3.05; }
.hero h1 { max-width: 12ch; }
.hero__sub { margin-top: 16px; max-width: 46ch; font-size: 1.0625rem; color: var(--graphite); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero__meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .9375rem; font-weight: 600; color: var(--graphite); }
.hero__meta .ic { width: 18px; height: 18px; color: var(--orange-2); }
.hero__meta .sep { width: 4px; height: 4px; background: var(--steel); border-radius: 50%; margin: 0 4px; }
.layer { position: absolute; }
.layer--illo { inset: 0 0 auto 2%; width: 92%; }
.layer--back { top: 27%; right: 0; width: 46%; z-index: 1; }
.layer--front { left: 0; bottom: 0; width: 52%; z-index: 2; }
.win { position: relative; overflow: hidden; border-radius: var(--r); box-shadow: var(--lift); background: var(--wall); }
.win img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tag { position: absolute; left: 10px; top: 10px; padding: 6px 10px; border-radius: 3px; background: var(--paper); font: 600 .95rem/1 var(--display); letter-spacing: .02em; }
.tag--done { background: var(--orange); }
@media (max-width: 699px) { .hide-sm { display: none; } .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.6rem); } .hero__cta .btn { flex: 1 1 auto; } .hero__cta .btn--ghost { padding-inline: 14px; } }
@media (min-width: 700px) and (max-width: 899px) { .hero { padding: 40px 0 64px; } .hero__in { grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; } .hero__copy { order: 1; } .hero__stage { order: 2; } .hero h1 { font-size: 3.6rem; } .hero__cta .btn--lg { min-height: 52px; font-size: 1.125rem; padding: 0 18px; } }
@media (min-width: 900px) {
  .hero { padding: 48px 0 88px; }
  .hero__in { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 48px; min-height: min(calc(100svh - var(--header) - 120px), 760px); }
  .hero__copy { order: 1; } .hero__stage { order: 2; }
  .hero__sub { font-size: 1.2rem; margin-top: 24px; }
  .hero__cta { margin-top: 32px; }
}

/* motion initial states (only when JS motion runs) */
.motion .hero h1 { visibility: hidden; }
.motion [data-hero], .motion .hero__cta .btn { opacity: 0; }
.motion .layer--back, .motion .layer--front { opacity: 0; }
.motion [data-reveal] { opacity: 0; }
.word { will-change: transform; }

/* ------------------------------------------------ proof band */
.proof { background: var(--ink); color: var(--paper); padding: clamp(48px, 8vw, 96px) 0; }
.proof__line { margin: 0; max-width: 30ch; font: 600 clamp(1.9rem, 1.2rem + 3vw, 3.6rem)/1.08 var(--display); text-wrap: balance; }
.proof__line .num { color: var(--orange); }

/* ------------------------------------------------ sections */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec--tight { padding-top: clamp(24px, 4vw, 48px); }
.sec__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec__head p { margin-top: 16px; font-size: 1.125rem; color: var(--graphite); }
.sec__head--row { max-width: none; display: grid; gap: 16px; }
@media (min-width: 900px) { .sec__head--row { grid-template-columns: 1fr 1fr; align-items: end; } .sec__head--row p { margin: 0; } }

/* what we build */
.builds { background: linear-gradient(var(--paper), var(--wall)); }
.builds__art { padding: clamp(16px, 3vw, 40px) clamp(8px, 3vw, 40px) 0; overflow-x: auto; }
.builds__art svg { min-width: 560px; }
.bt polygon[fill="#F7F8F7"] { transition: fill .35s var(--ease-out); }
.bt.is-hot polygon[fill="#F7F8F7"] { fill: var(--orange); }
.bt { transition: transform .45s var(--spring); transform-box: fill-box; transform-origin: 50% 100%; }
.bt.is-hot { transform: translateY(-6px); }
.props { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prop { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; background: var(--paper); border-radius: var(--r-sm); text-decoration: none; font: 600 1.375rem/1 var(--display); box-shadow: inset 0 0 0 1px var(--shade); transition: box-shadow .3s var(--ease-out), transform .35s var(--spring); }
.prop .ic--sm { margin-left: auto; transition: transform .35s var(--spring); }
.prop:hover { box-shadow: inset 0 0 0 2px var(--ink), var(--lift); transform: translateY(-2px); }
.prop:hover .ic--sm { transform: translateX(4px); }
@media (min-width: 760px) { .props { grid-template-columns: repeat(5, 1fr); margin-top: 8px; } .prop { flex-direction: column; align-items: flex-start; gap: 18px; padding: 18px; } .prop .ic--sm { margin-left: 0; } }

/* process (sticky art + steps; no pin) */
.process__in { display: grid; gap: 32px; }
.process__art { position: sticky; top: calc(var(--header) + 8px); z-index: 1; align-self: start; background: var(--paper); padding: 8px 0 12px; border-bottom: 1px solid var(--shade); }
.process__art svg { width: min(100%, 420px); margin-inline: auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--shade); }
.steps h3, .steps p { transition: color .4s var(--ease-out); }
.motion .steps li:not(.is-hot) h3 { color: var(--graphite); }
.motion .steps li:not(.is-hot) p { color: #646964; }
.motion .steps li:not(.is-hot) .step__n { color: var(--graphite); }
.step__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--wall); font: 700 1.6rem/1 var(--display); transition: background-color .35s, transform .45s var(--spring); }
.steps li.is-hot .step__n { background: var(--orange); transform: rotate(-4deg); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--graphite); }
.p-l { transition: opacity .5s var(--ease-out), transform .6s var(--spring); }
.motion .p-l.is-off { opacity: 0; transform: translateY(-14px); }
@media (min-width: 900px) {
  .process__in { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .process__art { top: calc(var(--header) + 40px); border: 0; padding: 0; background: none; }
  .process__art svg { width: 100%; }
  .steps li { padding: 36px 0; min-height: 24vh; }
}

/* gallery + lightbox */
.gallery { display: grid; gap: 12px; }
.shot { margin: 0; }
.shot__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--wall); cursor: zoom-in; }
.shot__btn img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease-out); }
.shot__btn:hover img { transform: scale(1.04); }
.shot figcaption { margin-top: 8px; font-size: .9375rem; color: var(--graphite); }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-template-areas: "a a b" "a a c" "d e e"; grid-auto-rows: minmax(220px, auto); gap: 16px; }
  .g1 { grid-area: a; } .g2 { grid-area: b; } .g3 { grid-area: c; } .g4 { grid-area: d; } .g5 { grid-area: e; }
  .shot { display: flex; flex-direction: column; }
  .shot__btn { flex: 1; } .shot__btn img { aspect-ratio: auto; min-height: 200px; }
}
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(25, 27, 25, .92); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: var(--r); }
.lightbox figcaption { color: var(--paper); margin-top: 12px; text-align: center; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: var(--paper); color: var(--ink); cursor: pointer; }

/* clients */
.clients { background: var(--ink); color: var(--paper); }
.clients .ic--xl { color: var(--orange); margin-bottom: 20px; }
.clients p { color: #c5ccc8; margin-top: 16px; max-width: 44ch; }
.clients .link { margin-top: 12px; color: var(--paper); }
.clients__in { display: grid; gap: 40px; }
.clients__list { list-style: none; margin: 0; padding: 0; }
.clients__list li { padding: 18px 0; border-top: 1px solid #3c413c; font: 600 clamp(1.8rem, 1.2rem + 2.4vw, 3rem)/1.05 var(--display); }
.clients__list li:last-child { border-bottom: 1px solid #3c413c; }
.clients--light { background: var(--wall); color: var(--ink); }
.clients--light p { color: var(--graphite); }
.clients--light .clients__list li { border-color: var(--shade); }
@media (min-width: 900px) { .clients__in { grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; } }

/* faq */
.faq { display: grid; gap: 0; max-width: 820px; margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--shade); }
.faq details:last-child { border-bottom: 1px solid var(--shade); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font: 600 1.375rem/1.15 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .4s var(--spring); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 64ch; color: var(--graphite); }
.faqsec__in { display: grid; gap: 8px; }
@media (min-width: 900px) { .faqsec__in { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* closing CTA */
.cta { background: var(--black); color: var(--paper); padding: clamp(64px, 9vw, 112px) 0; overflow: clip; }
.cta__in { display: grid; gap: 32px; align-items: center; }
.cta p { color: #c5ccc8; margin-top: 16px; font-size: 1.125rem; max-width: 46ch; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta__mark .mark { width: clamp(96px, 18vw, 200px); height: auto; }
@media (min-width: 900px) { .cta__in { grid-template-columns: auto 1fr; gap: 64px; } }

/* ------------------------------------------------ page heads */
.pagehead { padding: clamp(32px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }
.pagehead__in { display: grid; gap: 32px; align-items: end; }
.pagehead h1 { max-width: 16ch; }
.lead { margin-top: 20px; max-width: 58ch; font-size: 1.1875rem; color: var(--graphite); }
.pagehead__art { overflow: hidden; }
.cubes .mark { width: clamp(120px, 24vw, 260px); height: auto; }
@media (min-width: 900px) { .pagehead__in { grid-template-columns: 1.1fr 1fr; } .cubes { justify-self: end; } }

/* ------------------------------------------------ offering browser */
.browser__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 320px; display: flex; align-items: center; }
.search > .ic { position: absolute; left: 14px; color: var(--graphite); pointer-events: none; }
.search input { width: 100%; min-height: 52px; padding: 0 16px 0 48px; border: 2px solid var(--ink); border-radius: var(--r-sm); background: #fff; font: inherit; color: var(--ink); }
.search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(241, 137, 32, .45); }
.browser__count { margin: 0; color: var(--graphite); font-weight: 600; font-variant-numeric: tabular-nums; }
.filters { display: grid; gap: 10px; margin-bottom: 28px; }
.filters__row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--shade); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 .9375rem/1 var(--body); cursor: pointer; transition: background-color .2s, border-color .2s, transform .35s var(--spring); }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--reset { border-style: dashed; }
.items { display: grid; gap: 16px; }
@media (min-width: 700px) { .items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .items { grid-template-columns: repeat(3, 1fr); } }
.item { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--shade); transition: box-shadow .3s var(--ease-out), transform .4s var(--spring); }
.item:hover { box-shadow: 0 0 0 1px var(--ink), var(--lift); transform: translateY(-3px); }
.item[hidden] { display: none; }
.item:target { box-shadow: 0 0 0 3px var(--orange); }
.item__media { aspect-ratio: 3 / 2; background: var(--wall); overflow: hidden; }
.item__media img { width: 100%; height: 100%; object-fit: cover; }
.item__media--icon { display: grid; place-items: center; color: var(--ink); background: var(--wall) linear-gradient(135deg, transparent 0 calc(100% - 44px), var(--orange) calc(100% - 44px)); }
.item__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.item__cat { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .875rem; font-weight: 600; color: var(--graphite); }
.item h3 { font-size: 1.625rem; }
.item p { margin: 0; color: var(--graphite); }
mark { background: rgba(241, 137, 32, .4); color: inherit; border-radius: 2px; }
.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 8px; border-radius: 3px; background: var(--wall); font-size: .8125rem; font-weight: 600; }
.item__ask { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.empty { display: grid; justify-items: start; gap: 16px; padding: 40px; background: var(--wall); border-radius: var(--r); }
.empty[hidden] { display: none; }
.empty p { max-width: 52ch; }
.helps { background: var(--wall); }
.helps__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 24px; }
.helps__list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.helps__list .ic { width: 32px; height: 32px; color: var(--ink); }
.helps__list h3 { margin-bottom: 6px; }
.helps__list p { color: var(--graphite); }
.helps__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 760px) { .helps__list { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; } }
@media (min-width: 1100px) { .helps__list { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------ company */
.story__in { display: grid; gap: 32px; }
.story__year { display: grid; gap: 4px; align-content: start; }
.story__year .num { font: 700 clamp(4.5rem, 3rem + 7vw, 9rem)/.85 var(--display); color: var(--ink); }
.story__year span:last-child { font-weight: 600; color: var(--graphite); }
.story__text p { font-size: 1.1875rem; max-width: 56ch; }
.story__photo { margin: 0; border-radius: var(--r); overflow: hidden; }
.story__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .story__in { grid-template-columns: .8fr 1.2fr .8fr; gap: 48px; } .story__photo img { aspect-ratio: 3 / 4; } }
.how__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.how__list li { padding-top: 24px; border-top: 2px solid var(--ink); }
.how__list .ic--lg { color: var(--ink); margin-bottom: 16px; }
.how__list h3 { margin-bottom: 10px; }
.how__list p { color: var(--graphite); }
@media (min-width: 900px) { .how__list { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ------------------------------------------------ bid form */
.bid__in { display: grid; gap: 40px; }
@media (min-width: 1000px) { .bid__in { grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; } .bid__side { position: sticky; top: calc(var(--header) + 24px); } }
fieldset { margin: 0 0 28px; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 16px; font: 700 1.75rem/1 var(--display); }
.grid2 { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 16px; }
.field label, .label { display: block; margin: 0 0 6px; font-weight: 600; }
.opt { font-weight: 400; color: var(--graphite); font-size: .875rem; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--steel); border-radius: var(--r-sm); background: #fff; color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(241, 137, 32, .45); }
[aria-invalid=true] { border-color: #b3261e; }
.err { margin: 6px 0 0; color: #a1231b; font-size: .9375rem; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.radios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .radios { grid-template-columns: repeat(3, 1fr); } }
.radio { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--steel); border-radius: var(--r-sm); background: #fff; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, transform .35s var(--spring); }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.radio:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.radio:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.radio:active { transform: scale(.97); }
.form__note { margin-top: 14px; font-size: .9375rem; color: var(--graphite); }
.form__status { font-weight: 600; }
.success { display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: var(--r); box-shadow: 0 0 0 1px var(--shade); }
.success[hidden] { display: none; }
.success > .ic--xl { color: var(--paper); background: var(--orange); border-radius: var(--r-sm); padding: 8px; width: 56px; height: 56px; }
.success h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: 10px; }
.autoreply { padding: 20px; background: var(--paper); border-radius: var(--r-sm); border: 1px dashed var(--steel); font-size: .9375rem; }
.autoreply__h { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.card { padding: 24px; margin-bottom: 16px; background: #fff; border-radius: var(--r); box-shadow: 0 0 0 1px var(--shade); }
.card h2 { font-size: 1.6rem; margin-bottom: 14px; }
.card p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p .ic { width: 20px; height: 20px; color: var(--orange-2); }
.card a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.card .big { font: 700 1.6rem/1 var(--display); }
.map { border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--shade); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }
.open { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: .8125rem; font-weight: 700; }
.open:empty { display: none; }
.open.is-open { background: #d6efd8; color: #1d5b25; }
.open.is-closed { background: var(--wall); color: var(--graphite); }

/* prose */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.9rem; margin: 32px 0 10px; }

/* ------------------------------------------------ footer + action bar */
.footer { background: var(--ink); color: #d6dbd8; padding: 64px 0 32px; }
.footer a { color: var(--paper); }
.footer__in { display: grid; gap: 32px; }
.footer__brand p { margin-top: 16px; max-width: 40ch; }
.footer__lic { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--paper); }
.footer__lic .ic { color: var(--orange); }
.logo--light { color: var(--paper); }
.footer__h { font: 700 1.25rem/1 var(--display); color: var(--paper); margin-bottom: 12px; }
.footer p a { display: inline-block; padding: 2px 0; min-height: 0; }
.footer__nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #3c413c; font-size: .875rem; }
@media (min-width: 900px) { .footer__in { grid-template-columns: 1.4fr 1fr 1fr .7fr; } }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 248, 247, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--shade); }
.actionbar .btn { min-height: 48px; padding: 0 10px; font-size: 1.0625rem; gap: 6px; }
.actionbar .btn .ic { width: 18px; height: 18px; }
@media (max-width: 899px) { body { padding-bottom: 78px; } }
@media (min-width: 900px) { .actionbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
