/* Crosstown Tech: true black, logo silver, Archivo set wide for display. */
:root {
  --black: #000000;
  --panel: #141414;
  --panel-2: #1b1b1c;
  --line: #2a2a2d;
  --line-2: #3d3d41;
  --silver: #c9cacd;
  --steel: #8a8d92;
  --text: #f5f5f5;
  --soft: #d6d6d9;
  --muted: #a3a4a8;
  --dim: #8a8d92;
  --field: #0a0a0a;
  --silver-grad: linear-gradient(110deg, #fafafa 0%, #c9cacd 30%, #74777c 50%, #c9cacd 70%, #fafafa 100%);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: "Archivo", system-ui, sans-serif;
  --gutter: 24px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--black); scroll-behavior: smooth; }
body {
  background: var(--black); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--silver); color: var(--black); }
a { color: inherit; text-decoration: none; }
img { display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* Display type: Archivo stretched wide, like the CROSSTOWN wordmark */
.display {
  font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: -.025em; line-height: .98;
}
.label { font-size: .875rem; color: var(--dim); }
.mono { font-size: .8125rem; color: var(--dim); } /* kept for the admin page */

/* ---------- Header (logo lockup is unchanged) ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #1c1c1e;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 26px; width: auto; }
.wordmark { font-family: "Poppins", sans-serif; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; line-height: 1; }
.wordmark b { font-weight: 800; }
.wordmark span { font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: .9375rem; color: var(--muted); }
.nav-links a:not(.btn) { position: relative; transition: color .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"]:not(.btn) { color: var(--text); }
.nav-links a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--text);
}
.nav-links a.m-only, .nav-right > .m-btn, .menu-btn { display: none; }
.nav-right { display: contents; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font: inherit; font-size: .9375rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--text); color: var(--black); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--steel); }
.nav .btn { padding: 9px 18px; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Logo field (tiny CT logos drawn on a canvas) ---------- */
.logo-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Home hero: the one orchestrated moment ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero .logo-field {
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.28) 38%, #000 72%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.28) 38%, #000 72%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.55fr .45fr; gap: 48px; align-items: end;
  min-height: min(880px, calc(100svh - 72px)); padding-top: 96px; padding-bottom: 88px;
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 5.25rem); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: block; }
.hero .lead { font-size: 1.1875rem; color: var(--soft); max-width: 34em; margin-top: 28px; }
.hero .actions { margin-top: 36px; }
.hero-mark { align-self: center; justify-self: end; width: min(100%, 300px); }
.hero-mark img { width: 100%; height: auto; }
.hero-where { margin-top: 44px; }

/* Load sequence: mark appears, logos ripple out of it, headline rises, the rest follows */
.js .hero-mark { opacity: 0; transform: scale(.92); animation: mark-in 1s var(--ease) .1s forwards; }
.js .hero h1 .line > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.js .hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.js .hero .after { opacity: 0; animation: fade 1s var(--ease) .55s forwards; }
@keyframes mark-in { to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Moving word band (scroll-linked) ---------- */
.band { padding: 40px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); user-select: none; }
.band-row {
  display: flex; align-items: center; width: max-content; white-space: nowrap;
  font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -.02em; line-height: 1;
  font-size: clamp(3.5rem, 10vw, 8.5rem); will-change: transform;
}
.band-row .sep { height: .34em; width: auto; margin: 0 .38em; }
.band-row.outline { color: transparent; -webkit-text-stroke: 1px rgba(245,245,245,.38); transform: translateX(calc(var(--band, 0) * -1px)); }
.band-row.outline .sep { opacity: .45; }
.band-row.fill { color: rgba(245,245,245,.08); transform: translateX(calc(var(--band, 0) * 1px - 40%)); margin-top: 8px; }
.band-row.fill .sep { opacity: .18; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.section-head p { color: var(--muted); max-width: 32em; }

/* Service list: rows, not identical cards */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 40px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line); transition: background .25s;
}
.svc-row h3 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); }
.svc-row p { color: var(--muted); max-width: 30em; }
.svc-row .go { color: var(--dim); font-size: .9375rem; font-weight: 600; white-space: nowrap; transition: color .2s; }
a.svc-row:hover .go { color: var(--text); }
a.svc-row:hover h3 { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 2px; }

