/* =====================================================================
   ThoughtOcean Technologies — styles
   Dark ocean theme · one cyan accent · design tokens in :root
   ===================================================================== */

:root {
  --bg: #030812;
  --bg-2: #060f20;
  --bg-3: #0a1730;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #e8f1ff;
  --muted: #a9bad4;          /* 15. contrast: ~9:1 on --bg */
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, #22d3ee 0%, #6ee7f9 30%, #8b5cf6 70%, #c084fc 100%);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  /* 4. mono only where needed: UI labels use the body face; --font-code is for timestamps/code */
  --font-mono: var(--font-body);
  --font-code: "JetBrains Mono", ui-monospace, monospace;
  /* 11. one accent colour */
  --accent: #22d3ee;
  --accent-hover: #67e8f9;
  --accent-ink: #041018;
  --accent-soft: rgba(34, 211, 238, 0.1);
  /* 5. spacing + radius scale (14. inner radius = outer − padding) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;
  --radius-xs: 6px;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradShift 6s ease-in-out infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.label::before { content: ""; width: 22px; height: 1px; background: var(--cyan); }

/* "Book a call" buttons stay hidden until BOOKING_URL is set in main.js */
html:not(.has-booking) [data-book] { display: none !important; }

/* ---------- progress / grain ---------- */
summary, .check__item, .filter, .symptom { cursor: pointer; }

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); background-size: 200% 100%; box-shadow: 0 0 16px var(--cyan); }

.grain {
  position: fixed; inset: -50%; z-index: 1000; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-2%); } 80% { transform: translate(3%,3%); }
}

/* ---------- buttons / chips ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s, background .3s, border-color .3s;
  will-change: transform; white-space: nowrap;
}
.btn--lg { padding: 18px 30px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--primary {
  color: #041018; background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.6);
}
.btn--primary:hover { background-position: 100% 50%; box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.7); transform: translateY(-2px); }
.btn--ghost { color: var(--text); border-color: var(--border-2); background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(34,211,238,0.08); transform: translateY(-2px); }
.btn .arrow { font-style: normal; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 0.85rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.chip i { font-style: normal; }

.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .04em; padding: 5px 10px; border-radius: 6px;
  background: rgba(34,211,238,0.07); color: #9be9f5; border: 1px solid rgba(34,211,238,0.15);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900; padding: 18px 0;
  transition: padding .35s var(--ease), background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { padding: 10px 0; background: rgba(3, 8, 18, 0.72); backdrop-filter: blur(18px) saturate(140%); border-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.btn) { position: relative; font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color .25s; padding: 6px 0; }
.nav__links > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--grad); transition: width .3s var(--ease); }
.nav__links > a:not(.btn):hover, .nav__links > a.is-active { color: var(--text); }
.nav__links > a:not(.btn):hover::after, .nav__links > a.is-active::after { width: 100%; }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 12px; border: 1px solid var(--border); }
.burger span { width: 20px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .3s; border-radius: 2px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding: 130px 0 90px;
  background: radial-gradient(ellipse at 50% 100%, #0a1a3a 0%, var(--bg) 60%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .55; animation: float 12s ease-in-out infinite alternate; }
.hero__glow--1 { width: 520px; height: 520px; background: rgba(34,211,238,0.28); top: -120px; left: -120px; }
.hero__glow--2 { width: 600px; height: 600px; background: rgba(139,92,246,0.28); bottom: -200px; right: -160px; animation-delay: -6s; }
@keyframes float { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, 30px) scale(1.1); } }
.hero__inner { position: relative; z-index: 2; max-width: 960px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(34,211,238,.25); background: rgba(34,211,238,.06); backdrop-filter: blur(10px); margin-bottom: 28px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.7); } 70% { box-shadow: 0 0 0 12px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
.hero__title { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 26px; }
.hero__type { font-family: var(--font-head); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--muted); margin-bottom: 20px; min-height: 1.5em; }
.typewriter { color: var(--text); }
.caret { color: var(--cyan); animation: blink 1s steps(2) infinite; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 640px; margin-bottom: 40px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid var(--border-2); border-radius: 14px;
}
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: scrollHint 1.8s ease-in-out infinite; }
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-mono); font-size: 0.9rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "◆"; font-size: 0.5rem; color: var(--cyan); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 130px) 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-top: 18px; max-width: 640px; }

/* ---------- cards ---------- */
.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .35s, transform .5s var(--ease), box-shadow .5s;
  transform-style: preserve-3d;
  --mx: 50%; --my: 50%;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(34,211,238,0.14), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: -1px; z-index: 0; border-radius: inherit; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(139,92,246,0.35), transparent 45%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.grid { display: grid; gap: 18px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--projects { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card--service, .card--project { padding: 28px; display: flex; flex-direction: column; }
.card--service p, .card--project p { color: var(--muted); font-size: 0.95rem; margin-top: 10px; flex: 1; }
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(139,92,246,.15)); border: 1px solid rgba(255,255,255,.08);
  transform: translateZ(30px);
}
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card__emoji { font-size: 2rem; transform: translateZ(30px); }
.card__num { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); opacity: .6; }
.card--project.is-hidden { display: none; }
.card--project.is-entering { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .9rem; font-weight: 500; transition: all .3s var(--ease); background: var(--surface); }
.filter:hover { border-color: var(--border-2); color: var(--text); }
.filter.is-active { color: #041018; background: var(--grad); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(34,211,238,.6); }
.projects__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 50px; padding: 28px 32px; border-radius: var(--radius); border: 1px dashed var(--border-2); }
.projects__more p { font-size: 1.1rem; color: var(--muted); }
.projects__more strong { color: var(--text); }

