/* ============================================================
   Aluminium Diversity Construction — Auckland
   Ethereal Glass / architectural dark theme
   ============================================================ */

:root {
  --bg: #060607;
  --bg-soft: #0b0b0d;
  --ink: #edeae3;
  --muted: rgba(237, 234, 227, 0.56);
  --faint: rgba(237, 234, 227, 0.34);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.04);
  --bronze: #c9a468;
  --bronze-soft: rgba(201, 164, 104, 0.14);
  --grad-bronze: linear-gradient(135deg, #e8cfa0 0%, #c9a468 45%, #a87f43 100%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-menu: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: "Fraunces", "Noto Serif SC", serif;
  --font-body: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-xl: 2rem;
  --radius-inner: calc(2rem - 0.45rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- language switching ---------------------------------- */
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .en { display: none !important; }
html[data-lang="zh"] body { letter-spacing: 0.01em; }

::selection { background: rgba(201, 164, 104, 0.35); color: #fff; }

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

/* ---- ambient layers --------------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 82% -8%, rgba(201, 164, 104, 0.10), transparent 62%),
    radial-gradient(50rem 36rem at -12% 34%, rgba(84, 110, 140, 0.12), transparent 60%),
    radial-gradient(38rem 30rem at 68% 108%, rgba(201, 164, 104, 0.06), transparent 65%);
}

main { position: relative; z-index: 1; }

/* ---- typography ------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 480;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  background: var(--glass);
  backdrop-filter: none;
}
.eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--bronze); box-shadow: 0 0 10px rgba(201, 164, 104, 0.9);
}

.section-head { max-width: 40rem; }
.section-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  margin: 1.4rem 0 1.1rem;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }

.serif-accent { font-style: italic; color: var(--bronze); font-weight: 420; }

/* ---- reveal choreography ---------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(3.2rem);
  filter: blur(10px);
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease),
    filter 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; filter: none; }
}

/* ---- nav: fluid island ------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center;
  padding-top: 1.4rem;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1.7rem;
  padding: 0.55rem 0.6rem 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.nav.scrolled .nav-pill { transform: translateY(-2px) scale(0.985); }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-bronze);
  color: #17120a; font-weight: 800; font-size: 12px; letter-spacing: 0.02em;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 6px 18px -6px rgba(201, 164, 104, 0.55);
}
.brand-name { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.2; }
.brand-name small { display: block; font-size: 0.58rem; font-weight: 500; letter-spacing: 0.28em; color: var(--faint); text-transform: uppercase; }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  transition: color 0.5s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.lang-toggle {
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.lang-toggle:hover { color: var(--ink); border-color: rgba(201, 164, 104, 0.5); }
.lang-toggle:active { transform: scale(0.96); }

.nav-cta { display: inline-flex; }

/* hamburger (mobile) */
.burger {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
}
.burger span {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.6px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.6s var(--ease-menu), opacity 0.4s var(--ease-menu);
}
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }
body.menu-open .burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* fullscreen menu */
.menu {
  position: fixed; inset: 0; z-index: 35;
  display: grid; place-items: center;
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease-menu), visibility 0s linear 0.7s;
}
body.menu-open .menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu ul { text-align: center; display: grid; gap: 1.1rem; }
.menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  letter-spacing: -0.02em;
  display: inline-block;
  opacity: 0; transform: translateY(3rem);
  transition: opacity 0.8s var(--ease-menu), transform 0.9s var(--ease-menu), color 0.5s;
}
.menu a:hover { color: var(--bronze); }
body.menu-open .menu li:nth-child(1) a { transition-delay: 0.10s; }
body.menu-open .menu li:nth-child(2) a { transition-delay: 0.16s; }
body.menu-open .menu li:nth-child(3) a { transition-delay: 0.22s; }
body.menu-open .menu li:nth-child(4) a { transition-delay: 0.28s; }
body.menu-open .menu li:nth-child(5) a { transition-delay: 0.34s; }
body.menu-open .menu a { opacity: 1; transform: translateY(0); }

