/* ===========================================================
   Cinder Digital Solutions — landing page
   Tokens and layout per design_handoff_cinder_landing/README.md
   =========================================================== */

:root {
  /* Colour */
  --ink:            #17161a;
  --hero-black:     #0b0b0d;
  --input-black:    #0f0e11;
  --paper:          #f7f4f1;
  --white:          #ffffff;
  --red:            #E0231C;
  --red-text:       #C7231C;
  --orange:         #FF7A2F;
  --body-grey:      #4a464f;
  --muted-grey:     #5c575f;
  --deep-grey:      #3a363f;
  --attr-grey:      #8b857f;
  --label-grey:     #a8a29c;
  --placeholder:    #9a948e;
  --on-dark:        #f5f2ef;
  --dim-on-dark:    #d5cfc9;
  --dim-on-dark-2:  #c9c3bd;
  --success:        #7ed492;
  --hairline:       rgba(23, 22, 26, 0.1);
  --hairline-grid:  rgba(23, 22, 26, 0.14);
  --border-dark:    rgba(245, 242, 239, 0.16);
  --border-dark-lo: rgba(245, 242, 239, 0.2);
  --border-dark-hi: rgba(245, 242, 239, 0.35);

  /* Type */
  --font-ui:   Archivo, Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --container:  1180px;
  --reading:    840px;
  --pad-x:      40px;
  --radius-btn: 3px;
  --radius-in:  2px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

a { color: var(--red-text); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, p, ul, blockquote, figure { margin: 0; }

section { scroll-margin-top: 100px; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.container { max-width: var(--container); margin: 0 auto; }
.reading-col { max-width: var(--reading); margin: 0 auto; }

/* ---------- Shared type ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-text);
}
.eyebrow-orange {
  color: var(--orange);
  letter-spacing: 0.24em;
}

.h2 {
  margin-top: 18px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 820px;
  text-wrap: balance;
}
.h2-outwest { font-size: 38px; line-height: 1.12; margin-top: 0; }
.h2-about   { font-size: 36px; line-height: 1.14; }

.prose {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--body-grey);
  text-wrap: pretty;
}
.prose-first { margin-top: 22px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: var(--radius-btn);
  font-weight: 600;
  white-space: nowrap;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.btn-red {
  padding: 11px 22px;
  background: var(--red);
  color: #fff;
}
.btn-red:hover { filter: brightness(1.08); color: #fff; }

.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-ghost {
  border: 1px solid var(--border-dark-hi);
  color: var(--on-dark);
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(245, 242, 239, 0.6); color: var(--on-dark); }

/* ---------- 1. Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 44px;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 500;
}

.lockup { display: flex; align-items: center; gap: 6px; }
.lockup-mark { height: 58px; width: auto; }
.lockup-word { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--body-grey); }
.site-nav a:hover { color: var(--ink); }
.site-nav a.btn-red { color: #fff; }

/* ---------- 2. Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 126px var(--pad-x) 114px;
  background: var(--hero-black);
  color: var(--on-dark);
  text-align: center;
}

.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 150%;
  width: auto;
  max-width: none;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 48%,
    rgba(11, 11, 13, 0.86) 22%,
    rgba(11, 11, 13, 0.55) 52%,
    rgba(11, 11, 13, 0.20) 78%);
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  animation: cinderRise 0.6s ease both;
}

.hero .eyebrow { margin-bottom: 28px; }

.hero h1 {
  font-size: 64px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.hero-sub {
  margin: 30px auto 0;
  max-width: 750px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--dim-on-dark);
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

@keyframes cinderRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 3. Situation ---------- */

.situation {
  padding: 88px var(--pad-x);
  background: var(--paper);
}
.situation-lead {
  font-size: 21px;
  line-height: 1.6;
  color: var(--deep-grey);
  text-wrap: pretty;
}
.situation-body {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted-grey);
  text-wrap: pretty;
}

/* ---------- 4. What we do ---------- */

.work {
  padding: 100px var(--pad-x);
  background: var(--white);
  border-top: 1px solid var(--hairline);
}

.work-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 50px;
}

.card {
  background: var(--paper);
  padding: 38px 34px 40px;
  border-top: 3px solid var(--ink);
}
.card-red  { border-top-color: var(--red); --accent: var(--red); }
.card-ink  { border-top-color: var(--ink); --accent: var(--attr-grey); }

.card-title {
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-body {
  margin: 16px 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-grey);
}
.card-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 13px;
  font-size: 15.5px;
  line-height: 1.55;
}
.card-list li { display: flex; gap: 12px; }
.card-list .dash { color: var(--accent); flex: none; }

/* ---------- 5. How we work ---------- */

.process {
  padding: 100px var(--pad-x);
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 1px;
  background: var(--hairline-grid);
  border-top: 1px solid var(--hairline-grid);
  border-bottom: 1px solid var(--hairline-grid);
}
.step { background: var(--paper); padding: 26px 0; }
.step-title { font-size: 19px; font-weight: 600; }
.step-body {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted-grey);
}

/* ---------- 6. Outwest ---------- */

.outwest {
  padding: 100px var(--pad-x);
  background: var(--white);
  border-top: 1px solid var(--hairline);
}

.outwest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  margin-top: 22px;
  align-items: start;
}

.quotes { display: grid; gap: 20px; }

