/* ==========================================================================
   Emerald & Oak - General styles
   Layout grid comes from Bootstrap 5; this file holds the design system,
   section styles and animations. Sizes are scaled from the 1920px Figma frame.
   ========================================================================== */

/* Heading font = "Season Mix" (Displaay), same as Figma.
   Files: assets/fonts/season-mix-font/ (TRIAL version).
   The trial licence forbids putting the font files on a public server, so before
   going live replace these files with the licensed webfont (.woff2) files. */
@font-face {
  font-family: "Season Mix";
  src: url("../fonts/season-mix-font/SeasonMix-TRIAL-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* footer wordmark: high-contrast serif (closest match to the outlined Figma letters) */
@font-face {
  font-family: "Season Serif";
  src: url("../fonts/season-mix-font/SeasonSerif-TRIAL-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colors */
  --c-black: #000000;
  --c-dark: #1e1e1e;
  --c-dark-2: #191919;
  --c-text: #333333;
  --c-white: #ffffff;
  --c-light: #f4f4f4;
  --c-marble: #c4c4c4;

  /* fonts */
  --f-heading: "Season Mix", "Times New Roman", serif;
  --f-body: "Creato Display", "Helvetica Neue", Arial, sans-serif;
  --f-footer: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* type scale (min, fluid, 1920 value) */
  --fs-xxl: clamp(34px, 3.125vw, 60px);
  --fs-xl: clamp(32px, 2.88vw, 55.3px);
  --fs-service: clamp(28px, 2.6vw, 50px);
  --fs-eyebrow: clamp(14px, 1.04vw, 20px);
  --fs-body: clamp(15px, 0.9vw, 17px);
  --fs-body-lg: clamp(16px, 1.04vw, 20px);
  --fs-lead: clamp(17px, 1.25vw, 24px);

  /* layout */
  --container: 1584px;
  --gutter: 24px;
  --header-h: 90px;

  /* motion: Figma "Slow" easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 1.2s;
  --dur-reveal: 1.3s; /* scroll animations after the hero */
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.53;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden; /* fallback */
  overflow-x: clip;   /* clip keeps position: sticky working */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; transition: color .3s ease, opacity .3s ease; }
p { margin-bottom: 1.1em; }

.container-eo {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--f-heading);
  font-size: var(--fs-eyebrow);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--c-black);
  margin-bottom: clamp(16px, 1.6vw, 30px);
}

.heading-xl,
.heading-xxl {
  font-family: var(--f-heading);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--c-black);
  margin-bottom: 0;
}
.heading-xl  { font-size: var(--fs-xl);  line-height: 1.175; }
.heading-xxl { font-size: var(--fs-xxl); line-height: 1.167; color: var(--c-text); }

.text-lg {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  letter-spacing: .02em;
}

/* ---------- buttons ---------- */
.btn-eo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  font-family: var(--f-heading);
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.btn-eo .btn-plus {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 24px;
  line-height: .6;
  transition: transform .4s var(--ease);
}
.btn-eo:hover .btn-plus { transform: rotate(90deg); }

.btn-eo-dark { background: var(--c-text); color: var(--c-white); }
.btn-eo-dark:hover { background: var(--c-black); color: var(--c-white); }

.btn-eo-light { background: var(--c-white); color: var(--c-text); padding: 0 24px; }
.btn-eo-light i { font-size: 13px; }
.btn-eo-light:hover { background: var(--c-text); color: var(--c-white); }

.btn-eo-outline {
  height: 54px;
  padding: 0 22px;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--c-black);
  border-color: var(--c-black);
}
.btn-eo-outline:hover { background: var(--c-black); color: var(--c-white); }

.btn-eo-glass {
  height: 54px;
  padding: 0 14px;
  font-size: 15.4px;
  text-transform: uppercase;
  color: var(--c-white);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-eo-glass:hover { background: var(--c-white); color: var(--c-black); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  transition: background-color .4s ease, backdrop-filter .4s ease, transform var(--dur) var(--ease);
}
/* after scrolling: light frosted glass (no black), thin bottom line */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .1);
}
.site-header.is-scrolled.on-light {
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .06);
}

.site-header .navbar { padding: 0; min-height: var(--header-h); }
.header-inner {
  padding-inline: clamp(16px, 4.65vw, 89px);
  min-height: var(--header-h);
}
.navbar-brand { position: relative; padding: 0; margin: 0; }
.navbar-brand img { width: clamp(100px, 6.9vw, 133px); height: auto; transition: opacity .35s ease; }

