/* =========================================================
   Chiao's Anthill — shared styles
   ========================================================= */

:root {
  --bg: #EFF0F3;
  --ink: #0D0D0D;
  --text: #2A2A2A;
  --orange: #FF8E3C;
  --white: #FFFFFE;
  --berry: #D9376E;

  --line: 3px solid var(--ink);
  --line-thin: 2px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);

  --f-latin: "Dela Gothic One", "Noto Sans TC", sans-serif;
  --f-zh-display: "Noto Sans TC", sans-serif;
  --f-body: "Nunito", "Noto Sans TC", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);

  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; }

/* ---------- language switching ---------- */
html[data-lang="zh"] [data-l="en"],
html[data-lang="en"] [data-l="zh"] { display: none !important; }

/* Display type: Dela for latin, Noto Sans TC Black for Chinese */
.display {
  font-family: var(--f-zh-display);
  font-weight: 900;
  letter-spacing: .01em;
}
html[data-lang="en"] .display { font-family: var(--f-latin); font-weight: 400; letter-spacing: 0; }
.latin { font-family: var(--f-latin); font-weight: 400; }

/* ---------- a11y ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--ink);
  border: var(--line); border-radius: 999px;
  padding: 8px 18px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--orange);
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand svg { width: 52px; height: auto; transition: transform .35s var(--ease-bounce); }
.brand:hover svg { transform: rotate(-10deg) translateX(-3px); }
.brand-name { font-family: var(--f-latin); font-size: 1.35rem; line-height: 1; }
.brand-sub { display: block; font-size: .75rem; font-weight: 700; color: var(--text); margin-top: 3px; }

.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block; padding: 8px 16px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 800; text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease-bounce), border-color .2s, background .2s;
}
.nav-links a:hover { border-color: var(--ink); transform: translateY(-2px) rotate(-2deg); }
.nav-links a[aria-current="page"] { background: var(--white); border-color: var(--ink); box-shadow: var(--pop-sm); }

.nav-tools { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  font: inherit; font-weight: 800; font-size: .9rem;
  display: inline-flex; border: var(--line-thin); border-radius: 999px;
  background: var(--white); padding: 3px; cursor: pointer; color: var(--ink);
}
.lang-toggle span { padding: 4px 10px; border-radius: 999px; transition: background .2s; }
html[data-lang="zh"] .lang-toggle .lt-zh,
html[data-lang="en"] .lang-toggle .lt-en { background: var(--ink); color: var(--white); }

.menu-btn {
  display: none;
  width: 46px; height: 46px; border: var(--line-thin); border-radius: 14px;
  background: var(--orange); cursor: pointer; padding: 0; color: var(--ink);
  box-shadow: var(--pop-sm);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 3px; background: var(--ink);
  border-radius: 3px; margin: 0 auto; position: relative; transition: transform .25s, opacity .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: var(--line);
    padding: 12px var(--gutter) 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; animation: drop .3s var(--ease-bounce); }
  .nav-links a { font-size: 1.15rem; padding: 12px 16px; }
  .brand-sub { display: none; }
}
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 900; font-size: 1.05rem;
  padding: 14px 28px; min-height: 52px;
  border: var(--line); border-radius: 999px;
  background: var(--orange); color: var(--ink);
  text-decoration: none; cursor: pointer;
  box-shadow: var(--pop);
  transition: transform .25s var(--ease-bounce), box-shadow .25s var(--ease-bounce);
}
.btn:hover { transform: translate(-3px, -3px) rotate(-1.5deg); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { background: var(--white); }
.btn svg { width: 22px; height: 22px; flex: none; }

.text-link {
  font-weight: 800; color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 100% 6px; background-position: 0 92%; background-repeat: no-repeat;
  transition: background-size .25s;
}
.text-link:hover { background-size: 100% 100%; }

/* =========================================================
   Shared section bits
   ========================================================= */
