/* ==========================================================================
   Tekton Pacific Build Co. — site styles
   Palette: black / orange / grey / white
   ========================================================================== */
:root {
  --black: #070708;
  --ink: #0d0d0f;
  --panel: #141417;
  --panel-2: #1b1b1f;
  --line: #2a2a2f;
  --line-soft: rgba(255, 255, 255, 0.08);
  --grey: #a0a0a2;
  --grey-2: #c9c9cb;
  --white: #f6f6f4;
  --orange: #f7660a;
  --orange-2: #ff8a3d;
  --orange-soft: rgba(247, 102, 10, 0.12);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--grey-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { color: var(--white); margin: 0; line-height: 1.1; font-weight: 800; font-stretch: 118%; letter-spacing: .01em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #000; padding: 8px 14px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px; line-height: 1.3;
  font-size: 12.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--orange); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 34px; height: 2px; background: var(--orange); }
.h-xl { font-size: clamp(34px, 5.4vw, 64px); text-transform: uppercase; }
.h-lg { font-size: clamp(28px, 3.8vw, 46px); text-transform: uppercase; }
.h-md { font-size: clamp(20px, 2vw, 24px); text-transform: uppercase; letter-spacing: .03em; }
.accent { color: var(--orange); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--grey-2); max-width: 62ch; }
.muted { color: var(--grey); }
.rule { width: 64px; height: 3px; background: var(--orange); border: 0; margin: 26px 0; }
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange); --fg: #0a0a0a; --bd: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd); border-radius: var(--radius);
  font: 700 13.5px/1 var(--font); letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { --bg: var(--orange-2); --bd: var(--orange-2); transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(247, 102, 10, .6); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .45); }
.btn-ghost:hover { --bg: var(--white); --fg: #0a0a0a; --bd: var(--white); box-shadow: none; }
.btn-dark { --bg: #0a0a0a; --fg: var(--white); --bd: #0a0a0a; }
.btn-dark:hover { --bg: #000; --bd: #000; box-shadow: none; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.solid, .site-header.always-solid {
  background: rgba(7, 7, 8, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 36px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { color: var(--white); font-weight: 900; font-stretch: 125%; font-size: 17px; letter-spacing: .06em; }
.brand-text small { color: var(--orange); font-weight: 700; font-stretch: 125%; font-size: 9.5px; letter-spacing: .42em; margin-top: 5px; }
.nav-links { display: flex; gap: 6px; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-2);
  transition: color .2s;
}
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
/* Drop-down menus (desktop) */
.nav-links .has-dd { position: relative; }
.nav-links .caret { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.nav-links .dd {
  position: absolute; left: 0; top: 100%; min-width: 290px; margin: 0; padding: 8px; list-style: none;
  background: #0d0d0f; border: 1px solid rgba(255, 255, 255, .12); border-top: 2px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.nav-links .has-dd:hover .dd, .nav-links .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.nav-links .dd a { padding: 11px 12px; font-size: 12px; letter-spacing: .14em; white-space: nowrap; border-radius: 3px; color: var(--grey-2); }
.nav-links .dd a::after { display: none; }
.nav-links .dd a:hover, .nav-links .dd a:focus-visible { background: rgba(247, 102, 10, .14); color: var(--white); }
/* jump targets clear the fixed header */
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); color: var(--white);
  transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--orange); color: var(--orange); }
.icon-btn svg { width: 18px; height: 18px; }
.portal-btn { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .3); }
.portal-btn:hover { --bg: transparent; --fg: var(--orange); --bd: var(--orange); box-shadow: none; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); width: 46px; height: 46px; padding: 11px; cursor: pointer; margin-left: auto; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #070708;
  padding: 28px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; transform: none; visibility: visible; }
