/* ==========================================================================
   headway.co.ls — single page. Builds on marshal.css tokens.
   ========================================================================== */

[hidden] { display: none !important; }

.brand__logo { height: 34px; width: auto; }
.nav__link.is-current { color: var(--text); background: rgba(255,255,255,.09); }

/* Hero ------------------------------------------------------------------ */
.hw-hero {
    position: relative; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 120px 0 clamp(40px, 6vw, 72px);
    overflow: hidden; isolation: isolate;
}
.hw-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(120% 70% at 50% 100%, rgba(12,13,12,.96) 30%, rgba(12,13,12,.55) 60%, rgba(12,13,12,.15) 100%);
}
.hw-collage { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hw-tile {
    position: absolute; margin: 0;
    border-radius: 10px; overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
    will-change: transform;
}
.hw-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.hw-tile.is-phone { border-radius: 22px; box-shadow: 0 0 0 5px #222522, 0 30px 60px -20px rgba(0,0,0,.8); }
.hw-tile--1 { width: 30vw; aspect-ratio: 16/10; left: -4vw; top: 9vh; }
.hw-tile--2 { width: 22vw; aspect-ratio: 16/10; left: 31vw; top: 4vh; }
.hw-tile--3 { width: 9vw;  aspect-ratio: 520/1018; left: 56vw; top: 15vh; }
.hw-tile--4 { width: 28vw; aspect-ratio: 16/10; right: -5vw; top: 7vh; }
.hw-tile--5 { width: 20vw; aspect-ratio: 16/10; left: 18vw; top: 39vh; }
.hw-tile--6 { width: 24vw; aspect-ratio: 16/8;  right: 12vw; top: 37vh; }
.hw-tile--7 { width: 8vw;  aspect-ratio: 540/1110; right: 3vw; top: 45vh; }
.hw-tile--8 { width: 18vw; aspect-ratio: 16/10; left: -3vw; top: 52vh; }

.hw-hero__inner { position: relative; }
.hw-word {
    font-family: var(--display); font-weight: 750;
    font-variation-settings: "wdth" 75, "opsz" 96;
    font-size: min(25vw, 40rem);
    line-height: .8; letter-spacing: -.05em;
    margin: 22px 0 32px -0.05em;
    white-space: nowrap;
}
.hw-word .char { display: inline-block; }
.hw-hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 64px; align-items: end; border-top: 1px solid var(--line); padding-top: 26px; }
.hw-hero__lede { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.1vw, 1.9rem); line-height: 1.18; letter-spacing: -.02em; max-width: 34ch; }
.hw-hero__lede em { font-style: normal; color: var(--accent); }
.hw-scroll { position: absolute; right: var(--gutter); top: 50%; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; color: var(--text-dim); }
.hw-scroll span { width: 1px; height: 60px; background: linear-gradient(var(--accent), transparent); animation: hwDrip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes hwDrip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 820px) {
    .hw-hero__row { grid-template-columns: 1fr; }
    .hw-scroll { display: none; }
    .hw-tile--1 { width: 64vw; left: -14vw; top: 12vh; }
    .hw-tile--2 { width: 46vw; left: 56vw; top: 8vh; }
    .hw-tile--3 { width: 22vw; left: 40vw; top: 26vh; }
    .hw-tile--4, .hw-tile--6, .hw-tile--8 { display: none; }
    .hw-tile--5 { width: 50vw; left: 58vw; top: 32vh; }
    .hw-tile--7 { width: 18vw; right: auto; left: 6vw; top: 34vh; }
}

.hw-manifesto { max-width: 26ch; }

/* Services index tweaks */
.hw-services { padding-top: clamp(90px, 10vw, 150px); }
.hw-services .index__desc { font-size: 15.5px; }

/* Marshal horizontal --------------------------------------------------- */
.hw-marshal { background: var(--ink); position: relative; }
.hw-marshal__pin { height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hw-marshal__track { display: flex; height: 100%; width: max-content; }
.hw-panel { flex: none; width: 100vw; height: 100%; padding: 110px var(--gutter) 70px; display: flex; flex-direction: column; justify-content: center; }
.hw-panel--intro { width: min(100vw, 900px); gap: 26px; align-items: flex-start; }
.hw-panel__big { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 82; font-size: clamp(2.8rem, 6.6vw, 6.8rem); line-height: .92; letter-spacing: -.045em; }
.hw-panel__lede { color: var(--text-dim); max-width: 42ch; font-size: 18px; }
.hw-panel__hint { color: var(--text-dim); margin-top: 20px; }
.hw-panel--product {
    width: min(100vw, 1500px);
    display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 64px); align-items: center;
    background: var(--card-accent); color: var(--card-ink);
    border-radius: 28px; margin: 90px 18px 40px; height: auto; padding: clamp(32px, 4vw, 64px);
}
.hw-panel--product h3 { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 82; font-size: clamp(2.2rem, 4.2vw, 4.4rem); line-height: .92; letter-spacing: -.045em; margin: 14px 0 16px; }
.hw-panel--product .mono { opacity: .7; }
.hw-panel__summary { font-size: 17px; opacity: .85; max-width: 38ch; }
.hw-panel__shot { box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.hw-marshal__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; height: 2px; background: var(--line); }
.hw-marshal__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

