/* ============================================================
   Meridian Concepts — brand tokens (taken from meridianconcepts.net.au + logo)
   ============================================================ */
:root {
  --olive: #6D8031;        /* site accent (buttons, active nav) */
  --olive-deep: #5F711C;   /* logo gradient start */
  --olive-light: #9BB765;  /* logo gradient end */
  --charcoal: #333334;     /* site body text */
  --charcoal-2: #4E4E4E;
  --night: #1F2122;        /* dark sections — deepened charcoal */
  --night-2: #2A2C2E;
  --paper: #FFFFFF;
  --mist: #F2F2F2;         /* site light grey */
  --line: #DADADA;
  --muted: #8A8A8C;

  --font: "Lato", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2,.7,.1,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; font-family: var(--font); color: var(--charcoal); background: var(--paper);
  -webkit-font-smoothing: antialiased; line-height: 1.55; font-size: 16px; overflow-x: clip;
}
.strip__item .tag { white-space: nowrap; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.accent { color: var(--olive); }
.dark .accent { color: var(--olive-light); }

.eyebrow, .label {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--muted); margin: 0 0 18px;
}
.dark { background: var(--night); color: #fff; }
.dark .eyebrow, .dark .label { color: rgba(255,255,255,.5); }
.section-title {
  font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.025em; font-weight: 700; margin: 0;
}

/* ---------- media w/ consistent placeholder ---------- */
.media { position: relative; margin: 0; overflow: hidden; background: var(--night-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-ph {
  background:
    linear-gradient(135deg, rgba(109,128,49,.28), rgba(31,33,34,0) 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
    var(--night-2);
}
.media.is-ph::after {
  content: attr(data-label); position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); color: #fff; transition: background .4s, color .4s, padding .4s;
}
.nav__logo img { height: 44px; width: auto; }
.nav .logo-dark { display: none; }
.nav__links { display: flex; gap: 36px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--olive-light); transition: width .35s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__menu { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; display: none; }
.nav__menu span { margin-left: 6px; font-size: 16px; display: inline-block; transition: transform .3s; }
.nav.is-solid { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); color: var(--charcoal); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .logo-light { display: none; }
.nav.is-solid .logo-dark { display: block; }
.nav.is-solid .nav__links a::after { background: var(--olive); }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--night); color: #fff; padding: 120px var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(40px, 11vw, 72px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.menu nav a:hover { color: var(--olive-light); }
.menu__meta { display: flex; flex-direction: column; gap: 6px; color: rgba(255,255,255,.6); font-size: 14px; }

/* ============ HERO ============ */
.hero { position: relative; height: 100vh; min-height: 640px; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { transform: scale(1.06); animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,23,.45) 0%, rgba(20,22,23,.05) 35%, rgba(20,22,23,.15) 60%, rgba(20,22,23,.75) 100%); }
.hero__inner { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; padding: 0 var(--pad) 40px; }
.hero__title { grid-column: 1; align-self: center; margin: 0; font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.045em; font-size: clamp(64px, 13vw, 210px); }
.hero__title span { display: block; }
.hero__title--sub { font-weight: 300; letter-spacing: -.03em; font-size: .52em; text-transform: none; margin-top: .25em; }
.hero__title em { font-style: normal; color: var(--olive-light); }
.hero__meta { grid-column: 2; align-self: center; display: flex; gap: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.hero__meta .slash { color: var(--olive-light); }
.hero__lede { grid-column: 1; grid-row: 2; max-width: 380px; margin: 0; font-size: 15px; color: rgba(255,255,255,.85); }
.hero__cta { grid-column: 2; grid-row: 2; align-self: end; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 4px; }
.hero__cta:hover { border-color: var(--olive-light); color: var(--olive-light); }

/* ============ INTRO ============ */
.intro { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 10vw, 140px); }
.intro__statement { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.02em; font-weight: 400; max-width: 1100px; margin: 0 0 clamp(56px, 8vw, 110px); }
.intro__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { font-size: clamp(36px, 4vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--olive); }
.stat span { font-size: 13px; color: var(--muted); max-width: 200px; }

/* ============ PROJECTS ============ */
.projects { padding: clamp(80px, 10vw, 140px) 0; }
.projects__head { margin-bottom: 56px; }
.strip { display: flex; gap: 10px; padding: 0 var(--pad); height: clamp(320px, 44vw, 560px); align-items: center; }
.strip__item { position: relative; overflow: hidden; flex: 1 1 0; height: 62%; min-width: 0; cursor: pointer; transition: flex-grow .8s var(--ease), height .8s var(--ease), filter .6s; filter: grayscale(.6) brightness(.7); outline: none; }
.strip__item .media { position: absolute; inset: 0; }
.strip__item:hover, .strip__item:focus-visible { filter: grayscale(.2) brightness(.9); }
.strip__item.is-active { flex-grow: 4.2; height: 100%; filter: none; }
.strip__item .tag { position: absolute; left: 12px; top: 12px; z-index: 2; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 5px 8px; background: rgba(31,33,34,.7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.strip__item.is-active .tag { opacity: 1; }
.strip__item .tag.is-current { background: var(--olive); }
.strip__item .num { position: absolute; right: 10px; bottom: 10px; z-index: 2; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.7); }
.strip__item.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: var(--olive-light); }

.projects__detail { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; margin-top: 48px; }
.pd__status { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--olive-light); margin: 0 0 10px; }
.pd__name { font-size: clamp(28px, 3vw, 40px); margin: 0; letter-spacing: -.02em; line-height: 1.05; }
.pd__addr { margin: 6px 0 16px; color: rgba(255,255,255,.55); font-size: 14px; }
.pd__desc { margin: 0; color: rgba(255,255,255,.85); max-width: 460px; }
.pd__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; align-content: start; }
.pd__facts dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 700; margin-bottom: 4px; }
.pd__facts dd { margin: 0; font-size: 18px; font-weight: 700; }
.pd__facts .val dd { color: var(--olive-light); font-size: 28px; letter-spacing: -.02em; }
.pd__scope { list-style: none; margin: 0; padding: 0; font-size: 14px; color: rgba(255,255,255,.8); }
.pd__scope li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; gap: 12px; }
.pd__scope li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; flex: none; background: var(--olive-light); }
.projects__detail > * { transition: opacity .35s, transform .35s; }
.projects__detail.swap > * { opacity: 0; transform: translateY(10px); }

