:root {
  --bg: #07090d;
  --bg-soft: #0b0f15;
  --surface: #101620;
  --surface-2: #151d28;
  --surface-3: #1a2531;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f8fb;
  --muted: #9ba8b6;
  --muted-strong: #c7d0da;
  --accent: #76e8ff;
  --accent-strong: #20c9ef;
  --accent-soft: rgba(118, 232, 255, 0.12);
  --success: #74e6bd;
  --warning: #f4d27a;
  --max-width: 1180px;
  --header-height: 74px;
  --radius: 22px;
  --radius-small: 14px;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.05rem, 6.4vw, 6.35rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.5vw, 4.3rem);
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

p {
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #061016;
  background: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 16px;
  color: #051016;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell,
.header-inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  content: "";
  background: currentColor;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #061016;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(32, 201, 239, 0.18);
}

.button.primary:hover {
  background: #a4f1ff;
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 750;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(3px, -2px);
}

.icon-shell {
  display: inline-grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(118, 232, 255, 0.2);
  border-radius: 13px;
}

.icon-shell.large {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.icon-shell img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(84%) sepia(36%) saturate(1002%) hue-rotate(161deg) brightness(101%) contrast(102%);
}

.icon-shell.large img {
  width: 28px;
  height: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(7, 9, 13, 0.74);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  background: rgba(7, 9, 13, 0.94);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 650;
  transition: color 160ms ease;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  color: #071016;
  background: var(--accent);
  border-radius: 999px;
  line-height: 1;
}

.site-nav .nav-cta:hover {
  color: #071016;
  background: #a4f1ff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.menu-icon {
  display: grid;
  gap: 4px;
}

.menu-icon i {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: opacity 160ms ease, transform 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:first-child {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - var(--header-height));
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  top: -30%;
  left: -15%;
  width: 780px;
  height: 780px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(32, 201, 239, 0.11), transparent 65%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  padding-block: clamp(72px, 10vw, 130px);
}

.hero-copy {
  max-width: 650px;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  line-height: 1.65;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.hero-signals li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.hero-signals li::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(118, 232, 255, 0.8);
}

.hero-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 8, 12, 0.86));
}

