/* ══ IRONBOUND WELDING — forge dark ══ */
:root {
  --ink: #0b0a08;
  --coal: #14120e;
  --bone: #ece5d8;
  --ash: #8f8778;
  --ember: #ff5c1a;
  --amber: #ffb347;
  --line: rgba(236, 229, 216, 0.14);
  --font-display: "Anton", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ember); color: var(--ink); }

a { color: inherit; text-decoration: none; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); } 75% { transform: translate(-3%, -3%); } 100% { transform: translate(0, 0); }
}

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--ember); box-shadow: 0 0 12px var(--ember); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4vw;
  transition: background-color 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  padding: 0.85rem 4vw;
  background: rgba(11, 10, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 0.6rem;
}
.nav__thin { color: var(--ash); margin-left: 0.35rem; }
.nav__mark {
  width: 12px; height: 12px; background: var(--ember);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 14px var(--ember);
}
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ash);
  position: relative; padding-bottom: 2px;
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ember); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.6, 0, 0.2, 1);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; cursor: pointer; position: relative; overflow: hidden;
  transition: color 0.35s, border-color 0.35s, transform 0.3s;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ember);
  transform: translateY(101%); transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); border-color: var(--ember); }
.btn:active { transform: scale(0.97); }
.btn--pill { padding: 0.7rem 1.5rem; border: 1px solid var(--line); border-radius: 999px; }
.btn--solid { padding: 1.05rem 2.3rem; background: var(--ember); color: var(--ink); border-radius: 2px; }
.btn--solid::before { background: var(--bone); }
.btn--solid:hover { color: var(--ink); }
.btn--ghost { padding: 1.05rem 2.3rem; border: 1px solid var(--line); border-radius: 2px; color: var(--bone); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 4vw 5rem; overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 110%, rgba(255, 92, 26, 0.16), transparent 55%),
    linear-gradient(180deg, #0b0a08 0%, #12100c 100%);
}
.hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__glow {
  position: absolute; right: -10vw; bottom: -20vh; width: 55vw; height: 55vw; z-index: 0;
  background: radial-gradient(circle, rgba(255, 92, 26, 0.22), transparent 60%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 1400px; will-change: transform; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ash); margin-bottom: 2.4rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1.1rem;
}
.hero__kicker-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 10px var(--ember); animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.2rem, 11.5vw, 10.5rem);
  line-height: 0.96; letter-spacing: 0.005em; text-transform: uppercase;
  margin-bottom: 3rem;
}
.mask { display: block; overflow: hidden; }
.mask__in { display: block; will-change: transform; }
.mask__in--accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--ember);
  text-shadow: 0 0 42px rgba(255, 92, 26, 0.35);
}

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem 4rem;
}
.hero__sub { max-width: 34ch; color: var(--ash); font-size: clamp(0.9rem, 1.4vw, 1.05rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__foot {
  position: absolute; bottom: 2.2rem; left: 4vw; right: 4vw; z-index: 2;
  display: flex; align-items: center; gap: 2rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--ash);
}
.hero__foot-item { position: relative; }
.hero__foot-item + .hero__foot-item::before {
  content: ""; position: absolute; left: -1.1rem; top: 50%; width: 4px; height: 4px;
  background: var(--ember); border-radius: 50%; transform: translateY(-50%);
}
.hero__scroll { margin-left: auto; display: inline-flex; align-items: center; gap: 0.7rem; }
.hero__scroll i {
  display: block; width: 1px; height: 34px; background: var(--line); position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--ember); animation: drip 1.8s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
@keyframes drip { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ── MARQUEE ── */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.6rem 0; overflow: hidden; background: var(--coal);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 1px rgba(236, 229, 216, 0.4);
  white-space: nowrap; padding-right: 1rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── SECTION HEADS ── */
section { position: relative; }
.section-head { padding: 8rem 4vw 4rem; }
.section-head__no {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.34em;
  color: var(--ember); display: inline-block; margin-bottom: 1rem;
}
.section-head__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; text-transform: uppercase;
}

/* ── MANIFESTO ── */
.chapter {
  display: grid; grid-template-columns: minmax(70px, 0.25fr) 1fr;
  gap: 2rem 4vw; padding: 3.5rem 4vw; border-top: 1px solid var(--line);
  transition: background-color 0.5s;
}
.chapter:hover { background: rgba(255, 92, 26, 0.04); }
.chapter__no {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.5rem);
  color: transparent; -webkit-text-stroke: 1px var(--ember); line-height: 1;
}
.chapter__body h3 {
  font-family: var(--font-body); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 0.9rem; letter-spacing: -0.01em;
}
.chapter__body p { color: var(--ash); max-width: 62ch; font-size: clamp(0.9rem, 1.3vw, 1rem); }

