/* D'FA Print — static site styles */
:root {
  --paper: #f6f4ef;
  --paper-2: #eeeae1;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #3b3b3b;
  --muted: #6d6f71;
  --line: #dcd6ca;
  --red: #e51525;
  --red-ink: #b80f1c;
  --cyan: #00a3e0;
  --magenta: #e6007e;
  --yellow: #ffd400;
  --black: #141414;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 8px 24px rgba(20, 20, 20, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Language switching: EN is default, BM shown when html[data-lang="ms"] */
html[data-lang="ms"] [lang="en"]:not(html) { display: none !important; }
html:not([data-lang="ms"]) [lang="ms"]:not(html) { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.08; margin: 0 0 .5em; font-variation-settings: "opsz" 144; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.35rem; line-height: 1.25; font-variation-settings: "opsz" 36; }
p { margin: 0 0 1em; }
em.accent { font-style: italic; color: var(--red); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  font: 700 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }

/* ---------- CMYK bar ---------- */
.cmyk { display: flex; height: 6px; }
.cmyk span { flex: 1; }
.cmyk span:nth-child(1) { background: var(--cyan); }
.cmyk span:nth-child(2) { background: var(--magenta); }
.cmyk span:nth-child(3) { background: var(--yellow); }
.cmyk span:nth-child(4) { background: var(--black); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 42px; width: auto; }
.menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; padding: 6px 0; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden;
  font: 700 .74rem/1 var(--sans); letter-spacing: .06em;
}
.lang-toggle button { background: none; border: 0; padding: 7px 11px; cursor: pointer; color: var(--ink); font: inherit; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.nav .btn { padding: 11px 18px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav .btn-quote { display: none; }
  .menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .menu a { display: block; padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .menu a::after { display: none; }
  .menu .menu-cta { display: block; padding-top: 18px; }
  .menu .menu-cta a { border: 0; text-align: center; }
  body.menu-open .menu { transform: translateY(0); }
  body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (min-width: 961px) { .menu .menu-cta { display: none; } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }
.alt { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow { color: #a9a9a9; }
.dark .lede, .dark .section-head p { color: #cfcac0; }

/* Crop marks around a figure */
.cropped { position: relative; padding: 14px; }
.cropped::before, .cropped::after,
.cropped > .cm::before, .cropped > .cm::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); pointer-events: none;
}
.cropped::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.cropped::after { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.cropped > .cm::before { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.cropped > .cm::after { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--red); flex: none; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 34px; background: var(--card); padding: 16px 20px;
  box-shadow: var(--shadow); border-left: 4px solid var(--red); max-width: 230px;
}
.hero-badge strong { display: block; font: 500 2.2rem/1 var(--serif); }
.hero-badge span { font-size: .85rem; color: var(--muted); }
.regmark { position: absolute; top: -8px; right: 26px; width: 44px; height: 44px; color: var(--ink); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-badge { left: 14px; bottom: 26px; }
  .regmark { display: none; }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); max-width: 16ch; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }

/* ---------- Clients strip ---------- */
.clients { padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.clients p { text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 56px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { mask-image: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--paper); display: flex; flex-direction: column; text-decoration: none; transition: background .25s; }
.service:hover { background: var(--card); }
.service figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.service figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service:hover figure img { transform: scale(1.04); }
.service-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.service-num { font: 600 .8rem/1 var(--sans); color: var(--red); letter-spacing: .1em; }
.service h3 { margin: 6px 0 4px; }
.service p { color: var(--ink-2); font-size: .96rem; margin: 0; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.process li { padding: 28px 22px 8px 0; border-top: 1px solid #3a3a3a; position: relative; }
.process li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: 500 2.4rem/1 var(--serif); color: var(--paper); margin-bottom: 18px;
}
.process li::after { content: ""; position: absolute; top: -4px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.process h3 { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.process p { font-size: .9rem; color: #bdb8ae; margin: 0; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr 1fr; } }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work-grid .item { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); cursor: zoom-in; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.work-grid .item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s; }
.work-grid .item:hover img { transform: scale(1.04); }
.work-grid .item figcaption, .work-grid .item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: .85rem; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.work-grid .item:hover .cap, .work-grid .item:focus-visible .cap { opacity: 1; transform: none; }
.work-grid .item.wide { grid-column: span 2; }
.work-grid .item.wide img { aspect-ratio: 8 / 5; }
.work-grid .item[hidden] { display: none; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .work-grid .item .cap { opacity: 1; transform: none; font-size: .75rem; padding: 28px 10px 8px; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  font: 600 .9rem/1 var(--sans); padding: 11px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,12,12,.94); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; width: auto; max-width: min(92vw, 900px); object-fit: contain; }
.lightbox p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #eee; font-size: .95rem; margin: 0; padding: 0 16px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.stat { padding: 28px 24px 0 0; }
.stat strong { display: block; font: 400 clamp(2.6rem, 5vw, 4rem)/1 var(--serif); letter-spacing: -.02em; }
.stat strong sup { font-size: .45em; color: var(--red); vertical-align: top; margin-left: 2px; }
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: .95rem; max-width: 22ch; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 20px; } }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 3px; }

.quote-card { background: var(--card); padding: clamp(28px, 4vw, 48px); border-left: 4px solid var(--red); box-shadow: var(--shadow); }
.quote-card blockquote { margin: 0 0 20px; font: 400 clamp(1.3rem, 2.4vw, 1.75rem)/1.35 var(--serif); font-style: italic; }
.quote-card cite { font-style: normal; font-weight: 700; display: block; }
.quote-card small { color: var(--muted); display: block; margin-top: 2px; }


/* Founder */
.founder { background: var(--paper-2); padding-bottom: 0; overflow: hidden; }
.founder-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.founder-portrait { position: relative; display: flex; justify-content: center; padding-top: 24px; }
.founder-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 74%; background: var(--red); overflow: hidden; }
.founder-year { position: absolute; right: 10px; bottom: 18px; writing-mode: vertical-rl; transform: rotate(180deg); font: 500 clamp(4.5rem, 8vw, 7rem)/.85 var(--serif); letter-spacing: -.03em; color: rgba(255,255,255,.22); }
.founder-reg { position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; color: rgba(255,255,255,.55); }
.founder-cmyk { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; }
.founder-portrait img { position: relative; width: 82%; max-width: 440px; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.25)); }
.founder-text { margin: 0; padding-bottom: clamp(64px, 9vw, 120px); align-self: center; }
.founder-text blockquote { margin: 0 0 32px; }
.founder-text blockquote::before { content: "\201C"; display: block; height: .5em; margin: 10px 0 0 -.04em; font: 400 clamp(5rem, 8vw, 7rem)/1 var(--serif); color: var(--red); }
.founder-text blockquote p { margin: 0; font: 400 clamp(1.55rem, 2.8vw, 2.35rem)/1.3 var(--serif); letter-spacing: -.01em; font-variation-settings: "opsz" 72; }
.founder-text figcaption { display: grid; gap: 2px; padding-top: 22px; border-top: 1px solid var(--ink); }
.founder-text figcaption strong { font: 500 1.3rem/1.3 var(--serif); }
.founder-hon { font-size: .82rem; font-weight: 700; letter-spacing: .12em; color: var(--red); }
.founder-role { font-size: .95rem; color: var(--ink-2); }
.founder-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin: 32px 0 0; }
.founder-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.founder-facts dd { margin: 4px 0 0; font-weight: 700; }
@media (max-width: 860px) {
  .founder { padding-top: 56px; }
  .founder-grid { grid-template-columns: 1fr; gap: 0; }
  .founder-text { order: -1; padding-bottom: 40px; }
  .founder-portrait { max-width: 420px; width: 100%; margin: 0 auto; }
  .founder-facts { grid-template-columns: 1fr 1fr; }
}

/* Equipment list */
.equip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #3a3a3a; border: 1px solid #3a3a3a; }
.equip div { background: var(--ink); padding: 28px; }
.equip svg { width: 30px; height: 30px; color: var(--red); margin-bottom: 16px; }
.equip h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.equip p { color: #bdb8ae; font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .equip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .equip { grid-template-columns: 1fr; } }

/* MOF codes */
.mof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mof span { font: 600 .85rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 3px; }

/* ---------- Testimonials ---------- */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi { background: var(--card); padding: 30px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.testi blockquote { margin: 0; font: 400 1.15rem/1.45 var(--serif); }
.testi blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: var(--red); margin-bottom: 8px; }
.testi cite { font-style: normal; font-weight: 700; font-size: .92rem; }
@media (max-width: 900px) { .testis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testis { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: clamp(56px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }
.cta-band h2 { margin: 0 0 8px; max-width: 18ch; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .regbg { position: absolute; right: -60px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%); color: rgba(255,255,255,.12); }

/* ---------- Service detail (services page) ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row:nth-child(even) .svc-media { order: 2; }
.svc-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.svc-media img:first-child { margin-top: 36px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-size: .82rem; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; } .svc-row:nth-child(even) .svc-media { order: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0 0 32px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--red); }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-list a { text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--red); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); filter: grayscale(.4); }

.form { background: var(--card); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; font-weight: 700; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 500 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17864a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcac0; padding: 72px 0 0; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer img { height: 44px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #3a3a3a; display: grid; place-items: center; }
.social a:hover { border-color: var(--red); background: var(--red); }
.social svg { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid #2c2c2c; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8f8a80; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
a.item { cursor: pointer; display: block; }

/* ---------- DFA Shop ---------- */
.shop-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.shop-hero-img img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .shop-hero-grid { grid-template-columns: 1fr; } .shop-hero-img { display: none; } }
.mini-steps { list-style: none; counter-reset: ms; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 26px 0 0; font-size: .92rem; font-weight: 600; }
.mini-steps li { counter-increment: ms; display: flex; align-items: center; gap: 8px; }
.mini-steps li::before { content: counter(ms); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: .78rem; }

.shop { padding-top: 40px; }
.sample-note { background: #fff6d6; border: 1px solid #f0d77a; padding: 12px 16px; border-radius: var(--radius); font-size: .92rem; margin-bottom: 28px; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .shop-grid { grid-template-columns: 1fr; } }
.opt { padding: 26px 0; border-bottom: 1px solid var(--line); }
.opt:first-child { padding-top: 0; }
.opt[hidden] { display: none; }
.opt h3 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; margin-bottom: 14px; }
.opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 560px) { .opt-row { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip[hidden] { display: none; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span { display: flex; flex-direction: column; gap: 2px; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); font-weight: 600; font-size: .93rem; transition: border-color .15s, background .15s; }
.chip small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.chip:hover > span { border-color: var(--ink-2); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip input:checked + span small { color: #cfcac0; }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.stepper { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.stepper button { width: 46px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--paper-2); }
.stepper input { width: 96px; border: 0; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); text-align: center; font: 700 1.1rem/1 var(--sans); padding: 12px 4px; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: #fff; }
.hint { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.quick { display: flex; gap: 6px; margin-top: 10px; }
.quick button { font: 600 .82rem/1 var(--sans); padding: 7px 10px; border: 1px solid var(--line); background: none; border-radius: 999px; cursor: pointer; color: var(--ink); }
.quick button:hover { border-color: var(--ink); }
.opt-label { font-weight: 500; color: var(--muted); }
.shop .field input, .shop .field textarea { background: var(--card); }

.summary { position: sticky; top: 96px; }
.summary-card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px; border-top: 4px solid var(--red); }
.summary .spec { font-size: .92rem; color: var(--ink-2); margin-bottom: 18px; }
.lines { margin: 0; display: grid; gap: 8px; font-size: .92rem; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.lines dt { color: var(--ink-2); }
.lines dd { margin: 0; font-weight: 600; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.total span { font-weight: 700; }
.total strong { font: 500 2.1rem/1 var(--serif); }
.unit { text-align: right; font-size: .85rem; color: var(--muted); margin: 6px 0 18px; }
.errors { background: #fdeceb; color: #9c0f18; border-radius: var(--radius); padding: 12px 14px 12px 30px; font-size: .88rem; margin: 0 0 16px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); margin-bottom: 16px; cursor: pointer; }
.agree input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.pay { width: 100%; justify-content: center; padding: 17px 22px; font-size: 1.02rem; }
.pay:disabled { opacity: .45; cursor: not-allowed; }
.pay.loading { opacity: .7; cursor: progress; }
.pay-status { font-size: .88rem; background: var(--paper-2); padding: 10px 12px; border-radius: var(--radius); margin: 12px 0 0; }
.pay-methods { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 16px 0 6px; }
.pay-methods svg { width: 16px; height: 16px; color: var(--red); flex: none; margin-top: 2px; }
.fine { font-size: .8rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .summary { position: static; } }

#thanks > .wrap > div { display: none; }
#thanks[data-state="ok"] .state-ok, #thanks[data-state="pending"] .state-pending, #thanks[data-state="fail"] .state-fail { display: block; }
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .mobile-bar small { display: block; font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
  .mobile-bar strong { font: 500 1.4rem/1.1 var(--serif); }
  .shop { padding-bottom: 120px; }
}

/* ---------- Book shelf (homepage) ---------- */
.shelf-section { padding-bottom: clamp(56px, 7vw, 88px); }
.shelf { --book-h: clamp(190px, 18vw, 260px); --floor: 74px; position: relative; }
.shelf-track {
  display: flex; align-items: flex-end; gap: clamp(22px, 3vw, 40px);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
  padding: 40px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 0;
  background: linear-gradient(to bottom, transparent calc(100% - var(--floor)), #e3dccf calc(100% - var(--floor)), #ece6db 100%);
}
.shelf-track::after { content: ""; flex: 0 0 1px; }
.book { margin: 0; flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; }
.book img {
  height: calc(var(--book-h) * var(--s, 1)); width: auto; max-width: none;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)) drop-shadow(10px 18px 18px rgba(0,0,0,.22));
  transition: transform .35s ease;
}
.book:hover img { transform: translateY(-10px) rotate(-1deg); }
.book figcaption { height: var(--floor); width: 100%; max-width: 200px; padding-top: 14px; text-align: center; font-size: .78rem; line-height: 1.3; color: var(--muted); }
.book figcaption strong { display: block; color: var(--ink); font-size: .84rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.btn-text { font-weight: 700; font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--red); }
.btn-text:hover { color: var(--red); }

/* ---------- Book stack (shop hero) ---------- */
.book-stack { position: relative; aspect-ratio: 5 / 4; }
.book-stack img { position: absolute; height: auto; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)) drop-shadow(14px 22px 22px rgba(0,0,0,.25)); }
.book-stack .b1 { width: 62%; right: 0; top: 4%; transform: rotate(4deg); }
.book-stack .b2 { width: 44%; left: 6%; top: 0; transform: rotate(-5deg); }
.book-stack .b3 { width: 44%; left: 30%; bottom: 0; transform: rotate(1.5deg); }
@media (max-width: 860px) { .shop-hero-grid .book-stack { display: none; } }

/* Cut-out items in the portfolio grid */
.work-grid .item.cut { background: radial-gradient(ellipse at 50% 40%, #fbf9f5 0%, var(--paper-2) 75%); }
.work-grid .item.cut img { object-fit: contain; padding: 22px 18px 30px; filter: drop-shadow(6px 12px 12px rgba(0,0,0,.2)); }

/* Thank-you page: email actions */
.mail-addr { font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.mail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.copied-label { color: #1f9d55; }

/* Quote form: honeypot, status, success */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9rem; background: #fdeceb; color: #9c0f18; padding: 10px 12px; border-radius: var(--radius); margin: 12px 0 0; }
.form-done h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.pay-closed p { font-size: .9rem; color: var(--ink-2); margin: 0 0 14px; }
