/* ================= NAVBAR: transparent idle → centered bubble on scroll ================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 6%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: padding .5s var(--ease-primary);
  z-index: 1000;
}

.nav.scrolled {
  padding: 10px 6%;
}

.nav-inner {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background: transparent;
  border-radius: 9999px;
  transition:
    max-width .55s var(--ease-primary),
    padding .5s var(--ease-primary),
    background .35s ease,
    backdrop-filter .35s ease,
    -webkit-backdrop-filter .35s ease,
    box-shadow .5s ease,
    border .4s ease;
}

/* Scrolled: liquid glass (frosted + saturate + rim light) */
.nav.scrolled .nav-inner {
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 36px;
  background: transparent;
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.nav.scrolled .nav-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 0;
}

/* When scroll stopped: same bubble, subtle blur (no glass) */
.nav.scrolled.scroll-idle .nav-inner {
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  box-shadow: none;
}

.nav.scrolled.scroll-idle .nav-inner::after {
  display: none;
}

.nav.scrolled .nav-inner > .logo,
.nav.scrolled .nav-inner > .nav-links,
.nav.scrolled .nav-inner > .nav-toggle {
  position: relative;
  z-index: 1;
}

.logo a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 58px;
  transition: transform .6s var(--transition);
}

.logo:hover img {
  transform: scale(1.06);
}

.nav-links {
  display: flex;
  gap: 52px;
  align-items: center;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color .4s var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .5s var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
  text-shadow: 0 0 4px rgba(200, 166, 70, 0.16);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Current page / in-page section: aria-current only — barely brighter than body text */
.nav-links a.nav-link--current {
  /* Match default nav text (old premium version had no special “current” styling) */
  color: var(--text);
}

.nav-links a.nav-link--current::after {
  width: 0;
  opacity: 0;
  height: 0;
}

.nav-links a.nav-link--current:hover::after {
  width: 100%;
  opacity: 1;
  height: 2px;
  bottom: -6px;
  background: var(--gold);
}

.nav-links a.nav-link--current:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 0;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-toggle-icon path {
  stroke-width: 1.9;
}

/* ================= LAPTOP/DESKTOP ONLY ================= */
@media (min-width: 993px) {
  .nav {
    padding: 12px 6%;
    align-items: center;
  }

  .nav.scrolled {
    padding: 8px 6%;
  }

  .nav-inner {
    min-height: auto;
    max-height: 64px;
    align-items: center;
  }

  .nav.scrolled .nav-inner {
    max-width: 820px;
    padding: 8px 26px;
    max-height: 56px;
  }

  .nav-links .dropdown-logo {
    display: none !important;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo img {
    height: 42px;
    max-height: 42px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
  }

  .nav-links {
    gap: 32px;
    flex-shrink: 0;
  }

  .nav-links a {
    font-size: 14px;
    white-space: nowrap;
  }
}

/* ================= HERO ARROWS CINEMATIC MINIMAL ================= */

.arrow {
  position: absolute;
  top: 58%;
  transform: translateY(-50%) scale(0.9);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  transition: 
    opacity .5s ease,
    transform .5s var(--ease-primary),
    border-color .4s ease,
    box-shadow .4s ease;
}

/* Arrow Shape */
.arrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255,255,255,0.8);
  border-right: 2px solid rgba(255,255,255,0.8);
}

.arrow.left::before {
  transform: rotate(-135deg);
}

.arrow.right::before {
  transform: rotate(45deg);
}

/* Position */
.arrow.left { left: 30px; }
.arrow.right { right: 30px; }

/* Show arrows only when hovering hero */
.hero:hover .arrow {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Hover glow */
.arrow:hover {
  border-color: rgba(200,166,70,0.9);
  box-shadow: 0 0 25px rgba(200,166,70,0.5);
}

/* ================= HERO ================= */

.hero {
  position: relative;
  /* Reserve full viewport early (LCP + CLS): vh fallback, then dynamic viewport */
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 1;
  /* Prevent scroll flash / thin bright seam when scrolling back to hero */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.35) 100%
  );
  z-index: 2;
}

/* ================= HERO TIMER BAR FIXED VIEWPORT ================= */

.progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #c8a646, #e8d38a);
  box-shadow: 0 0 12px rgba(200,166,70,.8);
  z-index: 50;
  transition: width linear;
}