/* ---------- gap analysis ---------- */
.gap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.gap__steps { display: flex; flex-direction: column; gap: 6px; position: relative; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 20px; border-radius: var(--radius-sm); transition: background .3s; }
.step:hover { background: var(--surface); }
.step__num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.step p { color: var(--muted); font-size: .95rem; margin-top: 6px; }

.gap__finder { padding: 30px; position: sticky; top: 100px; }
.finder__head p { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.finder__symptoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 24px 0; }
.symptom {
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: .86rem; color: var(--muted); text-align: left; transition: all .25s var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.symptom::before { content: "+"; font-family: var(--font-mono); color: var(--cyan); transition: transform .25s; }
.symptom:hover { border-color: var(--border-2); color: var(--text); transform: translateY(-1px); }
.symptom.is-on { color: var(--text); border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.1); box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.symptom.is-on::before { content: "✓"; }
.finder__result { border-top: 1px solid var(--border); padding-top: 22px; min-height: 90px; }
.finder__empty { color: var(--muted); font-size: .9rem; text-align: center; padding: 14px; }
.finder__title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.solution { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); animation: cardIn .4s var(--ease) both; }
.solution:last-of-type { border-bottom: 0; }
.solution__icon { font-size: 1.4rem; line-height: 1; padding-top: 3px; }
.solution b { display: block; font-family: var(--font-head); font-size: 1rem; }
.solution span { color: var(--muted); font-size: .86rem; }
.solution small { display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: .68rem; color: var(--teal); }
.finder__cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.finder__cta p { font-size: .85rem; color: var(--muted); flex: 1; min-width: 180px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; padding: 36px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(139,92,246,.08)); border: 1px solid var(--border); }
.stat { text-align: center; padding: 10px; }
.stat__val { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat__val small { font-size: .5em; }
.stat__lbl { color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding-top: 40px; }
.timeline__line { position: absolute; top: 47px; left: 0; right: 0; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.timeline__line span { display: block; height: 100%; width: 0; background: var(--grad); background-size: 200% 100%; transition: width 1.4s var(--ease); box-shadow: 0 0 12px var(--cyan); }
.tl { position: relative; padding-top: 34px; }
.tl__dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 0 6px rgba(34,211,238,.1); transition: transform .3s var(--ease); }
.tl:hover .tl__dot { transform: scale(1.3); background: var(--cyan); }
.tl__time { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 8px; }
.tl__body p { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ---------- industries ---------- */
.industries { display: flex; flex-wrap: wrap; gap: 10px; }
.industries span {
  padding: 14px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; font-size: .95rem;
  transition: all .3s var(--ease);
}
.industries span:hover { border-color: var(--cyan); background: rgba(34,211,238,.08); transform: translateY(-3px) rotate(-1deg); box-shadow: 0 10px 30px -10px rgba(34,211,238,.4); }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why__text p { color: var(--muted); font-size: 1.08rem; margin: 20px 0 30px; }
.why__list { display: flex; flex-direction: column; gap: 10px; }
.why__item { display: grid; gap: 4px; padding: 20px 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--cyan); transition: transform .35s var(--ease), border-color .3s, background .3s; }
.why__item:hover { transform: translateX(8px); background: var(--surface-2); border-left-color: var(--violet); }
.why__item b { font-family: var(--font-head); font-size: 1.02rem; }
.why__item span { color: var(--muted); font-size: .9rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; padding: clamp(30px, 5vw, 60px); background: linear-gradient(135deg, rgba(34,211,238,.06), rgba(139,92,246,.06)), var(--surface); }
.contact__text p { color: var(--muted); font-size: 1.05rem; margin-top: 18px; }
.contact__meta { margin-top: 30px; display: grid; gap: 4px; }
.contact__meta a { font-family: var(--font-mono); font-size: 1rem; color: var(--cyan); }
.contact__meta span { color: var(--muted); font-size: .85rem; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(3,8,18,.5); color: var(--text);
  font: inherit; font-size: .95rem; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.form select option { background: var(--bg-3); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.12); }
.form input.is-invalid, .form textarea.is-invalid { border-color: var(--pink); }
.form .btn { justify-self: start; }
.form__note { font-size: .78rem; color: var(--muted); }
.form__note.is-success { color: var(--teal); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer__brand p { color: var(--muted); margin-top: 14px; font-size: .95rem; }
.footer__brand .footer__aus { margin-top: 8px; font-size: .82rem; color: var(--teal); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer__cols h5 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; font-family: var(--font-mono); font-weight: 500; }
.footer__cols a { display: block; color: var(--muted); font-size: .92rem; padding: 4px 0; transition: color .2s, transform .2s; }
.footer__cols a:hover { color: var(--cyan); transform: translateX(4px); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.to-top:hover { color: var(--cyan); }

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

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section--flush-top { padding-top: 0; }
.section--tight-bottom { padding-bottom: 60px; }
.filter small { font-family: var(--font-mono); font-size: .7rem; opacity: .7; margin-left: 4px; }

/* ---------- hero note ---------- */
.hero__note { display: inline-block; margin-top: 26px; font-size: .92rem; color: var(--muted); border-bottom: 1px dashed var(--border-2); padding-bottom: 2px; transition: color .25s, border-color .25s; }
.hero__note b { color: var(--text); font-weight: 600; }
.hero__note:hover { color: var(--text); border-color: var(--cyan); }

/* ---------- client logos ---------- */
.clients { padding: 46px 0 40px; }
.clients__title { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 26px; }
.logos { position: relative; overflow: hidden; }
.logos::before, .logos::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.logos::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.logos::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.logos__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__dup { display: contents; }
.logos__item { flex: none; display: grid; place-items: center; height: 64px; padding: 0 34px; }
.logos__item img { height: 34px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); opacity: .55; transition: opacity .3s, transform .3s var(--ease); }
.logos__item:hover img, .logos__item:focus-visible img { opacity: 1; transform: scale(1.06); }

/* ---------- service pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pillar { padding: clamp(26px, 3.5vw, 40px); display: flex; flex-direction: column; }
.pillar__kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--teal); margin-bottom: 14px; }
.pillar h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.pillar > p { color: var(--muted); margin-top: 12px; }
.pillar__list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 4px; flex: 1; }
.pillar__list li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; transition: background .3s, border-color .3s; }
.pillar__list li:hover { background: var(--surface-2); border-color: var(--border); }
.pillar__list b { font-family: var(--font-head); font-size: 1rem; }
.pillar__list span { color: var(--muted); font-size: .9rem; }
.pillar__cta { font-weight: 600; color: var(--cyan); display: inline-flex; gap: 8px; align-items: center; }
.pillar__cta .arrow { font-style: normal; transition: transform .3s var(--ease); }
.pillar__cta:hover .arrow { transform: translateX(4px); }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.also__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.also a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .86rem; color: var(--muted); transition: all .25s var(--ease); }
.also a:hover { color: var(--text); border-color: var(--cyan); background: rgba(34,211,238,.08); transform: translateY(-2px); }

/* ---------- solution cards ---------- */
.grid--starts { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card--link { color: inherit; }
.card__go { margin-top: 18px; font-weight: 600; font-size: .92rem; color: var(--cyan); display: inline-flex; gap: 8px; }
.card__go .arrow { font-style: normal; transition: transform .3s var(--ease); }
.card--link:hover .card__go .arrow { transform: translateX(4px); }

/* ---------- problem / inbox ---------- */
.problem { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.problem__text h2 { margin-bottom: 22px; }
.problem__text p { color: var(--muted); font-size: 1.05rem; margin-top: 12px; }
.problem__jobs { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.problem__jobs li { display: flex; gap: 14px; align-items: baseline; font-weight: 500; }
.problem__jobs span { font-family: var(--font-mono); font-size: .75rem; color: var(--cyan); }
.inbox { padding: 0; font-size: .92rem; }
.inbox__head { display: flex; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.inbox__status { display: inline-flex; align-items: center; gap: 8px; color: var(--pink); }
.inbox__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: blink 1.4s steps(2) infinite; }
.inbox__rows { list-style: none; margin: 0; padding: 6px 0; }
.inbox__rows li { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: start; padding: 14px 20px; border-bottom: 1px dashed var(--border); }
.inbox__rows time { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); padding-top: 2px; }
.inbox__rows b { display: block; font-family: var(--font-head); font-size: .95rem; }
.inbox__rows span { color: var(--muted); font-size: .88rem; }
.inbox__rows em { font-style: normal; font-family: var(--font-mono); font-size: .68rem; padding: 4px 8px; border-radius: 6px; color: var(--pink); background: rgba(244,114,182,.08); border: 1px solid rgba(244,114,182,.2); white-space: nowrap; }
.inbox__foot { padding: 18px 20px 20px; color: var(--muted); font-size: .9rem; }
.inbox__foot b { color: var(--text); }

/* ---------- case studies ("our work" cards) ---------- */
.cases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.cases--compact { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.case-tile.is-hidden { display: none; }
.case-tile.is-entering { animation: cardIn .5s var(--ease) both; }
.work {
  height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .35s, box-shadow .35s, transform .5s var(--ease);
}
.work:hover, .work:focus-visible { border-color: rgba(139,92,246,.5); box-shadow: 0 28px 60px -28px rgba(139,92,246,.55); transform: translateY(-4px); }
.work:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.work__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); border-bottom: 1px solid var(--border); }
.work__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover .work__media video { transform: scale(1.05); }
.work__logo {
  position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; height: 38px; max-width: 150px; padding: 0 12px;
  border-radius: 999px; background: rgba(3,8,18,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px);
}
.work__logo img { height: 20px; width: auto; max-width: 124px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.work__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 18px; }
.work__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.work__cat { color: var(--teal); }
.work__num { color: var(--muted); opacity: .7; }
.work__title { font-family: var(--font-head); font-size: 1.22rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin-top: 2px; }
.work__sum { color: var(--muted); font-size: .92rem; }
.work__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px dashed var(--border); }
.work__credit { font-size: .76rem; color: var(--muted); }
.work__go { flex: none; font-weight: 600; font-size: .86rem; color: var(--cyan); display: inline-flex; gap: 6px; }
.work__go .arrow { font-style: normal; transition: transform .3s var(--ease); }
.work:hover .work__go .arrow { transform: translateX(4px); }

/* software partner row under the client logos */
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; margin-top: 26px; }
.partners-row__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.partners-row__item { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-family: var(--font-head); font-weight: 600; font-size: .95rem; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.partners-row__item:hover { border-color: var(--cyan); background: rgba(34,211,238,.08); transform: translateY(-2px); }
.partners-row__item img { width: 40px; height: 40px; object-fit: contain; }

/* ---------- partner ---------- */
.partner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; margin-top: 30px;
  padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(34,211,238,.05), rgba(139,92,246,.07)), var(--surface);
}
.partner__logo { width: 56px; height: 56px; object-fit: contain; opacity: .9; }
.partner__kicker { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.partner__text p { color: var(--muted); font-size: .95rem; }
.partner__text b { color: var(--text); font-weight: 600; }
.case-credit a, .footer__partner { color: inherit; border-bottom: 1px dashed currentColor; transition: color .25s; }
.case-credit a:hover, .footer__partner:hover { color: var(--cyan); }

/* ---------- comparison ---------- */
.compare { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: .92rem; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.02); }
.compare tbody th { font-family: var(--font-head); font-weight: 700; width: 20%; }
.compare td { color: var(--muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tr.is-us { background: linear-gradient(90deg, rgba(34,211,238,.12), rgba(139,92,246,.12)); }
.compare tr.is-us th { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.compare tr.is-us td { color: var(--text); font-weight: 500; }

/* ---------- promises ---------- */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.promise { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--cyan); transition: transform .35s var(--ease), border-color .3s; }
.promise:hover { transform: translateY(-4px); border-top-color: var(--violet); }
.promise__icon { font-size: 1.4rem; }
.promise b { font-family: var(--font-head); font-size: 1rem; }
.promise span:last-child { color: var(--muted); font-size: .9rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq__item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, background .3s; }
.faq__item[open] { border-color: rgba(34,211,238,.35); background: var(--surface-2); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-2); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; background: var(--cyan); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p { padding: 0 22px 20px; color: var(--muted); }
.faq__item a { color: var(--cyan); border-bottom: 1px solid rgba(34,211,238,.4); }

/* ---------- form extras ---------- */
.form label small { font-weight: 400; opacity: .7; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- sub-page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 160px 0 80px; background: radial-gradient(ellipse at 50% 0%, #0a1a3a 0%, var(--bg) 65%); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__inner > * { max-width: 900px; }
.page-hero .container { position: relative; z-index: 2; }
.page-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 22px; }
.page-title--case { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-lede { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 680px; margin-bottom: 32px; }
.back { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: 30px; transition: color .25s; }
.back:hover { color: var(--text); }

/* ---------- case page ---------- */
.case-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 60px); align-items: center; }
.case-credit { font-family: var(--font-mono); font-size: .8rem; color: var(--teal); margin: -12px 0 24px; }
.case-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.case-hero__logo { height: 48px; width: auto; max-width: 160px; object-fit: contain; filter: brightness(0) invert(1); opacity: .7; }
.case-video { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); background: var(--bg-3); box-shadow: 0 40px 90px -30px rgba(34,211,238,.35); }
.case-video__el { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.case-video__play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--text);
  background: rgba(3,8,18,.75); border: 1px solid var(--border-2); backdrop-filter: blur(10px); transition: border-color .25s, background .25s, transform .3s var(--ease);
}
.case-video__play:hover { border-color: var(--cyan); background: rgba(34,211,238,.15); transform: translateY(-2px); }
.case-video.is-full .case-video__play { display: none; }
.case-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(30px, 5vw, 60px); }
.case-brief p { color: var(--text); opacity: .88; font-size: 1.05rem; margin-top: 4px; }
.case-brief p + p { margin-top: 14px; }
.built { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.built__item { display: flex; gap: 18px; padding: 22px 24px; }
.built__num { font-family: var(--font-head); font-weight: 800; font-size: .9rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.built__item p { color: var(--muted); font-size: .96rem; }
.case-now { margin-top: clamp(40px, 6vw, 70px); padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(139,92,246,.08)); }
.case-now p { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.prose { max-width: 760px; display: grid; gap: 16px; color: var(--muted); font-size: 1.05rem; }
.case-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.case-pager__link { display: grid; gap: 4px; padding: 24px 28px; }
.case-pager__link small { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.case-pager__link b { font-family: var(--font-head); font-size: 1.15rem; }
.case-pager__link span { color: var(--muted); font-size: .9rem; }
.case-pager__link--next { text-align: right; }

/* ---------- CTA band ---------- */
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px; padding: clamp(30px, 5vw, 56px); border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(139,92,246,.1)), var(--surface); }
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.cta-band p { color: var(--muted); margin-top: 10px; max-width: 520px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- services page ---------- */
.svc-count { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.svc-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc-index__col { display: grid; align-content: start; gap: 2px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.svc-index__group { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; margin-bottom: 10px; display: flex; gap: 8px; }
.svc-index__group:hover { color: var(--cyan); }
.svc-index__link { display: grid; gap: 2px; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; transition: background .25s; }
.svc-index__link:hover { background: var(--surface-2); }
.svc-index__link b { font-weight: 600; font-size: .92rem; }
.svc-index__link span { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.svc { padding: 30px; display: flex; flex-direction: column; scroll-margin-top: 110px; }
.svc__short { color: var(--cyan) !important; font-weight: 500; margin: 8px 0 12px; font-size: .95rem; }
.svc > p { color: var(--muted); font-size: .95rem; }
.svc__meta { margin: 22px 0 0; display: grid; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--border); }
.svc__meta div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; }
.svc__meta dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.svc__meta dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc__meta a { font-size: .8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); transition: all .25s; }
.svc__meta a:hover { color: var(--text); border-color: var(--border-2); }
.svc__meta a.is-case { color: #9be9f5; border-color: rgba(34,211,238,.25); background: rgba(34,211,238,.06); }
.svc__meta a.is-case:hover { border-color: var(--cyan); }
section[id], .svc { scroll-margin-top: 80px; }

/* ---------- solution pages ---------- */
.who { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.who__item { position: relative; padding: 24px 24px 24px 56px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-size: 1rem; }
.who__item::before { content: "✓"; position: absolute; left: 20px; top: 22px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: .75rem; color: #041018; background: var(--grad); }
.check { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.check__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check__item {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 1rem; transition: all .25s var(--ease);
}
.check__item::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border-2); display: grid; place-items: center; font-size: .75rem; transition: all .25s; }
.check__item:hover { color: var(--text); border-color: var(--border-2); }
.check__item[aria-pressed="true"] { color: var(--text); border-color: rgba(34,211,238,.55); background: rgba(34,211,238,.08); }
.check__item[aria-pressed="true"]::before { content: "✓"; color: #041018; background: var(--grad); border-color: transparent; }
.check__verdict { position: sticky; top: 100px; padding: 30px; display: grid; gap: 12px; justify-items: start; }
.check__count { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .06em; }
.check__count b { color: var(--cyan); font-size: 1rem; }
.check__title { font-size: 1.5rem; }
.check__body { color: var(--muted); }
.check__verdict.is-bump { animation: cardIn .45s var(--ease) both; }
.grid--starts-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- blog (append to assets/css/styles.css, before the responsive block) ---------- */
.blog-feed { display: inline-block; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); border-bottom: 1px dashed var(--border-2); }
.blog-feed:hover { color: var(--cyan); }
.post-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { padding: 0; }
.post-card.is-hidden { display: none; }
.post-card.is-entering { animation: cardIn .5s var(--ease) both; }
.post-card__link { display: flex; flex-direction: column; height: 100%; padding: 26px 28px; }
.post-card__title { font-size: 1.2rem; line-height: 1.25; margin: 14px 0 10px; }
.post-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.post-card .card__go { margin-top: 18px; }
.post-card--featured { margin-bottom: 28px; background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(139,92,246,.1)), var(--surface); }
.post-card--featured .post-card__link { padding: clamp(28px, 4vw, 44px); }
.post-card--featured .post-card__title { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 820px; }
.post-card--featured p { font-size: 1.05rem; max-width: 720px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.post-meta__cat { color: var(--cyan); padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(34,211,238,.35); background: rgba(34,211,238,.08); }

.page-title--post { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 16px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.post-body { max-width: 720px; font-size: 1.06rem; line-height: 1.75; color: rgba(232,241,255,.88); }
.post-body > * + * { margin-top: 18px; }
.post-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 48px; scroll-margin-top: 100px; color: var(--text); }
.post-body h3 { font-size: 1.15rem; margin-top: 30px; color: var(--text); }
.post-body a { color: var(--cyan); border-bottom: 1px solid rgba(34,211,238,.35); transition: border-color .2s; }
.post-body a:hover { border-color: var(--cyan); }
.post-body strong { color: var(--text); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 8px; }
.post-body li::marker { color: var(--cyan); }
.post-body code { font-family: var(--font-mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.post-body hr { border: 0; border-top: 1px dashed var(--border-2); margin: 40px 0; }
.post-short, .post-callout { padding: 22px 24px; border-radius: var(--radius-sm); border: 1px solid var(--border); border-left: 3px solid var(--cyan); background: var(--surface); }
.post-short { margin-bottom: 30px; background: linear-gradient(135deg, rgba(34,211,238,.07), rgba(139,92,246,.07)); }
.post-short .label { margin-bottom: 8px; }
.post-short p { color: var(--text); }
.post-callout p + p { margin-top: 10px; }
.post-table { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.post-table table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.post-table th, .post-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.post-table thead th { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.02); }
.post-table tbody th { font-weight: 600; color: var(--text); }
.post-table tr:last-child th, .post-table tr:last-child td { border-bottom: 0; }
.post-byline { font-size: .85rem; color: var(--muted); padding-top: 20px; border-top: 1px dashed var(--border); margin-top: 40px !important; }
.post-aside { position: sticky; top: 100px; display: grid; gap: 22px; justify-items: start; }
.post-toc, .post-related { display: grid; gap: 4px; width: 100%; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.post-toc__title { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.post-toc a, .post-related a { font-size: .86rem; color: var(--muted); padding: 5px 0; line-height: 1.4; transition: color .2s; }
.post-toc a:hover, .post-related a:hover { color: var(--cyan); }

@media (max-width: 1000px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
  .post-toc { display: none; }
}
.blog-hero { max-width: none; }
.blog-hero .page-title { max-width: 900px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .svc-index { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .pillars, .problem, .case-hero, .case-body, .check { grid-template-columns: 1fr; }
  .check__verdict { position: static; }
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 34px; gap: 28px; }
  .timeline__line { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .timeline__line span { width: 100% !important; height: 0; transition: height 1.4s var(--ease); }
  .timeline.is-drawn .timeline__line span { height: 100%; }
  .tl { padding-top: 0; }
  .tl__dot { left: -34px; top: 2px; }
  .gap, .why, .contact, .footer__inner { grid-template-columns: 1fr; }
  .gap__finder { position: static; }
}
@media (max-width: 1060px) {
  .nav__links {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
    padding: 100px 32px 40px; background: rgba(3,8,18,.96); backdrop-filter: blur(20px);
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .35s, transform .35s var(--ease);
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav__links > a:not(.btn) { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--text); }
  .nav__cta { margin-top: 20px; }
  .burger { display: flex; }
}
@media (max-width: 760px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .svc-index { grid-template-columns: 1fr; }
  .svc { padding: 24px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc__meta div { grid-template-columns: 1fr; gap: 6px; }
  .case-pager { grid-template-columns: 1fr; }
  .case-pager__link--next { text-align: left; }
  .cases { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 60px; }
  .case-hero__logo { height: 34px; }
  .partner { grid-template-columns: auto 1fr; padding: 20px; }
  .partner .btn { grid-column: 1 / -1; justify-self: start; }
  .inbox__rows li { grid-template-columns: 44px 1fr; }
  .inbox__rows em { grid-column: 2; justify-self: start; }
  /* comparison table becomes stacked cards */
  .compare { overflow: visible; border: 0; background: none; }
  .compare table { min-width: 0; }
  .compare thead { display: none; }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { margin-bottom: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
  .compare tbody th { width: auto; font-size: 1.05rem; padding: 16px 18px 6px; border: 0; }
  .compare td { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 18px; border: 0; }
  .compare td:last-child { padding-bottom: 16px; }
  .compare td::before { content: attr(data-label); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
}
@media (max-width: 640px) {
  .hero { padding: 120px 0 90px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .stats { padding: 24px 16px; }
  .step { grid-template-columns: 44px 1fr; padding: 16px 12px; }
  .projects__more { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   Design system v2 ("unslopped")
   Overrides the earlier, more decorative rules above. Numbers refer to
   the 20-point checklist (badges, labels, mono, accent, icons, radii...).
   ===================================================================== */

/* 11. one accent colour: no gradient text, no shifting gradients */
.grad { background: none; color: var(--accent); animation: none; -webkit-text-fill-color: currentColor; }
.step__num, .stat__val, .built__num, .compare tr.is-us th { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); }
.nav__links > a:not(.btn)::after, .timeline__line span { background: var(--accent); box-shadow: none; }
.who__item::before, .check__item[aria-pressed="true"]::before { background: var(--accent); }
.compare tr.is-us { background: var(--accent-soft); }
.stats, .contact, .cta-band, .case-now, .partner { background: var(--surface); }

/* 10. emphasise the CTA: the only solid-accent element on screen */
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 10px 28px -12px rgba(34, 211, 238, .8); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--border-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.filter.is-active { background: var(--text); color: var(--bg); box-shadow: none; }

/* 13. remove embellishments: grain, progress bar, glows, pulse, spotlight */
.grain, .progress, .hero__glow, .pulse, .scroll-hint { display: none !important; }
.card::before, .card::after { display: none; }
.card:hover { box-shadow: none; }

/* 2 + 4. remaining labels: plain body text, no decorative rule */
.label { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.label::before { display: none; }
.tags li, .case-credit, .work__meta, .filter small, .footer__cols h5, .clients__title, .partners-row__label,
.partner__kicker, .pillar__kicker, .also__label, .svc-count, .svc__meta dt, .check__count, .tl__time,
.finder__title, .solution small, .case-pager__link small, .contact__meta a {
  font-family: var(--font-body); letter-spacing: .04em;
}
.inbox__head, .inbox__rows time, .inbox__rows em { font-family: var(--font-code); }

/* 16. wrap headlines properly */
h1, h2, h3, .hero__title, .page-title, .work__title, .case-now p { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

/* 18. tabular numbers wherever numbers line up or change */
.stat__val, .work__num, .filter small, .check__count, .inbox__rows time, .tl__time, .built__num, .step__num,
.svc-count, .card__num, .post-meta { font-variant-numeric: tabular-nums; }

/* 17. align by eye: icons and arrows sit on the text's optical centre */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }
.btn .arrow, .card__go .arrow, .work__go .arrow, .pillar__cta .arrow, .hero__link .arrow { display: inline-block; transform: translateY(-.04em); }
.btn:hover .arrow { transform: translate(3px, -.04em); }

/* 12. consistent icons in their containers */
.card__icon { width: 44px; height: 44px; font-size: 1rem; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid rgba(34, 211, 238, .2); color: var(--accent); transform: none; }
.card__icon .icon { width: 22px; height: 22px; }
.promise__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-size: 1rem; }
.promise__icon .icon { width: 20px; height: 20px; }
.promise { border-top: 1px solid var(--border); }
.promise:hover { border-top-color: var(--border-2); }
.svc-index__group .icon { width: 20px; height: 20px; color: var(--accent); }

/* 8. group with spacing, not boxes and dashed rules */
.projects__more { border: 0; padding: var(--space-5) 0 0; margin-top: var(--space-6); }
.work__foot { border-top: 0; padding-top: var(--space-3); }
.svc__meta { border-top: 0; padding-top: var(--space-2); gap: var(--space-3); }
.solution { border-bottom: 0; padding: var(--space-2) 0; grid-template-columns: 1fr; }
.solution__icon { display: none; }
.section__head { margin-bottom: clamp(32px, 4vw, 48px); }
.section__head p { margin-top: var(--space-3); }

/* 14. inner radius = outer radius minus padding (never larger than the parent curve) */
.card, .work, .compare, .cta-band, .case-now, .stats, .contact, .faq__item { border-radius: var(--radius); }
.pillar__list li { border-radius: var(--radius-xs); }
.work__logo { border-radius: calc(var(--radius) - 12px); }
.form input, .form select, .form textarea { border-radius: var(--radius-sm); }
.contact .form input, .contact .form select, .contact .form textarea { border-radius: var(--radius-xs); }

/* 15. contrast: no faded secondary text */
.work__num, .case-hero__logo { opacity: 1; }
.work__credit, .tl__body p, .finder__head p { color: var(--muted); }

/* 1 + 6 + 7. hero: no badges; the real product is the main visual */
.hero { min-height: auto; padding: 150px 0 90px; background: radial-gradient(ellipse at 70% 30%, rgba(34, 211, 238, .08), transparent 60%), var(--bg); }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__kicker { font-size: .95rem; font-weight: 600; color: var(--accent); margin-bottom: var(--space-4); }
.hero__title { font-size: clamp(2.3rem, 4.6vw, 3.8rem); margin-bottom: var(--space-5); }
.hero__sub { font-size: clamp(1.02rem, 1.4vw, 1.15rem); margin-bottom: var(--space-6); max-width: 560px; }
.hero__cta { align-items: center; gap: var(--space-3) var(--space-4); margin-bottom: var(--space-5); }
.hero__link { font-weight: 600; color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.hero__link:hover { color: var(--accent); }
.hero__note { margin-top: 0; border-bottom: 0; color: var(--muted); }
.hero__product { margin: 0; }
.hero__frame { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
.hero__video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero__product figcaption { margin-top: var(--space-3); font-size: .9rem; color: var(--muted); }
.hero__product figcaption b { color: var(--text); }
.hero__product figcaption a { color: var(--accent); font-weight: 600; }
@media (max-width: 1000px) {
  .hero { padding: 120px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; }
}

/* 19. loading states: shimmer placeholder until the poster/video paints */
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.work__media, .hero__frame, .case-video {
  background: linear-gradient(100deg, var(--bg-3) 30%, #11234a 50%, var(--bg-3) 70%) var(--bg-3);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.work__media.is-loaded, .hero__frame.is-loaded, .case-video.is-loaded { animation: none; background: var(--bg-3); }
.btn.is-busy { pointer-events: none; opacity: .85; }
.btn.is-busy .arrow { display: none; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.case-video__play.is-busy { opacity: .8; pointer-events: none; }

/* 20. animate useful feedback only */
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.form .is-invalid { border-color: var(--pink) !important; animation: nudge .3s var(--ease); }
.form__note.is-success { color: var(--teal); animation: cardIn .4s var(--ease) both; }
.form__note.is-error { color: var(--pink); }
.check__item[aria-pressed="true"]::before { animation: pop .25s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.filter:active { transform: scale(.97); }
.reveal { transform: translateY(12px); transition-duration: .5s; }

@media (prefers-reduced-motion: reduce) {
  .work__media, .hero__frame, .case-video { animation: none; }
}

/* 8. tighter, consistent vertical rhythm between sections */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--tight { padding: 32px 0; }
.hero__title { font-size: clamp(2.3rem, 4.1vw, 3.4rem); }

/* hero: single column, copy only */
.hero__grid { grid-template-columns: minmax(0, 1fr); }
.hero__copy { max-width: 820px; }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