/* logos: white at the top; colour logo (dark or light text) after scrolling */
.navbar-brand .logo-scrolled {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
.site-header.is-scrolled .logo-top { opacity: 0; }
.site-header.is-scrolled .logo-on-dark { opacity: 1; }
.site-header.is-scrolled.on-light:not(.menu-open) .logo-on-dark { opacity: 0; }
.site-header.is-scrolled.on-light:not(.menu-open) .logo-on-light { opacity: 1; }

/* over light sections: dark menu, toggler, language and button */
.main-menu .nav-link,
.lang-btn,
.toggler-line { transition: color .35s ease, background-color .35s ease, border-color .35s ease; }
.site-header.is-scrolled.on-light:not(.menu-open) .main-menu .nav-link,
.site-header.is-scrolled.on-light:not(.menu-open) .lang-btn { color: var(--c-dark); }
.site-header.is-scrolled.on-light:not(.menu-open) .toggler-line { background: var(--c-dark); }
.site-header.is-scrolled.on-light:not(.menu-open) .lang-switch { border-left-color: rgba(0, 0, 0, .12); }
.site-header.is-scrolled.on-light:not(.menu-open) .btn-eo-light { background: var(--c-text); color: var(--c-white); }
.site-header.is-scrolled.on-light:not(.menu-open) .btn-eo-light:hover { background: var(--c-black); }

.main-menu .nav-link {
  font-family: var(--f-body);
  font-size: 16px;
  letter-spacing: .02em;
  color: var(--c-white);
  padding: 8px 0;
  position: relative;
}
.main-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.main-menu .nav-link:hover::after,
.main-menu .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.main-menu .nav-link:hover,
.main-menu .nav-link.active { color: var(--c-white); }

.header-actions { display: flex; align-items: center; gap: 24px; }

.lang-switch { padding-left: 36px; border-left: 1px solid rgba(255, 255, 255, .1); height: 46px; display: flex; align-items: center; }
.lang-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--f-heading);
  font-size: 14px;
  color: var(--c-white);
}
.lang-btn.dropdown-toggle::after { border-top-width: .3em; margin-left: 6px; vertical-align: .18em; }
.lang-switch .dropdown-menu { min-width: 80px; border-radius: 0; font-size: 14px; }
.lang-switch .dropdown-item.active,
.lang-switch .dropdown-item:active { background: var(--c-text); }

/* toggler */
.navbar-toggler {
  border: 0;
  padding: 10px 0;
  width: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: none !important;
}
.toggler-line { display: block; height: 1.5px; background: var(--c-white); transition: transform .35s ease, opacity .35s ease; }
.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 992px) {
  .main-menu {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: clamp(28px, 2.7vw, 52px);
  }
  #mainNav { justify-content: flex-end; }
}

@media (max-width: 991.98px) {
  .site-header.menu-open,
  .site-header.is-scrolled.menu-open { background: rgba(17, 17, 17, .96); }
  /* logo row keeps the full header height, so the logo stays centred
     (and doesn't stick to the top) when the menu opens */
  .header-inner { align-content: flex-start; }
  .navbar-brand,
  .navbar-toggler { height: var(--header-h); display: flex; align-items: center; }
  .navbar-toggler { flex-direction: column; justify-content: center; align-items: stretch; padding-block: 0; }
  .navbar-brand img { width: 92px; }
  #mainNav { padding: 8px 0 28px; }
  .main-menu .nav-link { font-size: 18px; padding: 12px 0; display: inline-block; }
  .header-actions { flex-wrap: wrap; margin-top: 16px; gap: 16px; }
  .lang-switch { padding-left: 0; border-left: 0; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
/* Figma: hero is "sticky"; the next sections scroll over it */
.hero-stack { position: relative; }

.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #fffaee;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* darken top for the header */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 22%);
  pointer-events: none;
}
/* dark overlay behind the hero text (Figma tagline gradient) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
              rgba(25, 25, 25, .3) 0%,
              rgba(25, 25, 25, .7) 35%,
              rgba(25, 25, 25, .9) 70%,
              rgba(25, 25, 25, 1) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding-bottom: clamp(56px, 6.3vw, 121px);
}
.hero-content .eyebrow { margin-bottom: clamp(18px, 1.6vw, 30px); }

/* extra scroll distance while the hero is pinned (overlay + text steps) */
.hero-scroll-space { height: 100vh; height: 100svh; pointer-events: none; }

/* "Scroll" hint at the bottom of the banner */
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 2.6vw, 40px);
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--c-white);
  font-family: var(--f-heading);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: opacity .4s ease;
}
.hero-scroll-line {
  position: relative;
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--c-white);
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint {
  from { transform: translateY(-100%); }
  to   { transform: translateY(250%); }
}
.js .hero-scroll-hint { opacity: 0; transition: opacity .6s ease; }
.js.is-loaded .hero-scroll-hint { opacity: 1; transition-delay: 1.4s; } /* after the image zoom */
.js.is-loaded .hero.is-scrolled-hint .hero-scroll-hint { opacity: 0; transition-delay: 0s; }

