:root {
  --bg: #f4efe7;
  --surface: rgba(255, 255, 255, 0.68);
  --ink: #13252f;
  --muted: #60707c;
  --line: rgba(19, 37, 47, 0.1);
  --brand: #1a7a7a;
  --brand-dark: #0f3f4a;
  --accent: #c96c3a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 108, 58, 0.16), transparent 22%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 60%);
}

body.subpage-body {
  background:
    radial-gradient(circle at top left, rgba(26, 122, 122, 0.1), transparent 24%),
    linear-gradient(180deg, #fbfaf7 0%, #f2eee7 68%);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--progress, 0%);
  height: 4px;
  z-index: 20;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

.transition-wave {
  position: absolute;
  inset: auto 0 0;
  height: 100%;
  transform: translateY(100%);
  transition: transform .72s cubic-bezier(.76, 0, .24, 1);
}

.transition-wave-one {
  background: linear-gradient(180deg, rgba(15,63,74,.92), rgba(15,63,74,.98));
  transition-delay: 0s;
}

.transition-wave-two {
  background: linear-gradient(180deg, rgba(26,122,122,.9), rgba(201,108,58,.82));
  clip-path: ellipse(94% 62% at 50% 100%);
  transition-delay: .08s;
}

.page-transition.is-active .transition-wave {
  transform: translateY(0);
}

.hero-shell {
  position: relative;
  overflow: hidden;
  padding-bottom: 34px;
}

.fog, .fog::before, .fog::after {
  content: "";
  position: absolute;
  inset: auto -10% 0;
  height: 24vh;
  pointer-events: none;
  background: radial-gradient(circle at 40% 50%, rgba(255,255,255,.3), transparent 30%);
  filter: blur(42px);
  opacity: .5;
}

.fog { animation: drift 16s ease-in-out infinite alternate; }
.fog::before { animation: drift 22s ease-in-out infinite alternate-reverse; }
.fog::after { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

.wrap { width: min(1220px, calc(100% - 36px)); margin: 0 auto; }
.shell { position: relative; z-index: 2; }
.topbar, .nav { display: flex; justify-content: space-between; gap: 18px; }
.topbar {
  padding: 20px 0 12px;
  color: var(--muted);
  font-size: .84rem;
}

.brand, h1, h2, h3 {
  font-family: "League Spartan", sans-serif;
  margin: 0;
}

.brand { font-size: 2.1rem; text-decoration: none; color: inherit; }
.nav {
  align-items: center;
  padding: 14px 0 26px;
}
.nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.nav-links a,
.brand,
.button,
.contact-card a {
  transition: transform .28s ease, color .28s ease, opacity .28s ease, background-color .28s ease, border-color .28s ease;
}
.nav-links a:hover,
.brand:hover,
.button:hover,
.contact-card a:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: 24px;
  min-height: 84vh;
}

.hero-copy {
  padding: 36px 0;
  align-self: center;
}

.eyebrow, .mini-label {
  display: inline-block;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 800;
}

.eyebrow { color: var(--brand); }
.mini-label { color: rgba(255,255,255,.76); }

h1 {
  max-width: 700px;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: .86;
}

.lead, p {
  line-height: 1.85;
  color: var(--muted);
}

.lead { max-width: 620px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  background: var(--brand);
  color: white;
}
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-light { background: white; color: var(--brand-dark); }

.hero-stage {
  position: relative;
  min-height: 720px;
}

.hero-image {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(15,63,74,.08), rgba(15,63,74,.6)),
    url("https://images.unsplash.com/photo-1621905251918-48416bd8575a?auto=format&fit=crop&w=1400&q=80") center/cover;
  box-shadow: 0 36px 80px rgba(19,37,47,.16);
}

.floating-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(340px, calc(100% - 48px));
  padding: 24px;
  border-radius: 26px;
  background: rgba(15,63,74,.86);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(18px);
  color: white;
  box-shadow: 0 20px 48px rgba(0,0,0,.2);
}

.floating-card strong {
  display: block;
  font-size: 2rem;
  font-family: "League Spartan", sans-serif;
}

.floating-card p { color: rgba(255,255,255,.76); }