.slide-indicator {
  position: absolute;
  right: 60px;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 3px;
  color: rgba(255,255,255,.7);
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.slide-indicator .current {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 4px;
  transition: opacity .6s ease, transform .6s ease;
}

.slide-indicator .line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
  margin: 10px 0;
}

.slide-indicator .total {
  font-size: 12px;
  opacity: .5;
}

.slide-indicator .current.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.slide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2%;
  right: -2%;
  width: auto;
  height: 100%;
  opacity: 0;
  transform: scale(1.08) translateZ(0);
  filter: none;
  transition:
    opacity 1.6s ease-in-out,
    transform 2.4s cubic-bezier(.23,1,.32,1);
  display: flex;
  align-items: center;
  z-index: 2;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  filter: contrast(1) brightness(1) saturate(1);
  transition:
    opacity 1.6s ease-in-out,
    transform 2.4s cubic-bezier(.23,1,.32,1),
    filter 1.8s ease;
  z-index: 3;
}

/* ================= HERO PHOTO LAYER (<img> for LCP) ================= */

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.08);
  object-fit: cover;
  object-position: center;
  transition: transform 10s ease, filter 0.5s ease;
  will-change: auto;
}

.hero .slide[data-hero="3"] .hero-bg-img {
  object-position: center 35%;
}

/* Progressive: blur until main decode (.loaded from main.js) */
.hero .slide[data-hero] .hero-bg-img {
  filter: blur(8px);
}

@media (max-width: 992px) {
  .hero .slide[data-hero] .hero-bg-img {
    filter: blur(4px);
  }
}

.hero .slide.loaded .hero-bg-img {
  filter: none;
}

.slide.active .hero-bg-img {
  will-change: transform;
  transform: translate(-50%, -50%) scale(1.02);
}
/* Camera lens: subtle vignette + light falloff (above <img>, below text) */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  /* Slightly gentler vignette so hero type matches service-card contrast */
  background:
    radial-gradient(circle at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.065) 100%),
    linear-gradient(to bottom, rgba(10,18,34,0.025), rgba(10,18,34,0.12));
  mix-blend-mode: multiply;
}

/* ================= iOS / Safari: hero photo framing (desktop) ================= */
@media (min-width: 993px) {
@supports (-webkit-touch-callout: none) {
  .hero .hero-bg-img {
    width: 118%;
    height: 118%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
  }

  .hero .slide.active .hero-bg-img {
    transform: translate(-50%, -50%) scale(1.02);
  }
}
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 680px;
  margin-top: 80px;
  padding: 0 8%;
}

.hero-content h1,
.hero-content h2 {
  font-size: clamp(38px,4.5vw,64px);
  line-height: 1.1;
  margin-bottom: 14px;
  font-weight: 700;
  color: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.012em;
  text-wrap: balance;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.42));
}

.hero-content h1 span,
.hero-content h2 span {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.98),
    rgba(255,255,255,0.85)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h1 span:last-child,
.hero-content h2 span:last-child {
  display: block;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 12px;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: initial;
  color: rgba(255, 248, 220, 0.94);
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(200, 166, 70, 0.22);
}

.hero-content .hero-trust-line {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.45vw, 17px);
  font-weight: 500;
  line-height: 1.52;
  letter-spacing: 0.036em;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
  margin-top: -2px;
  margin-bottom: 14px;
  max-width: 36em;
}

