/* American Dream Homes — Team pages
   Shares tokens + base components with index.html; adds roster, profile and contact components. */

:root {
  --navy: #182534; --deep: #0f1924; --blue: #2098D1; --ink: #13699a;
  --sand: #f4efe8; --rail-x: 40px; --r: 28px;
  --ease-out: cubic-bezier(.16,1,.3,1);
}
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--deep); color: var(--navy); font-family: 'Open Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--blue); color: #fff; }
img, video { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* ── Type ── */
.eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 500; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; }
.display { font-family: 'Barlow Condensed', sans-serif; font-weight: 300; text-transform: uppercase; letter-spacing: .02em; line-height: .92; }
.accent { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; text-transform: none; letter-spacing: -.01em; font-weight: 400; }
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > span { display: block; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: .75rem; min-height: 52px; padding: 0 1.6rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; transition: background-color .3s, color .3s, border-color .3s, transform .5s var(--ease-out); cursor: pointer; }
.btn svg { transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(5px); }
.btn:active { transform: scale(.97); }
.btn-solid { background: #177cb0; color: #fff; }
.btn-solid:hover { background: #fff; color: var(--navy); }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--ink); }
.btn-line { border: 1px solid rgba(24,37,52,.35); color: var(--navy); }
.btn-line:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ── Nav: assets/nav.css (global) ── */

/* ── Reveal (only when JS + motion allowed) ── */
html.js:not(.rm) .rv { opacity: 0; transform: translateY(28px); }
html.js:not(.rm) .rv.in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
html.js:not(.rm) .rv.in:nth-child(2) { transition-delay: .08s; }
html.js:not(.rm) .rv.in:nth-child(3) { transition-delay: .16s; }
html.js:not(.rm) .rv.in:nth-child(4) { transition-delay: .24s; }
.img-reveal { clip-path: inset(0 0 0 0 round var(--r)); border-radius: var(--r); }
html.js:not(.rm) .img-reveal { clip-path: inset(10% 10% 10% 10% round var(--r)); transition: clip-path 1.4s var(--ease-out); }
html.js:not(.rm) .img-reveal.in { clip-path: inset(0 0 0 0 round var(--r)); }

/* ── Rail (shared signature: the path from first look to final keys) ── */
#rail { position: absolute; left: var(--rail-x); top: 0; bottom: 0; width: 1px; pointer-events: none; z-index: 30; }
#rail .track { position: absolute; inset: 0; background: rgba(32,152,209,.18); }
#rail .fill { position: absolute; inset: 0; background: var(--blue); transform-origin: top; transform: scaleY(0); }
.rail-node { position: absolute; left: calc(var(--rail-x) - 6px); width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--blue); background: var(--deep); z-index: 31; transition: background-color .4s, transform .5s var(--ease-out); }
.rail-node.on { background: var(--blue); transform: scale(1.15); }
.rail-node span { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--blue); white-space: nowrap; }
.rail-key { width: 34px; height: 34px; left: calc(var(--rail-x) - 17px); margin-top: -11px; display: grid; place-items: center; color: var(--blue); }
.rail-key.on { color: #fff; transform: scale(1.08); }
.rail-node.rail-key span { left: 46px; }
@media (max-width: 1023px) { #rail, .rail-node { display: none; } }

/* ═════════ TEAM INDEX ═════════ */

/* Filter chips */
.f-chip { position: relative; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1.05rem; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.86); font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: border-color .3s, color .3s, background-color .3s; }
.f-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background-color .3s, transform .4s var(--ease-out); }
.f-chip:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.f-chip[aria-pressed="true"] { border-color: var(--blue); background: rgba(32,152,209,.14); color: #fff; }
.f-chip[aria-pressed="true"]::before { background: var(--blue); transform: scale(1.3); }

/* Roster: image accordion (desktop) / snap deck (mobile) */
.roster { display: flex; gap: 0; height: clamp(560px, 78vh, 780px); border-radius: var(--r); overflow: hidden; isolation: isolate; }
.r-card { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; transition: flex-grow .9s var(--ease-out), opacity .5s, filter .6s; isolation: isolate; }
.r-card + .r-card { border-left: 1px solid rgba(32,152,209,.35); }
.r-card::after { /* rail glow between panels */ content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease-out); z-index: 3; }
.r-card.is-open::after { transform: scaleY(1); }
.r-card.is-open { flex-grow: 3.4; }
.r-img { position: absolute; inset: 0; z-index: -2; }
.r-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.06); transition: transform 1.4s var(--ease-out), filter .8s; filter: grayscale(.55) brightness(.72); }
.r-card.is-open .r-img img { transform: scale(1); filter: grayscale(0) brightness(.95); }
.r-card .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15,25,36,.96) 0%, rgba(15,25,36,.55) 34%, rgba(15,25,36,0) 62%); }
.r-num { position: absolute; top: 26px; left: 26px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .24em; color: rgba(255,255,255,.85); }
.r-vert { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); writing-mode: vertical-rl; rotate: 180deg; font-family: 'Barlow Condensed', sans-serif; font-weight: 400; font-size: 26px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: opacity .4s; }
.r-card.is-open .r-vert { opacity: 0; }
.r-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .9s var(--ease-out); pointer-events: none; min-width: 460px; }
.r-card.is-open .r-body { opacity: 1; transform: none; transition-delay: .25s; }
.r-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 300; text-transform: uppercase; line-height: .9; font-size: clamp(48px, 4.6vw, 76px); letter-spacing: .01em; }
.r-name .accent { color: var(--blue); }
.r-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.r-tags span { font-size: 13px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.92); }
.r-go { display: inline-flex; align-items: center; gap: .7rem; margin-top: 22px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.r-go i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); transition: transform .6s var(--ease-out); }
.r-card:hover .r-go i { transform: rotate(-45deg); }
.roster.filtering .r-card.dim { opacity: .35; filter: saturate(0); }
.roster.filtering .r-card.dim .r-vert { opacity: .5; }

