/* Forge Technical Solutions — style.css */

:root {
  /* Colour: mill scale, ground steel, heat colours, temper blue */
  --c-scale: #262a2d;
  --c-scale-2: #33383b;
  --c-steel: #e3e5e3;
  --c-steel-2: #d3d7d6;
  --c-paper: #f1f2f0;
  --c-ink: #22272a;
  --c-ink-soft: #545b5f;
  --c-on-dark: #e9eae7;
  --c-on-dark-soft: #a9aeae;
  --c-temper-blue: #2d5a86;
  --c-temper-blue-light: #8fb4d9;
  --c-heat-dull: #6b1d14;
  --c-heat-cherry: #b1271d;
  --c-heat-orange: #e2641c;
  --c-heat-yellow: #f3b53d;
  --c-heat-white: #fff2cc;
  --c-error: #a3231a;

  /* Type */
  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2.25rem;
  --fs-hero: clamp(3rem, 13vw, 7.5rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6rem;
  --gutter: 1.125rem;
  --max: 72rem;

  /* Shape */
  --r-sm: 2px;
  --r-md: 4px;
  --border: 1px solid var(--c-steel-2);
  --shadow-press: 0 2px 0 rgba(20, 22, 24, 0.35);
  --shadow-panel: 0 18px 40px -24px rgba(20, 22, 24, 0.45);

  --header-h: 4rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--c-temper-blue); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--c-temper-blue); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -3rem; z-index: 100;
  padding: var(--s-2) var(--s-4); background: var(--c-heat-white); color: var(--c-ink);
  border-radius: var(--r-md);
}
.skip-link:focus { top: var(--s-2); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: var(--s-3) var(--s-5);
  font-weight: 600; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease);
}
.button:active { transform: translateY(1px); }
.button--hot { background: var(--c-heat-orange); color: #1d1410; box-shadow: var(--shadow-press); }
.button--hot:hover { background: var(--c-heat-yellow); text-decoration: none; }
.button--ghost { color: var(--c-on-dark); border-color: var(--c-on-dark-soft); }
.button--ghost:hover { border-color: var(--c-on-dark); text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-scale); color: var(--c-on-dark);
  border-bottom: 1px solid var(--c-scale-2);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: var(--s-4);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-on-dark); text-decoration: none; min-width: 0; }
.brand__mark { width: 1.75rem; height: 1.75rem; flex: none; fill: var(--c-heat-orange); }
.brand__name {
  font-family: var(--f-display); font-weight: 800; font-size: 1.1875rem;
  letter-spacing: 0.01em; line-height: 1.1;
}

.nav-toggle {
  position: relative; width: 2.75rem; height: 2.75rem; flex: none;
  background: none; border: 1px solid var(--c-scale-2); border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute; left: 50%; width: 1.25rem; height: 2px; margin-left: -0.625rem;
  background: var(--c-on-dark); transition: transform 0.2s var(--ease), opacity 0.2s;
}
.nav-toggle__bar { top: 50%; margin-top: -1px; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-scale); border-bottom: 1px solid var(--c-scale-2);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav__list { padding: var(--s-2) var(--gutter) var(--s-5); }
.site-nav__list a {
  display: block; padding: var(--s-3) 0; color: var(--c-on-dark);
  text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--c-scale-2);
}
.site-nav__list a:hover { color: var(--c-heat-yellow); }
.site-nav__list .site-nav__cta { color: var(--c-heat-orange); }

/* Hero */
.hero {
  background: var(--c-scale); color: var(--c-on-dark);
  padding-top: var(--s-8);
}
.hero__inner { padding-bottom: var(--s-7); }
.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: var(--fs-hero); line-height: 0.92; letter-spacing: -0.005em;
  max-width: 11ch;
  background: linear-gradient(180deg, var(--c-on-dark) 55%, var(--c-heat-yellow) 78%, var(--c-heat-orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  margin-top: var(--s-5); max-width: 38rem;
  font-size: var(--fs-md); color: var(--c-on-dark-soft); line-height: 1.55;
}
.hero__actions { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-6); }