.mobile-menu a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--white); font-size: 20px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: .06em; }
.mobile-menu a.m-link::after { content: "→"; color: var(--orange); }
.mobile-menu .m-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.mobile-menu .m-row a.m-link { flex: 1; border-bottom: 0; }
.mobile-menu .m-row a.m-link::after { display: none; }
.mobile-menu .m-toggle { width: 56px; background: none; border: 0; border-left: 1px solid var(--line); color: var(--orange); cursor: pointer; position: relative; }
.mobile-menu .m-toggle::before, .mobile-menu .m-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.mobile-menu .m-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.mobile-menu .m-group.open .m-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.mobile-menu .m-sub { display: none; padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.mobile-menu .m-group.open .m-sub { display: block; }
.mobile-menu .m-sub a { display: block; padding: 11px 0 11px 16px; border-left: 2px solid var(--orange); margin: 2px 0; color: var(--grey-2); font-size: 14.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.mobile-menu .btn { width: 100%; margin-top: 12px; }
.mobile-menu .m-note { margin-top: 22px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); text-align: center; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: #050506; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero::before { /* legibility gradient */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, .85) 0%, rgba(5, 5, 6, .35) 30%, rgba(5, 5, 6, 0) 52%, rgba(5, 5, 6, .15) 78%, rgba(5, 5, 6, .9) 100%);
}
.hero::after { /* blueprint grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero-inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
  padding-top: calc(var(--header-h) + clamp(28px, 7vh, 80px)); padding-bottom: 40px;
}
/* Home hero: logo artwork as the backdrop */
.hero-logo { background: #000; }
.hero-logo::before {
  background:
    radial-gradient(ellipse 55% 45% at 50% 34%, rgba(247, 102, 10, .16) 0%, rgba(247, 102, 10, .05) 45%, transparent 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .9) 100%);
}
.hero-logo .hero-inner { padding-top: calc(var(--header-h) + clamp(16px, 3.5vh, 44px)); }
.hero-art { width: min(92vw, 820px, 80vh); height: auto; margin: 0 auto; filter: drop-shadow(0 0 60px rgba(247, 102, 10, .10)); }
.hero-logo .hero-tagline { margin-top: clamp(32px, 6vh, 64px); font-size: clamp(19px, 2.3vw, 26px); letter-spacing: .04em; }
/* Home hero side lists: services (left) + standards (right). Wide screens only;
   on smaller screens the same content shows as sections further down the page. */
.hero-col { position: absolute; top: var(--header-h); bottom: 62px; z-index: 2; width: 290px; display: none; flex-direction: column; justify-content: flex-start; padding-top: clamp(84px, 15vh, 190px); }
.hero-col.left { left: max(32px, calc(50% - 790px)); }
.hero-col.right { right: max(32px, calc(50% - 790px)); text-align: right; }
.hero-col h2 { font-size: 12px; font-weight: 700; font-stretch: 100%; letter-spacing: .32em; color: var(--orange); text-transform: uppercase; margin-bottom: 8px; }
.hero-col h2::after { content: ""; display: block; width: 36px; height: 2px; background: var(--orange); margin-top: 12px; }
.hero-col.right h2::after { margin-left: auto; }
.hero-col a { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); color: var(--white); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; transition: color .2s, border-color .2s, padding .2s var(--ease); }
.hero-col.right a { justify-content: flex-end; }
.hero-col a b { color: var(--orange); font-weight: 800; flex: none; }
.hero-col a small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; letter-spacing: .01em; text-transform: none; color: var(--grey); transition: color .2s; }
.hero-col a:hover, .hero-col a:focus-visible { color: var(--orange); border-bottom-color: var(--orange); }
.hero-col.left a:hover { padding-left: 6px; }
.hero-col.right a:hover { padding-right: 6px; }
.hero-col a:hover small { color: var(--grey-2); }
@media (min-width: 1241px) {
  .hero-col { display: flex; }
  .hero-logo .hero-side { display: none; }
  .hero-logo .hero-art { width: min(820px, 80vh, 100vw - 720px); }
  .hero-logo .hero-tagline, .hero-logo .hero-sub { max-width: calc(100vw - 760px); margin-left: auto; margin-right: auto; }
  .wide-hide { display: none; }
}
.hero-mark { width: clamp(84px, 9vw, 120px); margin-bottom: 22px; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .6)); }
.hero-word { width: min(640px, 86vw); filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .7)); }
.hero-tagline {
  margin: 26px 0 0; color: var(--white); font-size: clamp(17px, 2vw, 22px); font-weight: 500; font-style: italic; letter-spacing: .02em;
}
.hero-sub { margin: 14px auto 30px; max-width: 58ch; color: var(--grey-2); font-size: clamp(15.5px, 1.4vw, 18px); text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.hero .btn-row { justify-content: center; }
.license { margin-top: 22px; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--grey); }
.license b { color: var(--grey-2); font-weight: 600; }
.hero-side {
  position: absolute; top: calc(var(--header-h) + 80px); font-size: 12px; letter-spacing: .34em; line-height: 2.3; text-transform: uppercase; color: var(--grey-2);
}
.hero-side::after { content: ""; display: block; width: 36px; height: 2px; background: var(--orange); margin-top: 12px; }
.hero-side.left { left: var(--gutter); }
.hero-side.right { right: var(--gutter); text-align: right; }
.hero-side.right::after { margin-left: auto; }
.hero-strip {
  position: relative; border-top: 1px solid var(--line-soft); background: rgba(5, 5, 6, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-strip ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--maxw); }
