﻿/* Eastern Shed Worx â€” marketing site
   Brand tokens carried over from the original design system (Archivo, charcoal, signal red). */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/archivo-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --ink: #201e1d;
  --muted: #605d5d;          /* 5.9:1 on bg */
  --line: rgba(32, 30, 29, 0.18);
  --accent: #0025cc;         /* logo blue: large type, markers, decoration */
  --accent-ink: #0025cc;     /* button fill under white text, 9.6:1 */
  --accent-soft: #9fb1ff;    /* accent text on charcoal */
  --accent-bright: #5a77ff;  /* accent marks on charcoal / photos */
  --on-dark-muted: #bab6b6;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px; --s32: 128px;
  --section: clamp(4rem, 10vw, 8rem);
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; margin: 0; background: var(--bg); color: var(--ink); font-family: "Archivo", system-ui, sans-serif; font-size: 1rem; line-height: 1.55; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(0, 37, 204, 0.22); }

:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.hero :focus-visible, .promises :focus-visible, .quote-info :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); text-decoration: none; font-weight: 800; }
.skip:focus { top: var(--s4); }

h1, h2, h3 { font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 0.96; letter-spacing: -0.04em; }
h3 { font-size: 1.5rem; }
p { text-wrap: pretty; }
i.dot { font-style: normal; color: var(--accent); }
.hero i.dot, .quote-info i.dot { color: var(--accent-bright); }

/* Masked line reveal */
.ln { display: block; overflow: hidden; padding-block: 0.08em; margin-block: -0.08em; }
.ln > span { display: block; }
.js .ln > span { transform: translateY(112%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + var(--base, 0ms)); }
.ln:nth-child(2) { --i: 1; }
.ln:nth-child(3) { --i: 2; }
.js .reveal-lines.is-in .ln > span,
.js.is-loaded .hero-title .ln > span { transform: none; }

/* Scroll reveals */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-img]::after { content: ""; position: absolute; inset: -1px; z-index: 3; background: var(--bg); transform-origin: top; pointer-events: none; transition: transform 1.1s var(--ease-io) var(--d, 0ms); }
.js [data-reveal-img] img { scale: 1.16; transition: scale 1.6s var(--ease) var(--d, 0ms), transform 0.8s var(--ease); }
.js [data-reveal-img].is-in::after { transform: scaleY(0); }
.js [data-reveal-img].is-in img { scale: 1; }

/* Buttons */
.btn { --wipe: var(--ink); --wipe-text: #fff;
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 48px; padding: 0 var(--s6); border: 1.5px solid transparent; background: none; cursor: pointer; text-decoration: none;
  font-weight: 800; font-size: 0.9375rem; line-height: 1.2; letter-spacing: -0.005em; text-align: center;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s var(--ease); }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--wipe); transform: translateY(101%); transition: transform 0.45s var(--ease); }