@media (max-width: 960px) {
    .hw-marshal__pin { height: auto; }
    .hw-marshal__track { flex-direction: column; width: 100%; }
    .hw-panel, .hw-panel--intro { width: 100%; height: auto; padding: 90px var(--gutter) 30px; }
    .hw-panel--product { width: auto; margin: 0 12px 16px; grid-template-columns: 1fr; padding: 28px 22px; }
    .hw-marshal__bar, .hw-panel__hint { display: none; }
}

/* Work ------------------------------------------------------------------ */
.hw-work { background: var(--paper); color: var(--text-ink); padding: clamp(90px, 11vw, 170px) 0; }
.hw-work .eyebrow { color: var(--text-ink-dim); }
.hw-projects { display: grid; gap: clamp(70px, 9vw, 140px); }
.hw-project__link { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 70px); align-items: center; }
.hw-project:nth-child(even) .hw-project__link { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.hw-project:nth-child(even) .hw-project__meta { order: 2; }
.hw-project__meta { display: grid; gap: 14px; align-content: start; }
.hw-project__meta .mono { color: var(--text-ink-dim); }
.hw-project__meta h3 { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 84; font-size: clamp(2.2rem, 4.4vw, 4.4rem); line-height: .94; letter-spacing: -.04em; transition: color .4s var(--ease); }
.hw-project__meta p { color: var(--text-ink-dim); max-width: 38ch; }
.hw-project__link:hover h3 { color: #c45f12; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tags li { font: 500 13px/1 var(--sans); text-transform: none; letter-spacing: 0; padding: 8px 12px; border: 1px solid var(--line-ink); border-radius: 999px; }
.hw-project__shot { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 50px 90px -45px rgba(20,20,10,.55), 0 0 0 1px var(--line-ink); background: #ddd; }
.hw-project__shot img { width: 100%; height: 118%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.hw-project__link:hover .hw-project__shot img { transform: scale(1.04); }
.hw-also { margin-top: clamp(60px, 8vw, 110px); padding-top: 26px; border-top: 1px solid var(--line-ink); color: var(--text-ink-dim); font-size: 18px; display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }
@media (max-width: 820px) {
    .hw-project__link, .hw-project:nth-child(even) .hw-project__link { grid-template-columns: 1fr; }
    .hw-project:nth-child(even) .hw-project__meta { order: 0; }
}

/* SmartAccess ----------------------------------------------------------- */
.hw-smart { padding: clamp(90px, 11vw, 170px) 0; background: radial-gradient(80% 60% at 85% 40%, rgba(244,129,41,.14), transparent 70%), var(--ink); }
.hw-smart__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hw-smart .h2 { margin: 24px 0 22px; }
.hw-smart__lede { color: var(--text-dim); max-width: 46ch; }
.hw-smart__list { margin: 34px 0 38px; border-top: 1px solid var(--line); }
.hw-smart__list li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hw-smart__list .mono { color: var(--accent); padding-top: 4px; }
.hw-smart__list h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; }
.hw-smart__list p { color: var(--text-dim); font-size: 15px; }
@media (max-width: 960px) { .hw-smart__grid { grid-template-columns: 1fr; } }

/* Hosting --------------------------------------------------------------- */
.hw-hosting { background: var(--paper); color: var(--text-ink); padding: clamp(90px, 11vw, 170px) 0; }
.hw-hosting .eyebrow { color: var(--text-ink-dim); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: #f7f5ef; border: 1px solid var(--line-ink); border-radius: 22px; padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(20,20,10,.4); }
.plan__name { display: flex; justify-content: space-between; color: var(--text-ink-dim); }
.plan__name em { font-style: normal; color: var(--ink); background: var(--accent); padding: 3px 8px; border-radius: 999px; }
.plan__price { font-family: var(--display); color: var(--text-ink-dim); }
.plan__price span { font-weight: 700; font-variation-settings: "wdth" 84; font-size: clamp(2.8rem, 4.6vw, 4.4rem); letter-spacing: -.045em; color: var(--text-ink); line-height: 1; }
.plan__for { color: var(--text-ink-dim); }
.plan ul { display: grid; gap: 0; margin: 8px 0 18px; flex: 1; }
.plan li { padding: 10px 0; border-top: 1px solid var(--line-ink); font-size: 15px; }
.plan li::before { content: "✓"; margin-right: 10px; color: #c45f12; }
.plan .btn { align-self: flex-start; }
.plan .btn--line:hover > span { color: var(--paper); }
.plan--hot { background: var(--ink); color: var(--text); border-color: var(--ink); }
.plan--hot .plan__name, .plan--hot .plan__for, .plan--hot .plan__price { color: var(--text-dim); }
.plan--hot .plan__price span { color: var(--text); }
.plan--hot li { border-color: var(--line); }
.plan--hot li::before { color: var(--accent); }
.plan--hot .btn--dark { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* Process --------------------------------------------------------------- */
.hw-process { padding: clamp(90px, 11vw, 170px) 0; background: var(--ink); }
.hw-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 34px; }
.hw-steps li { display: grid; gap: 12px; align-content: start; position: relative; }
.hw-steps .mono { color: var(--accent); }
.hw-steps h3 { font-family: var(--display); font-weight: 650; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.025em; }
.hw-steps p { color: var(--text-dim); font-size: 15.5px; max-width: 30ch; }
.hw-steps__dot { position: absolute; top: -40px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--accent); z-index: 1; }
.hw-steps__line { position: absolute !important; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.hw-steps__line span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hw-stack { margin-top: clamp(60px, 7vw, 100px); color: var(--text-dim); text-transform: none; font-size: 14px; letter-spacing: .02em; border-top: 1px solid var(--line); padding-top: 24px; }
@media (max-width: 900px) {
    .hw-steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
    .hw-steps__line { display: none; }
    .hw-steps__dot { top: -24px; }
}
@media (max-width: 520px) { .hw-steps { grid-template-columns: 1fr; } }

/* About ----------------------------------------------------------------- */
.hw-about { background: var(--paper); color: var(--text-ink); padding: clamp(90px, 11vw, 170px) 0; overflow: hidden; }
.hw-about .eyebrow { color: var(--text-ink-dim); }
.hw-about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.hw-about__year { font-family: var(--display); font-weight: 750; font-variation-settings: "wdth" 75; font-size: clamp(6rem, 17vw, 18rem); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--text-ink); position: sticky; top: 20vh; }
.hw-about .h2 { margin: 24px 0 30px; }
.hw-about__body { display: grid; gap: 18px; font-size: 18px; color: var(--text-ink-dim); max-width: 56ch; }
.hw-values { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border-top: 1px solid var(--line-ink); }
.hw-values li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line-ink); }
.hw-values li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-ink); }
.hw-values h3 { font-family: var(--display); font-weight: 650; font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 6px; }
.hw-values p { color: var(--text-ink-dim); font-size: 15px; }
@media (max-width: 900px) {
    .hw-about__grid { grid-template-columns: 1fr; }
    .hw-about__year { position: static; }
}
@media (max-width: 520px) {
    .hw-values { grid-template-columns: 1fr; }
    .hw-values li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Contact --------------------------------------------------------------- */
.hw-contact { padding: clamp(90px, 11vw, 170px) 0 clamp(70px, 8vw, 120px); background: var(--ink); }
.hw-contact__title { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 80; font-size: clamp(3rem, 10vw, 10.5rem); line-height: .88; letter-spacing: -.05em; margin: 26px 0 clamp(40px, 6vw, 80px); }
.hw-contact__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(32px, 6vw, 96px); }
.hw-form { position: relative; }
.hw-form__fields { display: grid; gap: 26px; }
.hw-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 8px; }
.field > span, .chips legend { font: 500 14px/1.2 var(--sans); text-transform: none; letter-spacing: 0; color: var(--text-dim); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--text);
    background: transparent; border: 0; border-bottom: 1px solid var(--line);
    padding: 10px 0 12px; border-radius: 0;
    transition: border-color .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: right 6px top 55%, right 0 top 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--ink-2); color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #ff6b6b; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { margin-bottom: 14px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip:hover span { border-color: var(--text-dim); }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hw-form__error { color: #ff8a8a; font-size: 15px; }