@media (max-width: 1023px) {
  .roster { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 16px 8px; margin: 0 -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .roster::-webkit-scrollbar { display: none; }
  .roster { border-radius: 0; overflow-y: hidden; }
  .r-card { flex: 0 0 82%; height: min(132vw, 600px); scroll-snap-align: center; border-left: 0 !important; border-radius: 22px; transition: opacity .5s, filter .6s; }
  .r-card + .r-card { border-left: 0; }
  .r-card::after { display: none; }
  .r-card .r-img img { transform: none; filter: none; }
  .r-vert { display: none; }
  .r-card .shade { background: linear-gradient(0deg, rgba(15,25,36,.97) 0%, rgba(15,25,36,.75) 40%, rgba(15,25,36,0) 70%); }
  .r-body { opacity: 1; transform: none; min-width: 0; padding: 22px; }
  .r-name { font-size: 46px; }
  .roster.filtering .r-card.dim { opacity: .4; }
}
@media (min-width: 640px) and (max-width: 1023px) { .r-card { flex-basis: 52%; height: 640px; } }

.deck-dots { display: flex; gap: 2px; }
.deck-dots button { position: relative; width: 44px; height: 44px; }
.deck-dots button::before { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: rgba(255,255,255,.25); transition: background-color .3s; }
.deck-dots button[aria-current="true"]::before { background: var(--blue); }

/* Directory rows */
.dir-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 26px 0; border-top: 1px solid rgba(24,37,52,.14); color: var(--navy); text-decoration: none; }
.dir-row:last-child { border-bottom: 1px solid rgba(24,37,52,.14); }
@media (min-width: 1024px) { .dir-row { grid-template-columns: 4rem minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) 3.5rem; padding: 30px 0; } }
.dir-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 300; font-size: clamp(34px, 4vw, 58px); text-transform: uppercase; line-height: .95; transition: transform .7s var(--ease-out), color .3s; }
.dir-row:hover .dir-name { transform: translateX(12px); color: var(--ink); }
.dir-arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(24,37,52,.25); transition: background-color .3s, border-color .3s, color .3s, transform .6s var(--ease-out); }
.dir-row:hover .dir-arrow { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(-45deg); }
#dir-float { border-radius: 20px; position: fixed; left: 0; top: 0; width: 230px; height: 290px; pointer-events: none; z-index: 40; overflow: hidden; opacity: 0; transform: translate(-50%,-50%) scale(.85) rotate(-3deg); transition: opacity .35s, transform .6s var(--ease-out); }
#dir-float.on { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0deg); }
#dir-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; opacity: 0; transition: opacity .35s; }
#dir-float img.on { opacity: 1; }

