/* /v4-custom and /v4-actuators: built on v4-film.css (.f-*), adds footage heroes and long-form sections. */

/* ---------- shared: long-form text in the film style ---------- */
.p-section { padding-top: 7rem; padding-bottom: 7rem; }
.p-section + .p-section { padding-top: 0; }
.p-alt { background: var(--f-bg-2); }
.p-alt + .p-section, .p-section + .p-alt { padding-top: 7rem; }
.p-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
.p-grid > :first-child .f-title { position: sticky; top: 6rem; }
.p-head .f-title { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; }
.p-body { max-width: 44rem; }
.p-body > * + * { margin-top: 1.25rem !important; }
.p-body p, .p-body li { color: var(--f-ink); }
.p-body a { color: var(--f-accent-ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.p-body a:hover { color: var(--f-accent); }
.p-body strong { font-weight: 700; }
.p-note { font-size: .9375rem !important; color: var(--f-dim) !important; }
.p-list { list-style: none; margin: 0; padding: 0; }
.p-list li { font-size: 1.1875rem; line-height: 1.55; padding: 1rem 0 1rem 1.75rem; border-top: 1px solid var(--f-line); position: relative; }
.p-list li::before { content: ""; position: absolute; left: 0; top: 1.75rem; width: .75rem; border-top: 2px solid var(--f-accent); }
.p-list li:last-child { border-bottom: 1px solid var(--f-line); }
ol.p-list { counter-reset: p; }
ol.p-list li { counter-increment: p; padding-left: 2.75rem; }
ol.p-list li::before { content: counter(p, decimal-leading-zero); border: 0; width: auto; top: 1.1rem; font-size: .875rem; letter-spacing: .1em; color: var(--f-accent-ink); }

/* tables: lw-table from main.css, recoloured to the film tokens */
.f-page .lw-table-wrap { margin: 2rem 0 !important; }
.f-page .lw-table { color: var(--f-ink); background: transparent; }
.f-page .lw-table th, .f-page .lw-table td { border-color: var(--f-line); background: transparent; color: var(--f-ink); }
.f-page .lw-table thead th { text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; font-weight: 400; color: var(--f-dim); }
.f-page .lw-table .lw-hi { background: rgba(230, 130, 7, .08); }

/* the lead-time chart and order flow from main.css, on film tokens */
.f-page .pr-gantt, .f-page .pr-flow { color: var(--f-ink); }

/* FAQ */
.p-faq details { border-top: 1px solid var(--f-line); }
.p-faq details:last-of-type { border-bottom: 1px solid var(--f-line); }
.p-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; font-size: 1.375rem; text-transform: uppercase; letter-spacing: .03em; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: "+"; font-size: 1.75rem; line-height: 1; color: var(--f-accent); transition: transform .2s var(--f-ease); }
.p-faq details[open] summary::after { transform: rotate(45deg); }
.p-faq details > p { padding: 0 0 1.5rem; max-width: 44rem; color: var(--f-dim); }
.p-faq summary:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 3px; }

/* offer line (price, lead time) */
.p-offer { font-size: 1rem !important; color: var(--f-dim); max-width: 34em; }
.p-offer strong { color: var(--f-ink); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
.p-offer a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

/* the closing call to action */
.p-cta { text-align: center; padding: 8rem var(--f-gutter); background: var(--f-bg-2); }
.p-cta .f-title { max-width: 14em; margin-left: auto; margin-right: auto; }
.p-cta p:not(.f-label) { max-width: 32em; margin: 0 auto; color: var(--f-dim); }
.p-cta .f-actions { justify-content: center; }

/* pause button for footage (shape from v4-film's .f-pause) */
.p-pause { position: absolute; right: var(--f-gutter); bottom: 1.25rem; z-index: 2; }

/* ---------- /v4-custom: the transparent actuator turns beside the headline; follows the theme ---------- */
.c-hero {
    position: relative; min-height: 100svh; background: var(--f-bg-2); overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 2rem;
    padding: 7rem var(--f-gutter) 4rem;
}
.theme-dark .c-hero { background: var(--f-bg); }
.c-hero .f-display { font-size: clamp(3rem, 6vw, 6rem); max-width: 8em; }
.c-hero p { color: var(--f-dim); max-width: 30em; }
.c-hero .c-sub { font-size: clamp(1.25rem, 1.8vw, 1.6rem) !important; line-height: 1.3 !important; color: var(--f-ink); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1.5rem !important; max-width: 22em; }
.c-hero .p-offer { margin-top: 2rem !important; }
.c-stage { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.c-stage video, .c-stage img { display: block; width: 100%; max-width: 44rem; height: auto; aspect-ratio: 1; }
/* a soft floor shadow so the cut-out stands on something */
.c-stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 9%; height: 2.5rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(49, 43, 37, .22), transparent); z-index: -0; pointer-events: none; }
.theme-dark .c-stage::after { background: radial-gradient(closest-side, rgba(230, 130, 7, .22), transparent); }
.c-stage > * { position: relative; z-index: 1; }

