/* Wind Area preview — Nexola-informed layout system.
   Style only. No reference names, photos, stats, or chrome. */

:root {
  --canvas: #f6f6f6;
  --paper: #fafafa;
  --ink: #0f0f0f;
  --line: #e0e0e0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --muted: #6b6b6b;
  --muted-2: #969696;
  --accent: #F0E400;
  --nav-h: 4.35rem;
  --gutter: 1.35rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Inter Tight", "Inter", "Noto Sans TC", sans-serif;
  --sans: "Inter", "Noto Sans TC", "PingFang TC", sans-serif;
  --cjk: "Noto Sans TC", "Inter", "PingFang TC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--cjk);
  background: var(--canvas);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 0.5rem 0.8rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: calc(100% - 2 * var(--gutter));
  margin: 0 auto;
}
.cols,
.section-head,
.hero-type,
.dark-grid,
.footer-grid,
.work-row,
.acc-item,
.page-hero .cols {
  min-width: 0;
}
.cols > *,
.section-head > *,
.hero-type > *,
.dark-grid > *,
.work-row > *,
.acc-body,
.lead,
.section-title,
.wordmark {
  min-width: 0;
}
.cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* —— Sticky nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  background: var(--canvas);
}
.header-inner {
  width: calc(100% - 2 * var(--gutter));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img { height: 2.55rem; width: auto; display: block; }
.header-right { display: flex; align-items: center; gap: 1.25rem; }
.header-contact {
  display: inline-flex; align-items: center; gap: 0.4rem;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
}
.header-contact .dot {
  width: 0.45rem; height: 0.45rem;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}
.nav-toggle {
  width: 2.4rem; height: 2.4rem;
  border: 0; background: transparent;
  cursor: pointer; padding: 0;
  position: relative; z-index: 45;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 1.2rem; height: 1.5px;
  background: var(--ink);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: 0.25s var(--ease);
}
.nav-toggle span::before { content: ""; transform: translate(-50%, calc(-50% - 5px)); }
.nav-toggle span::after { content: ""; transform: translate(-50%, calc(-50% + 5px)); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translate(-50%, -50%) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translate(-50%, -50%) rotate(-45deg); }

.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(246, 246, 246, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 35;
}
body.nav-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(28rem, 42vw);
  background: #fff;
  z-index: 40;
  transform: translateX(110%);
  transition: transform 0.45s var(--ease);
  padding: calc(var(--nav-h) + 0.5rem) 2rem 2.2rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
body.nav-open .drawer { transform: none; }
body.nav-open { overflow: hidden; }
.drawer-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted-2);
  margin: 0.4rem 0 0.6rem;
}
.drawer nav { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 2rem; }
.drawer nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-decoration: none;
  width: max-content;
  max-width: 100%;
}
.drawer nav a[aria-current="page"] { box-shadow: inset 0 -0.18em 0 var(--accent); }
.drawer-ig {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  display: block;
  margin: 0.2rem 0;
}
.drawer-ig:last-of-type { margin-bottom: 1.2rem; }
.drawer-ig:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .drawer { width: 100%; }
}

