/* ==========================================================
   Blueverde Studio — dark minimal theme
   Brand colors: #A4DB37 (green) · #00BEDC (blue) · #011F2D (navy) · #FFFFFF
   Font: Poppins (thin 200 for titles, 300 for text)
   ========================================================== */

:root {
  --green: #A4DB37;
  --blue: #00BEDC;
  --navy: #011F2D;
  --white: #FFFFFF;

  --bg: #010F17;
  --surface: #011F2D;
  --text: #EAF4F6;
  --muted: rgba(234, 244, 246, 0.62);
  --line: rgba(234, 244, 246, 0.12);
  --gradient: linear-gradient(90deg, var(--green), var(--blue));

  --sans: "Poppins", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  /* left/right offset that lines full-width tracks up with .container */
  --pad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
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; }
button:disabled { opacity: .3; cursor: default; }
/* emphasised words in titles: same font as the text, coloured with the brand gradient */
em {
  font-style: normal; font-weight: inherit;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
::selection { background: var(--green); color: var(--navy); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px; font-weight: 400;
}
.section-title {
  font-weight: 200; font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.1; letter-spacing: -.03em; margin: 0;
}
.section-head {
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: space-between; align-items: flex-end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.t-blue { color: var(--blue); font-weight: 500; }
.t-green { color: var(--green); font-weight: 500; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s, color .3s; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--green); border-color: var(--green); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s, border-color .3s;
}
.btn-primary { background: var(--gradient); color: var(--navy); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -10px rgba(0, 190, 220, .55); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* round arrow buttons (carousel, case studies) */
.hc-nav { display: flex; gap: 8px; }
.hc-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  font-size: 18px; transition: border-color .3s, color .3s, background .3s;
}
.hc-nav button:not(:disabled):hover { border-color: var(--green); color: var(--green); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .4s, padding .4s;
}
.header.is-scrolled {
  background: rgba(1, 15, 23, .8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.logo { position: relative; z-index: 60; }
.logo img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.nav a { position: relative; color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--green); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.hero-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 130px var(--gutter) 130px;
  display: grid; grid-template-columns: .95fr 1.35fr; gap: clamp(30px, 5vw, 80px); align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; opacity: 0; animation: fadeUp 1s .4s var(--ease) forwards; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(164, 219, 55, .6); } 70%, 100% { box-shadow: 0 0 0 12px rgba(164, 219, 55, 0); } }

/* one typeface, thin weight; only the last line is coloured */
.hero-title {
  font-family: var(--sans); font-weight: 200;
  font-size: clamp(40px, 5.4vw, 88px);
  line-height: 1.02; letter-spacing: -.035em; margin: 0 0 30px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.2s var(--ease) forwards; }
.hero-title .line:nth-child(1) > span { animation-delay: .6s; }
.hero-title .line:nth-child(2) > span { animation-delay: .75s; }
.hero-title .line:nth-child(3) > span { animation-delay: .9s; }
@keyframes lineUp { to { transform: translateY(0); } }
.rotator {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .05em;
  transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s;
}
.hero-title .line > .rotator.is-out { opacity: 0; transform: translateY(30%); filter: blur(8px); }

.hero-sub { max-width: 480px; font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); margin: 0 0 36px; opacity: 0; animation: fadeUp 1s 1.2s var(--ease) forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp 1s 1.4s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Hero slideshow: "shattered" projects over nature photos ---------- */
/* nature photo, full screen, cross-fading with a slow zoom */
.hs-bg { position: absolute; inset: 0; z-index: -4; overflow: hidden; background: var(--bg); }
.hs-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12); filter: saturate(.85);
  transition: opacity 1.4s var(--ease), transform 9s linear;
}
.hs-bg img.is-active { opacity: 1; transform: scale(1); }
/* dark + teal wash so the text stays readable */
.hs-tint {
  position: absolute; inset: 0; z-index: -3;
  background:
    linear-gradient(90deg, rgba(1, 15, 23, .92) 0%, rgba(1, 15, 23, .72) 38%, rgba(1, 31, 45, .45) 70%, rgba(1, 31, 45, .55) 100%),
    linear-gradient(180deg, rgba(1, 15, 23, .4) 0%, rgba(1, 15, 23, 0) 28%, rgba(1, 15, 23, 0) 70%, var(--bg) 100%);
}
.hs-tint::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0, 190, 220, .16), rgba(164, 219, 55, .08)); }

