.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
/* Ferris Wheel — court-stamp agency DEMO
   Tokens: ink #1C1917 · paper #FFFEF8 · accent #F5C518 · mute #57534E
   Accent role ONLY: spine bars + short dashes. No gradients. */

:root { /* scale-bump-20261028 align-pass-20261028c */
  --ink: #1C1917;
  --paper: #FFFEF8;
  --accent: #F5C518;
  --mute: #57534E;
  --line: #D6D3D1;
  --spine: 7px;
  --pad-x: clamp(1.5rem, 4.5vw, 4rem);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --content-left: calc(var(--pad-x) + var(--spine) + 8px);
  --content-right: var(--pad-x);
}

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "IBM Plex Sans", "IBM Plex Sans Condensed", sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* paper grain — same craft as namecards */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--mute); }

/* ——— NAV ——— left-heavy, yellow left spine */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem var(--content-right) 0.85rem var(--content-left);
}
.site-nav::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--spine);
  background: var(--accent);
}

.nav-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transform: rotate(-8deg);
}

.nav-brand {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
}
.nav-brand span {
  display: block;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--mute);
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  justify-content: flex-end;
  list-style: none;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a {
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover::after { width: 1.1rem; }
.nav-links a:hover { color: var(--ink); }

/* ——— HERO ——— asymmetric: copy left, stamp hard-right cropped */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding: clamp(3rem, 7vh, 5.25rem) var(--content-right) clamp(3.5rem, 8vh, 5.75rem) var(--content-left);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--spine);
  background: var(--accent);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  padding-bottom: 1rem;
}

.eyebrow {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-zh {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.hero-en {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 3.2vw, 2.35rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: 1.75rem;
}

.hero-tag {
  font-family: "Noto Sans TC", "IBM Plex Sans Condensed", sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  color: var(--mute);
  max-width: 28rem;
  border-left: none;
}
.hero-tag strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-meta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.hero-meta a { text-decoration: none; }
.hero-meta a:hover { color: var(--ink); }

/* stamp — centered on page */
.hero-stamp-wrap {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(48vw, 480px);
  height: min(58vh, 520px);
  z-index: 1;
  pointer-events: none;
}
.hero-stamp {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: rotate(-4deg) scale(1.02);
  filter: contrast(1.02);
  will-change: transform;
}

/* entrance states */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.hero-stamp-wrap.reveal {
  opacity: 0;
}
.hero-stamp-wrap.reveal.is-in {
  opacity: 1;
  transition: opacity 0.9s var(--ease);
}
.hero-stamp-wrap.reveal.is-in {
  /* keep centered translate from base rule */
  transform: translate(-50%, -50%);
}

/* ——— SECTIONS ——— shared left/right column */
.section {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(4.25rem, 9vh, 7.5rem) var(--content-right) clamp(4.25rem, 9vh, 7.5rem) var(--content-left);
  box-sizing: border-box;
}
.section--about,
.section--services,
.section--kol {
  border-bottom: 1px solid var(--line);
}
.section--contact {
  padding-bottom: clamp(4rem, 10vh, 7rem);
}
/* keep section content on one shared max width */
.section > .sec-label,
.section > .sec-title,
.section > .sec-title-en,
.section > .about-grid,
.section > .svc-list,
.section > .kol-intro,
.section > .kol-list,
.section > .contact-block {
  max-width: var(--max);
  width: 100%;
}

.sec-label {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.sec-label::before {
  content: "";
  width: 1.4rem;
  height: 3px;
  background: var(--accent);
}

.sec-title {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.sec-title-en {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--mute);
  margin-bottom: 1.75rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-body {
  font-size: 1.12rem;
  line-height: 1.8;
  max-width: 40rem;
}
.about-body p + p { margin-top: 1.1rem; }

.about-aside {
  border-top: 1px solid var(--ink);
  padding-top: 1.15rem;
  margin-top: 0.5rem;
}
.about-aside .who {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.about-aside .role {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1rem;
}
.about-aside .note {
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.55;
}

/* Services — left edge locks to section title; idx on the right */
.svc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: var(--max);
}
.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem;
  column-gap: 1.25rem;
  row-gap: 0;
  padding: 1.5rem 0;
  margin: 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row > .svc-idx {
  grid-column: 2;
  grid-row: 1;
}
.svc-row > div {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}
.svc-idx {
  font-family: "Archivo Black", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  padding-top: 0.25rem;
  text-align: right;
  width: auto;
  justify-self: end;
}
.svc-idx::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 3px;
  background: var(--accent);
  margin-top: 0.45rem;
  margin-left: auto;
}
.svc-zh {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.15vw, 1.6rem);
  line-height: 1.3;
  margin: 0 0 0.25rem;
}
.svc-en {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 0.55rem;
}
.svc-desc {
  font-size: 0.95rem;
  color: var(--mute);
  line-height: 1.6;
  max-width: 36rem;
  margin: 0;
}

/* KOL — light list */

.kol-intro {
  font-size: 0.98rem;
  color: var(--mute);
  max-width: 32rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}
.kol-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3rem);
  row-gap: 1.25rem;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: var(--max);
  align-items: start;
}
.kol-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
}
.kol-item:nth-child(2),
.kol-item:nth-child(3) { margin-left: 0; }

.kol-name {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
}
.kol-role {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.4;
}
.kol-ig {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  text-decoration: none;
}
.kol-ig:hover { color: var(--ink); }
.kol-ig::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.45rem;
  margin-bottom: 0.15rem;
}

/* Contact */
.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 28rem;
}
.contact-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.contact-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-row dt {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.contact-row dd {
  font-family: "IBM Plex Sans Condensed", "Noto Sans TC", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.contact-row a {
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.05rem;
}
.contact-row a:hover { color: var(--ink); }

/* Footer */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 1.75rem var(--content-right) 2rem var(--content-left);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--spine);
  background: var(--accent);
}
.footer-co {
  font-family: "Noto Sans TC", sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
}
.footer-co .en {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 0.2rem;
}
.footer-copy {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

/* sticky side stamp mark on scroll (desktop) */
.side-stamp {
  position: fixed;
  right: -2.5rem;
  bottom: 12vh;
  width: 110px;
  height: 110px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: rotate(12deg);
  transition: opacity 0.5s var(--ease);
}
.side-stamp.is-visible { opacity: 0.18; }
.side-stamp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-stamp-wrap.reveal {
    opacity: 1 !important;
    transition: none !important;
    transform: translate(-50%, -50%) !important;
  }
  @media (max-width: 860px) {
    .hero-stamp-wrap.reveal {
      transform: none !important;
    }
  }
  .side-stamp { display: none; }
  .nav-links a::after { transition: none; }
}

/* responsive */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }
  .hero-stamp-wrap {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(70vw, 320px);
    height: 260px;
    margin: 0 auto 1.5rem;
    order: -1;
  }
  .hero-stamp-wrap.reveal.is-in {
    transform: none;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .about-grid,
  .contact-block {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .svc-row { grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1.5rem; }
  .side-stamp { display: none; }
}

@media (max-width: 720px) {
  .kol-list {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
}
@media (max-width: 520px) {
  .contact-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .hero-en { max-width: none; }
}

/* print */
@media print {
  body::before { display: none; }
  .site-nav { position: static; backdrop-filter: none; }
  .side-stamp { display: none; }
  .hero { min-height: auto; }
  a { text-decoration: none; }
}
