/* ==========================================================================
   Trigon Forming
   Brand: black + white logo, concrete greys, steel blue accent.
   Change the colours in :root and the whole site follows.
   ========================================================================== */

:root {
  /* Brand */
  --ink: #0b0e12;
  --ink-2: #141a21;
  --ink-3: #222b35;
  --white: #ffffff;
  --concrete-50: #f3f4f5;
  --concrete-100: #e4e7ea;
  --concrete-300: #c2c8ce;
  --concrete-600: #56606b;
  --steel: #2b5f8c;
  --steel-deep: #1f4868;
  --steel-light: #8fbce0;
  --danger: #b3261e;

  /* Semantic */
  --bg: var(--white);
  --text: var(--ink);
  --text-muted: var(--concrete-600);
  --accent: var(--steel);
  --border: var(--concrete-100);

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Montserrat", "Barlow", system-ui, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 136px);
  --header-h: 76px;
  --chev: clamp(24px, 5vw, 88px);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 600ms;
}

@media (min-width: 960px) {
  :root { --header-h: 104px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }

:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 3px;
}
.hero :focus-visible,
.process :focus-visible,
.site-footer :focus-visible,
.site-header:not(.is-solid) :focus-visible {
  outline-color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.5rem, 11.5vw, 9rem); }
h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

h3 {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--steel);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow-light { color: var(--steel-light); }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  max-width: 62ch;
}

/* Heading with a rule running to the edge */
.ruled {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  color: var(--ink-3);
}
.ruled::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--steel);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid transparent;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn svg { transition: transform var(--t-med) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.75rem; }

.btn-primary { background: var(--steel); color: var(--white); }
.btn-primary:hover { background: var(--steel-deep); }
.btn-primary:active { background: var(--ink); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--steel-light); }
.btn-light:active { background: var(--concrete-300); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--steel);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast);
}
.text-link:hover { border-color: currentColor; }
.text-link svg { transition: transform var(--t-med) var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: calc(var(--header-h) * -1);
  color: var(--white);
  transition: background-color var(--t-med), color var(--t-med), box-shadow var(--t-med);
}
.site-header.is-solid {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(11, 14, 18, 0.06);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
}

.brand { display: block; padding-block: 8px; }
.brand img { height: calc(var(--header-h) - 20px); width: auto; }
.brand-dark { display: none; }
.is-solid .brand-dark { display: block; }
.is-solid .brand-light { display: none; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 26px; height: 2px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast);
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -8px; }
.menu-toggle-bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

/* Small screens: the open menu drops over the page instead of pushing it down */
.site-header { height: var(--header-h); }
.menu-open .header-inner {
  max-height: 100dvh;
  overflow-y: auto;
  background: var(--white);
  box-shadow: 0 16px 32px rgba(11, 14, 18, 0.16);
}

.site-nav, .header-actions { display: none; width: 100%; }
.menu-open .site-nav, .menu-open .header-actions { display: block; }
.menu-open .header-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 20px 28px;
}

.site-nav a, .header-phone {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav li { border-top: 1px solid var(--border); }
.site-nav a:hover, .header-phone:hover { color: var(--steel); }
.site-header:not(.is-solid) .site-nav a:hover,
.site-header:not(.is-solid) .header-phone:hover { color: var(--steel-light); }

@media (min-width: 960px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
  }
  .menu-open .header-inner { max-height: none; overflow: visible; background: none; box-shadow: none; }
  .menu-toggle { display: none; }
  .brand { grid-column: 2; grid-row: 1; }
  .site-nav { display: block; grid-column: 1; grid-row: 1; width: auto; }
  .site-nav ul { display: flex; gap: clamp(20px, 3vw, 44px); }
  .site-nav li { border: 0; }
  .header-actions, .menu-open .header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    grid-column: 3; grid-row: 1;
    width: auto;
    padding: 0;
  }
}

/* ---------- Image slots ----------
   Every illustration lives in a <figure class="slot">.
   Delete the figure and the layout closes up around it. */

.slot { overflow: hidden; background: var(--ink-2); }
.slot img { width: 100%; height: 100%; object-fit: cover; }

