/* =========================================================
   Concentric Atelier — Shared Site Styles
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #959535;
  --green-soft: #b5b56a;
  --warm-bg: #F7F4EF;
  --warm-bg-2:#EFEAE0;
  --dark:    #2C2C1E;
  --mid:     #7a7a60;
  --light:   #c8c8a0;
  --divider: rgba(44,44,30,0.12);
  --divider-strong: rgba(44,44,30,0.22);

  --font-en: 'EB Garamond', Georgia, serif;
  --font-zh: 'Noto Serif TC', serif;
  --font-ui: 'Jost', sans-serif;

  --nav-h: 80px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--warm-bg);
  color: var(--dark);
  font-family: var(--font-zh);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--warm-bg); }
::-webkit-scrollbar-thumb { background: var(--light); border-radius: 2px; }

/* ── Type primitives ── */
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--mid);
  text-transform: uppercase;
}
.divider-tick {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--green);
  vertical-align: middle;
  margin: 16px 0;
}
.h-en {
  font-family: var(--font-en);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--dark);
}
.h-zh {
  font-family: var(--font-zh);
  font-weight: 400;
  color: var(--mid);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: var(--nav-h);
  background: rgba(247,244,239,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
  transition: box-shadow 0.3s, background 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 24px rgba(44,44,30,0.06); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-logo-img {
  height: 44px;
  width: auto;
}
.nav-brand {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--green);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--dark);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--green) !important;
  border: 1px solid var(--green);
  padding: 8px 18px;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--green) !important;
  color: var(--warm-bg) !important;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--dark);
  color: rgba(247,244,239,0.6);
  padding: 80px 80px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247,244,239,0.1);
}
.footer-brand-block .footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-logo-img {
  height: 32px;
  width: auto;
}
.footer-brand-en {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--green);
  text-transform: uppercase;
}
.footer-brand-zh {
  font-family: var(--font-zh);
  font-size: 13px;
  color: rgba(247,244,239,0.5);
  line-height: 2;
}
.footer-col-title {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(247,244,239,0.55);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.6;
}
.footer-col a:hover { color: var(--warm-bg); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(247,244,239,0.3);
}
.footer-tagline {
  font-family: var(--font-en);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(247,244,239,0.4);
}

/* =========================================================
   PLACEHOLDER PATTERNS (for missing imagery)
   ========================================================= */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #e2ddd4;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(44,44,30,0.045) 0px,
    rgba(44,44,30,0.045) 1px,
    transparent 1px,
    transparent 11px
  );
  overflow: hidden;
}
.ph--dark {
  background-color: #1f1f15;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 11px
  );
}
.ph__label {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(44,44,30,0.4);
  text-align: center;
  line-height: 2;
  padding: 16px;
}
.ph--dark .ph__label { color: rgba(255,255,255,0.32); }

/* =========================================================
   PAGE HEADER (used on contact & project pages)
   ========================================================= */
.page-header {
  padding: calc(var(--nav-h) + 96px) 80px 64px;
  border-bottom: 1px solid var(--divider);
}
.page-header__crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.page-header__crumbs a {
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.page-header__crumbs a:hover { color: var(--green); }
.page-header__crumbs .sep {
  width: 16px;
  height: 1px;
  background: var(--divider-strong);
}
.page-header__title-en {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--dark);
}
.page-header__title-zh {
  font-family: var(--font-zh);
  font-weight: 400;
  font-size: 22px;
  color: var(--green);
  margin-top: 12px;
  letter-spacing: 0.1em;
}
.page-header__sub {
  font-family: var(--font-zh);
  font-weight: 300;
  font-size: 16px;
  color: var(--mid);
  margin-top: 32px;
  max-width: 520px;
  line-height: 1.9;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links { gap: 18px; }
  .nav-links li:not(:last-child) { display: none; }
  .footer { padding: 56px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-header { padding: calc(var(--nav-h) + 56px) 24px 48px; }
}

/* IMG quality polish — gentle sharpening cue + smoothing */
img { image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; }
.hero-image img, .gallery-img img, .next-img img,
.hero-img img, .work-row__preview img, .wgm-tile img {
  image-rendering: auto;
}