.section { padding: var(--section) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.section-head p { margin-top: 16px; font-size: 1.125rem; max-width: 60ch; }

.squiggle { width: 150px; height: 18px; margin-top: 12px; color: var(--orange); }

/* Sticker badge */
.sticker {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: var(--line-thin); border-radius: 999px;
  padding: 4px 14px; font-weight: 800; font-size: .9rem; color: var(--ink);
}
.sticker--orange { background: var(--orange); }
.sticker--ink { background: var(--ink); color: var(--white); }

.star { width: 28px; height: 28px; color: var(--berry); flex: none; }

/* Retro tape band */
.tape {
  background: var(--ink); color: var(--white);
  border-block: var(--line);
  transform: rotate(-1.6deg);
  margin: 0 -4vw;
  padding: 14px 0;
  overflow: hidden;
}
.tape-row {
  display: flex; gap: 28px; white-space: nowrap;
  font-family: var(--f-latin); font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  justify-content: center;
}
.tape-row span { display: inline-flex; align-items: center; gap: 28px; }
.tape-row span::after { content: "✦"; color: var(--orange); }
.tape-row span:last-child::after { content: none; }

/* Ant trail divider */
.ant-trail {
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='26' viewBox='0 0 64 26'%3E%3Cg fill='%230D0D0D'%3E%3Ccircle cx='8' cy='14' r='3.4'/%3E%3Ccircle cx='15' cy='14' r='3'/%3E%3Ccircle cx='23' cy='13' r='4.4'/%3E%3C/g%3E%3Cg stroke='%230D0D0D' stroke-width='1.6' fill='none' stroke-linecap='round'%3E%3Cpath d='M13 11l-2-5M16 11l1-5M14 17l-3 5M17 17l2 5M26 10l4-4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 64px 26px;
  opacity: .9;
}

/* =========================================================
   HERO (home)
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  background-image: radial-gradient(rgba(13,13,13,.09) 1.1px, transparent 1.4px);
  background-size: 16px 16px;
  border-bottom: var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.hero-name {
  font-family: var(--f-latin);
  font-size: clamp(5rem, 15vw, 11.5rem);
  line-height: .85;
  color: var(--white);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 7px 7px 0 var(--ink);
  margin: 0 0 22px -4px;
  letter-spacing: -.02em;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  line-height: 1.25;
  max-width: 16em;
}
html[data-lang="en"] .hero h1 { font-size: clamp(1.75rem, 3.8vw, 2.9rem); line-height: 1.15; }
.hero-lede { font-size: 1.15rem; max-width: 34em; margin: 22px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px 18px; }

.hero-hi {
  position: absolute; top: clamp(18px, 4vw, 42px); right: clamp(16px, 5vw, 80px);
  transform: rotate(8deg);
  z-index: 2;
}

.hero-art { position: relative; }
.mascot-btn {
  all: unset; display: block; width: 100%; cursor: pointer; border-radius: 24px;
}
.mascot-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; box-shadow: 0 0 0 9px var(--orange); }
.mascot-stage {
  background: var(--white);
  border: var(--line);
  border-radius: 28px 28px 120px 28px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(16px, 3vw, 28px) clamp(8px, 2vw, 20px) clamp(10px, 2vw, 18px);
  position: relative;
  overflow: hidden;
}
.mascot-stage::before {
  /* floor stripe */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: var(--bg); border-top: var(--line);
}
.mascot-stage svg { position: relative; }
.mascot-caption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 18px; font-weight: 800; font-size: .95rem; color: var(--ink);
}
.mascot-caption small { font-weight: 700; color: var(--text); }

.slurp-word {
  position: absolute; left: 6%; top: 18%;
  font-family: var(--f-latin); font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  background: var(--orange); border: var(--line-thin); border-radius: 12px;
  padding: 2px 12px; color: var(--ink);
  transform: rotate(-10deg) scale(0); opacity: 0;
  pointer-events: none;
}

/* Anteater animation (one orchestrated moment) */
.anteater .tongue { stroke-dasharray: 130; stroke-dashoffset: 130; }
.anteater .ant-prey { transform-box: fill-box; transform-origin: center; }
.anteater .tail { transform-box: fill-box; transform-origin: 10% 80%; }
.is-slurping .anteater .tongue { animation: tongue 1.8s ease-in-out forwards; }
.is-slurping .anteater .ant-prey { animation: prey 1.8s ease-in-out forwards; }
.is-slurping .anteater .tail { animation: wag 1.8s var(--ease-bounce); }
.is-slurping .slurp-word { animation: slurp-pop 1.8s var(--ease-bounce) forwards; }

