:root {
  --ink: #181818;
  --soft-ink: #44423f;
  --paper: #fbfbf8;
  --white: #ffffff;
  --mist: #eef4f2;
  --line: #d9ddd8;
  --brand: #c92525;
  --brand-dark: #8e1d1d;
  --teal: #2f7f75;
  --gold: #c99844;
  --shadow: 0 20px 55px rgba(24, 24, 24, 0.14);
  --content: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "Open Sans", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(251, 251, 248, 0.94);
  border-bottom: 1px solid rgba(24, 24, 24, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(98px, 11vw, 140px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--soft-ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 430px;
  height: calc(100svh - 150px);
  max-height: 760px;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/google-site/google-site-004.jpg");
  background-image: image-set(
    url("assets/google-site/optimized/google-site-004.webp") type("image/webp"),
    url("assets/google-site/google-site-004.jpg") type("image/jpeg")
  );
  background-position: center 42%;
  background-size: cover;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.32) 58%, rgba(0, 0, 0, 0.42)),
    rgba(0, 0, 0, 0.24);
}

.hero-content {
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
  color: var(--white);
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd47e;
}

.hero h1,
.section-heading h2,
.intro-grid h2,
.archive-intro h2,
.contact-copy h2 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
  font-size: clamp(3.1rem, 8vw, 6.4rem);
}

.hero-kicker {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 860px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  font-weight: 900;
}

.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.button.secondary {
  color: var(--white);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(620px, 100%);
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.hero-notes div {
  padding: 16px 18px 16px 0;
}

.hero-notes dt {
  color: #ffd47e;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-notes dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.section-inner {
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
}

.intro-band,
.portfolio-band,
.archive-band,
.process-band,
.contact-band {
  padding: clamp(64px, 8vw, 104px) 0;
}

.intro-band {
  background: var(--white);
}

.intro-grid,
.contact-grid {
  display: grid;
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
}

.intro-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

.intro-grid h2 {
  max-width: none;
}

.intro-copy {
  width: min(760px, 100%);
  margin-left: auto;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.intro-grid h2,
.contact-copy h2,
.archive-intro h2,
.section-heading h2 {
  font-size: clamp(1.65rem, 2.55vw, 2.35rem);
  font-weight: 700;
}

.intro-copy {
  display: grid;
  gap: 20px;
  color: var(--soft-ink);
  font-size: 1.03rem;
}

.intro-copy p {
  margin: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-summary {
  max-width: 470px;
  margin: 0;
  color: var(--soft-ink);
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-body h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
}

.portfolio-band {
  background: var(--paper);
}

.portfolio-heading {
  align-items: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--soft-ink);
  cursor: pointer;
}

.filter:hover,
.filter:focus-visible,
.filter.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-card.is-hidden {
  display: none;
}

.project-image {
  position: relative;
  display: block;
  width: 100%;
  height: 280px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #d8ddd9;
  cursor: zoom-in;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-image:hover img,
.project-image:focus-visible img {
  transform: scale(1.035);
}

.project-body {
  padding: 20px;
}

.project-body p {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
}

.project-body span {
  display: block;
  margin-top: 10px;
  color: var(--soft-ink);
  font-size: 0.95rem;
}

.case-summary {
  line-height: 1.65;
}

.case-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.case-points li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.archive-band {
  background: var(--white);
}

.archive-intro {
  margin-bottom: 24px;
}

.archive-heading {
  align-items: center;
}

.album-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.album-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--soft-ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.album-nav a:hover,
.album-nav a:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.archive-albums {
  display: grid;
  gap: 44px;
}

.archive-album {
  display: grid;
  gap: 16px;
}

.archive-album-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.archive-album-head p,
.archive-album-head h3 {
  margin: 0;
}

.archive-album-head p {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
}

.archive-album-head h3 {
  margin-top: 4px;
  font-size: clamp(1.45rem, 2.35vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.archive-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.archive-photo.is-hidden {
  display: none;
}

.archive-image {
  display: block;
  width: 100%;
  height: 190px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #d8ddd9;
  cursor: zoom-in;
}

.archive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.archive-image:hover img,
.archive-image:focus-visible img {
  transform: scale(1.035);
}

.archive-meta {
  padding: 10px;
}

.archive-meta strong,
.archive-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-meta strong {
  font-size: 0.88rem;
  line-height: 1.35;
}

.archive-meta .archive-caption {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.archive-meta span {
  margin-top: 3px;
  color: var(--soft-ink);
  font-size: 0.76rem;
}

.album-toggle {
  justify-self: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--brand);
  background: var(--white);
  color: var(--brand);
  cursor: pointer;
  font-weight: 900;
}

.album-toggle:hover,
.album-toggle:focus-visible {
  background: var(--brand);
  color: var(--white);
}

.process-band {
  background: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: process;
}

.process-steps article {
  min-height: 245px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 30px;
  background: var(--brand);
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.process-steps h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}

.process-steps p {
  margin: 12px 0 0;
  color: var(--soft-ink);
  font-size: 0.95rem;
}

.contact-band {
  background: var(--mist);
}

.contact-copy .contact-lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--soft-ink);
}

.contact-checklist {
  display: grid;
  gap: 9px;
  max-width: 620px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--soft-ink);
}

.contact-checklist li {
  padding-left: 18px;
  position: relative;
}

.contact-checklist li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--brand);
  content: "";
}

.contact-copy p:last-child {
  margin: 18px 0 0;
  color: var(--brand);
  font-weight: 900;
}

.contact-panel {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
  border-left: 6px solid var(--brand);
  background: var(--white);
  font-style: normal;
  box-shadow: 0 16px 34px rgba(24, 24, 24, 0.08);
}

.contact-panel strong {
  font-size: 1.35rem;
}

.contact-panel a {
  width: fit-content;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid rgba(24, 24, 24, 0.28);
}

.contact-line {
  width: fit-content;
  color: var(--ink);
  font-weight: 700;
}

.line-qr {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 8px;
}

.line-qr img {
  width: 128px;
  height: 128px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  object-fit: contain;
}

.line-qr span {
  color: var(--soft-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  color: var(--brand);
  border-color: var(--brand);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 52px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
}

.lightbox {
  width: min(980px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.74);
}

.lightbox img {
  width: 100%;
  max-height: min(74svh, 760px);
  object-fit: contain;
  background: #111;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.56);
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--white);
  content: "";
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

:focus-visible {
  outline: 3px solid rgba(201, 37, 37, 0.4);
  outline-offset: 3px;
}

@media (max-width: 940px) {
  .site-nav {
    position: fixed;
    top: 74px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-header[data-open="true"] .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid h2 {
    max-width: 12em;
  }

  .portfolio-grid,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .brand-logo {
    width: 104px;
  }

  .site-nav {
    top: 66px;
    left: 12px;
    right: 12px;
  }

  .hero {
    min-height: 520px;
    height: calc(100svh - 66px);
    max-height: 640px;
    align-items: end;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12.5vw, 3.7rem);
  }

  .hero .eyebrow {
    display: none;
  }

  .hero-kicker {
    margin-top: 4px;
    font-size: 1rem;
  }

  .hero-copy {
    max-width: 28ch;
    margin-top: 14px;
    font-size: 1.02rem;
  }

  .hero-notes {
    display: none;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    min-height: 44px;
    padding: 9px 14px;
  }

  .portfolio-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-album-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-image {
    height: 250px;
  }

  .project-image {
    height: 260px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 26px;
  }

}

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