/* ==================================================================
   Twin Cities Collection Care — Blue Refined Concept
   Governing principle: one archival metaphor, one blue accent family.
   ================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

:root {
  /* Warm foundation */
  --linen: #F3EDE6;
  --linen-deep: #E8DED2;
  --linen-soft: #F8F4EF;
  --paper: #FDFBF8;

  /* Blue family, synthesized from the attached mockup and TCCC assets */
  --blue: #3E5A6E;
  --blue-deep: #1E323D;
  --blue-mid: #4E6D8C;
  --blue-soft: #DDE6EF;
  --blue-wash: #E8EEF1;

  /* Neutrals and rules */
  --ink: #292824;
  --ink-soft: #625E58;
  --muted: #817970;
  --stone: #A58F7A;
  --rule: #CBBFB2;
  --rule-blue: #B6C5CE;
  --white-ink: #FBF8F2;

  /* Type */
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --text-xs: clamp(0.72rem, 0.7rem + 0.08vw, 0.78rem);
  --text-sm: clamp(0.86rem, 0.83rem + 0.1vw, 0.92rem);
  --text-base: clamp(1rem, 0.96rem + 0.15vw, 1.07rem);
  --text-lede: clamp(1.08rem, 1rem + 0.32vw, 1.24rem);
  --text-h3: clamp(1.3rem, 1.2rem + 0.32vw, 1.56rem);
  --text-h2: clamp(2.05rem, 1.65rem + 1.45vw, 3rem);
  --text-h1: clamp(3rem, 2.1rem + 3.6vw, 5.8rem);

  /* Layout */
  --page: 74rem;
  --measure: 43rem;
  --section-space: clamp(5rem, 9vw, 8.5rem);
  --shadow: 0 1.6rem 4rem rgba(30, 50, 61, 0.09);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(62, 90, 110, 0.035) 1px, transparent 1px),
    var(--linen);
  background-size: 76px 76px;
  font-family: var(--sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: var(--text-h1);
  letter-spacing: -0.025em;
  line-height: 0.99;
}

h2 {
  margin-bottom: 1.15rem;
  font-size: var(--text-h2);
  letter-spacing: -0.015em;
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: var(--text-h3);
  line-height: 1.18;
}

p {
  color: var(--ink-soft);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button {
  font: inherit;
}

::selection {
  color: var(--paper);
  background: var(--blue);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--blue-deep);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(62, 90, 110, 0.2);
  background: rgba(243, 237, 230, 0.94);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

header.scrolled {
  background: rgba(253, 251, 248, 0.96);
  box-shadow: 0 0.5rem 2rem rgba(30, 50, 61, 0.07);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 3rem), var(--page));
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-inline: auto;
}