main section { padding: 84px 0; }
.section-intro { max-width: 760px; margin-bottom: 24px; }
h2 { font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: .9; }
.section-actions { margin-top: 28px; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.story-grid article,
.contact-card {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.story-tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .16em;
}

.story-grid h3,
.service-copy h3,
.contact-card h3 {
  font-size: 2rem;
}

.service-stack { display: grid; gap: 26px; }
.service-panel {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 20px;
  align-items: center;
}

.service-panel.reverse { grid-template-columns: .98fr 1.02fr; }
.service-panel.reverse .service-media { order: 2; }
.service-panel.reverse .service-copy { order: 1; }

.service-media {
  min-height: 430px;
  border-radius: 30px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 56px rgba(19,37,47,.14);
}

.service-one { background-image: url("https://images.unsplash.com/photo-1620626011761-996317b8d101?auto=format&fit=crop&w=1400&q=80"); }
.service-two { background-image: url("https://images.unsplash.com/photo-1585704032915-c3400ca199e7?auto=format&fit=crop&w=1400&q=80"); }
.service-three { background-image: url("https://images.unsplash.com/photo-1574359411659-15573b9f0af1?auto=format&fit=crop&w=1400&q=80"); }

.service-copy {
  padding: 20px 0;
}

.projects {
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
}

.project-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
}

.project-copy {
  position: sticky;
  top: 24px;
  align-self: start;
}

.project-rail {
  display: grid;
  gap: 18px;
}

.project-shot {
  min-height: 420px;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 56px rgba(19,37,47,.14);
  transition: transform .45s ease, box-shadow .45s ease;
}

.project-shot:hover,
.service-media:hover,
.stack-panel:hover,
.gallery-photo:hover,
.subpage-visual:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px rgba(19,37,47,.18);
}

.shot-a { background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1400&q=80"); }
.shot-b { background-image: url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1400&q=80"); }
.shot-c { background-image: url("https://images.unsplash.com/photo-1622126807280-9b5b32b28e77?auto=format&fit=crop&w=1400&q=80"); }

.quote-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--brand-dark), #174c57);
  color: white;
}
.quote-band .eyebrow, .quote-band h2 { color: white; }

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

.contact-card a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
}

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

.reveal.show {
  transform: translateY(0);
  opacity: 1;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 38px;
}

.subpage-layout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 24px;
  min-height: 68vh;
  align-items: center;
  padding: 18px 0 10px;
}

.subpage-copy {
  padding: 24px 0;
}

.subpage-visual,
.stack-panel,
.gallery-photo {
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 56px rgba(19,37,47,.14);
  transition: transform .45s ease, box-shadow .45s ease;
}

.subpage-visual {
  min-height: 560px;
}

.about-visual {
  background-image:
    linear-gradient(180deg, rgba(15,63,74,.12), rgba(15,63,74,.46)),
    url("https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1400&q=80");
}

.services-visual {
  background-image:
    linear-gradient(180deg, rgba(15,63,74,.08), rgba(15,63,74,.42)),
    url("https://images.unsplash.com/photo-1620626011761-996317b8d101?auto=format&fit=crop&w=1400&q=80");
}

.projects-visual {
  background-image:
    linear-gradient(180deg, rgba(15,63,74,.08), rgba(15,63,74,.48)),
    url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1400&q=80");
}

.contact-visual {
  background-image:
    linear-gradient(180deg, rgba(15,63,74,.08), rgba(15,63,74,.48)),
    url("https://images.unsplash.com/photo-1585704032915-c3400ca199e7?auto=format&fit=crop&w=1400&q=80");
}

.detail-grid,
.contact-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.detail-card,
.contact-info,
.contact-form-card,
.gallery-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(19,37,47,.08);
  backdrop-filter: blur(18px);
}

.split-feature {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  align-items: center;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.stack-panel {
  min-height: 240px;
}

.stack-a {
  background-image: url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1200&q=80");
}

.stack-b {
  background-image: url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1200&q=80");
}

.spaced {
  padding: 84px 0;
}

.dark-label {
  color: var(--brand-dark);
}

.project-gallery {
  display: grid;
  gap: 22px;
  padding: 84px 0;
}

.gallery-card {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 22px;
  align-items: center;
}

.gallery-photo {
  min-height: 320px;
}

.gallery-copy h3,
.contact-info h2 {
  font-size: 2rem;
}

.contact-detail-grid {
  grid-template-columns: 1fr .94fr;
  align-items: start;
  padding: 84px 0;
}

.contact-form-card {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 800;
}

.fake-input {
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(19,37,47,.08);
  color: var(--ink);
}

@media (max-width: 960px) {
  .hero, .story-grid, .service-panel, .project-layout, .contact, .subpage-layout, .split-feature, .gallery-card, .contact-detail-grid {
    grid-template-columns: 1fr;
  }
  .service-panel.reverse .service-media,
  .service-panel.reverse .service-copy {
    order: initial;
  }
  .topbar, .nav, .quote-band {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-copy {
    position: relative;
    top: 0;
  }
  .hero-stage {
    min-height: 500px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .subpage-visual {
    min-height: 380px;
  }
}
