:root {
  /* Surfaces */
  --bg: #f5f4f1;
  --bg-tint: #eceae5;
  --surface: #ffffff;
  --surface-strong: #efece7;

  /* Dark (premium black) */
  --dark: #0e0f12;
  --dark-2: #16181d;
  --on-dark: #f1efeb;
  --on-dark-muted: #a7a199;
  --on-dark-line: rgba(255, 255, 255, 0.12);

  /* Ink / text */
  --ink: #16171a;
  --ink-soft: #34322e;
  --muted: #6f6a63;
  --line: #e7e3dd;
  --line-strong: #d8d3cb;

  /* Copper accent */
  --copper: #c0743f;
  --copper-bright: #d68d55;
  --copper-dark: #9a5a2e;
  --copper-tint: rgba(192, 116, 63, 0.1);

  /* Back-compat aliases (other pages reference --brand--accent*) */
  --brand: var(--copper);
  --brand-strong: #b06834;
  --brand-dark: var(--copper-dark);
  --brand-tint: var(--copper-tint);
  --accent: #d68d55;
  --accent-strong: #c0743f;
  --ok: #3a8f5f;
  --danger: #c0533f;

  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;
  --r-pill: 999px;
  --radius: 13px;

  --shadow-xs: 0 1px 2px rgba(28, 20, 12, 0.06);
  --shadow-sm: 0 6px 20px rgba(28, 20, 12, 0.07);
  --shadow: 0 18px 44px rgba(28, 20, 12, 0.1);
  --shadow-lg: 0 30px 70px rgba(20, 14, 8, 0.18);
  --shadow-brand: 0 14px 30px rgba(154, 90, 46, 0.28);

  --max: 1200px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.38s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--dark);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow-x: hidden;
}

::selection {
  background: rgba(192, 116, 63, 0.22);
  color: var(--copper-dark);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-weight: 700;
}

h3,
h4 {
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 3px solid rgba(192, 116, 63, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Page transitions (fade out on leave, fade in on arrive) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js body {
    opacity: 0;
  }

  html.js body.is-entered {
    opacity: 1;
    transition: opacity 220ms var(--ease-out);
  }

  html.js body.is-leaving {
    opacity: 0;
    transition: opacity 160ms var(--ease);
  }
}

/* ---------- Header ---------- */
[data-site-header] {
  min-height: 76px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  border-bottom: 1px solid var(--on-dark-line);
  background: rgba(14, 15, 18, 0.72);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  color: var(--on-dark);
  transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(12, 13, 16, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

/* Topbar removed for a cleaner, premium nav */
.topbar {
  display: none;
}

.nav,
.section__inner,
.footer__inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 11px;
  color: var(--on-dark);
  font-weight: 800;
}

.brand__logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-brand);
  transform-origin: 50% 58%;
  transition: filter 320ms ease, transform 320ms var(--ease);
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--copper-bright), var(--copper-dark));
  box-shadow: var(--shadow-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 300ms var(--ease);
}

.brand:hover .brand__mark {
  transform: translateY(-1px) rotate(-3deg);
}

.brand:hover .brand__logo {
  filter: drop-shadow(0 8px 18px rgba(192, 116, 63, 0.34));
  transform: translateY(-1px) rotate(-3deg) scale(1.03);
}

.brand__text {
  display: grid;
  line-height: 1.05;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.brand__text small {
  color: var(--copper-bright);
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .brand__logo {
    animation: brand-logo-drift 5.8s ease-in-out infinite;
  }
}

@keyframes brand-logo-drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -2px;
  }
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
  flex: 0 0 auto;
  transition: border-color 200ms ease, background 200ms ease;
}

.nav__toggle:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: opacity 220ms ease, transform 220ms var(--ease);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__links a {
  position: relative;
  border-radius: var(--r-sm);
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 13px;
  transition: color 200ms ease, background 200ms ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.nav__links a:hover {
  color: var(--on-dark);
}

.nav__links a:hover::after {
  transform: scaleX(1);
  box-shadow: 0 0 7px 2px rgba(192, 116, 63, 0.55), 0 0 18px 3px rgba(192, 116, 63, 0.18);
}

.nav__links a.is-active {
  color: var(--on-dark);
}

.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__links .nav__project-mobile {
  display: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__overlay {
  display: none;
}

.account-link,
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
  font-weight: 800;
  transition: border-color 200ms ease, box-shadow 220ms ease, transform 220ms var(--ease);
}

.account-link:hover,
.cart-link:hover {
  border-color: rgba(214, 141, 85, 0.6);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.account-link__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0.86;
}

.cart-link__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.86;
  filter: invert(1);
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  border: 2px solid var(--dark);
  border-radius: var(--r-pill);
  background: var(--copper);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  transition: transform 260ms var(--ease);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  gap: 8px;
  padding: 12px 22px;
  transition: transform 220ms var(--ease), box-shadow 240ms ease, background 240ms ease,
    border-color 240ms ease, color 240ms ease;
}

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