.hero-media > img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-path {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero-path span {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--muted-strong);
  background: rgba(6, 10, 15, 0.76);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.hero-path b {
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.section {
  position: relative;
  padding-block: clamp(90px, 11vw, 150px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 64px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-heading h2 {
  max-width: 800px;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 470px;
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.75;
}

.who-section {
  background: var(--bg-soft);
}

.audience-visual {
  position: relative;
  min-height: 530px;
  margin-bottom: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.audience-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 7, 10, 0.88));
}

.audience-visual > img {
  width: 100%;
  height: 100%;
  min-height: 530px;
  object-fit: cover;
}

.audience-labels {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.audience-labels > span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  align-items: center;
  padding: 16px;
  background: rgba(8, 12, 17, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(16px);
}

.audience-labels .icon-shell {
  grid-row: 1 / span 2;
}

.audience-labels b {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.audience-labels small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.transformation-section {
  overflow: hidden;
  background: var(--bg);
}

.transformation-section::before {
  position: absolute;
  top: 20%;
  right: -20%;
  width: 620px;
  height: 620px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(32, 201, 239, 0.08), transparent 65%);
}

.transformation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(42px, 7vw, 84px);
  align-items: center;
}

.transformation-copy h2 {
  max-width: 650px;
}

.section-lede {
  max-width: 600px;
  color: var(--muted-strong);
  font-size: 1.08rem;
  line-height: 1.72;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 38px;
}

.before-after > div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.before-after > .after-state {
  background: var(--accent-soft);
  border-color: rgba(118, 232, 255, 0.24);
}

.before-after span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.before-after .after-state span {
  color: var(--accent);
}

.before-after ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  list-style: none;
}

.before-after li {
  display: flex;
  gap: 8px;
}

.before-after li::before {
  color: var(--accent);
  content: "•";
}

.system-visual {
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.system-visual img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
}

.system-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 11px 14px;
  color: var(--muted-strong);
  background: rgba(7, 10, 14, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.transformation-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(38px, 6vw, 70px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.transformation-card {
  position: relative;
  min-height: 240px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.transformation-card:last-child {
  border-right: 0;
}

.transformation-card > span {
  position: absolute;
  top: 32px;
  right: 28px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.transformation-card h3 {
  margin-top: 32px;
}

.transformation-card p {
  max-width: 300px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.services-section {
  background: var(--bg-soft);
}

.anchor-alias {
  position: absolute;
  top: 0;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.capability-card {
  position: relative;
  min-height: 430px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.capability-card:hover {
  background: linear-gradient(145deg, rgba(118, 232, 255, 0.09), rgba(255, 255, 255, 0.02));
  border-color: rgba(118, 232, 255, 0.28);
  transform: translateY(-3px);
}

.capability-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
}

.capability-top > span {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.capability-card h3 {
  max-width: 360px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.capability-card > p {
  max-width: 490px;
  margin-bottom: 28px;
}

.capability-card ul {
  display: grid;
  gap: 11px;
  padding: 20px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.84rem;
  list-style: none;
}

.capability-card li {
  display: flex;
  gap: 10px;
}

.capability-card li::before {
  color: var(--accent);
  content: "↳";
}

.work-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  margin-top: 18px;
  background: linear-gradient(110deg, var(--surface-2), rgba(32, 201, 239, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.work-bridge .eyebrow {
  margin-bottom: 12px;
}

.work-bridge h2 {
  max-width: 710px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.contact-section {
  padding-block: clamp(90px, 11vw, 150px);
  background: var(--bg);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: end;
  padding: clamp(34px, 6vw, 72px);
  background: linear-gradient(135deg, var(--surface-2), rgba(32, 201, 239, 0.09));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.6vw, 4.7rem);
}

.contact-action p {
  margin-bottom: 26px;
  color: var(--muted-strong);
}

.site-footer {
  padding-block: 54px 34px;
  background: #05070a;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
  align-items: start;
}

.footer-brand p {
  max-width: 360px;
  margin: 16px 0 0;
  font-size: 0.83rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted-strong);
  font-size: 0.79rem;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  margin: 0;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

/* Portfolio */

.portfolio-hero {
  position: relative;
  padding-block: clamp(100px, 13vw, 180px) clamp(76px, 9vw, 120px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.portfolio-hero::before {
  position: absolute;
  top: -260px;
  right: -140px;
  width: 680px;
  height: 680px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(32, 201, 239, 0.12), transparent 67%);
}

.portfolio-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: clamp(50px, 9vw, 120px);
  align-items: end;
}

.portfolio-hero h1 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(3.1rem, 6.5vw, 6.8rem);
}

.portfolio-intro > p {
  color: var(--muted-strong);
  font-size: 1.07rem;
  line-height: 1.75;
}

.portfolio-intro ul {
  display: grid;
  gap: 10px;
  padding: 20px 0 0;
  margin-bottom: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  list-style: none;
}

.portfolio-intro li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.portfolio-intro li::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.featured-work {
  padding-block: clamp(85px, 10vw, 140px);
  background: var(--bg-soft);
}

.compact-heading {
  max-width: 820px;
  margin-bottom: clamp(42px, 6vw, 70px);
}

.compact-heading h2 {
  margin-bottom: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.featured-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 200ms ease, transform 200ms ease;
}

.featured-card:hover {
  border-color: rgba(118, 232, 255, 0.24);
  transform: translateY(-4px);
}

.featured-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #090d12;
  border-bottom: 1px solid var(--line);
}

.featured-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

a.featured-media:hover > img {
  transform: scale(1.025);
}

.featured-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 27px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status {
  padding: 6px 9px;
  color: var(--warning);
  background: rgba(244, 210, 122, 0.1);
  border: 1px solid rgba(244, 210, 122, 0.2);
  border-radius: 999px;
}

.status.live {
  color: var(--success);
  background: rgba(116, 230, 189, 0.09);
  border-color: rgba(116, 230, 189, 0.2);
}

.project-number {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.featured-copy h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.featured-copy > p {
  font-size: 0.88rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 14px 0 24px;
  list-style: none;
}

.tag-list li {
  padding: 5px 8px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 650;
}

.featured-copy .text-link,
.availability-note {
  margin-top: auto;
}

.availability-note {
  padding-top: 14px;
  margin-bottom: 0;
  border-top: 1px solid var(--line);
  font-size: 0.74rem !important;
}

.cpi-media {
  background: #070707;
}

.cpi-media::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.76) 38%, rgba(5, 5, 5, 0.08) 68%);
}

.cpi-media > .cpi-action {
  width: 67%;
  margin-left: auto;
  object-position: center 34%;
}

.cpi-brand {
  position: absolute;
  top: 50%;
  left: 6%;
  z-index: 2;
  width: 37%;
  transform: translateY(-50%);
}

.cpi-brand img {
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
}

.growth-section {
  background: var(--bg);
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.flow-context {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.flow-context figure {
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.flow-context figure img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.flow-context figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.72rem;
}

.flow-key {
  display: grid;
  gap: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  list-style: none;
}

.flow-key li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  color: var(--muted-strong);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 650;
}

.flow-key span {
  color: var(--accent);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.growth-flow {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-stage {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: background 180ms ease, border-color 180ms ease;
}

.flow-stage.is-open {
  background: linear-gradient(145deg, rgba(118, 232, 255, 0.075), rgba(255, 255, 255, 0.025));
  border-color: rgba(118, 232, 255, 0.26);
}

.flow-stage > h3 {
  margin: 0;
}

.flow-trigger {
  display: grid;
  width: 100%;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.stage-number {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.stage-title {
  display: grid;
  gap: 6px;
}

.stage-title b {
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.stage-title small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 450;
  line-height: 1.45;
}

.flow-toggle {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.flow-toggle::before,
.flow-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  content: "";
  background: var(--muted-strong);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.flow-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.flow-trigger[aria-expanded="true"] .flow-toggle {
  border-color: var(--accent);
}

.flow-trigger[aria-expanded="true"] .flow-toggle::before,
.flow-trigger[aria-expanded="true"] .flow-toggle::after {
  background: var(--accent);
}

.flow-trigger[aria-expanded="true"] .flow-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.flow-panel {
  padding: 0 22px 22px 103px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.service-list article {
  min-height: 135px;
  padding: 18px;
  background: rgba(5, 8, 12, 0.46);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.service-list p {
  margin-bottom: 0;
  font-size: 0.76rem;
  line-height: 1.55;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 20px;
  }

  .site-nav a {
    font-size: 0.77rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 42px;
  }

  .hero-media,
  .hero-media > img {
    min-height: 490px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .featured-card:last-child .featured-media {
    height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .page-shell,
  .header-inner {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 3px;
    align-items: stretch;
    padding: 12px;
    visibility: hidden;
    background: rgba(11, 15, 21, 0.98);
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: visibility 180ms ease, opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.88rem;
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.045);
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin-top: 6px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .transformation-grid,
  .portfolio-hero-grid,
  .flow-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-media,
  .hero-media > img {
    min-height: 510px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .section-heading > p {
    max-width: 700px;
  }

  .transformation-grid {
    gap: 50px;
  }

  .system-visual img {
    min-height: 420px;
  }

  .flow-context {
    position: static;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
  }

  .flow-context figure {
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2.15rem, 10vw, 3.4rem);
  }

  .brand span {
    display: none;
  }

  .hero-grid {
    padding-block: 66px 76px;
  }

  .hero-media,
  .hero-media > img {
    min-height: 420px;
  }

  .hero-path {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .hero-path span {
    min-height: 52px;
    justify-content: center;
    padding: 8px;
  }

  .hero-path b {
    display: none;
  }

  .audience-visual {
    min-height: auto;
    overflow: visible;
  }

  .audience-visual::after {
    display: none;
  }

  .audience-visual > img {
    min-height: 380px;
    border-radius: 26px 26px 0 0;
  }

  .audience-labels {
    position: static;
    grid-template-columns: 1fr;
    padding: 10px;
    background: var(--surface);
    border-radius: 0 0 26px 26px;
  }

  .before-after,
  .transformation-steps,
  .capability-grid,
  .contact-card,
  .footer-grid,
  .featured-grid,
  .featured-card:last-child,
  .flow-context {
    grid-template-columns: 1fr;
  }

  .transformation-steps {
    border-bottom: 0;
  }

  .transformation-card {
    min-height: auto;
    padding: 26px 8px 30px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-card {
    min-height: auto;
  }

  .work-bridge {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-card {
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .featured-card:last-child {
    display: flex;
  }

  .featured-card:last-child .featured-media {
    aspect-ratio: 4 / 3;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-trigger {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 18px 14px;
  }

  .flow-trigger .icon-shell {
    width: 40px;
    height: 40px;
  }

  .flow-trigger .icon-shell img {
    width: 21px;
    height: 21px;
  }

  .stage-title small {
    display: none;
  }

  .flow-panel {
    padding: 0 14px 14px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-list article {
    min-height: auto;
  }
}

@media (max-width: 440px) {
  .page-shell,
  .header-inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .button-row,
  .button-row .button,
  .contact-action .button,
  .work-bridge .button {
    width: 100%;
  }

  .hero-signals {
    gap: 10px 16px;
  }

  .hero-media,
  .hero-media > img {
    min-height: 360px;
  }

  .audience-visual > img {
    min-height: 320px;
  }

  .system-visual img {
    min-height: 320px;
  }

  .featured-copy {
    padding: 22px;
  }

  .stage-number {
    display: none;
  }

  .flow-trigger {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Minimal portfolio and progressive disclosure */

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.minimalist-hero {
  display: flex;
  min-height: 58svh;
  align-items: center;
  padding-block: clamp(90px, 12vw, 160px);
}

.portfolio-title-block {
  position: relative;
  z-index: 1;
}

.portfolio-title-block h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 7rem);
}

.portfolio-title-block > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.minimalist-work {
  padding-block: clamp(70px, 9vw, 120px);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #0b0f15;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.project-tile:hover,
.project-tile:focus-within,
.project-tile.is-expanded {
  border-color: rgba(118, 232, 255, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  transform: translateY(-4px);
}

.project-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    #090d12;
  border-bottom: 1px solid var(--line);
}

.project-visual::before,
.project-visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.project-visual::before {
  inset: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  opacity: 0.55;
}

.project-visual::after {
  background: radial-gradient(circle at 50% 50%, rgba(118, 232, 255, 0.12), transparent 58%);
}

.neuro-project .project-visual::after {
  background: radial-gradient(circle at 50% 50%, rgba(108, 92, 255, 0.18), transparent 58%);
}

.game-project .project-visual::after {
  background: radial-gradient(circle at 50% 50%, rgba(222, 255, 54, 0.14), transparent 58%);
}

.cpi-project .project-visual::after {
  background: radial-gradient(circle at 50% 50%, rgba(199, 38, 45, 0.18), transparent 58%);
}

.project-logo-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: min(52%, 188px);
  aspect-ratio: 1 / 1;
  place-items: center;
  padding: 24px;
  background: rgba(7, 11, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease, transform 320ms ease;
}

.project-logo-frame.wide {
  width: min(72%, 260px);
  aspect-ratio: 2.9 / 1;
  padding: 9px 14px;
  background: #0b1822;
  border-radius: 8px;
}

.project-logo-frame.crest {
  width: min(46%, 162px);
  padding: 15px;
  background: rgba(5, 5, 6, 0.9);
}

.project-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-logo {
  object-fit: contain;
}

.project-reveal {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  display: flex;
  aspect-ratio: 4 / 3;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  visibility: hidden;
  background: linear-gradient(180deg, rgba(7, 10, 14, 0.86), rgba(7, 10, 14, 0.97));
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: visibility 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.project-reveal > span {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-reveal p {
  max-width: 410px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.project-reveal small {
  color: var(--muted);
  font-size: 0.8rem;
}

.project-reveal a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 750;
}

.project-reveal a:hover {
  color: #b2f5ff;
}

html:not(.js) .project-reveal {
  position: static;
  aspect-ratio: auto;
  padding: 22px;
  visibility: visible;
  background: rgba(118, 232, 255, 0.045);
  border-radius: 0;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.project-tile:focus-within .project-reveal,
.project-tile.is-expanded .project-reveal {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.project-tile.is-closed .project-reveal {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.project-tile:focus-within .project-logo-frame,
.project-tile.is-expanded .project-logo-frame {
  opacity: 0.15;
  transform: translate(-50%, -54%) scale(0.94);
}

.project-tile.is-closed .project-logo-frame {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.project-caption {
  display: flex;
  min-height: 142px;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;
}

.project-caption > div > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-caption h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.project-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--muted-strong);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.project-toggle:hover,
.project-toggle[aria-expanded="true"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(118, 232, 255, 0.32);
}

.project-toggle i {
  font-size: 1rem;
  font-style: normal;
  line-height: 1;
  transition: transform 180ms ease;
}

.project-toggle[aria-expanded="true"] i {
  transform: rotate(45deg);
}

.minimal-flow-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(118, 232, 255, 0.14), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(116, 230, 189, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(118, 232, 255, 0.045), transparent 34%),
    #05070a;
  border-top: 1px solid var(--line);
}

.minimalist-hero + .minimal-flow-section {
  border-top: 0;
}

.minimal-flow-section::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 92px 100%;
  opacity: 0.28;
}

.minimal-flow-section > .page-shell {
  position: relative;
  z-index: 1;
}

.visual-proof-section {
  background: #05070a;
  border-top: 1px solid var(--line);
}

.visual-proof-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.8fr;
  gap: 16px;
  align-items: stretch;
}

.visual-proof-card {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visual-proof-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 7, 10, 0.88) 100%);
}

.visual-proof-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 420ms ease, filter 420ms ease;
}

.visual-proof-card:hover img {
  filter: saturate(1.02) contrast(1.08);
  transform: scale(1.025);
}

.visual-proof-card figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
}

.visual-proof-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visual-proof-card b {
  display: block;
  max-width: 320px;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.flow-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  margin-bottom: 42px;
}

.flow-heading h2 {
  margin-bottom: 16px;
}

.flow-heading > p:last-child {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 1rem;
}

.minimal-flow {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
}

.minimal-flow::before {
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 34px;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, rgba(118, 232, 255, 0.08), rgba(118, 232, 255, 0.55), rgba(118, 232, 255, 0.08));
}

.minimal-flow .flow-stage {
  position: relative;
  background: rgba(13, 18, 25, 0.78);
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.minimal-flow .flow-stage::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(118, 232, 255, 0.72), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.minimal-flow .flow-stage.is-open {
  background: linear-gradient(145deg, rgba(118, 232, 255, 0.105), rgba(13, 18, 25, 0.98));
  border-color: rgba(118, 232, 255, 0.42);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

.minimal-flow .flow-stage.is-open::before {
  opacity: 1;
}

.minimal-flow .flow-trigger {
  min-height: 92px;
  padding: 18px 22px;
}

.minimal-flow .flow-trigger .icon-shell {
  background: rgba(118, 232, 255, 0.1);
  border-color: rgba(118, 232, 255, 0.22);
}

.minimal-flow .flow-trigger:hover .icon-shell,
.minimal-flow .flow-trigger[aria-expanded="true"] .icon-shell {
  background: rgba(118, 232, 255, 0.16);
  border-color: rgba(118, 232, 255, 0.38);
}

.minimal-flow .stage-title b {
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.minimal-flow .flow-panel {
  display: grid;
  grid-template-columns: minmax(250px, 0.74fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 0 22px 22px 101px;
}

.stage-media {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.stage-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 42%, rgba(5, 7, 10, 0.78) 100%),
    radial-gradient(circle at 25% 18%, rgba(118, 232, 255, 0.26), transparent 42%);
}

.stage-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.08);
  transition: transform 420ms ease, filter 420ms ease;
}

.flow-stage.is-open .stage-media img,
.flow-stage:hover .stage-media img {
  filter: saturate(1.06) contrast(1.09);
  transform: scale(1.035);
}

.stage-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-block: 6px;
}

.stage-intro {
  max-width: 620px;
  margin-bottom: 16px;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.minimal-flow .service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-detail {
  padding: 0;
  overflow: hidden;
  background: rgba(5, 8, 12, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.service-detail:hover,
.service-detail:focus-within,
.service-detail[open] {
  background: rgba(118, 232, 255, 0.07);
  border-color: rgba(118, 232, 255, 0.28);
  transform: translateY(-2px);
}

.service-detail summary {
  position: relative;
  min-height: 60px;
  padding: 18px 46px 18px 18px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.35;
  list-style: none;
}

.service-detail summary::-webkit-details-marker {
  display: none;
}

.service-detail summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--accent);
  content: "+";
  font-size: 1rem;
  font-weight: 500;
  transform: translateY(-50%);
}

.service-detail[open] summary::after {
  content: "−";
}

.service-detail p {
  max-height: 0;
  padding: 0 17px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0;
  transition: max-height 220ms ease, padding 220ms ease, opacity 180ms ease;
}

.service-detail[open] p,
.service-detail:focus-within p {
  max-height: 120px;
  padding: 0 17px 17px;
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .project-tile:hover .project-reveal {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .project-tile.is-closed:hover .project-reveal {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
  }

  .project-tile:hover .project-logo-frame {
    opacity: 0.15;
    transform: translate(-50%, -54%) scale(0.94);
  }

  .project-tile.is-closed:hover .project-logo-frame {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .service-detail:hover p {
    max-height: 120px;
    padding: 0 17px 17px;
    opacity: 1;
  }

  .minimal-flow .flow-stage:hover {
    border-color: rgba(118, 232, 255, 0.28);
    transform: translateY(-2px);
  }

  .minimal-flow .flow-stage:hover::before {
    opacity: 0.7;
  }
}

@media (max-width: 1060px) {
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-heading {
    grid-template-columns: 1fr;
  }

  .minimal-flow .flow-panel {
    grid-template-columns: 1fr;
    padding-left: 22px;
  }

  .project-tile:last-child {
    grid-column: 1 / -1;
    width: min(100%, 570px);
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .contact-buttons,
  .contact-buttons .button {
    width: 100%;
  }

  .portfolio-title-block h1 {
    font-size: clamp(2.8rem, 14vw, 4.7rem);
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-tile:last-child {
    grid-column: auto;
    width: 100%;
  }

  .visual-proof-grid {
    grid-template-columns: 1fr;
  }

  .visual-proof-card,
  .visual-proof-card img {
    min-height: 330px;
  }

  .project-tile:hover,
  .project-tile:focus-within,
  .project-tile.is-expanded {
    transform: none;
  }

  .project-reveal {
    position: static;
    aspect-ratio: auto;
    max-height: 0;
    padding: 0 22px;
    overflow: hidden;
    background: rgba(118, 232, 255, 0.045);
    border-top: 0;
    border-radius: 0;
    transform: none;
    transition: visibility 220ms ease, max-height 260ms ease, padding 260ms ease, opacity 180ms ease;
  }

  .project-tile:focus-within .project-reveal,
  .project-tile.is-expanded .project-reveal {
    max-height: 260px;
    padding: 22px;
  }

  .project-tile.is-closed:focus-within .project-reveal {
    max-height: 0;
    padding: 0 22px;
  }

  .project-caption {
    min-height: 126px;
    padding: 21px;
  }

  .project-toggle {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .project-toggle > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .minimal-flow .flow-panel {
    padding: 0 14px 14px;
  }

  .minimal-flow .service-list {
    grid-template-columns: 1fr;
  }

  .stage-media,
  .stage-media img {
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-tile,
  .visual-proof-card img,
  .stage-media img,
  .minimal-flow .flow-stage,
  .project-logo-frame,
  .project-reveal,
  .project-toggle,
  .project-toggle i,
  .service-detail,
  .service-detail p {
    transition: none;
  }
}

/* Business Growth Flow: horizontal stage navigation with one shared detail panel. */
.growth-tabs {
  max-width: 1120px;
  margin-inline: auto;
}

.flow-tablist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  margin-bottom: 24px;
  overflow-x: auto;
  background: rgba(19, 27, 37, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
  scrollbar-color: rgba(118, 232, 255, 0.35) transparent;
  scrollbar-width: thin;
}

.flow-tab {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 11px 15px;
  color: var(--muted-strong);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.flow-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.flow-tab[aria-selected="true"] {
  color: var(--text);
  background: linear-gradient(145deg, rgba(118, 232, 255, 0.17), rgba(6, 10, 15, 0.98));
  box-shadow: inset 0 0 0 1px rgba(118, 232, 255, 0.36), 0 10px 26px rgba(0, 0, 0, 0.26);
}

.flow-tab .stage-number {
  display: block;
  color: var(--muted);
  transition: color 180ms ease;
}

.flow-tab[aria-selected="true"] .stage-number {
  color: var(--accent);
}

.flow-tab-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: rgba(118, 232, 255, 0.08);
  border: 1px solid rgba(118, 232, 255, 0.14);
  border-radius: 50%;
  font-style: normal;
}

.flow-tab-icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(84%) sepia(36%) saturate(1002%) hue-rotate(161deg) brightness(101%) contrast(102%);
}

.flow-panels {
  position: relative;
}

.growth-tabs .flow-panel {
  display: grid;
  min-height: 500px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(4, 7, 10, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.growth-tabs .flow-panel.is-active {
  animation: growth-panel-in 240ms ease both;
}

.growth-tabs .stage-media {
  min-height: 500px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  box-shadow: none;
}

.growth-tabs .stage-media::after {
  background:
    linear-gradient(90deg, transparent 52%, rgba(4, 7, 10, 0.3) 100%),
    linear-gradient(180deg, transparent 52%, rgba(4, 7, 10, 0.72) 100%),
    radial-gradient(circle at 25% 18%, rgba(118, 232, 255, 0.22), transparent 42%);
}

.growth-tabs .stage-media img {
  height: 100%;
  min-height: 500px;
}

.growth-tabs .flow-panel:hover .stage-media img {
  filter: saturate(1.04) contrast(1.09);
  transform: scale(1.025);
}

.growth-tabs .stage-copy {
  padding: clamp(30px, 4.6vw, 56px);
}

.stage-kicker {
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.growth-tabs .stage-copy h3 {
  margin-bottom: 15px;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  letter-spacing: -0.055em;
}

.growth-tabs .stage-intro {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.65;
}

.growth-tabs .service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-service {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.flow-service::before {
  width: 18px;
  height: 2px;
  margin-top: 9px;
  content: "";
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(118, 232, 255, 0.45);
}

.flow-service h4 {
  margin-bottom: 6px;
  font-size: 0.91rem;
  line-height: 1.35;
}

.flow-service p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

html:not(.js) .flow-tablist {
  display: none;
}

html:not(.js) .flow-panels {
  display: grid;
  gap: 24px;
}

@keyframes growth-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .flow-tablist {
    grid-template-columns: repeat(5, minmax(164px, 1fr));
    border-radius: 18px;
    scroll-snap-type: x proximity;
  }

  .flow-tab {
    scroll-snap-align: start;
  }

  .growth-tabs .flow-panel {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .growth-tabs .stage-media {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .growth-tabs .stage-media img {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .flow-tablist {
    grid-template-columns: repeat(5, minmax(156px, 1fr));
    margin-bottom: 16px;
  }

  .flow-tab {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .flow-tab .stage-number {
    display: none;
  }

  .growth-tabs .stage-media,
  .growth-tabs .stage-media img {
    min-height: 230px;
  }

  .growth-tabs .stage-copy {
    padding: 26px 20px 30px;
  }

  .growth-tabs .stage-copy h3 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .growth-tabs .service-list {
    grid-template-columns: 1fr;
    gap: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .growth-tabs .flow-panel.is-active {
    animation: none;
  }
}
