/* =========================================================
   FLUID VEND — Header & Hero
   ========================================================= */

:root {
  --navy: #20365B;
  --navy-deep: #182A48;
  --cream: #F5F4F1;
  --cream-soft: #FAF9F6;
  --white: #FFFFFF;
  --ink: #2A3446;
  --grey: #4B566B;
  --grey-soft: #7A8294;
  --gold: #C1913F;
  --pink: #D9A29C;

  --header-h: 114px;
  --header-h-scrolled: 88px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);

  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --pad-x: clamp(22px, 4.2vw, 84px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }

h1, h2, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--navy); color: var(--cream); }

:focus-visible {
  outline: 2px solid rgba(32, 54, 91, 0.7);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 999px;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition:
    height 0.45s var(--ease-out),
    background-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    backdrop-filter 0.45s var(--ease-out);
  animation: headerIn 1s 0.1s var(--ease-out) both;
}

@keyframes headerIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  padding-inline: var(--pad-x);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 42px;
  width: auto;
  transition: height 0.45s var(--ease-out), opacity 0.3s ease;
}
.brand:hover img { opacity: 0.78; }

/* --- Nav --- */
.primary-nav {
  margin-left: auto;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.3vw, 40px);
}
.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(32, 54, 91, 0.72);
  transition: color 0.35s var(--ease-out);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease-soft);
}
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--navy); }
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.primary-nav a.is-active { color: var(--navy); }
.primary-nav a.is-active::after { transform: scaleX(1); }

/* --- Solutions dropdown --- */
.nav-has-dropdown { position: relative; }
.nav-caret {
  margin-left: 5px;
  transition: transform 0.35s var(--ease-out);
}
.nav-has-dropdown:hover .nav-caret,
.nav-has-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.primary-nav ul.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  z-index: 110;
  display: block;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 8px 0 6px;
  background: var(--white);
  border: 1px solid rgba(32, 54, 91, 0.1);
  border-top: 2px solid var(--navy);
  border-radius: 3px;
  box-shadow: 0 24px 50px -24px rgba(24, 42, 72, 0.35);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out),
    visibility 0s linear 0.3s;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out),
    visibility 0s;
}
.primary-nav .nav-dropdown li + li { border-top: 1px solid rgba(32, 54, 91, 0.07); }
.primary-nav .nav-dropdown a {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  color: var(--grey);
}
.primary-nav .nav-dropdown a::after { display: none; }
.primary-nav .nav-dropdown a:hover,
.primary-nav .nav-dropdown a:focus-visible {
  color: var(--navy);
  background: rgba(32, 54, 91, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

/* --- Scrolled state --- */
.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(32, 54, 91, 0.08),
    0 18px 40px -32px rgba(32, 54, 91, 0.55);
}
.site-header.is-scrolled .brand img { height: 34px; }

body.menu-open .site-header {
  height: var(--header-h);
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(32, 54, 91, 0.08);
}
body.menu-open::before {
  content: "";
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 89;
  background: rgba(24, 42, 72, 0.38);
  animation: menuBackdropIn 0.5s var(--ease-out) both;
}
@keyframes menuBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.4s var(--ease-out),
    color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(32, 54, 91, 0.65);
}
.btn--primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -18px rgba(32, 54, 91, 0.55);
}
.btn--primary:active { transform: translateY(0); }
.btn--primary:hover .btn-arrow { transform: translateX(4px); }

.btn--ghost {
  border: 1px solid rgba(32, 54, 91, 0.26);
  color: var(--navy);
  background: transparent;
}
.btn--ghost:hover {
  border-color: rgba(32, 54, 91, 0.55);
  background: rgba(32, 54, 91, 0.045);
  transform: translateY(-2px);
}

.btn-arrow {
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out);
}

.btn--sm {
  padding: 13px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Hamburger --- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  position: relative;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}