.hero-strip li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 10px; font-size: 13px; letter-spacing: .22em; white-space: nowrap; text-transform: uppercase; color: var(--white); }
.hero-strip li + li { border-left: 1px solid var(--line-soft); }
.hero-strip svg { width: 26px; height: 26px; color: var(--orange); flex: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; background: #050506;
  padding: calc(var(--header-h) + clamp(26px, 4.5vh, 46px)) 0 clamp(30px, 5vh, 50px);
}
.page-hero .hero-bg img { object-position: 50% 92%; opacity: .75; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 5, 6, .95) 0%, rgba(5, 5, 6, .7) 45%, rgba(5, 5, 6, .2) 100%), linear-gradient(0deg, rgba(5, 5, 6, 1) 0%, rgba(5, 5, 6, 0) 40%);
}
.page-hero h1 { max-width: 26ch; font-size: clamp(26px, 3.3vw, 42px); }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero .lead { margin: 14px 0 0; font-size: clamp(15.5px, 1.3vw, 17.5px); }
.crumbs { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.crumbs a:hover { color: var(--white); }
.crumbs span { color: var(--orange); margin: 0 10px; }

/* ---------- Sections ---------- */
.section { --pad: clamp(36px, 4vw, 56px); padding: var(--pad) 0; position: relative; }
/* no stray space under the last item in a section */
.section p:last-child, .section ul:last-child, .section .section-head:last-child { margin-bottom: 0; }
.section.lead-in { padding-bottom: clamp(22px, 2.4vw, 32px); }
.section.alt { background: var(--ink); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.section-head { max-width: 760px; margin-bottom: clamp(26px, 3.2vw, 40px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 18px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.top { align-items: start; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--ink); }
.pillar { padding: clamp(30px, 3.4vw, 48px); position: relative; transition: background .3s; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar:hover { background: var(--panel); }
.pillar::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--orange); transition: width .4s var(--ease); }
.pillar:hover::before { width: 100%; }
.pillar svg { width: 46px; height: 46px; color: var(--grey-2); margin-bottom: 22px; }
.pillar h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.pillar p { color: var(--grey); margin: 0; font-size: 16px; }

/* Feature list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.checks li { display: flex; gap: 18px; padding: 22px 24px; background: var(--panel); border-left: 3px solid var(--orange); }
.checks li strong { display: block; color: var(--white); font-size: 16.5px; letter-spacing: .02em; margin-bottom: 4px; }
.checks li span { color: var(--grey); font-size: 15.5px; }
.checks .num { flex: none; color: var(--orange); font-weight: 800; font-stretch: 125%; font-size: 15px; padding-top: 2px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; min-height: 290px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--ink) 100%); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(247, 102, 10, .6); }
.card .idx { position: absolute; top: 18px; right: 22px; font-size: 54px; font-weight: 900; font-stretch: 125%; color: rgba(255, 255, 255, .05); line-height: 1; }
.card svg { width: 42px; height: 42px; color: var(--orange); margin-bottom: 26px; }
.card h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.card p { color: var(--grey); font-size: 15.5px; flex: 1; }
.card .link-arrow { margin-top: 10px; }

/* Standards band */
.standards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.standard { padding: 28px 28px 0 0; }
.standard + .standard { padding-left: 28px; border-left: 1px solid var(--line); }
.standard .big { display: block; color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .3em; margin-bottom: 16px; }
.standard h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 10px; }
.standard p { color: var(--grey); font-size: 15.5px; }

/* Audience chips */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.aud { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); background: var(--ink); border-radius: var(--radius); color: var(--white); font-weight: 700; letter-spacing: .04em; }
.aud svg { width: 30px; height: 30px; color: var(--orange); flex: none; }