.quote {
  margin: 0;
  background: var(--paper);
}
.quote-red {
  border-left: 3px solid var(--red);
  padding: 32px 34px;
}
.quote-red p { font-size: 20px; line-height: 1.55; font-weight: 500; }
.quote-ink {
  border-left: 3px solid var(--ink);
  padding: 30px 32px;
}
.quote-ink p { font-size: 17px; line-height: 1.65; color: var(--deep-grey); }

.attribution {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--attr-grey);
}

/* ---------- 7. Who we work with ---------- */

.fit {
  padding: 92px var(--pad-x);
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: var(--hairline-grid);
  border: 1px solid var(--hairline-grid);
}
.fit-cell { background: var(--paper); padding: 34px 30px; }
.fit-title { font-size: 19px; line-height: 1.3; font-weight: 600; }
.fit-body {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted-grey);
}
.fit-closing {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted-grey);
  max-width: 760px;
}

/* ---------- 8. About ---------- */

.about {
  padding: 96px var(--pad-x);
  background: var(--white);
  border-top: 1px solid var(--hairline);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.about-body {
  font-size: 19px;
  line-height: 1.7;
  color: var(--deep-grey);
  text-wrap: pretty;
}
.about-body-second { margin-top: 22px; }

/* ---------- 9. Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  padding: 100px var(--pad-x) 92px;
  background: var(--ink);
  color: var(--on-dark);
}

.contact-glow {
  position: absolute;
  bottom: -340px;
  left: -200px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
    rgba(224, 35, 28, 0.28),
    rgba(255, 122, 47, 0.08) 48%,
    rgba(23, 22, 26, 0) 72%);
}

.contact-flame {
  position: absolute;
  bottom: -140px;
  left: -90px;
  height: 520px;
  width: auto;
  max-width: none;
  opacity: 0.16;
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.contact-pitch {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--dim-on-dark-2);
  max-width: 440px;
}

.contact-email {
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--attr-grey);
}
.contact-email-label { display: block; }
.contact-email a {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--orange);
}
.contact-email a:hover { color: var(--red); }

/* Form */

.contact-form {
  display: grid;
  gap: 16px;
  background: rgba(245, 242, 239, 0.04);
  border: 1px solid var(--border-dark);
  padding: 34px;
}

.field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label-grey);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  background: var(--input-black);
  border: 1px solid var(--border-dark-lo);
  border-radius: var(--radius-in);
  color: var(--on-dark);
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
}
.field textarea { resize: vertical; }
.field ::placeholder { color: var(--placeholder); }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit {
  margin-top: 6px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-in);
  background: linear-gradient(100deg, var(--red), var(--orange));
  color: #fff;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.submit:hover { filter: brightness(1.08); }
.submit[disabled] { cursor: default; filter: brightness(0.85); }

.form-note { font-size: 14px; line-height: 1.5; }
.form-success { color: var(--success); }
.form-error { color: #ff8b85; }
.form-error a { color: var(--orange); }

/* ---------- 10. Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px var(--pad-x);
  background: var(--paper);
}
.footer-word { height: 34px; width: auto; }
.site-footer a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--red-text);
}

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 1024px) {
  .two-col,
  .outwest-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .work-cards { grid-template-columns: minmax(0, 1fr); }
  .fit-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 52px; }
  .h2 { font-size: 34px; }
  .h2-outwest { font-size: 32px; }
  .h2-about { font-size: 32px; }
  .contact-pitch { max-width: none; }
}

@media (max-width: 768px) {
  :root { --pad-x: 24px; }

  .site-header { padding: 12px 20px; gap: 16px; }
  .lockup-mark { height: 42px; }
  .lockup-word { height: 28px; }
  .site-nav { gap: 0; }
  .site-nav a:not(.btn) { display: none; }

  .hero { padding: 84px var(--pad-x) 76px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 17px; margin-top: 24px; }
  .hero-buttons { margin-top: 32px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
  .hero-mark { height: 118%; }
  .hero-scrim {
    background: radial-gradient(ellipse at 50% 48%,
      rgba(11, 11, 13, 0.92) 30%,
      rgba(11, 11, 13, 0.68) 58%,
      rgba(11, 11, 13, 0.30) 82%);
  }

  .situation { padding: 64px var(--pad-x); }
  .situation-lead { font-size: 19px; }
  .situation-body { font-size: 17px; }

  .work, .process, .outwest, .about { padding: 64px var(--pad-x); }
  .fit { padding: 64px var(--pad-x); }
  .contact { padding: 64px var(--pad-x); }

  .h2 { font-size: 30px; }
  .h2-outwest, .h2-about { font-size: 28px; }
  .about-body { font-size: 17px; }
  .prose { font-size: 17px; }

  .card { padding: 30px 26px 32px; }
  .fit-cell { padding: 28px 24px; }
  .quote-red { padding: 26px 26px; }
  .quote-red p { font-size: 18px; }
  .quote-ink { padding: 24px 24px; }

  .contact-form { padding: 24px; }
  .field-pair { grid-template-columns: minmax(0, 1fr); }

  .site-footer { padding: 24px var(--pad-x); }
}

@media (max-width: 480px) {
  :root { --pad-x: 20px; }
  .hero h1 { font-size: 32px; }
  .h2 { font-size: 26px; }
  .h2-outwest, .h2-about { font-size: 25px; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .site-footer { justify-content: center; text-align: center; }
  .site-footer a { word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
