/* ============================================================
   FAR EAST CONSTRUCTION 远东建设 · Official Website
   Design language: warm wood / quiet luxury / editorial serif
   ============================================================ */

:root {
  --cream:      #FAF6F0;
  --cream-2:    #F2EBE0;
  --ink:        #221C14;
  --ink-2:      #2C2519;
  --text:       #4A4136;
  --muted:      #8C8172;
  --wood:       #8C6D48;
  --wood-deep:  #6B5236;
  --gold:       #B08D57;
  --gold-light: #C9AE7F;
  --line:       #E4DACB;
  --line-dark:  rgba(176, 141, 87, .28);
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', Georgia, serif;
  --sans:  'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --en:    'Cormorant Garamond', Georgia, serif;
  --shadow: 0 24px 60px rgba(58, 41, 20, .12);
  --shadow-sm: 0 10px 30px rgba(58, 41, 20, .10);
  --radius: 6px;
  --header-h: 84px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  /* subtle paper grain */
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--gold); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--wood); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--wood-deep); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 120px 0; position: relative; }
.section.alt { background: var(--cream-2); }

/* ---------- Typography helpers ---------- */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.3; }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 22px;
}
.sec-label::before,
.sec-label::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}
.sec-label.solo::before { display: none; }

.sec-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; letter-spacing: .04em; }
.sec-head p { color: var(--muted); font-size: 15px; letter-spacing: .06em; }

.dark { background: var(--ink); color: #CFC5B4; }
.dark h2, .dark h3 { color: #F3EBDD; }
.sec-label.light { color: var(--gold-light); }
.sec-label.light::before, .sec-label.light::after { background: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .18em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all .35s cubic-bezier(.25, .6, .3, 1);
  white-space: nowrap;
}
.btn i { font-style: normal; transition: transform .35s; }
.btn:hover i { transform: translateX(4px); }

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 8px 24px rgba(176, 141, 87, .35);
}
.btn-gold:hover { background: var(--wood-deep); box-shadow: 0 12px 32px rgba(107, 82, 54, .45); transform: translateY(-2px); }

.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--gold-light); }

.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: all .45s cubic-bezier(.25, .6, .3, 1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 100%;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  border-radius: 8px;
  transition: all .4s;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-family: var(--serif); font-size: 19px; letter-spacing: .14em; color: #fff; transition: color .4s; }
.logo-text em { font-family: var(--en); font-style: normal; font-size: 9px; letter-spacing: .18em; color: var(--gold-light); white-space: nowrap; }

#nav { display: flex; gap: 34px; }
#nav a {
  position: relative;
  font-size: 14.5px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .88);
  padding: 6px 0;
  transition: color .3s;
}
#nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: all .35s ease;
  transform: translateX(-50%);
}
#nav a:hover::after, #nav a.active::after { width: 100%; }
#nav a:hover, #nav a.active { color: var(--gold-light); }

.header-cta { padding: 12px 26px; font-size: 13px; }

/* scrolled state */
#header.scrolled {
  height: 68px;
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(48, 34, 16, .10);
  border-bottom: 1px solid var(--line);
}
#header.scrolled .logo-mark { background: var(--gold); color: #fff; width: 40px; height: 40px; font-size: 21px; }
#header.scrolled .logo-text strong { color: var(--ink); }
#header.scrolled #nav a { color: var(--text); }
#header.scrolled #nav a:hover, #header.scrolled #nav a.active { color: var(--wood); }

/* mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; z-index: 1102; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; transition: all .35s; }
#header.scrolled .nav-toggle span, #header.menu-open .nav-toggle span { background: var(--ink); }
#header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
#header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Language switch ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 100px;
  flex-shrink: 0;
}
.lang-switch button {
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .78);
  border-radius: 100px;
  transition: all .3s;
}
.lang-switch button:hover { color: var(--gold-light); }
.lang-switch button.active { background: var(--gold); color: #fff; }

#header.scrolled .lang-switch { border-color: var(--line); }
#header.scrolled .lang-switch button { color: var(--text); }
#header.scrolled .lang-switch button:hover { color: var(--wood-deep); }
#header.scrolled .lang-switch button.active { background: var(--gold); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: -60px 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: heroZoom 2.4s cubic-bezier(.2, .6, .3, 1) both;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(24, 18, 10, .55) 0%, rgba(24, 18, 10, .28) 40%, rgba(24, 18, 10, .72) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(24, 18, 10, .18), rgba(24, 18, 10, .5));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 200px;
  max-width: 900px;
}
.hero-en {
  font-family: var(--en);
  font-size: 14px;
  letter-spacing: .42em;
  color: var(--gold-light);
  margin-bottom: 26px;
  animation: fadeUp .9s .3s both;
}
.hero h1 {
  font-size: clamp(46px, 7.5vw, 88px);
  font-weight: 900;
  color: #FBF6EC;
  letter-spacing: .06em;
  line-height: 1.15;
  margin-bottom: 26px;
  animation: fadeUp .9s .45s both;
}
.hero h1 .dot { color: var(--gold); padding: 0 6px; }
.hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(251, 246, 236, .85);
  letter-spacing: .12em;
  line-height: 2.1;
  margin-bottom: 44px;
  animation: fadeUp .9s .6s both;
}
.hero-btns { display: flex; gap: 18px; flex-wrap: wrap; animation: fadeUp .9s .75s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

/* hero stats bar */
.hero-stats {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  background: rgba(20, 15, 8, .55);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 174, 127, .25);
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.h-stat { text-align: center; position: relative; }
.h-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 40px;
  background: rgba(201, 174, 127, .3);
}
.h-stat strong {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: #FBF6EC;
  letter-spacing: .02em;
}
.h-stat strong i { font-style: normal; font-size: .55em; color: var(--gold-light); margin-left: 2px; }
.h-stat > span { display: block; font-size: 12.5px; letter-spacing: .24em; color: rgba(251, 246, 236, .72); margin-top: 2px; }

/* scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 110px;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 44px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 9px;
  opacity: .8;
}
.scroll-hint span {
  width: 3px; height: 9px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 80px;
  align-items: center;
}

.about-media { position: relative; padding-bottom: 70px; }
.about-img-main {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-img-sub {
  position: absolute;
  right: -34px; bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 8px solid var(--cream);
  box-shadow: var(--shadow-sm);
}
.about-badge {
  position: absolute;
  left: -28px; top: 44px;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.about-badge strong {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}
.about-badge span { font-family: var(--en); font-size: 11px; letter-spacing: .18em; text-align: center; line-height: 1.5; color: rgba(255,255,255,.75); }

.about-text h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 24px; letter-spacing: .03em; }
.about-text .lead { color: var(--text); font-size: 15.5px; margin-bottom: 36px; }
.about-text .lead strong { color: var(--wood-deep); }

.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.about-points li { display: flex; gap: 16px; }
.ap-num {
  font-family: var(--en);
  font-style: italic;
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}
.about-points strong { display: block; font-family: var(--serif); font-size: 16.5px; color: var(--ink); letter-spacing: .08em; margin-bottom: 4px; }
.about-points em { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.7; display: block; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.p-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(58, 41, 20, .06);
  transition: transform .45s cubic-bezier(.22, .6, .3, 1), box-shadow .45s;
  display: flex;
  flex-direction: column;
}
.p-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.p-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.p-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, .6, .3, 1);
}
.p-card:hover .p-media img { transform: scale(1.07); }
.p-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(24, 18, 10, .35));
  opacity: 0;
  transition: opacity .5s;
}
.p-card:hover .p-media::after { opacity: 1; }

.p-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 13px;
  background: rgba(34, 28, 20, .72);
  backdrop-filter: blur(6px);
  color: #F3EBDD;
  font-size: 11.5px;
  letter-spacing: .14em;
  border-radius: 100px;
  border: 1px solid rgba(201, 174, 127, .4);
}

.p-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.p-body h3 {
  font-size: 20px;
  letter-spacing: .06em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.p-body h3 em {
  font-family: var(--en);
  font-style: italic;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--gold);
  white-space: nowrap;
}
.p-body p { font-size: 13.5px; color: var(--muted); line-height: 1.85; flex: 1; }

.p-link {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--wood-deep);
  font-weight: 500;
}
.p-link i { font-style: normal; display: inline-block; transition: transform .35s; }
.p-card:hover .p-link i { transform: translateX(6px); }
.p-card:hover .p-link { color: var(--gold); }

/* CTA card */
.p-card--cta {
  background: linear-gradient(160deg, var(--ink) 0%, #3A2E1C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.p-card--cta::before {
  content: '木';
  position: absolute;
  right: -18px; bottom: -34px;
  font-family: 'Noto Serif SC', 'Noto Serif TC', serif; /* keep CJK glyph in all langs */
  font-size: 170px;
  font-weight: 900;
  color: rgba(176, 141, 87, .10);
  line-height: 1;
  pointer-events: none;
}
.p-cta-inner { padding: 36px 28px; }
.p-cta-en { font-family: var(--en); font-size: 13px; letter-spacing: .4em; color: var(--gold-light); display: block; margin-bottom: 14px; }
.p-cta-inner h3 { color: #F3EBDD; font-size: 23px; letter-spacing: .06em; margin-bottom: 12px; }
.p-cta-inner p { color: rgba(207, 197, 180, .85); font-size: 13.5px; line-height: 1.9; margin-bottom: 26px; }

/* ============================================================
   CRAFT (dark)
   ============================================================ */
.craft { overflow: hidden; }
.vertical-note {
  position: absolute;
  right: 44px; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .9em;
  color: rgba(201, 174, 127, .4);
  pointer-events: none;
}
.craft-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 90px;
  align-items: center;
}
.craft-text h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 22px; }
.craft-lead { color: rgba(207, 197, 180, .88); font-size: 15px; margin-bottom: 38px; }

