/* =====================================================================
   The Side Dish Company — shared design system
   Tokens · typography · buttons · header · footer · cursor · utilities
   Theme: <html data-theme="dark|light">, set before paint by the inline
   script in every page <head>.
   ===================================================================== */

:root {
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* brand constants (same in both themes) */
  --brand-orange: #e5541a;
  --brand-sage: #e8ecc4;
  --veg: #2e8b3a;
  --egg: #d99a1e;
  --nonveg: #c8432a;
  --wa: #25d366;
  --gold: #c9a45c;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 12vw, 160px);
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f2e6;
  --bg-2: #eee8d5;
  --surface: #fffdf7;
  --surface-2: #f9f5ea;
  --ink: #17140f;
  --ink-2: #4f483c;
  --ink-3: #8a8171;
  --line: rgba(23, 20, 15, .12);
  --line-strong: rgba(23, 20, 15, .22);
  --accent: #e5541a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(229, 84, 26, .1);
  --sage: #e8ecc4;
  --sage-ink: #3c4220;
  --shadow: 0 1px 2px rgba(23, 20, 15, .06), 0 12px 32px -12px rgba(23, 20, 15, .18);
  --shadow-lg: 0 30px 80px -30px rgba(23, 20, 15, .35);
  --glass: rgba(246, 242, 230, .72);
  --overlay: rgba(23, 20, 15, .55);
  /* Subtle woven "table mat" texture for plain backgrounds (tools/make_texture.py). */
  --tex: url("/images/textures/tex-weave-dark.webp");
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0b09;
  --bg-2: #14110d;
  --surface: #1a1611;
  --surface-2: #221d16;
  --ink: #f4eedd;
  --ink-2: #c4b9a2;
  --ink-3: #8b8170;
  --line: rgba(244, 238, 221, .1);
  --line-strong: rgba(244, 238, 221, .2);
  --accent: #ff6b2c;
  --accent-ink: #160b05;
  --accent-soft: rgba(255, 107, 44, .14);
  --sage: #2b2e1c;
  --sage-ink: #e8ecc4;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .85);
  --glass: rgba(13, 11, 9, .7);
  --overlay: rgba(0, 0, 0, .6);
  --tex: url("/images/textures/tex-weave-light.webp");
}

/* ------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  background-image: var(--tex);
  background-size: 256px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* ------------------------------------------------------------- type */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; line-height: 1.02; margin: 0; }
.display-xl { font-size: clamp(56px, 11vw, 168px); line-height: .9; letter-spacing: -.025em; }
.display-lg { font-size: clamp(44px, 7vw, 104px); line-height: .95; letter-spacing: -.02em; }
.display-md { font-size: clamp(34px, 4.6vw, 64px); }
.display-sm { font-size: clamp(26px, 3vw, 38px); }
.italic, em.accent { font-style: italic; }
em.accent { color: var(--accent); font-family: var(--font-display); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.65; max-width: 60ch; }
.muted { color: var(--ink-2); }
.tiny { font-size: 13px; color: var(--ink-3); }
p { margin: 0 0 1em; }