/* ============ SERVICES (accordion) ============ */
.services { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 22px 0; font-size: clamp(28px, 4.2vw, 60px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; transition: color .3s; }
.acc__head:hover { color: var(--olive); }
.acc__head i { position: relative; width: 22px; height: 22px; flex: none; margin-left: 20px; }
.acc__head i::before, .acc__head i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.acc__head i::after { transform: rotate(90deg); }
.acc__item.is-open .acc__head i::after { transform: rotate(0); }
.acc__item.is-open .acc__head { color: var(--olive); }
.acc__body { display: grid; grid-template-columns: 1fr 240px; gap: 40px; max-height: 0; overflow: hidden; transition: max-height .7s var(--ease), padding .7s var(--ease); }
.acc__item.is-open .acc__body { max-height: 420px; padding-bottom: 30px; }
.acc__text p { margin: 0 0 18px; max-width: 560px; color: var(--charcoal-2); }
.acc__tag { font-size: 13px; color: var(--charcoal) !important; }
.acc__tag span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); font-weight: 700; margin-right: 10px; }
.acc__img { aspect-ratio: 4/5; width: 240px; justify-self: end; }

/* ============ ABOUT ============ */
.about { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: clamp(20px, 4vw, 64px); height: clamp(720px, 100vh, 980px); overflow: hidden; padding: 0 var(--pad); }
.about__col { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.about__track { display: flex; flex-direction: column; gap: 14px; animation: colUp 40s linear infinite; }
.about__track[data-dir="down"] { animation-name: colDown; }
.about__track .media { aspect-ratio: 4/5; flex: none; }
@keyframes colUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes colDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.about__copy { align-self: center; padding: 80px 0; }
.about__lead { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.22; letter-spacing: -.015em; font-weight: 700; margin: 0 0 26px; }
.about__lead--soft { font-weight: 400; color: rgba(255,255,255,.7); }
.about__body { color: rgba(255,255,255,.6); max-width: 560px; margin: 0 0 40px; }
.about__facts { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.about__facts div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.about__facts dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-light); font-weight: 700; }
.about__facts dd { margin: 4px 0 0; font-size: 15px; }