/* ---- buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  border-radius: 999px;
  padding: 0.5rem 0.55rem 0.5rem 1.5rem;
  font-size: 0.88rem; font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease),
              background-color 0.6s var(--ease), border-color 0.6s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .orb {
  width: 34px; height: 34px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 0.9rem;
  transition: transform 0.6s var(--ease);
}
.btn:hover .orb { transform: translate(3px, -2px) scale(1.06); }

.btn-primary {
  background: var(--grad-bronze);
  color: #17120a;
  box-shadow: 0 16px 40px -14px rgba(201, 164, 104, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary .orb { background: rgba(23, 18, 10, 0.14); color: #17120a; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(201, 164, 104, 0.55); transform: translateY(-2px); }
.btn-ghost .orb { background: rgba(255, 255, 255, 0.08); color: var(--ink); }

/* small pill nav cta */
.btn-sm { padding: 0.32rem 0.4rem 0.32rem 1.05rem; font-size: 0.76rem; gap: 0.6rem; }
.btn-sm .orb { width: 28px; height: 28px; font-size: 0.78rem; }

/* ---- hero --------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(1rem, 5vw, 4.5rem) clamp(2rem, 5vh, 3.5rem);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 18s var(--ease) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 7, 0.62) 0%, rgba(6, 6, 7, 0.18) 34%, rgba(6, 6, 7, 0.55) 66%, rgba(6, 6, 7, 0.96) 100%),
    radial-gradient(60rem 30rem at 18% 92%, rgba(6, 6, 7, 0.72), transparent 60%);
}

.hero-inner { max-width: 1200px; width: 100%; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  max-width: 17ch;
  margin: 1.6rem 0 1.4rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}
.hero-sub { max-width: 34rem; color: rgba(237, 234, 227, 0.78); font-size: clamp(0.98rem, 1.4vw, 1.1rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: 3.2rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stat-chip {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.85rem 1.35rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 12, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.stat-chip b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 520; color: var(--bronze); letter-spacing: 0; }
.stat-chip span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

/* ---- marquee ------------------------------------------------ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  background: rgba(255, 255, 255, 0.015);
}
.marquee-track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 1rem; font-style: italic;
  color: var(--faint);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 3.5rem;
}
.marquee span::after { content: "✦"; font-size: 0.6rem; color: var(--bronze); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- shared section shell ----------------------------------- */
.section { padding: clamp(6rem, 11vw, 10rem) clamp(1rem, 5vw, 4.5rem); }
.shell { max-width: 1200px; margin: 0 auto; }

/* ---- double-bezel card architecture -------------------------- */
.bezel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0.45rem;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.bezel-core {
  position: relative;
  height: 100%;
  border-radius: var(--radius-inner);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* ---- services bento ------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
  margin-top: 3.8rem;
}
.bento .cell { grid-column: span 4; }
.bento .cell.wide { grid-column: span 8; }
.bento .cell.half { grid-column: span 6; }

.svc { display: flex; flex-direction: column; min-height: 24rem; }
.svc .pic { flex: 1; overflow: hidden; position: relative; min-height: 15rem; }
.svc .pic img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.svc:hover .pic img { transform: scale(1.06); }
.svc .pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 6, 0.72) 100%);
}
.svc .txt { padding: 1.5rem 1.7rem 1.7rem; }
.svc h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; letter-spacing: -0.01em; margin-bottom: 0.45rem; }
.svc p { font-size: 0.9rem; color: var(--muted); }
.svc .tag {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  color: rgba(237, 234, 227, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 10, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---- editorial split (signature) ------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split .copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); margin: 1.4rem 0 1.3rem; }
.split .copy p { color: var(--muted); max-width: 30rem; }
.split .copy .points { margin-top: 2.2rem; display: grid; gap: 1.1rem; }
.point { display: flex; gap: 1rem; align-items: flex-start; }
.point i {
  flex: none; width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center; font-style: normal; font-size: 0.72rem;
  color: var(--bronze);
  border: 1px solid rgba(201, 164, 104, 0.4);
  background: var(--bronze-soft);
}
.point b { display: block; font-size: 0.95rem; margin-bottom: 0.1rem; }
.point span { font-size: 0.85rem; color: var(--muted); }

