﻿:root {
  --bg: #f5f1e8;
  --bg-soft: #f9f6ef;
  --text: #2a2a2a;
  --ink: #1c1c1c;
  --silver: #c0c0c0;
  --leather: #3a2a1e;
  --gold: #d6c6a5;
  --line: rgba(28, 28, 28, 0.18);
  --line-strong: rgba(28, 28, 28, 0.32);
  --shadow-soft: 0 22px 56px rgba(33, 28, 22, 0.12);
  --shadow-deep: 0 34px 84px rgba(33, 28, 22, 0.2);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1200px;
  --ease-lux: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(214, 198, 165, 0.12), transparent 32%),
    radial-gradient(circle at 82% 74%, rgba(58, 42, 30, 0.08), transparent 44%),
    var(--bg);
  letter-spacing: 0.012em;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.8rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 8.2vw, 5rem);
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  letter-spacing: 0.008em;
}

h3 {
  font-size: clamp(1.18rem, 2.2vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

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

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(5.4rem, 10vw, 9.4rem) 0;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(28, 28, 28, 0.72);
  margin-bottom: 1.2rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(245, 241, 232, 0.74);
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}

.topbar__inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.topbar__nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  font-size: 0.93rem;
  font-weight: 500;
}

.hero {
  min-height: min(96vh, 940px);
  display: grid;
  align-items: center;
  padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(3.2rem, 6vw, 4.8rem);
  background:
    linear-gradient(120deg, rgba(248, 244, 236, 0.76), rgba(245, 241, 232, 0.66)),
    radial-gradient(circle at 82% 22%, rgba(58, 42, 30, 0.2), transparent 40%),
    linear-gradient(145deg, rgba(214, 198, 165, 0.24), rgba(245, 241, 232, 0.06));
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(28, 28, 28, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28, 28, 28, 0.018) 1px, transparent 1px);
  background-size: 84px 84px;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.8rem, 5vw, 4.6rem);
  align-items: center;
  min-height: clamp(520px, 70vh, 760px);
}

.hero__copy,
.hero__visual {
  align-self: center;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__subheadline {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: rgba(28, 28, 28, 0.86);
  letter-spacing: 0.02em;
}

.hero__tagline {
  font-family: "Playfair Display", serif;
  color: var(--leather);
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
  margin-bottom: 1.15rem;
}

.hero__actions,
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  position: relative;
  min-height: 48px;
  padding: 0.8rem 1.42rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  letter-spacing: 0.03em;
  font-weight: 600;
  transition: transform 250ms var(--ease-lux), box-shadow 250ms var(--ease-lux), background-color 250ms var(--ease-lux);
}

.btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px dashed transparent;
  opacity: 0;
  transform: scaleX(0.84);
  transform-origin: left;
  transition: transform 260ms var(--ease-lux), opacity 260ms var(--ease-lux), border-color 260ms var(--ease-lux);
}

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

.btn:hover::after,
.btn:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
  border-color: rgba(214, 198, 165, 0.86);
}

.btn--primary {
  background: linear-gradient(130deg, var(--ink), #36312c);
  color: #fbf8f1;
  box-shadow: 0 13px 28px rgba(28, 28, 28, 0.22);
}

.btn--ghost {
  border-color: rgba(28, 28, 28, 0.25);
  background: rgba(250, 247, 239, 0.82);
}

.stitch-link {
  position: relative;
}

.stitch-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 5px,
    rgba(28, 28, 28, 0.95) 5px,
    rgba(28, 28, 28, 0.95) 8px
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease-lux);
}

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