/* ============ TRACK RECORD ============ */
.record { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(60px, 8vw, 100px); }
.record__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.record__note { max-width: 260px; font-size: 13px; color: var(--muted); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--mist); padding: 28px; display: flex; flex-direction: column; min-height: 300px; transition: background .4s, color .4s; }
.card:hover { background: var(--night); color: #fff; }
.card:hover p { color: rgba(255,255,255,.7); }
.card:hover footer span { color: rgba(255,255,255,.55); }
.card:hover footer b { color: var(--olive-light); }
.card__num { font-size: 12px; font-weight: 700; color: var(--olive); margin-bottom: auto; }
.card h3 { font-size: 24px; line-height: 1.1; letter-spacing: -.015em; margin: 40px 0 12px; }
.card h3 small { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.card p { margin: 0 0 24px; font-size: 14px; color: var(--charcoal-2); transition: color .4s; }
.card footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid currentColor; border-color: rgba(128,128,128,.3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.card footer span { color: var(--muted); }
.card footer b { font-size: 18px; letter-spacing: -.01em; color: var(--olive); }

/* ============ QUOTES ============ */
.quotes { padding-bottom: clamp(80px, 10vw, 140px); }
.quotes__wrap { display: grid; border-top: 1px solid var(--line); padding-top: 48px; }
.quote { grid-area: 1/1; margin: 0; opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s var(--ease); pointer-events: none; }
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote p { font-size: clamp(24px, 3vw, 42px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 28px; max-width: 1100px; }
.quote cite { font-style: normal; font-size: 13px; color: var(--muted); }
.quote cite b { color: var(--charcoal); margin-right: 8px; }
.quotes__nav { display: flex; gap: 8px; margin-top: 28px; }
.qbtn { font-size: 12px; font-weight: 700; padding: 8px 14px; border: 1px solid var(--line); transition: all .3s; }
.qbtn.is-active, .qbtn:hover { background: var(--olive); border-color: var(--olive); color: #fff; }
.partners { margin-top: clamp(60px, 8vw, 110px); }
.partners ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partners li { padding: 28px 16px; text-align: center; font-weight: 700; font-size: 15px; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color .3s, background .3s; }
.partners li:hover { color: var(--olive); background: var(--mist); }

/* ============ CONTACT ============ */
.contact { padding: clamp(80px, 10vw, 140px) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 100px); }
.contact__side { display: flex; flex-direction: column; gap: 36px; }
.big-link { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.02em; transition: color .3s; word-break: break-word; }
.big-link--sm { font-size: clamp(16px, 1.6vw, 22px); }
.big-link:hover { color: var(--olive-light); }
.contact__addr { margin: 0; font-size: 18px; }
.directors { list-style: none; padding: 0; margin: 0; font-size: 18px; }
.contact__title { font-size: clamp(44px, 6.4vw, 104px); line-height: .95; letter-spacing: -.04em; font-weight: 700; margin: 0 0 56px; }
.form { display: grid; gap: 26px; }
.form label { display: block; }
.form .label { display: block; margin-bottom: 8px; }
.form input, .form select, .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); color: #fff;
  font: inherit; font-size: 17px; padding: 8px 0 12px; outline: none; transition: border-color .3s; border-radius: 0;
}
.form select { -webkit-appearance: none; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' fill='none' stroke-opacity='.6'/%3E%3C/svg%3E") right 4px center no-repeat; }
.form select option { color: var(--charcoal); }
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.3); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--olive-light); }
.form textarea { resize: vertical; }
.form__ok { color: var(--olive-light); margin: 0; font-size: 14px; }

