/* Moret Productions — public site (homepage Direction C, "Now Showing") */
:root {
  --display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 3vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --accent: #eb6165;
}
/* Day (default) */
:root, [data-theme="light"] {
  --bg: #f6f5f1;
  --panel: #ffffff;
  --panel-2: #e9e8e3;
  --line: #dedcd6;
  --text: #121214;
  --text-2: #45454a;
  --text-body: #2a2a2e;
  --muted: #5d5d63;
  --dim: #6b6a66;
  --ghost: rgba(18, 18, 20, .28);
  --accent-text: #c8383c; /* coral dark enough for small text on light backgrounds */
  color-scheme: light;
}
/* Night, and areas that always sit on dark imagery (hero, discipline panels, image headers) */
[data-theme="dark"], .on-dark {
  --bg: #08080a;
  --panel: #141417;
  --panel-2: #1f1f24;
  --line: #222226;
  --text: #f3f2ee;
  --text-2: #bebdb8;
  --text-body: #dddcd7;
  --muted: #a9a8a3;
  --dim: #8e8d89;
  --ghost: rgba(243, 242, 238, .35);
  --accent-text: #eb6165;
  color-scheme: dark;
}
.on-dark { color: var(--text); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, iframe, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #111; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.accent { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; border: 0; cursor: pointer; font: 600 16px var(--body); }
.btn:hover { background: var(--accent); color: #111; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--ghost); }
.link-line { font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* Header */
.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.site-header.over { position: absolute; left: 0; right: 0; top: 0; }
.site-header .logo img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.site-nav a[aria-current="page"] { color: var(--accent-text); }
.site-actions { display: flex; gap: 10px; align-items: center; }
.site-actions .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ghost); background: transparent; color: var(--text); cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-actions .btn-ghost { display: none; }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 940px); min-height: max(640px, min(100svh, 940px)); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-media, .hero-media > * { position: absolute; inset: 0; }
.hero-slide { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-video { overflow: hidden; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.hero-video.has-controls iframe { pointer-events: auto; }
.hero-poster { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { background: rgba(8, 8, 10, .5); pointer-events: none; }
.hero-video.has-controls + .hero-scrim { display: none; }
.hero-body { position: relative; flex: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 120px; }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 11vw, 176px); line-height: .88; letter-spacing: -.04em; max-width: 1000px; }
.now-card { flex: 0 1 380px; min-width: 0; padding: 24px; border-radius: 16px; background: rgba(8, 8, 10, .72); display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.now-card .mono { color: var(--accent); }
.now-card .client, .now-card .tags { font-size: 14px; color: var(--text-2); }
.now-card strong { font-family: var(--display); font-size: 26px; line-height: 1.15; }
.now-card .link-line { margin-top: 8px; align-self: flex-start; }
.hero-tabs { position: relative; display: grid; grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr)); gap: 16px; padding-top: 32px; padding-bottom: 28px; }
.hero-tabs button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 10px; min-height: 44px; font-size: 14px; color: var(--muted); }
.hero-tabs button[aria-selected="true"] { color: var(--text); }
.hero-tabs .bar { display: block; height: 2px; background: rgba(243, 242, 238, .25); }
.hero-tabs .bar span { display: block; height: 2px; width: 0; background: var(--text); }
.hero-tabs button[aria-selected="true"] .bar span { width: 100%; transition: width var(--slide-ms, 6000ms) linear; }
.hero.is-paused .hero-tabs button[aria-selected="true"] .bar span { transition: none; }
@media (max-width: 700px) {
  .hero-video.poster-on-phones iframe { display: none; }
  .hero-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .now-card { flex-basis: 100%; }
}

