/* -- Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Accessibility: visible keyboard focus indicator (WCAG 2.4.7) */
*:focus-visible {
  outline: 3px solid #2a9d8f;
  outline-offset: 2px;
  border-radius: 2px;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #fafaf8;
  color: #1a1e2e;
  overflow-x: hidden;
}

/* -- CSS Variables -- */
:root {
  --navy:       #0f1e35;
  --navy-mid:   #162840;
  --navy-light: #1e3a52;
  --teal:       #2a9d8f;
  --teal-light: #3bbcad;
  --gold:       #c8a96e;
  --cream:      #fafaf8;
  --cream-warm: #f4f1eb;
  --text-dark:  #0f1e35;
  --text-mid:   #4a5568;
  --text-light: #8a9ab0;
  --white:      #ffffff;
  --radius:     14px;
  --max-w:      1180px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* -- Typography -- */
h1, h2, h3, h4 { font-family: 'Instrument Serif', serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p  { line-height: 1.75; color: var(--text-mid); }

a { text-decoration: none; color: inherit; }

/* -- Utility -- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}
.teal { color: var(--teal); }
.gold { color: var(--gold); }

/* -- Reveal Animations -- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === NAV === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
nav.scrolled {
  background: rgba(15, 30, 53, 0.97);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo .logo-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.9rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav-logo .logo-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--teal-light);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO === */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,22,40,0.78) 0%, rgba(15,36,64,0.55) 45%, rgba(22,40,64,0.65) 100%);
  z-index: 1;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,157,143,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,157,143,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}
.hero-glow {
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(42,157,143,0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.75rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--teal);
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--teal-light);
}
.hero-content p {
  font-size: 1.1rem;
  color: #5ee4d4;
  font-weight: 500;
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #5ee4d4;
  border: 2.5px solid rgba(255,255,255,0.9);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  cursor: pointer;
}
.btn-primary:hover { background: rgba(255,255,255,0.08); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2.5px solid rgba(255,255,255,0.9);
  color: #5ee4d4;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); color: var(--white); transform: translateY(-2px); }

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}
.scroll-indicator svg { opacity: 0.4; }
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.hero-stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.75rem 2rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 1.9rem;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

/* === ABOUT === */
#about {
  padding: 7rem 0;
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text h2 { margin-bottom: 1.25rem; color: var(--navy); }
.about-text p { margin-bottom: 1.25rem; }
.about-callout {
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  background: rgba(42,157,143,0.06);
  border-radius: 0 10px 10px 0;
  margin-top: 2rem;
}
.about-callout p {
  font-size: 1rem;
  color: var(--navy-light);
  font-style: italic;
  margin: 0;
}
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-card:first-child {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}
.about-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.about-card h4 { color: var(--white); }
.about-card p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin: 0; line-height: 1.6; }
.about-card-teal { border-top: 2px solid var(--teal); }
.about-card-gold { border-top: 2px solid var(--gold); }

/* === SERVICES === */
#services {
  padding: 7rem 0;
  background: var(--white);
}
.services-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4rem;
}
.services-header h2 { color: var(--navy); margin-bottom: 1rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(15,30,53,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15,30,53,0.1);
}
.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(42,157,143,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--teal);
}
.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h2 { color: var(--navy); margin: 0 0 0.5rem; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1rem; }
.service-card p { font-size: 0.88rem; color: var(--text-mid); margin: 0; line-height: 1.65; }

/* === SERVICE SCOPE (DETAIL PROSE) === */
#service-scope { padding: 4.5rem 0 5rem; background: var(--cream); }
#service-scope .content-wrap { max-width: 820px; margin: 0 auto; }
#service-scope .content-wrap p { margin-bottom: 1.1rem; color: var(--text-mid); }
#service-scope .content-wrap h2 { font-family: 'Instrument Serif', serif; color: var(--navy); margin: 2.75rem 0 1rem; font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); }
#service-scope .content-wrap h2:first-child { margin-top: 0; }
#service-scope .content-wrap ul { margin: 0.5rem 0 1.5rem 1.5rem; color: var(--text-mid); line-height: 1.7; }
#service-scope .content-wrap li { margin-bottom: 0.5rem; }
#service-scope .content-wrap strong { color: var(--navy); }
#service-scope .content-wrap a.inline-link { color: var(--teal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
#service-scope .content-wrap a.inline-link:hover { color: var(--navy); }

/* === PROJECTS === */
#projects {
  padding: 7rem 0;
  background: var(--cream);
}
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.projects-header h2 { color: var(--navy); }
.projects-header p { color: var(--text-mid); max-width: 400px; font-size: 0.95rem; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--navy);
  cursor: pointer;
  transition: transform 0.35s;
}
.project-card:hover { transform: scale(1.02); }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-img { transform: scale(1.06); }
.project-card.featured {
  grid-column: span 2;
}
.project-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.project-card.featured .project-img-wrap { aspect-ratio: 16/9; }
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-placeholder svg { opacity: 0.25; }
.project-meta {
  padding: 1.25rem 1.4rem;
  background: var(--white);
}
.project-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.35rem;
  display: block;
}
.project-meta h4 { color: var(--navy); font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1rem; }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,30,53,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.project-overlay-text { color: var(--white); font-size: 0.85rem; opacity: 0.85; }

.projects-cta {
  text-align: center;
  margin-top: 3rem;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.3s;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

/* === PARTNER BANNER === */
#partners {
  padding: 3rem 0;
  background: var(--navy);
}
.partner-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
}
.partner-banner p {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  margin: 0;
}
.partner-banner-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  color: var(--white);
}
.partner-banner-name span { color: var(--teal-light); }
.partner-banner a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(42,157,143,0.3);
  border-radius: 6px;
  transition: all 0.3s;
}
.partner-banner a:hover { background: rgba(42,157,143,0.15); border-color: var(--teal-light); }

/* === CONTACT === */
#contact {
  padding: 7rem 0;
  background: var(--cream-warm);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { color: var(--navy); margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-item-text { display: flex; flex-direction: column; }
.contact-item-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}
.contact-item-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}
.contact-item-value a { color: var(--teal); transition: color 0.3s; }
.contact-item-value a:hover { color: var(--navy); }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(15,30,53,0.07);
}
.contact-form h3 { color: var(--navy); margin-bottom: 1.75rem; font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--navy); letter-spacing: 0.04em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(15,30,53,0.12);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.3s, background 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--teal); transform: translateY(-2px); }

/* === FOOTER === */
footer {
  background: #080f1c;
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .footer-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.footer-brand .footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1rem;
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; max-width: 300px; }
.footer-col h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.footer-nap { flex-basis: 100%; margin-bottom: 0.4rem; line-height: 1.6; }
.footer-nap a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
.footer-bottom a { color: var(--teal-light); font-size: 0.8rem; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav-logo .logo-name { font-size: 1.4rem; }
  .nav-logo .logo-tag { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    z-index: 99;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  .nav-links.open a { font-size: 1.2rem; color: var(--white); }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { grid-template-columns: 1fr; }
  .about-card:first-child { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats-inner { gap: 1.5rem; }
  .stat-divider { display: none; }
}
@media (max-width: 580px) {
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

/* === PAGE HERO === */
.page-hero {
  padding: 10rem 0 4rem;
  min-height: 45vh;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero .hero-bg img {
  object-position: center 15%;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,22,40,0.78) 0%, rgba(15,36,64,0.55) 45%, rgba(22,40,64,0.65) 100%);
  z-index: 1;
}
.page-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: var(--white);
  font-weight: 400;
}