/* ── SERVICES ── */
.service-list { list-style: none; border-bottom: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 90px 1fr 1fr; align-items: baseline;
  gap: 1.5rem; padding: 2.2rem 4vw; border-top: 1px solid var(--line);
  cursor: default; transition: padding-left 0.45s cubic-bezier(0.6, 0, 0.2, 1), background-color 0.45s;
}
.service:hover { padding-left: calc(4vw + 18px); background: rgba(255, 92, 26, 0.05); }
.service__no { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--ember); }
.service__name {
  font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2.2rem);
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1;
}
.service__desc { color: var(--ash); font-size: 0.9rem; text-align: right; }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 0.4rem; }
  .service__desc { text-align: left; }
}

/* ── PRICING ── */
.pricing { background: var(--coal); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-list { list-style: none; padding: 0 4vw; counter-reset: price; }
.price {
  display: flex; align-items: baseline; gap: 1.4rem;
  padding: 2rem 0; border-top: 1px dashed var(--line);
  transition: background-color 0.35s, padding-left 0.35s, padding-right 0.35s;
  position: relative;
}
.price:hover { background: rgba(255, 92, 26, 0.06); padding-left: 1.2rem; padding-right: 1.2rem; }
.price__job {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.35rem); letter-spacing: -0.01em;
}
.price__job small { display: block; font-weight: 300; color: var(--ash); font-size: 0.82rem; margin-top: 0.25rem; }
.price__rule { flex: 1; border-bottom: 1px dashed var(--line); transform: translateY(-4px); }
.price__amount {
  font-family: var(--font-mono); font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  color: var(--amber); white-space: nowrap;
}
.price__amount em { font-style: normal; font-size: 0.62em; color: var(--ash); letter-spacing: 0.1em; }
.price__amount--quote { color: var(--bone); }
.pricing__note {
  padding: 3rem 4vw 7rem; font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.12em; color: var(--ash);
}