/* ═════════ MEMBER PROFILE ═════════ */

.crumb a { color: rgba(255,255,255,.75); transition: color .25s; }
.crumb a:hover { color: #fff; }

.p-hero { position: relative; isolation: isolate; overflow: hidden; }
.p-ghost { position: absolute; right: -2vw; bottom: -4vw; z-index: -1; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 34vw; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.055); text-transform: uppercase; pointer-events: none; user-select: none; white-space: nowrap; }
.p-frame { position: relative; aspect-ratio: 1583 / 2048; overflow: hidden; background: var(--navy); border-radius: var(--r); isolation: isolate; }
.p-frame img { width: 100%; height: 100%; object-fit: cover; }
.p-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.p-corner { position: absolute; width: 22px; height: 22px; border-color: var(--blue); border-style: solid; z-index: 2; }
.p-corner.tl { top: -10px; left: -10px; border-width: 1px 0 0 1px; border-top-left-radius: 34px; width: 44px; height: 44px; }
.p-corner.br { bottom: -10px; right: -10px; border-width: 0 1px 1px 0; border-bottom-right-radius: 34px; width: 44px; height: 44px; }

.badge-float { position: absolute; z-index: 3; border-radius: 18px; background: rgba(15,25,36,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.14); color: #fff; }

/* rotating seal */
.seal { position: absolute; width: 132px; height: 132px; z-index: 3; }
.seal svg.seal-ring { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal text { font-family: 'Barlow Condensed', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 3.3px; fill: #fff; text-transform: uppercase; }
.seal .core { position: absolute; inset: 30px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* quick actions */
.qa { display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: 0 1rem; border: 1px solid rgba(255,255,255,.26); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: border-color .3s, background-color .3s; }
.qa:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.qa svg { color: var(--blue); }

/* stats */
.stat { border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px; }
.stat-n { font-family: 'Barlow Condensed', sans-serif; font-weight: 300; font-size: clamp(54px, 6vw, 92px); line-height: .9; letter-spacing: -.005em; color: #fff; font-variant-numeric: tabular-nums; }
.stat-n sup, .stat-n small { font-size: .42em; color: var(--blue); font-weight: 400; vertical-align: top; margin-left: 2px; }

/* bio: scroll-lit words */
.lit .w { transition: color .2s; }
html.js:not(.rm) .lit .w { color: rgba(24,37,52,.18); }
html.js:not(.rm) .lit .w.on { color: var(--navy); }
.pull { position: relative; padding-left: 28px; }
.pull::before { content: ''; position: absolute; left: 0; top: .3em; bottom: .3em; width: 1px; background: var(--blue); }

.fact { display: flex; justify-content: space-between; gap: 1rem; padding: 14px 0; border-top: 1px solid rgba(24,37,52,.14); font-size: 15px; }
.fact dt { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); padding-top: 2px; }
.fact dd { margin: 0; text-align: right; color: var(--navy); }

/* specialties: sticky image stack + list */
.spec { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 34px 0; border-top: 1px solid rgba(24,37,52,.14); }
.spec:last-child { border-bottom: 1px solid rgba(24,37,52,.14); }
.spec h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: .02em; transition: color .4s, transform .7s var(--ease-out); }
.spec .n { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .2em; color: rgba(24,37,52,.62); padding-top: 8px; transition: color .4s; }
.spec p { color: #4b5968; transition: color .4s; }
@media (min-width: 1024px) {
  .spec { opacity: .38; transition: opacity .6s; }
  .spec.on { opacity: 1; }
  .spec.on h3 { color: var(--ink); transform: translateX(8px); }
  .spec.on .n { color: var(--blue); }
}
.spec-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--navy); border-radius: var(--r); isolation: isolate; }
.spec-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s, transform 1.6s var(--ease-out); }
.spec-media img.on { opacity: 1; transform: scale(1); }
.spec-cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 20px 22px; background: linear-gradient(0deg, rgba(15,25,36,.85), rgba(15,25,36,0)); color: #fff; }
.spec-m-img { display: none; }
@media (max-width: 1023px) { .spec-m-img { display: block; aspect-ratio: 16/10; object-fit: cover; width: 100%; margin-top: 18px; border-radius: 20px; } }

/* neighborhoods */
.hood-btn { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: .75rem; width: 100%; min-height: 64px; text-align: left; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.7); transition: color .3s, padding-left .6s var(--ease-out); }
.hood-btn:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.hood-btn .nm { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.hood-btn .ix { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .2em; color: rgba(255,255,255,.45); }
.hood-btn .bar { width: 28px; height: 1px; background: rgba(255,255,255,.3); transition: width .7s var(--ease-out), background-color .3s; }
.hood-btn:hover { color: #fff; }
.hood-btn[aria-selected="true"] { color: #fff; padding-left: 10px; }
.hood-btn[aria-selected="true"] .ix { color: var(--blue); }
.hood-btn[aria-selected="true"] .bar { width: 64px; background: var(--blue); }
.hood-panel[hidden] { display: none; }
.hood-big { font-family: 'Barlow Condensed', sans-serif; font-weight: 300; text-transform: uppercase; font-size: clamp(54px, 7vw, 112px); line-height: .9; }
.hood-kv { border-top: 1px solid rgba(255,255,255,.16); padding-top: 14px; }
.hood-kv b { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 400; font-size: 36px; color: #fff; line-height: 1; }
.hood-map { position: relative; }
.hood-map svg { width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, #000 70%, transparent 100%); }
.hood-map .coast { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hood-map .land { fill: rgba(255,255,255,.035); }
.hood-map .pin circle.dot { fill: rgba(255,255,255,.4); transition: fill .4s, r .4s; }
.hood-map .pin circle.halo { fill: none; stroke: var(--blue); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hood-map .pin text { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; transition: opacity .4s, fill .4s; }
.hood-map .pin .num { fill: rgba(255,255,255,.5); }
.hood-map .pin .nm { fill: #fff; opacity: 0; paint-order: stroke; stroke: #0f1924; stroke-linejoin: round; pointer-events: none; }
.hood-map .pin.on .nm { opacity: 1; }
.hood-map .pin.on .num { opacity: 0; }
.hood-map .pin:hover .num { fill: #fff; }
.hood-map .pin.on circle.dot { fill: var(--blue); }
.hood-map .pin.on circle.halo { opacity: 1; animation: halo 2.2s ease-out infinite; }
@keyframes halo { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.hood-map .pin { cursor: pointer; }

/* process (reuses journey look) */
.j-node { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(24,37,52,.25); background: var(--sand); display: grid; place-items: center; color: rgba(24,37,52,.6); transition: border-color .5s, background-color .5s, color .5s, transform .6s var(--ease-out); position: relative; z-index: 1; }
.j-step.on .j-node { border-color: var(--blue); background: var(--blue); color: #fff; transform: scale(1.06); }
.j-step .j-body { transition: opacity .6s; }
html.js:not(.rm) .j-step:not(.on) .j-body { opacity: .5; }
.j-track { position: absolute; background: rgba(24,37,52,.14); }
.j-fill { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); }
@media (max-width: 1023px) { .j-fill { transform-origin: top; transform: scaleY(0); } }

/* reviews */
.quote { transition: opacity .7s, transform .9s var(--ease-out); }
.quote:not(.on) { opacity: 0; transform: translateY(16px); pointer-events: none; position: absolute; inset: 0; }
.dot { position: relative; width: 44px; height: 44px; }
.dot::before { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: rgba(255,255,255,.22); transition: background-color .3s; }
.dot[aria-current="true"]::before { background: var(--blue); }
.q-progress { height: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.q-progress i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* contact */
.field { position: relative; }
.field input, .field textarea, .field select { width: 100%; min-height: 56px; padding: 22px 0 8px; background: transparent; border: 0; border-bottom: 1px solid rgba(24,37,52,.3); font-size: 17px; color: var(--navy); outline: none; border-radius: 0; transition: border-color .3s; }
.field textarea { min-height: 120px; resize: vertical; }
.field label { position: absolute; left: 0; top: 18px; font-size: 16px; color: #5b6876; pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease-out), color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-16px) scale(.78); color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field .u { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field input:focus ~ .u, .field textarea:focus ~ .u { transform: scaleX(1); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid rgba(24,37,52,.25); font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.seg label:hover { border-color: var(--navy); }
.seg input:checked + label { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 3px; }

.c-line { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: .5rem; min-height: 64px; border-top: 1px solid rgba(255,255,255,.12); color: #fff; }
.c-line:last-of-type { border-bottom: 1px solid rgba(255,255,255,.12); }
.c-line svg { color: var(--blue); }
.c-line .lbl { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); color: #fff; transition: background-color .3s, border-color .3s; }
.icon-btn:hover { background: var(--blue); border-color: var(--blue); }

/* next agent */
.next { position: relative; display: block; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; }
.next-img { position: absolute; right: 8%; top: 50%; width: min(300px, 28vw); aspect-ratio: 4/5; transform: translateY(-50%) rotate(4deg) scale(.9); opacity: 0; transition: opacity .5s, transform .9s var(--ease-out); z-index: -1; overflow: hidden; border-radius: 20px; }
.next-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.next:hover .next-img, .next:focus-visible .next-img { opacity: 1; transform: translateY(-50%) rotate(0deg) scale(1); }
.next-name { transition: transform .9s var(--ease-out); }
.next:hover .next-name { transform: translateX(18px); }
.next .arrow { transition: transform .7s var(--ease-out); }
.next:hover .arrow { transform: translateX(10px) rotate(-45deg); }
@media (max-width: 1023px) { .next-img { opacity: 1; position: relative; right: auto; top: auto; transform: none; width: 120px; margin-bottom: 20px; } .next:hover .next-img { transform: none; } }

/* mobile action dock */
#dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transform: translateY(140%); transition: transform .6s var(--ease-out); }
#dock.on { transform: none; }
#dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; background: rgba(15,25,36,.9); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
#dock a svg { color: var(--blue); }
@media (min-width: 1024px) { #dock { display: none; } }

/* toast */
#toast { position: fixed; left: 50%; bottom: 88px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; background: #fff; color: var(--navy); font-size: 15px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.45); transition: opacity .35s, transform .5s var(--ease-out); display: flex; align-items: center; gap: .6rem; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { #toast { bottom: 32px; } }

/* magnetic */
.mag { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* dropdown boxes added in the Form Control Center: a select always shows a value, so its label stays raised */
.field select { appearance: auto; }
.field select + label { transform: translateY(-16px) scale(.78); color: var(--ink); }
.field select:focus { border-color: var(--blue); }
