/* BlazingBoys — light editorial redesign
   Palette: warm paper, near-black ink, accessible brand red derived from #e23a32
   Type: Fraunces (display) + Source Sans 3 (body/UI)
*/

:root {
  --bg: #f3eee5;
  --bg-alt: #ebe5d8;
  --bg-card: #fffcf6;
  --ink: #161310;
  --ink-soft: #3a3530;
  --muted: #5c564e;
  --line: #d6cec0;
  --line-strong: #c4baa8;
  --red: #c4231c;
  --red-hover: #9e1c16;
  --red-soft: #f5e3e0;
  --red-display: #c4231c;
  --header-h: 4.85rem;
  --max: 72.5rem;
  --gutter: clamp(1.25rem, 3.6vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.25rem);
  --shadow: 0 1px 2px rgba(22, 19, 16, 0.05), 0 12px 32px rgba(22, 19, 16, 0.05);
  --shadow-hover: 0 2px 4px rgba(22, 19, 16, 0.05), 0 16px 40px rgba(22, 19, 16, 0.09);
  --font-display: "Fraunces", "Times New Roman", Times, serif;
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: 0.22s ease;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-variation-settings: "SOFT" 15, "WONK" 0;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
  color: var(--ink);
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus {
  outline: none;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 400;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
  outline-color: #fff;
}

/* Layout */
.wrap {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(243, 238, 229, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(22, 19, 16, 0.02), 0 8px 24px rgba(22, 19, 16, 0.04);
  background: #f3eee5;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 36;
  flex-shrink: 0;
  z-index: 210;
}

.brand span {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--red);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.btn,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--red);
  color: #fff;
  padding: 0.95rem 1.35rem;
  border: 1px solid var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
  white-space: nowrap;
}

.btn:hover,
.nav-cta:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
}

.btn:active,
.nav-cta:active {
  transform: translateY(1px);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red);
}

.nav-cta-mobile {
  display: none;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  z-index: 210;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.15rem;
  font-family: var(--font-sans);
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.35rem, 9.2vw, 7.75rem);
  letter-spacing: -0.045em;
  line-height: 0.88;
  margin: 0 0 1.6rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 8, "WONK" 0, "opsz" 144;
}

h1 em {
  font-style: normal;
  color: var(--red-display);
}

.lead {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  margin-bottom: 0;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.hero-meta li {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.3rem;
  text-transform: none;
}

.hero-figure {
  margin: 0;
  position: relative;
  height: min(38rem, 72vh);
  min-height: 26rem;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  filter: grayscale(0.35) contrast(1.06) saturate(0.75);
  transform: scale(1.02);
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(22, 19, 16, 0.06);
  background: linear-gradient(180deg, rgba(22, 19, 16, 0.05) 0%, transparent 30%, transparent 70%, rgba(243, 238, 229, 0.12) 100%);
}

/* Sections */
.section {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(2.5rem, 6.2vw, 4.85rem);
  letter-spacing: -0.035em;
  margin: 0.35rem 0 0;
  font-variation-settings: "SOFT" 10, "WONK" 0, "opsz" 96;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: flex-end;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section-head p {
  max-width: 22.5rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  padding-bottom: 0.35rem;
  font-size: 1.02rem;
}

/* Platform cards */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-art {
  height: 15.5rem;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.28) contrast(1.05) saturate(0.82);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.card:hover .card-art img {
  transform: scale(1.04);
  filter: grayscale(0.05) contrast(1.05) saturate(0.95);
}

.card-body {
  padding: 1.7rem 1.7rem 1.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tag {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  font-family: var(--font-sans);
}

.card h3,
.price-card h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.05rem);
  letter-spacing: -0.03em;
  margin: 0.7rem 0 0.65rem;
  font-weight: 600;
}

.card p,
.price-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.features {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.4rem;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.features li {
  border: 1px solid var(--line);
  padding: 0.42rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: rgba(243, 238, 229, 0.5);
}

/* Departments */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
  padding: 0;
  margin: 0;
}

.dept {
  background: var(--bg-card);
  padding: 1.9rem 1.65rem 1.75rem;
  min-height: 11.5rem;
  margin: 0;
  border: 0;
  outline: 1px solid var(--line);
  transition: background var(--ease);
  position: relative;
}

.dept:hover {
  background: #fff;
}

.dept::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--red);
  transition: width var(--ease);
}

.dept:hover::before {
  width: 3px;
}

.dept-num {
  color: var(--red);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-family: var(--font-sans);
  display: block;
}

.dept h3 {
  font-size: 1.55rem;
  margin: 1.45rem 0 0.5rem;
  letter-spacing: -0.03em;
}

.dept p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.notice {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 1.5rem 0 0;
  line-height: 1.65;
  max-width: 48rem;
}

.notice a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.notice a:hover {
  color: var(--red);
}