.stitch-studio {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(28, 28, 28, 0.14);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(165deg, #e8ddcd, #d7c5ae 44%, #c4b097);
  box-shadow: var(--shadow-deep);
  transition: transform 360ms var(--ease-lux), box-shadow 360ms var(--ease-lux);
}

.stitch-studio:hover {
  transform: translateY(-5px);
}

.stitch-studio__header,
.stitch-studio__footer {
  position: absolute;
  left: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.stitch-studio__header {
  top: 1rem;
}

.stitch-studio__footer {
  bottom: 1rem;
}

.stitch-studio__title,
.stitch-studio__count {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(28, 28, 28, 0.8);
}

.stitch-studio__controls {
  display: flex;
  gap: 0.6rem;
}

.stitch-studio__controls label {
  display: grid;
  gap: 0.22rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(58, 42, 30, 0.82);
}

.stitch-studio__assist button {
  min-height: 30px;
  border: 1px solid rgba(28, 28, 28, 0.2);
  background: rgba(248, 241, 229, 0.9);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 0.6rem;
  transition: background-color 180ms var(--ease-lux), color 180ms var(--ease-lux), border-color 180ms var(--ease-lux);
}

.stitch-studio__assist button[aria-pressed="true"] {
  background: linear-gradient(130deg, #2a2622, #3a332d);
  color: #f7f1e6;
  border-color: rgba(214, 198, 165, 0.45);
}

.stitch-studio__controls select {
  min-width: 112px;
  min-height: 30px;
  border: 1px solid rgba(28, 28, 28, 0.2);
  background: rgba(248, 241, 229, 0.9);
  color: var(--ink);
  font-size: 0.78rem;
  padding: 0 0.4rem;
}

.stitch-studio__meta {
  display: grid;
  gap: 0.15rem;
}

.stitch-studio__score,
.stitch-studio__feedback {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(58, 42, 30, 0.86);
}

.stitch-studio__feedback {
  font-size: 0.69rem;
  max-width: 260px;
}

#hero-stitch-canvas {
  display: block;
  width: 100%;
  height: 520px;
  cursor: crosshair;
}

#hero-stitch-canvas.is-sewing {
  cursor: none;
}

.stitch-studio__reset {
  border: 1px solid rgba(28, 28, 28, 0.28);
  background: rgba(249, 245, 236, 0.88);
  color: var(--ink);
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 220ms var(--ease-lux), background-color 220ms var(--ease-lux);
}

.stitch-studio__actions {
  display: flex;
  gap: 0.45rem;
}

.stitch-studio__complete-card {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  min-width: 220px;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(214, 198, 165, 0.6);
  background: linear-gradient(145deg, rgba(26, 24, 22, 0.86), rgba(49, 42, 36, 0.9));
  box-shadow: 0 18px 44px rgba(24, 20, 18, 0.3);
  text-align: center;
  pointer-events: none;
  transition: opacity 300ms var(--ease-lux), transform 300ms var(--ease-lux);
}

.stitch-studio__complete-card.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.stitch-studio__complete-label,
.stitch-studio__complete-note {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: rgba(245, 241, 232, 0.8);
}

.stitch-studio__complete-score {
  margin: 0.35rem 0;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #f5efe5;
}

.stitch-studio.is-complete {
  box-shadow: 0 0 0 1px rgba(214, 198, 165, 0.55), var(--shadow-deep);
}

.hero-assessment {
  width: min(100%, 520px);
  margin-inline: auto;
  border: 1px solid rgba(28, 28, 28, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.34), transparent 35%),
    linear-gradient(160deg, #e8ddcd, #d7c5ae 45%, #c2ad93);
  box-shadow: var(--shadow-deep);
}

.hero-assessment__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.hero-assessment__kicker {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.hero-assessment__hint {
  margin: 0;
  font-size: 0.79rem;
  color: rgba(58, 42, 30, 0.88);
}

.hero-assessment__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.hero-assessment__form label {
  display: grid;
  gap: 0.26rem;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(58, 42, 30, 0.86);
}

.hero-assessment__form select {
  min-height: 34px;
  border: 1px solid rgba(28, 28, 28, 0.2);
  background: rgba(248, 241, 229, 0.9);
  font-size: 0.82rem;
  color: var(--ink);
  padding: 0 0.45rem;
}

.hero-assessment__submit {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid rgba(28, 28, 28, 0.26);
  background: linear-gradient(130deg, #2a2622, #3a332d);
  color: #f8f2e8;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-assessment__result {
  min-height: 64px;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(28, 28, 28, 0.18);
  background: rgba(248, 241, 229, 0.72);
  font-size: 0.86rem;
  color: rgba(42, 42, 42, 0.9);
  margin-bottom: 0.8rem;
}

.hero-assessment__cta {
  width: 100%;
}

.stitch-studio__reset:hover,
.stitch-studio__reset:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
}

.thread-divider {
  width: min(var(--max), 92vw);
  margin: clamp(3rem, 6vw, 4rem) auto 0;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(28, 28, 28, 0.22),
    rgba(28, 28, 28, 0.22) 5px,
    transparent 5px,
    transparent 13px
  );
}

.thread-divider--light {
  background: repeating-linear-gradient(
    90deg,
    rgba(245, 241, 232, 0.5),
    rgba(245, 241, 232, 0.5) 5px,
    transparent 5px,
    transparent 13px
  );
}

.intro {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(1.4rem, 4vw, 3.2rem);
}

.intro__detail {
  border-left: 1px solid var(--line-strong);
  padding: 1.6rem 0 1.6rem 1.2rem;
  color: rgba(58, 42, 30, 0.92);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.04));
}