/* letter-by-letter text: words are masks, letters rise inside them */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.split-char { display: inline-block; }

/* portrait screens (mobile / tablet): keep the building logo centred */
@media (max-width: 991.98px) and (orientation: portrait) {
  .hero-media img { object-position: 86% center; }
}
@media (max-width: 575.98px) and (orientation: portrait) {
  .hero-media img { object-position: 80% center; }
}

/* sections that scroll over the pinned hero */
.hero-stack > .about { position: relative; z-index: 2; }

/* ==========================================================================
   WHO WE ARE
   ========================================================================== */
.about {
  position: relative;
  /* no bottom padding: the marquee strip sits flush at the section bottom */
  padding: clamp(72px, 6.6vw, 127px) 0 0;
  background: var(--c-marble) url("../images/marble-bg.webp") center / cover no-repeat;
}
.about-title { max-width: 868px; }
.about-body { margin-top: clamp(24px, 1.7vw, 33px); }
.about-small img { width: 100%; aspect-ratio: 392 / 514; object-fit: cover; }
.about-tall img { width: 100%; aspect-ratio: 523 / 728; object-fit: cover; }
.about-body p { max-width: 587px; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
/* marquee sits inside "Who We Are", at the bottom, as a frosted strip over the marble */
.marquee {
    margin-top: clamp(56px, 6.2vw, 120px); /* space between content and strip */
    background: transparent;
    overflow: hidden;
    padding: clamp(2px, 1vw, 10px) 0;
    border-block: 1px solid rgba(0, 0, 0, .08);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(10px);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite; /* longer track, same speed as before */
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee { --fs-marquee: clamp(16px, 1.4vw, 27px); } /* marquee text size */
.marquee span,
.marquee i {
  font-family: var(--f-heading);
  font-style: normal;
  font-size: var(--fs-marquee);
  line-height: 1.175;
  text-transform: uppercase;
  color: var(--c-black);
  white-space: nowrap;
}
.marquee i {
  font-size: calc(var(--fs-marquee) * .7);
  padding-inline: clamp(16px, 1.8vw, 34px);
  transform: translateY(.15em);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   FOUNDER
   ========================================================================== */
.founder {
  padding: clamp(72px, 6vw, 115px) 0;
  background: var(--c-light) url("../images/founder-bg.jpg") center / cover no-repeat;
  overflow: hidden;
}
.founder-photo {
  max-width: 550px;
  overflow: hidden;
  margin-left: clamp(0px, 1.46vw, 28px);
}
.founder-photo img { width: 100%; aspect-ratio: 550 / 714; object-fit: cover; }
.founder-content { max-width: 727px; margin-left: auto; margin-right: clamp(0px, 4vw, 77px); }
.founder-content .heading-xl { margin-bottom: clamp(20px, 1.6vw, 30px); }
.founder-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px clamp(40px, 12.4vw, 240px);
  margin-top: 10px;
}
.founder-signature { width: clamp(100px, 6.7vw, 129px); height: auto; }

/* "About the founder" block */
@media (min-width: 992px) {
  .founder-title .line-inner { white-space: nowrap; } /* one line on desktop */
}
.founder-title {
  font-family: var(--f-heading);
  font-weight: 400;
  font-size: clamp(38px, 3.65vw, 70px); /* uppercase: sized to fit one line */
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase; /* like the other headings */
  color: var(--c-dark);
  margin-bottom: clamp(10px, .8vw, 16px);
}
.founder-subtitle {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(19px, 1.25vw, 24px);
  line-height: 1.25;
  color: var(--c-dark);
  margin-bottom: clamp(24px, 2vw, 38px);
}
.founder-content [data-split-lines] p {
  font-size: clamp(15px, .95vw, 18px);
  line-height: 1.45;
  color: var(--c-dark);
  margin-bottom: 1.1em; /* blank line between paragraphs (client's text) */
}
.founder-sign { margin-top: clamp(20px, 1.6vw, 30px); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  position: relative;
  color: var(--c-white);
  background: var(--c-black);
  padding: clamp(80px, 5.2vw, 100px) 0 clamp(64px, 4.2vw, 81px);
  min-height: clamp(640px, 50.3vw, 966px);
  overflow: hidden;
}
.services-bg { position: absolute; inset: 0; overflow: hidden; }
.services-bg-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.25s var(--ease);
  z-index: 0;
}
/* .services-bg-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(0, 0, 0, .8) 0%,
              rgba(0, 0, 0, .5) 45%,
              rgba(0, 0, 0, .85) 100%);
} */
.services-bg-item.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.services-bg-item.is-leaving { clip-path: inset(0 0 0 0); z-index: 1; transition: none; }
.services-bg-item.from-left { clip-path: inset(0 100% 0 0); }
.services-bg-item.from-left.is-active { clip-path: inset(0 0 0 0); }

.services-inner { position: relative; z-index: 3; }

.services-slider {
  padding-top: clamp(0px, 13vw, 250px);
  padding-left: clamp(0px, 2.6vw, 51px);
}

/* stacked title / description: all items share one grid cell */
.svc-stack { display: grid; overflow: hidden; }
.svc-stack > * {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(100%);
  transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.svc-stack > .is-active { opacity: 1; transform: translateY(0); }
.svc-stack > .is-prev   { opacity: 0; transform: translateY(-100%); }
.slide-back .svc-stack > *:not(.is-active):not(.is-prev) { transform: translateY(-100%); }
.slide-back .svc-stack > .is-prev { transform: translateY(100%); }
/* the stack is as tall as the longest title; keep 1-line titles
   sitting right above the description (empty space goes on top) */
.svc-titles > * { align-self: end; }

.svc-title {
  font-family: var(--f-heading);
  font-weight: 400;
  font-size: var(--fs-service);
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}
.svc-descs { margin-top: clamp(14px, 1.25vw, 24px); max-width: 513px; }
.svc-desc {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 0;
}

.svc-thumbs {
  margin-top: clamp(24px, 1.56vw, 30px);
  /* bleed to the right edge of the viewport */
  margin-right: calc((100vw - min(100vw, calc(var(--container) + var(--gutter) * 2))) / -2 - var(--gutter));
  overflow: hidden;
}
.svc-thumbs-track {
  --thumb-w: clamp(220px, 17.2vw, 330px);
  --thumb-gap: 20px;
  display: flex;
  gap: var(--thumb-gap);
  transition: transform 1s var(--ease);
  will-change: transform;
}
.svc-thumbs-track.no-anim { transition: none; }
.svc-thumb {
  flex: 0 0 var(--thumb-w);
  aspect-ratio: 330 / 233;
  padding: 0;
  border: 0;
  background: #d9d9d9;
  overflow: hidden;
  cursor: pointer;
}
.svc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.svc-thumb:hover img { transform: scale(1.06); }

.svc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  max-width: 741px;
}
.svc-arrows { display: flex; gap: 14px; }
.svc-arrow {
  width: clamp(54px, 3.55vw, 68px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: .7px solid #1d1d1d;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.svc-prev { background: rgba(255, 255, 255, .1); color: var(--c-white); backdrop-filter: blur(17px); -webkit-backdrop-filter: blur(17px); }
.svc-next { background: var(--c-white); color: var(--c-text); }
.svc-arrow:hover { background: var(--c-white); color: var(--c-black); transform: scale(1.05); }

.svc-counter {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--f-heading);
  font-size: clamp(22px, 1.56vw, 30px);
  line-height: 1;
}
.svc-line {
  position: relative;
  width: clamp(90px, 8.4vw, 161px);
  height: 1px;
  background: rgba(255, 255, 255, .35);
}
.svc-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--c-white);
  transition: width 1s var(--ease);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { background: var(--c-white); overflow: hidden; }
.cta-content {
  width: 100%;
  padding: clamp(64px, 5vw, 96px) var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 - 2px));
}
.cta .heading-xxl { margin-bottom: clamp(20px, 1.6vw, 30px); }
.cta-lead {
  font-size: var(--fs-lead);
  line-height: 1.25;
  color: var(--c-text);
  max-width: 644px;
  margin-bottom: clamp(24px, 2vw, 40px);
}
.cta-media { position: relative; min-height: 320px; }
.cta-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cta-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 6s linear;
}
.cta-slides img.is-active { opacity: 1; transform: scale(1); }

