/* Xcellent Services LLC — black steel, electric arc blue, one hot spark. Mobile first. */
@font-face { font-family: "Big Shoulders"; src: url("assets/fonts/bigshoulders.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geistmono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #07090c;
  --steel: #0e1217;
  --steel-2: #151b22;
  --line: rgba(190, 215, 240, 0.12);
  --line-strong: rgba(190, 215, 240, 0.24);
  --text: #eaf0f6;
  --soft: #c3cdd8;
  --muted: #8e9cac;
  --arc: #3b9dff;
  --arc-hot: #a8dbff;
  --spark: #ff9b3d;
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: clamp(20px, 5.5vw, 72px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 1rem/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.9; letter-spacing: 0.005em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--arc-hot); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 16px; background: var(--arc); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.masthead { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--pad); background: rgba(7, 9, 12, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand-mark { width: 52px; height: 52px; mix-blend-mode: screen; }
.brand-word { display: flex; flex-direction: column; font: 800 1.45rem/0.85 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.brand-word small { font: 400 0.6rem/1.7 var(--mono); letter-spacing: 0.22em; color: var(--muted); }
.menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 14px; background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; font: 400 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s ease; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; padding: 8px var(--pad) 22px; background: rgba(7, 9, 12, 0.97); border-bottom: 1px solid var(--line); }
.nav.is-open { display: flex; }
.nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 1.6rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.nav .nav-cta { margin-top: 16px; justify-content: center; border: 0; border-radius: 999px; background: var(--arc); color: var(--ink); font-size: 1.25rem; }

/* ---------- hero: his work, full bleed ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(92svh, 860px); padding: 120px var(--pad) 28px; isolation: isolate; overflow: hidden; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; }
.hero-photo img { object-fit: cover; object-position: 62% 58%; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(7, 9, 12, 0.55) 0%, rgba(7, 9, 12, 0.15) 28%, rgba(7, 9, 12, 0.72) 62%, rgba(7, 9, 12, 0.96) 100%),
  linear-gradient(90deg, rgba(7, 9, 12, 0.55), rgba(7, 9, 12, 0) 70%); }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 18px; font: 400 0.72rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--arc-hot); }
.eyebrow span { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow span + span::before { content: ""; width: 6px; height: 6px; background: var(--spark); transform: rotate(45deg); box-shadow: 0 0 10px var(--spark); }
.hero-title { font-weight: 900; font-size: clamp(4.4rem, 21vw, 10.5rem); line-height: 0.82; }
.hero-line { display: inline-block; }
.hero-steel { background: linear-gradient(180deg, #ffffff 0%, #d4e8fa 42%, var(--arc) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 36ch; margin-top: 18px; font-size: clamp(1.05rem, 3.8vw, 1.3rem); line-height: 1.45; color: #dde6ee; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-credit { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line-strong); color: var(--soft); }
.hero-credit span { color: var(--arc-hot); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; text-decoration: none; font: 600 1rem/1 var(--body); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.button-arc { background: var(--arc); color: #03101f; box-shadow: 0 0 0 1px rgba(168, 219, 255, 0.4), 0 10px 34px -8px rgba(59, 157, 255, 0.7); }
.button-arc:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(168, 219, 255, 0.7), 0 14px 40px -8px rgba(59, 157, 255, 0.9); }
.button-line { border: 1px solid rgba(234, 240, 246, 0.45); color: var(--text); background: rgba(7, 9, 12, 0.35); }
.button-line:hover { border-color: var(--arc-hot); }

.spec-row { list-style: none; margin: 0; padding: 0; display: grid; border-bottom: 1px solid var(--line); background: var(--steel); }
.spec-row li { display: flex; flex-direction: column; gap: 4px; padding: 18px var(--pad); border-top: 1px solid var(--line); font: 700 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.spec-row .mono { color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 13vw, 132px) var(--pad); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 6vw, 56px); }
.kicker { color: var(--arc-hot); margin-bottom: 14px; }
.section h2 { font-size: clamp(3.2rem, 14vw, 7rem); font-weight: 900; }

/* work */
.feature { position: relative; overflow: hidden; border: 1px solid var(--line-strong); background: var(--steel); }
.feature img { width: 100%; aspect-ratio: 1440 / 1073; object-fit: cover; }
.feature figcaption { display: grid; gap: 8px; padding: 18px 18px 22px; }
.feature figcaption .mono { color: var(--spark); }
.feature strong { font: 800 clamp(1.8rem, 7vw, 2.8rem)/0.95 var(--display); text-transform: uppercase; }
.feature figcaption span:last-child { color: var(--soft); max-width: 44ch; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.pair figcaption { display: grid; gap: 2px; padding-top: 10px; }
.pair strong { font: 800 1.15rem/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.pair figcaption span { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }

/* services */
.services { background: var(--steel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.service-list li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.service-no { padding-top: 6px; color: var(--arc); }
.service-list h3 { font-size: clamp(1.9rem, 8vw, 3rem); }
.service-list p { margin-top: 8px; color: var(--soft); max-width: 52ch; }
.service-tag { grid-column: 2; justify-self: start; margin-top: 6px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); }

/* in the shop */
.shop { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(64px, 13vw, 132px) var(--pad); }
.shop-copy { grid-column: 1 / -1; max-width: 560px; margin-bottom: 14px; }
.shop-title { font-size: clamp(3.2rem, 14vw, 7rem); font-weight: 900; }
.shop-copy p:last-child { margin-top: 16px; color: var(--soft); max-width: 44ch; }
.shop img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.shop-a img { aspect-ratio: 396 / 640; object-position: 50% 30%; }
.shop-b img { aspect-ratio: 396 / 640; }

/* process + blueprint */
.process { border-top: 1px solid var(--line); }
.process-grid { display: grid; gap: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding: 24px 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--steel-2), var(--ink)); overflow: hidden; }
.step-no { position: absolute; right: 14px; top: -10px; font: 900 6.5rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(59, 157, 255, 0.45); }
.steps h3 { position: relative; font-size: 2rem; }
.steps p { position: relative; margin-top: 10px; max-width: 34ch; color: var(--soft); }
.blueprint { position: relative; padding: 36px 12px 12px; border: 1px solid var(--line-strong); background:
  linear-gradient(rgba(59, 157, 255, 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(90deg, rgba(59, 157, 255, 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(180deg, #0b1a2e, #08101b); }
.bp-label { position: absolute; top: 12px; left: 14px; color: var(--arc-hot); }
.blueprint-figure figcaption { margin-top: 12px; color: var(--muted); }
.gate-drawing { display: block; width: 100%; height: auto; overflow: visible; }
.dw path, .dw rect, .dw circle { fill: none; stroke: #cfe6ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.js .dw path, .js .dw rect, .js .dw circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-drawn .dw path, .is-drawn .dw rect, .is-drawn .dw circle { animation: draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.dw-posts rect, .dw-posts path { stroke-width: 2.5; }
.dw-arch path { stroke: #ffffff; stroke-width: 3; animation-delay: 0.25s !important; }
.dw-rails path { animation-delay: 0.45s !important; }
.dw-pickets path { stroke-width: 1.8; animation-delay: 0.65s !important; animation-duration: 2.6s !important; }
.dw-finials path { stroke: var(--arc-hot); animation-delay: 1.2s !important; }
.dw-rings circle { stroke: var(--arc-hot); stroke-width: 1.6; animation-delay: 1.3s !important; }
.dw-hardware path, .dw-hardware rect { stroke: var(--spark); animation-delay: 1.9s !important; }
.dw-ground path { stroke: rgba(207, 230, 255, 0.45); stroke-width: 1.2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.js .callout { opacity: 0; }
.is-drawn .callout { animation: fade 0.6s ease 2.4s forwards; }
.callout path { stroke: var(--arc); stroke-width: 1; fill: none; }
.callout circle { fill: var(--arc); }
.callout text { font: 400 13px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; fill: #9fc9f0; paint-order: stroke; stroke: #0a1626; stroke-width: 6px; stroke-linejoin: round; }
@keyframes fade { to { opacity: 1; } }
.weld-spark { mix-blend-mode: screen; }

/* promise */
.promise { padding: clamp(72px, 15vw, 140px) var(--pad); text-align: center; background: radial-gradient(60% 80% at 50% 50%, rgba(59, 157, 255, 0.16), transparent 70%), var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise-quote { max-width: 16ch; margin: 0 auto; font: 900 clamp(2.8rem, 12.5vw, 6.5rem)/0.9 var(--display); text-transform: uppercase; }
.promise-by { margin-top: 22px; color: var(--arc-hot); }

/* contact */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact-glow { position: absolute; z-index: -1; left: 50%; bottom: -40%; width: 140vw; height: 80vw; max-height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(59, 157, 255, 0.24), transparent 70%); }
.contact h2 { font-size: clamp(3.6rem, 18vw, 8.5rem); }
.contact-grid { display: grid; gap: 28px; margin-top: 32px; }
.contact-label { color: var(--muted); }
.contact-phone { margin-top: 6px; font: 900 clamp(2.9rem, 15vw, 6.5rem)/0.95 var(--display); color: var(--arc-hot); text-shadow: 0 0 30px rgba(59, 157, 255, 0.45); white-space: nowrap; }
.contact-social { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-social li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-social .mono { min-width: 96px; color: var(--muted); }
.quote-card { padding: 22px; border: 1px solid var(--line-strong); background: rgba(14, 18, 23, 0.8); }
.quote-card-title { color: var(--arc-hot); }
.quote-card ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: q; }
.quote-card li { counter-increment: q; display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.quote-card li::before { content: counter(q, decimal-leading-zero); font: 400 0.8rem/1.9 var(--mono); color: var(--arc); }

/* footer */
.footer { display: grid; gap: 18px; padding: 34px var(--pad) 40px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text); font: 800 1.2rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-brand img { width: 56px; height: 56px; mix-blend-mode: screen; }
.footer-brand small { color: var(--muted); }
.footer-top { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.footer-copy { font-size: 0.8rem; }

/* ---------- larger screens ---------- */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 26px; padding: 0; background: none; border: 0; }
  .nav a { min-height: 44px; border: 0; font: 400 0.76rem/1 var(--mono); letter-spacing: 0.16em; }
  .nav a:not(.nav-cta):hover { color: var(--arc-hot); }
  .nav .nav-cta { margin: 0; padding: 0 20px; font: 600 0.95rem/1 var(--body); letter-spacing: 0.01em; text-transform: none; }
  .spec-row { grid-template-columns: repeat(3, 1fr); }
  .spec-row li { border-top: 0; border-right: 1px solid var(--line); padding: 22px var(--pad); }
  .spec-row li:last-child { border-right: 0; }
  .service-list li { grid-template-columns: 70px 1fr auto; align-items: baseline; padding: 28px 0; }
  .service-tag { grid-column: 3; margin-top: 0; }
  .shop { grid-template-columns: 1.1fr 0.9fr 1.2fr; align-items: end; gap: 22px; }
  .shop-copy { grid-column: auto; margin: 0; align-self: center; }
  .shop-b img { aspect-ratio: 1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .footer { grid-template-columns: 1fr auto auto; align-items: center; }
}
@media (min-width: 1000px) {
  .hero { padding-bottom: 36px; }
  .hero-copy { max-width: 760px; }
  .section, .shop { max-width: var(--max); margin-left: auto; margin-right: auto; }
  .services { max-width: none; }
  .services > * { max-width: calc(var(--max) - var(--pad) * 2); margin-left: auto; margin-right: auto; }
  .feature { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; }
  .feature figcaption { padding: 32px; }
  .pair { grid-template-columns: repeat(2, minmax(0, 315px)); gap: 22px; margin-top: 22px; }
  .process-grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .weld-spark { display: none; }
  .js .dw path, .js .dw rect, .js .dw circle { stroke-dashoffset: 0; animation: none !important; }
  .js .callout { opacity: 1; animation: none !important; }
  .button, .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { transition: none; }
}
