﻿@font-face {
  font-family: "GenSenRounded2";
  src: url("assets/GenSenRounded2TW-L.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "JinXuanLatte";
  src: url("assets/jfjinxuanlatte2-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f8f5ef;
  --paper-deep: #eee8de;
  --ink: #252525;
  --ink-soft: #5f5d59;
  --sky: #b8dbea;
  --sky-light: #e7f3f7;
  --sky-deep: #7fb8d0;
  --white: #fffdf8;
  --line: rgba(37, 37, 37, 0.2);
  --line-strong: rgba(37, 37, 37, 0.55);
  --shadow: 0 24px 70px rgba(50, 47, 42, 0.13);
  --max-width: 1200px;
  --page-gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "GenSenRounded2", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-synthesis: none;
  font-weight: 300;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 4px; }

.site-header, main, .site-footer {
  width: min(100% - (var(--page-gutter) * 2), var(--max-width));
  margin-inline: auto;
}
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sky-deep);
  box-shadow: 0 0 0 5px rgba(184, 219, 234, 0.36);
}
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.site-nav a { position: relative; padding: 8px 0; font-size: 0.92rem; white-space: nowrap; }
.site-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-contact {
  padding: 9px 18px !important;
  border: 1px solid var(--ink);
  transition: background 180ms ease, color 180ms ease;
}
.nav-contact:hover, .nav-contact:focus-visible { background: var(--ink); color: var(--white); }
.menu-button { display: none; width: 46px; height: 46px; padding: 13px 10px; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; width: 25px; height: 1px; margin: 6px auto; background: currentColor; transition: transform 180ms ease; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: clamp(38px, 6vw, 88px);
  align-items: start;
  min-height: calc(100svh - 86px);
  padding: clamp(56px, 8vw, 104px) 0;
}
.eyebrow, .section-index, .card-topline, .hero-meta dt, .hero-visual figcaption, .keyword-strip, .work-meta {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow, .section-index { margin: 0; color: #527f92; font-size: 0.74rem; }
.hero h1 {
  max-width: 720px;
  margin: 22px 0 24px;
  font-size: clamp(2.8rem, 5.25vw, 5.25rem);
  font-family: "JinXuanLatte", "GenSenRounded2", "Microsoft JhengHei", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.hero-lead { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  font-size: 0.92rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover, .button-primary:focus-visible { background: #404040; box-shadow: 0 10px 30px rgba(37, 37, 37, 0.18); }
.button-secondary { background: transparent; }
.button-secondary:hover, .button-secondary:focus-visible { background: var(--sky-light); }
.hero-about { margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-about h2 { max-width: 650px; margin: 18px 0 20px; font-size: clamp(1.55rem, 2.2vw, 2.25rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.45; }
.hero-about > p:not(.section-index) { max-width: 660px; margin: 12px 0 0; color: var(--ink-soft); line-height: 1.95; }
.hero-visual { position: sticky; top: 44px; width: min(100%, 520px); margin: 42px 0 0 auto; }
.hero-visual::before {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 38%;
  height: 44%;
  border-top: 1px solid var(--sky-deep);
  border-right: 1px solid var(--sky-deep);
  content: "";
  pointer-events: none;
}
.hero-visual img { width: 100%; height: auto; aspect-ratio: 1; border: 1px solid var(--line); object-fit: cover; box-shadow: var(--shadow); }
.hero-visual figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--ink-soft); font-size: 0.64rem; }
.keyword-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 17px max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
  overflow: hidden;
  background: var(--sky);
  font-size: clamp(0.72rem, 1.15vw, 0.9rem);
  white-space: nowrap;
}
.keyword-strip span[aria-hidden="true"] { color: rgba(37, 37, 37, 0.35); font-size: 0.42rem; }

.portfolio, .process { padding: clamp(82px, 11vw, 150px) 0; }
.statement {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
}
.statement > div { max-width: 840px; }
.statement h2, .section-heading h2, .about h2, .contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4.15vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.statement > div > p, .section-heading > div > p, .about-copy > p { color: var(--ink-soft); line-height: 1.95; }
.statement > div > p { max-width: 680px; margin: 34px 0 0 auto; font-size: 1.04rem; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 100px);
  margin-bottom: 52px;
}
.section-heading > div > p { max-width: 670px; margin: 24px 0 0; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.service-card {
  position: relative;
  min-height: 510px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.62);
}
.service-card-accent { border-color: transparent; background: var(--sky-light); }
.card-topline { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 0.68rem; }
.service-card h3 { margin: 62px 0 22px; font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.2; }
.service-card > p { max-width: 520px; color: var(--ink-soft); line-height: 1.9; }
.service-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 48px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.service-card li { position: relative; padding-left: 17px; font-size: 0.9rem; }
.service-card li::before { position: absolute; top: 0.78em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--sky-deep); content: ""; }

.process { border-top: 1px solid var(--line); }
.process-list { margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.process-list li {
  display: grid;
  grid-template-columns: minmax(72px, 0.16fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background 180ms ease;
}
.process-list li:hover { padding-right: 18px; padding-left: 18px; background: rgba(184, 219, 234, 0.17); }
.process-number { color: #527f92; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.78rem; }
.process-list h3 { margin: 0 0 8px; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 300; }
.process-list p { margin: 0; color: var(--ink-soft); }

.about { display: grid; grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr); gap: clamp(48px, 9vw, 130px); align-items: center; border-top: 1px solid var(--line); }
.about-image { position: relative; padding: 18px; background: var(--sky-light); }
.about-image::after { position: absolute; right: -20px; bottom: -20px; width: 46%; height: 46%; border-right: 1px solid var(--sky-deep); border-bottom: 1px solid var(--sky-deep); content: ""; pointer-events: none; }
.about-image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.about-copy .section-index { margin-bottom: 26px; }
.about-copy > p { max-width: 680px; margin: 28px 0 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; }
.social-links a { padding-bottom: 5px; border-bottom: 1px solid var(--ink); }
.social-links span { margin-left: 8px; }

.contact {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 100px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(70px, 10vw, 130px) max(var(--page-gutter), calc((100vw - var(--max-width)) / 2));
  background: var(--ink);
  color: var(--white);
}
.contact .section-index { color: var(--sky); }
.contact-main { max-width: 900px; }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 48px; }
.contact-email {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-column: 1 / -1;
  gap: 4px 24px;
  min-width: min(100%, 450px);
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: border 180ms ease, background 180ms ease;
}
.contact-email:hover, .contact-email:focus-visible { border-color: var(--sky); background: rgba(184, 219, 234, 0.08); }
.contact-email span:first-child { color: var(--sky); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-email strong { grid-column: 1; overflow-wrap: anywhere; font-size: clamp(0.98rem, 2vw, 1.2rem); font-weight: 300; }
.contact-email span:last-child { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 1.2rem; }
.button-light { border-color: var(--sky); background: var(--sky); color: var(--ink); }
.button-light:hover, .button-light:focus-visible { background: var(--white); }

.portfolio { border-bottom: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 22px; }
.work-card { display: block; min-width: 0; }
.work-card-image { display: block; overflow: hidden; aspect-ratio: 9 / 16; border: 1px solid var(--line); background: var(--paper-deep); }
.work-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.work-card-contain img { object-fit: contain; }
.work-card:hover .work-card-image img { transform: scale(1.025); }
.work-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: baseline; margin-top: 16px; color: var(--ink-soft); font-size: 0.64rem; }
.portfolio-action { display: flex; justify-content: center; margin-top: 54px; }
.work-card h3 { min-width: 0; margin: 0; color: var(--ink); font-family: "GenSenRounded2", "Noto Sans TC", "Microsoft JhengHei", sans-serif; font-size: 1rem; font-weight: 300; letter-spacing: 0; line-height: 1.45; text-transform: none; }
.work-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; padding: 30px 0 40px; color: var(--ink-soft); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer p { margin: 0; }
.footer-brand { color: var(--ink); }
.reveal { opacity: 1; transform: none; }
.has-js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 560ms ease, transform 560ms ease; }
.has-js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr); gap: 36px; }
  .hero h1 { font-size: clamp(2.7rem, 5.8vw, 4.2rem); }
  .hero-about h2 { font-size: 1.7rem; }
}