@media (min-width: 992px) {
  .cta .row { min-height: clamp(560px, 37.9vw, 727px); }
  .cta-text { width: 44.7%; }
  .cta-media { width: 55.3%; }
}
@media (max-width: 991.98px) {
  .cta-media { aspect-ratio: 1062 / 727; min-height: 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-dark);
  color: var(--c-white);
  padding-top: clamp(64px, 5.2vw, 100px);
  overflow: hidden;
}
.footer-title {
  font-family: var(--f-footer);
  font-weight: 600;
  font-size: clamp(18px, 1.04vw, 20px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.footer-links,
.footer-social { list-style: none; padding: 0; margin: 0; }
.footer-links a {
  font-family: var(--f-heading);
  font-size: 16px;
  line-height: 2.25;
  color: var(--c-white);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-heading);
  font-size: clamp(17px, 1.04vw, 20px);
  line-height: 2;
  color: var(--c-white);
}
.footer-social i { font-size: .9em; width: 1em; }
.footer-email { font-family: var(--f-heading); font-size: clamp(17px, 1.04vw, 20px); line-height: 1.5; }
.footer-links a:hover,
.footer-social a:hover,
.footer-email:hover { opacity: .6; color: var(--c-white); }

.footer-logo { text-align: center; }
.footer-logo img { width: clamp(200px, 13.1vw, 252px); margin-inline: auto; }

@media (min-width: 992px) {
  .footer-social-col { padding-left: clamp(0px, 4vw, 70px); }
  .footer-contact-col { display: flex; flex-direction: column; align-items: start; }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 5.6vw, 107px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--f-footer);
  font-size: 14px;
  line-height: 1.43;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal span { opacity: .8; }
.footer-legal a:hover { opacity: .6; }

.footer-wordmark {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  margin-top: clamp(24px, 2.5vw, 48px);
  /* padding-bottom: clamp(16px, 3.4vw, 66px); */
  font-family: "Season Serif", var(--f-heading);
  font-weight: 500; /* a real font file exists for this weight, so no fake bold */
  font-synthesis: none;
  font-size: clamp(56px, 13.2vw, 254px);
  line-height: .84;
  /* "Emerald & Oak" as written - no uppercase */
  /* outlined (stroked) letters, no fill */
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .1); /* same as the line above the copyright */
  text-rendering: geometricPrecision;
  user-select: none;
}
.footer-wordmark span { display: inline-block; }
.footer-wordmark .sp { width: .12em; }