.logo {
  display: inline-grid;
  min-width: max-content;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.logo-eyebrow {
  margin-bottom: 0.35rem;
  color: var(--blue-mid);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.logo-name {
  font-family: var(--serif);
  font-size: 1.16rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 160ms ease;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--blue-deep);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

nav .nav-contact {
  padding: 0.58rem 0.82rem;
  border: 1px solid var(--blue);
  color: var(--blue-deep);
}

nav .nav-contact::after {
  display: none;
}

nav .nav-contact:hover,
nav .nav-contact:focus-visible {
  color: var(--paper);
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.58rem;
  border: 1px solid var(--rule-blue);
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0.34rem 0;
  background: var(--blue-deep);
}

main {
  padding-top: 5.25rem;
}

/* ------------------------------------------------------------------
   Shared section system
   ------------------------------------------------------------------ */

section {
  position: relative;
  width: min(calc(100% - 3rem), var(--page));
  margin-inline: auto;
  padding-block: var(--section-space);
}

.section-border {
  border-top: 1px solid var(--rule);
}

.section-bluewash {
  border-color: var(--rule-blue);
  background: var(--blue-wash);
  box-shadow: 0 0 0 100vmax var(--blue-wash);
  clip-path: inset(0 -100vmax);
}

.section-blue,
.section-contact {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--blue-deep);
  box-shadow: 0 0 0 100vmax var(--blue-deep);
  clip-path: inset(0 -100vmax);
}

.section-kicker,
.faq-index {
  margin-bottom: 0.85rem;
  color: var(--blue);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-intro {
  max-width: 46rem;
  margin-bottom: clamp(2.7rem, 5vw, 4.2rem);
}

.section-intro > p:last-child {
  max-width: 41rem;
  margin-bottom: 0;
}

.stitch-rule {
  width: 100%;
  height: 1px;
  margin-block: 2rem;
  background-image: repeating-linear-gradient(
    to right,
    var(--blue-mid) 0,
    var(--blue-mid) 9px,
    transparent 9px,
    transparent 16px
  );
  opacity: 0.56;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border: 1px solid var(--blue-deep);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper);
  background: var(--blue-deep);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
}

.button-secondary {
  color: var(--blue-deep);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--paper);
  background: var(--blue);
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */

.hero {
  display: grid;
  min-height: calc(100vh - 5.25rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.72fr);
  align-items: center;
  gap: clamp(3.5rem, 8vw, 7rem);
  padding-top: clamp(5.5rem, 10vw, 9rem);
  padding-bottom: clamp(6rem, 11vw, 9.5rem);
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 13%;
  right: -4vw;
  width: min(32rem, 45vw);
  height: 72%;
  content: "";
  background: var(--blue-soft);
}

.hero-copy {
  max-width: 47rem;
}

.hero-lede {
  max-width: 39rem;
  margin-bottom: 0.9rem;
  font-size: var(--text-lede);
  line-height: 1.65;
}

.hero-quote {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.3rem;
}

.record-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--rule-blue);
  border-top: 0.42rem solid var(--blue);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.record-card::before {
  position: absolute;
  top: -0.42rem;
  right: 1.4rem;
  width: 4.2rem;
  height: 0.42rem;
  content: "";
  background: var(--blue-deep);
}

.record-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-blue);
}

.record-header p {
  margin-bottom: 0;
}

.record-label,
.record-id,
.record-card dt {
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.record-id {
  color: var(--blue-deep);
  white-space: nowrap;
}

.record-card dl {
  margin-bottom: 0;
}

.record-card dl > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.record-card dl > div:last-child {
  border-bottom: 0;
}

.record-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.91rem;
  line-height: 1.55;
}

.record-note {
  margin: 0.6rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--blue-mid);
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.48;
}

/* ------------------------------------------------------------------
   About and credentials
   ------------------------------------------------------------------ */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.66fr);
  gap: clamp(3.5rem, 8vw, 7rem);
  align-items: start;
}

.intro-text {
  max-width: var(--measure);
}

.intro-text p + p {
  margin-top: 1rem;
}

.method-card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--rule-blue);
  border-left: 0.3rem solid var(--blue);
  background: var(--blue-wash);
}

.method-card h3 {
  margin-bottom: 1.25rem;
}