@keyframes tongue {
  0% { stroke-dashoffset: 130; }
  35%, 50% { stroke-dashoffset: 0; }
  85%, 100% { stroke-dashoffset: 130; }
}
@keyframes prey {
  0%, 45% { transform: none; opacity: 1; }
  80% { transform: translate(70px, -10px) scale(.3); opacity: 0; }
  100% { transform: translate(70px, -10px) scale(.3); opacity: 0; }
}
@keyframes wag {
  0%, 60% { transform: none; }
  72% { transform: rotate(-9deg); }
  84% { transform: rotate(6deg); }
  100% { transform: none; }
}
@keyframes slurp-pop {
  0%, 62% { transform: rotate(-10deg) scale(0); opacity: 0; }
  76% { transform: rotate(-10deg) scale(1.08); opacity: 1; }
  90% { transform: rotate(-10deg) scale(1); opacity: 1; }
  100% { transform: rotate(-10deg) scale(1); opacity: 1; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .hero-hi { display: none; }
}

/* =========================================================
   "What you get" (home)
   ========================================================= */
.gets {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.get {
  background: var(--white); border: var(--line);
  padding: clamp(24px, 3.4vw, 40px);
  position: relative;
}
.get h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 18px 0 12px; }
.get p { margin: 0; }
.get-icon { width: 64px; height: 64px; }
.get--a { grid-column: 1 / span 7; border-radius: 26px 26px 26px 4px; box-shadow: var(--pop); }
.get--b { grid-column: 8 / span 5; margin-top: 70px; border-radius: 50px 18px 18px 18px; background: var(--orange); }
.get--c {
  grid-column: 3 / span 8; border-radius: 18px;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: var(--bg); border-style: dashed;
}
.get--c h3 { margin-top: 0; }
.get .star { position: absolute; top: -14px; right: 24px; width: 34px; height: 34px; }

@media (max-width: 860px) {
  .get--a, .get--b, .get--c { grid-column: 1 / -1; margin-top: 0; }
  .get--c { grid-template-columns: 1fr; }
}

/* =========================================================
   Article cards (ticket stubs)
   ========================================================= */
.posts {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(22px, 3vw, 34px);
}
.post {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white); border: var(--line); border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
  text-decoration: none; color: var(--text);
  transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease-bounce);
}
/* perforation notches */
.post::before, .post::after {
  content: ""; position: absolute; top: 58px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg); border: var(--line);
}
.post::before { left: -15px; clip-path: inset(0 0 0 50%); }
.post::after { right: -15px; clip-path: inset(0 50% 0 0); }
.post:hover { transform: translate(-4px, -4px) rotate(0deg) !important; box-shadow: 9px 9px 0 var(--ink); }

.post-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 2px dashed var(--ink);
}
.post-date { font-family: var(--f-latin); font-size: .95rem; color: var(--ink); }
.post h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 12px; }
.post p { margin-bottom: 18px; }
.post-more { margin-top: auto; font-weight: 900; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.post-more svg { width: 20px; height: 20px; transition: transform .25s var(--ease-bounce); }
.post:hover .post-more svg { transform: translateX(5px); }

.posts .post:nth-child(1) { grid-row: 1 / span 2; transform: rotate(-1deg); }
.posts .post:nth-child(1) h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.posts .post:nth-child(2) { transform: rotate(1.2deg); }
.posts .post:nth-child(3) { transform: rotate(-.6deg); margin-left: 24px; }

.post-cover {
  border: var(--line-thin); border-radius: 14px; margin-bottom: 22px;
  aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden;
}
.post-cover svg { width: 100%; height: 100%; }

.sample-note { font-size: .85rem; font-weight: 700; margin-top: 26px; color: var(--text); }

@media (max-width: 820px) {
  .posts { grid-template-columns: 1fr; }
  .posts .post:nth-child(1) { grid-row: auto; }
  .posts .post:nth-child(3) { margin-left: 0; }
}

/* =========================================================
   About teaser / journey path (home + about)
   ========================================================= */
.path {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0;
  list-style: none; margin: 0; padding: 0;
}
.path li { display: flex; align-items: center; }
.path li:not(:last-child)::after {
  content: ""; width: clamp(18px, 3vw, 40px); height: 0;
  border-top: 3px dashed var(--ink); margin: 0 6px;
}
.path .sticker { font-size: 1rem; padding: 8px 16px; }

.teaser {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.teaser-card {
  background: var(--white); border: var(--line); border-radius: 30px 30px 30px 6px;
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--pop);
  transform: rotate(-1.5deg);
}
.teaser-card p:last-child { margin-bottom: 0; }
.teaser h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 24px; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }

/* =========================================================
   Contact banner (bottom of pages)
   ========================================================= */
.cta-band {
  margin: 0 auto var(--section);
}
.cta-box {
  position: relative;
  background: var(--orange); border: var(--line); border-radius: 36px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta-box h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); margin-bottom: 10px; }