.split .stack { position: relative; }
.split .stack .bezel:nth-child(1) { transform: rotate(1.6deg); }
.split .stack .bezel:nth-child(2) {
  position: absolute; bottom: -3.2rem; left: -3.4rem; width: 52%;
  transform: rotate(-2.4deg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
}
.split .stack img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.split .stack .bezel:nth-child(1) .bezel-core { aspect-ratio: 4 / 4.6; }
.split .stack .bezel:nth-child(2) .bezel-core { aspect-ratio: 1 / 1.25; }

/* ---- gallery --------------------------------------------------- */
.gallery {
  margin-top: 3.6rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}
.gallery .g { cursor: zoom-in; }
.gallery .g:nth-child(1) { grid-column: span 7; }
.gallery .g:nth-child(2) { grid-column: span 5; }
.gallery .g:nth-child(3) { grid-column: span 5; }
.gallery .g:nth-child(4) { grid-column: span 7; }
.gallery .g:nth-child(5) { grid-column: span 7; }
.gallery .g:nth-child(6) { grid-column: span 5; }
.gallery .bezel-core { aspect-ratio: 16 / 10.5; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), filter 1.4s var(--ease);
}
.gallery .g:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 1.2rem; bottom: 1rem; z-index: 2;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(237, 234, 227, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
.gallery .bezel-core::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 6, 0.6) 100%);
}

/* lightbox */
.lightbox {
  border: none; padding: 0; background: transparent;
  max-width: min(92vw, 1100px); max-height: 88vh;
  outline: none;
}
.lightbox::backdrop { background: rgba(4, 4, 5, 0.88); backdrop-filter: blur(18px); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; border-radius: 1.2rem; }

/* ---- process ---------------------------------------------------- */
.steps {
  margin-top: 3.6rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.step { padding: 1.9rem 1.7rem 2.1rem; display: flex; flex-direction: column; min-height: 15rem; }
.step .no {
  font-family: var(--font-display); font-style: italic;
  font-size: 2.6rem; font-weight: 400;
  background: var(--grad-bronze);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: auto;
}
.step h3 { font-size: 1.02rem; font-weight: 700; margin: 1.6rem 0 0.4rem; }
.step p { font-size: 0.85rem; color: var(--muted); }

/* ---- about / credentials ----------------------------------------- */
.about-quote {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  max-width: 26ch;
  margin: 1.6rem 0 2.6rem;
}
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.6rem; }
.cred { padding: 1.6rem 1.7rem; }
.cred b { display: block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 0.4rem; }
.cred span { font-size: 0.95rem; color: var(--muted); }

/* ---- contact ------------------------------------------------------ */
.contact-card { padding: 0.5rem; }
.contact-core {
  padding: clamp(2.4rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
  background:
    radial-gradient(30rem 18rem at 85% 10%, rgba(201, 164, 104, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.contact-core h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin: 1.2rem 0 1rem; }
.contact-core .sub { color: var(--muted); max-width: 26rem; }
.contact-list { display: grid; gap: 1.3rem; }
.contact-item b { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.15rem; }
.contact-item span, .contact-item a { font-size: 1.02rem; color: var(--ink); }
.contact-item a:hover { color: var(--bronze); }

/* ---- footer -------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem clamp(1rem, 5vw, 4.5rem) 3rem;
}
.foot {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--faint);
}

/* ---- responsive ----------------------------------------------------- */
@media (max-width: 1020px) {
  .bento .cell, .bento .cell.wide, .bento .cell.half { grid-column: span 6; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .creds { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
}

@media (max-width: 768px) {
  .section { padding-left: 1rem; padding-right: 1rem; }

  .bento { grid-template-columns: 1fr; gap: 1.2rem; }
  .bento .cell, .bento .cell.wide, .bento .cell.half { grid-column: span 1; }

  .split { grid-template-columns: 1fr; }
  .split .stack .bezel:nth-child(1) { transform: none; }
  .split .stack .bezel:nth-child(2) { display: none; }

  .gallery { grid-template-columns: 1fr; }
  .gallery .g { grid-column: span 1 !important; }

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

  .contact-core { grid-template-columns: 1fr; gap: 2rem; }

  .hero { padding-left: 1rem; padding-right: 1rem; }
  .hero-stats { gap: 0.55rem; }
  .stat-chip { padding: 0.7rem 1rem; }
}