/* Sections */
.sec { padding-top: clamp(64px, 8vw, 112px); padding-bottom: 48px; }
.intro p { max-width: 1100px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -.02em; }
.intro p span { color: var(--dim); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.index-wrap { display: flex; gap: 40px; align-items: flex-start; }
.index-list { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.3fr); gap: 16px; align-items: baseline; padding: 22px 0; transition: padding-left .35s var(--ease), color .2s; }
.index-row:hover, .index-row:focus-visible, .index-row.is-active { padding-left: 16px; color: var(--accent-text); }
.index-row .t { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -.02em; line-height: 1.15; }
.index-row .c { font-size: 15px; color: var(--muted); }
.index-row .d { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; }
.index-preview { flex: 0 0 440px; position: sticky; top: 24px; height: 540px; border-radius: 14px; overflow: hidden; background: var(--panel); }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .index-preview { display: none; }
  .index-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .index-row .d { text-align: left; }
}
.panels { display: flex; gap: 12px; height: 560px; }
.panel { all: unset; cursor: pointer; position: relative; color: var(--text); flex: 1 1 0; min-width: 0; border-radius: 16px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; box-sizing: border-box; transition: flex-grow .6s var(--ease); }
.panel.is-open { flex-grow: 2.4; }
.panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; filter: grayscale(1); transition: opacity .6s, filter .6s; }
.panel.is-open > img, .panel:hover > img, .panel:focus-visible > img { opacity: .85; filter: none; }
.panel::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 10, .45); }
.panel .inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.panel .name { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -.03em; line-height: 1; }
.panel .line { font-weight: 600; }
.panel .line span { font-weight: 400; color: #cfcec9; }
.panel .chips { display: none; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding: 0; list-style: none; }
.panel.is-open .chips { display: flex; }
.panel .chips li { padding: 8px 14px; border-radius: 999px; background: rgba(243, 242, 238, .14); font-size: 14px; }
@media (max-width: 900px) {
  .panels { flex-direction: column; height: auto; }
  .panel { min-height: 240px; }
  .panel .chips { display: flex; }
}
.studio { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; }
.studio .photo { flex: 1 1 600px; min-width: 0; border-radius: 14px; overflow: hidden; }
.studio .photo img { width: 100%; height: auto; }
.studio .text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.studio .mono { color: var(--accent-text); }
.studio h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -.03em; }
.studio p { color: var(--text-2); }
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: clamp(80px, 10vw, 140px); padding-bottom: 100px; }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 150px); line-height: .9; letter-spacing: -.045em; }

/* Inner pages */
.page-head { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 140px); line-height: .9; letter-spacing: -.045em; }
.page-head p { max-width: 720px; color: var(--text-2); font-size: clamp(18px, 1.6vw, 22px); }
.page-head.has-image { position: relative; min-height: 560px; justify-content: flex-end; overflow: hidden; }
.page-head.has-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; z-index: -1; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 500 15px var(--body); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 32px 24px; }
.work-card { display: flex; flex-direction: column; gap: 14px; transition: opacity .3s; }
.work-card.is-dim { opacity: .2; }
.work-card .img { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--panel); }
.work-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover .img img { transform: scale(1.03); }
.work-card .t { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.work-card .d { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project-hero { position: relative; aspect-ratio: 16 / 8; max-height: 80svh; width: 100%; background: var(--panel); overflow: hidden; }
.project-hero img, .project-hero iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 32px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; padding-top: 56px; }
.gallery img { width: 100%; height: auto; border-radius: 12px; background: var(--panel); }
.next { display: block; border-top: 1px solid var(--line); margin-top: 96px; padding-top: 48px; padding-bottom: 48px; }
.next .t { display: block; margin-top: 8px; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6vw, 88px); line-height: .95; letter-spacing: -.04em; }
.plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.plate { padding: 32px; border-radius: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.plate img { width: 100%; max-width: 440px; align-self: center; }
.plate h2 { font-family: var(--display); font-size: 28px; }
.plate .price { font-family: var(--display); font-weight: 800; font-size: 32px; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-grid .direct { flex: 1 1 300px; display: flex; flex-direction: column; gap: 24px; }
.contact-grid .direct a { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 36px); overflow-wrap: anywhere; }
.contact-form { flex: 2 1 480px; display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 16px var(--body); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; }
.form-status.err { color: var(--accent-text); }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: minmax(0, 1fr); } }
.custom { padding-top: 24px; padding-bottom: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--dim); }
.site-footer a:hover { color: var(--text); }

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

/* fixes */
.now-card[hidden] { display: none; }
.panel:not(.is-open) .name { font-size: clamp(24px, 2.4vw, 40px); }
.panel .name { overflow-wrap: anywhere; }
.btn { white-space: nowrap; }
@media (max-width: 520px) {
  .site-header .logo img { height: 28px; }
  .site-header .site-actions .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
}
@media (max-width: 380px) { .site-header .site-actions .btn:not(.btn-ghost) { display: none; } }

