/* garage-conversions/garage-to-home-office.html: the office story inside the shared ROOM-FAMILY panel, plus the page's
   sections: annotated elevation, configurator, branching flowchart, price note, dialogue FAQ. Uses shared tokens only. */
.page-office { --font: var(--font-family); --sp-section: var(--sp-section-tight); --sp-head: var(--sp-head-tight); }

/* ---------------------------------------------------------------- hero story "Wire the desk wall" (inside .rh__story) */
.of__bp { position: absolute; inset: 0; overflow: hidden; }
.of__bp-in { position: absolute; inset: 0; }
.of__bpimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(1) hue-rotate(180deg) saturate(3.2) brightness(.62) contrast(1.15); }
.of__grid, .of__route { position: absolute; inset: 0; width: 100%; height: 100%; }
.of__route path, .of__route rect, .of__route circle { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.of__route .of__cable { stroke: #ffd38a; stroke-width: 3.5; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.of__route .of__cu { fill: rgba(21, 24, 43, .55); }
.of__route .of__glow { fill: rgba(255, 211, 138, .35); stroke: none; }
.of__m { transform-box: fill-box; transform-origin: 50% 50%; }
.of__lab { position: absolute; left: 24%; top: 41%; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px; transform: translateY(-100%); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: #ffd38a; white-space: nowrap; }
.of__lab i { width: 8px; height: 8px; background: var(--ink); }
.of__carriage { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ink); box-shadow: 0 2px 0 #ffd38a, 0 8px 20px rgba(0, 0, 0, .35); }
.rh__tile svg path, .rh__tile svg rect, .rh__tile svg circle { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.rh__tile svg .of__cable { stroke: var(--cobalt); stroke-width: 2.4; }
.rh__tile svg .of__glow { fill: rgba(30, 78, 216, .12); stroke: none; }
.rh__tile span { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

.rh--office.is-story .of__cable { stroke-dashoffset: 1; stroke-linecap: butt; }
.rh--office.is-story .of__m, .rh--office.is-story .of__lab, .rh--office.is-story .of__cu, .rh--office.is-story .of__cu-l { opacity: 0; }
.rh--office.is-play .of__cu, .rh--office.is-play .of__cu-l { animation: of-in .3s cubic-bezier(.65, 0, 0, 1) .15s forwards; }
.rh--office.is-play .of__cable { animation: of-draw 1.2s cubic-bezier(.65, 0, 0, 1) .3s forwards; }
.rh--office.is-play .of__m--1 { animation: of-pop .35s cubic-bezier(.65, 0, 0, 1) .65s forwards; }
.rh--office.is-play .of__m--2 { animation: of-pop .35s cubic-bezier(.65, 0, 0, 1) .8s forwards; }
.rh--office.is-play .of__m--3 { animation: of-pop .35s cubic-bezier(.65, 0, 0, 1) .95s forwards; }
.rh--office.is-play .of__m--4 { animation: of-pop .45s cubic-bezier(.65, 0, 0, 1) 1.35s forwards; }
.rh--office.is-play .of__lab { animation: of-lab .35s cubic-bezier(.65, 0, 0, 1) 1.5s forwards; }
.rh--office.is-play .of__bp { animation: of-down 1.2s cubic-bezier(.65, 0, .35, 1) 1.9s forwards; }
.rh--office.is-play .of__bp-in { animation: of-up 1.2s cubic-bezier(.65, 0, .35, 1) 1.9s forwards; }
@keyframes of-in { to { opacity: 1; } }
@keyframes of-draw { to { stroke-dashoffset: 0; } }
@keyframes of-pop { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.18); } 100% { opacity: 1; transform: none; } }
@keyframes of-lab { from { opacity: 0; transform: translateY(-60%); } to { opacity: 1; transform: translateY(-100%); } }
@keyframes of-down { from { transform: none; } to { transform: translateY(101%); } }
@keyframes of-up { from { transform: none; } to { transform: translateY(-101%); } }
@media (max-width: 1099px), (max-aspect-ratio: 1/1) { .of__lab { left: 6%; top: 34%; font-size: 9.5px; } }

/* ---------------------------------------------------------------- shared section bits */
.oe__in, .oc__in, .fc__in, .op__in, .cl__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.oe__head, .oc__head, .fc__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px clamp(30px, 5vw, 90px); align-items: end; margin-bottom: var(--sp-head); }
.oe__head .label, .oc__head .label, .fc__head .label { grid-column: 1 / -1; margin: 0; }
.oe__head h2, .oc__head h2, .fc__head h2, .op__box h2 { font-size: var(--t-h2); letter-spacing: -.045em; line-height: .98; }
.oe__head p:not(.label), .oc__head p:not(.label), .fc__head p:not(.label) { margin: 0; max-width: 34em; font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); }
.oe__head a, .op__box a, .fc__more a { color: var(--ink); text-decoration-color: var(--cobalt); text-underline-offset: 3px; }
.src { display: inline-block; margin-left: 4px; font-size: 10.5px; letter-spacing: .04em; color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.src:hover, .src:focus-visible { color: var(--ink); }
@media (max-width: 900px) { .oe__head, .oc__head, .fc__head { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 01 annotated elevation */
.oe { padding: var(--sp-section) 0; border-top: 1px solid var(--line); }
.oe__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.oe__fig { position: sticky; top: calc(var(--bar) + 24px); margin: 0; padding: 18px; background: #f0eee9; background-image: linear-gradient(rgba(30, 78, 216, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 78, 216, .07) 1px, transparent 1px); background-size: 24px 24px; box-shadow: var(--frame); }
.oe__svg { display: block; width: 100%; height: auto; font-family: var(--mono); }
.oe__svg .w { fill: none; stroke: var(--ink); stroke-width: 3; }
.oe__svg .win { fill: rgba(30, 78, 216, .06); stroke: var(--ink); stroke-width: 2; }
.oe__svg .f { fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
.oe__svg .pt, .oe__svg .pt * { fill: var(--cobalt); stroke: none; }
.oe__svg .cap { font-size: 10px; letter-spacing: .14em; fill: var(--muted); text-anchor: middle; }
.oe__c path { fill: none; stroke: var(--cobalt); stroke-width: 1.6; stroke-dasharray: 4 4; }
.oe__c circle { fill: var(--cobalt); }
.oe__c text { font-size: 15px; font-weight: 600; fill: #fff; text-anchor: middle; }
.oe.is-js .oe__c { opacity: 0; transform: translateY(6px); transition: opacity .45s cubic-bezier(.65, 0, 0, 1), transform .45s cubic-bezier(.65, 0, 0, 1); transition-delay: calc(var(--k) * 140ms); }
.oe.is-js.is-in .oe__c { opacity: 1; transform: none; }
html.is-still .oe.is-js .oe__c { opacity: 1; transform: none; }
.oe__notes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.oe__n { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.oe__n h3 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; font-size: var(--t-h3); }
.oe__n h3 .mono { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cobalt); color: #fff; font-size: 11px; flex: none; }
.oe__n p { margin: 0 0 0 36px; font-size: var(--t-small); line-height: 1.62; color: var(--ink-2); }
@media (max-width: 900px) { .oe__grid { grid-template-columns: 1fr; } .oe__fig { position: static; } }

/* ---------------------------------------------------------------- 02 configurator */
.oc { padding: var(--sp-section) 0; background: var(--concrete-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.oc__pick { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 26px; padding: 0; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); width: fit-content; max-width: 100%; }
.oc__pick legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.oc__opt { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; font: 500 15px/1.2 var(--font); color: var(--ink-2); cursor: pointer; transition: background-color .3s, color .3s; }
.oc__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.oc__opt:has(input:checked) { background: var(--ink); color: var(--concrete); }
.oc__opt:has(input:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.oc__p { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.oc__p + .oc__p { margin-top: 36px; }
.oc.is-js .oc__p:not(.is-on) { display: none; }
.oc.is-js .oc__p + .oc__p { margin-top: 0; }
.oc__p.is-in { animation: oc-in .45s cubic-bezier(.65, 0, 0, 1); }
@keyframes oc-in { from { opacity: 0; transform: translateY(8px); } }
html.is-still .oc.is-js .oc__p { display: grid; }
html.is-still .oc.is-js .oc__p + .oc__p { margin-top: 36px; }
.oc__draw { padding: 20px; background: #f0eee9; background-image: linear-gradient(rgba(30, 78, 216, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 78, 216, .07) 1px, transparent 1px); background-size: 22px 22px; box-shadow: var(--frame); }
.oc__svg { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; font-family: var(--mono); }
.oc__p[data-plan="bay"] .oc__svg { max-width: 420px; }
.oc__svg rect, .oc__svg path, .oc__svg circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.oc__svg .w { stroke: var(--ink); stroke-width: 4; } .oc__svg .f { stroke: var(--ink-2); stroke-width: 1.6; } .oc__svg .c { stroke: var(--ink); stroke-width: 3; }
.oc__svg .win { stroke: var(--cobalt); stroke-width: 6; } .oc__svg .d { stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 4 5; }
.oc__svg .s * { fill: var(--cobalt); stroke: none; }
.oc__svg text { font-size: 10px; letter-spacing: .12em; fill: var(--muted); text-anchor: middle; }
.oc__k { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); }
.oc__txt h3 { margin: 0 0 12px; font-size: var(--t-h3-l); letter-spacing: -.035em; line-height: 1.05; }
.oc__txt p { margin: 0; max-width: 34em; font-size: var(--t-body); line-height: 1.62; color: var(--ink-2); }
@media (max-width: 760px) { .oc__p { grid-template-columns: 1fr; } .oc__opt { padding: 0 12px; font-size: 14px; } }

/* ---------------------------------------------------------------- 03 branching flowchart */
.fc { padding: var(--sp-section) 0; }
.fc__q { position: relative; width: fit-content; margin: 0 auto 44px; padding: 14px 22px; font: 600 var(--t-h3) / 1.1 var(--font); color: #fff; background: var(--ink); }
.fc__q::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: var(--ink); }
.fc__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: 0; padding: 22px 0 0; list-style: none; }
.fc__list::before { content: ""; position: absolute; top: 0; left: calc(100% / 6); right: calc(100% / 6); height: 1px; background: var(--ink); }
.fc__b { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #fbfaf7; box-shadow: var(--frame); }
.fc__b::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 22px; background: var(--ink); }
.fc__t { margin: 0; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); }
.fc__b h3 { margin: 0; font-size: var(--t-h3); }
.fc__b > p:not(.fc__t) { margin: 0; font-size: var(--t-small); line-height: 1.62; color: var(--ink-2); }
.fc__pic { position: relative; margin: 4px 0 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--concrete-2); }
.fc__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fc__pic figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 7px; font-size: 9px; color: var(--ink-2); background: rgba(243, 242, 238, .92); }
.fc__end { margin-top: auto; padding: 12px 14px; border-left: 3px solid var(--cobalt); background: rgba(30, 78, 216, .06); }
.fc__end p { margin: 0; font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); }
.fc__end .mono { margin-bottom: 4px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); }
.fc__more { margin: 22px 0 0; font-size: var(--t-small); color: var(--ink-2); }
@media (max-width: 900px) { .fc__list { grid-template-columns: 1fr; padding-top: 0; } .fc__list::before { display: none; } .fc__b::before { display: none; } .fc__q { margin-bottom: 22px; } .fc__q::after { display: none; } }

/* ---------------------------------------------------------------- 04 price note */
.op { padding: 0 0 var(--sp-section); }
.op__box { max-width: 820px; margin: 0 auto; padding: clamp(22px, 3vw, 40px); background: #fbfaf7; box-shadow: var(--frame); border-top: 3px solid var(--ink); }
.op__lead { margin: 16px 0 14px; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); }
.op__lead b { color: var(--ink); }
.op__bands { margin: 0 0 16px; padding: 0; list-style: none; }
.op__bands li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.op__bands b { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.03em; }
.op__bands em { font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); }
.op__box p:not(.label):not(.op__lead) { margin: 0; font-size: var(--t-small); line-height: 1.62; color: var(--ink-2); }

/* ---------------------------------------------------------------- 05 FAQ as a dialogue (questions left, answers right) */
.page-office .fq { padding-top: var(--sp-section); padding-bottom: var(--sp-section); }
.page-office .od .fq__in { grid-template-columns: 1fr; max-width: 980px; }
.page-office .od .fq__head { position: static; }
.page-office .od .fq__list { display: grid; gap: 18px; border: 0; }
.page-office .od__q { border: 0; margin: 0; }
.page-office .od__q summary { width: fit-content; max-width: 78%; padding: 12px 16px; background: var(--ink); color: var(--concrete); border-radius: 0 14px 14px 14px; }
.page-office .od__q summary h3 { color: var(--concrete); }
.page-office .od__q summary .fq__n { color: var(--cobalt-hi); }
.page-office .od__q summary .fq__x { display: none; }
.page-office .od__q .fq__a { margin: 8px 0 0 auto; max-width: 78%; padding: 12px 16px; background: #fbfaf7; box-shadow: var(--frame); border-radius: 14px 0 14px 14px; }
.page-office .od__q .fq__a p { margin: 0; }
@media (max-width: 700px) { .page-office .od__q summary, .page-office .od__q .fq__a { max-width: 92%; } }

/* ---------------------------------------------------------------- related + form */
.cl { padding: var(--sp-5) 0; border-top: 1px solid var(--line-2); }
.cl__in { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
.cl__h2 { margin: 6px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cl__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin: 0; padding: 0; list-style: none; }
.cl__list a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 18px; letter-spacing: -.01em; transition: color .3s, padding .4s cubic-bezier(.65, 0, 0, 1); }
.cl__list a .mono { width: 52px; flex: none; font-size: 10px; color: var(--cobalt); text-transform: uppercase; }
.cl__list a i { margin-left: auto; font-style: normal; color: var(--cobalt); }
.cl__list a:hover, .cl__list a:focus-visible { color: var(--cobalt); padding-left: 6px; outline: none; }
@media (max-width: 760px) { .cl__in, .cl__list { grid-template-columns: 1fr; } }
.page-office .qt { padding-top: var(--sp-section); padding-bottom: var(--sp-section); }