.btn { justify-self: start; display: inline-block; background: var(--olive); color: #fff; padding: 16px 34px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; transition: background .3s; }
.btn:hover { background: var(--olive-deep); }
.btn--outline { background: transparent; color: var(--charcoal); border: 1px solid var(--charcoal); }
.btn--outline:hover { background: var(--olive); border-color: var(--olive); color: #fff; }

/* ============ FOOTER ============ */
.foot { padding: clamp(60px, 8vw, 100px) 0 28px; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.foot__logo { height: 70px; width: auto; margin-bottom: 20px; }
.foot__brand p { color: var(--muted); max-width: 300px; margin: 0 0 28px; }
.foot__nav { display: flex; flex-direction: column; align-items: flex-end; }
.foot__nav a { font-size: clamp(36px, 5vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; color: var(--line); transition: color .3s; }
.foot__nav a:first-child, .foot__nav a:hover { color: var(--charcoal); }
.foot__nav a:hover { color: var(--olive); }
.foot__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(60px, 8vw, 100px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .projects__detail { grid-template-columns: 1fr 1fr; }
  .pd { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr 2fr; }
  .about__col--r { display: none; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .nav__logo img { height: 36px; }
  .hero__inner { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto auto; gap: 16px; }
  .hero__meta, .hero__lede, .hero__cta { grid-column: 1; grid-row: auto; }
  .hero__title { align-self: end; }
  .hero__cta { justify-self: start; }
  .intro__stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 24px; }
  .strip { height: 300px; gap: 6px; }
  .strip__item:not(.is-active) { flex-grow: .5; }
  .projects__detail { grid-template-columns: 1fr; gap: 32px; }
  .acc__body { grid-template-columns: 1fr; }
  .acc__img { width: 100%; aspect-ratio: 16/10; justify-self: stretch; }
  .acc__item.is-open .acc__body { max-height: 760px; }
  .about { grid-template-columns: 1fr; height: auto; }
  .about__col--l { display: none; }
  .record__head { flex-direction: column; align-items: start; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .partners ul { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__main { order: -1; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__nav { align-items: flex-start; }
}

/* ============================================================
   MOTION — micro-interactions
   ============================================================ */
:root { --ease-out: cubic-bezier(.16,1,.3,1); }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--night); display: grid; place-items: center; transition: transform 1s var(--ease-out) .1s; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; transition: opacity .4s, transform .6s var(--ease-out); }
.loader img { height: 64px; width: auto; animation: loaderIn 1s var(--ease-out) both; }
.loader__bar { width: 140px; height: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--olive-light); transform: scaleX(0); transform-origin: left; animation: loaderBar 1s var(--ease-out) .15s forwards; }
@keyframes loaderIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes loaderBar { to { transform: scaleX(1); } }
.is-loaded .loader { transform: translateY(-100%); pointer-events: none; }
.is-loaded .loader__inner { opacity: 0; transform: translateY(-30px); }

/* Scroll progress */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; background: var(--olive-light); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Nav: hide on scroll down, show on scroll up */
.nav { transition: background .4s, color .4s, padding .4s, transform .6s var(--ease-out), box-shadow .4s; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__links a { transition: color .3s; }
.nav.is-solid .nav__links a:hover { color: var(--olive); }

/* Split-line text reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms + var(--base, 0ms)); }
.split-in .w > span { transform: none; }
.hero__title [data-split] { --base: 150ms; }
.hero__title--sub[data-split] { --base: 420ms; }
.hero__title em { display: inline-block; }

/* Staggered reveal (siblings) */
.reveal { transition-delay: var(--d, 0s); }

/* Hero image parallax wrapper */
.hero__media { will-change: transform; }

/* Media hover zoom */
.media img { transition: transform 1.2s var(--ease-out), filter .6s; }
.acc__img:hover img, .about__track .media:hover img { transform: scale(1.06); }
.strip__item .media img { transform: scale(1.08); transition: transform 1.4s var(--ease-out); }
.strip__item.is-active .media img { transform: scale(1); }

/* Clip reveal for images entering view */
.clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-out); }
.clip.in { clip-path: inset(0 0 0 0); }

/* Buttons: sweep fill + arrow */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; transition: color .4s, border-color .4s, background .3s, transform .3s var(--ease-out), translate .5s var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--olive-deep); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.btn:hover { background: var(--olive); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn::after { content: "→"; display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover::after { transform: translateX(5px); }
.btn--outline::before { background: var(--olive); }
.btn--outline:hover { background: transparent; color: #fff; border-color: var(--olive); }
.btn:active { transform: scale(.97); }
.hero__cta span { display: inline-block; transition: transform .4s var(--ease-out); }
.hero__cta:hover span { transform: translateY(4px); }

/* Accordion: content fades up after opening */
.acc__text, .acc__img { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .7s var(--ease-out); }
.acc__item.is-open .acc__text { opacity: 1; transform: none; transition-delay: .15s; }
.acc__item.is-open .acc__img { opacity: 1; transform: none; transition-delay: .25s; }
.acc__head span { display: inline-block; transition: transform .5s var(--ease-out), color .3s; }
.acc__head:hover span { transform: translateX(10px); }

/* Cards lift */
.card { transition: background .45s, color .45s, transform .6s var(--ease-out), box-shadow .6s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.45); }
.card__num { transition: transform .5s var(--ease-out); }
.card:hover .card__num { transform: translateX(6px); color: var(--olive-light); }

/* Partners: underline grow */
.partners li { position: relative; }
.partners li::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 18px; height: 1px; background: var(--olive); transition: left .5s var(--ease-out), right .5s var(--ease-out); }
.partners li:hover::after { left: 30%; right: 30%; }

/* Footer nav slide */
.foot__nav a { display: inline-block; transition: color .3s, transform .5s var(--ease-out); }
.foot__nav a:hover { transform: translateX(-12px); }

/* Big links underline */
.big-link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .3s, background-size .6s var(--ease-out); }
.big-link:hover { background-size: 100% 1px; }

/* Form focus line */
.form label { position: relative; }
.form label::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--olive-light); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); pointer-events: none; }
.form label:focus-within::after { transform: scaleX(1); }
.form label:focus-within .label { color: var(--olive-light); }
.form .label { transition: color .3s; }