.craft-list { display: flex; flex-direction: column; }
.craft-list li {
  display: grid;
  grid-template-columns: 172px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid var(--line-dark);
  align-items: baseline;
}
.craft-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.craft-list strong { font-family: var(--serif); font-size: 16px; color: var(--gold-light); letter-spacing: .08em; font-weight: 600; }
.craft-list span { font-size: 13.5px; color: rgba(207, 197, 180, .8); line-height: 1.8; }

.craft-media { position: relative; padding-bottom: 84px; }
.craft-img-main {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.craft-img-sub {
  position: absolute;
  left: -38px; bottom: 0;
  width: 55%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 8px solid var(--ink);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
}

.craft-steps {
  margin-top: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 10px;
  padding-top: 44px;
  border-top: 1px solid var(--line-dark);
}
.craft-steps span {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .3em;
  color: #F3EBDD;
  padding: 8px 4px;
}
.craft-steps i { font-style: normal; color: var(--gold); opacity: .7; }

/* ============================================================
   CUSTOM / STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 60px;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 32px 34px;
  position: relative;
  box-shadow: 0 4px 18px rgba(58, 41, 20, .06);
  transition: transform .4s, box-shadow .4s;
  overflow: hidden;
}
.step::after {
  content: '';
  position: absolute;
  left: 32px; right: 32px; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.step:hover::after { transform: scaleX(1); }

.step-num {
  font-family: var(--en);
  font-style: italic;
  font-size: 52px;
  font-weight: 500;
  color: var(--gold);
  opacity: .85;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; letter-spacing: .08em; margin-bottom: 10px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.85; }

/* banner */
.custom-banner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}
.custom-banner img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.custom-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 15, 8, .82) 0%, rgba(20, 15, 8, .5) 46%, rgba(20, 15, 8, .12) 100%);
}
.custom-banner-text {
  position: relative;
  z-index: 2;
  padding: 64px 72px;
  max-width: 620px;
}
.custom-banner-text span { font-family: var(--en); font-size: 13px; letter-spacing: .38em; color: var(--gold-light); display: block; margin-bottom: 14px; }
.custom-banner-text h3 { color: #FBF6EC; font-size: clamp(24px, 3vw, 34px); letter-spacing: .05em; margin-bottom: 16px; }
.custom-banner-text p { color: rgba(251, 246, 236, .85); font-size: 14.5px; line-height: 1.95; margin-bottom: 30px; }

/* ============================================================
   GALLERY
   ============================================================ */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.filter-bar button {
  padding: 10px 26px;
  font-size: 13.5px;
  letter-spacing: .14em;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  transition: all .35s;
}
.filter-bar button:hover { border-color: var(--gold); color: var(--wood-deep); }
.filter-bar button.active { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }

.gallery-grid {
  columns: 3;
  column-gap: 24px;
}
.g-item {
  position: relative;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  box-shadow: 0 4px 16px rgba(58, 41, 20, .07);
  animation: gFadeIn .6s both;
}
@keyframes gFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.g-item img { width: 100%; transition: transform .8s cubic-bezier(.22, .6, .3, 1); }
.g-item:hover img { transform: scale(1.06); }
.g-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 15, 8, .78));
  opacity: 0;
  transition: opacity .45s;
}
.g-item:hover::after { opacity: 1; }
.g-cap {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  z-index: 2;
  color: #FBF6EC;
  font-family: var(--serif);
  font-size: 15.5px;
  letter-spacing: .1em;
  opacity: 0;
  transform: translateY(10px);
  transition: all .45s;
}
.g-item:hover .g-cap { opacity: 1; transform: none; }
.g-cat {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.g-item.hidden { display: none; }

/* ============================================================
   EXPORT
   ============================================================ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 56px;
}
.m-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px 30px;
  transition: all .4s;
  position: relative;
  overflow: hidden;
}
.m-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s;
}
.m-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: transparent; }
.m-card:hover::before { transform: scaleX(1); }

.m-en { font-family: var(--en); font-size: 12px; letter-spacing: .32em; color: var(--gold); display: block; margin-bottom: 10px; }
.m-card h3 { font-size: 21px; letter-spacing: .1em; margin-bottom: 6px; }
.m-card em { font-style: normal; display: block; font-size: 13.5px; color: var(--wood); letter-spacing: .08em; margin-bottom: 14px; }
.m-card p { font-size: 13px; color: var(--muted); line-height: 1.8; }

.cert-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
}
.cert-row span {
  padding: 11px 26px;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  font-family: var(--en);
  font-size: 14.5px;
  letter-spacing: .12em;
  color: var(--wood-deep);
  background: #fff;
  transition: all .35s;
}
.cert-row span:hover { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }

.oem-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(120deg, #fff 0%, var(--cream-2) 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 46px 56px;
  box-shadow: 0 4px 18px rgba(58, 41, 20, .05);
}
.oem-note .sec-label { margin-bottom: 12px; }
.oem-note h3 { font-size: 26px; letter-spacing: .05em; margin-bottom: 10px; }
.oem-note p { font-size: 14px; color: var(--muted); max-width: 560px; }
.oem-note .btn { flex-shrink: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 18px; }
.contact-lead { font-size: 15px; color: var(--muted); margin-bottom: 40px; line-height: 2; }

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-of-type { border-top: 1px solid var(--line); }
.ci-label { font-size: 11.5px; letter-spacing: .3em; color: var(--gold); }
.contact-list strong { font-size: 16.5px; color: var(--ink); font-weight: 500; letter-spacing: .04em; }

.contact-form {
  background: #fff;
  border-radius: 10px;
  padding: 46px 44px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 22px; display: flex; flex-direction: column; }
.field label { font-size: 12.5px; letter-spacing: .2em; color: var(--wood-deep); margin-bottom: 9px; }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  padding: 13px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  transition: all .3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #B7AC9C; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(176, 141, 87, .14);
}
.form-success {
  margin-top: 18px;
  padding: 14px 18px;
  background: #EEF5EC;
  border: 1px solid #C8DCC2;
  border-radius: 4px;
  color: #3E6B37;
  font-size: 14px;
  letter-spacing: .05em;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--ink); color: rgba(207, 197, 180, .8); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 76px;
  padding-bottom: 56px;
}
.f-brand .logo { margin-bottom: 20px; }
.f-brand p { font-size: 13.5px; line-height: 2; color: rgba(207, 197, 180, .65); }
.f-col h4 {
  font-family: var(--serif);
  color: #F3EBDD;
  font-size: 16px;
  letter-spacing: .14em;
  margin-bottom: 20px;
}
.f-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(207, 197, 180, .68);
  padding: 6px 0;
  transition: all .3s;
}
.f-col a:hover { color: var(--gold-light); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(201, 174, 127, .16);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: rgba(207, 197, 180, .5);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(16, 12, 6, .93);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-body {
  max-width: min(1100px, 88vw);
  text-align: center;
  transform: scale(.96);
  transition: transform .4s;
}
.lightbox.open .lb-body { transform: scale(1); }
.lb-body img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 4px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
  margin: 0 auto;
}
.lb-body figcaption {
  margin-top: 20px;
  color: #F3EBDD;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .14em;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  z-index: 3001;
  color: #fff;
  font-size: 30px;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  display: grid;
  place-items: center;
  transition: all .3s;
  background: rgba(255, 255, 255, .05);
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); border-color: var(--gold); }
.lb-close { top: 30px; right: 34px; }
.lb-prev { left: 34px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 34px; top: 50%; transform: translateY(-50%); }
.lb-prev, .lb-next { font-size: 38px; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backTop {
  position: fixed;
  right: 30px; bottom: 30px;
  z-index: 900;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 18px;
  border: 1px solid rgba(201, 174, 127, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .4s;
  box-shadow: 0 10px 26px rgba(24, 18, 10, .3);
}
#backTop.show { opacity: 1; visibility: visible; transform: none; }
#backTop:hover { background: var(--gold); color: #fff; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(.22, .6, .3, 1), transform .9s cubic-bezier(.22, .6, .3, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; }
  .hero-en, .hero h1, .hero-sub, .hero-btns { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .craft-grid, .contact-grid { gap: 56px; }
  .vertical-note { display: none; }
}

@media (max-width: 1024px) {
  .section { padding: 90px 0; }

  #nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 82vw);
    height: 100vh;
    height: 100svh;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 110px 36px 40px;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22, .6, .3, 1);
    box-shadow: -20px 0 60px rgba(24, 18, 10, .2);
    z-index: 1100;
  }
  #nav.open { transform: translateX(0); }
  #nav a { color: var(--ink) !important; font-size: 16.5px; padding: 15px 0; border-bottom: 1px solid var(--line); }
  #nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  body.nav-locked { overflow: hidden; }
  .lang-switch button { padding: 4px 10px; font-size: 11px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; margin: 0 auto; padding-right: 30px; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-media { max-width: 560px; margin: 0 auto; padding: 0 0 84px; }
  .craft-img-sub { left: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .oem-note { flex-direction: column; text-align: center; align-items: center; padding: 40px 36px; }
  .oem-note p { max-width: 100%; }
}

@media (max-width: 680px) {
  .container { padding: 0 22px; }
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 44px; }

  /* top-align hero so content never slips under the fixed header
     (flex centering overflows both ends when content is taller than viewport) */
  .hero { justify-content: flex-start; }
  .hero-content { padding-top: calc(var(--header-h) + 32px); padding-bottom: 230px; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
  .h-stat:nth-child(2)::after { display: none; }
  .h-stat strong { font-size: 24px; }
  .scroll-hint { display: none; }

  .about-img-sub { width: 46%; right: -10px; }
  .about-badge { width: 96px; height: 96px; left: -12px; }
  .about-badge strong { font-size: 32px; }
  .about-points { grid-template-columns: 1fr; gap: 20px; }

  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }

  .craft-list li { grid-template-columns: 1fr; gap: 6px; }
  .craft-steps { gap: 10px 6px; }
  .craft-steps i { display: none; }
  .craft-steps span { border: 1px solid var(--line-dark); border-radius: 100px; padding: 8px 20px; }

  .custom-banner { min-height: 520px; }
  .custom-banner-text { padding: 40px 30px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 34px 26px; }

  .footer-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .lb-prev { left: 14px; }
  .lb-next { right: 14px; }
  .lb-close { top: 18px; right: 18px; }
  #backTop { right: 18px; bottom: 18px; }
}

/* short viewports (e.g. landscape phones): keep hero clear of the fixed header */
@media (max-height: 640px) {
  .hero { justify-content: flex-start; }
  .hero-content { padding-top: calc(var(--header-h) + 24px); padding-bottom: 190px; }
  .hero-stats-inner { padding-top: 16px; padding-bottom: 16px; }
}
