/* White Palace Production · sirosiro.ai
   Brand: Charcoal #222222 base · Gold #CCAA66 accent · White text · Grey #AAAAAA quiet text · Gold Dark #998855
   Type: Inter (EN) · Noto Sans JP (JA)
   Flat and quiet. Depth from charcoal steps and 1px lines at 12% white. Gold glow only on the mark. */

:root {
  --charcoal: #222222;
  --charcoal-2: #2A2A2A;
  --charcoal-3: #333333;
  --gold: #CCAA66;
  --gold-dark: #998855;
  --white: #FFFFFF;
  --grey: #AAAAAA;
  --ink-2: #DDDDDD;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .22s;
  --font-en: Inter, "Noto Sans JP", -apple-system, "Hiragino Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-ja: "Noto Sans JP", Inter, -apple-system, "Hiragino Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[data-lang="ja"] body { font-family: var(--font-ja); }

/* Language switching: only the active language renders. */
.ja { display: none; }
html[data-lang="ja"] .ja { display: inline; }
html[data-lang="ja"] .en { display: none; }
html[data-lang="ja"] .lede .ja,
html[data-lang="ja"] p .ja { display: inline; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; color: var(--gold); }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--charcoal); padding: 10px 16px; border-radius: 2px;
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.overline {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500;
  color: var(--gold); margin-bottom: 18px;
}
html[data-lang="ja"] .overline { letter-spacing: .24em; }

.h1 {
  font-size: clamp(44px, 7.2vw, 88px);
  font-weight: 800; line-height: 1.02; letter-spacing: -.01em;
}
html[data-lang="ja"] .h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: .02em; line-height: 1.18; }

.h2 {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 300; line-height: 1.12; letter-spacing: -.005em;
  max-width: 20ch;
}
html[data-lang="ja"] .h2 { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.3; max-width: 24ch; }

.h2-light { font-size: clamp(30px, 4vw, 48px); font-weight: 300; line-height: 1.15; }

.h3-light { font-size: clamp(32px, 3.4vw, 42px); font-weight: 300; line-height: 1.1; }
.card h3:not(.h3-light), .step h3, .story h3 { font-size: 24px; font-weight: 700; line-height: 1.25; }
.story-featured h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.15; }