/* Services page: each service gets its own full row */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-detail:first-child { border-top: 1px solid var(--line); }
.svc-detail h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); }
.svc-detail .desc { color: var(--soft); font-size: 1.1875rem; margin-top: 18px; max-width: 26em; }
.svc-detail .note { color: var(--dim); font-size: .9375rem; margin-top: 16px; }
.svc-detail h3 { font-size: .9375rem; font-weight: 600; color: var(--dim); margin-bottom: 14px; }
.includes { list-style: none; border-top: 1px solid var(--line); }
.includes li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--soft); }

/* How it works: a route line with three stops, over the logo field */
.field-section { position: relative; overflow: hidden; isolation: isolate; padding: 140px 0; }
.field-section .logo-field { z-index: -1; }
.route { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 44px; }
.route::before, .route::after {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line-2);
}
.route::after { background: var(--silver); transform-origin: left; transform: scaleX(var(--route, 1)); }
.stop { position: relative; }
.stop::before {
  content: ""; position: absolute; top: -44px; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--black); border: 2px solid var(--silver); z-index: 1;
}
.stop .n { font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1rem; color: var(--dim); }
.stop h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); margin: 10px 0 12px; }
.stop p { color: var(--soft); max-width: 22em; }
.route-panel {
  background: rgba(0,0,0,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 22px; padding: 56px 48px;
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.facts dt { font-size: .9375rem; color: var(--dim); }
.facts dd { font-size: 1.1875rem; color: var(--soft); margin-top: 6px; max-width: 18em; }

/* Closing: the email address is the call to action */
.closing { padding: 128px 0 120px; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); }
.big-email {
  display: inline-block; margin-top: 28px; font-weight: 700; font-variation-settings: "wdth" 112;
  font-size: clamp(1.0625rem, 4.4vw, 3.25rem); letter-spacing: -.02em; line-height: 1.1;
  overflow-wrap: normal; border-bottom: 2px solid var(--line-2); transition: border-color .25s;
}
.big-email:hover { border-color: var(--text); }
.closing p { color: var(--muted); margin-top: 24px; max-width: 36em; }
.closing p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* Page header for inner pages */
.page-head { padding: 104px 0 72px; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 14ch; }
.page-head p { color: var(--soft); font-size: 1.1875rem; max-width: 34em; margin-top: 24px; }

/* ---------- Contact ---------- */
.contact-hero { position: relative; overflow: hidden; isolation: isolate; }
.contact-hero .logo-field {
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.28) 40%, #000 70%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.28) 40%, #000 70%);
}
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; padding-bottom: 120px; }
.contact-info .big-email { margin-top: 10px; font-size: clamp(1.0625rem, 2.6vw, 2rem); }
.contact-info dl { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-info dl div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info dt { font-size: .875rem; color: var(--dim); }
.contact-info dd { margin-top: 4px; color: var(--soft); }
.contact-info dd a { color: var(--text); }

form { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; font-size: .875rem; color: var(--soft); font-weight: 500; }
input, select, textarea {
  font: inherit; font-size: .9375rem; color: var(--text); background-color: var(--field);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--silver); }
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a4a8' stroke-width='1.8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .9375rem; min-height: 1.4em; }
.form-status.ok { color: #86efac; }
.form-status.err { color: #fca5a5; }
form .btn { width: 100%; padding: 15px; }
form .btn[disabled] { opacity: .6; cursor: wait; }

/* Step-by-step intake form */
.steps-bar { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps-bar li { font-size: .8125rem; color: var(--dim); }
.steps-bar li::before { content: ""; display: block; height: 3px; border-radius: 3px; background: var(--line-2); margin-bottom: 8px; transition: background .3s; }
.steps-bar li.on { color: var(--text); }
.steps-bar li.on::before { background: var(--silver); }
.step-count { font-size: .8125rem; color: var(--dim); margin-top: -8px; }
fieldset.step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
fieldset.step legend { font-size: 1.375rem; font-weight: 700; font-variation-settings: "wdth" 112; padding: 0; margin-bottom: 4px; }
.hint { font-size: .875rem; color: var(--muted); margin-top: -10px; }
.field { display: grid; gap: 10px; }
.field .q { font-size: .875rem; color: var(--soft); font-weight: 500; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; gap: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: .875rem; color: var(--soft); transition: background .15s, color .15s, border-color .15s;
}
.choice:hover span { border-color: var(--steel); }
.choice input:checked + span { background: var(--text); color: var(--black); border-color: var(--text); }
.choice input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.step-nav { display: flex; gap: 10px; }
form .step-nav .btn { width: auto; flex: 1; }
.js #contact-form .step:not(.on) { display: none; }
html:not(.js) .steps-bar, html:not(.js) .step-count, html:not(.js) [data-next], html:not(.js) [data-back] { display: none; }
[data-next][hidden], [data-send][hidden], [data-back][hidden] { display: none; }

/* Confirmation shown after the form is sent */
.form-done { display: grid; justify-items: start; gap: 14px; padding: 8px 0; }
.form-done svg { color: var(--text); }
.form-done h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -.02em; }
.form-done p { color: var(--soft); max-width: 32em; }
.form-done .hint { margin-top: 0; }
.form-done .hint a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
form .form-done .btn { width: auto; margin-top: 6px; }
.form-done:focus { outline: none; }
#contact-form.is-done > :not(.form-done) { display: none !important; }
.js #contact-form.is-done .form-done svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: check .6s var(--ease) .15s forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }

/* Privacy policy and other long text */
.legal { padding-bottom: 112px; }
.legal section { max-width: 68ch; padding: 32px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; font-variation-settings: "wdth" 112; letter-spacing: -.01em; margin-bottom: 12px; }
.legal h3 { font-size: 1.0625rem; font-weight: 600; margin: 18px 0 6px; }
.legal p, .legal li { color: var(--soft); line-height: 1.7; }
.legal p + p, .legal ul + p { margin-top: 14px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; margin-top: 10px; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal b { color: var(--text); font-weight: 600; }
.form-privacy { font-size: .8125rem; color: var(--dim); }
.form-privacy a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; color: var(--dim); font-size: .875rem; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--muted); transition: color .2s; }
.foot-links a:hover { color: var(--text); }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - 72px - 110px); display: grid; align-content: center; padding: 64px 0; }
.notfound h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.notfound p { color: var(--muted); margin: 20px 0 32px; }

