/* Contact page (contact-us.html). Shared connect pieces (copy buttons, the reach map, the form kit) live in forms.css. */

/* ---------- hero: rails converge on a live Pangbourne dial ---------- */
.contact-hero .page-hero__frame { min-height: clamp(580px, 86svh, 880px); }
.contact-hero .page-hero__content { position: relative; z-index: 1; }
.hq-clock { position: absolute; z-index: 1; right: calc(clamp(48px, 10vw, 170px) + var(--hx)); top: calc(50% - 40px); transform: translateY(-50%); display: grid; justify-items: center; gap: 22px; pointer-events: none; }
.hq-clock__dial { position: relative; width: clamp(250px, 23vw, 340px); aspect-ratio: 1; border-radius: 50%; }
.hq-clock__dial::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(163, 193, 173, .16), rgba(163, 193, 173, .04) 60%, transparent); pointer-events: none; }
.dial { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.dial__face { fill: rgba(15, 15, 32, .78); stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.dial__track { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 2; }
.dial__sec { fill: none; stroke: var(--sage); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 60 60; stroke-dashoffset: 60; transform: rotate(-90deg); transform-origin: 120px 120px; transform-box: view-box; filter: drop-shadow(0 0 4px rgba(163, 193, 173, .6)); transition: stroke-dashoffset .6s var(--ease); }
.dial__sec.is-wrap { transition: none; }
.dial__ticks line { stroke: rgba(255, 255, 255, .2); stroke-width: 1; stroke-linecap: round; }
.dial__ticks line.is-h { stroke: rgba(255, 255, 255, .55); stroke-width: 1.6; }
.dial__twelve { fill: var(--sage); }
.dial__zone, .dial__name { font-family: var(--mono); font-size: 8.4px; font-weight: 500; letter-spacing: .2em; fill: rgba(238, 240, 242, .46); }
.dial__zone { fill: var(--sage); letter-spacing: .14em; }
.dial__hand { transform: rotate(var(--a, 0deg)); transform-origin: 120px 120px; transform-box: view-box; }
.is-live .dial__hand { transition: transform .6s var(--ease); }
.is-live .dial__hand--s { transition: transform .42s cubic-bezier(.3, 1.9, .55, 1); }
.dial__hand--h line { stroke: var(--on-dark); stroke-width: 4.2; stroke-linecap: round; }
.dial__hand--m line { stroke: var(--on-dark); stroke-width: 2.4; stroke-linecap: round; }
.dial__hand--s line { stroke: var(--sage); stroke-width: 1.3; stroke-linecap: round; }
.dial__hand--s path { fill: var(--sage); }
.dial__pin { fill: var(--ink); stroke: var(--sage); stroke-width: 1.6; }
.dial__pin-core { fill: var(--sage); }
html:not(.js) .dial__hand, html:not(.js) .dial__sec { display: none; }
html.js .hq-clock { opacity: 0; transition: opacity 1.2s var(--ease) .35s; }
html.js .hq-clock.is-live { opacity: 1; }
.hq-clock__cap { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); white-space: nowrap; }
.hq-clock__cap time { color: var(--on-dark); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.hq-clock__cap small { color: var(--sage); font-size: inherit; }
@media (min-width: 761px) {
  .contact-hero .lead { max-width: min(40rem, 50vw); }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .hq-clock { right: 5vw; top: calc(var(--header-h) + 36px); transform: none; }
  .hq-clock__dial { width: clamp(180px, 22vw, 230px); }
}
@media (max-width: 760px) {
  .contact-hero .page-hero__frame { min-height: clamp(560px, 92svh, 760px); }
  .contact-hero .page-hero__content { padding-top: calc(var(--header-h) + 140px); }
  .hq-clock { right: 18px; top: calc(var(--header-h) + 14px); transform: none; }
  .hq-clock__dial { width: 112px; }
  .hq-clock__dial::before { inset: -30%; }
  .hq-clock__cap { display: none; }
  .dial__zone, .dial__name { display: none; }
}

/* hero meta: email and phone carry copy buttons */
.contact-meta dd { display: flex; align-items: center; gap: 10px; min-width: 0; }
.contact-meta dd a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .25s; }
.contact-meta dd a:hover { color: var(--sage); }
.contact-meta .copy-btn { width: 28px; height: 28px; border-radius: 7px; }
@media (max-width: 1180px) {
  .contact-meta > div { flex-basis: 50%; }
  .contact-meta > div:nth-child(odd) { border-left: 0; }
  .contact-meta > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 640px) {
  .contact-meta { display: grid; grid-template-columns: minmax(0, 1fr); }
  .contact-meta > div { padding: 12px var(--gutter) 14px; border-left: 0 !important; }
  .contact-meta > div + div { border-top: 1px solid var(--line-dark); }
  .contact-meta > div:nth-child(n+3) { display: none; }
  .contact-meta dd { font-size: 1rem; }
}

/* ---------- direct lines + form ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact__title { margin-top: 22px; }

.direct { list-style: none; margin-top: clamp(36px, 4.4vw, 60px); border-top: 1px solid var(--line); }
.direct__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.direct__item::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--ink); transition: width .8s var(--ease); }
.direct__item:hover::before, .direct__item:focus-within::before { width: 100%; }
.direct__link { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 18px; padding: clamp(20px, 2.2vw, 28px) 0; min-width: 0; }
.direct__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-tint); color: var(--sage-3); transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease); }
.direct__icon .icon { width: 22px; height: 22px; }
.direct__text { min-width: 0; }
.direct__kicker { display: block; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
.direct__value { display: block; font-size: clamp(1.3rem, 2.2vw, 2.1rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .6s var(--ease), color .3s; }
.direct__link:hover .direct__value, .direct__link:focus-visible .direct__value { transform: translateX(6px); }
.direct__link:hover .direct__icon, .direct__link:focus-visible .direct__icon { background: var(--ink); color: var(--sage); transform: rotate(-8deg); }

/* HQ card: the europe map runs live behind the left half */
.hq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); margin-top: clamp(32px, 4vw, 48px); border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: var(--on-dark); isolation: isolate; --fg: var(--on-dark); --fg-2: var(--on-dark-2); --fg-3: var(--on-dark-3); --line: var(--line-dark); --line-2: var(--line-dark-2); }
.hq__map { position: relative; min-height: 100%; overflow: hidden; background: radial-gradient(70% 60% at 50% 30%, rgba(163, 193, 173, .1), transparent 70%), var(--ink-2); }
.hq__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(21, 21, 42, 0) 55%, rgba(21, 21, 42, .85)); }
.hq__coords { position: absolute; z-index: 1; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--sage); white-space: nowrap; }
.hq__body { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 2.4vw, 32px); }
.hq__head { display: grid; gap: 10px; }
.hq__title { font-size: clamp(1.3rem, 1.7vw, 1.6rem); font-weight: 500; letter-spacing: -.025em; }
.hq__time { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: var(--on-dark); }
.hq__time time { font-variant-numeric: tabular-nums; }
.hq__time small { color: var(--sage); font-size: inherit; }
.hq__address { font-style: normal; font-size: 1.06rem; line-height: 1.55; color: var(--on-dark-2); padding-top: 14px; border-top: 1px solid var(--line-dark); }
.hq__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hq .link--sage { color: var(--sage); }

