/* ---------- Listing hero ---------- */
.list-hero { position: relative; height: 100vh; min-height: 60rem; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 0 var(--gm) 12rem; }
.list-hero .blurred img { filter: blur(56px) brightness(.62) saturate(1.4); }
.list-hero .blurred::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.15) 45%, #000 100%); }
.list-hero .body { width: 44.8rem; max-width: 100%; margin-top: .8rem; }

/* ---------- Listing cards ---------- */
.cards { display: flex; flex-direction: column; }
.cards > li { position: relative; height: 100vh; min-height: 56rem; }
.card { position: relative; z-index: 1; height: 100%; overflow: clip; isolation: isolate; display: flex; align-items: center; justify-content: center; text-align: center; }
.card .bgwrap { position: absolute; inset: 0; z-index: -1; }
.card .pic { position: relative; height: 100%; }
.card .pic img { filter: brightness(.72) contrast(1.05) saturate(1.05); }
.card .bgwrap::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,.55), rgba(0,0,0,.15) 70%), linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.45)); }
.card .copy { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 0 var(--gm); }
.card .copy .tag { margin-bottom: .8rem; }
.card .copy .body { width: 44.8rem; max-width: 100%; color: var(--white); margin: .8rem 0 3.2rem; filter: drop-shadow(rgba(0,0,0,.6) 0 8px 16px); }

