/*
Theme Name: Trade Code Works
Theme URI: https://tradecodeworks.com/
Author: Trade Code Works
Description: Custom homepage child theme for Trade Code Works.
Template: twentytwentyfive
Version: 1.0.0
Text Domain: tradecodeworks
*/

:root {
  --bg: #070808;
  --bg-soft: #0c0d0e;
  --panel: #111213;
  --panel-alt: #151617;
  --border: #2a2b2d;
  --border-red: #8f1715;
  --text: #f3f3f3;
  --text-soft: #c3c3c3;
  --text-muted: #8e8e8e;
  --red: #e32620;
  --red-bright: #f0322b;
  --red-dark: #9f1714;
  --max: 1220px;
  --header-max: 1320px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 12%, rgba(227, 38, 32, .12), transparent 28%),
    linear-gradient(90deg, rgba(227, 38, 32, .04) 1px, transparent 1px),
    linear-gradient(rgba(227, 38, 32, .035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 28px 28px, 28px 28px, auto;
  line-height: 1.5;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--text-soft); margin: 0; }

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--red);
  color: white;
  padding: 10px 14px;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 1000;
  min-height: 76px;
  background: #070808;
  border-bottom: 1px solid #242527;
}
.header-inner {
  width: min(1320px, calc(100% - 48px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.brand { flex: 0 0 auto; }
.brand img {
  display: block;
  width: 270px;
  max-width: 27vw;
  height: auto;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 38px;
  flex: 0 1 auto;
}
.site-nav a,
.site-nav button,
.footer-grid nav a {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.site-nav button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.site-nav > a,
.site-nav > .nav-dropdown,
.header-cta {
  flex: 0 0 auto;
}
.site-nav > a,
.site-nav > .nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.nav-dropdown {
  position: relative;
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 340px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: #101112;
  border: 1px solid #303133;
  border-top: 2px solid #e62b26;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  z-index: 3000;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}
.services-menu-item:hover > .services-submenu,
.services-menu-item:focus-within > .services-submenu,
.services-menu-item.is-open > .services-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
@media (min-width: 1081px) {
  .services-menu-item {
    position: relative;
  }
  .services-menu-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }
}
.nav-submenu a {
  display: block;
  width: 100%;
  padding: 12px 14px;
  color: #f4f4f4;
  white-space: normal;
  line-height: 1.3;
  border-bottom: 0;
  font-size: 13px;
}
.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  color: #ffffff;
  background: #191a1c;
  box-shadow: inset 3px 0 0 #e62b26;
}
.site-nav a:hover,
.footer-grid nav a:hover { color: var(--red-bright); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background-color: var(--panel);
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff);
  background-position:
    center calc(50% - 7px),
    center,
    center calc(50% + 7px);
  background-repeat: no-repeat;
  background-size: 20px 2px;
  color: white;
  border-radius: 2px;
}
.menu-toggle span:not(.sr-only) {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.btn {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red-dark));
  border-color: var(--red);
  color: white;
  box-shadow: 0 0 0 1px rgba(227, 38, 32, .2);
}
.btn-primary::after { content: "\2192"; }
.btn-secondary {
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--red); }
.btn-large { min-width: 270px; min-height: 72px; font-size: 16px; text-align: center; }
.header-cta { flex: 0 0 auto; }