.nav-toggle:hover { background: rgba(32, 54, 91, 0.06); }
.nav-toggle-line {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.6px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.45s var(--ease-soft), top 0.45s var(--ease-soft);
}
.nav-toggle-line:nth-child(1) { top: 18px; }
.nav-toggle-line:nth-child(2) { top: 25px; }

.nav-toggle.is-open .nav-toggle-line:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-line:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* =========================================================
   MOBILE MENU
   ========================================================= */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 90;
  width: min(430px, 100vw);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(24px, 4vh, 36px) clamp(20px, 5vw, 32px) clamp(24px, 4vh, 40px);
  background: var(--cream-soft);
  border-radius: 18px 0 0 0;
  box-shadow: -24px 0 60px -30px rgba(24, 42, 72, 0.45);
  transform: translateX(102%);
  visibility: hidden;
  transition:
    transform 0.6s var(--ease-soft),
    visibility 0s linear 0.6s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.6s var(--ease-soft),
    visibility 0s linear 0s;
}

.mobile-menu-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.mobile-menu-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav > ul > li {
  background: var(--white);
  border: 1px solid rgba(32, 54, 91, 0.07);
  border-radius: 12px;
  box-shadow: 0 12px 26px -20px rgba(24, 42, 72, 0.45);
  overflow: hidden;
}
.mobile-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), color 0.3s ease;
}
.mobile-menu.is-open .mobile-nav a {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(0.12s + var(--i) * 0.05s), calc(0.12s + var(--i) * 0.05s), 0s;
}
.mobile-nav > ul > li > a::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: auto;
  margin-right: 4px;
  border-top: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav > ul > li:has(> a.is-active) { background: var(--navy); border-color: var(--navy); }
.mobile-nav > ul > li:has(> a.is-active) > a { color: var(--white); }
.mobile-nav > ul > li:has(> a.is-active) > a::after { border-color: var(--gold); }
.mobile-index {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(32, 54, 91, 0.06);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.mobile-nav > ul > li:has(> a.is-active) .mobile-index {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}
.mobile-nav ul.mobile-subnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 0;
  margin: 0 10px 10px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--cream);
}
.mobile-nav .mobile-subnav a {
  display: block;
  padding: 6px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey);
}
.mobile-nav .mobile-subnav a:hover { color: var(--gold); }
.mobile-menu.is-open .mobile-nav .mobile-subnav a { transition-delay: 0.3s; }

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(32, 54, 91, 0.12);
}
.mobile-menu-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 0.74rem;
  color: var(--grey);
}
.mobile-menu-contact a { color: rgba(32, 54, 91, 0.78); transition: color 0.3s var(--ease-out); }
.mobile-menu-contact a:hover { color: var(--gold); }
.mobile-menu-contact span { color: var(--gold); }
.mobile-menu-cta { align-self: stretch; justify-content: space-between; }
.mobile-menu-meta {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(32, 54, 91, 0.5);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  min-height: 100vh;
  min-height: 100svh;
}

/* --- Left / copy --- */
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    calc(var(--header-h) + clamp(20px, 5vh, 64px))
    var(--pad-x)
    clamp(44px, 6vh, 64px);
  background: var(--cream);
}

.hero-copy-inner {
  width: 100%;
  max-width: 36rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(32, 54, 91, 0.62);
  margin-bottom: clamp(22px, 3.4vh, 38px);
}
.eyebrow-rule {
  position: relative;
  display: inline-block;
  width: clamp(28px, 3vw, 44px);
  height: 1px;
  background: rgba(32, 54, 91, 0.4);
  flex-shrink: 0;
}
.eyebrow-rule::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.hero-title {
  font-size: clamp(2.9rem, 5.15vw, 5.5rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: clamp(24px, 4vh, 42px);
}
.hero-title .line { display: block; }
.hero-title .line-inner { display: inline-block; }

.hero-lede {
  max-width: 30ch;
  font-size: clamp(1rem, 1.18vw, 1.16rem);
  line-height: 1.68;
  font-weight: 400;
  color: var(--grey);
}

.statement-dot { color: var(--pink); }

.hero-statement {
  margin-top: clamp(20px, 3.4vh, 34px);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.15vw, 2rem);
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: 0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(30px, 4.6vh, 48px);
}

