:root {
  --ink: #191613;
  --ink-soft: #28221d;
  --brown: #5f3f2d;
  --brown-deep: #392a22;
  --gold: #b79263;
  --gold-light: #d6bd94;
  --ivory: #f4f0e8;
  --white: #fffdf9;
  --red: #a64035;
  --nav-h: 72px;
  --site-font: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  --editor-heading-size: 58px;
  --editor-body-size: 15px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ivory);
  background: var(--ink);
  font-family: var(--site-font);
  font-size: var(--editor-body-size);
  letter-spacing: 0;
}
body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  color: var(--ivory);
  background: rgba(21, 19, 17, .98);
  border-bottom: 1px solid rgba(214, 189, 148, .18);
}
.nav-inner {
  width: min(100% - 40px, 1440px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand {
  position: absolute;
  left: max(20px, calc((100% - 1440px) / 2));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: var(--gold-light);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 253, 249, .76);
  transition: color .2s ease;
}
.nav-link::after { content: "｜"; margin-left: 18px; color: rgba(183, 146, 99, .55); }
.nav-link:last-child::after { display: none; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--white); }
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  color: var(--ivory);
  background: transparent;
  border: 1px solid rgba(214, 189, 148, .35);
  cursor: pointer;
}
.menu-button span { display: block; height: 1px; margin: 5px 0; background: currentColor; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background: url("/assets/original/home-hero.jpg") center 48% / cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: rgba(15, 13, 11, .54); }
.hero-content { position: relative; z-index: 1; width: min(90%, 760px); padding: 50px 20px 72px; }
.hero-welcome { margin: 0 0 3px; font-family: Georgia, serif; font-size: 13px; letter-spacing: 6px; }
.hero h1 {
  margin: 0;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(90px, 13vw, 174px);
  font-weight: 400;
  line-height: .94;
  color: var(--white);
}
.hero-title { margin: 18px 0 7px; font-size: 20px; font-weight: 700; }
.hero-tagline { margin: 0 0 34px; color: var(--gold-light); font-size: 15px; }
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border: 1px solid currentColor;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 2px;
  transition: color .2s, background .2s;
}
.outline-button.light:hover { color: var(--ink); background: var(--white); }

.page-shell { min-height: calc(100vh - var(--nav-h)); }
.about-main {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(310px, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 70px 0 90px;
}
.portrait-wrap { position: relative; max-width: 440px; margin: 0 auto; padding: 20px 0 0 24px; }
.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 0 22px 28px 0;
  border: 1px solid var(--gold);
}
.portrait-wrap::after {
  content: "······\A······\A······";
  white-space: pre;
  position: absolute;
  left: -18px;
  bottom: 10px;
  color: var(--gold);
  font-size: 18px;
  line-height: .55;
  letter-spacing: 8px;
}
.portrait-wrap img { position: relative; z-index: 1; width: 100%; aspect-ratio: 755 / 800; object-fit: cover; }
.about-copy { max-width: 560px; }
.eyebrow { margin: 0 0 8px; color: var(--gold-light); font-size: 14px; letter-spacing: 2px; }
.about-copy h1 { margin: 0; font-size: clamp(34px, 4vw, var(--editor-heading-size)); font-weight: 800; line-height: 1.12; }
.about-subtitle { margin: 8px 0 26px; color: var(--gold); font-family: Georgia, serif; font-size: 16px; letter-spacing: 1.5px; }
.about-body { color: rgba(244, 240, 232, .86); font-size: var(--editor-body-size); line-height: 2; }
.about-body p { margin: 0 0 17px; }
.about-body p { white-space: pre-line; }
.about-body strong { color: var(--white); }
.about-note { color: var(--gold-light); }
.brown-button {
  display: inline-flex;
  justify-content: center;
  min-width: 166px;
  margin-top: 14px;
  padding: 13px 25px;
  color: var(--ivory);
  background: var(--brown);
  border: 1px solid var(--brown);
  font-weight: 700;
}
.brown-button:hover { background: transparent; border-color: var(--gold); }

.portfolio-main { min-height: calc(100vh - var(--nav-h)); background: #100f0e; }
.portfolio-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.style-card { position: relative; min-height: 390px; overflow: hidden; background: #181511; }
.style-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.47) saturate(.78);
  transform: scale(1.015);
  transition: filter .35s ease, transform .55s ease;
}
.style-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,.05) 42%, rgba(10,9,8,.82));
}
.style-card span {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 28px;
  color: var(--white);
  font-family: Georgia, serif;
  font-size: clamp(17px, 1.5vw, 24px);
  text-align: center;
}
.style-card:hover img, .style-card:focus-visible img { filter: brightness(.72) saturate(.9); transform: scale(1.055); }
.courtyard-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  color: var(--gold-light);
  background: var(--ink-soft);
  border-top: 1px solid rgba(183, 146, 99, .25);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
}
.courtyard-link:hover { color: var(--white); }

