/* Firebrand's page is deliberately dependency-free: fast, durable, and easy to own. */
:root {
  --ink: #11100f;
  --ink-soft: #1a1816;
  --steel: #b7b0a6;
  --paper: #eee9df;
  --paper-dim: #c9c1b5;
  --red: #a72d1f;
  --red-bright: #c23b29;
  --line: rgba(238, 233, 223, 0.16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 75% 8%, rgba(167,45,31,.15), transparent 32%);
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 5px; }

.site-header,
.hero,
.capabilities,
.contact,
footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .035em;
}

.brand { text-decoration: none; }
.brand img, .footer-brand img { object-fit: contain; }

.header-contact,
.text-link {
  color: var(--paper-dim);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding-block: 80px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--steel);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow span { color: var(--red-bright); padding-inline: .45rem; }

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}

h1 { margin-bottom: 32px; font-size: clamp(3.4rem, 8vw, 7.7rem); }
h1 strong { color: var(--red-bright); font-weight: 400; }

.intro {
  max-width: 700px;
  color: var(--paper-dim);
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
}

.button-primary { background: var(--red); }
.button-primary:hover { background: var(--red-bright); }

.hero-mark { text-align: center; }
.mark-frame {
  position: relative;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.005));
  box-shadow: 18px 18px 0 rgba(0,0,0,.18);
}

.mark-frame::before,
.mark-frame::after {
  position: absolute;
  width: 34px;
  height: 34px;
  content: "";
}
.mark-frame::before { top: -1px; left: -1px; border-top: 3px solid var(--red); border-left: 3px solid var(--red); }
.mark-frame::after { right: -1px; bottom: -1px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); }
.mark-frame img { display: block; width: 100%; height: auto; }
.hero-mark > p { margin: 24px 0 0; color: var(--steel); font-family: Georgia, serif; font-style: italic; letter-spacing: .07em; }

.capabilities { padding-block: clamp(90px, 12vw, 150px); border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1.5fr; column-gap: 8vw; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 4.7rem); }
.section-heading > p:last-child { margin-bottom: 4px; color: var(--paper-dim); max-width: 520px; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-grid article { min-height: 330px; padding: 32px; border-right: 1px solid var(--line); }
.capability-grid article:first-child { padding-left: 0; }
.capability-grid article:last-child { padding-right: 0; border-right: 0; }
.number { color: #df6a59; font-family: Georgia, serif; font-size: .85rem; }
.capability-grid h3 { margin: 74px 0 18px; font-family: Georgia, serif; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.15; }
.capability-grid p { color: var(--paper-dim); font-size: .96rem; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  padding: clamp(60px, 8vw, 100px);
  width: min(calc(100% - 48px), var(--max));
  background: var(--red);
}

.contact .eyebrow { color: rgba(255,255,255,.72); }
.contact h2 { margin-bottom: 0; font-size: clamp(3rem, 6vw, 5.7rem); }
.contact-action { align-self: end; }
.contact-action p { max-width: 520px; color: rgba(255,255,255,.82); }
.button-light { margin-top: 15px; border-color: rgba(255,255,255,.48); background: var(--paper); color: var(--ink); }
.button-light:hover { background: white; }

footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 36px;
  color: var(--steel);
  font-size: .78rem;
}
footer p { margin: 0; }

@media (max-width: 820px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 70px 90px; }
  .hero-mark { width: min(80%, 430px); margin-inline: auto; }
  .section-heading, .contact { grid-template-columns: 1fr; }
  .section-heading > p:last-child, .contact-action { margin-top: 28px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article, .capability-grid article:first-child, .capability-grid article:last-child { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-grid article:last-child { border-bottom: 0; }
  .capability-grid h3 { margin-top: 32px; }
  footer { grid-template-columns: 1fr; gap: 8px; padding-block: 38px; }
}

@media (max-width: 560px) {
  .site-header, .hero, .capabilities, footer { width: min(calc(100% - 32px), var(--max)); }
  .site-header { min-height: 76px; }
  .brand span { font-size: .9rem; }
  .brand img { width: 44px; height: 44px; }
  .header-contact { font-size: 0; }
  .header-contact::after { content: "Contact"; font-size: .72rem; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .contact { width: calc(100% - 32px); padding: 42px 26px; }
  .button-light { width: 100%; padding-inline: 12px; font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