.services-layout {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem 1.6rem;
}

.service {
  padding: 1.5rem 0 1rem;
  border-top: 1px solid var(--line);
  transition: transform 250ms var(--ease-lux), border-color 250ms var(--ease-lux), background-color 250ms var(--ease-lux);
}

.service::before {
  content: "";
  display: block;
  width: 34%;
  height: 1px;
  margin-bottom: 1.05rem;
  background: linear-gradient(90deg, var(--gold), rgba(214, 198, 165, 0));
  transition: width 280ms var(--ease-lux);
}

.service:hover,
.service:focus-within {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.28);
}

.service:hover::before,
.service:focus-within::before {
  width: 58%;
}

.service:nth-child(1),
.service:nth-child(4) {
  grid-column: span 7;
}

.service:nth-child(2),
.service:nth-child(3) {
  grid-column: span 5;
}

.craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: center;
}

.craft__materials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.material {
  min-height: 160px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(28, 28, 28, 0.14);
  padding: 1rem;
  display: flex;
  align-items: flex-end;
  font-weight: 600;
  color: #f7f1e8;
  box-shadow: var(--shadow-soft);
  transition: transform 280ms var(--ease-lux), filter 280ms var(--ease-lux), box-shadow 280ms var(--ease-lux);
}

.material:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 26px 52px rgba(33, 28, 22, 0.17);
}

.material--wool {
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.18), transparent 52%),
    linear-gradient(150deg, #9f8a76, #6f5d4b);
}

.material--leather {
  grid-row: span 2;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 9px),
    linear-gradient(146deg, #4d3829, #2e2118);
}

.material--technical {
  background:
    radial-gradient(circle at 75% 18%, rgba(192, 192, 192, 0.28), transparent 45%),
    linear-gradient(128deg, #434346, #2b2b2e);
}

.section--materials {
  padding-top: clamp(4.6rem, 8vw, 6.8rem);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 8% 20%, rgba(214, 198, 165, 0.18), transparent 42%);
}

.materials {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
}

.materials__stage {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 28, 28, 0.14);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #e8ddcd, #d4c0a8 48%, #bfa286);
  box-shadow: var(--shadow-deep);
}

#fabric-engine {
  display: block;
  width: 100%;
  height: 560px;
  cursor: grab;
}

#fabric-engine.is-dragging {
  cursor: grabbing;
}

.fabric-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 295px;
  border-radius: 10px;
  background: rgba(245, 241, 232, 0.96);
  border: 1px solid rgba(28, 28, 28, 0.22);
  box-shadow: 0 14px 34px rgba(28, 28, 28, 0.16);
  font-size: 0.93rem;
  line-height: 1.5;
  padding: 0.82rem 1rem;
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0);
  pointer-events: none;
  transition: opacity 200ms var(--ease-lux);
}