/* --- Bottom meta --- */
.hero-meta {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: clamp(24px, 4.4vh, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(32, 54, 91, 0.5);
}
.hero-meta--right { justify-content: flex-end; }

/* --- Right / showcase --- */
.hero-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    calc(var(--header-h) + clamp(16px, 4vh, 52px))
    clamp(22px, 3.4vw, 60px)
    clamp(44px, 6vh, 64px);
  background: var(--cream);
  overflow: hidden;
}

.showcase-inner {
  width: 100%;
}

.machine-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  column-gap: clamp(10px, 1.5vw, 28px);
}

.machine {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-inline: clamp(2px, 0.5vw, 8px);
}

.machine-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  min-height: clamp(232px, 37vh, 470px);
}

.machine-float {
  width: 100%;
  display: flex;
  justify-content: center;
  will-change: transform;
}

.machine img {
  width: 100%;
  max-width: clamp(126px, 13.4vw, 232px);
  height: auto;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 20px 24px rgba(32, 54, 91, 0.10));
  transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
  will-change: transform;
}
.machine:hover img,
.machine:focus-within img {
  transform: translateY(-8px) scale(1.035);
  filter: drop-shadow(0 30px 34px rgba(32, 54, 91, 0.14));
}

.machine-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: clamp(18px, 3.4vh, 38px);
  padding-top: 16px;
  border-top: 1px solid rgba(32, 54, 91, 0.13);
}