/* Smooth cross-fade between pages; the header stays put */
@view-transition { navigation: auto; }
header { view-transition-name: site-header; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-head, .svc-detail, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .svc-row { grid-template-columns: 1fr; gap: 8px; }
  .svc-row .go { display: none; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  .menu-btn {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    display: block; width: 16px; height: 1.5px; background: var(--text); position: relative;
    transition: transform .35s var(--ease), background .2s;
  }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -5px; }
  .menu-btn span::after { top: 5px; }
  .menu-open .menu-btn span { background: transparent; }
  .menu-open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
  .menu-open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }
  .nav-right { display: flex; align-items: center; gap: 10px; }
  .nav-right > .m-btn { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #000; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s var(--ease), visibility 0s .45s;
  }
  .menu-open .nav-links { clip-path: inset(0); visibility: visible; transition: clip-path .45s var(--ease); }
  .nav-links a:not(.btn), .nav-links a.m-only { display: block; padding: 16px 0; font-size: 1.375rem; font-weight: 600; font-variation-settings: "wdth" 112; color: var(--muted); border-bottom: 1px solid #1c1c1e; }
  .nav-links a[aria-current="page"]:not(.btn) { color: var(--text); }
  .nav-links a[aria-current="page"]:not(.btn)::after { display: none; }
  .nav-links .btn { display: none; }

  .hero-grid { grid-template-columns: 1fr; align-items: start; min-height: 0; padding-top: 48px; padding-bottom: 72px; gap: 32px; }
  .hero-mark { order: -1; justify-self: start; width: 132px; }
  .contact-hero .logo-field {
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 40%, #000 70%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 40%, #000 70%);
  }
  .hero .logo-field {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 22%, rgba(0,0,0,.25) 50%);
            mask-image: linear-gradient(180deg, #000 0%, #000 22%, rgba(0,0,0,.25) 50%);
  }
  .section { padding: 80px 0; }
  .field-section { padding: 88px 0; }
  .route { grid-template-columns: 1fr; gap: 44px; padding-top: 0; padding-left: 44px; }
  .route::before, .route::after { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .route::after { transform-origin: top; transform: scaleY(var(--route, 1)); }
  .stop::before { top: 4px; left: -44px; }
  .route-panel { padding: 36px 24px; }
  .page-head { padding: 64px 0 48px; }
  .closing { padding: 88px 0; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .row { grid-template-columns: 1fr; }
  form { padding: 24px; }
  .wordmark { font-size: 16px; }
  .brand img { height: 22px; }
}
@media (max-width: 400px) {
  .nav-right > .m-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .band-row { transform: none !important; }
}
