/* Beehive Legal: contact page. The form is the opener; the King Street office at night sits beside it. */

/* ---------- Opener ---------- */
.ct { position: relative; background: var(--wax); padding: clamp(22px, 3vh, 40px) 0 clamp(70px, 8vw, 110px); overflow: clip; }
.ct__comb { opacity: .9; -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 70%); mask-image: linear-gradient(100deg, #000 0%, transparent 70%); }
.ct__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .92fr); gap: clamp(36px, 4.4vw, 72px); align-items: start; }
.ct__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-bottom: 18px; }
.ct__head h1 { font-size: clamp(2.7rem, 4.6vw, 4.3rem); line-height: 1.02; }
.buzz { position: relative; flex: none; width: 230px; height: 92px; align-self: center; margin-left: -10px; }
.buzz__svg { width: 100%; height: 100%; overflow: visible; }
.buzz__draw { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; }
.buzz__trail { fill: none; stroke: var(--honey-deep); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1.5 7; }
.buzz__bee { position: absolute; right: -18px; top: -16px; width: 52px; height: auto; filter: drop-shadow(0 6px 10px rgba(120, 60, 0, .25)); }
.ct__lede { flex: 1 1 100%; margin: 0; color: var(--ink-2); font-size: 1.06rem; line-height: 1.5; }

.ct__card {
  position: relative; background: var(--paper); border-radius: var(--r); padding: 12px clamp(18px, 2.2vw, 30px) clamp(20px, 2.2vw, 28px);
  box-shadow: 0 1px 0 rgba(31, 30, 36, .06), 0 30px 60px -34px rgba(38, 37, 44, .45); border: 1px solid rgba(31, 30, 36, .08);
}
.ct__card-hex { position: absolute; right: -16px; top: -18px; width: 54px; height: 47px; clip-path: var(--hex); background: var(--honey); pointer-events: none; }
.ct__card-hex::after { content: ''; position: absolute; inset: 9px 11px; clip-path: var(--hex); background: var(--pollen); }

/* Tabs: a honey block slides to the chosen tab */
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1.35fr; gap: 4px; padding: 4px; margin: 6px 0 18px; border-radius: var(--r); background: var(--wax); border: 1px solid rgba(31, 30, 36, .1); }
.tabs__ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: calc(var(--r) - 3px); background: var(--honey); box-shadow: 0 8px 18px -10px rgba(224, 134, 0, .9); pointer-events: none; }
html.no-js .tabs__ink, html.no-motion .tabs__ink { display: none; }
.tab {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 8px 14px;
  border-radius: calc(var(--r) - 3px); color: var(--ink-2); font-weight: 600; text-decoration: none; text-align: center; line-height: 1.2; transition: color .35s var(--ease), background-color .35s var(--ease);
}
.tab .ico { flex: none; transition: transform .45s var(--ease); }
.tab:hover { color: var(--ink); }
.tab:hover .ico { transform: translateY(-2px); }
.tab.is-on { color: var(--ink); }
html.no-js .tab.is-on, html.no-motion .tab.is-on { background: var(--honey); }
.tab:focus-visible { outline-offset: -3px; }

