/* Rohida: factory.html. Builds on tokens.css and site.css. */

:root { interpolate-size: allow-keywords; }

/* ---------- intro: hall held still, terms panel rises over it ---------- */
.f-intro { position: relative; }
.f-intro-stage {
  position: sticky; top: 0; height: 100svh; width: 100%;
  overflow: hidden; background: var(--ground-dark); color: var(--on-dark);
}
.f-intro-img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 55%; }
.f-intro-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(90, 58, 38, .4) 0%, rgba(90, 58, 38, .38) 40%, rgba(90, 58, 38, 0) 72%);
}
.f-intro [data-fx="arrive.raking-light"] { --fx-raking-colour: rgba(90, 58, 38, .5); --fx-raking-angle: 104deg; --fx-raking-penumbra: 22%; }
.f-intro-head {
  position: absolute; left: var(--pad); right: var(--pad);
  bottom: calc(30svh + clamp(28px, 4vw, 56px));
  max-width: 1100px;
}
.f-intro-head .label { color: color-mix(in srgb, var(--on-dark) 82%, transparent); margin-bottom: 18px; }
.f-h1 { font-size: clamp(44px, 5.6vw, 84px); color: var(--on-dark); max-width: 13ch; }

.f-panel { position: relative; z-index: 2; margin-top: -30svh; padding-block: clamp(36px, 5vw, 72px) clamp(64px, 8vw, 112px); }
.f-panel-grid { row-gap: 22px; align-items: start; }
.f-panel-label { padding-top: 10px; }
.f-answer {
  font-family: var(--font-display), Georgia, serif; font-weight: 300;
  font-size: clamp(22px, 1.9vw, 30px); line-height: 1.32; letter-spacing: -0.005em;
  max-width: 34ch; text-wrap: pretty;
}
.f-answer b { font-weight: 400; color: var(--ink); box-shadow: inset 0 -1px 0 var(--kiln); }
.f-panel-cta { margin-top: 32px; }
@media (min-width: 900px) {
  .f-panel-label { grid-column: 1 / 3; }
  .f-panel-body { grid-column: 3 / 11; }
}

/* ---------- process: six steps as a timed table ---------- */
.f-process { padding-block: clamp(56px, 7vw, 120px) clamp(96px, 12vw, 176px); border-top: 1px solid var(--hairline); }
.f-process-head .label { margin-bottom: 18px; }
.f-steps-wrap { position: relative; }
.f-steps-keys { display: none; }
.f-steps { list-style: none; margin: 0; padding: 0; }
.f-step { position: relative; display: grid; grid-template-columns: 1fr; gap: 6px; padding: 22px 0 26px; }
.f-step > [data-fx] { position: absolute; left: 0; right: 0; top: 0; background: var(--hairline); }
.f-step:first-child > [data-fx] { background: var(--rule); }
.f-step-t { font-size: clamp(22px, 1.6vw, 26px); line-height: 1.15; }
.f-step-l { font-size: 17px; line-height: 1.5; max-width: 40ch; }
.f-step-f { color: var(--kiln); font-variant-numeric: tabular-nums; }
.f-step-f:empty { display: none; }
@media (min-width: 900px) {
  .f-process-head { grid-column: 1 / 4; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .f-steps-wrap { grid-column: 5 / 13; }
  .f-steps-keys {
    display: grid; grid-template-columns: 30% 1fr 24%; gap: 24px; padding-bottom: 14px;
  }
  .f-step { grid-template-columns: 30% 1fr 24%; gap: 24px; align-items: baseline; padding: 26px 0 30px; }
  .f-step-f:empty { display: block; }
  .f-step-f { text-align: left; }
}

/* ---------- timber: words fill to ink beside the drying stack ---------- */
.f-timber { padding-block: clamp(72px, 9vw, 128px) clamp(88px, 11vw, 160px); }
.f-timber-grid { row-gap: 36px; align-items: center; }
.f-timber-text .label { margin-bottom: 22px; }
.f-fill {
  font-family: var(--font-display), Georgia, serif; font-weight: 300;
  font-size: clamp(24px, 2.2vw, 34px); line-height: 1.3; letter-spacing: -0.005em;
  max-width: 30ch; text-wrap: pretty;
}
.f-fill .w { transition: none; }
.f-timber-fig { max-width: 520px; }
.f-timber-spec { margin-top: clamp(48px, 6vw, 88px); }
.f-spec .spec-row > [data-fx] { background: var(--hairline); }
.f-spec .spec-row:first-child > [data-fx] { background: var(--rule); }
@media (min-width: 900px) {
  .f-timber-track { height: 220svh; }
  .f-timber-stage { position: sticky; top: 0; height: 100svh; width: 100%; display: flex; align-items: center; }
  .f-timber-stage > .grid { width: 100%; }
  .f-timber-fig { grid-column: 1 / 5; max-height: 74svh; aspect-ratio: 3 / 4; width: auto; justify-self: start; }
  .f-timber-text { grid-column: 6 / 13; }
  .f-timber-spec .f-spec { grid-column: 6 / 13; }
}

/* ---------- people: the full-bleed cut ---------- */
.f-people { position: relative; background: var(--ground-dark); color: var(--on-dark); }
.f-people-photo { position: relative; height: 78svh; overflow: hidden; }
.f-people-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116% !important; object-fit: cover; }
.f-people-tiles { position: absolute; top: clamp(20px, 4vw, 64px); right: var(--pad); display: flex; gap: 12px; align-items: flex-start; }
.f-tile { margin: 0; width: 26vw; aspect-ratio: 1 / 1; outline: 1px solid color-mix(in srgb, var(--on-dark) 30%, transparent); }
.f-tile-b { margin-top: 10vw; width: 20vw; }
.f-people-card { padding: 36px var(--pad) 48px; }
.f-people-card .label { margin-bottom: 16px; }
.f-people-h { font-size: clamp(32px, 2.8vw, 44px); margin-bottom: 18px; }
.f-people-body { font-size: 18px; line-height: 1.55; max-width: 38ch; }
@media (min-width: 900px) {
  .f-people { height: 100svh; overflow: hidden; }
  .f-people-photo { position: absolute; inset: 0; height: auto; }
  .f-tile { width: 14vw; }
  .f-tile-b { width: 10.5vw; margin-top: 8vw; }
  .f-people-card {
    position: absolute; left: var(--pad); bottom: clamp(32px, 4vw, 64px);
    width: min(560px, 42vw); padding: clamp(32px, 3vw, 48px);
  }
}