/* translucent panels + light flare that sweep across between slides */
.hs-sweeps { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hs-sweeps i {
  position: absolute; left: 0; width: 75vw; transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(0, 190, 220, 0), rgba(0, 190, 220, .2) 35%, rgba(164, 219, 55, .14));
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.hs-sweeps i:nth-child(1) { top: 12%; height: 22%; }
.hs-sweeps i:nth-child(2) { top: 40%; height: 30%; width: 95vw; }
.hs-sweeps i:nth-child(3) { top: 74%; height: 12%; width: 60vw; }
.hs-sweeps b {
  position: absolute; left: 0; top: 54%; width: 40vw; height: 2px; opacity: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, #fff 70%, transparent);
  box-shadow: 0 0 18px 4px rgba(0, 190, 220, .8);
}
.hero.is-sweeping .hs-sweeps i { animation: sweep 1.25s var(--ease) both; }
.hero.is-sweeping .hs-sweeps i:nth-child(2) { animation-delay: .08s; }
.hero.is-sweeping .hs-sweeps i:nth-child(3) { animation-delay: .16s; }
.hero.is-sweeping .hs-sweeps b { animation: flare 1.1s .1s ease-out both; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100vw); } }
@keyframes flare { 0% { transform: translateX(-100%); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(100vw); opacity: 0; } }

/* the project, cut into vertical strips */
.hs-stage { position: relative; opacity: 0; animation: fadeUp 1.2s .6s var(--ease) forwards; }
.hs-shatter { position: relative; display: block; aspect-ratio: 1.12; touch-action: pan-y; }
.hs-strip {
  position: absolute; overflow: hidden; border-radius: 2px; background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85);
  transition: transform .95s var(--ease), opacity .8s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--i) * 65ms);
}
.hs-strip img { position: absolute; max-width: none; object-fit: cover; user-select: none; pointer-events: none; }
.hs-strip.is-framed { outline: 1px solid rgba(234, 244, 246, .6); outline-offset: 6px; }
.hs-shatter.is-prep .hs-strip { transform: translateY(calc(var(--dir) * 70%)); opacity: 0; filter: blur(12px); transition: none; }
.hs-shatter.is-out .hs-strip {
  transform: translateY(calc(var(--dir) * -45%)); opacity: 0; filter: blur(10px);
  transition-duration: .55s; transition-delay: calc(var(--i) * 30ms);
}
.hs-accent { position: absolute; width: 3px; border-radius: 2px; }
.hs-accent.a1 { left: -18px; top: 26%; height: 56px; background: var(--green); }
.hs-accent.a2 { right: -16px; top: 58%; height: 40px; background: var(--blue); }