/* Heat scale — the signature element */
.heat { padding-bottom: var(--s-7); border-top: 1px solid var(--c-scale-2); padding-top: var(--s-6); }
.heat__title { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-lg); letter-spacing: 0.01em; }
.heat__hint { margin-top: var(--s-1); color: var(--c-on-dark-soft); max-width: 36rem; }

.heat__scale {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  margin-top: var(--s-5);
}
.heat__band {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  min-height: 7.5rem; padding: var(--s-3) var(--s-2);
  border: 0; border-radius: 0; cursor: pointer; text-align: left;
  transform-origin: bottom;
  transition: min-height 0.25s var(--ease), filter 0.2s;
}
.heat__band:hover { filter: brightness(1.08); }
.heat__band[aria-pressed="true"] { min-height: 9.5rem; }
.heat__band[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--c-scale);
}
.heat__band:focus-visible { outline-color: var(--c-heat-white); outline-offset: -4px; }
.heat__band--dull   { background: var(--c-heat-dull); color: #f3d9cf; }
.heat__band--cherry { background: var(--c-heat-cherry); color: #fde6dd; }
.heat__band--orange { background: var(--c-heat-orange); color: #24130b; }
.heat__band--yellow { background: var(--c-heat-yellow); color: #2a1d08; }
.heat__band--white  { background: var(--c-heat-white); color: #3a2c10; }
.heat__name { font-weight: 600; font-size: 0.8125rem; line-height: 1.15; }
.heat__temp { font-size: 0.75rem; opacity: 0.85; font-variant-numeric: tabular-nums; }

.heat__readout {
  margin-top: var(--s-5); min-height: 3.2em; max-width: 40rem;
  font-size: var(--fs-md); line-height: 1.5; color: var(--c-on-dark);
}
.heat__note { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--c-on-dark-soft); }

/* Heat-up on first load */
.js .heat__band { animation: heat-rise 0.7s var(--ease) both; }
.js .heat__band--cherry { animation-delay: 0.08s; }
.js .heat__band--orange { animation-delay: 0.16s; }
.js .heat__band--yellow { animation-delay: 0.24s; }
.js .heat__band--white  { animation-delay: 0.32s; }
@keyframes heat-rise {
  from { transform: scaleY(0.15); filter: brightness(0.35); }
  to   { transform: scaleY(1); filter: brightness(1); }
}

/* Sections */
.section-title {
  font-family: var(--f-display); font-weight: 800;
  font-size: var(--fs-xl); line-height: 1; letter-spacing: 0;
  max-width: 18ch;
}

.disciplines { padding-block: var(--s-8); background: var(--c-paper); }
.disciplines__grid { display: grid; gap: var(--s-6); margin-top: var(--s-6); }
.discipline { max-width: 36rem; padding-top: var(--s-4); border-top: 3px solid var(--c-heat-cherry); }
.discipline--art { border-top-color: var(--c-temper-blue); }
.discipline__title { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-lg); line-height: 1.15; }
.discipline p { margin-top: var(--s-3); color: var(--c-ink-soft); }

.work { padding-block: var(--s-8); background: var(--c-steel); }
.work__inner { display: grid; gap: var(--s-6); }
.work__intro p { margin-top: var(--s-4); max-width: 30rem; color: var(--c-ink-soft); }
.work__list { display: grid; border-top: var(--border); }
.work__item { padding-block: var(--s-4); border-bottom: var(--border); }
.work__item h3 { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; }
.work__item p { margin-top: var(--s-1); color: var(--c-ink-soft); max-width: 34rem; }

.process { padding-block: var(--s-8); background: var(--c-paper); }
.process__steps { counter-reset: step; display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.process__step { counter-increment: step; position: relative; padding-left: 3.25rem; max-width: 34rem; }
.process__step::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.2rem;
  font-family: var(--f-display); font-weight: 800; font-size: 2.25rem; line-height: 1;
  color: var(--c-heat-orange);
}
.process__step h3 { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; }
.process__step p { margin-top: var(--s-1); color: var(--c-ink-soft); }

/* Contact */
.contact { padding-block: var(--s-8); background: var(--c-steel); }
.contact__inner { display: grid; gap: var(--s-6); }
.contact__intro p { margin-top: var(--s-4); max-width: 30rem; color: var(--c-ink-soft); }
.form {
  display: grid; gap: var(--s-4);
  padding: var(--s-5) var(--s-4);
  background: var(--c-paper); border: var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-panel);
}
.form__field { display: grid; gap: var(--s-1); }
.form label { font-weight: 600; font-size: var(--fs-sm); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 2.875rem; padding: var(--s-2) var(--s-3);
  background: #fff; border: 1px solid #aeb4b4; border-radius: var(--r-sm);
}
.form textarea { resize: vertical; min-height: 8rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-offset: 1px; border-color: var(--c-temper-blue); }
.form [aria-invalid="true"] { border-color: var(--c-error); border-width: 2px; }
.form__error { color: var(--c-error); font-size: var(--fs-sm); }
.form .button { justify-self: start; width: 100%; }
.form__status { font-size: var(--fs-sm); color: var(--c-ink-soft); min-height: 1.4em; }

/* Footer */
.site-footer { background: var(--c-scale); color: var(--c-on-dark-soft); padding-block: var(--s-7) var(--s-5); font-size: var(--fs-sm); }
.site-footer a { color: var(--c-temper-blue-light); }
.site-footer__inner { display: grid; gap: var(--s-6); }
.site-footer__name { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-lg); color: var(--c-on-dark); line-height: 1.1; margin-bottom: var(--s-2); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-4); }
.legal { display: grid; gap: var(--s-3); }
.legal__row { display: grid; gap: 2px; }
.legal dt { color: var(--c-on-dark-soft); font-size: 0.8125rem; }
.legal dd { color: var(--c-on-dark); }
.site-footer__copy { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--c-scale-2); }