.machine-cat {
  font-size: clamp(0.95rem, 1.05vw, 1.14rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.machine-num {
  font-weight: 800;
  font-size: 0.82em;
  letter-spacing: 0.02em;
  color: var(--navy);
  transition: color 0.4s var(--ease-out);
}

.machine-model {
  font-size: clamp(0.85rem, 0.92vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  color: #5C6577;
  transition: color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.machine:hover .machine-model {
  color: var(--navy);
  transform: translateX(2px);
}
.machine:hover .machine-num { color: var(--gold); }

/* =========================================================
   ANIMATION INITIAL STATES (only when JS is available)
   ========================================================= */
html.js .anim { opacity: 0; }
html.js .line-inner { opacity: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* --- Narrow desktop --- */
@media (max-width: 1240px) {
  .primary-nav ul { gap: 20px; }
  .primary-nav a { font-size: 0.72rem; letter-spacing: 0.1em; }
  .hero { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
}

@media (max-width: 1080px) {
  .header-cta { display: none; }
}

/* --- Tablet / stacked --- */
@media (max-width: 980px) {
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    justify-content: flex-start;
    padding:
      calc(var(--header-h) + clamp(46px, 9vw, 90px))
      var(--pad-x)
      clamp(36px, 6vw, 56px);
  }
  .hero-copy-inner { max-width: 40rem; }

  .hero-title { font-size: clamp(3rem, 8.6vw, 4.6rem); }

  .hero-meta {
    position: static;
    margin-top: clamp(34px, 6vw, 54px);
    padding-top: 18px;
    border-top: 1px solid rgba(32, 54, 91, 0.1);
  }
  .hero-meta--right {
    border-top: 0;
    padding-top: 0;
    margin-top: clamp(26px, 4vw, 36px);
  }

  .hero-showcase {
    justify-content: flex-start;
    padding:
      clamp(34px, 6vw, 56px)
      clamp(22px, 5vw, 48px)
      clamp(48px, 8vw, 72px);
  }

  .machine-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: clamp(26px, 4.4vw, 44px);
  }
  .machine-media { min-height: clamp(188px, 27vw, 268px); }
  .machine img { max-width: clamp(126px, 24vw, 190px); }
  .machine-label { margin-top: 16px; }
}

/* --- Mobile --- */
@media (max-width: 620px) {
  :root {
    --header-h: 92px;
    --header-h-scrolled: 76px;
  }

  .brand img { height: 28px; }
  .site-header.is-scrolled .brand img { height: 24px; }

  .eyebrow { letter-spacing: 0.2em; font-size: 0.74rem; }

  .hero-title { font-size: clamp(2.6rem, 11.4vw, 3.4rem); }
  .hero-lede { font-size: 1rem; }
  .hero-statement { font-size: 1.5rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-actions .btn { width: 100%; }

  .machine-row { column-gap: 6px; }
  .machine { padding-inline: 6px; }
  .machine-media { min-height: 168px; }
  .machine img { max-width: clamp(108px, 30vw, 150px); }
  .machine-cat { font-size: 0.92rem; }
  .machine-model { font-size: 0.82rem; }
  .machine-num { font-size: 0.82em; }

  .hero-meta { font-size: 0.58rem; letter-spacing: 0.16em; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2.45rem; }
  .machine-media { min-height: 150px; }
}

/* --- Short viewports (laptops) --- */
@media (min-width: 981px) and (max-height: 760px) {
  .hero-title { font-size: clamp(2.7rem, 4.6vw, 4.4rem); }
  .eyebrow { margin-bottom: 18px; }
  .hero-title { margin-bottom: 22px; }
  .hero-statement { margin-top: 16px; }
  .hero-actions { margin-top: 26px; }
  .machine-media { min-height: 210px; }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .site-header { animation: none; }
  html.js .anim,
  html.js .line-inner { opacity: 1; }
  .mobile-nav a { opacity: 1; transform: none; }
}

/* --- Tighten the gap under the header on tall viewports --- */
@media (min-width: 981px) and (min-height: 880px) {
  .hero-copy-inner,
  .showcase-inner {
    transform: translateY(clamp(-72px, -5.4vh, -30px));
  }
}

/* =========================================================
   ABOUT SECTION (below hero)
   ========================================================= */
.about {
  scroll-margin-top: var(--header-h);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
  background: var(--cream);
  border-top: 1px solid rgba(32, 54, 91, 0.08);
  margin-top: calc(-1 * clamp(40px, 4.6vw, 72px));
  padding:
    clamp(36px, 3.8vw, 60px)
    clamp(24px, 4.6vw, 88px);
}

.about-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 660px;
  border-radius: 3px;
  background: #E9E5DE;
}
.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}

.about-content { width: 100%; }

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(32, 54, 91, 0.62);
  margin-bottom: clamp(20px, 2.6vw, 30px);
}

.about-title {
  font-size: clamp(2.3rem, 3.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: clamp(22px, 3vh, 32px);
}
.about-title-line { display: block; }

.about-copy p {
  font-size: clamp(0.98rem, 1.02vw, 1.07rem);
  line-height: 1.7;
  color: var(--grey);
}
.about-copy p + p { margin-top: clamp(14px, 2vh, 18px); }

/* --- Numbered feature list --- */
.about-features {
  margin-top: clamp(28px, 4vh, 44px);
}

.about-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(14px, 1.8vw, 24px);
  border-top: 1px solid rgba(32, 54, 91, 0.16);
  padding: 16px 0 17px;
}
.about-feature:first-child {
  border-top: 2px solid var(--navy);
  padding-top: 15px;
}
.about-feature:last-child { padding-bottom: 0; }

.about-num {
  font-size: clamp(1.15rem, 1.35vw, 1.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(32, 54, 91, 0.3);
  transition: color 0.4s var(--ease-out), -webkit-text-stroke-color 0.4s var(--ease-out);
}
@supports ((-webkit-text-stroke: 1px #000)) {
  .about-num {
    color: transparent;
    -webkit-text-stroke: 1px rgba(32, 54, 91, 0.42);
  }
  .about-feature:hover .about-num { -webkit-text-stroke-color: var(--navy); }
}

.about-feature-title {
  font-size: clamp(1rem, 1.05vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 6px;
}
.about-feature p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--grey-soft);
  margin: 0;
}

/* Scroll reveal */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
html.js .about-features .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .about-features .reveal:nth-child(3) { transition-delay: 0.16s; }

html.js .reveal-media img {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s ease, transform 1.35s var(--ease-out);
}
html.js .reveal-media.is-visible img {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 980px) {
  .about {
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vw, 44px);
    align-items: stretch;
  }
  .about-content { order: -1; max-width: 40rem; }
  .about-media {
    aspect-ratio: 16 / 10;
    max-height: none;
  }
  .about-title { font-size: clamp(2.2rem, 7vw, 3rem); }
}

@media (max-width: 620px) {
  .about {
    padding: 44px var(--pad-x) 56px;
  }
  .about-copy p { font-size: 0.98rem; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  html.js .reveal-media img,
  html.js .reveal-media.is-visible img {
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   SOLUTIONS SECTION (below about)
   ========================================================= */
.sol {
  scroll-margin-top: var(--header-h);
  position: relative;
  z-index: 1;
  background: var(--white);
  border-top: 1px solid rgba(32, 54, 91, 0.08);
  padding:
    clamp(64px, 7vw, 120px)
    clamp(24px, 4.6vw, 88px)
    clamp(72px, 8vw, 132px);
}

/* --- Head --- */
.sol-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
  margin-bottom: clamp(44px, 5vw, 78px);
}
.sol-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(32, 54, 91, 0.62);
  margin-bottom: clamp(18px, 2.4vw, 26px);
}
.sol-title {
  font-size: clamp(2.3rem, 4.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.sol-title-line { display: block; color: var(--navy); }

.sol-intro {
  max-width: 44ch;
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);
  line-height: 1.7;
  color: var(--grey);
  padding-bottom: clamp(4px, 1vw, 14px);
}

/* --- Card grid --- */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 26px);
}

.sol-card { display: block; min-width: 0; color: inherit; }

.sol-card-media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  background: var(--cream);
  padding: clamp(18px, 2vw, 32px) clamp(10px, 1.4vw, 22px) 0;
}
.sol-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 18px 18px rgba(24, 42, 72, 0.18));
  transition: transform 0.6s var(--ease-out);
}
.sol-card:hover .sol-card-media img { transform: translateY(-8px) scale(1.03); }