.contact-form select { min-height: 50px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.form-done { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 32px; border-radius: 16px; background: var(--panel); }
.form-done h2 { font-family: var(--display); font-size: 32px; line-height: 1.1; }

/* Store */
.shop-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--panel), var(--panel-2)); }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: minmax(0, 1fr); } }
.shop-main { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--panel); }
.shop-main img { width: 100%; height: 100%; object-fit: contain; }
.shop-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.shop-thumbs button { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); cursor: pointer; }
.shop-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.shop-buy { display: flex; flex-direction: column; gap: 14px; }
.shop-buy .mono { color: var(--accent-text); }
.shop-buy h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.5vw, 60px); line-height: 1; letter-spacing: -.03em; }
.shop-summary { color: var(--text-2); font-size: 18px; }
.shop-form { display: grid; gap: 14px; }
.shop-opt { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.shop-opt select, .shop-opt input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 16px var(--body); }
.shop-qty input { max-width: 140px; }
.shop-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shop-price strong { font-family: var(--display); font-size: 34px; }
.shop-price span { color: var(--muted); }
.shop-note { color: var(--muted); font-size: 14px; }
.shop-desc { padding-bottom: 32px; }
.cart-btn { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: #111; font: 600 15px var(--body); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.cart-btn[hidden] { display: none; }
.cart-back { position: fixed; inset: 0; z-index: 49; background: rgba(0,0,0,.5); }
.cart-back[hidden], .cart-drawer[hidden] { display: none; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(420px, 100vw); background: var(--panel); color: var(--text); padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { font-family: var(--display); font-size: 26px; }
.cart-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 22px; cursor: pointer; }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-list div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.cart-list span { color: var(--muted); }
.cart-rm { border: 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; font: 13px var(--body); min-height: 32px; }
.cart-foot { margin-top: auto; display: grid; gap: 8px; }
.cart-foot p { font-weight: 600; }
.cart-foot .cart-small { font-weight: 400; font-size: 13px; color: var(--muted); }
.cart-empty { color: var(--muted); }

/* Day / night */
.logo .logo-ink { display: none; }
:root:not([data-theme="dark"]) .site-header:not(.over) .logo .logo-white { display: none; }
:root:not([data-theme="dark"]) .site-header:not(.over) .logo .logo-ink { display: block; }
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ghost); background: transparent; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; }
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle .moon, [data-theme="dark"] .theme-toggle .sun { display: block; }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
.page-head.has-image { background: var(--bg); color: var(--text); isolation: isolate; }
/* Over the hero, the header uses light text, but its mobile menu follows the theme. */
.site-header.over .site-nav.open { background: #08080a; }
body { transition: background-color .3s, color .3s; }
@media (prefers-reduced-motion: reduce) { body { transition: none; } }
/* Hero headlines: one per slide, stacked so the layout doesn't jump */
.hero-titles { display: grid; max-width: 1000px; }
.hero-titles .hero-title { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s var(--ease); pointer-events: none; }
.hero-titles .hero-title.is-active { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 380px) { .site-actions { gap: 6px; } }

/* Project page: title, then the scope (summary, facts and case study) */
.project-head { padding-top: clamp(32px, 5vw, 64px); }
.project-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 112px); line-height: .95; letter-spacing: -.04em; max-width: 1200px; overflow-wrap: break-word; hyphens: manual; }
.project-scope { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 400px); grid-template-areas: "sub facts" "body facts"; justify-content: space-between; column-gap: clamp(40px, 8vw, 160px); padding-top: clamp(20px, 2.4vw, 32px); align-items: start; }
.project-scope.no-sub { grid-template-areas: "body facts"; }
.project-scope .sub { grid-area: sub; margin: 0; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; color: var(--text-2); }
.project-body { grid-area: body; display: grid; gap: 1.1em; padding-top: clamp(28px, 3.4vw, 48px); font-size: clamp(17px, 1.25vw, 19px); line-height: 1.65; color: var(--text-body); min-width: 0; }
.project-scope.no-sub .project-body { padding-top: 0; }
.facts { grid-area: facts; margin: 0; display: grid; gap: 14px; padding-top: 4px; }
.facts > div { display: grid; grid-template-columns: minmax(110px, 40%) minmax(0, 1fr); gap: 16px; align-items: baseline; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .project-scope, .project-scope.no-sub { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sub" "facts" "body"; }
  .project-scope.no-sub { grid-template-areas: "facts" "body"; }
  .facts { padding: 20px 0; margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .project-scope.no-sub .facts { margin-top: 0; }
  .project-body, .project-scope.no-sub .project-body { padding-top: 28px; }
}
@media (max-width: 420px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Hero: the headline and the project card get their own columns, so they never overlap.
   site.js shrinks the headline if a long word would still be too wide for its column. */
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: end; column-gap: clamp(24px, 4vw, 64px); row-gap: 24px; }
.hero-body > .hero-title, .hero-body > .hero-titles { grid-column: 1; grid-row: 1; min-width: 0; max-width: none; }
.hero-body > .now-card { grid-column: 2; grid-row: 1; margin-bottom: 8px; }
.hero-title { overflow-wrap: normal; word-break: normal; }
@media (max-width: 900px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .hero-body > .now-card { grid-column: 1; grid-row: 2; }
}

/* Formatted text from the editor: lists, italics, links, small headings */
:is(.project-body, .text, .plate, .shop-desc) :is(ul, ol) { margin: 0; padding-left: 1.3em; display: grid; gap: .35em; }
:is(.project-body, .text, .plate, .shop-desc) li::marker { color: var(--accent); }
:is(.project-body, .text, .plate, .shop-desc) h3 { margin: .4em 0 0; font-size: 1.1em; line-height: 1.3; color: var(--text); }
:is(.project-body, .text, .plate, .shop-desc) strong { color: var(--text); font-weight: 600; }
:is(.project-body, .text, .plate, .shop-desc) a:not(.btn) { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
:is(.project-body, .text, .plate, .shop-desc) .fmt-table { overflow-x: auto; border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 12px; }
:is(.project-body, .text, .plate, .shop-desc) .fmt-table table { width: 100%; border-collapse: collapse; font-size: .92em; line-height: 1.45; }
:is(.project-body, .text, .plate, .shop-desc) .fmt-table :is(th, td) { padding: .7em .9em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line, rgba(127,127,127,.25)); }
:is(.project-body, .text, .plate, .shop-desc) .fmt-table th { color: var(--text); font-weight: 600; }
:is(.project-body, .text, .plate, .shop-desc) .fmt-table tr:last-child td { border-bottom: 0; }
.fmt-check { list-style: none; padding-left: 0 !important; }
.fmt-check .box { color: var(--accent); margin-right: .3em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop-custom { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px 10px; align-items: end; }
.shop-custom > span { padding-bottom: .8em; color: var(--muted); }
.shop-custom .shop-note { grid-column: 1 / -1; margin: 0; }
.shop-custom[hidden] { display: none; }
.shop-ship { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.shop-ship-row { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.shop-ship-in { display: flex; gap: 8px; }
.shop-ship-in input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 16px var(--body); }
.shop-ship-in .btn { min-height: 44px; }
.shop-ship [data-ship-out]:empty { display: none; }
.shop-ship [data-ship-out] { margin: 0; }
.shop-opt[hidden], .shop-form [hidden] { display: none !important; }

/* Template downloads (Store → Templates) */
.tpl { margin: clamp(28px, 4vw, 48px) 0; display: grid; gap: 14px; }
.tpl-page .tpl:first-child { margin-top: 0; }
.tpl-title { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; }
.tpl-guide { font-weight: 400; font-size: .85em; color: var(--accent-text, var(--accent)); text-decoration: none; }
.tpl-guide:hover { text-decoration: underline; }
.tpl-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tpl-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.tpl-table th, .tpl-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.tpl-table tr:last-child > * { border-bottom: 0; }
.tpl-table th + th, .tpl-table th + td, .tpl-table td + td { border-left: 1px solid var(--line); }
.tpl-table thead th { background: color-mix(in srgb, var(--text) 5%, transparent); font-weight: 600; text-align: center; }
.tpl-table thead th:first-child { width: 22%; }
.tpl-table thead th > span:last-child { display: block; margin-top: 6px; }
.tpl-table tbody th { font-weight: 500; text-align: center; color: var(--text); }
.tpl-table ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tpl-table a { color: var(--accent-text, var(--accent)); text-decoration: none; }
.tpl-table a:hover, .tpl-table a:focus-visible { text-decoration: underline; }
.tpl-none { color: var(--muted); }
.tpl-badge { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 6px; font: 700 11px/1 var(--body, sans-serif); letter-spacing: .02em; color: #fff; background: #6b6b70; }
.tpl-pdf { background: #d6322f; }
.tpl-psd { background: #0d2a44; color: #47a7ff; }
.tpl-ai { background: #2d0f00; color: #ff9a00; }
.tpl-indd { background: #3d0a1f; color: #ff3e93; }
.tpl-eps { background: #5a4a8a; }
.tpl-zip { background: #4a4a50; }
.tpl-notes { font-size: 15px; }
.tpl-notes ul { margin: 0; }
@media (max-width: 680px) {
  .tpl-table thead { display: none; }
  .tpl-table, .tpl-table tbody, .tpl-table tr, .tpl-table th, .tpl-table td { display: block; width: auto; }
  .tpl-table tr { border-bottom: 1px solid var(--line); }
  .tpl-table tr:last-child { border-bottom: 0; }
  .tpl-table tbody th { text-align: left; font-weight: 700; padding-bottom: 4px; border: 0; }
  .tpl-table td { border: 0 !important; padding-top: 6px; }
  .tpl-table td::before { content: attr(data-col); display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}
.tpl { display: block; grid-template-columns: none; }
.tpl > * + * { margin-top: 14px; }
.tpl .tpl-notes.project-body { padding-top: 0; grid-area: auto; display: block; }
.shop-product > .tpl { grid-column: 1 / -1; }