.hw-form__send { justify-self: start; }
.hw-form__send[disabled] { opacity: .6; pointer-events: none; }
.hw-form__done { padding: 40px 0; display: grid; gap: 14px; }
.hw-form__tick { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 34px; }
.hw-form__done h3 { font-family: var(--display); font-weight: 650; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; }
.hw-form__done p { color: var(--text-dim); }
.hw-form__done a { color: var(--accent); }
.hw-contact__side { display: grid; gap: 28px; align-content: start; border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.hw-contact__side .mono { color: var(--text-dim); margin-bottom: 6px; }
.hw-contact__side a, .hw-contact__side p:not(.mono) { font-family: var(--display); font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
.hw-contact__side a:hover { color: var(--accent); }
@media (max-width: 900px) {
    .hw-contact__grid { grid-template-columns: 1fr; }
    .hw-contact__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .hw-form__row { grid-template-columns: 1fr; } }

/* Hero collage as two endless belts (built by heroCollage in marshal.js) */
.hw-belt { position: absolute; left: 0; width: 100%; overflow: visible; will-change: transform; }
.hw-belt--a { top: 4vh; --bh: 34vh; transform: rotate(-3deg); }
.hw-belt--b { top: 42vh; --bh: 28vh; transform: rotate(-3deg); }
.hw-belt .hw-tile { aspect-ratio: 16 / 10; }
.hw-belt .hw-tile.is-phone { aspect-ratio: 520 / 1018; }
.hw-belt__track { display: flex; gap: 2vw; width: max-content; padding-right: 2vw; will-change: transform; }
.hw-belt .hw-tile { position: relative; inset: auto; flex: none; display: block; height: var(--bh); width: auto !important; }
@media (max-width: 760px) {
    .hw-belt--a { top: 9vh; --bh: 22vh; }
    .hw-belt--b { top: 34vh; --bh: 17vh; }
}
