:root {
  --bg: #070b12;
  --bg-soft: #0b1220;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f4ef;
  --muted: #aeb7c5;
  --silver: #d8dde7;
  --red: #d61f2c;
  --blue: #1657a6;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(22, 87, 166, .12), transparent 32rem),
    linear-gradient(180deg, #070b12 0%, #09101a 42%, #06090e 100%);
  color: var(--text);
  font-family: "Lato", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page-shell { min-height: 100vh; }

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 7rem 1.5rem 4rem;
}

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  height: 88px;
  max-width: var(--max-width);
  width: calc(100% - 3rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: "Cinzel", serif;
  letter-spacing: .13em;
  font-size: .82rem;
}

.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-contact {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--silver);
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 920px;
  text-align: center;
}

.logo-orbit {
  position: relative;
  width: 500px;
  height: 430px;
  margin: 0 auto 1.8rem;
  display: grid;
  place-items: center;
}

.hero-logo {
  width: 460px;
  filter: drop-shadow(0 0 24px rgba(255,255,255,.13));
  animation: starFloat 6s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.09);
}

.orbit-ring-one {
  inset: 8px;
  animation: orbitSpin 18s linear infinite;
}

.orbit-ring-two {
  inset: 28px;
  border-style: dashed;
  animation: orbitSpin 12s linear infinite reverse;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--silver);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Cinzel", serif;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.8rem);
  line-height: .95;
  letter-spacing: .04em;
  text-shadow: 0 10px 50px rgba(0,0,0,.45);
}

.follow {
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--silver);
  font-style: italic;
  font-weight: 300;
}

.hero-copy {
  max-width: 680px;
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  position: relative;
  overflow: hidden;
  min-width: 180px;
  padding: .95rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .05em;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.32);
}

.button-primary {
  background: linear-gradient(135deg, rgba(22,87,166,.9), rgba(214,31,44,.9));
  border-color: transparent;
}

.button-secondary { background: rgba(255,255,255,.04); }

.click-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: translate(-50%, -50%) scale(0);
  animation: buttonRipple .7s ease-out;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,87,166,.18), rgba(214,31,44,.08) 45%, transparent 70%);
  filter: blur(30px);
  animation: glowPulse 7s ease-in-out infinite;
}

.ripple-field {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ripple {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  opacity: 0;
  animation: waterRipple 9s ease-out infinite;
}

.ripple-two { animation-delay: 3s; }
.ripple-three { animation-delay: 6s; }

.scroll-cue {
  position: absolute;
  bottom: 1.7rem;
  left: 50%;
  width: 30px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--silver);
  transform: translateX(-50%);
  animation: scrollPulse 2s ease-in-out infinite;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 1.5rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-heading h2,
.story-panel h2,
.contact-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.section-heading p:last-child,
.story-copy {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  min-height: 310px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  transition: transform .35s ease, border-color .35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,.25);
}

.project-number {
  color: var(--silver);
  font-size: .72rem;
  letter-spacing: .24em;
}

.project-card h3 {
  margin: 2.6rem 0 1rem;
  font-size: 1.55rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-line {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--silver);
  font-style: italic;
}

.story-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(22,87,166,.12), rgba(214,31,44,.06)),
    rgba(255,255,255,.025);
}

.story-copy { margin: auto 0; }

.values-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.values-row span {
  padding: 1.6rem .8rem;
  text-align: center;
  font-family: "Cinzel", serif;
  border-right: 1px solid var(--line);
}

.values-row span:last-child { border-right: 0; }

.contact-section {
  padding: 5rem 1.5rem 8rem;
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: radial-gradient(circle at 50% 0%, rgba(22,87,166,.17), transparent 48%);
}

.contact-card img {
  width: 72px;
  margin: 0 auto 2rem;
}

.contact-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.2rem;
  font-style: italic;
}

.contact-card .button {
  margin-top: 1.5rem;
  display: inline-block;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: "Cinzel", serif;
  color: var(--text);
  letter-spacing: .12em;
}

.footer-brand img { width: 40px; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes starFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(.95); opacity: .72; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes waterRipple {
  0% { transform: scale(.3); opacity: 0; }
  15% { opacity: .5; }
  100% { transform: scale(4.4); opacity: 0; }
}

@keyframes buttonRipple {
  to { transform: translate(-50%, -50%) scale(7); opacity: 0; }
}

@keyframes scrollPulse {
  0%, 100% { transform: translate(-50%, 0); opacity: .35; }
  50% { transform: translate(-50%, 18px); opacity: 1; }
}

@media (max-width: 850px) {
  .project-grid { grid-template-columns: 1fr; }
  .story-panel { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.2rem; }
  .values-row { grid-template-columns: 1fr; }
  .values-row span { border-right: 0; border-bottom: 1px solid var(--line); }
  .values-row span:last-child { border-bottom: 0; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}


/* MASTER 3.0 logo sizing */
@media (max-width: 700px) {
  .logo-orbit { width: 330px; height: 300px; margin-bottom: 1.2rem; }
  .hero-logo { width: 315px; }
  .brand-mark img { width: 40px; height: 40px; }
}
