/* =========================================================
   Stogger Innovation Services - design v2
   Photo-led, filled colour blocks, overlapping layers
   (inspired by mtagroup.nl · zest-innovate.eu · gte-engineering.nl)
   ========================================================= */

:root {
  --navy:      #0d124e;
  --navy-700:  #1b2270;
  --navy-800:  #121866;
  --navy-900:  #080b33;
  --mint:      #a4dfd2;
  --mint-200:  #d4f0e9;
  --mint-600:  #3fa890;

  --bg:        #ffffff;
  --bg-alt:    #f3f5fa;
  --line:      #dfe3ee;
  --ink:       #0d124e;
  --body:      #474d6b;
  --muted:     #818798;

  --font-head: "Montserrat", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1240px;
  --gut: clamp(1rem, 4vw, 2.6rem);
  --radius: 4px;
  --header-h: 80px;

  --shadow: 0 24px 60px rgba(8,11,51,.22);
  --ease: cubic-bezier(.22,.61,.36,1);
  --t: .25s var(--ease);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body); color: var(--body); background: var(--bg);
  line-height: 1.65; font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; font-weight: 800; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--mint-600); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 300; background: var(--navy); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mint-600); margin-bottom: 1rem;
}
.eyebrow--light { color: var(--mint); }

/* the one loud style: heavy italic uppercase - only for H1/H2 */
.title, .hero__title, .cta__title {
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.015em; line-height: .96;
}
.title { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); }
.title--light { color: #fff; }
.chev { color: var(--mint); font-style: normal; margin-right: .12em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase;
  padding: 1rem 1.7rem; border-radius: var(--radius); border: 2px solid transparent;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn--sm { padding: .62rem 1.15rem; font-size: .72rem; }
.btn--lg { padding: 1.15rem 2rem; font-size: .86rem; }
.btn__arrow { transition: transform var(--t); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--mint { background: var(--mint); color: var(--navy); }
.btn--mint:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* =========================================================
   HEADER - transparent over hero, solid on scroll
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background var(--t), box-shadow var(--t), height var(--t);
}
.site-header::before { /* soft fade so white nav stays readable over any photo */
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,11,51,.55), transparent);
  transition: opacity var(--t);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 100%; }
.brand { display: inline-flex; position: relative; }
.brand__logo { height: clamp(30px, 2vw + 20px, 38px); width: auto; transition: opacity var(--t); }
.brand__logo--navy { position: absolute; inset: 0; opacity: 0; }

.nav__list { display: flex; gap: .2rem; }
.nav__list a {
  display: block; padding: .55rem .85rem; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; transition: color var(--t);
}
.nav__list a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px;
  background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: .8rem; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform var(--t), opacity var(--t), background var(--t); }
