:root {
  --blue: #10365c;
  --blue-dark: #092846;
  --blue-light: #174b7d;
  --orange: #ff7a1a;
  --white: #ffffff;
  --paper: #f4f6f7;
  --ink: #10283e;
  --line: rgb(255 255 255 / 28%);
  --heading: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Saira", Arial, sans-serif;
  --shell: 1200px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --space: clamp(4rem, 8vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden;
  overflow-x: clip; /* avoid body becoming a scroll container (Safari scroll clamp) */ background: var(--blue); color: var(--white); font-family: var(--body); line-height: 1.6; }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px), linear-gradient(rgb(255 255 255 / 8%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 8%) 1px, transparent 1px); background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px; opacity: .32; pointer-events: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
::selection { background: var(--orange); color: var(--blue-dark); }
.shell { width: min(100%, var(--shell)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-160%); padding: .65rem 1rem; background: var(--orange); color: var(--blue-dark); font-weight: 600; }
.skip-link:focus { transform: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--heading); line-height: .94; letter-spacing: .01em; text-transform: uppercase; }
h1 { max-width: 850px; margin-bottom: 1.5rem; font-size: clamp(4.2rem, 11vw, 9rem); }
h2 { margin-bottom: 1rem; font-size: clamp(3rem, 7vw, 6.25rem); }
.site-header { padding-top: 1rem; background: var(--blue-dark); }
.title-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: var(--gutter); border: 1px solid var(--white); }
.title-block > * { min-width: 0; padding: .65rem; border-right: 1px solid var(--white); border-bottom: 1px solid var(--white); }
.title-block > :nth-child(even) { border-right: 0; }
.title-company { display: flex; grid-column: 1 / -1; align-items: center; gap: .65rem; text-decoration: none; text-transform: uppercase; }
.title-company span:last-child { font-family: var(--heading); font-size: clamp(1.45rem, 6vw, 2.25rem); line-height: 1; }
.title-company strong { color: var(--orange); }
.logo-line { width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid var(--white); background: linear-gradient(135deg, transparent 46%, var(--orange) 47%, var(--orange) 53%, transparent 54%); }
.title-cell, .title-phone { display: grid; align-content: center; line-height: 1.15; text-decoration: none; }
.title-cell small, .title-phone small { opacity: .7; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.title-cell strong, .title-phone strong { overflow-wrap: anywhere; font-family: var(--heading); font-size: .95rem; text-transform: uppercase; }
.title-phone { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 0 !important; background: var(--orange); color: var(--blue-dark); text-align: center; }
.title-phone strong { font-size: 1.25rem; white-space: nowrap; }
nav { display: flex; justify-content: center; gap: .65rem 1.25rem; flex-wrap: wrap; padding-block: .85rem; border-left: 1px solid var(--white); border-right: 1px solid var(--white); }
nav a { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.hero { position: relative; display: grid; min-height: 760px; align-content: center; gap: 2.5rem; overflow: hidden; padding-block: clamp(5rem, 12vw, 10rem); }
.schematic { position: absolute; z-index: -1; right: -11rem; bottom: 0; width: min(95%, 900px); color: rgb(255 255 255 / 35%); }
.hero-copy { max-width: 900px; text-align: center; }
.drawing-label { margin-bottom: .8rem; color: var(--orange); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-copy > p:not(.drawing-label) { max-width: 700px; margin-inline: auto; font-size: clamp(1rem, 2.2vw, 1.25rem); }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; border: 0; padding: .85rem 1.3rem; background: var(--orange); color: var(--blue-dark); font-weight: 600; letter-spacing: .06em; text-align: center; text-decoration: none; text-transform: uppercase; }
.hero-phone { font-weight: 600; text-underline-offset: .3em; }
.hero-notes { display: grid; gap: 1px; margin: 0; background: var(--white); border: 1px solid var(--white); }
.hero-notes div { display: grid; grid-template-columns: 52px 1fr; align-items: center; background: var(--blue); }
.hero-notes dt { padding: .7rem; border-right: 1px solid var(--white); color: var(--orange); font-family: var(--heading); font-size: 1.2rem; font-weight: 700; }
.hero-notes dd { margin: 0; padding: .7rem; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.section { width: min(100%, var(--shell)); margin-inline: auto; padding: var(--space) var(--gutter); }
.section-title { max-width: 860px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); text-align: center; }
.section-title > p:last-child { max-width: 650px; margin-inline: auto; }
.process-section { border-top: 1px solid var(--white); }
.process-list { display: grid; gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.process-list li { position: relative; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.process-list li:not(:last-child)::after { content: ""; position: absolute; top: 72px; bottom: -2.5rem; left: 50%; border-left: 1px dashed var(--white); }
.process-list li > span { position: relative; z-index: 1; display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid var(--white); border-radius: 50%; background: var(--blue); color: var(--orange); font-family: var(--heading); font-size: 1.7rem; font-weight: 700; }
.process-list h3 { margin-bottom: .35rem; font-family: var(--heading); font-size: 1.7rem; text-transform: uppercase; }
.process-list p { max-width: 280px; margin: 0; opacity: .8; font-size: .9rem; }
.portfolio-section { max-width: none; background: var(--paper); color: var(--ink); }
.portfolio-section .section-title .drawing-label { color: #c24d00; }
.drafting-grid { display: grid; width: min(100%, var(--shell)); gap: 1rem; margin-inline: auto; }
.drafting-mat { display: flex; min-width: 0; flex-direction: column; margin: 0; padding: .65rem; background: var(--white); box-shadow: 0 8px 24px rgb(4 27 48 / 12%); color: var(--ink); }
.photo-frame { border: 1px solid #3f5c75; padding: .35rem; background-image: linear-gradient(#d9e1e8 1px, transparent 1px), linear-gradient(90deg, #d9e1e8 1px, transparent 1px); background-size: 12px 12px; }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.drafting-mat:nth-child(1) img { object-position: 45% 54%; }
.drafting-mat:nth-child(2) img { object-position: 60% 42%; }
.drafting-mat:nth-child(3) img { object-position: 36% 50%; }
.drafting-mat figcaption { display: grid; flex: 1; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-content: start; padding: .8rem .25rem .15rem; border-top: 3px double var(--ink); margin-top: .55rem; }
.drafting-mat figcaption span, .drafting-mat figcaption small { font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.drafting-mat figcaption strong { grid-column: 1 / -1; font-family: var(--heading); font-size: 1.35rem; text-transform: uppercase; }
.pricing-section table { width: 100%; border-collapse: collapse; border: 1px solid var(--white); }
caption { padding: .75rem; color: var(--white); font-size: .75rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
th, td { padding: .9rem; border: 1px solid rgb(255 255 255 / 55%); }
thead th { color: var(--orange); font-size: .68rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
tbody th { font-family: var(--heading); font-size: 1.15rem; font-weight: 500; text-align: left; text-transform: uppercase; }
td { text-align: right; }
.schedule-note { margin: .75rem 0 0; font-size: .7rem; opacity: .75; }
.stats-section { padding-block: 3rem; background: var(--orange); color: var(--blue-dark); }
.stats-grid { display: grid; gap: 2rem; text-align: center; }
.stat-number { display: block; font-family: var(--heading); font-size: clamp(3.5rem, 9vw, 6.5rem); font-weight: 700; line-height: 1; }
.stats-grid p { margin: .35rem 0 0; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.accordion { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--white); }
.accordion article { border-bottom: 1px solid var(--white); }
.accordion h3 { margin: 0; }
.accordion button { display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; border: 0; padding: 1.1rem .2rem; background: transparent; color: var(--white); text-align: left; }
.accordion button > span { color: var(--orange); font-family: var(--heading); }
.accordion button > b { font-size: 1.5rem; transition: transform .2s ease; }
.accordion button[aria-expanded="true"] > b { transform: rotate(45deg); }
.accordion article > div p { margin: 0; padding: 0 2rem 1.25rem 3rem; opacity: .8; }
.rfi-section { padding-block: var(--space); background: var(--paper); color: var(--ink); }
.rfi-wrap { display: grid; gap: 2.5rem; align-items: start; }
.rfi-heading .drawing-label { color: #c24d00; }
.rfi-heading a { color: #b64200; font-weight: 600; }
form { border: 2px solid var(--ink); background: var(--white); }
.rfi-meta { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem .8rem; border-bottom: 1px solid var(--ink); background: #e8edf1; font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; }
.form-grid { display: grid; gap: 1px; background: #8092a1; }
.form-grid > div { padding: .75rem; background: var(--white); }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; margin-bottom: .25rem; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
input, textarea { width: 100%; border: 0; border-bottom: 1px solid #5b7184; border-radius: 0; padding: .65rem .2rem; background: transparent; color: var(--ink); }
textarea { border: 1px solid #5b7184; resize: vertical; }
form .button { width: calc(100% - 1.5rem); margin: .75rem; }
.form-status { margin: 0 .75rem .75rem; padding: .75rem; border-left: 4px solid var(--orange); background: #eef1f3; }
footer { border-top: 1px solid var(--white); }
footer .shell { display: flex; justify-content: center; gap: .75rem 2rem; flex-wrap: wrap; padding-block: 1.25rem; text-align: center; }
footer p { margin: 0; }

@media (max-width: 520px) {
  table, tbody, tr, th, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tbody tr { border-top: 1px solid var(--white); }
  tbody th { border: 0; padding: .85rem .7rem .25rem; }
  tbody td { display: grid; grid-template-columns: 1fr auto; gap: .5rem; border: 0; padding: .25rem .7rem; font-size: .84rem; }
  tbody td:last-child { padding-bottom: .85rem; }
  tbody td::before { content: attr(data-label); opacity: .65; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
}

@media (min-width: 700px) {
  .title-block { grid-template-columns: 2fr 1fr 1fr 1.35fr; }
  .title-block > * { border-bottom: 0; border-right: 1px solid var(--white) !important; }
  .title-block > :last-child { border-right: 0 !important; }
  .title-company { grid-column: auto; }
  .title-phone { grid-column: auto; text-align: left; }
  .hero-copy { text-align: left; }
  .hero-copy > p:not(.drawing-label) { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-notes div { grid-template-columns: 52px 1fr; }
  .process-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
  .process-list li:not(:last-child)::after { top: 36px; right: -1rem; bottom: auto; left: calc(50% + 36px); width: calc(100% - 56px); border-top: 1px dashed var(--white); border-left: 0; }
  .drafting-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 940px) {
  .rfi-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .schematic { animation: draft-in 1.4s ease-out both; }
  @keyframes draft-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Standard: back-to-top button with scroll-progress ring */
.btt-button {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(17, 17, 17, 0.85); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btt-button.btt-visible { opacity: 1; visibility: visible; transform: none; }
.btt-button:focus-visible { outline: 3px solid #ff7a1a; outline-offset: 3px; }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.btt-ring circle { fill: none; stroke-width: 3; }
.btt-ring-track { stroke: rgba(255, 255, 255, 0.22); }
.btt-ring-fill { stroke: #ff7a1a; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; stroke-linecap: round; }
.btt-arrow { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .btt-button { transition: none; } }