/* Society split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5.25rem);
  align-items: center;
}

.photo {
  margin: 0;
  min-height: 32rem;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.photo img {
  width: 100%;
  height: 100%;
  min-height: 32rem;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.15) contrast(1.04);
}

.bodycopy {
  color: var(--ink-soft);
  line-height: 1.85;
  font-size: 1.0625rem;
  margin: 1.35rem 0 1.75rem;
}

.stat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat small {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.4rem;
}

.stat span {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.price-card {
  padding: 2rem 1.9rem 1.9rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  opacity: 0.9;
}

.price-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.price-card .amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4.5vw, 3.35rem);
  letter-spacing: -0.045em;
  margin: 0.85rem 0 1rem;
  line-height: 1;
  font-variation-settings: "SOFT" 10, "WONK" 0, "opsz" 72;
  white-space: nowrap;
}

.price-card .amount small {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 0.4rem;
  white-space: normal;
}

/* Technology */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech {
  padding: 1.45rem 1.2rem 1.3rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: border-color var(--ease), transform var(--ease);
}

.tech:hover {
  border-color: var(--line-strong);
}

.tech strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.tech span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Expandable diagrams */
.folds {
  margin-top: 2.35rem;
}

.fold {
  border-bottom: 1px solid var(--line);
}

.fold:first-child {
  border-top: 1px solid var(--line);
}

.fold summary {
  cursor: pointer;
  color: var(--ink);
  padding: 1.15rem 0.15rem;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--ease);
}

.fold summary::-webkit-details-marker,
.fold summary::marker {
  display: none;
  content: "";
}

.fold summary:hover {
  color: var(--red);
}

.fold-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--red);
  transition: background var(--ease), color var(--ease), transform var(--ease), border-color var(--ease);
}

.fold-icon svg {
  width: 0.7rem;
  height: 0.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  transition: transform var(--ease);
}

.fold[open] .fold-icon {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.fold[open] .fold-icon svg {
  transform: rotate(180deg);
}

.fold-body {
  padding: 0.25rem 0 1.6rem;
}

.fold-body picture {
  display: block;
  width: 100%;
}

.diagram {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: #fff;
}

/* CTA */
.cta-section {
  padding-block: clamp(3.25rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.cta-panel {
  background: var(--red);
  color: #fff;
  padding: clamp(2.25rem, 5vw, 4.15rem) clamp(1.6rem, 4.5vw, 4rem);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.cta-panel .eyebrow {
  color: #fff;
  opacity: 0.92;
  margin-bottom: 0.85rem;
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4rem);
  color: #fff;
  letter-spacing: -0.035em;
}

.cta-panel p {
  margin: 0.95rem 0 0;
  color: #fff5f3;
  font-size: 1.0625rem;
}

.cta-panel .btn {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  flex-shrink: 0;
}

.cta-panel .btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* Footer */
.site-footer {
  padding: 3.25rem 0 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.8;
  margin: 0.85rem 0 0;
}

.footer-links {
  display: flex;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  :root {
    --header-h: 4.35rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 205;
    padding: calc(var(--header-h) + 1.75rem) var(--gutter) 2.5rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    text-transform: none;
    color: var(--ink);
    padding: 0.55rem 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    color: var(--red);
  }

  .nav-links .nav-cta-mobile {
    display: inline-flex;
    margin-top: 1.75rem;
    width: auto;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--red);
    background: var(--red);
    color: #fff;
    padding: 0.95rem 1.35rem;
  }

  .nav-links .nav-cta-mobile:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    color: #fff;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-cta--desktop {
    display: none;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-figure {
    height: 28rem;
    min-height: 20rem;
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .split,
  .platform-grid,
  .pricing,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head {
    align-items: start;
    gap: 1rem;
  }

  .section-head p {
    max-width: 36rem;
    padding-bottom: 0;
  }

  .hero-figure {
    height: 22rem;
    min-height: 16rem;
    order: -1;
  }

  h1 {
    font-size: clamp(3.05rem, 15vw, 5.25rem);
  }

  .photo,
  .photo img {
    min-height: 20rem;
  }

  .dept-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .eyebrow {
    letter-spacing: 0.12em;
  }

  .dept-grid {
    grid-template-columns: 1fr;
  }

  .dept {
    min-height: 0;
    padding: 1.45rem 1.25rem;
  }

  .dept h3 {
    margin-top: 0.85rem;
    font-size: 1.4rem;
  }

  .hero-meta {
    gap: 1.15rem 1.75rem;
    flex-wrap: wrap;
    margin-top: 2.25rem;
  }

  .card-art {
    height: 13.5rem;
  }

  .card-body,
  .price-card {
    padding: 1.4rem 1.25rem 1.5rem;
  }

  .price-card .amount {
    white-space: normal;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  .photo,
  .photo img {
    min-height: 16.5rem;
  }

  .tech {
    padding: 1.15rem 0.95rem 1.05rem;
  }

  .tech strong {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 2.85rem;
  }

  .section h2 {
    font-size: 2.2rem;
  }

  .hero-figure {
    height: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .price-card:hover {
    transform: none;
  }

  .card:hover .card-art img {
    transform: none;
  }
}

@media (hover: none) {
  .card:hover,
  .price-card:hover {
    transform: none;
    box-shadow: none;
  }

  .card:hover .card-art img {
    transform: none;
    filter: grayscale(0.28) contrast(1.05) saturate(0.82);
  }
}

@media print {
  .site-header,
  .menu-toggle,
  .skip-link,
  .actions,
  .cta-panel .btn,
  .nav-cta {
    /* keep header for brand, hide interactive chrome if needed */
  }

  .site-header {
    position: static;
    background: #fff;
  }

  body {
    background: #fff;
  }

  .fold {
    /* show diagrams when printing? leave as-is */
  }
}