.nav-toggle span:nth-child(1){ top: 15px; } .nav-toggle span:nth-child(2){ top: 21px; } .nav-toggle span:nth-child(3){ top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* solid state */
.site-header.is-solid { background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(13,18,78,.06); height: 70px; }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid .brand__logo--white { opacity: 0; }
.site-header.is-solid .brand__logo--navy { opacity: 1; }
.site-header.is-solid .nav__list a { color: var(--navy); }
.site-header.is-solid .nav__list a::after { background: var(--mint-600); }
.site-header.is-solid .nav-toggle span { background: var(--navy); }
.site-header.is-solid .btn--mint { background: var(--navy); color: #fff; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: min(92vh, 860px); display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 3rem) 0 clamp(8rem, 14vw, 11rem);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,11,51,.92) 0%, rgba(13,18,78,.78) 42%, rgba(13,18,78,.25) 100%),
    linear-gradient(0deg, rgba(8,11,51,.55), transparent 40%);
}
.hero__title { color: #fff; font-size: clamp(2.8rem, 1.2rem + 6.4vw, 6.4rem); margin-bottom: 1.6rem; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 40ch; color: rgba(255,255,255,.86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* =========================================================
   SERVICES - filled tiles that overlap the hero
   ========================================================= */
.services { position: relative; z-index: 2; margin-top: clamp(-7rem, -10vw, -5rem); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: var(--shadow); }
.tile {
  position: relative; background: var(--navy); color: rgba(255,255,255,.75);
  padding: 2rem 1.6rem 2.1rem; border-right: 1px solid rgba(255,255,255,.1);
  transition: background var(--t), transform var(--t);
}
.tile:nth-child(2) { background: var(--navy-800); }
.tile:nth-child(3) { background: var(--navy-700); }
.tile:last-child { border-right: none; }
.tile:hover { transform: translateY(-6px); }
.tile__no { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: rgba(255,255,255,.35); }
.tile__icon { width: 34px; height: 34px; color: var(--mint); margin-bottom: 1.4rem; }
.tile__title { color: #fff; font-size: 1.2rem; margin-bottom: .5rem; }
.tile__text { font-size: .95rem; line-height: 1.55; }
.tile--accent { background: var(--mint) !important; color: var(--navy); }
.tile--accent .tile__title { color: var(--navy); }
.tile--accent .tile__icon { color: var(--navy); }
.tile--accent .tile__no { color: rgba(13,18,78,.4); }

/* =========================================================
   ONE ROOF
   ========================================================= */
.roof { padding: clamp(5rem, 9vw, 8.5rem) 0 clamp(5rem, 9vw, 8rem); }
.roof__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.roof__text { margin: 1.6rem 0 2rem; font-size: 1.1rem; max-width: 46ch; }
.roof__facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.roof__facts li { display: flex; align-items: baseline; gap: 1.1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.roof__facts strong { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 2rem; line-height: 1; color: var(--navy); min-width: 1.6ch; }
.roof__sectors { margin-top: 1.6rem; font-size: .95rem; color: var(--muted); }
.roof__sectors span { display: block; font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: .2rem; }

.roof__media { position: relative; padding-bottom: 14%; isolation: isolate; }
.roof__media > img:first-child { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: var(--radius); }
.roof__inset {
  position: absolute; left: -12%; bottom: 0; width: 52%; aspect-ratio: 4/3; object-fit: cover;
  border: 8px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.roof__media::after { /* mint corner block - a layered accent */
  content: ""; position: absolute; right: -18px; top: -18px; width: 38%; height: 40%; background: var(--mint); z-index: -1;
}

/* =========================================================
   APPROACH - dark navy, horizontal track
   ========================================================= */
.approach { position: relative; overflow: hidden; background: var(--navy); color: rgba(255,255,255,.8); padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.approach__mark { position: absolute; right: -6%; top: -10%; width: min(46vw, 560px); opacity: .05; filter: invert(1); pointer-events: none; }
.approach__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.approach__intro { max-width: 38ch; font-size: 1.05rem; }

.track {
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px;
  position: relative;
}
.track__step {
  display: flex; flex-direction: column; gap: .5rem; text-align: left;
  padding: 1rem .85rem 1.1rem; min-height: 6.4rem;
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.7);
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; line-height: 1.25;
  border-top: 3px solid rgba(255,255,255,.14);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.track__step span { font-weight: 900; font-style: italic; font-size: 1.35rem; color: rgba(255,255,255,.35); transition: color var(--t); }
.track__step:hover { background: rgba(255,255,255,.1); color: #fff; }
.track__step.is-done { border-top-color: var(--mint-600); }
.track__step.is-active { background: var(--mint); color: var(--navy); border-top-color: var(--mint); }
.track__step.is-active span { color: var(--navy); }

.stage {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin-top: 4px; background: #fff; color: var(--body); padding: clamp(1.8rem, 3.5vw, 2.8rem) clamp(1.5rem, 3.5vw, 3rem);
}
.stage__no { font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: clamp(3.5rem, 2rem + 4vw, 6rem); line-height: .85; color: var(--mint); letter-spacing: -.04em; }
.stage__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .5rem; }
.stage__text { max-width: 58ch; }
.stage__deliver { display: flex; flex-direction: column; gap: .3rem; padding-left: clamp(1.2rem, 3vw, 2.5rem); border-left: 1px solid var(--line); max-width: 24ch; }
.stage__deliver span { font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-600); }
.stage__deliver strong { font-family: var(--font-head); color: var(--navy); font-weight: 700; line-height: 1.35; }
.stage.is-swapping .stage__body, .stage.is-swapping .stage__no, .stage.is-swapping .stage__deliver { opacity: 0; transform: translateY(6px); }
.stage__body, .stage__no, .stage__deliver { transition: opacity .22s var(--ease), transform .22s var(--ease); }

/* =========================================================
   WORK
   ========================================================= */
.work { padding: clamp(5rem, 9vw, 8rem) 0; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-600); margin-bottom: .6rem; }

.feature { position: relative; display: grid; grid-template-columns: 1fr; }
.feature__img { width: 82%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.feature__card {
  position: absolute; right: 0; bottom: 10%; width: min(42%, 440px);
  background: var(--navy); color: rgba(255,255,255,.8); padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow); border-top: 4px solid var(--mint);
}
.feature__card .tag { color: var(--mint); }
.feature__title { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-style: italic; font-weight: 900; text-transform: uppercase; margin-bottom: .8rem; }

.work__more { margin-top: 2.4rem; text-align: center; }
.duo { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; margin-top: 1.4rem; }
.shot { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.shot img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s var(--ease), opacity var(--t); }
.duo .shot:last-child img { aspect-ratio: auto; max-height: 100%; }
.shot:hover img { transform: scale(1.05); opacity: .85; }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.6rem 1.4rem;
  background: linear-gradient(0deg, rgba(8,11,51,.9), transparent);
}
.shot__cap .tag { color: var(--mint); margin-bottom: .3rem; }
.shot__cap h3 { color: #fff; font-size: 1.25rem; }

/* =========================================================
   TEAM
   ========================================================= */
.team { background: var(--bg-alt); padding: clamp(5rem, 9vw, 8rem) 0 clamp(6rem, 10vw, 9rem); }
.team__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.team .title { font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem); }
.team__text { margin: 1.5rem 0 2rem; font-size: 1.08rem; max-width: 36ch; }
.person { position: relative; }
.person--offset { margin-top: clamp(2rem, 6vw, 5rem); }
.person img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.person figcaption {
  position: relative; margin: -3.5rem 1rem 0 1rem; background: #fff; padding: 1.3rem 1.4rem 1.4rem;
  box-shadow: 0 16px 40px rgba(13,18,78,.12); border-left: 4px solid var(--mint);
}
.person strong { display: block; font-family: var(--font-head); font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--navy); font-size: 1.2rem; }
.person figcaption > span { display: block; font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-600); margin: .2rem 0 .8rem; }
.person q { display: block; color: var(--ink); font-size: .98rem; line-height: 1.5; quotes: "“" "”"; }

/* =========================================================
   CTA
   ========================================================= */
.cta { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(5rem, 10vw, 8.5rem) 0; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,11,51,.95) 0%, rgba(13,18,78,.85) 55%, rgba(13,18,78,.6) 100%); }
.cta__inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.cta__title { color: #fff; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem); margin-bottom: 1.2rem; }
.cta__text { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 44ch; }
.cta__actions { margin-top: 2.2rem; }
.cta__contact { font-style: normal; display: grid; gap: 1.2rem; border-left: 2px solid var(--mint); padding-left: 1.6rem; }
.cta__contact p { display: flex; flex-direction: column; }
.cta__contact span { font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.cta__contact a:hover { color: var(--mint); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy-900); color: rgba(255,255,255,.6); padding: 2.4rem 0; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.footer__logo { width: 170px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer__nav a:hover { color: var(--mint); }

/* prototype version switch */
.version-switch {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 200;
  background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(13,18,78,.15);
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .55rem .9rem; border-radius: 99px;
}
.version-switch:hover { background: var(--navy); color: #fff; }

/* =========================================================
   REVEAL
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(2) { border-right: none; }
  .tile:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .track { grid-template-columns: repeat(9, minmax(7.5rem, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
  .track__step { scroll-snap-align: start; }
  .stage { grid-template-columns: auto 1fr; }
  .stage__deliver { grid-column: 1 / -1; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; max-width: none; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .team__copy { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .roof__grid { grid-template-columns: 1fr; }
  .roof__media { margin: 0 0 0 8%; }
  .feature__img { width: 100%; }
  .feature__card { position: relative; width: auto; margin: -3rem 1rem 0; bottom: auto; }
  .duo { grid-template-columns: 1fr; }
  .duo .shot:last-child img { aspect-ratio: 4/3; }
  .cta__inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; background: #fff; box-shadow: 0 20px 40px rgba(13,18,78,.15);
    padding: .5rem var(--gut) 1.2rem; transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity var(--t), transform var(--t);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__list { flex-direction: column; }
  .nav__list a { color: var(--navy); padding: 1rem .2rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav-toggle { display: block; }
  .header__actions .btn { display: none; }

  .hero { min-height: 88vh; }
  .hero__shade { background: linear-gradient(0deg, rgba(8,11,51,.95) 10%, rgba(13,18,78,.7) 60%, rgba(13,18,78,.55)); }
  .tiles { grid-template-columns: 1fr; }
  .tile { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stage { grid-template-columns: 1fr; }
  .stage__no { font-size: 3rem; }
  .team__grid { grid-template-columns: 1fr; }
  .person--offset { margin-top: 0; }
  .roof__inset { left: -6%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