.hero-content p {
  margin-bottom: 20px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

/* ================= HERO TEXT STAGGER ANIMATION ================= */

.hero-content h1,
.hero-content h2,
.hero-content p,
.hero-buttons {
  opacity: 0;
  transform: translateY(40px);
}

/* Headline */
.slide.active .hero-content h1,
.slide.active .hero-content h2 {
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.3s;
}

/* Paragraph */
.slide.active .hero-content .hero-trust-line {
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.48s;
}

.slide.active .hero-content p:not(.hero-trust-line) {
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.66s;
}

/* Buttons */
.slide.active .hero-buttons {
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.9s;
}

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

/* Desktop hero: left-aligned column with comfortable inset (≤992px unchanged) */
@media (min-width: 993px) {
  .slide {
    justify-content: flex-start;
    align-items: center;
    padding-left: clamp(56px, 7.5vw, 132px);
    padding-right: clamp(40px, 5vw, 100px);
  }

  .hero-content {
    margin-top: 80px;
    padding-left: 0;
    padding-right: 0;
    max-width: min(700px, 100%);
    width: 100%;
    flex: 0 1 auto;
  }
}

/* ================= SECTIONS ================= */

/* No top-of-section gold bar — underline accents live on headings only (.section-title::after, etc.) */
#main-content > section:not(#hero)::before,
#main-content > section:not(#hero).reveal-init::before,
#main-content > section:not(#hero).reveal-active::before {
  content: none;
  display: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  background: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Gold accent under the page title (replaces the section-top line here) */
.inquiry-page-section .about-left h1 {
  margin-bottom: 28px;
  position: relative;
}

.inquiry-page-section .about-left h1::after {
  content: "";
  width: 72px;
  height: 2px;
  background: var(--gold-soft);
  display: block;
  /* Match left-aligned title; auto margins centered the bar in the whole column */
  margin: 14px 0 0;
  border-radius: 2px;
}

/* Inquiry: clear fixed nav without pushing content too far down */
.about.inquiry-page-section {
  padding-top: clamp(100px, 11vw, 148px);
  padding-bottom: clamp(80px, 9vw, 112px);
}

.about.inquiry-page-section .about-inner {
  padding-top: 56px;
  padding-bottom: 56px;
  gap: clamp(40px, 4.5vw, 60px);
}

/* Center inline-block section titles */
.container:has(> .section-title) {
  text-align: center;
}

body.privacy-page .why .container {
  text-align: left;
}

/* ================= CINEMATIC ABOUT ================= */

.about {
  padding: var(--section-pad) 6%;
  background: linear-gradient(
    to bottom,
    rgba(17,26,50,.35),
    rgba(10,18,34,.8)
  );
  border-radius: 28px;
  transition: opacity 1s var(--transition), transform 1s var(--transition);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
}

/* Staggered cinematic reveal for about content */
.about .about-left,
.about .about-right {
  transition: opacity 0.85s var(--transition), transform 0.85s var(--transition);
}

.about.reveal-init .about-left,
.about.reveal-init .about-right {
  opacity: 0;
  transform: translateY(14px);
}

.about.reveal-active .about-left {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.about.reveal-active .about-right {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.28s;
}

.about-left h2 {
  font-size: 46px;
  margin-bottom: 28px;
  position: relative;
}

.about-left h2::after {
  content: "";
  width: 72px;
  height: 2px;
  background: var(--gold-soft);
  display: block;
  margin: 14px auto 0;
  border-radius: 2px;
}

.about-left p {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 20px;
  opacity: .9;
}

/* Right Side Cards */

.about-right {
  display: grid;
  gap: 20px;
}

.about-card {
  background: rgba(255,255,255,.03);
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.05);
  transition: all .6s var(--transition);
  backdrop-filter: blur(6px);
}

.about-card:hover {
  transform: translateX(10px);
  background: rgba(200,166,70,.08);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

/* Page intro (kitchen / oil-gas): same section language as .about — integrated, not a hero band */
.about.page-intro-section {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(
    to bottom,
    rgba(17, 26, 50, 0.35),
    rgba(10, 18, 34, 0.8)
  );
}

/* One continuous surface: intro + journey share the same page canvas */
body:is(.kitchen-page, .oil-gas-page) .about.page-intro-section {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Kitchen & oil-gas: horizontal inset on container */
body:is(.kitchen-page, .oil-gas-page) .about.page-intro-section .container {
  padding-left: 24px;
  padding-right: 24px;
}

/* When timeline follows intro, minimal gap so they read as one flow */
body:is(.kitchen-page, .oil-gas-page) .page-intro-section + #kitchen-timeline {
  padding-top: 8px !important;
}

/* Scroll cue below intro — compact, clearly legible */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
  padding-bottom: 4px;
  gap: 0;
  transition: opacity 0.4s ease;
}

.scroll-indicator.scroll-indicator--faded {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator-mouse {
  width: 14px;
  height: 22px;
  border: 1px solid rgba(236, 240, 247, 0.26);
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
}

.scroll-indicator-dot {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 2px;
  margin-left: -1px;
  background: rgba(238, 242, 248, 0.62);
  border-radius: 50%;
  animation: scroll-indicator-dot 2s ease-in-out infinite;
}

.scroll-indicator-label {
  margin-top: 5px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 236, 244, 0.5);
}

.scroll-indicator-label::after {
  content: " \2193";
  letter-spacing: 0;
  font-weight: 500;
  opacity: 0.58;
}

@keyframes scroll-indicator-dot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(7px);
    opacity: 0.28;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.page-intro-section .page-intro-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 40px;
  text-align: center;
}