/* project caption: the title appears letter by letter */
.hs-caption { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: baseline; margin-top: 28px; }
.hs-count { grid-row: span 2; font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.hs-count b { color: var(--text); font-weight: 500; }
.hs-title { font-weight: 300; font-size: clamp(20px, 2vw, 30px); line-height: 1.15; letter-spacing: -.01em; transition: color .3s; }
.hs-title:hover { color: var(--green); }
.hs-word { display: inline-block; white-space: nowrap; }
.hs-char { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(6px); animation: charIn .7s var(--ease) forwards; animation-delay: var(--d); }
@keyframes charIn { to { opacity: 1; filter: none; transform: none; } }
.hs-meta { grid-column: 2; margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* progress segments + arrows */
.hs-bar { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hs-segments { display: flex; gap: 14px; flex: 1; max-width: 560px; }
.hs-seg { flex: 1; display: grid; gap: 8px; text-align: left; }
.hs-seg-num { font-size: 12px; letter-spacing: .1em; color: var(--muted); transition: color .3s; }
.hs-seg.is-active .hs-seg-num, .hs-seg:hover .hs-seg-num { color: var(--text); }
.hs-seg-bar { display: block; height: 2px; background: rgba(234, 244, 246, .18); overflow: hidden; }
.hs-seg-bar i { display: block; height: 100%; background: var(--gradient); transform: scaleX(0); transform-origin: left; }
.hs-seg.is-done .hs-seg-bar i { transform: scaleX(1) !important; }
.hs-credit { z-index: 2; }


/* ---------- Intro statement ---------- */
.intro-grid { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.statement { font-size: clamp(26px, 3.4vw, 48px); line-height: 1.25; letter-spacing: -.02em; font-weight: 300; margin: 0 0 40px; }
.statement .w { color: rgba(234, 244, 246, .16); transition: color .4s; }
.statement .w.on { color: var(--text); }
.statement em .w.on { color: var(--green); }

/* ---------- Featured case studies (home) ---------- */
.featured { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); align-items: start; }
.feature-media { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--surface); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.06); }
.feature-info { padding-top: 18px; }
.feature-info h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; margin: 0 0 8px; line-height: 1.3; }
.more { font-size: 13px; font-weight: 300; color: var(--green); white-space: nowrap; }
.feature-info p { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Services overview (home) ---------- */
.process { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.step { padding: 32px 24px 10px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step-num { display: block; font-weight: 200; font-size: 28px; letter-spacing: -.02em; color: var(--green); margin-bottom: 18px; line-height: 1; }
.step h3 { font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; margin: 0 0 12px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Latest work (home): one project, large ---------- */
.latest-work { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: end; }
.latest-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--surface); box-shadow: 0 40px 90px -40px rgba(0, 190, 220, .35); }
.latest-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.latest-media { display: block; }
.latest-media:hover img { transform: scale(1.04); }
.latest-info { border-bottom: 1px solid var(--line); padding-bottom: 26px; }
.latest-info h3 { font-weight: 200; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; transition: color .3s; }
.latest-info h3 a:hover { color: var(--green); }
.latest-badge { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--gradient); }
.latest-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.latest-sub { margin: 0 0 18px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.latest-cats { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.latest-cats li { font-size: 13px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); }

/* ---------- Clients ---------- */
.clients { border-top: 1px solid var(--line); }
.client-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.client {
  position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease);
}
/* on hover the cell turns light so the original (often dark) logo colours are clearly visible */
.client:hover { background-color: var(--text); }
.client img { grid-area: 1 / 1; width: 62%; max-width: 120px; height: 62%; object-fit: contain; transition: opacity .4s; }
.client img + img { opacity: 0; }
.client:hover img:first-child { opacity: 0; }
.client:hover img + img { opacity: 1; }

/* ---------- Client feedback strip (home) ---------- */
.testimonials { padding-top: 0; }
.tm-nav[hidden] { display: none; }
.tm-track {
  display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad); padding: 4px var(--pad) 12px; scrollbar-width: none;
}
.tm-track::-webkit-scrollbar { display: none; }
/* two cards per view on desktop (they line up with the page content), one on phones */
.tm-card {
  flex: 0 0 calc((min(100vw, var(--max)) - 2 * var(--gutter) - clamp(16px, 2vw, 28px)) / 2);
  scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(26px, 2.6vw, 38px) clamp(26px, 3vw, 44px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  transition: border-color .4s;
}
.tm-card:hover { border-color: rgba(164, 219, 55, .45); }
.tm-mark { font-weight: 200; font-size: 48px; line-height: .6; height: 20px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tm-card blockquote {
  margin: 0; font-weight: 300; font-size: 16px; line-height: 1.75; color: rgba(234, 244, 246, .86);
  /* very long feedback is cut after 10 lines (8 on phones), with a Read more link */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 10; line-clamp: 10; overflow: hidden;
}
.tm-card.is-open blockquote { -webkit-line-clamp: unset; line-clamp: unset; }
.tm-more { align-self: flex-start; font-size: 13px; color: var(--green); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.tm-more:hover { color: var(--blue); }
.tm-card figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.tm-card figcaption strong { font-weight: 500; font-size: 15px; }
.tm-card figcaption span { font-size: 13px; color: var(--muted); }

/* ---------- Press-style list (portfolio) ---------- */
.press-list { border-top: 1px solid var(--line); }
.press-row {
  display: grid; grid-template-columns: 1fr minmax(220px, 300px) 1fr;
  gap: clamp(20px, 3vw, 40px); align-items: start;
  padding: 16px 0;
  transition: opacity .4s;
}
.press-row.is-hidden { display: none; }
.press-list:hover .press-row { opacity: .45; }
.press-list:hover .press-row:hover { opacity: 1; }
.press-row.is-flash .press-media { box-shadow: 0 0 0 2px var(--green); }
.press-client { display: flex; justify-content: flex-end; gap: 10px; text-align: left; }
.press-num { font-weight: 200; font-size: 18px; color: var(--green); line-height: 1.05; }
.press-name { text-transform: uppercase; font-size: 15px; font-weight: 400; line-height: 1.05; max-width: 170px; letter-spacing: .01em; }
.press-media { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--surface); cursor: zoom-in; transition: box-shadow .4s; }
.press-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.press-row:hover .press-media img { transform: scale(1.05); }
.press-info { max-width: 260px; }
.press-info h3 { font-size: 17px; font-weight: 400; line-height: 1.12; margin: 0 0 6px; letter-spacing: -.005em; }
.press-type { font-size: 14px; margin: 0 0 4px; }
.press-cat { font-size: 13px; color: var(--muted); margin: 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: clamp(40px, 5vw, 64px); }
.filter { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); transition: all .3s; }
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--navy); border-color: var(--text); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(1, 15, 23, .94);
  display: grid; grid-template-columns: 70px 1fr 70px; align-items: center;
  padding: 30px; backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { text-align: center; font-size: 14px; color: var(--muted); }