/* ==========================================================================
   SCROLL / LOAD ANIMATIONS
   Figma uses Smart Animate between two variants; on the web the end state
   plays when each element scrolls into view (.is-in, set by main.js).
   ========================================================================== */

/* Every animated ELEMENT gets .is-in from main.js when it reaches the screen
   (not the whole section), so on mobile each item animates when you reach it.
   Items that appear together get a small stagger via --rd (set by main.js). */

/* masked line slide-up */
.line-mask { display: block; overflow: hidden; }
.line-mask > .line-inner { display: inline-block; }
.js [data-reveal] .line-mask > .line-inner {
  transform: translateY(105%);
  transition: transform var(--dur-reveal) var(--ease) var(--rd, 0s);
}
.js [data-reveal] .line-mask.is-in > .line-inner { transform: translateY(0); }

/* fade up */
.js [data-reveal] .fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-reveal) var(--ease) var(--rd, 0s), transform var(--dur-reveal) var(--ease) var(--rd, 0s);
}
.js [data-reveal] .fade-up.is-in { opacity: 1; transform: none; }

/* image curtain + zoom */
.img-reveal { overflow: hidden; }
.js [data-reveal] .img-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.55s var(--ease) var(--rd, 0s);
}
.js [data-reveal] .img-reveal img { transform: scale(1.15); transition: transform 2s var(--ease) var(--rd, 0s); }
.js [data-reveal] .img-reveal.is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal] .img-reveal.is-in img { transform: scale(1); }

