/* ============================================
   EIKO JAPAN LANKA — stylesheet
   ============================================ */

:root {
  --navy-950: #050b1a;
  --navy-900: #0a1428;
  --navy-800: #0f1e3d;
  --navy-700: #162a52;
  --navy-600: #1f3a6e;
  --navy-500: #2d5291;
  --ink: #05091a;
  --paper: #f5f1e8;
  --paper-warm: #ebe5d5;
  --paper-dim: #d9d3c2;
  --white: #ffffff;
  --gold: #b5893e;
  --gold-light: #d4a85f;
  --rust: #7a2e1e;
  --muted: rgba(5, 9, 26, 0.55);
  --line: rgba(5, 9, 26, 0.15);
  --line-soft: rgba(5, 9, 26, 0.08);

  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Inter Tight', -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  /* Prevent horizontal overflow on small screens */
  overflow-x: hidden;
}

body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  
  /* iOS Safari — prevent bounce artifacts behind fixed globe */
  -webkit-overflow-scrolling: touch;
}

/* (Removed touch-device override — system cursor is always on now) */

img { max-width: 100%; display: block; }
button {  font-family: inherit; }
a { color: inherit; text-decoration: none;  }
input, textarea, select, button { font-family: inherit;  }

/* ============================================
   Grain texture overlay
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ============================================
   Custom cursor
   ============================================ */
/* Custom cursor disabled — using default system cursor */
.cursor, .cursor-dot { display: none !important; }

/* ============================================
   Scroll progress
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--ink);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================
   Loader
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
}
.loader-text {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  display: flex;
  gap: 0.1em;
}
.loader-text span {
  display: inline-block;
  animation: loaderFade 1.4s ease-in-out infinite;
}
.loader-text span:nth-child(1) { animation-delay: 0s; }
.loader-text span:nth-child(2) { animation-delay: 0.15s; }
.loader-text span:nth-child(3) { animation-delay: 0.3s; }
.loader-text span:nth-child(4) { animation-delay: 0.45s; }
@keyframes loaderFade {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
.loader-bar {
  width: 200px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--ink);
  transition: width 0.3s linear;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.8rem 2.5rem;
  transition: padding 0.4s var(--ease), background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  padding: 1rem 2.5rem;
  background: rgba(245, 241, 232, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  color: var(--ink);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition: transform 0.6s var(--ease);
}
.nav-logo:hover .logo-mark {
  transform: rotate(12deg) scale(1.05);
}
@media (max-width: 768px) {
  .logo-mark { width: 32px; height: 32px; }
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-link {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 0.4rem 0;
  transition: opacity 0.3s;
  opacity: 0.75;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { padding: 1.2rem 1.2rem; }
  .nav.scrolled { padding: 0.9rem 1.2rem; }
  .logo-text { font-size: 0.95rem; }
  .nav-cta {
    padding: 0.55rem 1rem;
    font-size: 0.7rem;
  }
  .nav-cta span {
    display: none;
  }
  .nav-cta::after {
    content: 'Login';
  }
}
@media (max-width: 380px) {
  .nav-cta { display: none; }
}

/* ============================================
   Globe canvas
   ============================================ */
.globe-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
#globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   Main layout
   ============================================ */