/* Secondary pages (privacy, terms, 404) */
.page { padding-block: var(--s-8); }
.page__body { max-width: 42rem; }
.page__body h1 { font-family: var(--f-display); font-weight: 800; font-size: var(--fs-xl); line-height: 1; }
.page__body h2 { margin-top: var(--s-6); font-size: var(--fs-md); font-weight: 600; }
.page__body p, .page__body ul { margin-top: var(--s-3); color: var(--c-ink-soft); }
.page__body ul { list-style: disc; padding-left: 1.25rem; }
.page__meta { font-size: var(--fs-sm); }
.page__back { margin-top: var(--s-6); }
.not-found { min-height: 60vh; display: flex; align-items: center; }

/* ≥480 */
@media (min-width: 480px) {
  :root { --gutter: 1.5rem; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .heat__band { padding: var(--s-4) var(--s-3); }
  .heat__name { font-size: 0.9375rem; }
  .heat__temp { font-size: 0.8125rem; }
  .form { padding: var(--s-6) var(--s-5); }
  .form .button { width: auto; }
}

/* ≥768 */
@media (min-width: 768px) {
  :root { --gutter: 2rem; --fs-xl: 3rem; }
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; }
  .site-nav__list { display: flex; align-items: center; gap: var(--s-5); padding: 0; }
  .site-nav__list a { padding: var(--s-2) 0; border: 0; }
  .site-nav__list .site-nav__cta {
    padding: var(--s-2) var(--s-4);
    border: 1px solid var(--c-heat-orange); border-radius: var(--r-sm);
  }
  .hero { padding-top: var(--s-9); }
  .heat__band { min-height: 9rem; }
  .heat__band[aria-pressed="true"] { min-height: 11.5rem; }
  .disciplines__grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .work__list { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); border-top: 0; }
  .work__item { border-top: var(--border); border-bottom: 0; }
  .process__steps { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); row-gap: var(--s-6); }
  .legal__row { grid-template-columns: 10rem 1fr; gap: var(--s-4); }
}

/* ≥1024 */
@media (min-width: 1024px) {
  .work__inner, .contact__inner { grid-template-columns: 1fr 1.6fr; gap: var(--s-8); align-items: start; }
  .work__intro, .contact__intro { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .process__steps { grid-template-columns: repeat(4, 1fr); column-gap: var(--s-6); }
  .process__step { padding-left: 0; padding-top: 3rem; }
  .process__step::before { top: 0; }
  .site-footer__inner { grid-template-columns: 1fr 1.6fr; gap: var(--s-8); }
  .heat__band { min-height: 10rem; }
  .heat__band[aria-pressed="true"] { min-height: 13rem; }
}

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