/* image slides in from the left / right: frame wipes open, photo glides in */
.img-slide { overflow: hidden; }
.js [data-reveal] .img-slide {
  transition: clip-path 1.55s var(--ease) var(--rd, 0s);
}
.js [data-reveal] .img-slide img {
  transition: transform 1.85s var(--ease) var(--rd, 0s);
}
.js [data-reveal] .img-slide.from-left { clip-path: inset(0 100% 0 0); }
.js [data-reveal] .img-slide.from-left img { transform: translateX(-25%) scale(1.1); }
.js [data-reveal] .img-slide.from-right { clip-path: inset(0 0 0 100%); }
.js [data-reveal] .img-slide.from-right img { transform: translateX(25%) scale(1.1); }
.js [data-reveal] .img-slide.is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal] .img-slide.is-in img { transform: none; }

/* services: background zoom (whole section), then each part when it is reached */
.js .services .services-bg { transform: scale(1.07); transition: transform 2s var(--ease); }
.js .services.is-inview .services-bg { transform: none; }
.js .services .svc-titles,
.js .services .svc-descs,
.js .services .svc-controls {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.4s var(--ease) var(--rd, 0s), transform 1.4s var(--ease) var(--rd, 0s);
}
.js .services .svc-thumbs {
  opacity: 0;
  transform: translateX(30%);
  transition: opacity 1.6s var(--ease) var(--rd, 0s), transform 1.85s var(--ease) var(--rd, 0s);
}
.js .services .svc-titles.is-in,
.js .services .svc-descs.is-in,
.js .services .svc-controls.is-in,
.js .services .svc-thumbs.is-in { opacity: 1; transform: none; }

/* cta image: soft fade-in on first appear (no wipe/slide - it fought with the
   slideshow's own zoom and looked jerky). The image slideshow is unchanged. */
.js .cta .cta-media { opacity: 0; transition: opacity 1.3s ease var(--rd, 0s); }
.js .cta .cta-media.is-in { opacity: 1; }

/* footer wordmark letters rise one by one */
.js .site-footer .footer-wordmark span:not(.sp) {
  transform: translateY(110%);
  transition: transform 1.5s var(--ease) calc(var(--rd, 0s) + var(--i) * .07s);
}
.js .site-footer .footer-wordmark.is-in span { transform: none; }

/* hero intro (page load) */
.js .site-header { transform: translateY(-100%); }
.js .hero-media img { transform: scale(1.18); transition: transform 2.1s var(--ease); }
.js.is-loaded .site-header { transform: none; }
.js.is-loaded .hero-media img { transform: scale(1.03); }

/* hero scroll steps (set by main.js):
   1. scrolling darkens the overlay: opacity follows --hero-overlay (0 → 1)
   2. further scroll adds .text-in and the text rises letter by letter
   scrolling back to the top reverses both */
.js .hero::before { opacity: var(--hero-overlay, 0); transition: opacity .15s linear; }
.js .hero-content .split-char {
  transform: translateY(110%);
  transition: transform .45s var(--ease); /* hiding: quick, no stagger */
}
.js .hero.text-in .hero-content .split-char {
  transform: none;
  transition: transform .9s var(--ease) calc(var(--ci) * .028s);
}

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

/* ==========================================================================
   RESPONSIVE TWEAKS
   ========================================================================== */
@media (max-width: 1199.98px) {
  .founder-actions { gap: 24px 60px; }
}

@media (max-width: 991.98px) {
  :root { --header-h: 76px; }
  .about-title { margin-bottom: 8px; }
  .about-tall { max-width: 523px; }
  .founder-photo { margin-inline: auto; }
  .founder-content { margin-inline: 0; }
  .services-slider { padding-left: 0; padding-top: 0; }
  .services-inner > .row { --bs-gutter-y: 32px; } /* gap between button and slider */
  .svc-controls { max-width: none; }
}

@media (max-width: 767.98px) {
  .about-small { max-width: 392px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 575.98px) {
  :root { --gutter: 16px; }
  .hero { min-height: 480px; }
  .btn-eo { height: 48px; padding: 0 20px; }
  .btn-eo-outline,
  .btn-eo-glass { white-space: normal; text-align: left; }
  .svc-thumbs-track { --thumb-w: 200px; --thumb-gap: 12px; }
  .svc-controls { flex-wrap: wrap; }
  .footer-legal { gap: 14px; }
}