main {
  position: relative;
  z-index: 2;
}
.section {
  position: relative;
  padding: 10rem 2.5rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* ============================================
   READING BACKDROP — solves dot-interference
   Each text-heavy section gets a soft radial gradient
   that fades the globe dots behind the reading area
   without looking like a harsh box.
   ============================================ */
.section.about::before,
.section.advantages::before,
.section.services::before,
.section.testimonials::before,
.section.stats::before {
  content: '';
  position: absolute;
  inset: -2rem -2rem;
  background:
    radial-gradient(
      ellipse 70% 85% at 50% 50%,
      rgba(245, 241, 232, 0.92) 0%,
      rgba(245, 241, 232, 0.85) 40%,
      rgba(245, 241, 232, 0.55) 70%,
      rgba(245, 241, 232, 0) 100%
    );
  pointer-events: none;
  z-index: -1;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

/* Partners section — a lighter backdrop, since we want
   to see the globe pins glowing behind it */
.section.partners::before {
  content: '';
  position: absolute;
  inset: -2rem -2rem;
  background:
    radial-gradient(
      ellipse 60% 80% at 50% 50%,
      rgba(245, 241, 232, 0.75) 0%,
      rgba(245, 241, 232, 0.55) 50%,
      rgba(245, 241, 232, 0) 100%
    );
  pointer-events: none;
  z-index: -1;
}

.section > * { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .section { padding: 5rem 1.25rem; }
  /* Stronger backdrop on mobile — dots are more visible */
  .section.about::before,
  .section.advantages::before,
  .section.services::before,
  .section.testimonials::before,
  .section.stats::before {
    background:
      radial-gradient(
        ellipse 90% 95% at 50% 50%,
        rgba(245, 241, 232, 0.96) 0%,
        rgba(245, 241, 232, 0.90) 50%,
        rgba(245, 241, 232, 0.6) 85%,
        rgba(245, 241, 232, 0) 100%
      );
  }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-number {
  font-family: var(--f-display);
  font-weight: 400;
}
.section-label::before {
  content: '—';
  margin-right: 0.5rem;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 4rem;
  max-width: 16ch;
}
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(2rem, 9vw, 3.2rem);
    margin-bottom: 2.5rem;
  }
  .section-header {
    margin-bottom: 2rem;
    font-size: 0.7rem;
  }
  .cta-title {
    font-size: clamp(2.4rem, 11vw, 4.5rem);
    margin-bottom: 3rem;
  }
}
.section-title .line {
  display: block;
  overflow: hidden;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--rust);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
}
.meta-line {
  position: relative;
  padding-left: 1.5rem;
}
.meta-line::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 1px;
  background: var(--ink);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 13vw, 11rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 3rem;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: wordReveal 1.1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) .word { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.45s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.55s; }
.hero-title .line:nth-child(3) .word { animation-delay: 0.7s; }
.hero-title .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--rust);
}
.hero-title .punctuation {
  display: inline-block;
  color: var(--rust);
  opacity: 0;
  animation: wordReveal 0.6s var(--ease) 1.3s forwards;
}
@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  max-width: 32rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.5s forwards;
}
.hero-sub p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 300;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.8s forwards;
}
.scroll-indicator {
  width: 60px; height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-indicator-fill {
  position: absolute;
  left: 0; top: 0;
  width: 30%; height: 100%;
  background: var(--ink);
  animation: scrollSlide 2s ease-in-out infinite;
}
@keyframes scrollSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* Hero mobile tuning */
@media (max-width: 768px) {
  .hero {
    padding-top: 6rem;
    padding-bottom: 5rem;
    min-height: 100svh; /* 'small viewport' — accounts for mobile chrome */
  }
  .hero-meta {
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.65rem;
    flex-wrap: wrap;
  }
  .hero-title {
    font-size: clamp(2.8rem, 15vw, 5rem);
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
  }
  .hero-sub p { font-size: 0.98rem; }
  .hero-scroll {
    left: 1.25rem;
    bottom: 1.5rem;
    font-size: 0.65rem;
  }
  .scroll-indicator { width: 40px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2.4rem; }
  .hero-meta {
    font-size: 0.6rem;
    gap: 1rem;
  }
  .meta-line { padding-left: 1rem; }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--paper);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}
.about-block h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.about-block p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.85;
  max-width: 32rem;
}