/* ── WORK ── */
.work__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem;
  padding: 0 4vw 8rem;
}
.frame { grid-column: span 6; }
.frame--tall { grid-column: span 5; grid-row: span 2; }
.frame--wide { grid-column: span 7; }
@media (max-width: 760px) {
  .frame, .frame--tall, .frame--wide { grid-column: 1 / -1; grid-row: auto; }
}
.frame__inner {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  background: linear-gradient(145deg, #1b1813, #100e0b);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s cubic-bezier(0.5, 0, 0.2, 1);
}
.frame--tall .frame__inner { aspect-ratio: 3 / 4.4; }
.frame__inner:hover { transform: translateY(-6px); }
.frame__inner::after { /* spotlight that follows the cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 92, 26, 0.22), transparent 65%);
  opacity: 0; transition: opacity 0.4s;
}
.frame__inner:hover::after { opacity: 1; }
.frame__inner--empty span {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.34em;
  color: rgba(236, 229, 216, 0.35);
}
.frame__inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame figcaption {
  margin-top: 0.8rem; font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.18em; color: var(--ash); text-transform: uppercase;
}

/* ── CONTACT ── */
.contact {
  padding: 10rem 4vw 9rem; text-align: left;
  background:
    radial-gradient(90% 70% at 20% 110%, rgba(255, 92, 26, 0.14), transparent 60%),
    var(--ink);
}
.contact__kicker {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.3em;
  color: var(--ember); margin-bottom: 1.6rem;
}
.contact__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 12rem); line-height: 0.95;
  text-transform: uppercase; margin-bottom: 4.5rem;
}
.contact__rows { border-top: 1px solid var(--line); max-width: 1100px; }
.contact__row {
  display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 1rem;
  padding: 1.8rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s cubic-bezier(0.6, 0, 0.2, 1), background-color 0.4s;
}
a.contact__row:hover { padding-left: 1.2rem; background: rgba(255, 92, 26, 0.05); }
.contact__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--ash); }
.contact__value { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.2rem, 3vw, 2rem); letter-spacing: -0.01em; }
.contact__hint {
  margin-top: 2.4rem; font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.14em; color: var(--ash);
}
@media (max-width: 760px) { .contact__row { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ── REVIEWS ── */
.reviews { border-top: 1px solid var(--line); }
.reviews__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  padding: 0 4vw 8rem;
}
@media (max-width: 900px) { .reviews__grid { grid-template-columns: 1fr; } }
.review {
  position: relative; border: 1px solid var(--line); border-radius: 2px;
  padding: 3.4rem 1.8rem 1.8rem;
  background: linear-gradient(160deg, rgba(236, 229, 216, 0.03), transparent 60%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: transform 0.45s cubic-bezier(0.5, 0, 0.2, 1), border-color 0.45s, background-color 0.45s;
}
.review:hover { transform: translateY(-6px); border-color: rgba(255, 92, 26, 0.5); background-color: rgba(255, 92, 26, 0.04); }
.review__mark {
  position: absolute; top: 0.6rem; left: 1.2rem;
  font-family: var(--font-display); font-size: 4.5rem; line-height: 1;
  color: var(--ember); text-shadow: 0 0 26px rgba(255, 92, 26, 0.4);
}
.review p { color: var(--bone); font-size: 0.98rem; line-height: 1.7; margin-bottom: 1.6rem; }
.review footer { display: flex; flex-direction: column; gap: 0.3rem; }
.review__name { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; }
.review__job { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ash); }

/* ── QUOTE FORM ── */
.quote { border-top: 1px solid var(--line); }
.quote__grid {
  display: grid; grid-template-columns: minmax(240px, 0.9fr) 1.4fr;
  gap: 4rem 5vw; padding: 0 4vw 8rem;
}
@media (max-width: 900px) { .quote__grid { grid-template-columns: 1fr; } }
.quote__steps { list-style: none; }
.quote__steps li {
  display: flex; gap: 1.1rem; align-items: baseline;
  padding: 1.4rem 0; border-bottom: 1px dashed var(--line);
  color: var(--ash); font-size: 0.95rem;
}
.quote__steps span {
  font-family: var(--font-display); font-size: 1.3rem;
  color: transparent; -webkit-text-stroke: 1px var(--ember); flex-shrink: 0;
}
.quote__side-note { margin-top: 2rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--ash); }
.quote__side-note a { color: var(--amber); border-bottom: 1px dashed var(--amber); transition: color 0.3s; }
.quote__side-note a:hover { color: var(--ember); }

.quote__form { display: flex; flex-direction: column; gap: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--ash);
}
.field label em { font-style: normal; letter-spacing: 0.1em; opacity: 0.7; }
.field input, .field select, .field textarea {
  background: rgba(236, 229, 216, 0.03);
  border: 1px solid var(--line); border-radius: 2px;
  color: var(--bone); font-family: var(--font-body); font-weight: 300; font-size: 0.95rem;
  padding: 0.95rem 1.1rem; outline: none; width: 100%;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff5c1a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center; cursor: pointer;
}
.field select:invalid { color: var(--ash); }
.field option { background: var(--coal); color: var(--bone); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(143, 135, 120, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ember); background: rgba(255, 92, 26, 0.05);
  box-shadow: 0 0 0 1px var(--ember), 0 0 24px rgba(255, 92, 26, 0.12);
}
.file-drop {
  display: flex; align-items: center; gap: 1rem; cursor: pointer;
  border: 1px dashed var(--line); border-radius: 2px; padding: 1.4rem 1.2rem;
  transition: border-color 0.3s, background-color 0.3s;
}
.file-drop:hover, .file-drop.has-file { border-color: var(--ember); background: rgba(255, 92, 26, 0.05); }
.file-drop__icon {
  font-size: 1.4rem; color: var(--ember); line-height: 1;
  font-family: var(--font-body); font-weight: 300;
}
.file-drop__text { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--ash); }
.file-drop.has-file .file-drop__text { color: var(--bone); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.quote__submit { align-self: flex-start; margin-top: 0.4rem; }
.quote__submit[disabled] { opacity: 0.55; pointer-events: none; }
.quote__status { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; min-height: 1.2em; }
.quote__status.is-ok { color: var(--amber); }
.quote__status.is-err { color: var(--ember); }

/* ── FOOTER ── */
.footer {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding: 2rem 4vw; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.24em; color: var(--ash);
}
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--ember); }

/* ── REVEALS (JS sets initial state; visible by default for no-JS) ── */
[data-reveal] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