.cta-box p { margin: 0; font-size: 1.1rem; max-width: 40ch; color: var(--ink); }
.cta-box .btn { background: var(--white); }
.cta-box .star { position: absolute; width: 46px; height: 46px; top: -22px; left: 40px; }
@media (max-width: 720px) { .cta-box { grid-template-columns: 1fr; } }

/* =========================================================
   Page header (inner pages)
   ========================================================= */
.page-hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
  border-bottom: var(--line);
  background-image: radial-gradient(rgba(13,13,13,.09) 1.1px, transparent 1.4px);
  background-size: 16px 16px;
}
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.05; }
.page-hero p { font-size: 1.2rem; max-width: 36em; margin: 20px 0 0; }
.page-hero .sticker { margin-bottom: 20px; transform: rotate(-3deg); }
.page-hero-art { width: clamp(150px, 22vw, 260px); }
@media (max-width: 720px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-art { width: 160px; justify-self: end; margin-top: -10px; }
}

/* =========================================================
   About page
   ========================================================= */
.story {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px);
}
.story-side { position: sticky; top: 110px; align-self: start; }
.story-side h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 26px; }
.story-body { max-width: 62ch; font-size: 1.125rem; }
.story-body p:first-of-type::first-letter {
  font-family: var(--f-zh-display); font-weight: 900;
  float: left; font-size: 3.6em; line-height: 1; margin: 4px 12px 0 0;
  background: var(--orange); border: var(--line); border-radius: 14px;
  padding: 6px 12px; color: var(--ink);
}
html[data-lang="en"] .story-body p:first-of-type::first-letter { font-family: var(--f-latin); font-weight: 400; }
.pull {
  margin: 36px 0; padding: 24px 28px;
  border: var(--line); border-radius: 22px; background: var(--white);
  font-weight: 800; font-size: 1.3rem; line-height: 1.5; color: var(--ink);
  transform: rotate(1deg);
}
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-side { position: static; }
}

/* Omnivore list (interests) */
.omni {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: var(--line); border-radius: 26px; overflow: hidden; background: var(--white);
}
.omni-item { padding: clamp(22px, 3vw, 34px); border-right: var(--line); border-bottom: var(--line); }
.omni-item:nth-child(3n) { border-right: 0; }
.omni-item:nth-last-child(-n+3) { border-bottom: 0; }
.omni-item h3 { font-size: 1.35rem; margin: 14px 0 8px; display: flex; align-items: center; gap: 10px; }
.omni-item p { margin: 0; font-size: 1rem; }
.omni-item svg { width: 46px; height: 46px; }
.omni-item--hot { background: var(--orange); }
.omni-item .sticker { font-size: .78rem; padding: 1px 10px; }
@media (max-width: 860px) {
  .omni { grid-template-columns: 1fr 1fr; }
  .omni-item:nth-child(3n) { border-right: var(--line); }
  .omni-item:nth-child(2n) { border-right: 0; }
  .omni-item:nth-last-child(-n+3) { border-bottom: var(--line); }
  .omni-item:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .omni { grid-template-columns: 1fr; }
  .omni-item, .omni-item:nth-child(3n) { border-right: 0; border-bottom: var(--line); }
  .omni-item:nth-last-child(-n+2) { border-bottom: var(--line); }
  .omni-item:last-child { border-bottom: 0; }
}

/* Process steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px);
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative; background: var(--white); border: var(--line);
  border-radius: 22px; padding: 64px 22px 26px;
}
.step:nth-child(even) { margin-top: 40px; }
.step::before {
  content: counter(step);
  position: absolute; top: -26px; left: 18px;
  width: 64px; height: 64px; display: grid; place-items: center;
  font-family: var(--f-latin); font-size: 1.8rem; color: var(--ink);
  background: var(--orange); border: var(--line); border-radius: 50%;
  transform: rotate(-8deg);
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: 1rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step:nth-child(even) { margin-top: 0; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Mascot profile */
.mascot-card {
  display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--white); border: var(--line); border-radius: 36px 36px 36px 120px;
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--pop);
}
.mascot-card h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.spec {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px;
  margin: 22px 0 0; padding: 18px 0 0; border-top: 2px dashed var(--ink);
}
.spec dt { font-weight: 900; color: var(--ink); }
.spec dd { margin: 0; }
@media (max-width: 760px) { .mascot-card { grid-template-columns: 1fr; border-radius: 30px; } }

