:root {
  --bg: #f6f3ee;
  --ink: #0f0e0d;
  --muted: #68635d;
  --line: #cfc8bf;
  --accent: #cc5022;
  --header-height: 94px;
  --side: clamp(28px, 5vw, 78px);
  --shell: 1380px;
  --zh: "Noto Sans TC", system-ui, sans-serif;
  --en: "Work Sans", "Noto Sans TC", system-ui, sans-serif;
}

html[data-theme="dark"] {
  --bg: #12110f;
  --ink: #f4efe8;
  --muted: #b9b1a6;
  --line: #393530;
  --accent: #e0784e;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--zh);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: var(--header-height);
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 9, 8, .34), transparent);
}
.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, var(--shell));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--side);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-height: 44px;
}
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font: 600 13px/1 var(--en); letter-spacing: .2em; }
.brand small { margin-top: 6px; font: 600 10px/1 var(--zh); letter-spacing: .25em; }
.site-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(34px, 5vw, 74px);
}
.site-nav a {
  position: relative;
  min-height: 44px;
  padding: 16px 0 12px;
  font: 600 11px/1 var(--en);
  letter-spacing: .08em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: #fff;
  transition: right .2s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after { right: 0; }
.theme-toggle {
  display: none;
  grid-template-columns: auto 18px auto;
  grid-column: 2;
  justify-self: center;
  align-items: center;
  gap: 8px;
  min-width: 126px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 14, 13, .16);
  backdrop-filter: blur(10px);
  font: 500 10px/1 var(--en);
  letter-spacing: .06em;
  cursor: pointer;
}
.theme-toggle i {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid #fff;
  border-radius: 50%;
}
.theme-toggle i::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}
.menu-toggle { display: none; }

.about-hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
}
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9, 8, 7, .28) 0, transparent 34%),
    linear-gradient(0deg, rgba(9, 8, 7, .72) 0, transparent 48%);
  pointer-events: none;
}
.about-hero__image { position: absolute; inset: 0; margin: 0; background: #d8d3cc; }
.about-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  transition: opacity .55s ease;
}
.about-hero__night { opacity: 0; }
html[data-theme="dark"] .about-hero__day { opacity: 0; }
html[data-theme="dark"] .about-hero__night { opacity: 1; }
.about-hero__copy {
  position: absolute;
  right: var(--side);
  bottom: clamp(42px, 7vw, 90px);
  left: var(--side);
  z-index: 2;
  max-width: 600px;
}
.eyebrow {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .74);
  font: 600 10px/1.3 var(--en);
  letter-spacing: .18em;
}
.about-hero h1 { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 500; line-height: 1.4; letter-spacing: .08em; }
.about-hero__copy > p:last-child {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.9;
  text-wrap: balance;
}

.about-ledger { width: min(100%, var(--shell)); margin-inline: auto; padding: 74px var(--side) 82px; }
.about-ledger dl { margin: 0; border-left: 1px solid var(--accent); }
.about-ledger dl > div {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(0, 1.8fr);
  gap: clamp(28px, 7vw, 108px);
  margin-left: 56px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.about-ledger dl > div:first-child { padding-top: 8px; }
.about-ledger dl > div:last-child { padding-bottom: 8px; border-bottom: 0; }
.about-ledger dt { font-size: 17px; font-weight: 500; }
.about-ledger dd { margin: 0; }
.about-ledger dd strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.7; }
.about-ledger dd span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.featured-work { width: min(100%, var(--shell)); margin-inline: auto; padding: 0 var(--side) 84px; }
.featured-work__image { display: block; overflow: hidden; background: #ded9d2; }
.featured-work__image img { width: 100%; aspect-ratio: 16 / 8.35; object-fit: cover; transition: transform .6s cubic-bezier(.2,.65,.25,1); }
.featured-work__image:hover img { transform: scale(1.012); }
.featured-work__meta { display: grid; grid-template-columns: 1fr minmax(310px, .72fr); gap: 80px; padding: 36px 42px 38px; }
.featured-work__meta p { margin: 0; color: var(--muted); font-size: 12px; }
.featured-work__meta h2 { margin: 7px 0 5px; font-size: 28px; font-weight: 500; letter-spacing: .04em; }
.featured-work__meta dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 0; }
.featured-work__meta dl div { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-content: start; }
.featured-work__meta dt,
.featured-work__meta dd { margin: 0; font-size: 12px; }
.featured-work__meta dt { color: var(--muted); }