.btn:active { transform: scale(0.975); }
.btn svg { flex: none; transition: transform 0.35s var(--ease); }
.btn-lg { min-height: 56px; font-size: 1rem; }
.btn-sm { min-height: 44px; padding-inline: var(--s6); }
.btn-wide { width: 100%; justify-content: space-between; }
.btn-primary { background: var(--accent-ink); color: #fff; }
.btn-light { color: #fff; border-color: rgba(255, 255, 255, 0.7); --wipe: #fff; }
.btn-outline { border-color: var(--ink); --wipe: var(--ink); }
.btn-ghost { padding-inline: var(--s3); --wipe: transparent; }
@media (hover: hover) {
  .btn:hover::before { transform: none; }
  .btn:hover svg.arrow { transform: translateX(4px); }
  .btn-light:hover { color: var(--ink); border-color: #fff; }
  .btn-outline:hover { color: var(--bg); }
  .btn-ghost:hover { color: var(--accent-ink); }
}

/* Top bar + header */
.topbar { background: var(--ink); color: var(--bg); font-size: 0.8125rem; font-weight: 600; }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s6); padding-block: var(--s2); }
.topbar-links { display: none; gap: var(--s6); }
.topbar a { text-decoration: none; transition: color 0.25s; }
.topbar a:hover { color: var(--accent-soft); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(32, 30, 29, 0.35); }
.header-in { display: flex; align-items: center; gap: var(--s4); padding-block: var(--s3); }
.brand { margin-right: auto; display: block; }
.brand img { height: 44px; width: auto; transition: height 0.35s var(--ease); }
.is-scrolled .brand img { height: 36px; }
.header-cta { display: flex; align-items: center; gap: var(--s2); }
.header-cta .btn-primary { display: none; }
.phone-num { display: none; }
.header-cta .btn-ghost { min-width: 44px; padding-inline: var(--s3); }

.menu-btn { position: relative; width: 44px; height: 44px; border: 1.5px solid var(--ink); background: none; cursor: pointer; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 24px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; background: var(--bg); padding: var(--s6) var(--gutter); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s; }
.nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav a { position: relative; text-decoration: none; font-weight: 800; font-size: 1.75rem; letter-spacing: -0.03em; padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.nav .nav-phone-m { color: var(--accent-ink); border-bottom: 0; }

@media (min-width: 480px) { .header-cta .btn-primary { display: inline-flex; } }
@media (min-width: 640px) { .topbar-links { display: flex; } .phone-num { display: inline; } .brand img { height: 52px; } .is-scrolled .brand img { height: 40px; } }
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .header-in { gap: var(--s8); }
  .nav { position: static; height: auto; flex-direction: row; gap: var(--s8); padding: 0; overflow: visible; opacity: 1; visibility: visible; transform: none; background: none; }
  .nav a { font-size: 0.9375rem; letter-spacing: 0; padding: var(--s2) 0; border: 0; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-ink); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
  .nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav .nav-phone-m { display: none; }
  .brand { margin-right: 0; }
  .nav { margin-right: auto; margin-left: var(--s8); }
}

/* Hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, calc(100svh - 112px), 900px); background: var(--ink); color: #fff; overflow: hidden; }
.px { position: relative; overflow: hidden; }
.px > img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { object-position: center 62%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(32, 30, 29, 0.9) 0%, rgba(32, 30, 29, 0.55) 40%, rgba(32, 30, 29, 0.12) 75%); pointer-events: none; }
.js .hero-media { clip-path: inset(0 0 100% 0); }
.js.is-loaded .hero-media { clip-path: inset(0); transition: clip-path 1.2s var(--ease-io); }
.js .hero-media img { scale: 1.14; }
.js.is-loaded .hero-media img { scale: 1; transition: scale 2.2s var(--ease); }
.hero-in { position: relative; z-index: 2; display: grid; gap: var(--s8); padding-block: var(--s16) var(--s12); }
.hero-title { --base: 350ms; font-size: clamp(2.75rem, 12.5vw, 6rem); line-height: 0.9; letter-spacing: -0.045em; }
.hero-side { display: flex; flex-direction: column; gap: var(--s6); max-width: 30rem; }
.hero-side p { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-cta .btn { flex: 1 1 auto; }
.js .hero-side { opacity: 0; transform: translateY(24px); }
.js.is-loaded .hero-side { opacity: 1; transform: none; transition: opacity 0.9s var(--ease) 0.95s, transform 0.9s var(--ease) 0.95s; }
@media (min-width: 640px) { .hero-title { font-size: clamp(3.5rem, 11vw, 7.5rem); } }
@media (min-width: 1024px) {
  .hero::before { background: linear-gradient(to top, rgba(32, 30, 29, 0.82) 0%, rgba(32, 30, 29, 0.32) 45%, rgba(32, 30, 29, 0.08) 80%); }
  .hero-in { grid-template-columns: 1.55fr 1fr; align-items: end; gap: var(--s16); padding-block: var(--s24) var(--s16); }
  .hero-title { font-size: clamp(5rem, 8.6vw, 8.5rem); }
  .hero-cta .btn { flex: 0 1 auto; }
}

/* Promises */
.promises { background: var(--ink); color: #fff; }
.promises-in { display: grid; grid-template-columns: 1fr; padding-block: 0; }
.promises li { position: relative; display: flex; flex-direction: column; gap: var(--s1); padding: var(--s6) 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.promises li:first-child { border-top: 0; }
.promises li::before { content: ""; width: 24px; height: 3px; background: var(--accent-bright); margin-bottom: var(--s3); }
.promises strong { font-size: 1.25rem; letter-spacing: -0.015em; }
.promises span { font-size: 0.9375rem; color: var(--on-dark-muted); }
@media (min-width: 640px) { .promises-in { grid-template-columns: 1fr 1fr; column-gap: var(--s8); } .promises li:nth-child(2) { border-top: 0; } .promises li { padding-block: var(--s8); } }
@media (min-width: 1024px) {
  .promises-in { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .promises li { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.14); padding-inline: var(--s6); }
  .promises li:first-child { border-left: 0; padding-left: 0; }
}

/* Process */
.process { position: relative; background: var(--surface); padding-block: var(--section); overflow: hidden; }
.process-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(32, 30, 29, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 30, 29, 0.055) 1px, transparent 1px);
  background-size: 64px 64px; background-position: 0 var(--gy, 0px);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); }
