/* =========================================================
   White Lily: site styles
   Colors: paper white, thread navy, pattern tissue,
   marking red, lily green.
   Fonts: Cormorant Garamond (headings), Jost (text),
   Italiana (the White Lily name only).
   ========================================================= */

:root {
  --paper: #fafaf8;
  --mist: #eceff2;
  --ink: #1e2533;
  --ink-2: #4a5160;
  --ink-3: #5f6573;
  --tissue: #ebe0cb;
  --mark: #9e3a31;
  --lily: #3d5a46;
  --lily-deep: #24372b;
  --rule: rgba(30, 37, 51, .14);
  --bg: var(--paper);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wordmark: "Italiana", Georgia, serif;

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --sp: clamp(72px, 9vw, 128px);
  --head: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 5.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
p { margin: 0 0 1em; }

.lede { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 52ch; }
.prose p { max-width: 62ch; color: var(--ink-2); }
.note { color: var(--ink-3); font-size: .98rem; margin: 0 0 40px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sp); }
.section-tail { padding-bottom: var(--sp); }
.mist { background: var(--mist); --bg: var(--mist); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Links and buttons ---------- */
.link {
  display: inline-block;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(30, 37, 51, .35);
  text-underline-offset: .3em;
  transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  font: 500 1rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; }
.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 250, 248, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-head.scrolled::before { border-bottom-color: var(--rule); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--head); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.brand span { font-family: var(--wordmark); font-size: 1.5rem; letter-spacing: .03em; line-height: 1; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
  text-decoration: none;
  color: var(--ink-2);
  font-size: .98rem;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: .95rem; }

.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--ink); cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 1.5px; margin: 5px 0; background: currentColor; transition: transform .3s, opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed;
    top: var(--head);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px var(--gut) 40px;
    background: var(--paper);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s;
  }
  .menu-open .nav { transform: none; visibility: visible; }
  .nav-link { width: 100%; padding: 16px 0; font-family: var(--serif); font-size: 2rem; color: var(--ink); border-bottom: 1px solid var(--rule); }
  .nav-link:hover, .nav-link[aria-current="page"] { border-bottom-color: var(--rule); }
  .nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
  .nav .btn { margin-top: 32px; min-height: 52px; padding: 0 28px; font-size: 1rem; }
}

/* ---------- Frames and sewing-pattern drawings ---------- */
.frame { position: relative; overflow: hidden; background: var(--mist); }
.frame > img, .frame > video { width: 100%; height: 100%; object-fit: cover; }
.frame > svg { width: 100%; height: 100%; }
.frame.tissue { padding: clamp(16px, 3vw, 40px); }

.tissue {
  background-color: var(--tissue);
  background-image: radial-gradient(circle, rgba(30, 37, 51, .13) .7px, transparent .8px);
  background-size: 14px 14px;
}
.pattern { display: block; }
.pattern svg { width: 100%; height: 100%; }