.studio-note {
  display: grid;
  grid-template-columns: minmax(150px, .5fr) minmax(0, 1.5fr);
  gap: clamp(36px, 9vw, 140px);
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: 82px var(--side) 96px;
  border-top: 1px solid var(--line);
}
.studio-note .eyebrow { color: var(--muted); }
.studio-note h2 { max-width: 800px; margin: 0; font-size: clamp(28px, 3vw, 42px); font-weight: 500; line-height: 1.6; letter-spacing: -.025em; }
.studio-note div > p { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: 15px; }

.contact-line { width: min(100%, var(--shell)); margin-inline: auto; padding: 0 var(--side) 36px; }
.contact-line > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  min-height: 112px;
  border-top: 1px solid var(--accent);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 500;
}
.contact-line > a i { height: 1px; background: var(--ink); }
.contact-line > a b { font: 400 34px/1 var(--en); transition: transform .2s ease; }
.contact-line > a:hover b { transform: translateX(7px); }
.contact-line > div { display: flex; justify-content: space-between; gap: 24px; padding-top: 44px; }
.contact-line p { margin: 0; color: var(--muted); font: 400 10px/1.5 var(--en); letter-spacing: .05em; }

@media (max-width: 900px) {
  :root { --header-height: 82px; }
  .theme-toggle { display: grid; }
  .site-nav { display: none; }
  .menu-toggle {
    display: grid;
    grid-column: 3;
    justify-self: end;
    place-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { width: 23px; height: 1px; background: #fff; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav.is-open {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    justify-items: center;
    gap: 0;
    padding: 18px var(--side) 26px;
    border-top: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    background: rgba(15, 14, 13, .94);
    backdrop-filter: blur(14px);
  }
  .site-nav.is-open a { width: 100%; text-align: center; }
  .featured-work__meta { grid-template-columns: 1fr; gap: 28px; padding-inline: 0; }
}

@media (max-width: 760px) {
  :root { --header-height: 72px; --side: 20px; }
  .brand img { width: 28px; height: 28px; }
  .brand span { display: none; }
  .theme-toggle { min-width: 118px; min-height: 36px; padding-inline: 12px; }
  .about-hero__image img { object-position: 47% center; }
  .about-hero__copy { right: var(--side); bottom: 34px; left: var(--side); }
  .about-hero__copy .eyebrow { margin-bottom: 12px; font-size: 9px; }
  .about-hero h1 { font-size: 21px; line-height: 1.45; }
  .about-hero__copy > p:last-child { max-width: 330px; margin-top: 10px; font-size: 13px; line-height: 1.85; }
  .about-ledger { padding: 54px var(--side) 62px; }
  .about-ledger dl { border-left: 0; border-top: 1px solid var(--accent); }
  .about-ledger dl > div { grid-template-columns: 1fr; gap: 12px; margin-left: 0; padding: 28px 0; }
  .about-ledger dl > div:first-child { padding-top: 28px; }
  .about-ledger dt { font-size: 15px; }
  .about-ledger dd strong { font-size: 16px; }
  .about-ledger dd span { margin-top: 8px; line-height: 1.8; }
  .featured-work { padding: 0 var(--side) 64px; }
  .featured-work__image img { aspect-ratio: 4 / 3; }
  .featured-work__meta { padding-top: 24px; }
  .featured-work__meta dl { grid-template-columns: 1fr; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
  .featured-work__meta dl div { grid-template-columns: 54px 1fr; padding-top: 8px; }
  .studio-note { grid-template-columns: 1fr; gap: 18px; padding: 62px var(--side) 72px; }
  .studio-note h2 { font-size: 27px; line-height: 1.7; }
  .studio-note div > p { margin-top: 22px; }
  .contact-line { padding: 0 var(--side) 28px; }
  .contact-line > a { gap: 18px; min-height: 92px; font-size: 21px; }
  .contact-line > a b { font-size: 28px; }
  .contact-line > div { flex-direction: column; gap: 8px; padding-top: 32px; }
}

@media (max-width: 360px) {
  :root { --side: 16px; }
  .theme-toggle { min-width: 108px; gap: 6px; padding-inline: 9px; }
}

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