.sol-card-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: clamp(18px, 2vw, 26px);
  padding-top: clamp(14px, 1.6vw, 20px);
  border-top: 2px solid var(--navy);
}
.sol-card-num {
  flex: none;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.sol-card-title {
  font-size: clamp(0.98rem, 1.12vw, 1.16rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.sol-card-sub {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--grey-soft);
  margin-top: 6px;
}
.sol-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(32, 54, 91, 0.26);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
  transition:
    background-color 0.4s var(--ease-out),
    color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
}
.sol-card:hover .sol-card-cta {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.sol-card-cta .btn-arrow { width: 11px; height: 11px; }
.sol-card:hover .sol-card-cta .btn-arrow { transform: translateX(3px); }

/* --- Reveal stagger --- */
.sol-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.sol-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.sol-grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.sol-grid .reveal:nth-child(5) { transition-delay: 0.28s; }

@media (max-width: 1180px) {
  .sol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .sol-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .sol-grid { grid-template-columns: 1fr; }
  .sol-card-media { aspect-ratio: 5 / 4; }
}


/* =========================================================
   SPACES SECTION (PDF p.14 — solutions for every space)
   ========================================================= */
.spaces {
  scroll-margin-top: var(--header-h);
  position: relative;
  z-index: 1;
  background: var(--cream);
  border-top: 1px solid rgba(32, 54, 91, 0.08);
  padding:
    clamp(64px, 7vw, 120px)
    clamp(24px, 4.6vw, 88px)
    clamp(72px, 8vw, 132px);
}

.spaces-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
  margin-bottom: clamp(44px, 5vw, 78px);
}
.spaces-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(32, 54, 91, 0.62);
  margin-bottom: clamp(18px, 2.4vw, 26px);
}
.spaces-title {
  font-size: clamp(2.3rem, 4.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.spaces-intro {
  max-width: 44ch;
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);
  line-height: 1.7;
  color: var(--grey);
  padding-bottom: clamp(4px, 1vw, 14px);
}

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 40px);
}
.space-card { min-width: 0; }
.space-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 12 / 11;
  border-radius: 2px;
  background: var(--white);
}
.space-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.space-card:hover .space-card-media img { transform: scale(1.04); }