/* ---------- Detail ---------- */
.d-head { background: var(--bc1); padding: 23.2rem 4rem 3.2rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 3.2rem; }
.d-head .intro-col { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.d-head .intro-col { min-width: 0; max-width: 100%; }
.d-head .body { color: var(--mute); width: 56.8rem; max-width: 100%; padding-left: 2.4rem; }
.d-head dl { display: flex; gap: clamp(3.2rem, 9vw, 12.8rem); padding-bottom: .4rem; }
.d-head dt { color: var(--label); margin-bottom: .4rem; }
.d-head dd { font-size: 1.8rem; color: var(--bc5); }
.d-head dd button { cursor: pointer; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.d-hero { position: relative; height: 100vh; overflow: hidden; background: var(--bc1); }
.d-hero .pic { position: absolute; inset: 0; }
.d-hero .pic img { height: 140%; top: -20%; }
.d-story { background: var(--bc1); padding: 12.8rem var(--gm); display: flex; flex-direction: column; align-items: center; gap: 4.8rem; }
.d-story p { width: 68.8rem; max-width: 100%; text-align: center; color: var(--bc5); }
.d-story em { font-style: italic; }
.gallery-wrap { position: relative; background: var(--bc1); isolation: isolate; }
.gallery-wrap .redden { position: absolute; inset: 0; background: var(--bc3); opacity: 0; z-index: -1; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; padding: 0 4rem 12.8rem; }
.gallery figure { aspect-ratio: 4 / 5; background: rgba(12,12,12,.8); }
.gallery figure:nth-child(3n), .gallery figure:last-child:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery figure img { height: 120%; top: -10%; }
.next { position: relative; height: 100vh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; text-align: center; }
.next .pic { position: absolute; inset: 0; z-index: -1; }
.next .pic img { filter: brightness(.35) contrast(1.1) saturate(.6); transition: filter 1s var(--bezzy2); }
.next:hover .pic img { filter: brightness(.5) contrast(1.1) saturate(.8); }
.specs-panel { position: fixed; inset: 0 0 0 auto; width: min(52rem, 100%); z-index: 995; background: var(--bc2); padding: 12rem 4rem 4rem; display: flex; flex-direction: column; gap: 2.4rem; transform: translateX(100%); transition: transform .9s var(--bezzy); }
.specs-panel.open { transform: none; }
.specs-panel li { padding: 1.6rem 0; border-bottom: 1px solid rgba(242,241,237,.1); }

/* ---------- Forms ---------- */
.form-sec { position: relative; z-index: 2; background: var(--bc3); padding: 12.8rem 13.6rem 13.6rem; display: grid; grid-template-columns: 1fr 56.8rem; gap: 6.4rem; }
.form-sec .intro-col { position: sticky; top: 16rem; align-self: start; display: flex; flex-direction: column; gap: 2.4rem; width: 56.8rem; max-width: 100%; }
.form-sec .intro-col b { color: var(--bc5); font-weight: 400; }
form.fields { display: flex; flex-direction: column; gap: 3.2rem; }
.field { display: flex; flex-direction: column; gap: .8rem; }
.field > label, .field > .lbl { display: flex; justify-content: space-between; color: var(--bc5); }
.field > label small, .field > .lbl small { color: var(--label); font-size: 1rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.6rem; border: 1px solid var(--line); color: var(--bc5);
  font-size: 1.8rem; line-height: 1.4; font-weight: 300; letter-spacing: -.05rem; transition: border-color .3s ease-in-out;
}
.field select { padding-right: 5.6rem; appearance: none; color: var(--label); background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23f2f1ed' stroke-width='1.2'/></svg>") no-repeat right 2rem center; }
.field select.chosen { color: var(--bc5); }
.field select option { background: var(--bc2); color: var(--bc5); }
.field textarea { height: 16rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--label); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(242,241,237,.6); }
.field.invalid input, .field.invalid select { border-color: #cc4b37; }
.radios { display: grid; grid-template-columns: 1fr 1fr; }
.radios label { position: relative; display: flex; align-items: center; gap: 1.2rem; padding: 1.6rem; border: 1px solid var(--line); cursor: pointer; transition: border-color .3s ease-in-out; }
.radios label + label { border-left: 0; }
.radios input { position: absolute; opacity: 0; }
.radios i { width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 1px solid var(--label); transition: background .3s, box-shadow .3s; }
.radios input:checked + i { background: var(--bc5); box-shadow: 0 0 0 3px rgba(242,241,237,.15); border-color: var(--bc5); }
.radios label:has(input:checked) { border-color: rgba(242,241,237,.5); }
.drop { position: relative; border: 1px dashed var(--line); padding: 3.2rem 1.6rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; cursor: pointer; transition: border-color .3s, background .3s; }
.drop svg { width: 2rem; height: 2rem; stroke: currentColor; fill: none; margin-bottom: .8rem; }
.drop.hover { border-color: var(--bc5); background: rgba(0,0,0,.15); }
form.fields .btn { width: 100%; }
.form-note { min-height: 2rem; color: var(--bc5); }

/* ---------- Contact ---------- */
.c-hero { position: relative; height: 100vh; overflow: hidden; isolation: isolate; }
.c-hero .bg { position: absolute; inset: 0; z-index: -1; }
.c-hero .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.4) saturate(.8); }
.c-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(12,12,12,.9) 65%); }
.c-hero .copy { position: absolute; left: 73.6rem; top: 50%; translate: 0 -50%; width: 56.8rem; display: flex; flex-direction: column; align-items: flex-start; gap: 4rem; }
.c-info { position: relative; z-index: 2; margin-top: -10vh; padding: 0 13.6rem 12.8rem; display: grid; grid-template-columns: 44.8rem 1fr; gap: 6.4rem; align-items: end; background: linear-gradient(180deg, transparent, var(--bc1) 30%, var(--bc3) 100%); }
.c-info > * { min-width: 0; }
.c-info .rows { border: 1px solid rgba(242,241,237,.1); background: rgba(12,12,12,.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.c-info .rows li { height: 16.3rem; padding: 3.2rem; display: grid; grid-template-columns: 1fr auto; align-content: start; row-gap: .8rem; border-bottom: 1px solid rgba(242,241,237,.1); }
.c-info .rows li:last-child { border-bottom: 0; }
.c-info .rows .label { color: var(--label); }
.c-info .rows h3 { grid-column: 1; margin-top: .8rem; }
.c-info .rows p { grid-column: 1; }
.c-info .rows svg { grid-row: 1 / span 2; grid-column: 2; width: 2rem; height: 2rem; stroke: var(--label); fill: none; stroke-width: 1.3; }
.c-info .sites { display: grid; grid-template-columns: 1fr 1fr; }
.c-info .sites .btn { width: 100%; backdrop-filter: blur(8px); }
.c-info .sites .btn + .btn { border-left: 0; }
.c-info .side { overflow: hidden; padding-bottom: 4rem; }
.process { z-index: 2; position: relative; overflow: hidden; isolation: isolate; padding: 12.8rem 13.6rem; display: flex; flex-direction: column; gap: 6.4rem; min-height: 100vh; }
.process .blurred img { filter: blur(40px) brightness(.45); height: 150%; top: -25%; }
.process ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.process li { aspect-ratio: 5 / 6; padding: 3.2rem; display: flex; flex-direction: column; justify-content: space-between; background: rgba(242,241,237,.08); border: 1px solid rgba(242,241,237,.08); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.process li b { font-family: var(--serif); font-variation-settings: "opsz" 72; font-style: italic; font-weight: 300; font-size: clamp(6.4rem, 8vw, 12rem); line-height: .9; letter-spacing: -.2rem; }
.process li h3 { margin-bottom: .8rem; }

/* ---------- Legal ---------- */
.legal-page { background: var(--bc1); padding: 23.2rem var(--gm) 12.8rem; }
.legal-page > * { max-width: 76rem; margin-left: auto; margin-right: auto; }
.legal-page h1 { margin-bottom: 4.8rem; }
.legal-page h2 { margin: 4.8rem auto 1.2rem; }

@media (max-width: 1100px) {
  .form-sec { grid-template-columns: minmax(0, 1fr); padding: 9.6rem var(--gm); }
  .form-sec > * { min-width: 0; }
  .form-sec .intro-col { width: auto; }
  .form-sec .intro-col { position: static; }
  .c-hero .copy { left: var(--gm); right: var(--gm); width: auto; }
  .c-info { grid-template-columns: 1fr; padding: 0 var(--gm) 9.6rem; }
  .process { padding: 9.6rem var(--gm); }
}
@media (max-width: 767px) {
  .d-head { flex-direction: column; align-items: flex-start; padding: 16rem var(--gm) 3.2rem; }
  .d-head .body { padding-left: 0; width: auto; }
  .gallery { grid-template-columns: 1fr; padding: 0 var(--gm) 9.6rem; }
  .gallery figure:nth-child(3n) { aspect-ratio: 4 / 5; }
  .process ol { grid-template-columns: 1fr; }
  .process li { aspect-ratio: auto; min-height: 26rem; gap: 4rem; }
  .c-info .rows li { height: auto; }
}

/* Sections after the sticky contact hero must paint above it. */
[data-page="contact"] .banner, [data-page="contact"] .site-footer { z-index: 2; }

/* ---------- Client fleet cards ---------- */
.card .copy .body { margin: .4rem 0 2.4rem; }
.card .acts { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.c-info .rows h3 a:hover { color: var(--accent); }

/* ---------- Fleet WebGL stage ---------- */
.fleet-gl { position: relative; }
.gl-stage { display: none; }
.gl-on .gl-stage { display: block; position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; z-index: 0; }
.gl-stage canvas { width: 100%; height: 100%; display: block; }
.gl-stage .scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 62%, rgba(0,0,0,.55) 100%); }
.gl-on .cards { position: relative; z-index: 1; }
.gl-on .card .bgwrap { display: none; }
.gl-on .card { overflow: visible; }

/* dark tag shimmer */
.tag > span:not(.hot) { position: relative; overflow: hidden; backdrop-filter: blur(8px); }
.tag > span:not(.hot)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(242,241,237,.3), transparent); transform: translateX(-100%); animation: tagshine 1.6s infinite; }
@keyframes tagshine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .tag > span::after { animation: none; } }

/* Fleet: nothing blurs over the live canvas (backdrop-filter re-renders every frame) */
.gl-on .fleet-gl .btn, .gl-on .fleet-gl .tag > span { backdrop-filter: none; -webkit-backdrop-filter: none; }
.gl-on .fleet-gl .btn { background: rgba(0, 0, 0, .35); }
/* Phones: text on top, the car rests on the bottom half (as the portrait shader frames it) */
@media (max-aspect-ratio: 1/1) {
  .gl-on .card { align-items: flex-start; }
  .gl-on .card .copy { padding-top: 11vh; }
  .gl-on .gl-stage .scrim { background: linear-gradient(180deg, rgba(12,12,12,.85) 0%, rgba(12,12,12,.35) 38%, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%); }
}
.tag { flex-wrap: wrap; justify-content: center; }
.tag > span { white-space: nowrap; }
@media (max-width: 767px) { .tag > span { letter-spacing: .2rem; } .card .copy .t-l { font-size: 4.4rem; } }
.c-info .sites + .sites .btn { border-top: 0; }
@media (max-width: 767px) { .c-info .sites .btn { padding: 1.6rem .8rem; } .c-info .sites .btn > span { letter-spacing: .16rem; } }