body:is(.kitchen-page, .oil-gas-page) .page-intro-section .page-intro-inner {
  padding: 44px 0 20px;
}

.page-intro-section .page-intro-heading {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 28px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.page-intro-section .page-intro-heading::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  background: var(--gold-soft);
  margin: 14px auto 0;
  border-radius: 2px;
}

.page-intro-section .page-intro-subheading {
  font-size: clamp(15px, 1.8vw, 17px);
  color: rgba(255, 255, 255, 0.77);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 20px;
  font-weight: 500;
  text-decoration: none;
}

.page-intro-section .page-intro-heading + .page-intro-subheading {
  margin-top: -8px;
}

/* Desktop: tighter intro rhythm + first-section divider (mobile unchanged in responsive.css) */
@media (min-width: 993px) {
  .page-intro-section .page-intro-heading {
    margin-bottom: 18px;
  }

  .page-intro-section .page-intro-heading::after {
    margin: 10px auto 0;
  }

  .page-intro-section .page-intro-heading + .page-intro-subheading {
    margin-top: -6px;
  }

  .page-intro-section .page-intro-subheading {
    margin-bottom: 16px;
  }
}

.page-intro-section .page-intro-body {
  text-align: left;
}

body:is(.kitchen-page, .oil-gas-page) .page-intro-section .page-intro-body {
  text-align: center;
}

body:is(.kitchen-page, .oil-gas-page) .page-intro-section .page-intro-body p {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

/* Same vocabulary as .kitchen-timeline-label — quiet kicker, not a second headline */
body:is(.kitchen-page, .oil-gas-page) .page-intro-section .page-intro-subheading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1.22vw, 13px);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(222, 228, 240, 0.58);
  line-height: 1.65;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

body:is(.kitchen-page, .oil-gas-page) .page-intro-section .page-intro-heading + .page-intro-subheading {
  margin-top: -4px;
}

@media (min-width: 993px) {
  body:is(.kitchen-page, .oil-gas-page) .page-intro-section .page-intro-heading + .page-intro-subheading {
    margin-top: -2px;
  }

  body:is(.kitchen-page, .oil-gas-page) .page-intro-section .page-intro-subheading {
    margin-bottom: 16px;
  }
}

/* Match heading accent line — not default link purple/blue */
.page-intro-section .page-intro-body a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.page-intro-section .page-intro-body a:hover {
  color: var(--gold);
  border-bottom-color: rgba(200, 166, 70, 0.75);
}

.page-intro-section .page-intro-body a:visited {
  color: var(--gold-soft);
}

.page-intro-section .page-intro-body p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.94);
  margin-bottom: 1em;
}

.page-intro-section .page-intro-body p:last-child {
  margin-bottom: 0;
}

.divisions {
  padding: var(--section-pad) 6%;
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 44px;
}

/* Division cards: cinematic stagger on scroll */
.divisions.reveal-init .division-card {
  opacity: 0;
  transform: translateY(14px);
}

.divisions .division-card {
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft),
              box-shadow 0.28s var(--ease-soft), border-color 0.28s var(--ease-soft);
}

.divisions.reveal-active .division-grid .division-card:nth-child(1) { transition-delay: 0.08s; }
.divisions.reveal-active .division-grid .division-card:nth-child(2) { transition-delay: 0.16s; }

.divisions.reveal-active .division-card {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  display: inline-block;
  text-align: center;
  font-size: clamp(36px, 4vw, 46px);
  margin-bottom: 52px;
  position: relative;
  letter-spacing: 0.03em;
  line-height: 1.18;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  transition: opacity 0.95s var(--ease-soft), transform 0.95s var(--ease-soft), filter 0.9s ease;
}

