/* ==========================================================================
   Measure Bakery — styles.css
   A bakery for measuring. Warm, precise, modern.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* --- Colour system --- */
  --cream: #faf5ec;
  --cream-tint: #f3ebdd;
  --paper: #fffdf8;

  --ink: #221a14;
  --ink-soft: #463b31;
  --muted: #6d5f52;

  --copper: #a64a17;
  --copper-dark: #7e3710;
  --copper-light: #e3a171;
  --copper-tint: rgba(166, 74, 23, 0.1);

  --teal: #17514b;
  --teal-tint: rgba(23, 81, 75, 0.1);

  --line: rgba(34, 26, 20, 0.12);
  --line-strong: rgba(34, 26, 20, 0.26);

  --dark: #1c1510;
  --dark-2: #2a2119;
  --on-dark: #faf5ec;
  --on-dark-soft: rgba(250, 245, 236, 0.78);
  --on-dark-faint: rgba(250, 245, 236, 0.6);
  --on-dark-line: rgba(250, 245, 236, 0.18);
  --on-dark-field: rgba(255, 255, 255, 0.06);

  /* Focus ring colour, overridden on dark surfaces */
  --focus: #a64a17;

  /* --- Typography --- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-hero: clamp(2.6rem, 8vw, 4.5rem);
  --fs-h2: clamp(1.8rem, 3.8vw, 2.6rem);
  --fs-h3: clamp(1.08rem, 1.6vw, 1.22rem);
  --fs-lede: clamp(1.02rem, 1.4vw, 1.16rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  /* --- Spacing scale --- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  --section-pad-y: clamp(3.5rem, 8vw, 6.5rem);
  --section-pad-x: 1.25rem;

  /* --- Layout --- */
  --container: 1100px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(34, 26, 20, 0.05), 0 2px 8px rgba(34, 26, 20, 0.05);
  --shadow-md: 0 18px 40px -22px rgba(34, 26, 20, 0.45);
  --shadow-lg: 0 26px 60px -30px rgba(34, 26, 20, 0.55);

  --header-height: 4.25rem;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* --------------------------------------------------------------------------
   3. Shared layout helpers
   -------------------------------------------------------------------------- */
.section-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

.section-heading {
  max-width: 46rem;
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}

