:root {
  --cream: #f3ebdd;
  --cocoa: #4b3427;
  --oat: #dccfc0;
  --blush: #e8b8b1;
  --lavender: #bfa7d8;
  --sage: #aab79e;
  --blue: #a9c1d9;
  --white: #fffdf8;
  --line: #4b3427;
  --shadow: 7px 7px 0 var(--cocoa);
  --text: #171717;
  --action-blue: #315f78;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--cream); font-family: "Poppins", ui-sans-serif, system-ui, sans-serif; font-size: 1rem; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; }
h2 { margin-bottom: 1rem; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
h3 { margin-bottom: .75rem; font-size: 1.55rem; line-height: 1.05; }

.site-header { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1440px; margin: 0 auto; padding: 1rem clamp(1.2rem, 4vw, 4rem); border-bottom: 2px solid var(--line); background: var(--cream); }
.brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: center; font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: 1.2rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.brand-mascot { width: 3.25rem; height: 3.25rem; object-fit: contain; filter: drop-shadow(2px 2px 0 rgba(75,52,39,.2)); }
.nav-group { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav-right { justify-content: flex-end; }
.nav-group a { font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: .9rem; font-weight: 850; text-decoration: none; }
.nav-group a:hover, .nav-group a:focus-visible, .footer-links a:hover, .footer-links a:focus-visible { text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: .2rem; text-underline-offset: .3rem; }
.nav-contact { padding: .62rem 1rem; border-radius: 999px; color: var(--cream); background: var(--cocoa); }
.mobile-quick-nav { display: none; }

.building-note { padding: .78rem 1.25rem; color: var(--cream); background: var(--cocoa); text-align: center; }
.building-note p { margin: 0; }
.building-note a { font-weight: 850; text-underline-offset: .2rem; }

.hero { max-width: 1440px; margin: 0 auto; padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.2rem, 4vw, 4rem) 5rem; text-align: center; }
.eyebrow { margin: 0 0 1rem; font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: var(--cream); opacity: .82; }
.hero h1 { max-width: 1050px; margin: 0 auto 1.5rem; font-size: clamp(3.4rem, 7vw, 7rem); line-height: .88; letter-spacing: -.072em; }
.hero-lede { max-width: 720px; margin: 0 auto 3.2rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-shop-button { margin: -1rem auto 3.2rem; }

.door-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1320px; margin: 0 auto; border: 2px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.door { position: relative; display: flex; min-height: 290px; padding: 1.35rem 1.15rem; flex-direction: column; border-right: 2px solid var(--line); text-decoration: none; transition: transform 150ms ease, filter 150ms ease; }
.door:last-child { border-right: 0; }
.door:hover, .door:focus-visible { z-index: 2; transform: translateY(-8px); filter: saturate(1.08); outline: 3px solid var(--cocoa); outline-offset: -3px; }
.door-number { font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.door-copy { margin-top: auto; }
.door-copy strong { display: block; margin-bottom: .6rem; font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: 1.25rem; line-height: 1.05; }
.door-copy small { display: block; font-size: .82rem; line-height: 1.45; }
.door-arrow { position: absolute; right: 1.1rem; bottom: .8rem; font-size: 1.6rem; font-weight: 900; }
.door-sage { background: var(--sage); }
.door-blush { background: var(--blush); }
.door-oat { background: var(--oat); }
.door-blue { background: var(--blue); }
.door-lavender { background: var(--lavender); }

.section, .section-narrow { max-width: 1240px; margin: 0 auto; padding: 7rem 2rem; }
.section-narrow { max-width: 1180px; }
.section-heading { max-width: 820px; margin-bottom: 3rem; }
.section-heading > p:last-child, .split-heading > p { max-width: 650px; font-size: 1.1rem; }
.split-heading { display: grid; grid-template-columns: 1fr .78fr; gap: 5rem; max-width: none; align-items: end; }
.split-heading p { margin-bottom: 1rem; }

.shop-rests { display: grid; grid-template-columns: 120px 1fr; gap: 2rem; align-items: center; margin-top: 1rem; padding-block: 2.4rem; padding-inline: 2.6rem; border-radius: 1.25rem; color: var(--cream); background: var(--cocoa); }
.shop-rests img { width: 110px; height: 110px; object-fit: contain; }
.shop-rests h2 { margin-bottom: .55rem; font-size: clamp(2rem, 4vw, 3.35rem); }
.shop-rests p:last-child { max-width: 850px; margin-bottom: 0; color: rgba(243,235,221,.82); }

.world-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.world-card { display: flex; min-height: 330px; padding: 1.7rem; flex-direction: column; border: 2px solid var(--line); border-radius: 1rem; background: var(--white); box-shadow: 5px 5px 0 var(--cocoa); }
.world-card:nth-child(1) { border-top: .65rem solid var(--sage); }
.world-card:nth-child(2) { border-top: .65rem solid var(--blush); }
.world-card:nth-child(3) { border-top: .65rem solid var(--blue); }
.world-label, .card-kicker { margin-bottom: 2.8rem; font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: .74rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.link-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }
.link-row a { padding: .42rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 800; text-decoration: none; }
.link-row a:hover, .link-row a:focus-visible { color: var(--cream); background: var(--cocoa); }

.shop-section { max-width: 1320px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.product-card { overflow: hidden; border: 2px solid var(--line); border-radius: 1.2rem; background: var(--white); box-shadow: 6px 6px 0 var(--cocoa); }
.product-art { display: grid; min-height: 260px; place-items: center; border-bottom: 2px solid var(--line); }
.product-art span { padding: 1rem 1.2rem; border: 3px double var(--line); border-radius: .6rem; background: var(--cream); box-shadow: 6px 6px 0 rgba(75,52,39,.26); font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; font-size: 1.35rem; font-weight: 800; line-height: 1.05; text-align: center; }
.product-stickers .product-art { background: var(--blush); }
.product-tools .product-art { background: var(--sage); }
.product-tools .product-art span { color: var(--text); }
.product-yarn .product-art { background: var(--oat); }
.product-yarn .product-art span { border-radius: 999px; color: var(--cream); background: var(--cocoa); }
.product-copy { padding: 1.5rem; }
.product-copy .card-kicker { margin-bottom: .65rem; }
.product-copy h3 { font-size: 1.6rem; }
.product-shop-button { width: 100%; margin-top: 1rem; }
.status-tag { display: inline-block; margin-top: .5rem; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); font-size: .78rem; font-weight: 850; }
.shop-guardrail { margin-top: 2rem; padding: 1rem 1.2rem; border-left: .45rem solid var(--cocoa); background: var(--lavender); }

.continuity-feature { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; padding: 7rem max(2rem, calc((100vw - 1180px) / 2)); color: var(--cream); background: var(--cocoa); }
.continuity-copy p:last-child { max-width: 520px; color: rgba(243,235,221,.82); font-size: 1.08rem; }
.mini-steps { margin: 0; padding: 0; list-style: none; }
.mini-steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid rgba(243,235,221,.35); }
.mini-steps li:last-child { border-bottom: 1px solid rgba(243,235,221,.35); }
.mini-steps > li > span { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: 50%; color: var(--cocoa); background: var(--blush); font-weight: 900; }
.mini-steps strong { font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: 1.2rem; }
.mini-steps p { margin: .2rem 0 0; color: rgba(243,235,221,.75); }

.app-section { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.app-mark { display: grid; width: 220px; height: 220px; place-items: center; border: 2px solid var(--line); border-radius: 28% 72% 60% 40% / 43% 35% 65% 57%; background: var(--blue); box-shadow: 10px 10px 0 var(--cocoa); font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: 4rem; font-weight: 900; }
.app-section h2 { max-width: 850px; }
.app-section p { max-width: 780px; font-size: 1.08rem; }
.quiet-status { display: inline-block; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--oat); font-size: .82rem; font-weight: 850; }

.learn-work-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 1280px; }
.learn-work-section article { display: flex; min-height: 440px; padding: clamp(1.7rem, 4vw, 3rem); flex-direction: column; border: 2px solid var(--line); border-radius: 1.25rem; }
.learn-work-section article:first-child { background: var(--oat); }
.learn-work-section article:last-child { background: var(--blue); }
.learn-work-section h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
.learn-work-section p { max-width: 580px; font-size: 1.05rem; }
.learn-work-section .text-link, .learn-work-section .button { margin-top: auto; align-self: flex-start; }
.learn-work-section small { display: block; max-width: 470px; margin-top: 1rem; }
.text-link { font-weight: 850; text-underline-offset: .25rem; }
.button { display: inline-flex; justify-content: center; padding: .85rem 1.1rem; border: 2px solid var(--line); border-radius: .55rem; color: var(--cream); background: var(--cocoa); box-shadow: 4px 4px 0 rgba(75,52,39,.35); font-weight: 850; text-decoration: none; cursor: pointer; transition: transform 140ms ease, box-shadow 140ms ease; }
.button:hover, .button:focus-visible { transform: translate(2px,2px); box-shadow: 2px 2px 0 rgba(75,52,39,.35); }
.button:disabled { opacity: .62; cursor: wait; }

.request-section { display: grid; grid-template-columns: 1fr .75fr; gap: 5rem; align-items: center; margin-bottom: 5rem; border: 2px solid var(--line); border-radius: 1.4rem; background: var(--blush); box-shadow: var(--shadow); }
.request-section h2 { font-size: clamp(2.3rem, 4vw, 4rem); }
.request-section > div:last-child { font-size: 1.08rem; }
.request-note { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--cream); font-weight: 850; }

.about-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.about-mascot { display: grid; min-height: 360px; place-items: center; border: 2px solid var(--line); border-radius: 1.2rem; background: var(--sage); box-shadow: var(--shadow); }
.about-mascot img { width: min(72%, 260px); filter: drop-shadow(8px 9px 0 rgba(75,52,39,.25)); }
.about-section h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
.about-section p { max-width: 720px; font-size: 1.05rem; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; padding: 2rem max(1.2rem, calc((100vw - 1240px) / 2)); border-top: 2px solid var(--line); color: var(--cream); background: var(--cocoa); }
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; }
.footer-brand img { width: 2.8rem; height: 2.8rem; object-fit: contain; }
footer p { margin: 0; text-align: center; }
.footer-links { display: flex; justify-content: flex-end; gap: 1.25rem; }
.footer-links a { font-size: .9rem; font-weight: 800; }

