@font-face {
  font-family: "Soehne";
  src: url("/fonts/soehne-buch.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Soehne";
  src: url("/fonts/soehne-buch-kursiv.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Soehne";
  src: url("/fonts/soehne-halbfett.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   GEORGE OLIVER — Global Stylesheet
   Institutional Luxury · Precision Placemaking
   ============================================ */

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

:root {
  --white: #FFFFFF;
  --near-black: #111111;
  --mid-grey: #6B6B6B;
  --warm-stone: #C4B9A8;
  --charcoal: #1A1A1A;
  --off-white: #F8F6F3;
  --taupe: #8C7B6B;
  --font-display: "Soehne", "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Soehne", "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--white);
  color: var(--near-black);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body.home {
  height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  color: var(--near-black);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  color: var(--near-black);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--near-black);
  line-height: 1.2;
}

p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: var(--mid-grey);
  line-height: 1.2;
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
  background: transparent;
  transition: background 0.3s, border-bottom 0.3s;
}

.site-nav.scrolled {
  background: white;
  border-bottom: 1px solid #E8E4DF;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--near-black);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.site-nav .logo-white { display: block; }
.site-nav .logo-dark { display: none; }
.site-nav.scrolled .logo-white { display: none; }
.site-nav.scrolled .logo-dark { display: block; }

.site-nav.hero-nav .nav-links a { color: rgba(255,255,255,0.8); }
.site-nav.hero-nav .nav-links a:hover { color: white; }
.site-nav.hero-nav.scrolled .nav-links a { color: var(--mid-grey); }
.site-nav.hero-nav.scrolled .nav-links a:hover { color: var(--near-black); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--mid-grey);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--near-black);
}

.nav-toggle {
  display: none;
}

/* Override for homepage: nav is always transparent, white logo */
.home-nav {
  background: transparent !important;
  border-bottom: none !important;
  padding: 28px 40px;
}
.home-nav.scrolled {
  background: transparent !important;
  border-bottom: none !important;
}

/* Always show white logo on homepage */
.home-nav .logo-white { display: block; }
.home-nav .logo-dark { display: none; }

/* Hamburger button */
.nav-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  transition: background 0.15s;
}
.nav-hamburger:hover span {
  background: rgba(255,255,255,0.7);
}

/* Dark hamburger variant for non-home pages */
.nav-hamburger-dark span {
  background: var(--near-black);
}
.nav-hamburger-dark:hover span {
  background: var(--mid-grey);
}

/* Hide old nav links on homepage (they're in the overlay now) */
.home-nav .nav-links {
  display: none;
}

/* Full-screen menu overlay */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.96);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.menu-overlay.open {
  display: flex;
}
.menu-close {
  position: absolute;
  top: 32px;
  right: 40px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.15s;
  font-family: var(--font-body);
}
.menu-close:hover { color: white; }
.menu-overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.menu-overlay-nav a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.15s;
  line-height: 1.2;
}
.menu-overlay-nav a:hover { color: white; }

/* ============================================
   SECTIONS & LAYOUT
   ============================================ */

.section {
  padding: 140px 64px;
  position: relative;
  z-index: 10;
  background: transparent;
}

.section.section-alt {
  background: var(--off-white);
}

.section.section-dark {
  background: var(--charcoal);
  color: white;
}

.standard-text h2,
.standard-text p,
.standard-pillars .pillar p {
  text-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================
   LABELS, CTAs & COMPONENTS
   ============================================ */

.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--warm-stone);
  margin-bottom: 20px;
  display: block;
}

.cta-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--near-black);
  text-decoration: none;
  border-bottom: 1px solid var(--near-black);
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.15s, border-color 0.15s;
}

.cta-link:hover {
  color: var(--taupe);
  border-color: var(--taupe);
}

/* ============================================
   FADE UP ANIMATION
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: white;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 13px;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: white;
}

/* Hide footer globally */
.site-footer { display: none; }

/* Section heading — larger team headers */
.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--near-black);
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  line-height: 1.2;
}

/* ============================================
   HOME — HERO (Fixed Scroll Effect)
   ============================================ */

/* ─── Fixed Hero ─── */
.hero-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 80px 100px;
  overflow: hidden;
}

.hero-spacer {
  height: 100vh;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* Rotating backgrounds */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.4s ease;
  z-index: 0;
}

.hero-bg.active { opacity: 1; }
.hero-bg.inactive { opacity: 0; }

/* Dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}

/* Hero text */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: white;
}

