/* ==========================================================================
   Lineset Design and Fabrication — one-page site
   Plain CSS, no build step. Sections follow page order.
   ========================================================================== */

:root {
  --ink: #0c0407;
  --btn: #0f0f0f;
  --grey: #6f6f6f;
  --grey-dark: #595959;
  --grey-light: #9a9a9a;
  --line: #e5e5e5;
  --surface: #f8f8f8;
  --white: #ffffff;

  /* Lineset accent: stage-light amber. Header CTA + small details only. */
  --amber-1: #f59e0b;
  --amber-2: #ea580c;
  --amber-grad: linear-gradient(135deg, var(--amber-1), var(--amber-2));

  --radius-btn: 12px;
  --radius-card: 20px;
  --container: 1045px;
  --header-h: 76px;
  --section-y: 88px;
}

@media (min-width: 900px) {
  :root { --section-y: 140px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber-1);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--btn);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  scroll-margin-top: var(--header-h);
}

.section + .section { padding-top: 0; }

[id] { scroll-margin-top: var(--header-h); }

/* ---------- Typography ---------- */
.h1, .h2 {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.h1 { font-size: clamp(40px, 6vw, 72px); }
.h2 { font-size: clamp(32px, 4vw, 46px); }

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-grad);
  flex: none;
}
.eyebrow--left { justify-content: flex-start; }

.section-head { text-align: center; }
.section-head .h2 { max-width: 820px; margin-inline: auto; }

.lede {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--grey-dark);
  font-size: 17px;
  line-height: 1.6;
}
.lede + .lede { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--btn); color: var(--white); }
.btn--primary:hover { background: #2a2a2a; }

.btn--outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }

.btn--chip {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 14px 20px;
  cursor: default;
}

.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: #f0f0f0; }

/* Amber CTA: the one warm button. Dark text keeps contrast on amber. */
.btn--accent {
  background: var(--amber-grad);
  color: var(--ink);
  padding: 12px 18px;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.32);
}
.btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.42);
}

/* ---------- Photo placeholders ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #1b1a1e, #2c2a30);
  isolation: isolate;
}
/* fly-line pattern + faint stage-light glow */
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 78% 12%, rgba(245, 158, 11, 0.16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 26px);
}
.media[data-label]::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.media.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.media.has-photo::before,
.media.has-photo::after { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  color: var(--ink);
}
.logo__img { display: block; height: 34px; width: auto; }
.footer__brand .logo__img { height: 44px; }
.logo__mark { width: 28px; height: 28px; flex: none; }
.logo__mark .m { stroke: currentColor; }
.logo__mark .b { fill: currentColor; }
.logo__word {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1;
}

.nav-panel { display: contents; }
.site-nav ul { display: flex; gap: 32px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-dark);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }
.nav-panel .btn--accent { justify-self: end; }

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
  }
  .site-header.is-open { background: var(--white); }
  .site-header.is-open .nav-panel { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav-panel .btn--accent {
    justify-self: stretch;
    margin-top: 12px;
    padding: 16px 22px;
    font-size: 15px;
  }
}

/* ---------- Hero ---------- */
.hero { padding-top: 48px; padding-bottom: calc(var(--section-y) * 0.55); }
@media (min-width: 900px) { .hero { padding-top: 72px; } }

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 40px;
  align-items: center;
}
.hero__title { max-width: 640px; }
.hero__media {
  width: 100%;
  max-width: 315px;
  aspect-ratio: 315 / 345;
  justify-self: end;
}