.btn:active,
.cart-link:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(180deg, var(--copper-bright), var(--copper));
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--copper), var(--copper-dark));
  box-shadow: 0 18px 38px rgba(154, 90, 46, 0.36);
}

.btn--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  border-color: var(--copper);
  color: var(--copper-dark);
  box-shadow: var(--shadow-sm);
}

.btn--accent {
  background: var(--ink);
  color: #fff;
}

.btn--accent:hover {
  background: #000;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.btn--full {
  width: 100%;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(60px, 8vw, 104px) 0;
}

.section--tight {
  padding: 48px 0;
}

.section--surface {
  background: var(--surface);
}

.section--ink {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
}

.section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section__heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.04;
}

.section__heading p:not(.eyebrow),
.page-title p:not(.eyebrow) {
  max-width: 60ch;
  margin: 14px 0 0;
  color: var(--muted);
}

.section--ink .section__heading p,
.section--ink .muted {
  color: var(--on-dark-muted);
}

.page-title {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 13vw, 160px) 0 clamp(40px, 6vw, 64px);
  background:
    linear-gradient(135deg, rgba(14, 15, 18, 0.98), rgba(22, 24, 29, 0.96)),
    linear-gradient(90deg, rgba(192, 116, 63, 0.14), transparent 46%);
  color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark-line);
}