.about-president {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}
.president-portrait {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}
.portrait-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--paper-warm), var(--paper-dim));
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.president-portrait.license .portrait-frame {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, rgba(181, 137, 62, 0.12), rgba(181, 137, 62, 0.04)),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(181, 137, 62, 0.06) 10px,
      rgba(181, 137, 62, 0.06) 11px
    );
  border-color: rgba(181, 137, 62, 0.3);
}
.portrait-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.portrait-caption {
  font-family: var(--f-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.president-quote {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  font-weight: 400;
}
.president-quote em { font-style: italic; font-weight: 300; }
.president-name {
  margin-top: 2rem;
  font-family: var(--f-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.president-name strong {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.president-name span {
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .about-president {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
  }
  .president-portrait,
  .president-portrait.license {
    max-width: 200px;
    margin: 0 auto;
  }
  .president-quote {
    font-size: 1.25rem;
    text-align: center;
    order: -1;
  }
  .president-name {
    text-align: center;
  }
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-block h3 { font-size: 1.15rem; }
  .about-block p { font-size: 0.98rem; }
}

/* ============================================
   STATS
   ============================================ */
.stats {
  padding: 4rem 2.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem 0;
}
.stat-number {
  font-family: var(--f-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 768px) {
  .stats { padding: 3rem 1.25rem; }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .stat { padding: 1rem 0; }
  .stat-number { font-size: 2.4rem; }
  .stat-label { font-size: 0.7rem; }
}

/* ============================================
   ADVANTAGES
   ============================================ */
.advantages-list {
  display: flex;
  flex-direction: column;
}
.advantage-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.advantage-item:last-child { border-bottom: 1px solid var(--line); }
.advantage-item:hover { padding-left: 2rem; }
.advantage-num {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rust);
  font-style: italic;
}
.advantage-body h3 {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.advantage-body p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.75;
  max-width: 42rem;
}
@media (max-width: 768px) {
  .advantage-item {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }
  .advantage-item:hover { padding-left: 0; }
  .advantage-num { font-size: 1.15rem; }
  .advantage-body h3 { font-size: 1.4rem; }
  .advantage-body p { font-size: 0.95rem; }
}

/* ============================================
   PARTNERS
   ============================================ */
.partners-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.partner {
  padding: 2.5rem;
  background: rgba(245, 241, 232, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), background 0.5s;
}
.partner:hover {
  transform: translateY(-4px);
  background: var(--paper-warm);
}
.partner-index {
  font-family: var(--f-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--rust);
  display: block;
  margin-bottom: 1.5rem;
}
.partner h3 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.partner-location {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
}
.partner-address {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 768px) {
  .partners-list { grid-template-columns: 1fr; gap: 1rem; }
  .partner { padding: 1.8rem 1.5rem; }
  .partner h3 { font-size: 1.25rem; }
  .partner-location { font-size: 0.75rem; }
  .partner-address { font-size: 0.82rem; }
}

/* ============================================
   SERVICES
   ============================================ */
.services-block {
  margin-bottom: 5rem;
}
.services-subtitle {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.industries {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.industries li {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: padding 0.4s var(--ease), color 0.4s;
}
.industries li:hover {
  padding-left: 1rem;
  color: var(--rust);
}
.industries li span {
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 30px;
}
@media (max-width: 768px) {
  .industries { grid-template-columns: 1fr; }
  .industries li {
    font-size: 1.1rem;
    gap: 1rem;
    padding: 1.1rem 1rem;
  }
  .industries li:hover { padding-left: 1rem; }
  .services-block { margin-bottom: 3rem; }
  .services-subtitle { font-size: 0.75rem; }
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.roles-col {
  padding: 1.8rem 1.5rem;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), background 0.5s;
}
.roles-col:hover {
  transform: translateY(-3px);
  background: var(--paper-warm);
}
.roles-col-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--rust);
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}
.roles-col p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.82;
}

/* Industries — stronger reading background on items so dots don't interfere */
.industries li {
  background: linear-gradient(
    to right,
    rgba(245, 241, 232, 0.7) 0%,
    rgba(245, 241, 232, 0.5) 70%,
    rgba(245, 241, 232, 0) 100%
  );
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: -1rem;
}

@media (max-width: 900px) {
  .roles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .roles-grid { grid-template-columns: 1fr; gap: 1rem; }
  .roles-col { padding: 1.4rem 1.2rem; }
  .roles-col-title { font-size: 1rem; }
  .roles-col p { font-size: 0.88rem; }
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.value-card {
  padding: 2rem;
  border: 1px solid var(--line);
  transition: background 0.4s;
}
.value-card:hover { background: var(--paper-warm); }
.value-num {
  font-size: 1.5rem;
  color: var(--rust);
  display: block;
  margin-bottom: 1.5rem;
}
.value-card h4 {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.value-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .value-card { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.testimonial {
  padding: 3rem;
  background: rgba(245, 241, 232, 0.6);
  border: 1px solid var(--line);
}
.testimonial blockquote {
  font-family: var(--f-display);
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 2rem;
  letter-spacing: -0.005em;
}
.testimonial blockquote::before {
  content: '"';
  font-size: 3rem;
  line-height: 0;
  display: block;
  margin-bottom: 1rem;
  color: var(--rust);
}
.testimonial figcaption {
  font-family: var(--f-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Testimonial image panel — medium-sized, sits at top of card */
.testimonial-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, var(--paper-warm), var(--paper-dim));
  border: 1px solid var(--line);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.6s var(--ease);
}
.testimonial-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(5, 9, 26, 0.025) 12px,
      rgba(5, 9, 26, 0.025) 13px
    );
  pointer-events: none;
}
.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.testimonial:hover .testimonial-image {
  transform: scale(1.01);
}
.image-placeholder-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(245, 241, 232, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

/* Dual photo layout for duo testimonial */
.testimonial-image.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0;
  background: var(--line);
}
.image-half {
  background: linear-gradient(135deg, var(--paper-warm), var(--paper-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.image-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial figcaption strong {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
  text-transform: none;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-family: var(--f-display);
}
.testimonial figcaption span {
  color: var(--muted);
  font-size: 0.72rem;
}

/* Success story — highlighted variant */
.testimonial.success-story {
  background: linear-gradient(135deg,
    rgba(181, 137, 62, 0.12),
    rgba(245, 241, 232, 0.8));
  border: 1px solid rgba(181, 137, 62, 0.3);
  position: relative;
}
.testimonial.success-story .testimonial-image {
  border-color: rgba(181, 137, 62, 0.3);
}
.success-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  padding: 0.4rem 0.8rem;
  background: rgba(181, 137, 62, 0.15);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.testimonial.success-story blockquote::before {
  content: '◆';
  font-size: 1.5rem;
  color: var(--gold);
}

/* Gallery link below testimonials */
.testimonials-cta {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}
.gallery-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2rem 3rem;
  border: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.8);
  backdrop-filter: blur(8px);
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
  position: relative;
  text-align: center;
  min-width: 320px;
}
.gallery-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.gallery-link-text {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.gallery-link-sub {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.4s;
}
.gallery-link:hover .gallery-link-sub {
  color: rgba(245, 241, 232, 0.6);
}
.gallery-link svg {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.4s var(--ease);
}
.gallery-link:hover svg {
  transform: translateY(-50%) translateX(6px);
}
@media (max-width: 768px) {
  .testimonial-track { grid-template-columns: 1fr; gap: 1rem; }
  .testimonial { padding: 2rem 1.5rem; }
  .testimonial blockquote { font-size: 1rem; margin-bottom: 1.5rem; }
  .testimonial blockquote::before { font-size: 2rem; }
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.contact {
  background: var(--navy-950);
  color: var(--paper);
  max-width: none;
  padding: 10rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(181, 137, 62, 0.15), transparent 50%);
}
.contact > * { position: relative; }
.contact .section-header { color: rgba(245, 241, 232, 0.55); }
.contact .section-label::before { color: rgba(245, 241, 232, 0.4); }

.cta-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 6rem;
  max-width: 16ch;
}
.cta-title .line {
  display: block;
  overflow: hidden;
}
.cta-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 241, 232, 0.2);
  padding: 0.8rem 0;
  color: var(--paper);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.field select option {
  background: var(--navy-950);
  color: var(--paper);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-light);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 241, 232, 0.3);
}

.submit-btn {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.2rem 2rem;
  background: transparent;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  align-self: flex-start;
  border-radius: 999px;
}
.submit-btn:hover {
  background: var(--gold-light);
  color: var(--navy-950);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(245, 241, 232, 0.15);
}
.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.info-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.4);
  margin-bottom: 0.3rem;
}
.info-value {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.3s;
}
a.info-value:hover { color: var(--gold-light); }

.map-embed {
  margin-top: 1rem;
  border: 1px solid rgba(245, 241, 232, 0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.map-embed iframe {
  display: block;
  width: 100%;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.4) brightness(0.95);
  transition: filter 0.4s var(--ease);
}
.map-embed:hover iframe {
  filter: invert(0.88) hue-rotate(180deg) saturate(0.6) brightness(1);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(245,241,232,0.15);
    padding-top: 2rem;
  }
}
@media (max-width: 768px) {
  .contact { padding: 5rem 1.25rem; }
  .cta-title { margin-bottom: 3rem; }
  .submit-btn { width: 100%; padding: 1rem 1.5rem; }
  .info-value { font-size: 1rem; }
  .field input, .field select, .field textarea { font-size: 0.95rem; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-950);
  color: var(--paper);
  padding: 4rem 2.5rem 2.5rem;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
}
.footer-mark {
  max-width: 1400px;
  margin: 0 auto 3rem;
}
.footer-title {
  font-family: var(--f-display);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-title > span:first-child {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}
.footer-sub {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}
.footer-line {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(245, 241, 232, 0.5);
  max-width: 40rem;
}
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(245, 241, 232, 0.4);
}
@media (max-width: 768px) {
  .footer { padding: 3rem 1.25rem 2rem; }
  .footer-title { flex-wrap: wrap; gap: 0.5rem; }
  .footer-line { font-size: 0.75rem; }
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; }
}

/* ============================================
   Reveal animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for children */
.reveal.in .line { animation: lineSlide 0.9s var(--ease) forwards; }
.reveal.in .line:nth-child(1) { animation-delay: 0s; }
.reveal.in .line:nth-child(2) { animation-delay: 0.1s; }
.reveal.in .line:nth-child(3) { animation-delay: 0.2s; }

@keyframes lineSlide {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