.slot-chevron {
  aspect-ratio: 10 / 11;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chev) * 0.7), 50% 100%, 0 calc(100% - var(--chev) * 0.7));
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 980px);
  padding: calc(var(--header-h) + 56px) 0 calc(var(--chev) + clamp(48px, 7vw, 96px));
  background: var(--ink);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chev)), 50% 100%, 0 calc(100% - var(--chev)));
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 14, 18, 0.8) 0%, rgba(11, 14, 18, 0.34) 36%, rgba(11, 14, 18, 0.84) 100%);
}

.hero-content {
  width: 100%;
  max-width: calc(1040px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-row {
  display: grid;
  gap: 28px;
  margin-top: clamp(24px, 4vw, 44px);
}
.hero-lede { font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.5; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-underline-offset: 5px;
}
.hero-call:hover { color: var(--steel-light); }

@media (min-width: 860px) {
  .hero-row { grid-template-columns: 1fr auto; align-items: end; gap: 56px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Stats ---------- */

.stats { padding-block: clamp(40px, 6vw, 72px); }
.stats-list {
  display: grid;
  gap: 28px;
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--concrete-300);
}
.stats-list li { display: flex; align-items: center; gap: 18px; }
.stats-list strong {
  flex: none;
  color: var(--steel);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 5.4vw, 4.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.stats-list span { max-width: 22ch; font-weight: 500; line-height: 1.3; }

@media (min-width: 860px) {
  .stats-list { grid-template-columns: repeat(3, auto); justify-content: space-between; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lede { margin-top: 24px; }

/* About */
.about { padding-top: clamp(32px, 5vw, 64px); }
.split { display: grid; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split-body > * + * { margin-top: 20px; }
.split-body h2 { margin-top: 0; }
.split-body .lede { margin-top: 28px; }
.split-body .about-intro { margin-top: 30px; }
.split-body .signature { margin-top: 46px; }
.split-body .mission-label {
  margin-top: 46px;
  padding-left: 12px;
  border-left: 3px solid var(--steel);
  color: var(--steel);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.split-body .mission-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.mission-pillars li { padding-top: 14px; border-top: 3px solid var(--steel); }
.mission-pillars h3 { margin: 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.1; letter-spacing: 0.01em; }
.split-body .mission-pillars p { margin-top: 6px; color: var(--ink); font-weight: 500; font-size: 0.9375rem; line-height: 1.45; }
@media (max-width: 619px) {
  .split-body .mission-pillars { grid-template-columns: 1fr; gap: 20px; }
}
.split-body p { max-width: 60ch; }
.signature {
  display: grid;
  gap: 2px;
  margin-top: 36px;
  padding-left: 20px;
  border-left: 3px solid var(--steel);
}
.signature strong { font-weight: 600; }
.signature span { color: var(--text-muted); }

@media (min-width: 860px) {
  .split { grid-template-columns: 5fr 6fr; }
  .split:not(:has(.slot)) { grid-template-columns: 1fr; }
}

/* Services */
.services { background: var(--concrete-50); }
.service-grid { display: grid; gap: 16px; }
.service {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-top: 3px solid var(--ink);
}
.service .slot { aspect-ratio: 16 / 9; }
.service-body { padding: 20px 22px 24px; }
.service h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; letter-spacing: 0.01em; }
.service-body > p { margin-top: 8px; color: var(--ink); font-weight: 500; font-size: 0.9375rem; line-height: 1.5; }
.service ul { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.service li {
  position: relative;
  padding: 3px 0 3px 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.service li::before {
  content: "";
  position: absolute;
  left: 1px; top: 0.75em;
  width: 7px; height: 7px;
  background: var(--steel);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.service-other {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 1.125rem;
}

@media (min-width: 620px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .service .slot { aspect-ratio: 3 / 2; }
}

/* Process: the dots are form-tie holes in a poured wall */
.process {
  background-color: var(--ink);
  background-image: radial-gradient(circle, rgba(143, 188, 224, 0.16) 2.5px, transparent 3px);
  background-size: 96px 96px;
  background-position: 48px 48px;
  color: var(--white);
}
.steps { display: grid; gap: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 40px 44px;
  border-left: 2px solid var(--ink-3);
}
.steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps li::before {
  content: "";
  position: absolute;
  left: -9px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--steel-light);
}
.step-num {
  display: block;
  margin-bottom: 8px;
  color: var(--steel-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 0.9;
}
.steps p { margin-top: 10px; max-width: 44ch; color: var(--concrete-300); }

@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li {
    padding: 44px 24px 0 0;
    border-left: 0;
    border-top: 2px solid var(--ink-3);
  }
  .steps li:last-child { border-top-color: var(--ink-3); }
  .steps li::before { left: 0; top: -9px; }
}

/* Work */
.work { padding-top: clamp(32px, 5vw, 64px); }
.about-photo img { object-position: 30% 50%; }

/* About: photo and text share one height, mission sits in a quiet panel */
@media (min-width: 860px) {
  .about .split { align-items: stretch; gap: clamp(40px, 5vw, 72px); }
  .about .about-photo { aspect-ratio: auto; height: 100%; min-height: 480px; }
}
.split-body .mission-label {
  margin-top: 40px;
  padding-left: 0;
  border-left: 0;
}
.split-body .mission-pillars {
  margin-top: 14px;
  padding: 24px;
  gap: 28px;
  background: var(--concrete-50);
}
.mission-pillars li { padding-top: 0; border-top: 0; padding-left: 14px; border-left: 3px solid var(--steel); }
.split-body .signature {
  margin-top: 32px;
  padding-left: 0;
  border-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}
.split-body .signature span::before { content: "\00B7"; margin-right: 10px; color: var(--concrete-300); }
@media (max-width: 619px) {
  .split-body .mission-pillars { padding: 20px; gap: 18px; }
  .split-body .signature { display: grid; gap: 2px; }
  .split-body .signature span::before { content: none; }
}
@media (min-width: 860px) and (max-width: 1099px) {
  .split-body .mission-pillars { grid-template-columns: 1fr; gap: 16px; }
}
.work-group + .work-group { margin-top: clamp(40px, 5vw, 56px); }
.work-label {
  margin-bottom: 18px;
  color: var(--steel);
  font-size: 0.875rem;
}
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
.work-item .slot { aspect-ratio: 3 / 2; }
.work-item p { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--steel); font-weight: 600; font-size: 0.9375rem; }
@media (max-width: 619px) {
  .work-item p { font-size: 0.8125rem; padding-left: 9px; }
}
@media (min-width: 1000px) {
  .work-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .work-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Contact */
.contact-grid { display: grid; gap: clamp(48px, 7vw, 96px); }
.contact-info .lede { margin-top: 24px; }
.contact-list { border-top: 1px solid var(--concrete-300); }
.contact-list > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 16px;
  align-items: baseline;
  padding-block: 16px;
  border-bottom: 1px solid var(--concrete-300);
}
.contact-list dt {
  color: var(--text-muted);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.contact-list dd { font-size: 1.125rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 2px solid var(--steel); }
.contact-list a:hover { color: var(--steel); }
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.copy-btn {
  padding: 6px 12px;
  background: none;
  border: 1.5px solid var(--concrete-300);
  color: var(--ink);
  font: 700 0.6875rem/1 var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--steel); color: var(--steel); }
.contact-list .email-text { user-select: text; -webkit-user-select: text; }
.copy-btn.is-copied { border-color: var(--steel); background: var(--steel); color: var(--white); }
button.hero-call {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.contact-actions .btn { margin-top: 32px; }

@media (min-width: 1000px) { .contact-grid { grid-template-columns: 5fr 6fr; align-items: end; } }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(56px, 8vw, 96px) 32px;
  background: var(--ink);
  color: var(--white);
}
.footer-top {
  display: grid;
  gap: 28px;
  justify-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink-3);
}
.footer-top img { width: 84px; }
.footer-tagline {
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1;
  text-transform: uppercase;
}
.footer-cols { display: grid; gap: 36px; padding-block: 48px; }
.footer-cols h2 {
  margin-bottom: 14px;
  font-family: var(--font-label);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  line-height: 1.4;
}
.footer-cols li { color: var(--concrete-300); overflow-wrap: anywhere; }
.footer-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}
.footer-cols li:not(:has(a)) { padding-block: 6px; }
.footer-cols a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

.footer-areas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-3);
  border: 1px solid var(--ink-3);
}
.footer-areas li {
  padding: 20px 12px;
  background: var(--ink-2);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}
.footer-legal { margin-top: 32px; color: var(--concrete-300); font-size: 0.875rem; text-align: center; }

@media (min-width: 720px) {
  .footer-top { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
  .footer-tagline { text-align: center; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-areas { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
  .footer-areas { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Small-screen refinements ---------- */

@media (max-width: 520px) {
  .hero-media img { opacity: 0.6; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
}
