@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ink: #0c0c0d;
  --paper: #efefec;
  --paper-warm: #e7e5df;
  --blue: #1a3fa3;
  --blue-deep: #0f2b7d;
  --stone: #8b8d86;
  --line: rgba(12, 12, 13, .14);
  --line-light: rgba(239, 239, 236, .18);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: var(--paper); }

h1, h2, h3, .display {
  font-family: 'Archivo Black', 'Archivo', Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  margin: 0;
}

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ---------- Nav ---------- */

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-image: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .16) 50%, transparent 58%);
  background-size: 280% 100%;
  animation: nav-sheen-move 9s linear infinite;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 48px;
  mix-blend-mode: difference;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  pointer-events: none;
}

.nav a { pointer-events: auto; }

.zg-home-btn { transition: background .3s; }
.zg-home-btn:hover { background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08)) !important; }

.nav .brand { display: flex; align-items: center; gap: 10px; }

@media (max-width: 640px) {
  .nav { padding: 20px 20px; font-size: 12px; gap: 10px; }
  .nav .brand img { height: 32px !important; }
  .zg-home-btn { padding: 8px 16px !important; font-size: 12px !important; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px 0 0 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(1) contrast(1.05);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 35, .12) 0%, rgba(10, 14, 26, .48) 62%, rgba(6, 9, 18, .82) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 32px 76px;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: .86;
  margin-bottom: 26px;
  font-weight: 600;
}

.hero-eyebrow .rule { width: 44px; height: 1px; background: rgba(255, 255, 255, .5); }

.hero h1 {
  font-size: clamp(48px, 7.6vw, 100px);
  color: #fff;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--paper);
  -webkit-text-stroke: 1.5px #fff;
  color: transparent;
}

.hero-sub {
  max-width: 520px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 60px;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-scroll {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .7);
}

.arrow-down {
  width: 1px; height: 34px;
  background: rgba(255, 255, 255, .55);
  position: relative;
  animation: pulseline 2.2s ease-in-out infinite;
}

@keyframes pulseline { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- Section scaffolding ---------- */

section { position: relative; }
.pad { padding: 120px 0; }
@media (max-width: 780px) { .pad { padding: 76px 0; } }
.dark { background: var(--ink); color: var(--paper); }
.warm { background: var(--paper-warm); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dark .eyebrow { color: #8fa8ff; }
.eyebrow .rule { width: 30px; height: 1px; background: currentColor; opacity: .6; }

h2.title { font-size: clamp(34px, 5.2vw, 64px); color: var(--blue); }
.dark h2.title { color: #fff; -webkit-text-stroke: 0; }
.title-black { color: var(--ink) !important; }
.dark .title-black { color: #fff !important; }

p.lede { font-size: 18px; line-height: 1.65; max-width: 640px; color: #2b2b2c; }
.dark p.lede { color: rgba(239, 239, 236, .82); }

/* ---------- Intro two-col ---------- */

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.intro-grid img { width: 100%; height: 640px; object-fit: cover; }
.intro-cols { column-count: 2; column-gap: 36px; font-size: 15px; line-height: 1.7; color: #2b2b2c; margin-top: 30px; }
.intro-cols p { margin: 0 0 20px; break-inside: avoid; }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid img { height: 340px; order: -1; margin-bottom: 8px; }
  .intro-cols { column-count: 1; }
}

/* ---------- Directions (2 big cards) ---------- */

.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); margin-top: 56px; }
.direction-card { background: var(--ink); position: relative; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; }
.direction-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.direction-card:hover img { transform: scale(1.045); }
.direction-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 18, 0) 35%, rgba(6, 8, 14, .92) 100%); }
.direction-body { position: relative; z-index: 2; padding: 34px; color: #fff; }
.direction-tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-bottom: 10px; font-weight: 700; }
.direction-body h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; }
.direction-body p { font-size: 14.5px; line-height: 1.6; max-width: 34ch; opacity: .88; margin: 0; font-weight: 400; text-transform: none; letter-spacing: 0; font-family: 'Archivo'; }

@media (max-width: 780px) {
  .directions { grid-template-columns: 1fr; }
  .direction-card { min-height: 400px; }
}

/* ---------- Team ---------- */

.team { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 56px; background: var(--line-light); }
.team-card { background: #161618; padding: 0; display: grid; grid-template-columns: 190px 1fr; gap: 0; }

.team-photo {
  height: 100%;
  min-height: 230px;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 22%, black 100%), radial-gradient(ellipse at center, black 55%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, black 22%, black 100%), radial-gradient(ellipse at center, black 55%, transparent 92%);
  mask-composite: intersect;
}