/* ---------- place: address beside the blue wall ---------- */
.f-place-grid { row-gap: 40px; align-items: center; }
.f-place-fig { margin: 0; aspect-ratio: 4 / 3; }
.f-place-fig img { width: 100%; height: 100% !important; object-fit: cover; transform-origin: 50% 60%; }
.f-place-text > * + * { margin-top: 20px; }
.f-place-h { font-size: clamp(36px, 3.4vw, 56px); }
.f-note { color: var(--kiln); }
.f-place-spec { margin-top: 28px !important; }
.f-place-spec .spec-row > [data-fx] { background: var(--hairline); }
.f-place-spec .spec-row:first-child > [data-fx] { background: var(--rule); }
.f-mail { font-size: 18px; }
@media (min-width: 900px) {
  .f-place-fig { grid-column: 1 / 7; }
  .f-place-text { grid-column: 8 / 13; }
  .f-place-spec .spec-row { grid-template-columns: 110px 1fr; }
}

/* ---------- faq: hairline rows that open ---------- */
.f-faq-head .label { margin-bottom: 18px; }
.f-faq-cta { margin-top: 24px; }
.f-faq-list { border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent); }
.f-q { border-top: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent); }
.f-q:first-child { border-top-color: var(--kiln); }
.f-q summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 36px 1fr 28px; gap: 12px; align-items: baseline;
  min-height: 64px; padding: 22px 0;
}
.f-q summary::-webkit-details-marker { display: none; }
.f-q-t { font-size: clamp(21px, 1.7vw, 26px); line-height: 1.2; }
.f-plus { position: relative; width: 20px; height: 20px; align-self: center; transition: transform var(--dur-standard) var(--ease-plane); }
.f-plus::before, .f-plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; }
.f-plus::after { transform: rotate(90deg); }
.f-q[open] .f-plus { transform: rotate(45deg); }
.f-q summary:hover .f-q-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.f-a { font-size: 17px; line-height: 1.55; max-width: 46ch; padding: 0 0 26px 48px; color: color-mix(in srgb, var(--on-dark) 88%, transparent); }
.f-q::details-content {
  height: 0; overflow: clip;
  transition: height var(--dur-standard) var(--ease-plane), content-visibility var(--dur-standard) allow-discrete;
}
.f-q[open]::details-content { height: auto; }
@media (min-width: 900px) {
  .f-faq-head { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--header-h) + 40px); }
  .f-faq-list { grid-column: 6 / 13; }
  .f-q summary { grid-template-columns: 56px 1fr 28px; }
  .f-a { padding-left: 68px; }
}

/* ---------- ask ---------- */
.f-ask { min-height: 70svh; display: flex; align-items: center; padding-block: clamp(80px, 10vw, 144px); }
.f-ask-grid { width: 100%; align-items: end; row-gap: 32px; }
.f-ask-h { font-size: clamp(48px, 7vw, 120px); color: var(--accent-ink); }
.f-ask-side > * + * { margin-top: 28px; }
.f-ask .lede { color: var(--accent-ink); }
@media (min-width: 900px) {
  .f-ask-h { grid-column: 1 / 8; }
  .f-ask-side { grid-column: 8 / 13; padding-bottom: 12px; }
}
.btn-wipe { position: relative; overflow: hidden; }
.btn-wipe-clone {
  position: absolute; inset: 0; display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px;
  background: var(--ink); color: var(--accent-ink);
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-standard) var(--ease-plane);
}
.btn-wipe-clone .arrow { transform: translateX(4px); }
.btn-wipe:hover .btn-wipe-clone, .btn-wipe:focus-visible .btn-wipe-clone { clip-path: inset(0 0 0 0); }
.ground-indigo .btn-wipe:hover { background: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  .f-q::details-content { transition: none; }
}