.lightbox figcaption strong { display: block; color: var(--text); font-weight: 500; font-size: 16px; }
.lb-close { position: absolute; top: 18px; right: 24px; font-size: 38px; line-height: 1; }
.lb-prev, .lb-next { font-size: 26px; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); transition: border-color .3s, color .3s; }
.lb-prev:hover, .lb-next:hover, .lb-close:hover { color: var(--green); border-color: var(--green); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(140px, 18vw, 210px) 0 0; }
.page-title {
  font-weight: 200; font-size: clamp(42px, 8vw, 112px);
  line-height: 1.02; letter-spacing: -.04em; margin: 0;
}
.page-intro { max-width: 560px; color: var(--muted); margin: 26px 0 0; }
.rule { position: relative; height: 1px; background: var(--line); margin-top: clamp(50px, 6vw, 80px); }
.rule::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 80px;
  background: var(--line); transform-origin: top; transform: rotate(28deg);
}

/* ---------- About ---------- */
.quote {
  font-weight: 200;
  font-size: clamp(26px, 3.6vw, 48px); line-height: 1.25; margin: 0; max-width: 1100px;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-quote { padding-bottom: 0; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.split-media { position: sticky; top: 110px; }
.split-media img { width: 100%; border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; }
.caption { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.split-text > p { color: var(--muted); max-width: 640px; }
.split-text .section-title { margin-bottom: 30px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 46px 0; padding-top: 34px; border-top: 1px solid var(--line); }
.pillar span { font-weight: 200; font-size: 26px; line-height: 1; color: var(--green); }
.pillar h3 { font-size: 17px; font-weight: 500; margin: 6px 0; }
.pillar p { font-size: 14.5px; color: var(--muted); margin: 0; }
.wide-image { position: relative; height: clamp(260px, 50vw, 620px); overflow: hidden; }
/* photo credit, small, bottom right over the image */
.credit {
  position: absolute; right: 16px; bottom: 12px; margin: 0;
  font-size: 11px; letter-spacing: .04em; color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
.credit::before { content: "© "; }
.wide-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Services slider (pinned, scroll-driven) ---------- */
.svc-slider { position: relative; }
.svc-sticky { padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 6vw, 80px); overflow: hidden; }
.svc-slider.is-pinned .svc-sticky {
  position: sticky; top: 0; height: 100vh; min-height: 560px;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 90px; padding-bottom: 40px;
}
.svc-head { margin-bottom: clamp(30px, 4vw, 56px); }
.svc-head .section-title { font-size: clamp(38px, 6vw, 88px); line-height: 1; }
.svc-viewport { overflow: hidden; }
.svc-track { display: flex; width: max-content; padding: 0 var(--pad); will-change: transform; }
.svc-col { width: clamp(300px, 38vw, 560px); padding-right: clamp(24px, 3vw, 44px); }
.svc-col-head { display: flex; align-items: flex-end; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-right: calc(-1 * clamp(24px, 3vw, 44px)); padding-right: clamp(24px, 3vw, 44px); }
.svc-col-head .step-num { font-size: clamp(32px, 3.2vw, 46px); margin: 0; }
.svc-col-head h3 { margin: 0; font-size: 15px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; max-width: 220px; }
.svc-col-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 22px; }
.svc-img { aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--surface); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-col:hover .svc-img img { transform: scale(1.06); }
.svc-col-body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.svc-progress { height: 1px; background: var(--line); margin-top: clamp(30px, 4vw, 50px); overflow: hidden; }
.svc-progress span { display: block; height: 100%; background: var(--gradient); transform: scaleX(0); transform-origin: left; }

.cta-band { background: var(--surface); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; }
.cta-inner .section-title { max-width: 820px; font-size: clamp(28px, 3.6vw, 48px); }

/* ---------- Case studies: press-style rows that slide open ---------- */
.case-section { padding-top: clamp(50px, 6vw, 80px); }
.cs-list { margin: 0 calc(-1 * var(--pad)); }  /* full-bleed so the open slide can run to the screen edge */
.cs {
  --gap: clamp(24px, 3vw, 44px);
  --media-w: clamp(280px, 30vw, 420px);
  --media-open: min(620px, 42vw);
  --open-h: calc(var(--media-open) * .75);
  border-top: 1px solid var(--line); padding: 28px 0;
}
.cs:last-child { border-bottom: 1px solid var(--line); }
.cs-track {
  display: flex; align-items: flex-start; gap: var(--gap);
  padding: 0 var(--pad); overflow-x: hidden;
  scrollbar-width: none;
}
.cs-track::-webkit-scrollbar { display: none; }
.cs-lead {
  flex: 0 0 calc(50% - var(--gap) - var(--media-w) / 2);
  display: flex; flex-direction: column; align-items: flex-end; gap: 22px;
  transition: flex-basis 1s var(--ease);
}
.cs-label { display: flex; gap: 10px; }
.cs-tags, .cs-close-top { display: none; }
.cs-media {
  position: relative; flex: 0 0 var(--media-w); aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 6px; background: var(--surface); cursor: pointer;
  transition: flex-basis 1s var(--ease);
}
.cs-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); user-select: none; }
.cs-media:hover img { transform: scale(1.04); }
.cs-plus {
  position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; font-weight: 300;
  background: var(--green); color: var(--navy); transition: transform .5s var(--ease);
}
.cs-info { flex: 0 0 clamp(240px, 24vw, 330px); }
.cs-info h2 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 400; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; }
.cs-meta { font-size: 14px; color: var(--green); margin: 0 0 22px; }
.cs-toggle { font-size: 15px; }
.cs-extra { display: none; }
.cs-controls { display: none; }