.section-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.section-title {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-lede {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: var(--fs-lede);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   4. Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 200;
  padding: 0.65rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background-color: var(--ink);
  color: var(--on-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.22s ease;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease,
    border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary {
  background-color: var(--copper);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(126, 55, 16, 0.9);
}

.btn-primary:hover {
  background-color: var(--copper-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px rgba(126, 55, 16, 0.95);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-ghost:hover {
  background-color: var(--copper-tint);
  border-color: var(--copper);
  color: var(--copper-dark);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 245, 236, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .site-header {
    background-color: var(--cream);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--container);
  min-height: var(--header-height);
  margin-inline: auto;
  padding: 0.65rem var(--section-pad-x);
}

/* Brand / wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background-color: var(--copper-tint);
  color: var(--copper);
  transition: background-color 0.22s ease, color 0.22s ease;
}

.brand-mark svg {
  width: 1.4rem;
  height: 1.4rem;
}

.brand:hover .brand-mark {
  background-color: var(--copper);
  color: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hamburger toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease, background-color 0.22s ease;
}

.nav-toggle:hover {
  border-color: var(--copper);
  color: var(--copper-dark);
  background-color: var(--copper-tint);
}

.nav-toggle-box {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.nav-toggle-bar:nth-child(1) {
  top: 0;
}

.nav-toggle-bar:nth-child(2) {
  top: 5px;
}

.nav-toggle-bar:nth-child(3) {
  top: 10px;
}

.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile nav panel */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--section-pad-x) 1.25rem;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.6rem);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}

.site-header.nav-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-link {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-list .nav-item:last-child .nav-link {
  border-bottom: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--copper-dark);
  padding-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) var(--section-pad-x) clamp(4rem, 9vw, 6.5rem);
  background-color: var(--cream);
  background-image:
    radial-gradient(120% 95% at 88% -10%, rgba(166, 74, 23, 0.18), transparent 62%),
    radial-gradient(95% 80% at -5% 105%, rgba(23, 81, 75, 0.14), transparent 62%);
}

/* Measuring-grid texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(34, 26, 20, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 26, 20, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 65%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.hero-eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.hero-title {
  max-width: 20ch;
  margin: 0 0 1.35rem;
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-lede {
  max-width: 56ch;
  margin: 0 0 2rem;
  font-size: var(--fs-lede);
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

/* Spec strip — the "measurement ticks" under the hero */
.spec-strip {
  display: grid;
  gap: 1.25rem 2rem;
  max-width: 60rem;
}

.spec-item {
  padding-top: 0.85rem;
  border-top: 2px solid var(--copper);
}

.spec-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.spec-label {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */
.about {
  padding: var(--section-pad-y) 0;
  background-color: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.about-inner .section-heading {
  margin-bottom: 0;
}

.about-body p {
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--ink-soft);
}

.about-body p:first-child {
  font-size: 1.1rem;
  color: var(--ink);
}

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

/* --------------------------------------------------------------------------
   9. Services / Offerings
   -------------------------------------------------------------------------- */
.services {
  padding: var(--section-pad-y) 0;
  background-color: var(--cream-tint);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(166, 74, 23, 0.4);
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.35rem;
  border-radius: 14px;
  background-color: var(--copper-tint);
  color: var(--copper);
  transition: background-color 0.28s ease, color 0.28s ease;
}

.card:hover .card-icon {
  background-color: var(--copper);
  color: #fff;
}

.card-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.card-title {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.card-text {
  font-size: 0.97rem;
  line-height: 1.68;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   10. Why choose us
   -------------------------------------------------------------------------- */
.why-choose-us {
  padding: var(--section-pad-y) 0;
  background-color: var(--paper);
}

.why-inner {
  display: block;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.why-item:last-child {
  border-bottom: 1px solid var(--line);
}

.why-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background-color: var(--teal-tint);
  color: var(--teal);
}

.why-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.why-body {
  min-width: 0;
}

.why-title {
  margin-bottom: 0.35rem;
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.why-text {
  font-size: 0.97rem;
  line-height: 1.68;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */
.contact {
  padding: var(--section-pad-y) 0;
  background-color: var(--dark);
  background-image:
    radial-gradient(100% 80% at 90% 0%, rgba(166, 74, 23, 0.28), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(23, 81, 75, 0.3), transparent 62%);
  color: var(--on-dark);
  --focus: #e3a171;
}

.contact .section-eyebrow {
  color: var(--copper-light);
}

.contact .section-title {
  color: var(--on-dark);
}

.contact .section-lede {
  color: var(--on-dark-soft);
}

.contact-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
}

.contact-detail {
  border-top: 1px solid var(--on-dark-line);
  padding-top: 1rem;
}

.contact-label {
  margin-bottom: 0.4rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-light);
}

.contact-value {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--on-dark-soft);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.social-link {
  color: var(--on-dark);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--on-dark-line);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--copper-light);
  border-bottom-color: var(--copper-light);
}

/* Form */
.contact-form {
  color-scheme: dark;
  padding: clamp(1.35rem, 3.5vw, 2rem);
  background-color: rgba(250, 245, 236, 0.05);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

.form-input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--on-dark-line);
  border-radius: 10px;
  background-color: var(--on-dark-field);
  color: var(--on-dark);
  font-family: inherit;
  font-size: 0.97rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder {
  color: rgba(250, 245, 236, 0.42);
}

.form-input:hover {
  border-color: rgba(250, 245, 236, 0.32);
}

.form-input:focus,
.form-input:focus-visible {
  outline: none;
  border-color: var(--copper-light);
  background-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(227, 161, 113, 0.3);
}

.form-input[aria-invalid="true"] {
  border-color: #f0a58c;
  box-shadow: 0 0 0 1px rgba(240, 165, 140, 0.6);
}

.form-textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.form-input:autofill,
.form-input:-webkit-autofill {
  -webkit-text-fill-color: var(--on-dark);
  box-shadow: inset 0 0 0 100px #2f251c;
}

.btn-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.form-note {
  min-height: 1.4rem;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--copper-light);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  background-color: var(--dark);
  border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark-faint);
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
}

.footer-name {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--on-dark);
}

.footer-tagline {
  margin: 0;
  font-size: 0.92rem;
  color: var(--on-dark-faint);
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-nav-link {
  font-size: 0.92rem;
  color: var(--on-dark-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-link:hover,
.footer-nav-link:focus-visible {
  color: var(--copper-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(250, 245, 236, 0.48);
}

/* --------------------------------------------------------------------------
   13. Scroll reveal states (driven by script.js)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.68, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* If scripting is unavailable, never hide the content. */
@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   14. Responsive breakpoints
   -------------------------------------------------------------------------- */

/* Small tablets — two-column card grid, three-up spec strip */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Footer + why-list go two-column */
@media (min-width: 760px) {
  .why-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.75rem;
  }

  .why-item:nth-child(2) {
    /* keep the second item's rule aligned with the first */
    border-top: 1px solid var(--line);
  }

  .footer-inner {
    grid-template-columns: 1.1fr auto;
    align-items: center;
    row-gap: 1.5rem;
  }

  .footer-copyright {
    grid-column: 1 / -1;
  }
}

/* Desktop navigation */
@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1.9rem;
  }

  .nav-link {
    position: relative;
    padding: 0.35rem 0;
    border-bottom: none;
    font-size: 0.95rem;
    color: var(--ink-soft);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    padding-left: 0;
    color: var(--copper-dark);
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--copper);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }

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

/* Two-column editorial layouts */
@media (min-width: 900px) {
  .about-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .btn-submit {
    width: auto;
    min-width: 12rem;
  }
}

/* Wide desktop — three-up card grid */
@media (min-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: center;
  }

  .footer-copyright {
    grid-column: auto;
    text-align: right;
  }
}

/* --------------------------------------------------------------------------
   15. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .card:hover,
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }
}