.contact-main { display: grid; grid-template-columns: minmax(0,.82fr) minmax(480px,1.18fr); gap: clamp(2.5rem,7vw,7rem); align-items: start; max-width: 1240px; min-height: calc(100vh - 180px); margin: 0 auto; padding: 5rem 2rem 7rem; }
.contact-intro { position: sticky; top: 2rem; }
.contact-intro h1 { margin-bottom: 1.5rem; font-size: clamp(3.4rem,6vw,6rem); line-height: .92; letter-spacing: -.06em; }
.contact-intro .hero-lede { margin: 0 0 2rem; }
.contact-note { display: flex; max-width: 450px; padding: 1.2rem; flex-direction: column; border: 2px solid var(--line); border-radius: .9rem; background: var(--sage); box-shadow: 5px 5px 0 var(--cocoa); }
.contact-form-shell { padding: clamp(1.5rem,4vw,2.7rem); border: 2px solid var(--line); border-radius: 1.5rem; background: var(--oat); box-shadow: var(--shadow); }
.contact-form-heading { margin-bottom: 2rem; }
.contact-form-heading h2 { margin-bottom: .65rem; font-size: clamp(2.3rem,4vw,3.6rem); }
.contact-form-heading p:last-child { margin-bottom: 0; }
.contact-form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.contact-form label { display: grid; gap: .45rem; font-weight: 850; }
.contact-form label > span { display: flex; justify-content: space-between; gap: 1rem; }
.contact-form label em { font-size: .74rem; font-style: normal; letter-spacing: .07em; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 2px solid var(--line); border-radius: .6rem; color: var(--cocoa); background: var(--white); font: inherit; }
.contact-form input, .contact-form select { min-height: 3.2rem; padding: .7rem .8rem; }
.contact-form textarea { min-height: 11rem; padding: .8rem; resize: vertical; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 4px solid rgba(191,167,216,.8); outline-offset: 1px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-actions { display: flex; align-items: center; gap: 1rem; min-height: 3.4rem; }
.form-status { margin: 0; font-weight: 800; }
.form-success { color: #1d704f; }
.form-error { color: #9b2941; }

@media (max-width: 1040px) {
  .door-grid { grid-template-columns: repeat(2,1fr); }
  .door { min-height: 220px; border-bottom: 2px solid var(--line); }
  .door:nth-child(2), .door:nth-child(4) { border-right: 0; }
  .door:last-child { grid-column: 1 / -1; min-height: 190px; border-bottom: 0; }
  .world-grid, .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: .8fr 1.2fr; }
  .product-art { min-height: 280px; border-right: 2px solid var(--line); border-bottom: 0; }
  .world-card { min-height: 260px; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .nav-left, .site-header .nav-right a:not(.nav-contact) { display: none; }
  .brand { justify-self: start; grid-column: 1; grid-row: 1; }
  .nav-right { grid-column: 2; grid-row: 1; }
  .mobile-quick-nav { display: flex; gap: 1.25rem; padding: .75rem 1.2rem; overflow-x: auto; border-bottom: 2px solid var(--line); background: var(--cream); white-space: nowrap; }
  .mobile-quick-nav a { font-size: .84rem; font-weight: 850; text-decoration: none; }
  .building-note { text-align: left; }
  .split-heading, .continuity-feature, .app-section, .learn-work-section, .request-section, .about-section, .contact-main { grid-template-columns: 1fr; gap: 2rem; }
  .shop-rests { margin-inline: 1rem; }
  .app-mark { width: 170px; height: 170px; }
  .about-mascot { min-height: 280px; }
  .contact-intro { position: static; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .site-header { padding-inline: 1rem; }
  .brand-mascot { width: 2.7rem; height: 2.7rem; }
  .brand { font-size: 1.05rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .hero h1 { font-size: clamp(3rem,15vw,4.5rem); }
  .door-grid { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--cocoa); }
  .door, .door:last-child { grid-column: auto; min-height: 200px; border-right: 0; border-bottom: 2px solid var(--line); }
  .door:last-child { border-bottom: 0; }
  .section, .section-narrow { padding: 5rem 1.1rem; }
  .shop-rests { grid-template-columns: 1fr; padding: 2rem 1.3rem; text-align: left; }
  .shop-rests img { width: 88px; height: 88px; }
  .product-card { display: block; }
  .product-art { min-height: 220px; border-right: 0; border-bottom: 2px solid var(--line); }
  .continuity-feature { padding: 5rem 1.1rem; }
  .learn-work-section article { min-height: 390px; }
  .request-section { margin-inline: 1rem; padding: 2rem 1.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-main { padding: 4rem 1.1rem 5rem; }
  .contact-form-shell { padding: 1.2rem; border-radius: 1rem; }
  .form-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .door, .button { transition: none; }
}

/* Approved V2 palette: ivory canvas, cocoa structure, balanced Brain Hug pastels. */
:root {
  --cream: #fcfaf5;
  --white: #fffefa;
  --oat: #f4ddcc;
  --blush: #f3d4d1;
  --lavender: #ddcfee;
  --lilac: #eee7f7;
  --sage: #d3e0cd;
  --blue: #d4e5f1;
  --butter: #f7edc4;
  --apricot: #f5dcc9;
  --shadow: 3px 3px 0 rgba(75, 52, 39, .48);
}

.nav-contact {
  color: var(--cocoa);
  background: var(--lavender);
  border: 2px solid var(--cocoa);
}

.building-note {
  color: var(--cocoa);
  background: var(--butter);
  border-bottom: 1px solid var(--cocoa);
}

.eyebrow.light { color: inherit; opacity: .76; }
.door-grid, .door { border-color: var(--cocoa); }
.door-sage { background: var(--sage); }
.door-blush { background: var(--blush); }
.door-oat { background: var(--butter); }
.door-blue { background: var(--blue); }
.door-lavender { background: var(--lavender); }

.shop-rests {
  color: var(--cocoa);
  background: var(--white);
  border: 2px solid var(--cocoa);
}

.shop-rests p:last-child { color: rgba(75, 52, 39, .76); }

.world-card {
  background: var(--white);
  border-color: var(--cocoa);
  box-shadow: 2px 2px 0 rgba(75, 52, 39, .42);
}

.world-card:nth-child(1) { border-top-color: var(--sage); }
.world-card:nth-child(2) { border-top-color: var(--blush); }
.world-card:nth-child(3) { border-top-color: var(--blue); }

.product-card {
  background: var(--white);
  border-color: var(--cocoa);
  box-shadow: 3px 3px 0 rgba(75, 52, 39, .46);
}

.product-stickers .product-art { background: var(--lavender); }
.product-tools .product-art { color: var(--cocoa); background: var(--sage); }
.product-yarn .product-art { background: var(--apricot); }
.shop-guardrail { background: var(--butter); border-left-color: var(--cocoa); }

.continuity-feature {
  color: var(--cocoa);
  background: var(--blue);
  border-block: 2px solid var(--cocoa);
}

.continuity-copy p:last-child,
.mini-steps p { color: rgba(75, 52, 39, .82); }
.mini-steps li { border-color: rgba(75, 52, 39, .32); }
.mini-steps > li > span {
  color: var(--cocoa);
  background: var(--butter);
  border: 1px solid var(--cocoa);
}

.app-mark {
  background: var(--lavender);
  border-color: var(--cocoa);
  box-shadow: 4px 4px 0 rgba(75, 52, 39, .48);
}

.quiet-status { background: var(--lilac); border-color: var(--cocoa); }
.learn-work-section article { border-color: var(--cocoa); }
.learn-work-section article:first-child { background: var(--butter); }
.learn-work-section article:last-child { background: var(--sage); }

.request-section {
  background: var(--blush);
  border-color: var(--cocoa);
}

.request-note { border-color: var(--cocoa); }
.about-mascot { background: var(--lavender); border-color: var(--cocoa); }
.about-mascot img { filter: drop-shadow(4px 4px 0 rgba(75, 52, 39, .14)); }
.button { box-shadow: 2px 2px 0 rgba(75, 52, 39, .2); }

/* Ordinary page copy defaults to near-black. Colored objects retain the
   warmer cocoa ink that belongs to the Brain Hug visual system. */
.building-note,
.door,
.shop-rests,
.world-card,
.product-card,
.shop-guardrail,
.app-mark,
.quiet-status,
.learn-work-section article,
.request-section,
.request-note,
.about-mascot,
.contact-note,
.contact-form-shell,
.yarn-hero-mascot,
.yarn-about-copy,
.yarn-lines article,
.yarn-empty,
.yarn-product-card,
.yarn-process-grid li,
.yarn-demonstration,
.yarn-demo-mark,
.yarn-permanent-home {
  color: var(--cocoa);
}

.continuity-feature,
.continuity-feature .eyebrow { color: var(--cocoa); }

/* Reserve the deeper Brain Hug blue for customer shopping actions. */
.hero-shop-button,
.product-shop-button {
  color: var(--white);
  background: var(--action-blue);
  border-color: var(--action-blue);
}

/* Permanent Brain Hug Yarn landing page. */
.yarn-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 2rem 5rem;
}
.yarn-hero h1 { max-width: 760px; margin-bottom: 1.5rem; font-size: clamp(3.8rem, 8vw, 7.4rem); line-height: .86; letter-spacing: -.075em; }
.yarn-tagline { max-width: 650px; margin: 0 0 .9rem; font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.18; }
.yarn-lede { max-width: 690px; margin-bottom: 2rem; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.yarn-hero-mascot { display: grid; min-height: 430px; place-items: center; border: 2px solid var(--cocoa); border-radius: 2.2rem; background: linear-gradient(145deg, var(--lavender), var(--apricot)); box-shadow: var(--shadow); }
.yarn-hero-mascot img { width: min(92%, 500px); max-height: 390px; object-fit: contain; filter: drop-shadow(4px 5px 0 rgba(75,52,39,.13)); }
.yarn-about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.yarn-about-copy { padding: clamp(1.5rem, 3vw, 2.5rem); border: 2px solid var(--cocoa); border-radius: 1.5rem; background: var(--butter); box-shadow: var(--shadow); }
.yarn-about-copy p:last-child { margin-bottom: 0; }
.yarn-lines { display: grid; grid-template-columns: 1fr 1fr; border-block: 2px solid var(--cocoa); background: var(--white); }
.yarn-lines article { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: clamp(2.5rem, 5vw, 5rem) max(2rem, calc((100vw - 1180px) / 2)); }
.yarn-lines article:first-child { padding-right: clamp(2rem, 5vw, 4rem); border-right: 2px solid var(--cocoa); background: var(--sage); }
.yarn-lines article:last-child { padding-left: clamp(2rem, 5vw, 4rem); background: var(--blue); }
.yarn-lines h2 { font-size: clamp(2rem, 3.7vw, 3.65rem); }
.yarn-lines p:last-child { max-width: 560px; margin-bottom: 0; }
.yarn-line-code { display: grid; width: 3.4rem; height: 3.4rem; place-items: center; border: 2px solid var(--cocoa); border-radius: 50%; background: var(--cream); font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-weight: 900; }
.yarn-catalog { max-width: 1320px; }
.yarn-catalog-status { min-height: 180px; }
.yarn-empty { padding: clamp(2rem, 5vw, 3.5rem); border: 2px dashed var(--cocoa); border-radius: 1.5rem; background: var(--lilac); text-align: center; }
.yarn-empty strong { display: block; margin-bottom: .55rem; font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.yarn-empty p { max-width: 660px; margin: 0 auto; }
.yarn-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.yarn-product-card { overflow: hidden; border: 2px solid var(--cocoa); border-radius: 1.5rem; background: var(--white); box-shadow: var(--shadow); }
.yarn-product-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 260px 96px; gap: .45rem; padding: .45rem; border-bottom: 2px solid var(--cocoa); background: var(--apricot); }
.yarn-product-image { display: grid; min-height: 0; margin: 0; place-items: center; overflow: hidden; border: 1px solid var(--cocoa); border-radius: .9rem; background: var(--cream); font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: 1.25rem; font-weight: 900; letter-spacing: .08em; }
.yarn-product-image-primary { grid-column: 1 / -1; }
.yarn-product-image-fallback { grid-column: 1 / -1; grid-row: 1 / -1; min-height: 360px; border: 0; }
.yarn-product-image img { width: 100%; height: 100%; object-fit: cover; }
.yarn-product-copy { padding: 1.5rem; }
.yarn-product-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; font-size: .8rem; font-weight: 850; letter-spacing: .06em; }
.yarn-stock-status { padding: .25rem .5rem; border: 1px solid var(--cocoa); border-radius: 999px; background: var(--butter); }
.yarn-product-classification { margin: 0 0 .45rem; color: var(--purple); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.yarn-product-summary { min-height: 3.25rem; }
.yarn-product-details { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .8rem; margin: 1.25rem 0; padding: 1rem 0; border-block: 1px solid var(--cocoa); }
.yarn-product-details dt { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.yarn-product-details dd { margin: 0; text-align: right; }
.yarn-product-care { font-size: .9rem; }
.yarn-product-footer { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: 1.1rem; }
.yarn-batch-status { font-size: .82rem; font-weight: 800; }
.yarn-product-price { font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: 1.25rem; }
.yarn-shop-link { display: block; margin-top: 1.25rem; text-align: center; }
.yarn-product-card.is-sold .yarn-product-gallery { filter: grayscale(.35); opacity: .78; }
.yarn-product-card.is-sold .yarn-stock-status { background: var(--blush); }
.yarn-process { max-width: 1320px; padding-top: 2rem; }
.yarn-process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.yarn-process-grid li { overflow: hidden; border: 2px solid var(--cocoa); border-radius: 1.4rem; background: var(--white); box-shadow: var(--shadow); }
.yarn-process-grid li > div:last-child { padding: 1.3rem; }
.yarn-process-grid h3 { margin-bottom: .45rem; }
.yarn-process-grid p { margin-bottom: 0; font-size: .93rem; }
.yarn-process-photo { display: grid; min-height: 220px; place-content: center; gap: .4rem; border-bottom: 2px solid var(--cocoa); background: repeating-linear-gradient(135deg, var(--lilac), var(--lilac) 18px, var(--cream) 18px, var(--cream) 36px); text-align: center; }
.yarn-process-grid li:nth-child(2) .yarn-process-photo { background: repeating-linear-gradient(45deg, var(--sage), var(--sage) 18px, var(--cream) 18px, var(--cream) 36px); }
.yarn-process-grid li:nth-child(3) .yarn-process-photo { background: repeating-linear-gradient(135deg, var(--blue), var(--blue) 18px, var(--cream) 18px, var(--cream) 36px); }
.yarn-process-grid li:nth-child(4) .yarn-process-photo { background: repeating-linear-gradient(45deg, var(--apricot), var(--apricot) 18px, var(--cream) 18px, var(--cream) 36px); }
.yarn-process-photo span { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.yarn-process-photo strong { font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: 1.35rem; }
.yarn-process-number { display: inline-block; margin-bottom: .7rem; color: var(--purple); font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-weight: 900; }
.yarn-demonstration { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-bottom: 6rem; border: 2px solid var(--cocoa); border-radius: 1.8rem; background: var(--sage); box-shadow: var(--shadow); }
.yarn-demo-mark { display: grid; min-height: 280px; place-items: center; padding: 1.5rem; border: 2px solid var(--cocoa); border-radius: 1.3rem; background: var(--white); font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 900; line-height: .9; text-align: center; }
.yarn-demo-mark span { display: block; color: var(--purple); }
.yarn-demonstration h2 { font-size: clamp(2.4rem, 4.5vw, 4.6rem); }
.yarn-demonstration p { max-width: 670px; }
.yarn-permanent-home { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; margin-bottom: 6rem; border: 2px solid var(--cocoa); border-radius: 1.8rem; background: var(--blush); box-shadow: var(--shadow); }
.yarn-permanent-home h2 { font-size: clamp(2.4rem, 4.5vw, 4.6rem); }
.yarn-permanent-home > p { font-size: 1.08rem; }

@media (max-width: 900px) {
  .yarn-hero, .yarn-about, .yarn-lines, .yarn-demonstration, .yarn-permanent-home { grid-template-columns: 1fr; }
  .yarn-hero-mascot { min-height: 320px; }
  .yarn-lines article:first-child { padding-right: 2rem; border-right: 0; border-bottom: 2px solid var(--cocoa); }
  .yarn-lines article:last-child { padding-left: 2rem; }
  .yarn-product-grid { grid-template-columns: 1fr 1fr; }
  .yarn-process-grid { grid-template-columns: 1fr 1fr; }
  .yarn-demonstration { margin-inline: 1rem; }
  .yarn-permanent-home { margin-inline: 1rem; }
}

@media (max-width: 600px) {
  .yarn-hero { padding: 3.5rem 1.1rem 4rem; }
  .yarn-hero h1 { font-size: clamp(3.35rem, 17vw, 5rem); }
  .yarn-hero-mascot { min-height: 260px; }
  .yarn-lines article { grid-template-columns: 1fr; padding: 3rem 1.1rem !important; }
  .yarn-product-grid { grid-template-columns: 1fr; }
  .yarn-process-grid { grid-template-columns: 1fr; }
  .yarn-demonstration { padding: 2.5rem 1.2rem; }
  .yarn-product-details { grid-template-columns: 1fr; }
  .yarn-product-details dd { margin-bottom: .45rem; text-align: left; }
  .yarn-permanent-home { padding: 2.5rem 1.2rem; }
}

/* Softer paper-object shapes and a reliable inline mascot crop. */
.door-grid {
  overflow: hidden;
  border-radius: 1.5rem;
}

.shop-rests,
.world-card,
.product-card,
.learn-work-section article,
.about-mascot,
.contact-note,
.contact-form-shell {
  border-radius: 1.5rem;
}

.request-section { border-radius: 1.8rem; }
.product-art span, .request-note { border-radius: .9rem; }
.button { border-radius: .85rem; }
.contact-form input,
.contact-form select,
.contact-form textarea { border-radius: .85rem; }

.shop-rests svg {
  width: 110px;
  height: auto;
  overflow: visible;
}

.about-mascot svg {
  width: min(82%, 300px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(4px 4px 0 rgba(75, 52, 39, .14));
}