.fabric-tooltip strong {
  position: relative;
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-size: 1.04rem;
  margin-bottom: 0.3rem;
}

.fabric-tooltip strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(28, 28, 28, 0.95),
    rgba(28, 28, 28, 0.95) 5px,
    transparent 5px,
    transparent 10px
  );
  transform-origin: left;
  transform: scaleX(0);
  animation: stitch-appear 420ms var(--ease-lux) forwards;
}

.fabric-tooltip.is-visible {
  opacity: 1;
}

@keyframes stitch-appear {
  to {
    transform: scaleX(1);
  }
}

.section--motor {
  color: rgba(245, 241, 232, 0.94);
  background:
    radial-gradient(circle at 86% 16%, rgba(214, 198, 165, 0.11), transparent 34%),
    linear-gradient(125deg, #1d1b1a, #282522 52%, #221f1b);
}

.section--motor h2 {
  color: #f8f4ea;
}

.motor {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
}

.motor__panel {
  min-height: 340px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(192, 192, 192, 0.22);
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(90, 74, 61, 0.3), rgba(35, 31, 27, 0.76)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 2px, transparent 2px, transparent 15px);
}

.motor__line {
  width: 130%;
  height: 1px;
  margin-top: 23%;
  margin-left: -8%;
  transform: rotate(-4deg);
  background: repeating-linear-gradient(90deg, rgba(214, 198, 165, 0.72), rgba(214, 198, 165, 0.72) 4px, transparent 4px, transparent 11px);
}

.why-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 2rem;
}

.why-item {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.section--trust {
  text-align: center;
}

.trust {
  max-width: 860px;
}

.cta {
  border: 1px solid rgba(28, 28, 28, 0.14);
  border-radius: var(--radius-md);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16));
  box-shadow: var(--shadow-soft);
}

.footer {
  background: #171614;
  color: rgba(245, 241, 232, 0.88);
  padding: 2.4rem 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 1.2rem;
}

.footer__brand {
  font-family: "Playfair Display", serif;
  font-size: 1.34rem;
  margin-bottom: 0.5rem;
}

.footer__statement {
  color: rgba(245, 241, 232, 0.72);
}

.footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.footer__contact p {
  margin: 0 0 0.4rem;
}

.ambient-glow {
  position: fixed;
  z-index: 1;
  width: 320px;
  height: 320px;
  left: -120px;
  top: -120px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(214, 198, 165, 0.28), rgba(214, 198, 165, 0));
  transition: transform 500ms var(--ease-lux);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: transform 620ms var(--ease-lux), opacity 620ms var(--ease-lux);
}

.reveal--delay {
  transition-delay: 120ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .hero {
    min-height: auto;
    padding: 2.4rem 0 3.4rem;
  }

  .hero__grid,
  .intro,
  .craft,
  .materials,
  .motor,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  #hero-stitch-canvas {
    height: 400px;
  }

  .stitch-studio__header,
  .stitch-studio__footer {
    left: 0.8rem;
    right: 0.8rem;
  }

  .stitch-studio__hint {
    max-width: 180px;
  }

  .stitch-studio__controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-assessment__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .hero-assessment__form {
    grid-template-columns: 1fr;
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .service,
  .service:nth-child(1),
  .service:nth-child(2),
  .service:nth-child(3),
  .service:nth-child(4) {
    grid-column: auto;
  }

  .craft__materials {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .material--leather {
    grid-row: auto;
  }

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

  #fabric-engine {
    height: 460px;
  }
}

@media (max-width: 760px) {
  .topbar__nav {
    gap: 0.6rem;
    font-size: 0.84rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  #hero-stitch-canvas {
    height: 340px;
  }

  .stitch-studio__header,
  .stitch-studio__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .stitch-studio__controls {
    width: 100%;
  }

  .stitch-studio__controls label {
    flex: 1;
  }

  .stitch-studio__controls select {
    width: 100%;
  }

  .stitch-studio__actions {
    width: 100%;
  }

  .stitch-studio__reset {
    flex: 1;
  }

  .hero-assessment {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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