.service-intro { position: relative; overflow: hidden; color: #443830; background: #f4f1eb; padding: 34px 24px 48px; }
.service-intro::before {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -2px;
  width: 180px;
  height: 58px;
  background: url("/assets/original/service-cats.png") left center / 200% 100% no-repeat;
  filter: invert(1);
  mix-blend-mode: multiply;
  opacity: .38;
}
.service-inner { width: min(100%, 1130px); margin: 0 auto; }
.service-heading { margin: 0 0 36px; text-align: left; }
.service-heading h1 { margin: 0; color: #201c1a; font-size: clamp(42px, 5vw, var(--editor-heading-size)); line-height: 1; }
.service-heading h1::before { content: "✦"; margin-right: 10px; font-size: .72em; }
.service-heading p { margin: -3px 0 0 118px; color: #9e7440; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 15px; font-style: italic; letter-spacing: 3px; white-space: nowrap; transform: rotate(-3deg); }
.service-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; gap: 42px; }
.guideline-list { padding-left: 78px; color: #8e6a3d; font-size: 15px; line-height: 1.65; }
.guideline-list p { margin: 0 0 24px; }
.guideline-list strong { color: #8e6a3d; }
.notice-box { position: relative; margin-top: 120px; padding: 55px 26px 22px; color: #39332f; background: #ddd8cf; }
.notice-box::before {
  content: "";
  position: absolute;
  top: -66px;
  right: 40px;
  width: 180px;
  height: 55px;
  background: url("/assets/original/service-cats.png") left center / 200% 100% no-repeat;
  filter: invert(1);
  mix-blend-mode: multiply;
  opacity: .38;
}
.notice-box::after {
  content: "·······\A·······\A·······\A·······";
  white-space: pre;
  position: absolute;
  right: -13px;
  bottom: -20px;
  color: #241f1c;
  font-size: 17px;
  line-height: .55;
  letter-spacing: 7px;
}
.notice-box h2 { position: absolute; top: 16px; left: 24px; min-width: 154px; margin: 0; padding: 4px 18px; border: 1px solid #5d5148; color: #8b6a40; font-size: 18px; text-align: center; letter-spacing: 4px; }
.notice-box p { margin: 0 0 15px; color: #9d1611; font-size: 14px; font-weight: 700; line-height: 1.55; }
.notice-box .alert { color: var(--red); font-weight: 800; }
.service-explainer { margin: 19px 0 0; color: #3f3934; text-align: left; font-size: 12px; line-height: 1.55; }
.process-section { padding: 80px 24px 90px; background: #201b18; }
.process-heading { width: min(100%, 1080px); margin: 0 auto 42px; text-align: left; }
.process-heading h2 { margin: 0; font-size: clamp(40px, 5vw, var(--editor-heading-size)); line-height: 1; }
.process-heading h2::before { content: "✦"; margin-right: 10px; font-size: .72em; }
.process-heading p { margin: -2px 0 0 205px; color: var(--gold); font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 17px; font-style: italic; letter-spacing: 5px; transform: rotate(-3deg); }
.process-list { width: min(100%, 1080px); margin: 0 auto; display: grid; grid-template-columns: 1.02fr .98fr; gap: 0 44px; }
.process-step { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 0 0 20px; }
.process-step:first-child { grid-column: 1; grid-row: 1 / span 5; }
.process-step:not(:first-child) { grid-column: 2; }
.process-step:first-child .step-copy { padding: 15px 18px; color: #9f7d51; background: #181512; }
.step-number { color: var(--white); font-family: Georgia, serif; font-size: 21px; line-height: 1.35; }
.step-copy { color: rgba(244,240,232,.88); font-size: 14px; line-height: 1.9; }
.step-copy p { margin: 0 0 7px; }
.step-copy strong { color: var(--white); font-size: 16px; }
.discord-link {
  display: flex;
  width: fit-content;
  margin: 45px auto 0;
  padding: 13px 24px;
  color: var(--ink);
  background: var(--gold-light);
  font-weight: 800;
}
.discord-link:hover { background: var(--white); }

.gallery-main { min-height: calc(100vh - var(--nav-h)); padding: 64px 24px 90px; background: #171412; }
.gallery-header { width: min(100%, 1180px); margin: 0 auto 46px; text-align: center; }
.gallery-kicker { margin: 0 0 5px; color: var(--gold); font-family: Georgia, serif; font-size: 15px; letter-spacing: 2px; }
.gallery-header h1 { margin: 0; font-size: clamp(40px, 6vw, calc(var(--editor-heading-size) * 1.3)); line-height: 1.13; }
.gallery-subtitle { margin: 9px 0 28px; color: rgba(244,240,232,.62); font-family: Georgia, serif; font-size: 15px; letter-spacing: 2px; }
.gallery-actions { display: flex; justify-content: center; gap: 12px; }
.gallery-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid rgba(214,189,148,.45);
  color: var(--gold-light);
  font-size: 13px;
}
.gallery-action:hover { color: var(--ink); background: var(--gold-light); }
.gallery-grid { width: min(100%, 1240px); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 26px; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #0c0b0a;
  border: 1px solid rgba(183,146,99,.2);
  cursor: zoom-in;
}
.gallery-button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .25s, transform .45s; }
.gallery-button:hover img, .gallery-button:focus-visible img { opacity: .84; transform: scale(1.018); }
.gallery-item figcaption { min-height: 27px; padding: 8px 2px 0; color: rgba(214,189,148,.75); font-size: 12px; text-align: right; }
.gallery-empty { min-height: 250px; }
.gallery-grid:not(:empty) + .gallery-empty { display: none; }

.site-footer { padding: 45px 24px 38px; text-align: center; color: rgba(244,240,232,.62); background: #11100f; border-top: 1px solid rgba(183,146,99,.17); }
.footer-brand { margin: 0; color: var(--gold-light); font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 35px; }
.footer-tagline { margin: 2px 0 22px; font-family: Georgia, serif; font-size: 12px; letter-spacing: 2px; }
.footer-copy { margin: 0; font-size: 11px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 44px 72px 64px;
  background: rgba(8, 7, 6, .94);
}
.lightbox[aria-hidden="false"] { display: grid; }
.lightbox-stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.lightbox-image { max-width: 100%; max-height: calc(100vh - 118px); object-fit: contain; box-shadow: 0 12px 44px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--white);
  background: rgba(24,21,18,.72);
  border: 1px solid rgba(255,255,255,.35);
  cursor: pointer;
}
.lightbox-close { top: 18px; right: 20px; z-index: 2; font-size: 31px; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 38px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-close:hover, .lightbox-nav:hover { color: var(--ink); background: var(--white); }
.lightbox-caption { position: absolute; left: 80px; right: 80px; bottom: 20px; margin: 0; color: rgba(255,255,255,.72); font-size: 13px; text-align: center; }
.lightbox-counter { color: var(--gold-light); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

@media (max-width: 1000px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .style-card { min-height: 440px; }
  .style-card:last-child { grid-column: span 2; min-height: 520px; }
  .service-grid { grid-template-columns: 1fr; }
  .notice-box { margin-top: 48px; }
  .process-list { grid-template-columns: 1fr; gap: 22px; }
  .process-step:first-child, .process-step:not(:first-child) { grid-column: 1; grid-row: auto; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav-inner { width: min(100% - 28px, 1440px); justify-content: space-between; }
  .brand { position: static; }
  .menu-button { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: rgba(21,19,17,.99);
    border-bottom: 1px solid rgba(214,189,148,.2);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 13px 8px; text-align: center; }
  .nav-link::after { display: none; }
  .hero { min-height: calc(100svh - var(--nav-h)); }
  .hero-content { padding-bottom: 50px; }
  .hero-welcome { letter-spacing: 4px; }
  .hero-title { font-size: 17px; }
  .about-main { grid-template-columns: 1fr; gap: 50px; width: min(100% - 44px, 540px); padding: 50px 0 70px; }
  .about-copy { text-align: center; }
  .about-body { font-size: 14px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .style-card, .style-card:last-child { grid-column: auto; min-height: 76vh; }
  .gallery-main { padding: 46px 14px 72px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 24px; }
  .lightbox { padding: 58px 10px 72px; }
  .lightbox-nav { top: auto; bottom: 13px; transform: none; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .lightbox-caption { left: 70px; right: 70px; bottom: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lightbox-image { max-height: calc(100vh - 150px); }
  .service-intro, .process-section { padding-left: 20px; padding-right: 20px; }
  .service-heading { margin-bottom: 38px; }
  .service-heading p { max-width: calc(100% - 38px); margin-left: 38px; font-size: 12px; letter-spacing: 1px; white-space: normal; }
  .guideline-list { padding-left: 8px; }
  .notice-box { padding: 25px 22px 18px; }
  .notice-box { padding-top: 56px; }
  .process-heading p { max-width: calc(100% - 78px); margin-left: 78px; font-size: 14px; letter-spacing: 2px; white-space: normal; }
  .process-step { grid-template-columns: 40px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