.hero__bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
  margin-top: 64px;
}
.hero__copy {
  max-width: 480px;
  color: var(--grey-dark);
  font-size: 15px;
  line-height: 1.65;
}
.hero__copy p + p { margin-top: 14px; }
.hero__cta { text-align: right; }
.hero__cta p {
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.pin { width: 18px; height: 18px; flex: none; }

@media (max-width: 899px) {
  .hero__top { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { justify-self: stretch; max-width: none; aspect-ratio: 4 / 3.4; }
  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
  }
  .hero__chip { justify-self: start; }
  .hero__cta { text-align: left; }
}

/* ---------- Capability marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; }
.marquee__list li {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--grey-light);
}
.marquee__list li::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-grad);
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; justify-content: center; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .marquee__list[aria-hidden="true"] { display: none; }
}

/* ---------- Feature ---------- */
.feature { padding-top: calc(var(--section-y) * 0.55); }
.feature__media { width: 100%; aspect-ratio: 16 / 9; }

/* ---------- Services ---------- */
.services__list { margin-top: 64px; border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 168px minmax(0, 300px) 76px;
  gap: 32px;
  align-items: center;
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
}
.service__icon { width: 56px; height: 56px; }
.service__icon svg { width: 56px; height: 56px; }
.service__icon * { stroke: var(--ink); stroke-width: 1.25; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.service__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.service__thumb { width: 168px; height: 80px; border-radius: 14px; }
.service__text { font-size: 15px; line-height: 1.6; color: var(--grey-dark); }
.service__link {
  justify-self: end;
  display: inline-flex;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.service__link span { transition: transform 0.2s ease; }
.service__link:hover span,
.service__link:focus-visible span { transform: translateX(4px); }

@media (max-width: 1023px) {
  .service {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      "thumb thumb"
      "text text"
      "link link";
    gap: 20px 20px;
    align-items: center;
  }
  .service__icon { grid-area: icon; }
  .service__title { grid-area: title; }
  .service__thumb { grid-area: thumb; width: 100%; height: 160px; border-radius: 16px; }
  .service__text { grid-area: text; max-width: none; }
  .service__link { grid-area: link; justify-self: start; }
}
@media (max-width: 599px) {
  .service__title { font-size: 22px; }
}

/* ---------- Work ---------- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.work-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #1b1a1e;
  transform: translateZ(0);
}
.work-card .media {
  position: absolute;
  inset: 0;
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.work-card:hover .media { transform: scale(1.05); }
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 4, 7, 0.62), rgba(12, 4, 7, 0) 48%);
  pointer-events: none;
}
.work-card__label {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 20px;
  right: 22px;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.work__more { display: flex; justify-content: center; margin-top: 48px; }

@media (max-width: 699px) {
  .work__grid { grid-template-columns: 1fr; margin-top: 40px; }
}

/* ---------- Approach ---------- */
.approach__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
}
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step__num {
  display: inline-block;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  background: var(--amber-grad);
  -webkit-background-clip: text;
  background-clip: text;
  transition: color 0.35s ease;
}
.step:hover .step__num,
.step:focus-within .step__num {
  color: transparent;
}
.step__title { margin-top: 28px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.step__text { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--grey-dark); }

@media (max-width: 999px) {
  .approach__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
}
@media (max-width: 599px) {
  .approach__grid { grid-template-columns: 1fr; margin-top: 44px; }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}
.about__media { width: 100%; aspect-ratio: 1 / 1.1; }
.about__body .h2 { text-align: left; }
.about__copy { margin-top: 28px; color: var(--grey-dark); font-size: 16px; line-height: 1.65; }
.about__copy p + p { margin-top: 16px; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px 20px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat__value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.stat__label { margin-top: 8px; font-size: 13px; color: var(--grey); }

@media (max-width: 899px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- CTA card ---------- */
.cta { padding-block: 0 var(--section-y); }
.cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-card);
  background: #1b1a1e;
  color: var(--white);
  text-align: center;
  padding: 110px 40px;
}
.cta-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 0;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 4, 7, 0.72), rgba(12, 4, 7, 0.82));
}
.cta-card .h2 { color: var(--white); max-width: 760px; margin-inline: auto; }
.cta-card__text {
  max-width: 600px;
  margin: 28px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
.cta-card__text + .cta-card__text { margin-top: 16px; }
.cta-card .btn { margin-top: 40px; }

@media (max-width: 699px) {
  .cta-card { padding: 72px 24px; }
}

/* ---------- Inquiry form ---------- */
.inquiry { padding-block: 0 var(--section-y); }
.inquiry__inner { max-width: 720px; margin-inline: auto; }
.form { margin-top: 48px; display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field .req { color: var(--grey); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%230c0407' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #cfcfcf; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--amber-1);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--ink);
  cursor: pointer;
}
.form__submit { justify-self: start; margin-top: 8px; }
.form__notice {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber-1);
  border-radius: var(--radius-btn);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey-dark);
}
.form__notice[hidden] { display: none; }
.form__notice--error { color: #b42318; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 599px) {
  .form__row { grid-template-columns: 1fr; }
  .form__submit { justify-self: stretch; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 80px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
}
.footer__sub {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--grey);
}
.footer__tag { margin-top: 28px; font-size: 16px; font-weight: 600; }
.footer__places { margin-top: 6px; font-size: 15px; color: var(--grey); }
.footer__brand .btn { margin-top: 28px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer__cols h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 20px; }
.footer__cols li + li { margin-top: 12px; }
.footer__cols a { font-size: 15px; color: var(--grey-dark); transition: color 0.2s ease; }
.footer__cols a:hover { color: var(--ink); }
.footer__legal {
  margin-top: 72px;
  padding-block: 28px 36px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--grey);
}

@media (max-width: 799px) {
  .site-footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__legal { margin-top: 56px; }
}

/* ---------- Reveal motion ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .work-card:hover .media { transform: none; }
}