.method-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: 0.85rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule-blue);
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.method-list li > span:first-child {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.credentials {
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px dashed var(--blue-mid);
}

.credentials p {
  margin-bottom: 0.75rem;
  font-size: 0.87rem;
  line-height: 1.58;
}

.credentials p:last-child {
  margin-bottom: 0;
}

.credentials strong {
  color: var(--blue-deep);
}

/* ------------------------------------------------------------------
   Services
   ------------------------------------------------------------------ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-blue);
  border-left: 1px solid var(--rule-blue);
}

.service-card {
  position: relative;
  display: grid;
  min-height: 22rem;
  grid-template-rows: auto auto 1fr auto;
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border-right: 1px solid var(--rule-blue);
  border-bottom: 1px solid var(--rule-blue);
  background: rgba(253, 251, 248, 0.72);
  transition: background 160ms ease;
}

.service-card:hover {
  background: var(--paper);
}

.service-card-primary {
  background: var(--paper);
  box-shadow: inset 0 0.38rem 0 var(--blue);
}

.service-card-primary::after {
  position: absolute;
  top: 0;
  right: 1.7rem;
  width: 4.5rem;
  height: 0.38rem;
  content: "";
  background: var(--blue-deep);
}

.service-number {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.service-card h3 {
  max-width: 20ch;
}

.service-card > p:not(.service-number):not(.service-format) {
  max-width: 36rem;
  font-size: 0.96rem;
  line-height: 1.65;
}

.service-format {
  margin: 1.6rem 0 0;
  padding-top: 1.05rem;
  border-top: 1px dashed var(--blue-mid);
  color: var(--blue-deep);
  font-size: 0.8rem;
  line-height: 1.55;
}

.scope-note {
  max-width: 53rem;
  margin: 3rem 0 0 auto;
  padding: 1.2rem 1.4rem;
  border-left: 0.28rem solid var(--blue);
  color: var(--ink-soft);
  background: rgba(253, 251, 248, 0.6);
  font-size: 0.9rem;
  line-height: 1.65;
}

.scope-note strong {
  color: var(--blue-deep);
}

/* ------------------------------------------------------------------
   When useful
   ------------------------------------------------------------------ */

.use-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(3.5rem, 8vw, 7rem);
  align-items: start;
}

.use-copy {
  position: sticky;
  top: 8rem;
}

.use-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  counter-reset: useful;
  list-style: none;
}

.use-list li {
  position: relative;
  padding: 1.25rem 1rem 1.25rem 3.4rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  line-height: 1.58;
  counter-increment: useful;
}

.use-list li::before {
  position: absolute;
  top: 1.35rem;
  left: 0;
  color: var(--blue);
  content: "0" counter(useful);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------
   Process — the strongest blue field
   ------------------------------------------------------------------ */

.section-blue h2,
.section-blue h3 {
  color: var(--white-ink);
}

.section-blue .section-kicker {
  color: #BFD0DA;
}

.section-blue .section-intro > p:last-child,
.section-blue .workflow-step p {
  color: rgba(251, 248, 242, 0.72);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.workflow-step {
  min-height: 17rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.workflow-step:last-child {
  border-right: 0;
}

.workflow-number {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  color: #9DB3BF;
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
}

.workflow-step h3 {
  font-family: var(--sans);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.workflow-step p:last-child {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.58;
}

/* ------------------------------------------------------------------
   Case study
   ------------------------------------------------------------------ */

.case-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.65fr);
  gap: clamp(3.5rem, 8vw, 7rem);
  align-items: start;
}

.case-study-copy {
  max-width: var(--measure);
}

.case-study-copy h2 {
  margin-bottom: 1.5rem;
}

.case-study-copy p + p {
  margin-top: 1rem;
}

.case-study-copy .case-lede {
  padding-left: 1.35rem;
  border-left: 0.25rem solid var(--blue);
  color: var(--ink);
  font-size: var(--text-lede);
  line-height: 1.62;
}

.case-study-copy h3 {
  margin-top: 2.3rem;
  margin-bottom: 0.75rem;
}

.project-sheet {
  position: sticky;
  top: 8rem;
  border: 1px solid var(--rule-blue);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-sheet-header {
  padding: 1.5rem 1.6rem;
  color: var(--paper);
  background: var(--blue-deep);
}

.project-sheet-title {
  margin-bottom: 0.45rem;
  color: #BFD0DA;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-sheet-name {
  margin-bottom: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.36rem;
  line-height: 1.25;
}

.stat-table {
  padding-inline: 1.6rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
}

.stat-row-primary {
  padding-block: 1.25rem;
}

.stat-label {
  color: var(--ink-soft);
}

.stat-value {
  color: var(--blue-deep);
  font-weight: 600;
  text-align: right;
}

.stat-row-primary .stat-value {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
}

.deliverables-box {
  margin: 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--rule-blue);
  background: var(--blue-wash);
}

.deliverables-box h3 {
  margin-bottom: 0.85rem;
  color: var(--blue-deep);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deliverables-box p {
  position: relative;
  margin-bottom: 0.35rem;
  padding-left: 0.85rem;
  font-size: 0.87rem;
  line-height: 1.55;
}

.deliverables-box p::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 0.32rem;
  height: 1px;
  content: "";
  background: var(--blue);
}

/* ------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-blue);
  border-left: 1px solid var(--rule-blue);
}

.faq-item {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-right: 1px solid var(--rule-blue);
  border-bottom: 1px solid var(--rule-blue);
  background: rgba(253, 251, 248, 0.72);
}

.faq-index {
  color: var(--blue-mid);
}

.faq-item h3 {
  font-size: 1.25rem;
}

.faq-item p:last-child {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.62;
}

/* ------------------------------------------------------------------
   Contact and footer
   ------------------------------------------------------------------ */

.section-contact h2 {
  color: var(--white-ink);
}

.section-contact .section-kicker {
  color: #BFD0DA;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(18rem, 0.54fr);
  gap: clamp(3.5rem, 8vw, 7rem);
  align-items: center;
}

.contact-copy {
  max-width: 43rem;
}

.contact-copy p:not(.section-kicker) {
  color: rgba(251, 248, 242, 0.74);
}

.contact-copy p + p {
  margin-top: 1rem;
}

.contact-card {
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: var(--blue);
}

.contact-card::before {
  display: block;
  width: 3.5rem;
  height: 1px;
  margin-bottom: 1.5rem;
  content: "";
  background: #BFD0DA;
}

.contact-card p {
  color: rgba(251, 248, 242, 0.82);
  font-size: 0.91rem;
  line-height: 1.62;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--paper);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-email:hover,
.contact-email:focus-visible {
  border-color: var(--paper);
}

footer {
  padding: 2.1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--blue-deep);
  text-align: center;
}

footer p {
  margin-bottom: 0;
  color: rgba(251, 248, 242, 0.54);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------
   Responsive behavior
   ------------------------------------------------------------------ */

@media (max-width: 980px) {
  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.76rem;
  }

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

  .workflow-step:nth-child(2) {
    border-right: 0;
  }

  .workflow-step:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }
}