.lede { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.8; color: var(--ink-2); max-width: 60ch; margin-top: 28px; }
.body { font-size: 16px; color: var(--ink-2); max-width: 56ch; margin-top: 24px; }
.sub { font-size: 19px; color: var(--grey); margin-top: 6px; }
.caption { font-size: 12px; color: var(--grey); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 26px; border-radius: 2px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
html[data-lang="ja"] .btn { letter-spacing: .1em; font-size: 13px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 11px; }
.btn-fill { background: var(--gold); color: var(--charcoal); border: 1px solid var(--gold); }
.btn-fill:hover { background: #D4B97F; border-color: #D4B97F; }
.btn-fill:active { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn-out { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.btn-out:hover { background: var(--gold); color: var(--charcoal); }
.btn-out:active { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(34, 34, 34, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand-word {
  font-weight: 800; letter-spacing: .14em; line-height: 1; font-size: 13px; white-space: nowrap;
  font-family: var(--font-en);
}
.brand-word small { display: block; font-size: 8px; letter-spacing: .32em; color: var(--gold); font-weight: 700; margin-top: 5px; }

.nav { display: flex; gap: 28px; }
.nav a, .footer-nav a { font-size: 13px; font-weight: 700; color: var(--grey); transition: color var(--t) var(--ease); letter-spacing: .02em; }
.nav a:hover, .nav a.active, .footer-nav a:hover { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang { display: inline-flex; border: 1px solid var(--gold); border-radius: 2px; overflow: hidden; }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--gold);
  font: inherit; font-weight: 700; font-size: 12px; letter-spacing: .06em; padding: 7px 11px; cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--charcoal); }
.lang button:focus-visible { outline-offset: -3px; }

.menu-btn {
  display: none; width: 44px; height: 44px; appearance: none; background: transparent; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--line); background: rgba(34, 34, 34, .98);
}
.mobile-nav a { padding: 12px 0; font-size: 18px; font-weight: 700; color: var(--white); border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { margin-top: 14px; border-bottom: 1px solid var(--gold); color: var(--gold); font-size: 13px; }
.mobile-nav a.btn:hover { color: var(--charcoal); }
.site-header.open .mobile-nav { display: flex; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 110px) 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 600px at 85% 0%, rgba(204, 170, 102, .10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero-copy { animation: rise .6s var(--ease) both; }

.hero-visual { position: relative; }
.bluehour {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 80% 110%, rgba(204, 170, 102, .55), transparent 55%),
    linear-gradient(170deg, #0F1A33 0%, #23365E 48%, #6B5A7A 82%, #8A7560 100%);
}
.hero-visual .bluehour { aspect-ratio: 4 / 5; display: grid; place-items: center; animation: rise .8s .1s var(--ease) both; }
.hero-visual .bluehour::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34, 34, 34, 0) 55%, rgba(34, 34, 34, .55) 100%);
}
.hero-mark {
  width: 58%; height: auto; aspect-ratio: 1; color: var(--white); position: relative; z-index: 1;
  filter: drop-shadow(0 0 14px rgba(204, 170, 102, .45));
  animation: breathe 2.8s var(--ease) 1 both;
}

.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  margin-top: clamp(48px, 7vw, 96px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--line);
}
.numbers li { background: var(--charcoal); padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.numbers b { font-size: 30px; font-weight: 700; color: var(--gold); line-height: 1.1; font-family: var(--font-en); }
.numbers li > span { font-size: 12px; color: var(--grey); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-alt { background: var(--charcoal-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }

.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  background: var(--charcoal); position: relative;
  transition: outline-color var(--t) var(--ease), border-color var(--t) var(--ease);
  outline: 1px solid transparent; outline-offset: -1px;
}
.section-alt .card { background: var(--charcoal-2); }
.card:hover { outline-color: var(--gold); border-color: var(--gold); }
.card > p:not(.sub) { margin-top: 22px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.card-join { display: flex; flex-direction: column; }
.card-join > p { flex: 1; }
.card-join .btn { margin-top: 28px; align-self: flex-start; }
.card-gold { border-color: rgba(204, 170, 102, .45); }

/* Split (Shiroshiro AI) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ticks { margin-top: 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--gold);
}
.ticks li::after {
  content: ""; position: absolute; left: 4.5px; top: calc(.55em + 4.5px); width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

.dialog-stage {
  border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(204, 170, 102, .10), transparent 60%),
    var(--charcoal);
  display: grid; place-items: center;
}
.dialog {
  width: min(420px, 100%); border: 1px solid var(--line-strong); border-radius: 12px; background: var(--charcoal-2);
  padding: 20px 22px 22px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
}
.dialog-head { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 500; font-family: var(--font-en); }
.dialog-mark { width: 18px; height: 18px; color: var(--gold); }
.dialog-body { margin-top: 18px; }
.dialog-body b { font-size: 18px; font-weight: 700; }
.dialog-body p { margin-top: 8px; font-size: 13px; color: #CCCCCC; line-height: 1.7; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 26px; }
.step-no { display: block; font-size: 11px; letter-spacing: .3em; color: var(--gold); font-weight: 500; font-family: var(--font-en); }
.step h3 { margin-top: 14px; }
.step p { margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }

/* Stories */
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }
.story {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--charcoal);
  display: flex; flex-direction: column;
  outline: 1px solid transparent; outline-offset: -1px;
  transition: outline-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.story:hover { outline-color: var(--gold); border-color: var(--gold); }
.story-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.story-visual { min-height: 220px; border-radius: 0; border: 0; }
.story-featured .story-visual { min-height: 360px; }
.bh-1 { background: radial-gradient(90% 70% at 90% 100%, rgba(204, 170, 102, .5), transparent 55%), linear-gradient(160deg, #0F1A33, #23365E 60%, #3A4466); }
.bh-2 { background: radial-gradient(90% 70% at 10% 100%, rgba(204, 170, 102, .45), transparent 55%), linear-gradient(200deg, #23365E, #6B5A7A); }
.bh-3 { background: radial-gradient(90% 70% at 50% 110%, rgba(204, 170, 102, .7), transparent 55%), linear-gradient(180deg, #6B5A7A, #8A7560); }
.story-visual::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 34, 34, 0) 60%, rgba(34, 34, 34, .45) 100%);
}
.story-visual { position: relative; }
.story-text { padding: 28px; display: flex; flex-direction: column; }
.story-featured .story-text { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.story-text > p:not(.sub):not(.caption) { margin-top: 16px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.story-text .caption { margin-top: auto; padding-top: 22px; }
.story h3 { margin-top: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700;
  border: 1px solid var(--line); padding: 6px 10px; font-family: var(--font-en);
}

/* Contact */
.contact { padding-bottom: clamp(72px, 9vw, 120px); }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact-mark { width: 120px; height: 120px; color: var(--gold); filter: drop-shadow(0 0 12px rgba(204, 170, 102, .45)); }
.mail { font-size: clamp(22px, 3.2vw, 36px); font-weight: 300; color: var(--gold); letter-spacing: .01em; font-family: var(--font-en); border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease); }
.mail:hover { border-bottom-color: var(--gold); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-tag { font-size: 15px; font-weight: 300; color: var(--ink-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner > .caption { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Motion (quick and calm, 0.15–0.3s; the mark only may take longer) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0% { opacity: 0; transform: scale(.92); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-copy, .hero-visual .bluehour, .hero-mark { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .grid-3 > :last-child:nth-child(odd), .steps > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav, .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual .bluehour { aspect-ratio: 16 / 10; }
  .hero-mark { width: 38%; }
  .split { grid-template-columns: 1fr; }
  .stories, .story-featured { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-3 > :last-child, .steps > :last-child { grid-column: auto; }
  .header-inner { height: 64px; }
  .actions .btn { width: 100%; }
  .numbers li { padding: 18px; }
  .numbers b { font-size: 26px; }
  .card { padding: 24px 20px; }
  .story-text { padding: 22px 20px; }
  .lang button { padding: 7px 9px; }
}

/* ---------- Agents ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.grid-4 .card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.agents { margin-top: 40px; }
.agent { display: flex; flex-direction: column; min-height: 230px; color: inherit; }
.agent-no { font-size: 11px; letter-spacing: .3em; color: var(--gold); font-weight: 500; font-family: var(--font-en); }
.agent h3 { margin-top: 14px; }
.agent > p { flex: 1; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; align-self: flex-start;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--grey);
  border: 1px solid var(--line); padding: 6px 10px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
html[data-lang="ja"] .status { letter-spacing: .14em; }
.agent:hover .status { color: var(--gold); }

/* Agent detail pages */
.agent-hero { padding: clamp(48px, 7vw, 96px) 0 0; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 28px; }
.crumb:hover { color: #D4B97F; }
.agent-hero .h1 { font-size: clamp(40px, 6vw, 72px); }
html[data-lang="ja"] .agent-hero .h1 { font-size: clamp(34px, 5vw, 60px); }
.agent-hero .status { margin-top: 0; margin-bottom: 22px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.feature { border-top: 1px solid var(--line); padding-top: 22px; }
.feature b { display: block; font-size: 17px; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.agent-other { margin-top: 48px; }
.agent-other h2 { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; color: var(--gold); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 13px; font-weight: 700; color: var(--grey); border: 1px solid var(--line); padding: 10px 14px; border-radius: 2px; transition: color var(--t) var(--ease), border-color var(--t) var(--ease); }
.chip:hover { color: var(--white); border-color: var(--gold); }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-4, .feature-list { grid-template-columns: 1fr; } .agent { min-height: 0; } }

/* ---------- Sirosiro, the cursor-chasing dog ---------- */
.siro-wrap {
  position: fixed; left: 0; top: 0; z-index: 60; width: 84px; height: 72px;
  pointer-events: none; will-change: transform;
}
.siro-flip { width: 84px; height: 72px; transform-origin: 50% 50%; }
.siro { display: block; overflow: visible; pointer-events: none; }
.siro-wrap.sit .siro { pointer-events: auto; cursor: pointer; }
.siro circle, .siro ellipse, .siro rect { fill: #FFFFFF; }
.siro .siro-shadow { fill: rgba(0, 0, 0, .35); }
.siro .siro-leg-far rect, .siro .siro-leg-far circle { fill: #D9D9D9; }
.siro .siro-ear ellipse, .siro .siro-ear circle { fill: #EFEFEF; }
.siro .siro-tail circle { fill: #F6F6F6; }
.siro .siro-nose, .siro .siro-eye { fill: #222222; }
.siro .siro-glint { fill: #FFFFFF; }
.siro .siro-mouth, .siro .siro-eye-happy { fill: none; stroke: #222222; stroke-width: 1.5; stroke-linecap: round; }
.siro .siro-eye-happy { stroke-width: 2; display: none; }
.siro .siro-tongue { fill: #E59A9A; display: none; }
.siro .siro-collar { fill: none; stroke: #998855; stroke-width: 3.5; stroke-linecap: round; }
.siro .siro-flower circle { fill: #E5D6B2; }
.siro .siro-flower .siro-flower-c { fill: #CCAA66; }

.siro-all, .siro-head, .siro-tail, .siro-leg, .siro-ear { transform-box: view-box; }
.siro-all { transform-origin: 55px 88px; }
.siro-head { transform-origin: 82px 52px; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.siro-tail { transform-origin: 30px 54px; animation: siro-wag 1.1s ease-in-out infinite; }
.siro-ear { transform-origin: 77px 30px; }
.siro-b1, .siro-b2 { transform-origin: 40px 62px; }
.siro-f1, .siro-f2 { transform-origin: 78px 62px; }
.siro-eye-open { transform-box: fill-box; transform-origin: center; animation: siro-blink 4.6s infinite; }

/* Sitting: the head tilt from the photo. */
.siro-wrap.sit .siro-head { transform: rotate(-11deg); }

/* Running */
.siro-wrap.run .siro-all { animation: siro-bob .3s ease-in-out infinite; }
.siro-wrap.run .siro-b1, .siro-wrap.run .siro-f2 { animation: siro-leg-a .3s linear infinite; }
.siro-wrap.run .siro-b2, .siro-wrap.run .siro-f1 { animation: siro-leg-b .3s linear infinite; }
.siro-wrap.run .siro-tail { animation-duration: .3s; }
.siro-wrap.run .siro-ear { animation: siro-ear .3s ease-in-out infinite; }
.siro-wrap.run .siro-tongue { display: block; }
.siro-wrap.run .siro-shadow { animation: siro-shadow .3s ease-in-out infinite; }

/* Petting */
.siro-wrap.pet .siro-all { animation: siro-squish .5s cubic-bezier(.2, .7, .2, 1) 2; }
.siro-wrap.pet .siro-head { transform: rotate(-18deg); }
.siro-wrap.pet .siro-tail { animation-duration: .22s; }
.siro-wrap.pet .siro-eye-open { display: none; }
.siro-wrap.pet .siro-eye-happy, .siro-wrap.pet .siro-tongue { display: block; }

.siro-hearts { position: absolute; left: 0; top: 0; width: 84px; height: 0; }
.siro-heart {
  position: absolute; top: -2px; font-size: 16px; line-height: 1; color: #CCAA66; opacity: 0;
  animation: siro-heart 1.1s cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes siro-wag { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(16deg); } }
@keyframes siro-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes siro-leg-a { 0% { transform: rotate(34deg); } 50% { transform: rotate(-34deg); } 100% { transform: rotate(34deg); } }
@keyframes siro-leg-b { 0% { transform: rotate(-34deg); } 50% { transform: rotate(34deg); } 100% { transform: rotate(-34deg); } }
@keyframes siro-ear { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(22deg); } }
@keyframes siro-shadow { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
@keyframes siro-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes siro-squish { 0%, 100% { transform: scale(1, 1); } 35% { transform: scale(1.08, .88); } 70% { transform: scale(.96, 1.06); } }
@keyframes siro-heart { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-38px) scale(1.15); } }

@media (hover: none), (pointer: coarse) { .siro-wrap { display: none; } }
/* Calm mode (reduced motion, not yet opted in): no looping animation until the visitor pets it. */
.siro-wrap.calm .siro-tail, .siro-wrap.calm .siro-eye-open { animation: none; }