/* ------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .display-md { max-width: 14ch; }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------- buttons */
.btn {
  --b-bg: transparent; --b-ink: var(--ink); --b-line: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-ink); font: 700 14px/1 var(--font-sans); letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ink);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { --b-bg: var(--accent); --b-ink: var(--accent-ink); --b-line: var(--accent); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary::before { background: var(--ink); }
.btn-light { --b-bg: #f4eedd; --b-ink: #17140f; --b-line: #f4eedd; }
.btn-light::before { background: var(--accent); }
.btn-light:hover { color: #fff; border-color: var(--accent); }
.btn-wa { --b-bg: var(--wa); --b-ink: #06301a; --b-line: var(--wa); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.icon-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.icon-btn svg { width: 19px; height: 19px; }
.link-underline { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.link-underline:hover { background-size: 100% 1px; }

/* ------------------------------------------------------------- chips & badges */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap;
  transition: all .3s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink-2); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 11px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); }
.badge-sage { background: var(--sage); color: var(--sage-ink); }

/* Indian FSSAI-style diet mark: square outline with a dot (triangle for non-veg) */
.diet { --c: var(--veg); position: relative; display: inline-block; width: 15px; height: 15px; border: 1.6px solid var(--c); border-radius: 3px; flex: none; vertical-align: -2px; }
.diet::after { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--c); }
.diet.egg { --c: var(--egg); }
.diet.nonveg { --c: var(--nonveg); }
.diet.nonveg::after { inset: auto; left: 50%; top: 50%; width: 0; height: 0; border-radius: 0; background: none; transform: translate(-50%, -60%);
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid var(--c); }

/* ------------------------------------------------------------- header */
.announce {
  position: relative; z-index: 60; background: var(--accent); color: var(--accent-ink); text-align: center;
  font: 600 13px/1.3 var(--font-sans); padding: 9px 44px; letter-spacing: .02em;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.announce button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; opacity: .8; }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  transition: background-color .4s var(--ease), border-color .4s, transform .5s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-overlay:not(.is-scrolled) { position: fixed; left: 0; right: 0; color: #f4eedd; }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 800 14px/1.05 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.brand-text small { font: 600 10px/1.4 var(--font-sans); letter-spacing: .28em; text-transform: uppercase; opacity: .65; margin-top: 4px; }
.nav { display: flex; gap: 6px; margin-inline: auto; }
.nav a { position: relative; white-space: nowrap; padding: 10px 14px; font: 600 14px/1 var(--font-sans); letter-spacing: .02em; opacity: .82; transition: opacity .3s; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.site-header.is-overlay:not(.is-scrolled) .icon-btn { border-color: rgba(244, 238, 221, .3); }
.menu-toggle { display: none; }

.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

@media (max-width: 960px) {
  .nav, .header-actions .btn-order { display: none; }
  .menu-toggle { display: inline-grid; }
  /* With the nav hidden, push theme + menu buttons to the right edge. */
  .header-actions { margin-left: auto; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 70; background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; padding: 20px var(--gutter) 32px;
  clip-path: circle(0% at calc(100% - 40px) 38px); visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.drawer nav { display: flex; flex-direction: column; margin-top: 6vh; }
.drawer nav a { font: 500 clamp(40px, 11vw, 64px)/1.15 var(--font-display); padding: 4px 0; display: flex; align-items: baseline; gap: 16px; }
.drawer nav a span { font: 600 12px/1 var(--font-sans); color: var(--ink-3); letter-spacing: .1em; }
.drawer-foot { margin-top: auto; display: grid; gap: 14px; }
.drawer-foot .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------- platform buttons (Swiggy/Zomato/Google) */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platform {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-weight: 700; font-size: 14px; transition: all .35s var(--ease);
}
.platform i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; color: #fff; }
.platform.swiggy i { background: #fc8019; }
.platform.zomato i { background: #e23744; }
.platform.google i { background: #fff; color: #4285f4; border: 1px solid var(--line); }
.platform.instagram i { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.platform:hover { transform: translateY(-3px); border-color: var(--ink-2); box-shadow: var(--shadow); }

/* ------------------------------------------------------------- footer */
.site-footer { position: relative; background: #0a0907; color: #e9e2cf; padding-top: clamp(72px, 10vw, 140px); overflow: hidden; }
:root[data-theme="light"] .site-footer { background: #17140f; }
.site-footer a:hover { color: var(--brand-orange); }
.footer-cta { display: grid; gap: 28px; padding-bottom: clamp(56px, 8vw, 96px); border-bottom: 1px solid rgba(233, 226, 207, .12); }
.footer-cta .display-lg em { color: var(--brand-orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px; }
.footer-grid h4 { font: 700 12px/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(233, 226, 207, .5); margin: 0 0 18px; }
.footer-grid p, .footer-grid li { color: rgba(233, 226, 207, .8); font-size: 15px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand img { width: 120px; height: auto; margin-bottom: 22px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 36px; border-top: 1px solid rgba(233, 226, 207, .12); font-size: 13px; color: rgba(233, 226, 207, .55); }
.footer-word { font: 600 clamp(64px, 17vw, 260px)/.8 var(--font-display); letter-spacing: -.03em; color: rgba(233, 226, 207, .05); white-space: nowrap; text-align: center; margin-bottom: -.12em; user-select: none; }
.site-footer .platform { border-color: rgba(233, 226, 207, .2); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- floating WhatsApp */
.fab-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .7);
  transition: transform .4s var(--ease);
}
.fab-wa:hover { transform: scale(1.08) rotate(-6deg); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ------------------------------------------------------------- custom cursor (pointer devices only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; z-index: 9999; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255, 255, 255, .7); mix-blend-mode: difference;
  display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .3s, border-color .3s;
}
.cursor-ring span { font: 700 11px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #111; opacity: 0; transition: opacity .3s; }
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .15); }
.cursor-ring.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; border-color: #fff; mix-blend-mode: normal; }
.cursor-ring.has-label span { opacity: 1; }
.cursor-ring.is-down { transform-origin: center; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ------------------------------------------------------------- reveal / motion utilities */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.is-in .split-word, .split-word.is-in { transform: none; }
/* The clip sits on the image, not the observed figure: Chrome treats a fully
   clipped element as never intersecting, so the reveal (and lazy load) never fired. */
.img-reveal { overflow: hidden; }
.img-reveal img { clip-path: inset(100% 0 0 0); transform: scale(1.25); transition: clip-path 1.4s var(--ease-in-out), transform 1.8s var(--ease); }
.img-reveal.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }

.marquee { display: flex; overflow: hidden; user-select: none; gap: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex: none; gap: 48px; padding-right: 48px; align-items: center; animation: marquee var(--marquee-speed, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform .6s var(--ease); }
[data-tilt] .tilt-glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 55%); opacity: 0; transition: opacity .4s; }
[data-tilt]:hover .tilt-glare { opacity: 1; }

/* ------------------------------------------------------------- toast */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9000; display: grid; gap: 8px; pointer-events: none; width: min(92vw, 420px); }
.toast { background: var(--ink); color: var(--bg); padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); animation: toast-in .5s var(--ease); pointer-events: auto; }
.toast.error { background: var(--nonveg); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* ------------------------------------------------------------- page loader */
.loader { position: fixed; inset: 0; z-index: 10000; background: #0d0b09; display: grid; place-items: center; transition: clip-path 1.1s var(--ease-in-out); clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader img { width: 132px; height: auto; animation: loader-breathe 1.6s var(--ease) infinite alternate; }
.loader-bar { position: absolute; left: 50%; bottom: 18%; width: 160px; height: 1px; background: rgba(244, 238, 221, .15); transform: translateX(-50%); overflow: hidden; }
.loader-bar i { position: absolute; inset: 0; background: var(--brand-orange); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .4s var(--ease); }
@keyframes loader-breathe { from { transform: scale(.94); opacity: .7; } to { transform: scale(1.02); opacity: 1; } }

/* ------------------------------------------------------------- forms (shared) */
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--ink-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 90px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ------------------------------------------------------------- theme switch wipe (View Transitions API) */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: vt-reveal .9s var(--ease-in-out); }
@keyframes vt-reveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); } }

/* ------------------------------------------------------------- scrollbar */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--bg); }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], .split-word, .img-reveal, .img-reveal img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