/* Testimonial nav */
.qbtn { transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease-out), translate .5s var(--ease-out); }
.qbtn:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .w > span { transform: none; transition: none; }
  .clip { clip-path: none; }
  .acc__text, .acc__img { transition: none; }
  .about__track { animation: none; }
}

/* ============ Services: image follows the cursor (desktop) ============ */
.cursor-img { position: fixed; left: 0; top: 0; z-index: 40; width: 260px; aspect-ratio: 4/5; pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0); }
.cursor-img__inner { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--night-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); transform: scale(.6) rotate(-4deg); transition: transform .6s var(--ease-out); }
.cursor-img__inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path .7s var(--ease-out), transform 1s var(--ease-out); }
.cursor-img__inner img.is-in { clip-path: inset(0 0 0 0); transform: scale(1); }
.cursor-img.is-on { opacity: 1; transition: opacity .3s; }
.cursor-img.is-on .cursor-img__inner { transform: scale(1) rotate(0); }
.cursor-img:not(.is-on) { transition: opacity .35s .05s; }

@media (hover: hover) and (pointer: fine) {
  .acc__body { grid-template-columns: 1fr; }
  .acc__img { display: none; }
  .acc__item.is-open .acc__body { max-height: 260px; }
}
@media (hover: none), (pointer: coarse) { .cursor-img { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-img__inner, .cursor-img__inner img { transition: none; } }
