/* HELIX Foundation Systems
   Layout: poured-concrete light ground, black structural bands, one red accent taken from the sign's X.
   Single deliberate look (light), all colors set explicitly. */
:root {
  --concrete: #e9eaea;
  --concrete-2: #dcdedf;
  --paper: #f6f6f5;
  --ink: #111213;
  --ink-2: #2a2c2e;
  --steel: #5d6266;
  --rule: #c5c8ca;
  --red: #d7261e;
  --red-dark: #b21d16;
  --glow: #f2b65c;
  --on-dark: #f3f3f2;
  --on-dark-2: #a9adb0;

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--red); outline-offset: 3px;
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; font-stretch: 110%; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
p { margin: 0; max-width: 65ch; }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 3px; height: 1.1em; background: var(--red); }
.dark .eyebrow { color: var(--on-dark-2); }
.lede { font-size: 1.2rem; color: var(--ink-2); }
.dark .lede { color: var(--on-dark-2); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--ink); color: var(--on-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-word { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 1.9rem; letter-spacing: 0.02em; color: var(--on-dark); }
.brand-word .x { position: relative; display: inline-block; }
.brand-word .x::after {
  content: ""; position: absolute; right: -0.02em; top: 0.06em; width: 0.42em; height: 0.3em;
  background: var(--red); clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%);
}
.brand-sub { font-family: var(--display); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.34em; color: var(--on-dark-2); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 8px 12px; color: var(--on-dark); border-radius: 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--red); }
.nav .btn { margin-left: 10px; box-shadow: none; }
.nav-toggle, .nav-toggle-label { display: none; }
@media (max-width: 1180px) {
  .nav-toggle-label {
    display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px;
  }
  .nav-toggle-label span { width: 24px; height: 2px; background: var(--on-dark); display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink);
    flex-direction: column; align-items: stretch; padding: 8px var(--gut-r) 20px var(--gut); border-top: 1px solid #2c2e30;
  }
  .nav a { padding: 12px 4px; border-bottom: 1px solid #222426; }
  .nav .btn { margin: 14px 0 0; text-align: center; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--red); color: #fff !important; text-decoration: none; font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.02em; padding: 14px 22px; border: 0; border-radius: 2px; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--on-dark) !important; box-shadow: inset 0 0 0 1.5px var(--on-dark-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,11,0.94) 0%, rgba(10,10,11,0.82) 34%, rgba(10,10,11,0.25) 66%, rgba(10,10,11,0.05) 100%),
              linear-gradient(0deg, rgba(10,10,11,0.7) 0%, rgba(10,10,11,0) 40%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 150px) clamp(56px, 8vw, 96px); display: grid; gap: 26px; }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero .lede { max-width: 44ch; color: #d6d8d9; }
.hero .eyebrow, .page-hero .eyebrow { color: #c9cccd; }
@media (max-width: 720px) {
  .hero-img { object-position: 64% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.78) 55%, rgba(10,10,11,0.45) 100%); }
}