section.reveal-init .section-title {
  opacity: 0;
  transform: translateY(14px);
}

section.reveal-active .section-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 10px auto 0;
  background: var(--gold-soft);
  border-radius: 2px;
}

/* ================= OUR APPROACH ================= */

.approach {
  padding: var(--section-pad) 6%;
  background: #0a1222;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.approach-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  transition: transform var(--motion-fast) var(--ease-luxury),
    background var(--motion-fast) var(--ease-luxury),
    box-shadow var(--motion-fast) var(--ease-luxury),
    border-color var(--motion-fast) var(--ease-luxury),
    opacity var(--motion-slow) var(--ease-luxury);
}

.approach.reveal-init .approach-item {
  opacity: 0;
  transform: translateY(14px);
}

.approach.reveal-active .approach-grid .approach-item:nth-child(1) {
  transition-delay: 0.08s;
}
.approach.reveal-active .approach-grid .approach-item:nth-child(2) {
  transition-delay: 0.16s;
}
.approach.reveal-active .approach-grid .approach-item:nth-child(3) {
  transition-delay: 0.24s;
}
.approach.reveal-active .approach-grid .approach-item:nth-child(4) {
  transition-delay: 0.32s;
}

.approach.reveal-active .approach-item {
  opacity: 1;
  transform: translateY(0);
}

.approach-item:hover {
  transform: translateY(-5px);
  background: rgba(200, 166, 70, 0.06);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.approach-item h3 {
  font-size: clamp(17px, 1.35vw, 20px);
  margin-bottom: 10px;
  line-height: 1.3;
}

.approach-item p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(230, 234, 248, 0.88);
  margin: 0;
}

/* ================= EXECUTION FRAMEWORK ================= */

.execution {
  padding: var(--section-pad) 6%;
  background: #0e162b;
}

.execution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.execution-item {
  background: rgba(255,255,255,.03);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  transition: transform var(--motion-fast) var(--ease-luxury),
              background var(--motion-fast) var(--ease-luxury),
              box-shadow var(--motion-fast) var(--ease-luxury),
              border-color var(--motion-fast) var(--ease-luxury),
              opacity var(--motion-slow) var(--ease-luxury);
}

.execution.reveal-init .execution-item {
  opacity: 0;
  transform: translateY(14px);
}

.execution.reveal-active .execution-grid .execution-item:nth-child(1) { transition-delay: 0.08s; }
.execution.reveal-active .execution-grid .execution-item:nth-child(2) { transition-delay: 0.16s; }
.execution.reveal-active .execution-grid .execution-item:nth-child(3) { transition-delay: 0.24s; }
.execution.reveal-active .execution-grid .execution-item:nth-child(4) { transition-delay: 0.32s; }

.execution.reveal-active .execution-item {
  opacity: 1;
  transform: translateY(0);
}

