@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --slab: #f2f3f1;
  --slab-deep: #e4e7e5;
  --graphite: #23282c;
  --graphite-soft: #4a5257;
  --vein: #8f989d;
  --blue: #367da2;
  --blue-deep: #1f5573;
  --rule: #cdd3d2;
  --white: #ffffff;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--slab);
  color: var(--graphite);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
}
a { color: var(--blue-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
img, svg { max-width: 100%; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--slab); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.wordmark {
  font-weight: 800; font-stretch: 125%; font-size: 1.15rem; letter-spacing: 0.02em;
  color: var(--graphite); text-decoration: none; margin-right: auto;
}
.wordmark span { color: var(--blue); }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--graphite-soft); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.25rem; border-radius: 3px; font: inherit; font-weight: 650;
  text-decoration: none; cursor: pointer; border: 2px solid var(--blue-deep);
}
.btn-solid { background: var(--blue-deep); color: var(--white); }
.btn-solid:hover { background: var(--graphite); border-color: var(--graphite); }
.btn-line { background: transparent; color: var(--blue-deep); }
.btn-line:hover { background: var(--white); }
.header-call { padding: 0.55rem 1rem; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 {
  font-stretch: 125%; font-weight: 750; line-height: 1.02; letter-spacing: -0.01em;
  font-size: clamp(2.3rem, 4.4vw, 3.7rem); margin: 0 0 1.25rem; max-width: 17ch;
}
.hero p { font-size: 1.2rem; color: var(--graphite-soft); max-width: 40ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.drawing { width: 100%; height: auto; display: block; }
.drawing .slab { fill: var(--white); stroke: var(--graphite); stroke-width: 1.6; }
.drawing .vein { fill: none; stroke: var(--vein); stroke-width: 0.8; opacity: 0.55; }
.drawing .floor { stroke: var(--graphite); stroke-width: 1.2; }
.drawing .hatch { stroke: var(--vein); stroke-width: 0.8; }
.drawing .dim { fill: none; stroke: var(--blue); stroke-width: 1.2; }
.drawing .dim-text { fill: var(--blue-deep); font-family: "Archivo", sans-serif; font-size: 15px; font-weight: 600; font-stretch: 110%; }
.drawing .note { fill: var(--graphite-soft); font-family: "Archivo", sans-serif; font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .drawing .dim { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s cubic-bezier(.5,0,.2,1) forwards; }
  .drawing .dim:nth-of-type(2) { animation-delay: .25s; }
  .drawing .dim:nth-of-type(3) { animation-delay: .5s; }
  .drawing .dim:nth-of-type(4) { animation-delay: .75s; }
  .drawing .dim:nth-of-type(5) { animation-delay: 1s; }
  .drawing .dim-text { opacity: 0; animation: appear .5s ease-out 1.2s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Sections */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--rule); }
h2 {
  font-stretch: 118%; font-weight: 720; font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.005em;
}
.lede { color: var(--graphite-soft); max-width: var(--measure); margin: 0 0 2.25rem; font-size: 1.1rem; }

/* Spec table: what we make */
.spec { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.spec th { text-align: left; font-weight: 600; color: var(--graphite-soft); font-size: 0.95rem; padding: 0 1rem 0.75rem 0; border-bottom: 2px solid var(--graphite); }
.spec td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec td:first-child { font-weight: 650; width: 32%; }
.spec td:last-child { color: var(--blue-deep); font-weight: 600; font-stretch: 112%; white-space: nowrap; width: 18%; text-align: right; padding-right: 0; }
.spec th:last-child { text-align: right; padding-right: 0; }
.spec .detail { color: var(--graphite-soft); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--graphite); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-stretch: 125%; font-weight: 750; font-size: 2rem; color: var(--blue); line-height: 1; margin-bottom: 0.75rem; }
.steps h3 { margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 680; }
.steps p { margin: 0; color: var(--graphite-soft); }

/* Quote */
.quote .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.contact-list strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--graphite-soft); }
.contact-list a { font-size: 1.2rem; font-weight: 650; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
form.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
form.enquiry .full { grid-column: 1 / -1; }
form.enquiry label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
form.enquiry .hint { font-weight: 400; color: var(--graphite-soft); }
form.enquiry input, form.enquiry textarea {
  width: 100%; font: inherit; padding: 0.75rem 0.85rem; border: 1.5px solid var(--vein);
  border-radius: 3px; background: var(--white); color: var(--graphite);
}
form.enquiry textarea { min-height: 150px; resize: vertical; }
form.enquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #1e6b45; }
.form-status.err { color: #a12a1f; }

/* Footer */
.site-footer { background: var(--graphite); color: #c9cfd1; padding: 2.5rem 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: baseline; }
.site-footer a { color: #e7ecee; }
.site-footer .staff-link { margin-left: auto; color: #9aa4a8; }

@media (max-width: 860px) {
  .hero .wrap, .quote .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  form.enquiry { grid-template-columns: 1fr; }
  .spec thead { display: none; }
  .spec tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
  .spec td, .spec td:first-child, .spec td:last-child { border: 0; padding: 0; width: auto; }
  .spec td.detail { grid-column: 1 / -1; order: 3; margin-top: 0.2rem; }
  .drawing .dim-text { font-size: 21px; }
  .drawing .note { font-size: 18px; }
  .site-footer .staff-link { margin-left: 0; }
}