.process-in { position: relative; display: grid; gap: var(--s12); }
.process-intro { display: flex; flex-direction: column; gap: var(--s6); }
.process-intro p { max-width: 36ch; font-size: 1.125rem; }
.steps { --lp: 32px; position: relative; padding-left: var(--lp); display: flex; flex-direction: column; gap: var(--s12); }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--accent); transform: scaleY(var(--p, 0)); transform-origin: top; }
.step { position: relative; display: grid; gap: var(--s3); }
.step::before { content: ""; position: absolute; left: calc(-1 * var(--lp) - 4px); top: 10px; width: 10px; height: 10px; background: var(--surface); border: 2px solid var(--ink); transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.step.is-active::before { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.step-n { font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.05em; color: rgba(32, 30, 29, 0.22); transition: color 0.5s var(--ease); font-variant-numeric: tabular-nums; }
.step.is-active .step-n { color: var(--accent); }
.step h3 { margin-bottom: var(--s2); font-size: 1.5rem; }
.step p { max-width: 42ch; color: var(--muted); }
@media (min-width: 768px) { .steps { --lp: 48px; } .step { grid-template-columns: 7rem 1fr; align-items: start; gap: var(--s6); } .step-n { margin-top: -4px; } }
@media (min-width: 1024px) {
  .process-in { grid-template-columns: 1fr 1.25fr; gap: var(--s24); align-items: start; }
  .process-intro { position: sticky; top: 120px; }
}

/* Services */
.services { padding-block: var(--section); }
.services-in { display: grid; gap: var(--s12); }
.services-sticky { display: flex; flex-direction: column; gap: var(--s6); }
.services-sticky > p { max-width: 38ch; font-size: 1.125rem; }
.services-photo { aspect-ratio: 2 / 1; background: var(--surface); }
.services-photo img { object-position: center 62%; }

.svc-lists { display: flex; flex-direction: column; gap: var(--s12); }
.svc-group h3 { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: var(--s3); font-size: 1.125rem; letter-spacing: -0.01em; border-bottom: 2px solid var(--ink); }
.svc { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 68px; padding-block: var(--s4); border-bottom: 1px solid var(--line); text-decoration: none; transition: color 0.3s var(--ease); }
.svc::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--s4)); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s var(--ease); }
.svc-name { font-size: clamp(1.1875rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; transition: transform 0.4s var(--ease); }
.svc-icon { position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid currentColor; border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s, opacity 0.3s; }
.svc-icon::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.3s var(--ease); }
.svc.is-picked .svc-icon { background-image: none; background-color: var(--accent-ink); border-color: var(--accent-ink); }
.svc.is-picked .svc-icon::after { transform: rotate(45deg) scale(1); }
@media (hover: hover) {
  .svc:hover { color: var(--bg); }
  .svc:hover::before { transform: scaleY(1); }
  .svc:hover .svc-name { transform: translateX(var(--s2)); }
  .svc:hover .svc-icon { transform: rotate(90deg); }
}
.svc:focus-visible { color: var(--bg); outline-offset: -3px; }
.svc:focus-visible::before { transform: scaleY(1); }
.svc-hint { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 1024px) {
  .services-in { grid-template-columns: 1fr 1.15fr; gap: var(--s24); align-items: start; }
  .services-intro { align-self: stretch; }
  .services-sticky > p { font-size: 1.0625rem; }
}
@media (min-width: 1024px) and (min-height: 880px) { .services-sticky { position: sticky; top: 104px; } }

/* Work */
.work { padding-block: 0 var(--section); }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s6); padding-bottom: var(--s12); }
.gallery { columns: 1; column-gap: var(--s4); }
.tile { position: relative; overflow: hidden; background: var(--surface); break-inside: avoid; margin-bottom: var(--s4); transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform 0.5s var(--ease); will-change: transform; }
.tile.is-tilting { transition: transform 0.12s linear; }
.tile-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tile-btn img { width: 100%; height: auto; }
.tile figcaption { position: absolute; left: var(--s4); bottom: var(--s4); max-width: calc(100% - var(--s8)); padding: var(--s3) var(--s4); background: var(--bg); display: flex; flex-direction: column; pointer-events: none; }
.tile figcaption strong { font-size: 1rem; line-height: 1.25; }
.tile figcaption span { font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }
@media (hover: hover) {
  .tile-btn img { transition: transform 0.9s var(--ease); }
  .tile:hover { --ty: -4px; }
  .tile:hover .tile-btn img { transform: scale(1.05); }
  .tile figcaption span { max-height: 0; opacity: 0; transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease); }
  .tile:hover figcaption span, .tile:focus-within figcaption span { max-height: 4em; opacity: 1; }
}
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1024px) { .gallery { columns: 3; column-gap: var(--s6); } .tile { margin-bottom: var(--s6); } }