/* open state */
.cs.is-open .cs-lead { flex-basis: clamp(160px, 14vw, 200px); align-items: flex-start; }
.cs.is-open .cs-media { flex-basis: var(--media-open); cursor: zoom-out; }
.cs.is-open .cs-plus { transform: rotate(45deg); }
.cs.is-open .cs-toggle { display: none; }
.cs.is-open .cs-tags {
  display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0; padding: 0;
  animation: fadeUp .8s .3s var(--ease) both;
}
.cs-tags li { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs.is-open .cs-close-top { display: block; font-size: 14px; color: var(--muted); animation: fadeUp .8s .4s var(--ease) both; }
.cs-close-top:hover { color: var(--green); }
.cs.is-open .cs-track { overflow-x: auto; cursor: grab; }
.cs.is-dragging .cs-track { cursor: grabbing; }
.cs.is-dragging .cs-track * { pointer-events: none; }
.cs.is-open .cs-extra { display: flex; gap: var(--gap); align-items: flex-start; flex: 0 0 auto; }
.cs-reveal { animation: slideIn 1s var(--ease) both; }
.cs-extra > :nth-child(1) { animation-delay: .35s; }
.cs-extra > :nth-child(2) { animation-delay: .45s; }
.cs-extra > :nth-child(3) { animation-delay: .55s; }
.cs-extra > :nth-child(n+4) { animation-delay: .65s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
.cs-text { flex: 0 0 clamp(240px, 22vw, 320px); }
.cs-text p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0; }
.cs-facts { margin: 0 0 22px; display: grid; gap: 12px; }
.cs-facts dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cs-facts dd { margin: 2px 0 0; font-size: 15px; }
.cs-page { margin: 0; flex: 0 0 auto; height: var(--open-h); border-radius: 6px; overflow: hidden; background: var(--surface); }
.cs-page img { height: 100%; width: auto; max-width: none; user-select: none; }
.cs-quote {
  flex: 0 0 clamp(260px, 26vw, 380px); margin: 0;
  font-weight: 200; font-size: clamp(20px, 2vw, 26px); line-height: 1.4;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cs-quote cite { display: block; margin-top: 16px; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.cs-end { flex: 0 0 auto; align-self: center; padding-right: var(--pad); }
.cs.is-open .cs-controls {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px var(--pad) 0; animation: fadeUp .8s .5s var(--ease) both;
}
.cs-hint { font-size: 13px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-list { margin: 40px 0 0; display: grid; gap: 22px; }
.contact-list dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 4px 0 0; font-size: clamp(18px, 2vw, 24px); }
.contact-list a:hover { color: var(--green); }
.contact-form { display: grid; gap: 22px; background: var(--surface); padding: clamp(26px, 4vw, 48px); border-radius: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; resize: vertical;
  transition: border-color .3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.contact-form .opt { text-transform: none; letter-spacing: 0; }
.contact-form input::placeholder { color: rgba(234, 244, 246, .35); }
.contact-form .check-label {
  display: flex; align-items: flex-start; gap: 12px; text-transform: none; letter-spacing: 0;
  font-size: 14px; color: var(--text); cursor: pointer;
}
.contact-form .check-label input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.form-status { margin: 0; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: #ff8a7a; }
/* honeypot: hidden from people, visible to spam bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); padding: clamp(80px, 10vw, 130px) 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; padding-bottom: clamp(50px, 7vw, 80px); }
.footer-claim { font-size: clamp(36px, 6vw, 84px); font-weight: 200; letter-spacing: -.035em; line-height: 1; margin: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); }
.footer-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-links { display: grid; gap: 6px; font-size: 15px; justify-items: start; }
.footer-links a { transition: color .3s; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.to-top:hover { color: var(--green); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3) { border-right: 0; }
  .step:nth-child(4) { padding-left: 0; }
  .client-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--bg); font-size: 36px; font-weight: 200; letter-spacing: -.02em;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav a { color: var(--text); }
  .menu-open .nav { opacity: 1; visibility: visible; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; padding-bottom: 36px; }
  .hs-bar { position: static; padding-bottom: 44px; }
  .hs-accent { display: none; }
  .hs-tint { background: linear-gradient(180deg, rgba(1, 15, 23, .88) 0%, rgba(1, 15, 23, .62) 55%, var(--bg) 100%); }
  .intro-grid { grid-template-columns: 1fr; gap: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .latest-work { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { padding: 26px 18px 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }

  .press-row { grid-template-columns: 110px 1fr; grid-template-areas: "media info" "media client"; gap: 6px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .press-list:hover .press-row { opacity: 1; }
  .press-media { grid-area: media; }
  .press-info { grid-area: info; max-width: none; }
  .press-client { grid-area: client; justify-content: flex-start; align-self: end; }
  .press-name { max-width: none; font-size: 12px; color: var(--muted); }
  .press-num { font-size: 14px; }
  .press-info h3 { font-size: 15px; }
  .press-type { font-size: 13px; }
  .press-cat { display: none; }
  .filters { justify-content: flex-start; }

  .split { grid-template-columns: 1fr; }
  .split-media { position: relative; top: 0; max-width: 460px; }
  .pillars { grid-template-columns: 1fr; }

  /* services: swipe horizontally */
  .svc-head .section-title { font-size: clamp(34px, 10vw, 56px); }
  .svc-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .svc-viewport::-webkit-scrollbar { display: none; }
  .svc-col { width: 82vw; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .svc-col-body { grid-template-columns: 1fr; }
  .svc-img { aspect-ratio: 16 / 10; }

  /* case studies: stacked, the slide becomes a swipe strip */
  .cs-list { margin: 0; }
  .cs { --open-h: 230px; padding: 26px 0; }
  .cs-track, .cs.is-open .cs-track { flex-direction: column; gap: 16px; padding: 0; overflow: visible; cursor: auto; }
  .cs-lead, .cs.is-open .cs-lead { flex: none; width: 100%; align-items: flex-start; }
  .cs-label { width: 100%; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .cs-label .press-num { font-size: 40px; line-height: 1; }
  .cs-label .press-name { font-size: 15px; letter-spacing: .14em; color: var(--text); max-width: none; }
  .cs.is-open .cs-tags { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .cs.is-open .cs-close-top { display: none; }
  .cs-media, .cs.is-open .cs-media { flex: none; width: 100%; }
  .cs-info { flex: none; width: 100%; }
  .cs.is-open .cs-extra {
    width: calc(100% + var(--gutter)); margin-right: calc(-1 * var(--gutter));
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
  }
  .cs-extra::-webkit-scrollbar { display: none; }
  .cs-extra > * { scroll-snap-align: start; }
  .cs-text, .cs-quote { flex: 0 0 78vw; }
  .cs-end { padding-right: var(--gutter); }
  .cs.is-open .cs-controls { padding: 16px 0 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tm-card { flex-basis: 86vw; }
  .tm-card blockquote { font-size: 15px; -webkit-line-clamp: 8; line-clamp: 8; }
  .lightbox { grid-template-columns: 1fr; padding: 60px 14px 20px; }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
  .lightbox img { max-height: calc(100vh - 200px); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo img { width: 128px; }
  .steps { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

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