.form-alert { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid #B42318; background: #FDF0EE; color: #7A1A12; border-radius: 0 var(--r) var(--r) 0; font-weight: 500; }

.panels { position: relative; }
.panel[hidden] { display: none; }

/* Fields */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field--wide { grid-column: 1 / -1; }
.fstack { display: grid; gap: 14px; }
.field label .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { min-height: 50px; padding: 12px 15px; }
.qform textarea { min-height: 112px; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #B42318; }
.field__err { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 0; color: #B42318; font-size: .92rem; font-weight: 500; line-height: 1.4; }
.field__err::before { content: '!'; flex: none; width: 18px; height: 16px; margin-top: 2px; clip-path: var(--hex); background: #B42318; color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.field__err[hidden] { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Choice chips (radios and checkboxes) */
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 16px; border: 1.5px solid rgba(31, 30, 36, .22); border-radius: var(--r);
  background: #fff; font-weight: 500; line-height: 1.2; transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.chip:hover span { border-color: var(--honey); }
.chip input:checked + span { background: var(--honey); border-color: var(--honey); color: var(--ink); font-weight: 600; box-shadow: 0 8px 18px -12px rgba(224, 134, 0, .9); }
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.chip__tick { position: relative; flex: none; width: 18px; height: 15.6px; clip-path: var(--hex); background: rgba(31, 30, 36, .25); }
.chip__tick::after { content: ''; position: absolute; inset: 2px; clip-path: var(--hex); background: #fff; transition: background-color .3s; }
.chip input:checked + span .chip__tick { background: var(--ink); }
.chip input:checked + span .chip__tick::after { background: var(--ink); }
.choice.has-err .chip span { border-color: rgba(180, 35, 24, .55); }

/* Send row */
.fsend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.fsend__note { margin: 0; color: var(--ink-2); font-size: .95rem; }
.fsend__note a, .consent a { color: var(--teal); font-weight: 600; }

/* Report: honeycomb progress, one cell per step */
.prog { display: flex; align-items: center; gap: 8px 18px; flex-wrap: nowrap; margin-bottom: 14px; }
.prog__comb { display: flex; margin: 0; padding: 0 0 20px; list-style: none; }
.pcell { position: relative; width: 46px; height: 40px; margin-right: -8px; clip-path: var(--hex); background: rgba(31, 30, 36, .2); display: grid; place-items: center; transition: background-color .4s; }
.pcell:nth-child(even) { transform: translateY(20px); }
.pcell::before { content: ''; position: absolute; inset: 2px; clip-path: var(--hex); background: #fff; }
.pcell__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--pollen), var(--honey)); transform: scaleY(0); transform-origin: 50% 100%; }
.pcell b { position: relative; font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1; color: var(--ink-2); }
.pcell.is-now { background: var(--honey); }
.pcell.is-now b, .pcell.is-done b { color: var(--ink); }
.pcell.is-done .pcell__fill { transform: scaleY(1); }
.prog__txt { margin: 0; display: grid; line-height: 1.25; min-width: 0; }
.prog__step { font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.prog__name { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; white-space: nowrap; font-weight: 600; }
.prog__time { margin: 0 0 0 auto; align-self: flex-start; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r); background: rgba(0, 115, 124, .08); color: var(--teal); font-weight: 600; font-size: .9rem; }
.prog__time::before { content: ''; width: 12px; height: 10.4px; clip-path: var(--hex); background: var(--teal); }

.rsteps { position: relative; }
.rstep { margin: 0; padding: 0; border: 0; min-width: 0; }
.rstep__h { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
html.js .rstep__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.js .rstep:not(.is-on) { display: none; }
html.no-js .rstep + .rstep { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
html.no-js .prog__comb, html.no-js .prog__txt { display: none; }

.review { margin: 0 0 16px; border-top: 1px solid var(--line); }
.rv { display: flex; align-items: center; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv__body { flex: 1; min-width: 0; }
.rv__h { margin: 0 0 2px; font-size: .9rem; color: var(--ink-2); }
.rv__v { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.rv__dot { width: 7px; height: 6px; clip-path: var(--hex); background: var(--honey); }
.rv button { flex: none; background: none; border: 0; padding: 8px 0; color: var(--teal); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 115, 124, .35); }
.rv button:hover { text-decoration-color: currentColor; }
html.no-js .review { display: none; }

.consent__box { position: relative; display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.consent__box input { position: absolute; left: 0; top: 0; width: 26px; height: 26px; opacity: 0; margin: 0; cursor: pointer; }
.consent__tick { flex: none; width: 26px; height: 26px; border: 1.5px solid rgba(31, 30, 36, .35); border-radius: var(--r-btn); display: grid; place-items: center; background: #fff; color: transparent; transition: background-color .3s, border-color .3s, color .3s; }
.consent__tick .ico { width: 18px; height: 18px; }
.consent__box input:checked + .consent__tick { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.consent__box input:focus-visible + .consent__tick { outline: 3px solid var(--teal); outline-offset: 2px; }
.consent.has-err .consent__tick { border-color: #B42318; }

.rnav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.rnav__next, .rnav__send { margin-left: auto; }
.rnav__back[disabled] { visibility: hidden; }
html.no-js .rnav__back, html.no-js .rnav__next { display: none; }
html.js .rform:not(.is-last) .rnav__send { display: none; }
html.js .rform.is-last .rnav__next { display: none; }

/* Thank-you state */
.thanks { display: grid; justify-items: start; gap: 12px; padding: 28px 4px 10px; }
.thanks__cell { position: relative; width: 92px; height: 80px; display: grid; place-items: center; clip-path: var(--hex); background: var(--honey); color: var(--ink); }
.thanks__cell .ico { width: 40px; height: 40px; stroke-width: 2.2; }
.thanks__svg { width: 120px; height: 104px; overflow: visible; }
.thanks__svg .t-hex { fill: none; stroke: var(--honey); stroke-width: 3; }
.thanks__svg .t-fill { fill: var(--honey); }
.thanks__svg .t-tick { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.thanks__h { font-size: clamp(2rem, 3vw, 2.6rem); }
.thanks p { color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; }
.thanks a:not(.link-arrow) { color: var(--teal); font-weight: 600; }

/* The office at night: tall frame, parallax, a lamp glow that follows the pointer */
.ct__side { position: relative; padding-bottom: 14px; }
.ct__frame { height: clamp(520px, calc(100svh - var(--head-h) - 74px), 820px); }
.ct__frame img { object-position: 46% 50%; }
.ct__lamp { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle at var(--lx, 72%) var(--ly, 32%), rgba(252, 195, 31, .55), rgba(250, 153, 0, .2) 16%, transparent 40%); }
.ct__frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(38, 37, 44, 0) 45%, rgba(38, 37, 44, .55)); }

.visit {
  position: absolute; left: clamp(-56px, -3.6vw, -24px); bottom: 44px; width: min(410px, 96%); padding: 24px 26px 20px; border-radius: var(--r);
  background: var(--slate); color: #fff; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); border-top: 3px solid var(--honey);
}
.visit__hex { position: absolute; right: 18px; top: -30px; width: 52px; }
.visit__hex img { width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.visit__h { font-size: 1.6rem; line-height: 1.1; margin-bottom: 14px; padding-right: 50px; }
.visit__list { display: grid; gap: 2px; }
.visit__list li > span, .visit__list a { display: flex; align-items: center; min-height: 44px; gap: 12px; padding: 6px 0; color: rgba(255, 255, 255, .9); text-decoration: none; line-height: 1.4; }
.visit__list li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255, 255, 255, .9); }
.visit__list li > .ico { margin-top: 8px; }
.visit__list .ico { flex: none; color: var(--honey); margin-top: 1px; }
.visit__list li > span { padding: 6px 0; }
.visit__list a { font-weight: 600; color: #fff; }
.visit__list a:hover span { text-decoration: underline; text-decoration-color: var(--honey); text-underline-offset: 4px; }

/* Opener start states (only while motion runs) */
html.js:not(.no-motion) [data-ct-card] { opacity: 0; transform: translateY(30px); }
html.js:not(.no-motion) [data-ct-frame] { clip-path: inset(0 0 100% 0 round var(--r)); }
html.js:not(.no-motion) [data-visit] { opacity: 0; transform: translateY(30px); }
@media (prefers-reduced-motion: reduce) {
  html.js [data-ct-card], html.js [data-visit] { opacity: 1 !important; transform: none !important; }
  html.js [data-ct-frame] { clip-path: none !important; }
}

/* ---------- What happens next ---------- */
.next { padding-top: 0; padding-bottom: clamp(64px, 6vw, 96px); }
.next__marquee { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-dark); padding: 18px 0; margin-bottom: clamp(40px, 4vw, 60px); }
.next__track { display: flex; width: max-content; }
.next__track span { display: inline-flex; align-items: center; padding: 0 30px; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.2; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(250, 153, 0, .75); font-weight: 600; }
.next__track span:nth-child(4n+3) { color: var(--honey); -webkit-text-stroke: 0; }
.next__track span::after { content: ''; width: 16px; height: 13.9px; margin-left: 60px; clip-path: var(--hex); background: var(--honey); }
.next__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 5vw, 80px); align-items: center; margin-bottom: clamp(36px, 3.6vw, 52px); }
.next__copy { display: grid; gap: 18px; }
.next__copy .btns { margin-top: 8px; }
.next__frame { aspect-ratio: 16 / 10; max-height: min(46vh, 420px); width: 100%; }

.path { position: relative; }
.path__line { position: absolute; left: calc(100% / 6); right: calc(100% / 6); top: 46px; height: 2px; background: rgba(255, 255, 255, .14); }
.path__line > span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--pollen), var(--honey)); transform-origin: 0 50%; transform: scaleX(0); }
html.no-motion .path__line > span { transform: none; }
.path__list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0; padding: 0; list-style: none; }
.path__step { display: grid; justify-items: center; text-align: center; gap: 12px; }
.path__cell { position: relative; width: 106px; height: 92px; clip-path: var(--hex); background: var(--honey); display: grid; place-items: center; color: #fff; }
.path__cell::before { content: ''; position: absolute; inset: 2.5px; clip-path: var(--hex); background: var(--slate); }
.path__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--pollen), var(--honey)); transform: scaleY(0); transform-origin: 50% 100%; }
html.no-motion .path__fill { transform: scaleY(1); }
.path__cell > .ico, .path__mode { position: relative; transition: color .4s; }
.path__cell .ico { width: 34px; height: 34px; stroke-width: 1.6; }
.path__step.is-lit .path__cell { color: var(--ink); }
html.no-motion .path__cell { color: var(--ink); }
.path__cell--modes { display: block; }
.path__mode { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.path__mode.is-on { opacity: 1; }
.path__step h3 { margin-top: 8px; color: #fff; font-size: clamp(1.45rem, 1.9vw, 1.8rem); }
.path__step p { color: var(--mist); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ct__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .tabs { grid-template-columns: 1fr 1fr; }
  .prog__time { display: none; }
}
@media (max-width: 900px) {
  .ct__grid { grid-template-columns: minmax(0, 1fr); }
  .ct__side { padding-bottom: 0; }
  .ct__frame { height: auto; aspect-ratio: 4 / 5; max-height: min(70vh, 640px); width: 100%; }
  .visit { position: relative; left: auto; bottom: auto; width: auto; margin: -70px 14px 0; }
  .next__head { grid-template-columns: 1fr; }
  .path__list { grid-template-columns: 1fr; gap: 26px; }
  .path__line { left: 53px; right: auto; top: 46px; bottom: 120px; width: 2px; height: auto; }
  .path__line > span { transform-origin: 50% 0; transform: scaleY(0); }
  .path__step { grid-template-columns: 106px 1fr; justify-items: start; text-align: left; column-gap: 20px; row-gap: 4px; }
  .path__cell { grid-row: span 2; }
  .path__step h3 { margin-top: 18px; }
}
@media (max-width: 640px) {
  .ct { padding-top: 16px; }
  .ct__head { margin-bottom: 14px; }
  .ct__head h1 { font-size: 2.6rem; }
  .ct__head { position: relative; }
  .buzz { position: absolute; right: 4px; top: 6px; width: 92px; height: 40px; margin: 0; }
  .buzz__bee { width: 28px; right: -8px; top: -12px; }
  .prog { flex-wrap: wrap; }
  .prog__name { white-space: normal; font-size: 1.3rem; }
  .ct__lede { font-size: 1rem; }
  .ct__card { padding: 8px 14px 18px; }
  .ct__card-hex { right: -6px; top: -14px; width: 40px; height: 35px; }
  .tabs { grid-template-columns: 1fr 1.3fr; margin-bottom: 14px; }
  .tab { gap: 8px; min-height: 52px; padding: 6px 8px; font-size: .93rem; }
  .tab .ico { display: none; }
  .fgrid { grid-template-columns: 1fr; }
  .prog { gap: 4px 14px; }
  .prog__time { display: none; }
  .prog__name { font-size: 1.35rem; }
  .rnav .btn { flex: 1 1 auto; }
  .path__step { grid-template-columns: 84px 1fr; }
  .path__cell { width: 84px; height: 72.7px; }
  .path__cell .ico { width: 28px; height: 28px; }
  .path__line { left: 41px; top: 36px; }
}

/* Short laptop screens and phones: the send button stays on the first screen */
@media (max-height: 860px) and (min-width: 1061px) {
  .ct .qform textarea, .ct .field textarea { min-height: 84px; height: 84px; }
  .field input, .field select, .field textarea { min-height: 46px; padding-block: 10px; }
  .ct__head h1 { font-size: clamp(2.5rem, 4vw, 3.6rem); }
  .ct__head { margin-bottom: 12px; }
}
@media (max-width: 640px) {
  .ct .qform textarea, .ct .field textarea { min-height: 88px; height: 88px; }
  .ct__lede { margin-top: 8px; }
  .ct__lede { font-size: 1rem; }
  .ct__lede-extra { display: none; }
}

@media (max-height: 760px) and (min-width: 1061px) {
  .ct__lede { display: none; }
  .ct__head h1 { font-size: 2.5rem; }
  .ct .qform textarea, .ct .field textarea { min-height: 70px; height: 70px; }
  .field { gap: 4px; }
}