.page-title__inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.page-title p {
  color: var(--on-dark-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  flex-shrink: 0;
  background: var(--copper);
  border-radius: 1px;
}

.section--ink .eyebrow,
.page-title .eyebrow {
  color: var(--copper-bright);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 22px;
}

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

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

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

/* ---------- Cards & surfaces ---------- */
.card,
.product-card,
.form-panel,
.summary-panel,
.notice {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 240ms ease, box-shadow 280ms ease, transform 280ms var(--ease);
}

.card {
  padding: 26px;
}

.card:hover,
.product-card:hover,
.form-panel:hover,
.summary-panel:hover,
.notice:hover {
  border-color: rgba(192, 116, 63, 0.32);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.product-card {
  overflow: hidden;
}

.product-card__media,
.product-card__media img,
.product-card__shape {
  transition: transform 460ms var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card:hover .product-card__shape {
  transform: rotate(-5deg) scale(1.05);
}

.product-card__media {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  background: linear-gradient(135deg, #efe9e2, #f8f6f2);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__shape {
  width: min(58%, 180px);
  aspect-ratio: 1;
  border: 12px solid rgba(192, 116, 63, 0.28);
  border-radius: 22px 22px 42px 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(192, 116, 63, 0.16)),
    repeating-linear-gradient(0deg, rgba(24, 20, 16, 0.08), rgba(24, 20, 16, 0.08) 1px, transparent 1px, transparent 9px);
  transform: rotate(-8deg);
}

.product-card__body {
  padding: 22px;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.product-card p {
  min-height: 48px;
  margin: 0 0 18px;
  color: var(--muted);
}

.price {
  color: var(--copper-dark);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: var(--r-pill);
  background: var(--copper-tint);
  color: var(--copper-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 13px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-list li {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms var(--ease);
}

.pill-list li:hover {
  border-color: var(--copper);
  color: var(--copper-dark);
  transform: translateY(-1px);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label,
.form-field > span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  padding: 12px 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a39c92;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 4px rgba(192, 116, 63, 0.14);
  outline: 0;
}

.check-row,
.radio-row {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.check-row input,
.radio-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--copper);
}

.status-message {
  display: none;
  margin-top: 14px;
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-weight: 600;
}

.status-message.is-visible {
  display: block;
  animation: surface-in 320ms var(--ease) both;
}

.status-message--ok {
  background: rgba(58, 143, 95, 0.12);
  color: var(--ok);
}

.status-message--error {
  background: rgba(192, 83, 63, 0.12);
  color: var(--danger);
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
}

.data-table th {
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table tbody tr {
  transition: background 180ms ease;
}

.data-table tbody tr:hover {
  background: var(--copper-tint);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

/* ---------- Notice / summary ---------- */
.notice {
  padding: 18px 20px;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.summary-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.summary-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.summary-panel dt {
  color: var(--muted);
}

.summary-panel dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  border-top: 1px solid var(--on-dark-line);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding: 64px 0 40px;
}

.footer__inner h2,
.footer__inner h3 {
  margin: 0 0 14px;
}

.footer__inner h2 {
  font-family: var(--font-display);
}

.footer__inner h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.footer__inner p,
.footer__inner a,
.footer__inner span {
  color: var(--on-dark-muted);
}

.footer__inner p {
  max-width: 36ch;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__social--stacked {
  margin-top: 22px;
}

.footer__social--bar {
  display: none;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 200ms var(--ease), box-shadow 200ms ease;
}

.footer__social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.footer__social img {
  display: block;
  width: 24px;
  height: 24px;
}

/* Desktop: icons become a centered bar above the copyright line */
@media (min-width: 841px) {
  .footer__social--stacked {
    display: none;
  }

  .footer__social--bar {
    display: flex;
    justify-content: center;
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 4px 0 40px;
  }
}

.footer__links {
  display: grid;
  gap: 9px;
}

.footer__links a {
  width: max-content;
  transition: color 200ms ease, transform 200ms var(--ease);
}

.footer__links a:hover {
  color: var(--copper-bright);
  transform: translateX(3px);
}

.footer__bottom {
  border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark-muted);
  font-size: 0.85rem;
  padding: 20px 0;
  text-align: center;
}

.footer__bottom strong {
  color: var(--copper-bright);
  font-weight: 700;
}

/* ---------- Misc ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-xs);
  padding: 8px 12px;
}

.skip-link:focus {
  left: 8px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--muted);
  padding: 32px;
  text-align: center;
}

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js :is(
      .hero__inner > *,
      .page-title__inner > *,
      .section__heading,
      .section .card,
      .section .product-card,
      .steps article,
      .quote-strip > *,
      .process-columns article,
      .timeline li,
      .material-card,
      .service-card,
      .faq-item,
      .data-table,
      .product-gallery,
      .product-info,
      .form-panel,
      .request-summary,
      .checkout-summary,
      .cart-summary,
      .shop-filters,
      .reveal
    ) {
    opacity: 0;
    translate: 0 14px;
  }

  html.js :is(
      .hero__inner > *,
      .page-title__inner > *,
      .section__heading,
      .section .card,
      .section .product-card,
      .steps article,
      .quote-strip > *,
      .process-columns article,
      .timeline li,
      .material-card,
      .service-card,
      .faq-item,
      .data-table,
      .product-gallery,
      .product-info,
      .form-panel,
      .request-summary,
      .checkout-summary,
      .cart-summary,
      .shop-filters,
      .reveal
    ).is-in {
    animation: reveal-up var(--dur) var(--ease-out) both;
    animation-delay: calc(var(--reveal-arrive, 0ms) + var(--reveal-delay, 0ms));
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    translate: 0 14px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes surface-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 68px;
  }

  .brand {
    min-width: 0;
    order: 1;
  }

  .nav__actions {
    margin-left: auto;
    order: 2;
  }

  .nav__toggle {
    position: relative;
    display: inline-grid;
    place-content: center;
    order: 3;
  }

  .nav__toggle span {
    margin: 2px auto;
  }

  .nav__links {
    display: none;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 4;
    gap: 8px;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid var(--on-dark-line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
  }

  .nav__links.is-open {
    display: grid;
    padding: 6px 0 16px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .site-header.is-menu-open .nav__links,
  body.nav-open .nav__links {
    display: grid !important;
    padding: 6px 0 16px !important;
    opacity: 1 !important;
    pointer-events: auto;
    transform: translateY(0) !important;
    visibility: visible !important;
    animation: dropdown-in 240ms var(--ease) both;
  }

  .site-header:not(.is-menu-open) .nav__links,
  body:not(.nav-open) .nav__links {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(-8px) !important;
    visibility: hidden !important;
  }

  .nav__links a {
    border: 1px solid var(--on-dark-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--on-dark);
    padding: 13px 14px;
  }

  .nav__links a::after {
    display: none;
  }

  .nav__links a.is-active {
    border-color: var(--copper);
    background: var(--copper-tint);
    color: var(--on-dark);
  }

  .nav__actions .btn {
    display: none;
  }

  .nav__links .nav__project-mobile {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: center;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-color: transparent;
    background: linear-gradient(180deg, var(--copper-bright), var(--copper));
    box-shadow: var(--shadow-brand);
    color: #fff;
    font-weight: 700;
  }

  .nav__links .nav__project-mobile:hover,
  .nav__links .nav__project-mobile.is-active {
    border-color: transparent;
    background: linear-gradient(180deg, var(--copper), var(--copper-dark));
    color: #fff;
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

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

  .nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

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

@media (max-width: 840px) {
  .section__heading,
  .footer__inner {
    display: grid;
  }

  .section__heading .btn {
    justify-self: center;
  }

  .grid--2,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }

  .footer__inner > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .product-card p {
    min-height: 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .nav,
  .section__inner,
  .footer__inner,
  .page-title__inner {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav {
    min-height: 62px;
  }

  .brand__mark,
  .brand__logo {
    width: 36px;
    height: 36px;
  }

  .brand__text {
    font-size: 0.98rem;
  }

  .nav__links {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .site-header.is-menu-open .nav__links,
  .nav__links.is-open,
  body.nav-open .nav__links {
    padding: 6px 0 14px !important;
  }

  .cart-link,
  .nav__toggle {
    width: 42px;
    height: 42px;
  }

  .section__heading {
    gap: 14px;
    margin-bottom: 24px;
  }

  .card,
  .form-panel,
  .summary-panel,
  .notice {
    padding: 20px;
  }

  .product-card__body {
    padding: 18px;
  }

  .summary-panel dl div {
    display: grid;
    gap: 3px;
  }

  .summary-panel dd {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .brand__text small {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