/* —— Type helpers —— */
.kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.lead {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.55rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.lead .mute { color: var(--muted); font-weight: 500; }
.copy { font-family: var(--cjk); font-size: 0.98rem; line-height: 1.75; color: #222; text-wrap: pretty; }
.copy-muted { color: var(--muted); }

/* —— Hero ——
   Portrait cover: show the full figure and its white field.
   Do not force a short landscape crop. */
.hero {
  background: #fff;
}
.hero-type {
  padding: 2.2rem 0 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  position: relative;
  z-index: 2;
}
.wordmark {
  grid-column: 1 / 4;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.4rem, 13.5vw, 11.5rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}
.wordmark span { display: block; }
.hero-meta {
  grid-column: 4 / 5;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  padding: 0 0.9rem 0.4rem 0.6rem;
  line-height: 1.35;
}
.hero-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.15rem;
}
.hero-media {
  position: relative;
  width: 100%;
  background: #fff;
}
.hero-media img {
  display: block;
  width: auto;
  max-width: min(100%, 1200px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}
@media (min-width: 901px) {
  /* Fit the full portrait (white field + figure) into a tall hero so the
     runner is on the first screen, without cropping or upscaling. */
  .hero-media img {
    max-height: min(1200px, calc(100vh - var(--nav-h) + 10rem));
  }
}
/* Pills stay readable on the white field and do not cover the figure.
   Mobile: in flow, just below the photo. Desktop: in the photo’s lower
   white space so they appear on the first screen. */
.hero-actions {
  position: relative;
  left: auto;
  bottom: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  width: calc(100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.25rem 0 2.4rem;
  z-index: 2;
}
@media (min-width: 901px) {
  .hero-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20%;
    width: calc(100% - 2 * var(--gutter));
    margin: 0 auto;
    padding: 0;
  }
}
.hero-actions .pill-light {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.hero-actions .pill-light:hover { background: #f6f6f6; }
@media (min-width: 901px) {
  /* Sit the wordmark in the photo’s upper white space so the first
     screen is not wordmark + another empty white band. */
  .hero-media {
    margin-top: calc(-1 * (2.2rem + 1.6rem + (0.8 * 2 * clamp(4.4rem, 13.5vw, 11.5rem))));
  }
}

/* —— Pills —— */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.35rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
}
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #000; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: #f0f0f0; }
.pill[disabled] { opacity: 0.4; cursor: not-allowed; }
.pill .arrow { font-size: 0.95em; line-height: 1; }

/* —— Approach / intro —— */
.section { padding: 4.2rem 0 4.6rem; }
.approach .kicker { grid-column: 1 / -1; padding-right: 1rem; }
.approach .lead {
  grid-column: 1 / 4;
  padding-right: 1.4rem;
  max-width: 18em;
}
.approach .copy {
  grid-column: 4 / 5;
  padding: 0 0.85rem;
  align-self: end;
}

/* —— Selected work rows —— */
.section-head {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  padding: 3.2rem 0 1.6rem;
  gap: 1rem 0;
}
.section-title {
  grid-column: 1 / 3;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-wrap: balance;
}
.cta-band .section-title {
  grid-column: 1 / -1;
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
}
.section-head .side {
  grid-column: 3 / 5;
  padding: 0 0.9rem 0.4rem;
}
.section-head .side .kicker { margin-bottom: 0.55rem; }
.section-head .side .blurb {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.section-head .side a.more {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
}

.work-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  min-height: 18rem;
}
.work-row:last-of-type { border-bottom: 1px solid var(--line); }
.work-row .rail {
  padding: 1.3rem 0.9rem 1.3rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work-row h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.work-row .cat {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.work-row .shot {
  grid-column: 2 / 4;
  min-height: 18rem;
  overflow: hidden;
}
.work-row .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  min-height: 18rem;
}
.work-row .go {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.2rem 0.2rem 0 0;
  font-size: 1.25rem;
}
.work-row:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; }

/* —— Dark typographic chapter —— */
.theme-dark {
  background: var(--ink);
  color: #fff;
  padding: 5.5rem 0 5.8rem;
}
.theme-dark .kicker { color: var(--muted-2); }
.theme-dark .lead { color: #fff; text-wrap: pretty; }
.theme-dark .lead .mute { color: #969696; }
.theme-dark .copy { color: #cfcfcf; }
.dark-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 0;
}
.dark-grid .block-a { grid-column: 1 / 3; padding-right: 1.4rem; }
.dark-grid .block-b { grid-column: 3 / 5; padding: 0 0.9rem; align-self: end; }

/* —— Services accordion —— */
.acc-item {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  cursor: pointer;
  align-items: start;
}
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-item .num {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted-2);
  padding: 1.7rem 0.8rem 1.7rem 0;
}
.acc-item .acc-body { grid-column: 2 / 4; padding: 1.35rem 0.9rem 1.35rem 0; }
.acc-item h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--muted);
}
.acc-item .acc-copy { display: none; margin-top: 1rem; max-width: 36rem; }
.acc-item .acc-copy p { margin-bottom: 0.7rem; }
.acc-item .acc-copy ul { margin: 0.2rem 0 0.8rem; }
.acc-item .acc-copy li {
  border-top: 1px solid var(--line);
  padding: 0.45rem 0;
  font-size: 0.92rem;
}
.acc-item .acc-copy li:last-child { border-bottom: 1px solid var(--line); }
.acc-item .tog {
  grid-column: 4 / 5;
  text-align: right;
  padding: 1.6rem 0.15rem 1.6rem 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 400;
}
.acc-item.is-open { background: #d0d0d0; }
.acc-item.is-open h3 { color: var(--ink); }
.acc-item.is-open .acc-copy { display: block; }
.acc-item.is-open .tog { color: var(--ink); }
.theme-dark .acc-item { border-color: var(--line-dark); }
.theme-dark .acc-item.is-open { background: #2a2a2a; }

/* —— CTA / contact band —— */
.cta-band .section-title { grid-column: 1 / -1; }
.cta-band .cols { align-items: start; padding: 0 0 1rem; }
.cta-band .cta-copy { grid-column: 1 / 3; padding-right: 1rem; }
.cta-band .cta-action { grid-column: 3 / 5; padding: 0 0.9rem; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.2rem 0 2.2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 0;
  align-items: start;
}
.footer-brand { grid-column: 1 / 3; }
.footer-brand img { height: 2.85rem; width: auto; margin-bottom: 1.6rem; }
.ig-display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: -0.04em;
  text-decoration: none;
  line-height: 1.1;
  border-bottom: 1px solid var(--ink);
}
.ig-display:hover { opacity: 0.7; }
.footer-col { padding: 0 0.9rem; }
.footer-col .kicker { margin-bottom: 0.55rem; }
.footer-col a {
  display: block;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.12rem 0;
}
.footer-col a:hover { text-decoration: underline; }
.footer-note {
  grid-column: 1 / -1;
  margin-top: 2.4rem;
  font-size: 0.75rem;
  color: var(--muted-2);
  font-family: var(--sans);
}

/* —— Inner page heroes —— */
.page-hero { padding: 3.2rem 0 2.4rem; }
.page-hero .section-title { grid-column: 1 / 3; }
.page-hero .side { grid-column: 3 / 5; padding: 0 0.9rem; align-self: end; }
.page-hero .side .lead { font-size: clamp(1.3rem, 2.2vw, 1.85rem); }
.stat {
  margin-top: 1.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.stat span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* —— Filter chips —— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem 0 1.4rem;
}
.chip {
  border: 0;
  background: #ececec;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}
.chip[aria-pressed="true"],
.chip.is-on { background: var(--ink); color: #fff; }
.work-count {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0 0 1rem;
}

/* —— Work catalog grid —— */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.6rem;
  min-width: 0;
}
.project-card:nth-child(odd) { padding-right: 0; }
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center 16%;
}
.project-card .meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  padding: 0.85rem 0.2rem 0 0;
  align-items: start;
}
.project-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.project-card .cat {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.project-card.is-hidden { display: none; }

/* —— About lists —— */
.about-photo {
  width: 100%;
  height: clamp(18rem, 48vw, 32rem);
  object-fit: cover;
  object-position: center 58%;
}
.list-block { padding: 0.2rem 0.9rem 0 0; }
.list-block h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.8rem;
}
.list-block li {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.list-block li:last-child { border-bottom: 1px solid var(--line); }
.list-block strong { font-weight: 500; }
.list-block .en { color: var(--muted); font-family: var(--sans); font-size: 0.88rem; }

/* —— Contact form —— */
.form {
  display: grid;
  grid-column: 3 / 5;
  padding: 0 0.2rem;
}
.form label {
  display: grid;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}
.form input,
.form textarea {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 0.85rem 0 0.8rem;
  width: 100%;
  border-radius: 0;
  outline: none;
}
.form input:disabled,
.form textarea:disabled { opacity: 0.7; cursor: not-allowed; }
.form-help { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 1rem; }
.form .pill { justify-self: start; margin-top: 0.2rem; }
.contact-note {
  grid-column: 1 / 3;
  padding-right: 1.4rem;
  align-self: start;
}
.contact-note .kicker { margin-top: 1.6rem; }
.contact-ig { margin-top: 0.25rem; display: inline-block; }

/* —— Clients typographic index —— */
.client-index {
  columns: 2;
  column-gap: 0;
  font-family: var(--cjk);
  font-size: 0.95rem;
}
.client-index li {
  break-inside: avoid;
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0.9rem 0.35rem 0;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  :root { --gutter: 0.9rem; }
  .approach .lead,
  .approach .copy,
  .section-title,
  .section-head .side,
  .page-hero .section-title,
  .page-hero .side,
  .dark-grid .block-a,
  .dark-grid .block-b,
  .cta-band .cta-copy,
  .cta-band .cta-action,
  .form,
  .contact-note,
  .footer-brand,
  .hero-meta,
  .wordmark {
    grid-column: 1 / -1;
  }
  .hero-meta { text-align: left; padding: 1rem 0 0; }
  .wordmark { font-size: clamp(3.6rem, 22vw, 6.5rem); }
  .approach .lead { max-width: none; padding-right: 0; margin-bottom: 1.2rem; }
  .approach .copy { padding: 0; }
  .section-head .side,
  .page-hero .side { padding: 0; }
  .work-row { grid-template-columns: 1fr; }
  .work-row .shot, .work-row .go, .work-row .rail { grid-column: 1 / -1; }
  .work-row .shot, .work-row .shot img { min-height: 14rem; }
  .work-row .go { display: none; }
  .acc-item { grid-template-columns: 2.2rem 1fr auto; }
  .acc-item .num { grid-column: 1; padding-right: 0.3rem; }
  .acc-item .acc-body { grid-column: 2; padding-right: 0.4rem; }
  .acc-item .tog { grid-column: 3; }
  .work-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { padding: 0; }
  .header-contact { font-size: 0.75rem; }
  .client-index { columns: 1; }
}