.hero-content h1 {
  color: white;
  font-size: clamp(42px, 5.2vw, 64px);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-cta {
  color: white;
  border-color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-cta:hover {
  color: white;
  border-color: white;
}

.hero-content .cta-link {
  color: white;
  border-color: rgba(255,255,255,0.5);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.hero-content .cta-link:hover {
  border-color: white;
  color: white;
}

/* ============================================
   HOME — STANDARD SECTION
   ============================================ */

.standard-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.standard-text h2 {
  margin: 16px 0 32px;
}

.standard-text p {
  max-width: 540px;
  font-size: 17px;
}

/* ============================================
   HOME — PROJECTS TEASER
   ============================================ */

.projects-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.project-img {
  height: 400px;
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.project-teaser-item:hover .project-img {
  transform: scale(1.01);
}

.project-teaser-item h3 {
  margin-bottom: 8px;
  font-size: 26px;
}

.project-teaser-item p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */

.portfolio-hero {
  padding-top: 200px;
  padding-bottom: 32px;
}

.portfolio-hero + .featured-project {
  padding-top: 70px;
}

.featured-project {
  /* inherits .section */
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.featured-grid.reverse {
  direction: rtl;
}

.featured-grid.reverse > * {
  direction: ltr;
}

.featured-img {
  height: 560px;
  background-size: cover;
  background-position: center;
}

.featured-text h2 {
  margin: 16px 0 12px;
}

.project-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  color: var(--near-black);
  margin-bottom: 20px;
  line-height: 1.2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.gallery-img {
  height: 280px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.02);
}

.gallery-name {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--mid-grey);
  margin-top: 12px;
}

/* ============================================
   TEAM PAGE
   ============================================ */

.team-hero {
  padding-top: 200px;
  padding-bottom: 80px;
}

.team-hero h1 {
  margin-bottom: 16px;
}

.team-hero p {
  font-size: 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.team-member {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
  display: block;
}

.team-member:hover {
  opacity: 0.75;
}

.headshot {
  width: 100%;
  aspect-ratio: 1;
  background: var(--off-white);
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.headshot-placeholder {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  color: var(--warm-stone);
}

.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 18px;
  color: var(--near-black);
  margin-bottom: 4px;
}

.team-title {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--mid-grey);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section {
  min-height: 80vh;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.contact-text h1 {
  margin: 16px 0 20px;
}

.contact-info {
  margin-top: 48px;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info a {
  text-decoration: none;
  transition: color 0.15s;
}

.contact-info a:hover {
  color: var(--taupe);
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--warm-stone);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #E0DBD4;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--near-black);
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--near-black);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-stone);
  font-family: var(--font-body);
}

.form-group textarea {
  resize: vertical;
}

/* ============================================
   INVESTOR PORTAL
   ============================================ */

.investor-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.investor-section h1 {
  margin: 16px 0 20px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .site-nav {
    padding: 20px 24px;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 22px;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    position: relative;
    z-index: 100;
    color: var(--near-black);
  }

  .hero-fixed {
    position: relative;
    height: 100svh;
    padding: 0 28px 72px;
  }

  .hero-spacer {
    display: none;
  }

  .home-nav {
    padding: 24px 24px;
  }

  .nav-logo img {
    height: 42px;
  }

  .section {
    padding: 80px 24px;
    z-index: 1;
  }

  .standard-section,
  .featured-grid,
  .projects-teaser,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .featured-grid.reverse {
    direction: ltr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .site-footer {
    flex-direction: column;
    gap: 24px;
    padding: 48px 24px;
  }

  .portfolio-hero,
  .team-hero {
    padding-top: 140px;
    padding-bottom: 40px;
  }

  .featured-img {
    height: 300px;
  }

  .project-img {
    height: 260px;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

/* ─── Modal Lightbox ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.modal-overlay.open {
  display: flex;
}
.modal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  z-index: 10;
}
.modal-project-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.modal-counter {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}
.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}
.modal-close:hover { color: white; }
.modal-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 100px;
}
.modal-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  transition: opacity 0.25s ease;
}
.modal-img-wrap img.fading { opacity: 0; }
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  z-index: 10;
}
.modal-nav:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.modal-prev { left: 24px; }
.modal-next { right: 24px; }
.modal-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.modal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  padding: 0;
}
.modal-dot.active { background: white; }

/* Gallery item — make clickable */
.gallery-item {
  cursor: pointer;
  overflow: hidden;
}
.gallery-item .gallery-img {
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.03);
}
.gallery-item .gallery-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gallery-item .gallery-name::after {
  content: '→';
  font-size: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.gallery-item:hover .gallery-name::after {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Hero Intro Animations ─── */
.hero-content h1,
.hero-content p,
.hero-content .hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content h1 {
  animation-delay: 0.3s;
}
.hero-content p {
  animation-delay: 1.4s;
}
.hero-content .hero-cta {
  animation-delay: 2.5s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Page-specific heading scale refinements */
.portfolio-hero h1,
.team-hero h1 {
  font-size: clamp(34px, 4.3vw, 48px);
  line-height: 1.15;
}