.pt-cut { fill: none; stroke: var(--mark); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.pt-dashcut { stroke-dasharray: 7 5; }
.pt-sew { fill: none; stroke: var(--ink); stroke-opacity: .45; stroke-width: 1; stroke-dasharray: 5 4; }
.pt-mark { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.pt-dot { fill: var(--mark); }
.pt-t1 { font-family: var(--serif); font-size: 14px; fill: var(--ink); }
.pt-t2 { font-family: var(--sans); font-size: 8.5px; letter-spacing: .05em; fill: var(--ink-2); }

/* The hero drawing is "drafted" once when the page opens */
.drawing .pt-cut, .drawing .pt-mark { animation: wl-draw 2.2s cubic-bezier(.65, .05, .35, 1) forwards; }
.drawing .pt-sew, .drawing text, .drawing .pt-dot { opacity: 0; animation: wl-fade .9s ease 2s forwards; }
@keyframes wl-draw { to { stroke-dashoffset: 0; } }
@keyframes wl-fade { to { opacity: 1; } }

/* ---------- Home: hero ---------- */
.hero { padding-block: clamp(16px, 3vw, 40px) 0; }
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero-media {
  height: calc(100vh - var(--head) - 56px);
  height: calc(100svh - var(--head) - 56px);
  max-height: 820px;
  min-height: 480px;
}
.hero-text h1 { margin-bottom: 24px; }
.hero-text { padding-bottom: 8px; }

/* ---------- Section headings ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}
.sec-head p { color: var(--ink-2); max-width: 48ch; margin: 0; }

/* ---------- Home: pattern sheet of what Susan makes ---------- */
.sheet {
  list-style: none;
  margin: 0;
  padding: clamp(20px, 2.5vw, 36px);
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.sheet li { scroll-snap-align: start; }
.sheet a { display: block; text-decoration: none; color: var(--ink); }
.sheet .pattern { aspect-ratio: 200 / 260; }
.sheet-name { display: block; margin-top: 10px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.sheet a:hover .pt-cut, .sheet a:focus-visible .pt-cut { stroke: var(--ink); }
.sheet a:hover .sheet-name { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Galleries ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px clamp(16px, 2.5vw, 36px);
}
.gallery.is-empty { display: block; }
.work { margin: 0; }
.work-open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; text-decoration: none; }
.work-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-img .pattern { width: 100%; height: 100%; padding: 12%; }
.work figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.work-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.work-meta { font-size: .9rem; color: var(--ink-3); white-space: nowrap; }
.work-req {
  display: inline-block;
  margin-top: 6px;
  font-size: .92rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: rgba(30, 37, 51, .3);
  text-underline-offset: .25em;
}
.work-req:hover { color: var(--ink); text-decoration-color: var(--ink); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0 0 48px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.filter {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 8px 0;
  font: 400 1rem var(--sans);
  color: var(--ink-3);
  cursor: pointer;
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.filter-count { font-size: .8rem; margin-left: 2px; }

.empty {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
}
.empty h2 { margin-bottom: 16px; }
.empty p { color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.empty .pattern { width: 100%; max-width: 240px; aspect-ratio: 200 / 260; justify-self: center; }

/* ---------- Home: meet Susan ---------- */
.meet-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.portrait { aspect-ratio: 4 / 5; }
.meet h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-bottom: 24px; max-width: 22ch; }
.meet p { color: var(--ink-2); max-width: 56ch; }

/* ---------- Home: promises ---------- */
.promise-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.promise-in h2 { max-width: 14ch; }
.promise-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.promise-list dt { position: relative; padding-left: 24px; margin-bottom: 8px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.promise-list dt::before {
  /* a pattern notch */
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--mark);
}
.promise-list dd { margin: 0; padding-left: 24px; color: var(--ink-2); }

/* ---------- Steps (a real sequence, joined by a stitch line) ---------- */
.steps-list {
  --n: 3;
  list-style: none;
  margin: 56px 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 40px;
  counter-reset: step;
  position: relative;
}
.steps-list.four { --n: 4; }
.steps-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  border-top: 1.5px dashed var(--mark);
  opacity: .6;
}
.steps-list li { position: relative; counter-increment: step; }
.steps-list li::before {
  content: counter(step);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--bg);
  font-family: var(--serif);
  font-size: 1.6rem;
}
.steps-list h3 { margin-bottom: 10px; }
.steps-list p { color: var(--ink-2); max-width: 34ch; margin: 0; }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(48px, 8vw, 112px) clamp(32px, 4vw, 56px); }
.page-head h1 { margin-bottom: 20px; }

.chosen {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 520px;
  padding: 14px;
  margin-bottom: 40px;
  border: 1px solid var(--rule);
}
.chosen-img { flex: none; width: 84px; aspect-ratio: 4 / 5; overflow: hidden; }
.chosen-img img { width: 100%; height: 100%; object-fit: cover; }
.chosen-img .pattern { width: 100%; height: 100%; padding: 8px; }
.chosen p { margin: 0; }
.chosen-label { font-size: .9rem; color: var(--ink-3); }
.chosen-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin-bottom: 4px !important; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.row h2, .row h3 { font-size: 1.6rem; font-weight: 400; line-height: 1.2; }
.row p { margin: 0; color: var(--ink-2); max-width: 54ch; }
.row .link { justify-self: end; }
.row.has-pattern { grid-template-columns: 96px minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2.6fr); align-items: center; }
.row .pattern { width: 96px; aspect-ratio: 200 / 260; padding: 6px; }
.rows-title { margin-bottom: 32px; }

.check {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
  max-width: 980px;
}
.check li { position: relative; padding-left: 32px; color: var(--ink-2); }
.check li::before { content: ""; position: absolute; left: 0; top: .8em; width: 20px; border-top: 1.5px dashed var(--mark); }

.status {
  max-width: 760px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--mist);
  border-left: 3px solid var(--ink);
}
.mist .status { background: var(--paper); }
.status h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 12px; }
.status p { color: var(--ink-2); margin-bottom: 0; max-width: 56ch; }
.status .actions { margin-top: 24px; }
.status-alt { margin-top: 16px !important; }
.contact-list { margin: 20px 0 0; display: grid; gap: 10px; }
.contact-list div { display: flex; gap: 16px; }
.contact-list dt { min-width: 64px; color: var(--ink-3); }
.contact-list dd { margin: 0; }

.about-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 96px) var(--sp);
}
.about-in .portrait { position: sticky; top: calc(var(--head) + 24px); }
.about-in h1 { margin-bottom: 12px; }
.about-in .lede { margin-bottom: 32px; }