.team-photo.placeholder {
  background: linear-gradient(135deg, #23262b, #101114);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-info { padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; }
.team-info p { font-size: 14px; line-height: 1.65; color: rgba(239, 239, 236, .78); margin: 0 0 18px; font-weight: 400; }
.team-role { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8fa8ff; font-weight: 700; margin-bottom: 6px; }
.team-name { font-family: 'Archivo Black'; font-size: 22px; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.team-edu-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #787c85; margin-bottom: 4px; }
.team-edu { font-size: 13px; color: rgba(239, 239, 236, .7); line-height: 1.5; }

@media (max-width: 780px) {
  .team { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; }
  .team-photo { min-height: 220px; }
}

/* ---------- Philosophy ---------- */

.phil-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; margin-top: 56px; }
.phil-grid img { width: 100%; height: 560px; object-fit: cover; }
.phil-item { padding: 26px 0; border-top: 1px solid var(--line); }
.phil-item:first-child { border-top: none; padding-top: 0; }
.phil-num { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--blue); margin-bottom: 8px; text-transform: uppercase; }
.phil-item h4 { font-family: 'Archivo'; font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 8px; }
.phil-item p { font-size: 14.5px; line-height: 1.6; color: #3a3a3b; margin: 0; }

@media (max-width: 900px) {
  .phil-grid { grid-template-columns: 1fr; gap: 30px; }
  .phil-grid img { height: 320px; }
}

/* ---------- Principle rows (gothic / greek) ---------- */

.principle-row { margin-top: 52px; }
.principle-imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.principle-imgs img { width: 100%; height: 260px; object-fit: cover; border-radius: 8px; }
.principle-tags { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 38px; align-items: center; }
.principle-tags span { text-align: center; font-family: 'Archivo Black'; font-size: 18px; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.principle-tags span:nth-child(1) { grid-column: 1/3; grid-row: 1; }
.principle-tags span:nth-child(2) { grid-column: 2/4; grid-row: 1; }
.principle-tags span:nth-child(3) { grid-column: 3/5; grid-row: 1; }

@media (max-width: 780px) {
  .principle-imgs { grid-template-columns: repeat(2, 1fr); }
  .principle-imgs img { height: 200px; }
  .principle-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
  .principle-tags span { grid-column: auto; }
}

/* ---------- Orders ---------- */

.orders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.order-card { text-align: center; }
.order-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: var(--paper-warm);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 32%, black 68%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 32%, black 68%, transparent 100%);
}
.order-card .order-name { margin-top: 16px; font-family: 'Archivo Black'; letter-spacing: .02em; }

@media (max-width: 700px) {
  .orders { grid-template-columns: 1fr 1fr; }
  .order-card:last-child { grid-column: span 2; max-width: 280px; margin: 0 auto; }
}

/* ---------- Build types ---------- */

.builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 56px; background: var(--line-light); border-left: 2px solid var(--line-light); }
.build-card { background: #0c0c0d; }
.build-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.build-label { padding: 20px 22px; font-family: 'Archivo Black'; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: #fff; }

@media (max-width: 780px) { .builds { grid-template-columns: 1fr; } }

/* ---------- Sustainability ---------- */

.sustain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 40px; background: var(--line-light); border-left: 2px solid var(--line-light); }
.sustain-card { background: #0c0c0d; }
.sustain-card img { width: 100%; height: 280px; object-fit: cover; display: block; }
.sustain-label { padding: 20px 22px; font-family: 'Archivo Black'; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: #fff; }

@media (max-width: 780px) { .sustain { grid-template-columns: 1fr; } }

/* ---------- Why choose us ---------- */

.why-wrap { position: relative; }
.why-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.why-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 14, .15) 0%, rgba(8, 9, 14, .55) 55%, rgba(8, 9, 14, .15) 100%); }
.why-inner { position: relative; z-index: 2; }
.why-panel { max-width: 640px; background: rgba(239, 239, 236, .97); padding: 56px 52px; }
.why-item { padding: 20px 0; border-top: 1px solid var(--line); }
.why-item:first-child { border-top: none; padding-top: 0; }
.why-item h4 { color: var(--blue); font-family: 'Archivo'; font-weight: 800; font-size: 15.5px; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 8px; }
.why-item p { font-size: 14px; line-height: 1.6; color: #2c2c2d; margin: 0; }

@media (max-width: 780px) { .why-panel { padding: 38px 26px; } }

/* ---------- Future vision ---------- */

.fv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 20px; }
.fv-grid img { width: 100%; height: 520px; object-fit: cover; }
.fv-grid p { font-size: 15px; line-height: 1.75; color: #3a3a3b; margin: 0 0 20px; }

@media (max-width: 900px) {
  .fv-grid { grid-template-columns: 1fr; gap: 30px; }
  .fv-grid img { height: 320px; }
}

/* ---------- CTA / Contact ---------- */

.cta { position: relative; min-height: 70vh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(1); }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 14, .55), rgba(8, 9, 14, .88)); }
.cta-top { position: relative; z-index: 2; display: flex; justify-content: space-between; padding: 40px 32px 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); font-weight: 700; }
.cta-mid { position: relative; z-index: 2; padding: 40px 32px; }
.cta-mid h2 { font-size: clamp(48px, 10vw, 140px); color: #fff; line-height: .9; }
.cta-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 30px 32px 40px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; color: rgba(255, 255, 255, .85); font-weight: 600; }
.cta-foot a { text-decoration: none; }
.cta-foot a:hover { color: #8fa8ff; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .direction-card img { transition: none; }
  .arrow-down { animation: none; }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.brand-logo { animation: logo-color-shift 6s ease-in-out infinite; }
@keyframes logo-color-shift { 0% { filter: invert(1) hue-rotate(0deg) brightness(1); } 50% { filter: invert(1) hue-rotate(25deg) brightness(1.25); } 100% { filter: invert(1) hue-rotate(0deg) brightness(1); } }
@keyframes nav-sheen-move { 0% { background-position: -180% 0; } 100% { background-position: 180% 0; } }