/* Quote */
.quote-grid { display: grid; }
.quote-info { background: var(--ink); color: var(--bg); padding: var(--section) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s16); }
.quote-copy { display: flex; flex-direction: column; gap: var(--s6); }
.quote-kicker { color: var(--accent-soft); font-weight: 600; }
.quote-info h2 { font-size: clamp(2.75rem, 9vw, 6.5rem); line-height: 0.9; letter-spacing: -0.045em; color: #fff; }
.quote-lede { max-width: 38ch; font-size: 1.125rem; color: var(--on-dark-muted); }
.contact-list { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.contact-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; padding-block: var(--s4); border-bottom: 1px solid rgba(255, 255, 255, 0.2); text-decoration: none; transition: color 0.3s var(--ease); }
.c-main { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; transition: transform 0.4s var(--ease); }
.c-phone { font-size: clamp(1.375rem, 3vw, 2rem); }
.c-email { font-size: clamp(1rem, 1.8vw, 1.375rem); }
.c-label { flex: none; font-size: 0.875rem; font-weight: 600; color: var(--on-dark-muted); }
@media (hover: hover) { .contact-list a:hover { color: var(--accent-soft); } .contact-list a:hover .c-main { transform: translateX(var(--s2)); } }

.quote-form-wrap { padding: var(--section) var(--gutter); }
.form { display: flex; flex-direction: column; gap: var(--s8); }
.fields { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.field label, .field legend { display: block; margin-bottom: var(--s2); padding: 0; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.chips-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input { width: 100%; min-height: 52px; padding: var(--s3) var(--s4); font: inherit; font-size: 1rem; color: var(--ink); caret-color: var(--accent-ink); background: var(--surface); border: 1px solid transparent; border-bottom: 2px solid rgba(32, 30, 29, 0.35); border-radius: 0;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease); }
.input::placeholder { color: #7d7979; }
.input:hover { border-bottom-color: var(--ink); }
.input:focus { outline: none; background: #fff; border-color: var(--line); border-bottom-color: var(--accent-ink); }
textarea.input { min-height: 140px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:active + span { transform: scale(0.97); }
.chip input:focus-visible + span { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); min-height: 100%; justify-content: center; }
.form-done[hidden], .form[hidden] { display: none; }
.form-done h3 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); letter-spacing: -0.03em; max-width: 18ch; }
.form-done a { color: var(--accent-ink); font-weight: 800; }
.form-done:focus { outline: none; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .btn-wide { width: auto; min-width: 300px; } }
@media (min-width: 1024px) {
  .quote-grid { grid-template-columns: 1fr 1fr; }
  .quote-info { padding-left: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); padding-right: var(--s16); }
  .quote-form-wrap { padding-right: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); padding-left: var(--s16); }
}

/* Footer */
.site-footer { padding-block: var(--s16) var(--s6); border-top: 1px solid var(--line); overflow: hidden; }
.wordmark { font-size: clamp(3rem, 13.5vw, 11rem); font-weight: 800; line-height: 0.86; letter-spacing: -0.055em; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4) var(--s8); margin-top: var(--s12); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s6); }
.foot-links a { color: var(--ink); font-weight: 600; text-decoration: none; background: linear-gradient(var(--accent-ink), var(--accent-ink)) left bottom / 0 2px no-repeat; transition: background-size 0.4s var(--ease); padding-block: var(--s2); }
.foot-links a:hover { background-size: 100% 2px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--s16) var(--s4) var(--s8); border: 0; background: rgba(32, 30, 29, 0.96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 0.35s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: var(--s4); max-width: 100%; }
.lightbox img { max-width: min(92vw, 1200px); max-height: calc(100dvh - 200px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { font-weight: 600; text-align: center; }
.lb-close, .lb-nav { position: absolute; width: 48px; height: 48px; border: 1.5px solid rgba(255, 255, 255, 0.5); background: none; cursor: pointer; transition: background-color 0.25s, border-color 0.25s, transform 0.2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.lb-close:active, .lb-nav:active { transform: scale(0.95); }
.lb-close { top: var(--s4); right: var(--s4); }
.lb-close::before, .lb-close::after { content: ""; position: absolute; left: 13px; right: 13px; top: 22px; height: 2px; background: #fff; transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-nav { top: auto; bottom: var(--s4); }
.lb-prev { left: var(--s4); } .lb-next { right: var(--s4); }
.lb-nav::before { content: ""; position: absolute; top: 17px; width: 12px; height: 12px; border: solid #fff; border-width: 2px 2px 0 0; }
.lb-prev::before { left: 19px; transform: rotate(-135deg); }
.lb-next::before { left: 15px; transform: rotate(45deg); }
@media (min-width: 768px) { .lb-nav { top: 50%; bottom: auto; margin-top: -24px; } }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

/* Reduced motion: keep everything visible and still */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .ln > span, .js .hero-side { opacity: 1 !important; transform: none !important; }
  .js [data-reveal-img]::after { display: none; }
  .js .hero-media { clip-path: none !important; }
  .js [data-reveal-img] img, .js .hero-media img { scale: 1 !important; }
  .tile { transform: none !important; }
}