/* The sign's service line: three items separated by red bars */
.signline { background: var(--ink); color: var(--on-dark); border-top: 1px solid #262829; }
.signline ul { list-style: none; margin-block: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-block: 20px; }
.signline li { font-family: var(--display); font-weight: 600; font-stretch: 85%; letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.02rem; display: flex; align-items: center; gap: 28px; }
.signline li + li::before { content: ""; width: 3px; height: 1.3em; background: var(--red); }
@media (max-width: 720px) { .signline ul { flex-direction: column; } .signline li + li::before { display: none; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.alt { background: var(--concrete); }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.service { background: var(--paper); padding: 34px 30px 30px; display: grid; gap: 14px; align-content: start; text-decoration: none; transition: background .15s ease; }
.service:hover { background: #fff; }
.service .tag { font-family: var(--mono); font-size: 0.75rem; color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; }
.service p { color: var(--ink-2); font-size: 0.98rem; }
.service .more { font-weight: 700; font-size: 0.9rem; margin-top: 6px; }
.service .more::after { content: " \2192"; color: var(--red); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* framework */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #2f3133; }
.pillar { padding: 30px 26px 8px 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.pillar + .pillar { padding-left: 26px; border-left: 1px solid #2f3133; }
.pillar h3 { font-size: 1.65rem; font-weight: 900; font-stretch: 120%; letter-spacing: 0.02em; text-transform: uppercase; }
.pillar p { color: var(--on-dark-2); font-size: 0.97rem; }
.pillar .q { font-family: var(--mono); font-size: 0.8rem; color: var(--glow); }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid #2f3133; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding-left: 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid #2f3133; }
}

/* torque feature */
.photo-frame { position: relative; }
.photo-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 40%; }
.photo-frame figcaption { font-family: var(--mono); font-size: 0.76rem; color: var(--steel); margin-top: 10px; }
.readout {
  font-family: var(--mono); background: var(--ink); color: var(--on-dark); padding: 22px 24px; display: grid; gap: 6px;
  font-variant-numeric: tabular-nums; border-left: 3px solid var(--red);
}
.readout .row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }
.readout .row span:first-child { color: var(--on-dark-2); }
.readout .big { font-size: 1.05rem; color: #fff; }
.readout .note { font-size: 0.74rem; color: var(--on-dark-2); margin-top: 8px; line-height: 1.5; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 3px; background: var(--red); }

/* table */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
th { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); font-weight: 500; background: var(--concrete); }
td.num { font-family: var(--mono); }
tr:last-child td { border-bottom: 0; }
.fine { font-size: 0.82rem; color: var(--steel); margin-top: 12px; }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px 24px 4px 0; border-top: 3px solid var(--ink); display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li + li { padding-left: 24px; }
.steps li::before { content: "Step " counter(step); font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.steps p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; } .steps li:nth-child(3) { padding-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding-left: 0; } }

/* problems list */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.problem { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; min-width: 0; }
.problem h3 { font-size: 1.08rem; }
.problem p { font-size: 0.95rem; color: var(--ink-2); }
.problem .cause { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.problem a { font-weight: 700; font-size: 0.9rem; text-decoration-color: var(--red); text-underline-offset: 3px; }
@media (max-width: 900px) { .problems { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .problems { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; font-weight: 400; color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* page hero (inner pages) */
.page-hero { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 96px); display: grid; gap: 20px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero .lede { color: #cfd2d3; max-width: 52ch; }
.page-hero.has-img .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.crumbs { font-family: var(--mono); font-size: 0.76rem; color: var(--on-dark-2); }
.crumbs a { color: var(--on-dark-2); }

/* prose */
.prose { display: grid; gap: 20px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; max-width: 65ch; }
.prose li::marker { color: var(--red); }
.aside { background: var(--concrete); padding: 26px 28px; display: grid; gap: 12px; align-content: start; border-top: 3px solid var(--red); }
.aside h3 { font-size: 1.1rem; }
.aside ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.95rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 72px); align-items: start; }
.content-grid > aside { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: grid; gap: 20px; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } .content-grid > aside { position: static; } }

/* CTA band */
.cta { background: var(--red); color: #fff; }
.cta .wrap { padding-block: clamp(48px, 7vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { max-width: 20ch; }
.cta p { color: #ffe3e1; margin-top: 10px; }
.cta .btn { background: var(--ink); }
.cta .btn:hover { background: #000; }
.cta .btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px #fff; }

/* contact */
.contact-card { display: grid; gap: 4px; }
.contact-card .label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.contact-card .value { font-size: 1.25rem; font-weight: 700; user-select: all; }
form.quote { display: grid; gap: 16px; background: #fff; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--rule); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.9rem; }
input, select, textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 2px; width: 100%;
}
textarea { min-height: 130px; resize: vertical; }
.form-status { font-weight: 600; }

/* footer */
.site-footer { background: #0b0c0c; color: var(--on-dark-2); font-size: 0.93rem; }
.site-footer .wrap { padding-block: 64px 36px; display: grid; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid > * { min-width: 0; }
.footer-grid h4 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 14px; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-base { border-top: 1px solid #222; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* image logo */
.brand img { height: 46px; width: auto; display: block; }
.site-footer .brand img { height: 52px; }
@media (max-width: 520px) { .brand img { height: 38px; } }

/* Powered by Iconic Environments */
.brandrow { display: flex; align-items: center; gap: 16px; flex: none; }
.brandrow .brand img { height: 44px; }
.powered { display: flex; flex-direction: column; gap: 3px; text-decoration: none; border-left: 1px solid rgba(255,255,255,.22); padding-left: 16px; }
.powered span { white-space: nowrap; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); }
.powered img { height: 22px; width: auto; display: block; }
@media (max-width: 760px) { .powered { padding-left: 12px; } .powered img { height: 17px; } .powered span { font-size: .55rem; } }
@media (max-width: 420px) { .brandrow { gap: 10px; } .brandrow .brand img { height: 34px; } .powered { padding-left: 10px; } .powered img { height: 14px; } .powered span { font-size: .5rem; letter-spacing: .12em; } }
.family { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 28px 0 18px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.family-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); }
.family img { height: 30px; width: auto; display: block; }
@media (min-width: 900px) and (max-width: 1360px) { .nav { gap: 0; } .nav a { padding: 8px 7px; font-size: .86rem; } .nav .btn { margin-left: 6px; padding: 10px 14px; } .site-header .wrap { gap: 14px; } }
.family-kepture { display: flex; align-items: baseline; gap: 8px; color: var(--on-dark-2); }
.family-kepture a { text-decoration: none; }
.kwm { font: 800 1.15rem/1 Montserrat, Arial, sans-serif; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.kbar { display: inline-block; position: relative; width: .55em; height: .7em; vertical-align: baseline; }
.kbar i { position: absolute; left: 0; width: 100%; height: .15em; border-radius: 9px; background: #6750b5; }
.kbar i:nth-child(1) { top: 0; } .kbar i:nth-child(2) { top: calc(50% - .075em); width: 68%; } .kbar i:nth-child(3) { bottom: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.on-the-job { padding-top: 0; padding-bottom: clamp(32px, 4vw, 48px); }
.otj-copy { display: grid; gap: 20px; justify-items: start; }
.otj-copy .lede { max-width: 46ch; margin: 0; }
.otj-copy p { margin: 0; }
.reel { margin: 0; width: 100%; max-width: 340px; justify-self: end; }
.reel video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--ink); border-radius: 4px; }
@media (max-width: 880px) { .reel { justify-self: center; } }