.execution-item:hover {
  transform: translateY(-5px);
  background: rgba(200,166,70,.06);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

/* ================= WHY SECTION ================= */

.why {
  padding: var(--section-pad) 6%;
  background: #0a1222;
}

/* Home pacing: subtle rhythm breaks between stacked sections */
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .execution {
  padding-top: calc(var(--section-pad) + 16px);
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .why {
  padding-top: calc(var(--section-pad) - 8px);
}

/* ================= HOMEPAGE PREMIUM BACKGROUND HARMONY ================= */
/* Keep this strictly homepage-scoped so inner pages preserve their style. */
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .about,
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .divisions,
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .approach,
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .execution,
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .why,
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .cta {
  position: relative;
  isolation: isolate;
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .about {
  border-radius: 0;
  background: #0a1222;
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .divisions {
  background: #0a1222;
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .approach {
  background: #0a1222;
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .execution {
  background: #0a1222;
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .why {
  background: #0a1222;
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .cta {
  background: #0a1222;
}

/* Homepage: subtle rhythm between Approach / Execution / Why (same layout, lighter repetition) */
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .approach {
  box-shadow: inset 0 1px 0 rgba(200, 166, 70, 0.055);
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .approach-item {
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(255, 255, 255, 0.072);
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .execution {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .execution-item {
  background: rgba(255, 255, 255, 0.034);
  border-color: rgba(200, 166, 70, 0.08);
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .why {
  box-shadow: inset 0 1px 0 rgba(200, 166, 70, 0.045);
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .why-item {
  background: rgba(255, 255, 255, 0.026);
  border-color: rgba(255, 255, 255, 0.075);
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .cta h2 {
  text-shadow: 0 2px 22px rgba(200, 166, 70, 0.17);
}

body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .divisions::before,
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .approach::before,
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .execution::before,
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .why::before,
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .cta::before {
  content: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-item {
  background: rgba(255,255,255,.03);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transition: transform var(--motion-fast) var(--ease-luxury),
              background var(--motion-fast) var(--ease-luxury),
              box-shadow var(--motion-fast) var(--ease-luxury),
              border-color var(--motion-fast) var(--ease-luxury),
              opacity var(--motion-slow) var(--ease-luxury);
}

.why.reveal-init .why-item {
  opacity: 0;
  transform: translateY(14px);
}

.why.reveal-active .why-grid .why-item:nth-child(1) { transition-delay: 0.08s; }
.why.reveal-active .why-grid .why-item:nth-child(2) { transition-delay: 0.16s; }
.why.reveal-active .why-grid .why-item:nth-child(3) { transition-delay: 0.24s; }
.why.reveal-active .why-grid .why-item:nth-child(4) { transition-delay: 0.32s; }

.why.reveal-active .why-item {
  opacity: 1;
  transform: translateY(0);
}

.why-item:hover {
  transform: translateY(-5px);
  background: rgba(200,166,70,.06);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

/* Contact page: space below fixed nav + room before footer (contact.html) */
.why.contact-page-section {
  padding-top: clamp(100px, 11vw, 148px);
  padding-bottom: clamp(88px, 10vw, 124px);
}

.why.contact-page-section .contact-intro {
  margin-bottom: 44px;
}

.why.contact-page-section .contact-grid {
  margin-bottom: 48px;
}

.why.contact-page-section .contact-cta {
  margin-top: 8px;
}

/* ================= CTA (top-tier cinematic) ================= */

@keyframes ctaAmbientShift {
  0%, 100% { opacity: 0.7; transform: scale(1) translate(0, 0); }
  33%      { opacity: 1;   transform: scale(1.08) translate(2%, -1%); }
  66%      { opacity: 0.85; transform: scale(1.04) translate(-1%, 1%); }
}

@keyframes ctaSweep {
  0%   { transform: translateX(-100%) skewX(-12deg); opacity: 0; }
  50%  { opacity: 0.06; }
  100% { transform: translateX(100%) skewX(-12deg); opacity: 0; }
}

.cta {
  position: relative;
  background: linear-gradient(180deg, #0a1222 0%, #0e162b 35%, #0c1428 100%);
  text-align: center;
  padding: var(--section-pad) 6%;
  overflow: hidden;
}

.kitchen-timeline {
  padding: var(--section-pad) 6%;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    ellipse 90% 70% at 50% 50%,
    rgba(200, 166, 70, 0.08) 0%,
    rgba(200, 166, 70, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: ctaAmbientShift 12s ease-in-out infinite;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 60%;
  left: 20%;
  top: 0;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  pointer-events: none;
  animation: ctaSweep 8s ease-in-out infinite;
}

/* Performance: idle CTA pseudo animations when section is off-screen (see scroll.js .cta-in-view) */
.cta:not(.cta-in-view)::before,
.cta:not(.cta-in-view)::after {
  animation-play-state: paused;
}

.cta .container {
  position: relative;
  z-index: 1;
  transition: opacity 1s var(--transition), transform 1s var(--transition);
}

.cta.reveal-init .container {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
}

.cta.reveal-active .container {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.12s;
}

.cta h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 0;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(200, 166, 70, 0.22);
  transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
  transition-delay: 0.25s;
}

.cta.reveal-init h2 {
  opacity: 0;
  transform: translateY(24px);
  animation: none;
}

.cta.reveal-active h2 {
  opacity: 1;
  transform: translateY(0);
}

.cta h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 20px auto 24px;
  background: var(--gold-soft);
  border-radius: 2px;
  transform-origin: center;
}

.cta.reveal-init h2::after {
  animation: none;
  opacity: 0;
}

.cta.reveal-active h2::after {
  opacity: 1;
  transition: opacity 0.65s ease 0.2s;
}

.cta-intro {
  margin: 0 auto 28px;
  max-width: 38ch;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.65;
  color: rgba(230, 234, 248, 0.88);
  font-weight: 400;
}

.cta-reassurance {
  margin: -8px auto 22px;
  max-width: 40ch;
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(210, 216, 232, 0.7);
  letter-spacing: 0.02em;
}

.cta.reveal-init .cta-intro {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.75s var(--ease-soft), transform 0.75s var(--ease-soft);
  transition-delay: 0.32s;
}

.cta.reveal-active .cta-intro {
  opacity: 1;
  transform: translateY(0);
}

.cta.reveal-init .cta-reassurance {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
  transition-delay: 0.38s;
}

.cta.reveal-active .cta-reassurance {
  opacity: 1;
  transform: translateY(0);
}

.cta .btn {
  transition: opacity 0.55s var(--ease-soft), transform 0.55s var(--ease-soft),
    background-color 0.26s var(--ease-soft),
    border-color 0.26s var(--ease-soft),
    box-shadow 0.26s var(--ease-soft),
    filter 0.2s ease;
  transition-delay: 0.28s;
}

.cta.reveal-init .btn {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: none;
}

.cta.reveal-active .btn {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ================= FOOTER (default style) ================= */

.footer {
  background: var(--navy);
  padding: 54px 0 36px;
  font-size: 15px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Homepage: remove CTA-to-footer divider line */
body:not(.kitchen-page):not(.oil-gas-page):not(.contact-page):not(.inquiry-page):not(.privacy-page) .footer {
  border-top: none;
}

body:is(.kitchen-page, .oil-gas-page) .footer {
  background: transparent;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-left {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.footer-tagline {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.46);
  margin-bottom: 12px;
  line-height: 1.45;
}

.footer-left .footer-sep {
  margin: 0 0.35em;
  opacity: 0.45;
}

.footer-left .footer-privacy-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-left .footer-privacy-link:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}

.footer-right {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  letter-spacing: 0.05em;
}

.hero,
.divisions,
.execution,
.why,
.cta {
  contain: layout paint style;
}

/* ================= PRIVACY PAGE ================= */
body.privacy-page .why {
  padding: clamp(88px, 9vw, 118px) 6% clamp(66px, 7vw, 92px);
  background: #0a1222;
}

body.privacy-page .why .container {
  max-width: 860px;
}

body.privacy-page .section-title {
  font-size: clamp(30px, 3.2vw, 40px);
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

body.privacy-page .section-title::after {
  margin-top: 10px;
}

body.privacy-page .contact-intro {
  max-width: 64ch;
  margin: 0 auto 24px;
  text-align: left;
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.9);
}

body.privacy-page .privacy-last-updated {
  font-size: 12px;
  margin: -2px 0 18px;
  color: rgba(209, 213, 219, 0.72);
}

body.privacy-page .why h2 {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.3;
  margin: 32px 0 12px;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  box-shadow: none;
}

body.privacy-page .why p {
  max-width: 70ch;
  margin: 0 auto 16px;
  font-size: clamp(15px, 1.08vw, 16px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* Contact Information block only: mild gold-tinted links (not full CTA gold) */
body.privacy-page .why h2:last-of-type + p a {
  color: rgba(198, 176, 118, 0.95);
  text-decoration: none;
}

body.privacy-page .why h2:last-of-type + p a:hover {
  color: rgba(212, 190, 132, 0.98);
  text-decoration: underline;
}

/* Desktop/laptop: avoid overly shrunken centered policy text blocks */
@media (min-width: 992px) {
  body.privacy-page .why .container {
    max-width: 980px;
  }

  body.privacy-page .section-title {
    text-align: left;
    margin-bottom: 14px;
  }

  body.privacy-page .section-title::after {
    margin-left: 0;
    margin-right: 0;
  }

  body.privacy-page .privacy-last-updated,
  body.privacy-page .contact-intro,
  body.privacy-page .why h2,
  body.privacy-page .why p {
    margin-left: 0;
    margin-right: 0;
  }

  body.privacy-page .contact-intro {
    max-width: 72ch;
  }

  body.privacy-page .why p {
    max-width: 74ch;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #c8a646, #e8d38a);
  z-index: 2000;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: width;
}