/* form */
.contact__form .form-card__head { margin-bottom: 30px; }
.contact__form .form-card__head .muted { max-width: 30rem; }
.contact__form textarea { min-height: 168px; }
.contact__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.contact__submit .form-note { flex: 1 1 200px; }
@media (min-width: 1025px) {
  .contact__form { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (max-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr; }
  .hq__map { min-height: 280px; }
  .hq__body { align-content: center; }
}
@media (max-width: 640px) {
  .hq { grid-template-columns: 1fr; }
  .hq__map { aspect-ratio: 16 / 10; min-height: 0; }
  .direct__link { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .direct__icon { display: none; }
  .direct__value { font-size: clamp(1.2rem, 5.4vw, 1.6rem); }
  .contact__submit .btn { width: 100%; }
}

/* ---------- the enquiry router ---------- */
.routes { overflow: hidden; }
.router { --pitch: 66px; --rise: 132px; position: relative; display: grid; grid-template-columns: minmax(0, 4.1fr) minmax(170px, 2.7fr) minmax(0, 5.2fr); align-items: start; }
.router__ask { position: relative; grid-column: 1; grid-row: 1; min-width: 0; margin: 0; padding: var(--rise) 0 0; border: 0; }
.router__q { position: absolute; top: calc(var(--rise) - 40px); left: 0; display: inline-flex; align-items: center; gap: 12px; padding: 0; font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.router__opt { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 12px; align-items: center; height: var(--pitch); border-top: 1px solid var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.router__opt:last-of-type { border-bottom: 1px solid var(--line); }
.router__opt::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--sage); transition: width .8s var(--ease); }
.router__opt input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.router__num { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--fg-3); transition: color .35s; }
.router__txt { min-width: 0; font-size: clamp(1.12rem, 1.55vw, 1.5rem); font-weight: 500; letter-spacing: -.028em; line-height: 1.15; color: var(--fg-2); transition: color .35s, transform .55s var(--ease); }
.router__node, .port__node { position: relative; z-index: 1; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); background: var(--ink-3); transition: border-color .4s, background-color .4s, box-shadow .5s var(--ease); }
.router__node { justify-self: end; margin-right: -5.5px; }
.router__opt:hover .router__txt { color: var(--fg); transform: translateX(5px); }
.router__opt.is-active::before { width: 100%; }
.router__opt.is-active .router__num { color: var(--sage); }
.router__opt.is-active .router__txt { color: var(--fg); }
.router__opt.is-active .router__node, .port.is-active .port__node { border-color: var(--sage); background: var(--sage); box-shadow: 0 0 0 4px rgba(163, 193, 173, .16), 0 0 16px 2px rgba(163, 193, 173, .55); }
.router__opt:has(input:focus-visible) { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }
.router__aside { margin-top: 26px; max-width: 24rem; font-size: .95rem; line-height: 1.55; color: var(--fg-3); }
.router__aside a { color: var(--fg-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; transition: color .25s; }
.router__aside a:hover { color: var(--sage); }

.router__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wire { fill: none; stroke: rgba(255, 255, 255, .11); stroke-width: 1.2; transition: stroke .4s; }
.wire.is-preview { stroke: rgba(163, 193, 173, .42); }
.wire--lit { stroke: var(--sage); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(163, 193, 173, .55)); transition: stroke-dashoffset .9s var(--ease-in-out); }
.wires__pulse { pointer-events: none; }
.wires__pulse .wp-glow { fill: rgba(163, 193, 173, .28); filter: blur(3px); }
.wires__pulse .wp-core { fill: #f1f7f2; }
.wires__ring { fill: none; stroke: var(--sage); stroke-width: 1.2; opacity: 0; }

.router__dest { grid-column: 3; grid-row: 1; min-width: 0; }
.router__ports { list-style: none; }
.port { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 18px; align-items: center; height: var(--pitch); border-top: 1px solid var(--line); color: var(--fg-2); transition: color .35s; }
.router__ports li:last-child .port { border-bottom: 1px solid var(--line); }
.port__node { margin-left: -5.5px; }
.port__title { min-width: 0; font-size: clamp(1.02rem, 1.25vw, 1.18rem); font-weight: 500; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .35s, transform .55s var(--ease); }
.port__path { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--fg-3); white-space: nowrap; }
.port:hover .port__title { color: var(--fg); transform: translateX(4px); }
.port.is-active { color: var(--fg); }
.port.is-active .port__title { color: var(--sage); }
.port.is-active .port__path { color: var(--fg-2); }