/* =========================================================
   Writing page
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(30px, 4vw, 48px); }
.filter {
  font: inherit; font-weight: 800; color: var(--ink);
  border: var(--line-thin); border-radius: 999px; background: var(--white);
  padding: 8px 18px; cursor: pointer;
  transition: transform .25s var(--ease-bounce);
}
.filter:hover:not(:disabled) { transform: translateY(-2px) rotate(-2deg); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filter:disabled { cursor: not-allowed; border-style: dashed; color: var(--text); background: transparent; }
.filter small { font-weight: 700; margin-left: 4px; }

.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: var(--line); border-radius: 30px; overflow: hidden; background: var(--white);
  box-shadow: 10px 10px 0 var(--ink);
  text-decoration: none; color: var(--text);
  transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease-bounce);
}
.feature:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--ink); }
.feature-art { background: var(--orange); border-right: var(--line); display: grid; place-items: center; padding: 28px; }
.feature-art svg { width: 100%; max-width: 420px; }
.feature-body { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; }
.feature-body h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 18px 0 16px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { border-right: 0; border-bottom: var(--line); }
}

.archive { list-style: none; margin: 0; padding: 0; border-top: var(--line); }
.archive li { border-bottom: var(--line); }
.archive a {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center;
  padding: 24px 8px; text-decoration: none; color: var(--text);
  transition: background .2s, padding .3s var(--ease-bounce);
}
.archive a:hover { background: var(--white); padding-left: 22px; }
.archive .post-date { font-size: 1rem; }
.archive h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 4px; }
.archive p { margin: 0; font-size: .98rem; }
.archive .arrow {
  width: 48px; height: 48px; border: var(--line-thin); border-radius: 50%;
  display: grid; place-items: center; background: var(--bg);
  transition: transform .3s var(--ease-bounce), background .2s;
}
.archive .arrow svg { width: 22px; height: 22px; }
.archive a:hover .arrow { background: var(--orange); transform: rotate(-45deg); }
.archive li[hidden] { display: none; }
@media (max-width: 640px) {
  .archive a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .archive .post-date { grid-column: 1 / -1; }
}

.empty {
  border: 3px dashed var(--ink); border-radius: 22px; padding: 32px; text-align: center; font-weight: 700;
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }

.mail-card {
  background: var(--white); border: var(--line); border-radius: 30px; padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--pop);
}
.mail-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.mail-address {
  display: block; font-family: var(--f-latin); font-size: clamp(.9rem, 4vw, 1.55rem);
  color: var(--ink); word-break: break-all; margin: 22px 0;
  padding: 16px 18px; background: var(--bg); border: var(--line-thin); border-radius: 14px;
  text-decoration: none;
}
.mail-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.promise { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 2px dashed var(--ink); }
.promise li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.promise svg { width: 24px; height: 24px; flex: none; margin-top: 4px; }

.form { display: grid; gap: 20px; }
.form h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.field label { display: block; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--white); border: var(--line); border-radius: 16px;
  padding: 14px 16px;
  transition: box-shadow .2s, transform .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; box-shadow: var(--pop-sm), 0 0 0 4px var(--orange); transform: translate(-1px, -1px);
}
.field .hint { font-size: .88rem; margin-top: 6px; }
.field .error { font-size: .92rem; font-weight: 800; color: var(--ink); margin-top: 6px; display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--berry); }
.field.has-error .error { display: flex; gap: 6px; align-items: center; }
.field.has-error .error::before { content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--berry); color: var(--white); font-size: .8rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translate(-50%, 200%); visibility: hidden;
  background: var(--ink); color: var(--white); font-weight: 800;
  border-radius: 999px; padding: 12px 22px; border: 3px solid var(--orange);
  transition: transform .4s var(--ease-bounce);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.phrase { display: inline-block; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: var(--line); background: var(--white); }
.site-footer .ant-trail { margin-top: -14px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding: clamp(40px, 6vw, 64px) 0 32px;
}
.footer-slogan { font-size: clamp(1.3rem, 2.6vw, 1.75rem); max-width: 18em; margin-top: 16px; }
.footer-col h2 { font-size: 1rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-weight: 700; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--orange); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 20px 0 28px; border-top: 2px dashed var(--ink); font-size: .9rem; font-weight: 700;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .anteater .tongue { display: none; }
  .is-slurping .slurp-word { animation: none; }
}

.mascot-stage { display: block; }
.footer-mail { word-break: break-all; }
.omni-item--now { position: relative; }
.omni-now { position: absolute; top: 22px; right: 18px; transform: rotate(6deg); }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