/* the spectrum: catalogue -> modified -> custom, the last one is what this page is about */
.m-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: end; }
.m-intro .f-title { margin-bottom: 0; }
.m-intro p { color: var(--f-dim); max-width: 34em; }
.m-scale { display: flex; justify-content: space-between; margin: 4rem 0 0; font-size: .8125rem; text-transform: uppercase; letter-spacing: .16em; color: var(--f-dim); }
.m-levels { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.m-levels::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--f-line), var(--f-accent)); }
.m-levels li { padding: 2.25rem 2rem 2.5rem; border-right: 1px solid var(--f-line); display: flex; flex-direction: column; }
.m-levels li:first-child { padding-left: 0; }
.m-levels li:last-child { border-right: 0; background: var(--f-bg-2); }
.theme-dark .m-levels li:last-child { background: var(--f-bg-2); }
.m-levels h3 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin: 0 0 1.75rem; }
.m-levels li:last-child h3 { color: var(--f-accent-ink); }
.m-levels dl { margin: 0; display: grid; gap: 1.25rem; }
.m-levels dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: var(--f-dim); margin-bottom: .35rem; }
.m-levels dd { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.m-tag { align-self: flex-start; margin-top: auto; padding-top: 1.75rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: var(--f-accent-ink); }
.m-outro { margin-top: 3rem !important; max-width: 46rem; }
.m-outro a { color: var(--f-accent-ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* full-width order flow under the costs: same band, no gap */
.p-section.p-alt + .p-flow { padding-top: 1.5rem; }
.p-flow .pr-flow { margin: 0 0 2.5rem; }
.p-flow .pr-flow h3 { font-size: 1.5rem; font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }
.p-flow .pr-flow p { font-size: 1.0625rem !important; }
.p-flow .p-body a { color: var(--f-accent-ink); }

/* ---------- /v4-actuators: the footage fills the first screen, the nav and the copy sit on it (as on /v4-film) ---------- */
.a-page .f-nav-side a, .a-page .f-nav .f-theme { color: #312b25; }
.a-hero { background: #d2c6ba; color: #312b25; --f-ink: #312b25; --f-dim: #4a4037; }
.a-hero .f-hero-video { mix-blend-mode: normal; object-position: 15% 50%; }   /* when the screen crops the 16:9 frame, keep the actuators whole */
/* copy centred left-right, in the open wall between the two rails (no wash).
   The footage is 16:9 with object-fit: cover, so its shown height is max(hero height, 56.25vw) and it is
   centred vertically; the gap between the rails runs from 49.4% to 85.6% of the frame, centre 67.5%. */
.a-hero .f-hero-copy {
    z-index: 2; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%);
    top: calc(50% + 0.175 * max(max(100svh, 600px), 56.25vw));
    width: min(56rem, calc(100% - 2 * var(--f-gutter))); text-align: center;
}
.a-hero .f-display { font-size: clamp(2.75rem, min(6vw, 10svh), 6rem); max-width: none; white-space: nowrap; margin: 0 auto 1rem; }
.a-hero .f-hero-copy > p:not(.f-label) { margin-left: auto; margin-right: auto; }
.a-hero .f-actions { justify-content: center; margin-top: 1.25rem; }
.a-hero .f-label { color: #6a5d50; }
.a-hero .f-hero-copy > p:not(.f-label) { color: #4a4037; }
.theme-dark .a-hero .f-btn-ghost { color: #494036; border-color: #67594c; }
.theme-dark .a-hero .f-btn-ghost:hover { background: rgba(73, 64, 54, .08); }
.a-hero .f-pause { z-index: 3; background: rgba(210, 198, 186, .85); color: #312b25; border-color: rgba(49, 43, 37, .3); }

/* motion control: what the video shows, then three reasons side by side */
.a-motion { padding-top: 8rem; padding-bottom: 7rem; }
.a-motion-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 1.5rem 4rem; align-items: end; }
.a-motion-head .f-label { grid-column: 1 / -1; margin-bottom: 0 !important; }
.a-motion-head .f-title { margin: 0; }
.a-motion-text p { color: var(--f-dim); }
.a-motion-text p + p { margin-top: 1rem; }
.a-motion-points { list-style: none; margin: 4.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.a-motion-points li { border-top: 1px solid var(--f-accent); padding-top: 1.5rem; }
.a-motion-points h3 { font-size: 1.625rem; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .6rem; }
.a-motion-points p { color: var(--f-dim); font-size: 1.0625rem !important; }
.a-motion-points a { color: var(--f-accent-ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* the turning actuator section further down /v4-actuators */
/* follows the theme; the transparent clip sits on the page colour */
.a-turn { background: var(--f-bg); }
.a-turn .f-split { padding-top: 7rem; padding-bottom: 7rem; }
.a-turn-media { position: relative; }
.a-turn-media video, .a-turn-media img { display: block; width: 100%; max-width: 36rem; height: auto; aspect-ratio: 1; margin: 0 auto; }
.a-turn .f-pause { position: absolute; right: 0; bottom: 0; }

/* ---------- small screens ---------- */
@media (max-width: 899px) {
    .p-section, .p-alt + .p-section, .p-section + .p-alt { padding-top: 4.5rem; padding-bottom: 4.5rem; }
    .p-section + .p-section { padding-top: 0; }
    .p-section.p-alt + .p-flow { padding-top: 1rem; }
    .p-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .p-grid > :first-child .f-title { position: static; }
    .p-faq summary { font-size: 1.125rem; }
    .p-cta { padding: 5rem var(--f-gutter); }
    .c-hero { grid-template-columns: minmax(0, 1fr); padding-top: 5.5rem; gap: 0; }
    .c-stage { order: -1; margin: 0 auto; width: min(100%, 26rem); }
    .c-hero .f-pause { top: 5rem; bottom: auto; }
    .m-intro { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .m-scale { margin-top: 2.5rem; }
    .m-levels { grid-template-columns: minmax(0, 1fr); }
    .m-levels::before { width: 3px; height: auto; bottom: 0; right: auto; background: linear-gradient(180deg, var(--f-line), var(--f-accent)); }
    .m-levels li, .m-levels li:first-child { padding: 1.75rem 1.25rem 2rem 1.75rem; border-right: 0; border-bottom: 1px solid var(--f-line); }
    /* phones: the footage keeps its full frame at the top (under the nav), the copy follows on the wall colour */
    .a-page .a-hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
    .a-hero .f-hero-video { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; margin-top: 64px; object-position: 50% 50%; }
    .a-hero .f-hero-copy { position: static; transform: none; width: auto; padding: 2rem var(--f-gutter) 3rem; }
    .a-hero .f-display { white-space: normal; font-size: clamp(2.75rem, 12vw, 4rem); }
    .a-hero .f-pause { top: calc(64px + 56.25vw - 3rem); bottom: auto; right: .75rem; width: 2.25rem; height: 2.25rem; }
    .a-turn .f-split { padding-top: 4.5rem; padding-bottom: 4.5rem; }
    .a-motion { padding-top: 4.5rem; padding-bottom: 4rem; }
    .a-motion-head, .a-motion-points { grid-template-columns: minmax(0, 1fr); }
    .a-motion-points { margin-top: 2.5rem; gap: 2rem; }
}