@media (max-width: 840px) {
  body {
    background-size: 60px 60px;
  }

  .header-inner,
  section {
    width: min(calc(100% - 2rem), var(--page));
  }

  nav {
    display: none;
  }

  nav.open {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.8rem 1rem 1.2rem;
    border-bottom: 1px solid var(--rule-blue);
    background: var(--paper);
    box-shadow: 0 1rem 2.4rem rgba(30, 50, 61, 0.1);
  }

  nav.open a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.88rem;
  }

  nav.open a::after {
    display: none;
  }

  nav.open .nav-contact {
    margin-top: 0.8rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--blue);
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero,
  .intro-grid,
  .use-grid,
  .case-study-layout,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero {
    min-height: auto;
    padding-top: 5.5rem;
  }

  .hero::after {
    top: auto;
    right: -4rem;
    bottom: 3.5rem;
    width: 82%;
    height: 34rem;
  }

  .record-card {
    max-width: 37rem;
  }

  .use-copy,
  .project-sheet {
    position: static;
  }

  .project-sheet {
    max-width: 38rem;
  }
}

@media (max-width: 620px) {
  :root {
    --section-space: 4.7rem;
  }

  .header-inner,
  section {
    width: min(calc(100% - 1.4rem), var(--page));
  }

  .logo-name {
    font-size: 1.05rem;
  }

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

  .button {
    width: 100%;
  }

  .record-card dl > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .services-grid,
  .faq-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .workflow-step,
  .workflow-step:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .workflow-step:last-child {
    border-bottom: 0;
  }

  .workflow-number {
    margin-bottom: 2rem;
  }

  .scope-note {
    margin-top: 2rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