.section-grid {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 18px 18px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 34px;
}
.hero::after,
.cta-band::after {
  content: "";
  position: absolute;
  inset: auto -80px 0 auto;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(227, 38, 32, .18);
  transform: rotate(45deg);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  width: calc(100% - 64px);
  max-width: 1380px;
  margin-inline: auto;
  grid-template-columns: minmax(540px, .95fr) minmax(620px, 1.15fr);
  column-gap: 48px;
  align-items: start;
}
.hero-grid > * { min-width: 0; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--red-bright);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(52px, 4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.hero-text {
  max-width: 610px;
  margin-top: 22px;
  font-size: 16px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-qualifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 13px;
}
.hero-qualifiers li::before {
  content: "◆";
  color: var(--red);
  margin-right: 9px;
  font-size: 9px;
}
.hero-visual {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  align-self: start;
  margin-top: 48px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: #090909;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .45);
}
.hero-visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.cred-strip {
  border-block: 1px solid rgba(255, 255, 255, .09);
  background: rgba(12, 13, 14, .74);
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cred-item {
  display: flex;
  gap: 18px;
  min-height: 116px;
  align-items: center;
  padding: 18px 24px;
  border-right: 1px solid rgba(255, 255, 255, .07);
}
.cred-item:last-child { border-right: 0; }
.cred-item img,
.service-card img { width: 42px; height: 42px; flex: 0 0 auto; }
.cred-item h2 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.15;
}
.cred-item p { font-size: 12px; line-height: 1.35; }

.section { padding: 38px 0; }
.page-hero {
  padding: 72px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.breadcrumb {
  padding: 18px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--red-bright); }
.interior-hero-grid,
.content-image,
.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: 54px;
  align-items: center;
}
.interior-hero-grid > *,
.content-image > *,
.submit-layout > * {
  min-width: 0;
}
.interior-hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 5vw, 66px);
  line-height: 1.03;
  letter-spacing: -.035em;
}
.interior-hero p {
  max-width: 720px;
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.hero-card-image,
.media-panel {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: #090909;
  box-shadow: 0 18px 70px rgba(0,0,0,.42);
}
.hero-card-image img,
.media-panel img,
.hero-card-image picture,
.media-panel picture {
  display: block;
  width: 100%;
  height: auto;
}
.hero-card-image img,
.media-panel img {
  object-fit: contain;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}
.trust-row li {
  color: var(--text-soft);
  font-size: 13px;
}
.trust-row li::before {
  content: "◆";
  color: var(--red);
  margin-right: 8px;
  font-size: 9px;
}
.benefit-strip {
  padding: 44px 0;
  border-block: 1px solid rgba(255,255,255,.08);
  background: rgba(12,13,14,.72);
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.benefit-card,
.info-card,
.project-type-card,
.legal-box {
  padding: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.012)), var(--panel);
  border: 1px solid var(--border);
}
.benefit-card svg,
.info-card svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
}
.benefit-card h2,
.info-card h3,
.project-type-card h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}
.content-section {
  padding: 84px 0;
}
.content-section h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
}
.content-section p + p { margin-top: 16px; }
.card-grid-3,
.card-grid-2 {
  display: grid;
  gap: 18px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.provided-panel {
  padding: 34px;
  border: 1px solid var(--border-red);
  background: rgba(13,14,15,.88);
}
.legal-page .container {
  max-width: 900px;
}
.legal-page h1 {
  max-width: none;
  font-size: clamp(42px, 5vw, 58px);
}
.legal-page h2 {
  margin-top: 34px;
  font-size: 26px;
}
.legal-page ul { color: var(--text-soft); line-height: 1.65; }
.submit-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--border-red);
  background: rgba(13,14,15,.92);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
label {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  background: #090a0a;
  font: inherit;
}
textarea { min-height: 160px; resize: vertical; }
.form-help,
.form-error {
  color: var(--text-muted);
  font-size: 12px;
}
.form-error { color: #ffb3b0; }
.honeypot {
  position: absolute;
  left: -9999px;
}
.email-inline {
  margin-top: 12px;
  color: #b8b8b8;
  font-size: 15px;
  line-height: 1.5;
}
.email-inline a,
.hero-email-option a,
.footer-email a {
  color: #f4f4f4;
  text-decoration: underline;
  text-decoration-color: #e62b26;
  text-underline-offset: 4px;
}
.confirmation-box {
  max-width: 760px;
  padding: 34px;
  border: 1px solid var(--border-red);
  background: rgba(13,14,15,.92);
}
.status-pill {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  color: #fff;
  background: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.section-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 28px;
  line-height: 1.16;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.service-card {
  min-height: 255px;
  padding: 25px 22px 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.012)), var(--panel);
  border: 1px solid var(--border);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: #505255;
  background-color: var(--panel-alt);
}
.service-card h3,
.process-step h3,
.delivery-card h3 {
  margin: 17px 0 9px;
  font-size: 17px;
  line-height: 1.08;
}
.service-card p {
  min-height: 100px;
  font-size: 13px;
  line-height: 1.45;
}
.service-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.process { border-top: 1px solid rgba(255,255,255,.06); }
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 25px;
}
.process-grid::before {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  top: 58px;
  border-top: 1px dashed rgba(227, 38, 32, .75);
}
.process-step {
  position: relative;
  text-align: center;
  padding: 0 12px;
}
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-dark);
  border: 1px solid var(--red-bright);
  font-weight: 900;
}
.process-step img { width: 55px; height: 55px; margin: 0 auto; filter: grayscale(.2); }
.process-step p { font-size: 13px; }
.center-action { display: flex; justify-content: center; margin-top: 30px; }

.fit-panel {
  padding: 0 0 18px;
}
.two-column-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background: rgba(17, 18, 19, .76);
}
.two-column-panel > div {
  padding: 22px 52px;
}
.two-column-panel > div + div { border-left: 1px solid rgba(255,255,255,.08); }
.two-column-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.check-list,
.x-list,
.delivery-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li,
.x-list li,
.delivery-card li {
  position: relative;
  padding-left: 22px;
  margin: 6px 0;
  color: var(--text-soft);
  font-size: 14px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red-bright);
}
.x-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--red-bright);
  font-weight: 900;
}
.delivery { padding-top: 0; }
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.delivery-card {
  display: flex;
  gap: 22px;
  padding: 28px 34px;
  border: 1px solid var(--border-red);
  background: rgba(13, 14, 15, .85);
}
.delivery-card img { width: 70px; height: 70px; flex: 0 0 auto; }
.delivery-card h3 { margin-top: 0; font-size: 21px; }
.delivery-card li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--red);
}
.delivery-note {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(227, 38, 32, .28);
  background:
    linear-gradient(90deg, rgba(127, 19, 17, .58), rgba(12, 13, 14, .8) 42%, rgba(9, 10, 10, .96));
  padding: 34px 0;
}
.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .75fr auto;
  gap: 36px;
  align-items: center;
}
.cta-grid h2 { margin: 0 0 10px; font-size: 31px; }
.cta-grid p { max-width: 560px; }