.group-note {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

/* ---------- Healthcare page ---------- */
.hc-hero { background: var(--lily-deep); color: #fff; padding-block: clamp(56px, 8vw, 112px); }
.hc-hero h1 { max-width: 16ch; margin-bottom: 20px; }
.hc-hero .lede { color: rgba(255, 255, 255, .82); }
.crumb { font-size: .95rem; color: rgba(255, 255, 255, .72); margin-bottom: 28px; }
.crumb a { color: #fff; }
.area-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.area-list li { padding: 24px 0; border-top: 1px solid var(--rule); }
.area-list h3 { font-size: 1.45rem; margin-bottom: 6px; }
.area-list p { color: var(--ink-2); margin: 0; }
.hc .status { border-left-color: var(--lily); }

/* ---------- Footer with a fabric selvedge ---------- */
.selvedge {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: .75rem;
  letter-spacing: .04em;
}
.selvedge i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.selvedge .c1 { background: var(--ink); }
.selvedge .c2 { background: var(--mark); }
.selvedge .c3 { background: var(--lily); }
.selvedge .c4 { background: var(--tissue); box-shadow: inset 0 0 0 1px rgba(30, 37, 51, .25); }

.site-foot { background: var(--ink); color: rgba(255, 255, 255, .78); }
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 48px;
  padding-block: 72px 48px;
}
.site-foot .brand { color: #fff; }
.foot-brand p { margin-top: 18px; max-width: 36ch; font-size: .95rem; }
.foot-col h2 { font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: 0; color: #fff; margin-bottom: 14px; }
.foot-col a { display: block; padding: 5px 0; color: rgba(255, 255, 255, .8); text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-col p { font-size: .95rem; max-width: 34ch; margin-bottom: 10px; }
.foot-base { font-size: .88rem; color: rgba(255, 255, 255, .62); }
.foot-base p { margin: 0; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); }
.lb-backdrop { position: absolute; inset: 0; background: rgba(20, 24, 33, .86); }
.lb-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  width: min(1180px, 100%);
  height: min(860px, 100%);
  overflow: hidden;
  background: var(--paper);
  animation: lb-in .35s cubic-bezier(.2, .7, .2, 1);
}
@keyframes lb-in { from { opacity: 0; transform: translateY(12px); } }
.lb-stage { position: relative; min-height: 0; background: var(--mist); }
.lb-media { position: absolute; inset: 0; }
.lb-media.tissue { padding: 32px; }
.lb-media img, .lb-media video { width: 100%; height: 100%; object-fit: contain; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 250, 248, .94);
  color: var(--ink);
  cursor: pointer;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-info { display: flex; flex-direction: column; padding: 64px 40px 40px; overflow: auto; }
.lb-cat { color: var(--ink-3); margin-bottom: 8px; }
.lb-info h2 { margin-bottom: 16px; }
.lb-desc { color: var(--ink-2); }
.lb-count { color: var(--ink-3); font-size: .92rem; }
.lb-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 28px; }
.lb-thumb { padding: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid transparent; background: var(--mist); cursor: pointer; font: 400 .85rem var(--sans); color: var(--ink); }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb[aria-current="true"] { border-color: var(--ink); outline: 1px solid var(--ink); }
.lb-info .btn { margin-top: auto; align-self: flex-start; }
.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sheet { grid-template-columns: repeat(7, minmax(160px, 30%)); }
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-text { order: -1; }
  .hero-media { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 5; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .work figcaption { flex-direction: column; gap: 2px; }
  .meet-in, .promise-in, .group-note, .about-in { grid-template-columns: 1fr; }
  .portrait { max-width: 440px; }
  .about-in .portrait { position: static; }
  .promise-list { grid-template-columns: 1fr; gap: 28px; }
  .steps-list, .steps-list.four { grid-template-columns: 1fr; gap: 32px; }
  .steps-list::before { left: 28px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1.5px dashed var(--mark); }
  .steps-list li { padding-left: 80px; min-height: 56px; }
  .steps-list li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .empty { grid-template-columns: 1fr; }
  .empty .pattern { max-width: 170px; justify-self: start; order: -1; }
  .area-list { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .lb { padding: 0; }
  .lb-panel { grid-template-columns: 1fr; grid-template-rows: auto auto; height: 100%; overflow-y: auto; }
  .lb-stage { height: 62vh; }
  .lb-info { padding: 24px var(--gut) 40px; overflow: visible; }
  .lb-info .btn { margin-top: 8px; }
  .lb-close { background: rgba(250, 250, 248, .94); }
}

@media (max-width: 800px) {
  .row, .row.has-pattern { grid-template-columns: 1fr; gap: 10px; }
  .row .link { justify-self: start; }
  .row .pattern { width: 84px; }
  .check { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .sheet { grid-template-columns: repeat(7, minmax(140px, 44%)); }
  .foot-in { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .drawing .pt-sew, .drawing text, .drawing .pt-dot { opacity: 1; }
  .drawing .pt-cut, .drawing .pt-mark { stroke-dashoffset: 0 !important; }
}