/* Recent work placeholders */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-tile {
  position: relative; aspect-ratio: 4 / 3.2; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(rgba(247, 102, 10, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(247, 102, 10, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 70% 30%, #1d1410 0%, #0b0b0c 70%);
  display: flex; align-items: flex-end;
}
.work-tile .wt-draw { position: absolute; inset: 14% 12% 30%; color: rgba(255, 255, 255, .16); }
.work-tile .wt-draw svg { width: 100%; height: 100%; }
.work-tile .wt-label { position: relative; padding: 22px 24px; width: 100%; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }
.work-tile .wt-label small { display: block; color: var(--orange); font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 6px; }
.work-tile .wt-label b { color: var(--white); font-size: 17px; font-stretch: 112%; text-transform: uppercase; letter-spacing: .05em; }
.soon { position: absolute; top: 18px; left: 18px; padding: 6px 12px; border: 1px solid rgba(247, 102, 10, .5); color: var(--orange); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; background: rgba(0, 0, 0, .5); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--orange); color: #0a0a0a; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: linear-gradient(rgba(0, 0, 0, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .5) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: clamp(32px, 3.6vw, 48px); padding-bottom: clamp(32px, 3.6vw, 48px); }
.cta-band h2 { color: #0a0a0a; font-size: clamp(26px, 3.4vw, 42px); text-transform: uppercase; }
.cta-band p { margin: 10px 0 0; color: rgba(0, 0, 0, .75); font-weight: 500; }
.cta-band .btn-row { flex: none; flex-wrap: nowrap; }
.cta-band .btn-ghost { --fg: #0a0a0a; --bd: rgba(0, 0, 0, .55); }
.cta-band .btn-ghost:hover { --bg: #0a0a0a; --fg: var(--white); --bd: #0a0a0a; }

/* Services detail */
.svc { display: grid; grid-template-columns: 90px 1fr 1fr; gap: clamp(20px, 4vw, 60px); padding: clamp(28px, 3.4vw, 42px) 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: calc(var(--header-h) + 20px); }
.svc:last-child { padding-bottom: 0; }
.svc .n { font-size: 44px; font-weight: 900; font-stretch: 125%; color: var(--orange); line-height: 1; }
.svc h2 { font-size: clamp(24px, 2.6vw, 32px); text-transform: uppercase; }
.svc h2 small { display: block; margin-top: 14px; font-size: 13px; letter-spacing: .26em; color: var(--grey); font-weight: 600; font-stretch: 100%; }
.svc ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc ul li { padding: 7px 12px; border: 1px solid var(--line); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-2); background: var(--ink); }
.svc p { color: var(--grey-2); }

.trade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trade { padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.trade h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.trade h3::before { content: ""; width: 10px; height: 10px; background: var(--orange); }
.trade.sub h3::before { background: var(--grey); }
.trade ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.trade ul.codes li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.trade .code { flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--orange); white-space: nowrap; }
.trade li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--grey-2); break-inside: avoid; font-size: 15.5px; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 22px 0 0; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 13px; font-weight: 700; letter-spacing: .3em; color: var(--orange); margin-bottom: 18px; }
.step .bar { height: 2px; background: var(--line); margin-bottom: 22px; position: relative; }
.step .bar::after { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; background: var(--orange); }
.step h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.step p { color: var(--grey); font-size: 15px; }

.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.also div { padding: 26px; border: 1px solid var(--line); background: var(--ink); border-radius: var(--radius); }
.also h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.also p { margin: 0; color: var(--grey); font-size: 15px; }

/* About */
.founder { position: relative; padding: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.founder .role { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--orange); }
.founder h3 { font-size: 26px; text-transform: uppercase; margin: 10px 0 18px; }
.logo-panel { position: relative; padding: clamp(28px, 4vw, 50px); background: radial-gradient(circle at 50% 40%, #1b120c 0%, #070708 70%); border: 1px solid var(--line); border-radius: var(--radius); }
.logo-panel img { width: 100%; height: auto; }
.quote { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; color: var(--white); font-weight: 600; font-stretch: 105%; max-width: 30ch; }
.quote em { color: var(--orange); font-style: normal; }

/* About: the name */
.name-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid var(--line); }
.name-row + .name-close { border-top: 1px solid var(--line); }
.name-close { text-align: center; padding-top: clamp(28px, 3.6vw, 44px); }
.name-close-big { margin: 0; font-size: clamp(24px, 3.4vw, 42px); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: .02em; color: var(--white); line-height: 1.15; }
.name-close-sub { margin: 12px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--grey); }
.name-word { min-width: 0; container-type: inline-size; }
.name-big { white-space: nowrap; font-size: min(13cqi, 110px); font-weight: 900; font-stretch: 125%; line-height: .9; letter-spacing: .01em; text-transform: uppercase; color: var(--white); }
.name-big.name-orange { color: var(--orange); }
.name-def { margin: 14px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--orange); }
.name-orange + .name-def { color: var(--grey); }
.name-copy .lead { margin: 0; max-width: 46ch; color: var(--grey-2); }
.name-copy strong { color: var(--white); }
@media (max-width: 760px) { .name-row { grid-template-columns: 1fr; gap: 18px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.form { padding: clamp(26px, 4vw, 44px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.form h2 { font-size: 24px; text-transform: uppercase; margin-bottom: 6px; }
.form .req-note { font-size: 13px; color: var(--grey); margin-bottom: 26px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-2); font-weight: 600; }
.field label i { color: var(--orange); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; background: var(--black); color: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font: 400 16px/1.4 var(--font); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.field input::placeholder, .field textarea::placeholder { color: #5d5d62; }
.trade-picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.trade-picker legend { padding: 0; margin-bottom: 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-2); font-weight: 600; }
.trade-picker legend i { color: var(--orange); font-style: normal; }
.checkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trade-picker .checkgrid label { min-width: 0; text-transform: none; letter-spacing: normal; font-weight: 500; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--black); color: var(--grey-2); font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s; }
.trade-picker .checkgrid label:hover { border-color: var(--orange); }
.checkgrid input { width: 17px; height: 17px; accent-color: var(--orange); flex: none; margin: 0; }
.trade-picker .checkgrid label:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); color: var(--white); }
.trade-picker .other-trade { margin-top: 10px; width: 100%; padding: 13px 16px; background: var(--black); color: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font: 400 16px/1.4 var(--font); }
.trade-picker .other-trade:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
@media (max-width: 680px) { .checkgrid { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 24px; width: 100%; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; display: none; }
.form-status.ok { display: block; background: rgba(46, 160, 67, .12); border: 1px solid rgba(46, 160, 67, .5); color: #bfe8c7; }
.form-status.err { display: block; background: rgba(247, 102, 10, .1); border: 1px solid rgba(247, 102, 10, .5); color: #ffd2b3; }
.form-status a { color: var(--white); text-decoration: underline; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 18px; padding: 24px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
a.c-card:hover { border-color: var(--orange); }
.c-card svg { width: 26px; height: 26px; color: var(--orange); flex: none; margin-top: 2px; }
.c-card small { display: block; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.c-card b { color: var(--white); font-size: 17px; font-weight: 700; word-break: break-word; }
.c-card p { margin: 6px 0 0; color: var(--grey); font-size: 14.5px; }
.c-card.portal { background: linear-gradient(135deg, #1a120c, var(--ink)); border-color: rgba(247, 102, 10, .4); }

/* Portal page */
.portal-box { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(34px, 5vw, 56px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.portal-box .lock { width: 64px; height: 64px; margin: 0 auto 22px; display: grid; place-items: center; border: 1px solid rgba(247, 102, 10, .5); border-radius: 50%; color: var(--orange); }
.portal-box .lock svg { width: 28px; height: 28px; }
.portal-box ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; text-align: left; }
.portal-box li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--ink); border: 1px solid var(--line); color: var(--grey-2); font-size: 15.5px; }
.portal-box li::before { content: ""; width: 8px; height: 8px; background: var(--orange); flex: none; }

/* ---------- Light content sections ----------
   Content sections are light (white / warm grey). The palette variables are
   remapped inside them so every component flips automatically.
   Add class "dark" to a section to keep it black. */
.section:not(.dark) {
  --white: #111214;        /* headings */
  --grey-2: #3a3b40;       /* body text */
  --grey: #6b6c72;         /* muted text */
  --panel: #ffffff;
  --panel-2: #f3f3f1;
  --ink: #ffffff;
  --black: #ffffff;        /* form inputs */
  --line: #e0e0dc;
  --line-soft: rgba(0, 0, 0, .07);
  background: #f7f7f5;
  color: var(--grey-2);
}
.section.alt:not(.dark) { background: #ecece8; border-color: rgba(0, 0, 0, .06); }
.section.grid-bg:not(.dark)::before {
  background-image: linear-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .035) 1px, transparent 1px);
}
.section:not(.dark) .card { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px -18px rgba(0, 0, 0, .25); }
.section:not(.dark) .card .idx { color: rgba(0, 0, 0, .06); }
.section:not(.dark) .card:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 22px 40px -20px rgba(0, 0, 0, .35); }
.section:not(.dark) .checks li, .section:not(.dark) .trade, .section:not(.dark) .also div,
.section:not(.dark) .aud, .section:not(.dark) .form, .section:not(.dark) .c-card, .section:not(.dark) .pillars { box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.section:not(.dark) .svc ul li { background: #fff; }
.section:not(.dark) .field input, .section:not(.dark) .field select, .section:not(.dark) .field textarea { border-color: #d3d3cf; }
.section:not(.dark) .field input::placeholder, .section:not(.dark) .field textarea::placeholder { color: #9a9ba0; }
.section:not(.dark) .form-status.ok { color: #1d6b2d; }
.section:not(.dark) .form-status.err { color: #8a3500; }
.section:not(.dark) .form-status a { color: #111; }
.section:not(.dark) .logo-panel { --white: #f6f6f4; background: radial-gradient(circle at 50% 40%, #1b120c 0%, #070708 70%); border-color: #1b1b1f; }
.section:not(.dark) .card svg, .section:not(.dark) .aud svg, .section:not(.dark) .c-card svg { color: var(--orange); }
.section:not(.dark) .pillar svg { color: #2a2b30; }
.section:not(.dark) .btn-ghost { --fg: #111214; --bd: rgba(0, 0, 0, .35); }
.section:not(.dark) .btn-ghost:hover { --bg: #111214; --fg: #fff; --bd: #111214; }
/* pieces that stay dark inside light sections */
.work-tile, .c-card.portal {
  --white: #f6f6f4; --grey-2: #c9c9cb; --grey: #a0a0a2; --line: #2a2a2f;
}
.section:not(.dark) .work-tile { border-color: #1b1b1f; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45); }
.section:not(.dark) .c-card.portal { background: linear-gradient(135deg, #1a120c, #0d0d0f); border-color: rgba(247, 102, 10, .5); }

/* ---------- Footer ---------- */
.site-footer { background: #050506; border-top: 1px solid var(--line-soft); padding: clamp(36px, 4vw, 56px) 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 230px; height: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--grey); max-width: 34ch; }
.site-footer h4 { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; font-stretch: 100%; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer li.hours { color: var(--grey); }
.site-footer a { color: var(--grey-2); transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.footer-proud { margin-top: 36px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-size: 13px; letter-spacing: .4em; text-transform: uppercase; color: var(--white); }
.footer-proud span { color: var(--orange); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 13px; color: #6e6e73; letter-spacing: .04em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.hero .rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero .rise.d1 { animation-delay: .12s; } .hero .rise.d2 { animation-delay: .24s; } .hero .rise.d3 { animation-delay: .36s; } .hero .rise.d4 { animation-delay: .48s; } .hero .rise.d5 { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .rise { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 0; }
  .standards { grid-template-columns: repeat(2, 1fr); }
  .standard:nth-child(3) { padding-left: 0; border-left: 0; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .hero-side { display: none; }
  .hero-strip li { gap: 9px; font-size: 11.5px; letter-spacing: .14em; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: block; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 14px; }
  .work { grid-template-columns: 1fr 1fr; }
  .work-tile:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .also { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero-bg img { object-position: 47% 100%; }
  .hero-strip ul { grid-template-columns: 1fr 1fr; }
  .hero-strip li { justify-content: flex-start; padding: 14px 16px; font-size: 11px; letter-spacing: .14em; gap: 10px; white-space: normal; }
  .hero-strip li + li { border-left: 0; }
  .hero-strip li:nth-child(even) { border-left: 1px solid var(--line-soft); }
  .hero-strip li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .hero-strip svg { width: 22px; height: 22px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .cards, .standards, .audience, .trade-grid, .fields, .footer-grid { grid-template-columns: 1fr; }
  .standard, .standard + .standard { padding: 24px 0; border-left: 0; }
  .standard:last-child { padding-bottom: 0; }
  .standard + .standard { border-top: 1px solid var(--line); }
  .work { grid-template-columns: 1fr; }
  .work-tile:first-child { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .trade ul.codes { columns: 1; }
  .trade ul:not(.codes) { column-gap: 14px; }
  .trade ul:not(.codes) li { font-size: 14.5px; }
  .btn-row .btn { flex: 1 1 100%; }
  .cta-band .btn-row { width: 100%; flex-wrap: wrap; }
  .footer-proud { letter-spacing: .25em; font-size: 12px; }
}