.router__cards { display: grid; margin-top: 28px; }
.route-card { grid-area: 1 / 1; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-lg); border: 1px solid var(--line-dark); background: radial-gradient(420px circle at 100% 0%, rgba(163, 193, 173, .1), transparent 70%), linear-gradient(180deg, var(--ink-raise), var(--ink)); }
.route-card::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -30px; width: 150px; height: 120px; background: linear-gradient(180deg, rgba(163, 193, 173, .12), rgba(163, 193, 173, 0)); transform: skewX(var(--slash)); pointer-events: none; }
html.js .route-card { visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
html.js .route-card.is-active { visibility: visible; opacity: 1; transition: opacity .35s var(--ease), visibility 0s; }
.route-card.is-enter { animation: route-in .85s var(--ease-in-out) both; }
@keyframes route-in { from { clip-path: polygon(0 0, 0 0, -40% 100%, -40% 100%); } to { clip-path: polygon(0 0, 140% 0, 100% 100%, -40% 100%); } }
.route-card__kicker { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.route-card__title { margin-top: 14px; max-width: 22ch; font-size: clamp(1.5rem, 2.3vw, 2.15rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
.route-card__text { margin-top: 12px; max-width: 34rem; color: var(--fg-2); line-height: 1.55; }
.route-card .btn { margin-top: 24px; }
html:not(.js) .router__cards { gap: 12px; }
html:not(.js) .route-card { grid-area: auto; }
@media (max-width: 1180px) {
  .router { grid-template-columns: minmax(0, 4.4fr) minmax(130px, 2.2fr) minmax(0, 5.4fr); }
  .port__path { display: none; }
}
@media (max-width: 899px) {
  .router { display: block; }
  .router__ask { padding-top: 0; }
  .router__q { position: static; margin-bottom: 16px; }
  .router__wires, .router__ports, .router__node { display: none; }
  .router__opt { grid-template-columns: 40px minmax(0, 1fr); height: 58px; }
  .router__opt.is-active { background: linear-gradient(90deg, rgba(163, 193, 173, .1), transparent 70%); }
  .router__aside { display: none; }
  .router__cards { margin-top: 22px; }
}

/* ---------- reach ---------- */
.reach { overflow: hidden; }
.reach__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 4.4vw, 64px); }
.reach__head .lead { max-width: 30rem; }
@media (max-width: 1024px) { .reach__head { grid-template-columns: 1fr; } }

/* ---------- Optronix band ---------- */
.ox__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "name go" "desc go"; gap: 0 clamp(24px, 4vw, 64px); align-items: end; color: var(--ink); }
.ox__link .label { grid-area: label; color: rgba(26, 26, 46, .7); margin-bottom: clamp(18px, 2vw, 26px); }
.ox__name { grid-area: name; display: block; text-wrap: balance; font-size: clamp(1.9rem, 4.4vw, 4rem); font-weight: 500; letter-spacing: -.022em; line-height: 1.02; }
.ox__name .optronix { letter-spacing: -.02em; }
.ox__desc { grid-area: desc; margin-top: 14px; max-width: 36rem; font-size: 1.08rem; color: rgba(26, 26, 46, .72); }
.ox__go { grid-area: go; display: inline-flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.ox__arrow { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: background-color .4s var(--ease), color .4s var(--ease), transform .6s var(--ease); }
.ox__arrow .icon { width: 24px; height: 24px; }
.ox__link:hover .ox__arrow, .ox__link:focus-visible .ox__arrow { background: var(--ink); color: var(--sage); transform: rotate(45deg); }
@media (max-width: 760px) {
  .ox__link { grid-template-columns: 1fr; grid-template-areas: "label" "name" "desc" "go"; }
  .ox__go { margin-top: 24px; }
  .ox__arrow { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .dial__hand, .is-live .dial__hand, .is-live .dial__hand--s, .dial__sec { transition: none; }
  .route-card.is-enter { animation: none; }
  .wire--lit { transition: none; }
}
