@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212;
}

:root {
  color-scheme: light;
  --paper: #f4eddf;
  --white: #fff9ee;
  --ink: #1d1a17;
  --soft-ink: #51463a;
  --orange: #ff7138;
  --orange-light: #ffbe90;
  --rule: #d4c3ad;
  --page-space: clamp(18px, 5.1vw, 76px);
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #316dd3; outline-offset: 4px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  border: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 30; padding: 12px 18px; background: var(--white); }

.shell { width: min(100% - 2 * var(--page-space), 1330px); margin-inline: auto; }
section[id] { scroll-margin-top: 20px; }

.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); }
.header-row { min-height: 85px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand { width: fit-content; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: clamp(22px, 2.2vw, 31px); font-weight: 800; letter-spacing: -.068em; line-height: 1; white-space: nowrap; }
.brand-name b { display: inline-block; margin-left: 2px; padding: 3px 5px 4px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--orange); color: var(--ink); font-size: .54em; letter-spacing: -.02em; vertical-align: .16em; }
.brand-mark { flex: 0 0 auto; width: 44px; height: 44px; object-fit: contain; }
.site-nav { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: clamp(5px,1.1vw,20px); padding: 0 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding-inline: clamp(8px, 1.05vw, 16px); border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.site-nav a:not(:hover) { text-decoration: none; }
.header-action { justify-self: end; }
.menu-toggle { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 53px; padding: 11px 19px; border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); text-decoration: none; background: var(--white); font-weight: 800; font-size: 15px; line-height: 1.25; box-shadow: 3px 3px 0 var(--ink); transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
.button span { font-size: 1.22em; line-height: 1; }
.button:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button-orange { background: var(--orange); }
.button-ink { color: var(--white); background: var(--ink); box-shadow: 3px 3px 0 var(--orange); }
.button-ink:hover { background: #3c2c23; box-shadow: 1px 1px 0 var(--orange); }
.header-action { min-height: 45px; padding: 8px 14px; font-size: 13px; }

.hero { overflow: hidden; }
.hero-grid { min-height: 620px; padding-block: 30px 34px; display: grid; grid-template-columns: 1fr .93fr; gap: 30px; align-items: center; }
.hero-copy { position: relative; z-index: 2; min-width: 0; padding-block: 16px; }
.eyebrow { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.eyebrow span { font-size: 19px; color: var(--ink); line-height: 1; }
.hero h1 { max-width: 100%; margin: 16px 0 23px; font-size: clamp(66px, 9.8vw, 149px); font-weight: 800; letter-spacing: -.076em; word-spacing: .055em; line-height: .865; }
.hero h1 span { color: var(--orange); -webkit-text-stroke: clamp(1px, .135vw, 2px) var(--ink); paint-order: stroke fill; text-shadow: 4px 5px 0 var(--ink); }
.hero-lead { max-width: 28ch; color: var(--soft-ink); font-size: clamp(17px, 1.8vw, 23px); font-weight: 700; line-height: 1.45; margin-bottom: 24px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.text-link { min-height: 46px; display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--orange); }
.hero-art { position: relative; height: 100%; min-height: 480px; display: grid; align-items: center; isolation: isolate; }
.hero-orbit { z-index: -1; position: absolute; left: 48%; top: 51%; width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-10deg); border: 2px solid var(--ink); border-radius: 50%; background: radial-gradient(circle, #5d361f52 1px, transparent 1.65px) 0 0 / 8px 8px, #ffc078; box-shadow: 10px 10px 0 var(--ink); }
.hero-mascot { width: 100%; max-height: 558px; aspect-ratio: 1; height: auto; object-fit: contain; filter: drop-shadow(0 18px 10px #29160828); transform: rotate(-4deg); }
.hero-spark { position: absolute; z-index: -1; color: var(--ink); font-size: clamp(24px, 4.6vw, 68px); line-height: 1; }
.hero-spark-top { right: 6%; top: 4%; }
.hero-spark-bottom { left: 2%; bottom: 10%; font-size: clamp(21px, 3.4vw, 45px); }

.category-bar { background: var(--orange); border-block: 2px solid var(--ink); }
.category-row { min-height: 104px; display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; justify-content: space-between; padding-block: 13px; }
.category-row h2 { font-size: clamp(39px, 5.2vw, 69px); letter-spacing: -.09em; line-height: 1; font-weight: 800; }
.category-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.category-filters button { min-height: 42px; padding: 6px 15px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 800; }
.category-filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.category-filters button:not([aria-pressed="true"]):hover { background: var(--white); }
html:not(.js) .category-filters { display: none; }

.catalog-content { padding-block: clamp(32px, 4.5vw, 64px) clamp(48px, 7vw, 96px); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.3vw, 31px); }
.product-card { min-width: 0; }
.product-link { display: block; overflow: hidden; border: 2px solid var(--ink); border-radius: 8px; text-decoration: none; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.product-link:hover { transform: translate(-2px,-3px); box-shadow: 4px 5px 0 var(--ink); }
.product-picture { position: relative; overflow: hidden; aspect-ratio: 1.06; border-bottom: 2px solid var(--ink); }
.product-picture img { width: 100%; height: 100%; object-fit: cover; }
.tile-peach { background: #f8caa8; }
.tile-lilac { background: #e3daf2; }
.tile-yellow { background: #f4d79e; }
.tile-green { background: #d1e3c8; }
.product-badge { position: absolute; left: 10px; top: 10px; border: 1px solid var(--ink); border-radius: 4px; padding: 3px 7px; background: var(--white); font-size: 11px; font-weight: 800; }
.product-caption { display: flex; align-items: flex-end; justify-content: space-between; gap: 5px; padding: 13px 14px 15px; }
.product-caption p, .live-link p { color: var(--soft-ink); font-weight: 750; font-size: 12px; margin-bottom: 2px; }
.product-caption h3, .live-link h3 { font-size: clamp(17px, 1.9vw, 28px); line-height: 1.13; letter-spacing: -.042em; word-spacing: .025em; font-weight: 800; }
.product-caption > span { font-size: 22px; line-height: 1; }
.live-product { border-top: 1px solid var(--rule); margin-top: 28px; }
.live-link { min-height: 88px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.live-link > span { font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.custom { border-block: 2px solid var(--ink); background: var(--orange); }
.custom-grid { display: grid; grid-template-columns: .92fr 1fr; align-items: center; gap: clamp(24px, 7vw, 110px); padding-block: clamp(52px, 7.6vw, 108px); }
.custom-copy { min-width: 0; }
.custom h2, .contact h2 { margin-top: 10px; font-size: clamp(54px, 7.25vw, 103px); line-height: .885; letter-spacing: -.1em; font-weight: 800; }
.process-steps { display: flex; flex-direction: column; gap: 5px; margin-top: 23px; max-width: 415px; }
.process-steps button { min-height: 49px; display: flex; align-items: center; gap: 12px; padding: 7px 11px; border: 2px solid transparent; border-bottom-color: #211d1970; border-radius: 3px; text-align: left; background: transparent; color: var(--ink); font-size: clamp(15px,1.55vw,21px); font-weight: 800; }
.process-steps button span { font-variant-numeric: tabular-nums; }
.process-steps button[aria-pressed="true"] { border-color: var(--ink); background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.process-steps button:not([aria-pressed="true"]):hover { border-color: var(--ink); background: var(--orange-light); }
html:not(.js) .process-steps { display: none; }
.process-note { min-height: 3.1em; max-width: 36ch; padding-block: 11px 4px; font-size: 16px; font-weight: 750; }
.custom .button-ink { box-shadow: 3px 3px 0 var(--white); }
.custom .button-ink:hover { box-shadow: 1px 1px 0 var(--white); }
.process-figure { position: relative; min-width: 0; width: 100%; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 10px 10px 0 var(--ink); background: var(--white); overflow: hidden; }
.process-art { position: relative; aspect-ratio: 1.14; display: grid; place-items: center; overflow: hidden; background: #f8ead0; }
.process-art[data-current-step="1"] { background: #26221e; }
.process-art[data-current-step="2"] { background: #302019; }
.process-art :is(img, canvas) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.process-figure figcaption { min-height: 56px; display: flex; align-items: center; border-top: 2px solid var(--ink); padding: 9px 14px; font-weight: 800; font-size: 14px; }
.replay-button { min-height: 44px; border: 1px solid var(--ink); border-radius: 3px; background: var(--white); color: var(--ink); font-weight: 800; font-size: 12px; position: absolute; right: 7px; bottom: 6px; }

.contact { background: var(--white); }
.contact-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: center; padding-block: clamp(44px, 7vw, 93px); }
.contact-row > div > p { max-width: 38ch; color: var(--soft-ink); font-size: clamp(15px,1.6vw,19px); margin-bottom: 17px; font-weight: 700; }
.contact-row > div > .contact-note { margin: 12px 0 0; color: var(--soft-ink); font-size: 13px; font-weight: 650; }
.contact h2 { margin-top: 0; font-size: clamp(51px,7vw,94px); }
.site-footer { background: var(--ink); color: var(--white); }
.footer-row { min-height: 88px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 23px; padding-block: 16px; }
.footer-row .brand { color: inherit; }
.footer-row .brand-name b { border-color: var(--orange); }
.footer-row p { margin-right: auto; color: #e3cbb3; font-size: 13px; }
.footer-row > a:not(.brand) { font-size: 14px; font-weight: 750; text-underline-offset: 3px; }

#product-dialog { width: min(calc(100% - 36px), 810px); max-height: calc(100% - 32px); border: 2px solid var(--ink); border-radius: 10px; padding: 0; background: var(--white); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
#product-dialog::backdrop { background: #211d1987; }
.dialog-controls { position: absolute; z-index: 2; right: 9px; top: 9px; }
.detail-close { display: grid; min-width: 44px; min-height: 44px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-size: 25px; line-height: 1; font-weight: 800; color: var(--ink); background: var(--white); }
.detail-close:hover { background: var(--orange); }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; }
.detail-media { min-height: 290px; border-right: 2px solid var(--ink); background: #efdec7; display: grid; place-items: center; text-align: center; font-size: 15px; font-weight: 800; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding: clamp(23px,5vw,54px) clamp(16px,4vw,43px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 13px; }
.detail-copy h2 { font-size: clamp(32px,5vw,59px); font-weight: 800; line-height: .99; letter-spacing: -.075em; }
#detail-description { color: var(--soft-ink); font-weight: 650; margin-bottom: 7px; }

@media (max-width: 920px) {
  .hero-grid { min-height: 0; grid-template-columns: 1.02fr .98fr; padding-block: 38px 46px; gap: 19px; }
  .hero-art { min-height: 320px; }
  .hero h1 { font-size: clamp(59px,10.5vw,106px); }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .custom-grid { gap: 30px; }
}

@media (min-width: 661px) and (max-width: 860px) {
  .header-row { grid-template-columns: auto minmax(0, 1fr); gap: 15px; }
  .site-nav { justify-self: end; }
  .header-action { display: none; }
}

@media (max-width: 660px) {
  .header-row { min-height: 63px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0; }
  .brand { min-height: 56px; }
  .brand-mark { width: 37px; height: 37px; }
  .menu-toggle { display: none; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 800; }
  .menu-toggle span { margin-left: 5px; }
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { order: 3; width: calc(100% - 5px); justify-content: space-evenly; gap: 0 3px; margin: 6px 0 14px; padding-inline: 4px; }
  .site-nav a { min-height: 44px; font-size: clamp(10px, 2.9vw, 13px); padding-inline: 5px; }
  .js .site-nav:not([data-open]) { display: none; }
  .header-action { display: none; }
  .hero-grid { display: block; padding-block: 23px 29px; }
  .hero-copy { padding-block: 3px 0; }
  .hero h1 { font-size: clamp(65px,15.3vw,100px); margin-block: 12px 17px; }
  .hero h1 span { text-shadow: 3px 4px 0 var(--ink); }
  .hero-lead { margin-bottom: 15px; }
  .hero-actions { gap: 4px 16px; }
  .hero-art { min-height: 0; height: auto; margin: 16px auto 0; max-width: 330px; }
  .hero-orbit { width: 80%; box-shadow: 6px 6px 0 var(--ink); }
  .hero-mascot { max-height: 340px; }
  .hero-spark-top { top: 8%; right: 6%; }
  .category-row { align-items: flex-start; gap: 10px; padding-block: 13px 14px; }
  .category-filters { gap: 6px; }
  .category-filters button { min-height: 44px; padding-inline: 11px; font-size: 13px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 11px; }
  .product-badge { top: 6px; left: 6px; font-size: 10px; }
  .product-caption { padding: 8px 7px 10px; align-items: flex-start; }
  .product-caption h3 { font-size: clamp(15px,4vw,24px); }
  .product-caption > span { font-size: 16px; }
  .custom-grid, .contact-row { grid-template-columns: 1fr; }
  .custom-grid { gap: 22px; }
  .process-steps { margin-top: 17px; }
  .process-figure { width: calc(100% - 6px); box-shadow: 6px 6px 0 var(--ink); }
  .dialog-grid { grid-template-columns: 1fr; }
  .detail-media { aspect-ratio: 1.5; min-height: 0; border-right: 0; border-bottom: 2px solid var(--ink); }
  .detail-media img { height: auto; max-height: 260px; }
  .footer-row { align-items: center; gap: 3px 16px; }
  .footer-row p { margin: 0; flex: 1 0 50%; }
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-mascot { animation: mascot-entry .72s cubic-bezier(.2, .75, .3, 1) both; }
}

@keyframes mascot-entry {
  from { transform: translateY(14px) rotate(-8deg) scale(.96); }
  to { transform: rotate(-4deg); }
}