.faq { padding-top: 30px; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 44px;
}
details {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 9px 14px;
  color: var(--text);
  font-size: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-soft); font-size: 18px; }
details[open] summary::after { content: "−"; }
details p {
  padding: 0 14px 14px;
  font-size: 13px;
}

.site-footer {
  padding: 34px 0 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #080909;
}
.recommended-resources {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.recommended-resources-inner {
  display: grid;
  grid-template-columns: minmax(190px, .35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.recommended-resources h2,
.risk-performance-disclosures h2 {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.resource-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.resource-logo-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
}
.resource-logo-card a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.resource-logo-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}
.resource-logo-card-ninjatrader img {
  max-height: 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .72fr .95fr .72fr 1.35fr;
  gap: 34px;
}
.footer-brand img { width: 282px; }
.footer-brand p { margin-top: 10px; max-width: 260px; font-size: 13px; }
.footer-grid h2 {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-grid nav a {
  display: block;
  margin: 5px 0;
  color: var(--text-soft);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}
.disclosures p { margin-bottom: 9px; font-size: 11px; line-height: 1.45; }
.risk-performance-disclosures {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.risk-performance-disclosures .container {
  max-width: 1100px;
}
.risk-performance-disclosures h2 {
  margin-bottom: 12px;
}
.risk-performance-disclosures p {
  margin-bottom: 11px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.58;
}
.risk-performance-disclosures strong {
  color: var(--text);
  font-weight: 800;
}
.copyright {
  width: min(calc(100% - 48px), var(--max));
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 11px;
  text-align: right;
}

@media (max-width: 1180px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card p { min-height: 74px; }
  .hero-grid {
    grid-template-columns: minmax(470px, .95fr) minmax(520px, 1.05fr);
    column-gap: 32px;
  }
  h1 { font-size: clamp(50px, 4vw, 58px); }
}

@media (max-width: 1080px) {
  body.menu-open {
    overflow: hidden;
  }

  .header-inner { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 64px; justify-content: space-between; }
  .brand img {
    width: 218px;
    max-width: min(62vw, 218px);
  }
  .menu-toggle {
    display: inline-flex;
    order: 3;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }
  .header-cta { display: none; }
  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    margin-left: 0;
    padding: 16px;
    background: rgba(7, 8, 8, .98);
    border-bottom: 1px solid var(--border);
    z-index: 2500;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-dropdown { display: grid; }
  .nav-parent {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: var(--text);
  }
  .nav-submenu {
    position: static;
    width: auto;
    min-width: 0;
    display: none;
    padding: 0 0 0 14px;
    border: 0;
    border-left: 1px solid rgba(255,255,255,.12);
    background: transparent;
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
  }
  .nav-dropdown.is-open .nav-submenu {
    display: block;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a,
  .nav-submenu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .hero-grid {
    width: min(calc(100% - 32px), var(--max));
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 34px; }
  h1 { max-width: 720px; font-size: 44px; }
  .hero-visual { max-width: none; margin-top: 8px; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-item:nth-child(2) { border-right: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .two-column-panel,
  .delivery-grid,
  .cta-grid,
  .faq-grid,
  .footer-grid,
  .recommended-resources-inner,
  .resource-logo-grid,
  .interior-hero-grid,
  .content-image,
  .submit-layout,
  .card-grid-3,
  .card-grid-2 { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: 1fr; }
  .two-column-panel > div { padding: 22px 24px; }
  .two-column-panel > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .cta-grid { gap: 22px; }
  .btn-large { width: 100%; }
  .footer-grid { gap: 26px; }
  .copyright { text-align: left; }
}

@media (max-width: 520px) {
  .container,
  .header-inner { width: min(calc(100% - 28px), var(--max)); }
  .brand img { width: 210px; max-width: 62vw; }
  .hero { padding: 28px 0 34px; }
  h1 { font-size: 32px; line-height: 1.08; overflow-wrap: anywhere; }
  .interior-hero h1 {
    max-width: 100%;
    font-size: 30px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  .interior-hero p {
    font-size: 15px;
  }
  .hero-card-image,
  .media-panel {
    max-width: 100%;
  }
  .hero-text { max-width: 100%; font-size: 15px; overflow-wrap: break-word; }
  .hero-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    padding-inline: 14px;
  }
  .hero-qualifiers { display: grid; gap: 8px; }
  .cred-grid,
  .service-grid,
  .process-grid,
  .benefit-grid,
  .form-grid { grid-template-columns: 1fr; }
  .cred-item {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .section-title { font-size: 25px; }
  .service-card { min-height: auto; }
  .service-card p { min-height: 0; }
  .delivery-card { padding: 22px 18px; align-items: flex-start; }
  .delivery-card img { width: 52px; height: 52px; }
  .cta-grid h2 { font-size: 27px; }
  .btn { width: 100%; padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
