/* AI Kopitiam: industrial editorial system, adapted from the user-selected Zajno reference. */
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url('/fonts/unbounded-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url('/fonts/manrope-latin.woff2') format('woff2');
}
:root {
  --paper: #f9f9f7; --ink: #252524; --red: #c83d24; --soft: #eeedeb;
  --muted: #5c5b58; --line: #d1d0cc; --body: 'Manrope', Arial, sans-serif;
  --display: 'Unbounded', Arial, sans-serif; --gutter: clamp(20px, 4.2vw, 68px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html { scrollbar-color: #96948e var(--soft); scroll-padding-top: 24px; }
body { background: var(--paper); font-size: 16px; line-height: 1.7; }
::selection { background: var(--red); color: #fff; }
input, textarea { caret-color: var(--red); }
.wrap { max-width: 1480px; padding-inline: var(--gutter); }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.035em; font-weight: 400; }
h1, h2 { line-height: 1.18; }
h3 { line-height: 1.35; font-size: 20px; }
p { text-wrap: pretty; }
a { text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--red); }
.lead, .story p, .wwd-card p, .who-card p, .founder p, .pf-body p { color: var(--ink); }
.nav { max-width: 1480px; padding: 20px var(--gutter); min-height: 94px; background: var(--paper); }
.brand, .brand img { width: 62px; }
.nav-right { gap: 28px; }
.nav-page, .nav-contact, .menu-toggle { font-size: 14px; text-decoration: none; }
.nav-page { padding-block: 12px; }
.nav-contact { padding: 12px 24px; background: var(--ink); color: #fff; }
.nav-contact:hover { background: var(--red); }
.menu { right: var(--gutter); top: 84px; border: 0; padding: 28px; box-shadow: 0 16px 36px #0002; }
.menu a { font-size: 18px; }
.menu-lines i { height: 2px; }
.menu-toggle { min-height: 44px; }
.btn { font-size: 14px; font-weight: 600; min-height: 48px; padding: 14px 24px; gap: 24px; transition: background .2s, color .2s; }
.btn:hover { transform: none; }
.btn-ghost, .form .btn-outline { box-shadow: none; border: 1px solid var(--line); background: transparent; }
.btn-primary:hover { background: #a62e18; }
.page-hero { padding-block: 72px 56px; background: var(--soft); }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 64px); max-width: 23ch; }
.page-hero .lead { max-width: 62ch; font-size: 18px; }
.page-hero .hero-split h1 { font-size: clamp(32px, 3.6vw, 54px); }
.sec-head h2 { font-size: clamp(28px, 3.1vw, 44px); }
.story h2 { font-size: clamp(26px, 3vw, 42px); }
.story, .who-card, .wwd-card, .founder, .fit-box, .step, .hero-facts, .hero-details, .contact-details, .cs-fig figcaption, .legal { border-color: var(--line); }
.founder { padding-top: 24px; }
.founder h3 { font-size: 20px; }
.pf-media { background: var(--soft); }
.pf-body h3 { font-size: 20px; }
.status { font-size: 14px; }
details, details:last-child { border-color: var(--line); }
summary { padding: 24px 0; font-weight: 500; }
details[open] { background: var(--soft); }
details[open] summary, details[open] > p { padding-inline: 20px; }
details[open] > p { padding-bottom: 24px; margin-bottom: 0; }
body:not(.home) .faq-list summary { padding-inline: 24px; }
body:not(.home) .faq-list summary::after { flex-basis: auto; width: auto; }
body:not(.home) .faq-list details > p { padding-inline: 24px; margin-inline: 0; }
.contact-intro h1 { font-size: clamp(32px, 3.8vw, 54px); }
.form h2 { font-size: 28px; }
footer { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-copy { color: var(--muted); font-size: 14px; }
.legal { font-size: 13px; margin-top: 40px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Visible by default: animation only starts once a group reaches the viewport. */
@media (prefers-reduced-motion: no-preference) {
  .motion-entering { animation: site-rise 650ms var(--ease) both; animation-delay: var(--motion-delay, 0ms); }
  .motion-entering[data-motion="title"] { animation-name: site-title; animation-duration: 800ms; }
  .motion-entering[data-motion="media"] { animation-name: site-media; animation-duration: 850ms; }
  .motion-entering[data-motion="read"] { animation-name: site-read; animation-duration: 450ms; animation-delay: 0ms; }
  .menu:not([hidden]) { transform-origin: top right; animation: menu-open 220ms var(--ease) both; }
  .menu:not([hidden]) > a { animation: menu-link-in 320ms var(--ease) both; animation-delay: calc(var(--menu-order, 0) * 30ms); }
  .menu > a:nth-child(2) { --menu-order: 1; }
  .menu > a:nth-child(3) { --menu-order: 2; }
  .menu > a:nth-child(4) { --menu-order: 3; }
  .menu > a:nth-child(5) { --menu-order: 4; }
  .menu > a:nth-child(6) { --menu-order: 5; }
  .menu > a:nth-child(7) { --menu-order: 6; }
  .menu > a:focus-visible { animation: none; }
}
@keyframes site-title { from { opacity: .5; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes site-rise { from { opacity: .55; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes site-media { from { opacity: .65; clip-path: inset(0 0 6% 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes site-read { from { opacity: .65; } to { opacity: 1; } }
@keyframes menu-open { from { opacity: .5; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes menu-link-in { from { opacity: .5; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav { padding-block: 16px; min-height: 82px; }
  .brand, .brand img { width: 52px; }
  .nav-page { display: none; }
  .nav-right { gap: 20px; }
  .nav-contact { display: block; padding: 10px 16px; font-size: 13px; }
  .page-hero { padding-block: 40px; }
  .page-hero h1, .page-hero .hero-split h1, .contact-intro h1 { font-size: 32px; }
  .page-hero .lead { font-size: 16px; }
  .menu { top: 76px; }
  .form { padding: 24px 20px; }
  .cs-fig figcaption { margin-top: 0; }
}