.space-card-info {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: clamp(18px, 2vw, 26px);
  padding-top: clamp(14px, 1.6vw, 20px);
  border-top: 1px solid rgba(32, 54, 91, 0.2);
}
.space-card-num {
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.space-card-title {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.space-card-desc {
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.6;
  color: var(--grey);
  margin-top: 8px;
  max-width: 40ch;
}

.spaces-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.spaces-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

@media (max-width: 980px) {
  .spaces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .space-card:last-child { grid-column: 1 / -1; }
  .space-card:last-child .space-card-media { aspect-ratio: 21 / 9; }
}
@media (max-width: 780px) {
  .spaces-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}
@media (max-width: 640px) {
  .spaces-grid { grid-template-columns: 1fr; }
  .space-card:last-child { grid-column: auto; }
  .space-card:last-child .space-card-media { aspect-ratio: 12 / 11; }
}


/* =========================================================
   SERVICE SECTION (PDF p.15 — service & partnership)
   ========================================================= */
.service {
  scroll-margin-top: var(--header-h);
  position: relative;
  z-index: 1;
  background: var(--white);
  border-top: 1px solid rgba(32, 54, 91, 0.08);
  padding:
    clamp(64px, 7vw, 120px)
    clamp(24px, 4.6vw, 88px)
    clamp(72px, 8vw, 132px);
}

.service-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  margin-bottom: clamp(52px, 6vw, 96px);
}
.service-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(32, 54, 91, 0.62);
  margin-bottom: clamp(18px, 2.4vw, 26px);
}
.service-title {
  font-size: clamp(2.3rem, 3.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.service-intro {
  max-width: 48ch;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);
  line-height: 1.7;
  color: var(--grey);
}
.service-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  border-radius: 2px;
  background: var(--cream);
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Process timeline --- */
.service-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 40px);
}
.service-steps::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--navy);
}
.service-step {
  position: relative;
  min-width: 0;
  padding-top: 30px;
}
.service-step-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--navy);
}
.service-step-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grey-soft);
  margin-bottom: 6px;
}
.service-step-title {
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.service-step-desc {
  margin-top: 8px;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.6;
  color: var(--grey);
  max-width: 34ch;
}

/* --- Ways to work --- */
.service-ways {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: clamp(18px, 2.4vw, 40px);
  margin-top: clamp(48px, 6vw, 88px);
}
.service-ways-label {
  padding-top: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}
.service-ways-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 40px);
}
.service-way {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 54, 91, 0.2);
}
.service-way-title {
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.service-way-desc {
  margin-top: 8px;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.6;
  color: var(--grey);
}

.service-steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.service-steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.service-steps .reveal:nth-child(4) { transition-delay: 0.24s; }
.service-ways-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.service-ways-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

@media (max-width: 980px) {
  .service-head { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .service-media { aspect-ratio: 16 / 9; }
  .service-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .service-steps::before { display: none; }
  .service-step { padding-top: 0; }
  .service-step-mark { display: none; }
  .service-ways { grid-template-columns: 1fr; gap: 24px; }
  .service-ways-label { padding-top: 0; }
}
@media (max-width: 640px) {
  .service-steps { grid-template-columns: 1fr; gap: 26px; padding-left: 26px; }
  .service-steps::before {
    display: block;
    top: 5px;
    bottom: 5px;
    left: 0;
    right: auto;
    width: 1px;
    height: auto;
  }
  .service-step-mark { display: block; top: 5px; left: -26px; }
  .service-ways-grid { grid-template-columns: 1fr; gap: 22px; }
}