@media (max-width: 820px) {
  :root { --page-gutter: 22px; }
  html { scroll-padding-top: 78px; }
  .site-header { min-height: 74px; }
  .menu-button { position: relative; z-index: 22; display: block; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    z-index: 21;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 88px var(--page-gutter) 40px;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.65rem, 8vw, 2.4rem); }
  .site-nav a::after { display: none; }
  .nav-contact { margin-top: 8px; padding: 13px 0 !important; border: 0; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 58px 0 72px; }
  .hero-copy { max-width: 670px; }
  .hero h1 { font-size: clamp(2.6rem, 8.5vw, 4rem); }
  .hero-visual { position: relative; top: auto; width: min(100%, 520px); margin: 34px auto 0; }
  .hero-visual::before { top: -10px; right: -10px; }
  .hero-visual img { aspect-ratio: 1; object-fit: cover; }
  .keyword-strip { justify-content: flex-start; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .keyword-strip::-webkit-scrollbar { display: none; }
  .statement, .section-heading, .contact { grid-template-columns: 1fr; }
  .statement { gap: 28px; }
  .statement > div > p { margin-left: 0; }
  .section-heading { gap: 24px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .contact { gap: 28px; }
  .site-footer { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 480px) {
  :root { --page-gutter: 18px; }
  .hero { padding-top: 48px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-visual figcaption { flex-direction: column; gap: 2px; }
  .section-heading h2, .contact h2 { font-size: clamp(2rem, 10vw, 3.1rem); }
  .process-list li { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
  .process-list li:hover { padding-right: 0; padding-left: 0; background: transparent; }
  .contact-email { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .has-js .reveal { opacity: 1; transform: none; }
}




