:root {
  --ink: #171719;
  --paper: #f5f5f2;
  --soft: #ececea;
  --white: #ffffff;
  --muted: #6d6d72;
  --accent: #a888ff;
  --accent-dark: #7352dc;
  --container: 1180px;
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body, a, button, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ol, ul, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; }

.container {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 76px;
  color: var(--white);
  transition: height 280ms ease, background 280ms ease, box-shadow 280ms ease, backdrop-filter 280ms ease;
}

.site-header.is-scrolled,
body:not([data-page="home"]) .site-header {
  height: 66px;
  background: rgba(17, 17, 19, 0.91);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  width: min(var(--container), calc(100% - 80px));
  height: 100%;
  margin-inline: auto;
}

.brand { width: 134px; }
.brand img { width: 100%; height: auto; }

.desktop-nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
}

.nav-item { position: relative; height: 100%; }

.nav-link {
  position: relative;
  display: flex;
  height: 100%;
  padding: 0 17px;
  align-items: center;
  gap: 6px;
  opacity: 0.72;
  transition: opacity 180ms ease, color 180ms ease;
}

.nav-link > span { font-size: 11px; transition: transform 200ms ease; }
.nav-link:hover, .nav-link.is-active, .nav-item:focus-within > .nav-link { opacity: 1; }
.nav-link.is-active { color: #cabaff; }
.nav-link.is-active::after {
  position: absolute;
  right: 17px;
  bottom: 17px;
  left: 17px;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(1);
  transform-origin: left;
}
.nav-item:hover .nav-link > span, .nav-item:focus-within .nav-link > span { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: calc(100% - 5px);
  left: 0;
  display: grid;
  width: 410px;
  padding: 14px;
  gap: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.portfolio-menu { width: 360px; }
.mega-menu > p {
  padding: 13px 14px 15px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mega-menu a {
  display: grid;
  padding: 15px 14px;
  grid-template-columns: 1fr;
  gap: 4px;
  transition: background 160ms ease, padding-left 160ms ease;
}
.mega-menu a:hover, .mega-menu a:focus { padding-left: 20px; background: #efecf8; outline: none; }
.mega-menu strong { font-size: 16px; font-weight: 550; }
.mega-menu small { color: var(--muted); font-size: 12px; }
.nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.header-action {
  display: inline-flex;
  padding: 12px 15px;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
  font-weight: 650;
  transition: background 180ms ease, transform 180ms ease;
}
.header-action:hover { background: var(--accent); transform: translateY(-1px); }
.mobile-nav { display: none; }

.photo-section {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.photo-section::before { position: absolute; z-index: -1; inset: 0; content: ""; }

.hero {
  min-height: 100svh;
  background-image: url("./assets/images/manek-hero.jpg");
  background-position: 50% 45%;
}
.hero::before {
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.28) 0%, rgba(10, 10, 12, 0.1) 34%, rgba(10, 10, 12, 0.84) 100%),
    linear-gradient(90deg, rgba(22, 15, 31, 0.54) 0%, rgba(22, 15, 31, 0.08) 68%);
}
.hero-inner {
  display: flex;
  min-height: 100svh;
  padding-top: 130px;
  padding-bottom: 34px;
  flex-direction: column;
  justify-content: flex-end;
}

.overline, .section-label {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.overline { color: rgba(255, 255, 255, 0.72); }
.section-label { margin-bottom: 32px; color: var(--muted); }
.section-label.light { color: rgba(255, 255, 255, 0.58); }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 70px;
  align-items: end;
  margin-top: 24px;
}
h1 {
  max-width: 820px;
  font-size: clamp(58px, 6.4vw, 92px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.065em;
}
.hero-copy { max-width: 440px; padding-bottom: 6px; }
.hero-copy > p { max-width: 410px; margin-bottom: 30px; font-size: 18px; line-height: 1.48; }
.hero-actions { display: flex; align-items: center; gap: 28px; }

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  color: var(--ink);
  background: var(--accent);
  font-size: 13px;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover { color: var(--white); background: var(--accent-dark); transform: translateY(-2px); }
.button.secondary { color: var(--ink); background: var(--white); }
.button.secondary:hover { color: var(--ink); background: var(--accent); }
.button.dark { color: var(--white); background: var(--ink); }
.button.dark:hover { background: var(--accent-dark); }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 13px; font-weight: 650; }
.text-link::after { width: 24px; height: 2px; content: ""; background: var(--accent-dark); transition: width 180ms ease; }
.text-link:hover::after { width: 44px; }
.text-link.light::after { background: var(--accent); }

.hero-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 52px;
}
.hero-bottom a {
  display: flex;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.11);
  font-size: 13px;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  transition: background 180ms ease, transform 180ms ease;
}
.hero-bottom a:hover { background: rgba(168, 136, 255, 0.44); transform: translateY(-3px); }

.section { padding: 148px 0; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 76px; }
.section h2, .cases-heading h2, .page-content h2 {
  max-width: 590px;
  font-size: clamp(43px, 4.35vw, 62px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.section-intro .text-link { margin-top: 34px; }

.service-list { display: grid; gap: 12px; }
.service-row {
  position: relative;
  display: grid;
  min-height: 166px;
  padding: 26px 58px 26px 28px;
  align-content: center;
  gap: 16px;
  background: #ececea;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}
.service-row h3 { font-size: 26px; font-weight: 520; line-height: 1.12; letter-spacing: -0.035em; }
.service-row p { max-width: 480px; color: var(--muted); font-size: 14px; line-height: 1.5; transition: color 220ms ease; }
.service-row > span { position: absolute; top: 28px; right: 25px; font-size: 21px; }
.service-row:hover { color: var(--white); background: #242127; transform: translateX(8px); }
.service-row:hover p { color: rgba(255,255,255,.64); }

.cycle {
  min-height: 780px;
  background-image: url("./assets/images/manek-detail.jpg");
  background-position: 50% 35%;
}
.cycle::before {
  background:
    linear-gradient(90deg, rgba(15, 15, 18, 0.91) 0%, rgba(15, 15, 18, 0.54) 50%, rgba(15, 15, 18, 0.22) 100%),
    linear-gradient(180deg, rgba(15, 15, 18, 0.12) 20%, rgba(15, 15, 18, 0.78) 100%);
}
.cycle-inner { display: flex; min-height: 780px; padding: 110px 0 52px; flex-direction: column; justify-content: space-between; }
.cycle h2, .project h2, .contact h2, .page-hero h1 {
  max-width: 780px;
  font-size: clamp(50px, 5.5vw, 78px);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.06em;
}
.cycle-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cycle-flow > div { min-height: 136px; padding: 22px; background: rgba(255, 255, 255, 0.11); backdrop-filter: blur(7px); }
.cycle-flow strong { display: block; margin-bottom: 10px; font-size: 18px; font-weight: 520; }
.cycle-flow p { max-width: 210px; color: rgba(255,255,255,.63); font-size: 13px; }

.cases-heading { padding-bottom: 110px; }
.section-summary { max-width: 520px; align-self: end; }
.section-summary > p { margin-bottom: 30px; color: #505055; font-size: 21px; line-height: 1.5; }

.project, .project-inner { min-height: 820px; }
.project::before {
  background:
    linear-gradient(90deg, rgba(14,14,17,.9) 0%, rgba(14,14,17,.51) 50%, rgba(14,14,17,.13) 100%),
    linear-gradient(180deg, rgba(14,14,17,.08) 35%, rgba(14,14,17,.76) 100%);
}
.project-manek { background-image: url("./assets/images/manek-dressed.jpg"); background-position: 72% 40%; }
.project-tapper { background-image: url("./assets/images/manek-tabletop.jpg"); background-position: 45% 36%; }
.project-tapper::before {
  background:
    linear-gradient(270deg, rgba(15,12,20,.93) 0%, rgba(15,12,20,.59) 52%, rgba(15,12,20,.14) 100%),
    linear-gradient(180deg, rgba(15,12,20,.06) 30%, rgba(15,12,20,.7) 100%);
}
.project-inner { display: flex; padding: 90px 0 58px; flex-direction: column; justify-content: flex-end; }
.project-copy { max-width: 700px; }
.project-copy h2 { margin: 18px 0 27px; }
.project-copy > p:not(.overline) { max-width: 610px; font-size: 18px; line-height: 1.52; }
.align-right .project-copy { align-self: flex-end; }
.stack-line {
  display: flex;
  max-width: 710px;
  margin: 32px 0 34px;
  padding: 18px 20px;
  flex-wrap: wrap;
  gap: 9px 18px;
  align-items: center;
  background: rgba(10,10,12,.54);
  backdrop-filter: blur(10px);
  font-size: 12px;
}
.stack-line strong { color: var(--accent); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.stack-line span::after { margin-left: 18px; color: rgba(255,255,255,.35); content: "·"; }
.stack-line span:last-child::after { content: none; }

.learning-teaser { background: #ececea; }
.journal { padding: 130px 0; color: var(--white); background: #242127; }
.journal-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.journal-heading h2 { max-width: 540px; font-size: clamp(42px,4.2vw,60px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.journal-heading .text-link { margin-top: 34px; }
.journal-list { display: grid; gap: 10px; }
.journal-list a { position: relative; display: grid; min-height: 142px; padding: 23px 60px 23px 25px; align-content: center; gap: 12px; background: rgba(255,255,255,.08); transition: background 200ms ease, transform 200ms ease; }
.journal-list a:hover { background: rgba(168,136,255,.26); transform: translateX(8px); }
.journal-list span { color: var(--accent); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.journal-list strong { max-width: 480px; font-size: 21px; font-weight: 500; line-height: 1.25; }
.journal-list i { position: absolute; top: 24px; right: 24px; font-style: normal; }

.contact { padding: 138px 0 56px; color: var(--white); background: #111113; }
.contact-heading { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; padding-bottom: 100px; }
.contact-heading .section-label { grid-column: 1/-1; margin-bottom: 0; }
.contact h2 { max-width: 850px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.contact-grid > div { min-height: 150px; padding: 22px; background: rgba(255,255,255,.065); }
.contact-grid span { display: block; margin-bottom: 25px; color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.contact-grid a, .contact-grid strong { display: block; font-size: 15px; font-weight: 520; }
.contact-grid p, .contact-grid .minor-link { margin-top: 8px; color: rgba(255,255,255,.52); font-size: 13px; }

footer { color: rgba(255,255,255,.55); background: #111113; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 100px; font-size: 11px; }
.footer-inner img { width: 105px; }
.footer-inner a { justify-self: end; }

/* Inner pages */
.page-hero {
  min-height: 610px;
  padding: 180px 0 76px;
  color: var(--white);
  background: #1d1a21;
}
.page-hero.with-image { position: relative; isolation: isolate; background-position: center; background-size: cover; }
.page-hero.with-image::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg,rgba(14,14,17,.9),rgba(14,14,17,.36)), linear-gradient(180deg,transparent,rgba(14,14,17,.66)); }
.services-hero { background-image: url("./assets/images/manek-hero.jpg"); }
.portfolio-hero { background-image: url("./assets/images/manek-tabletop.jpg"); background-position: center 35%; }
.education-hero { background-image: url("./assets/images/manek-dressed.jpg"); background-position: 65% 28%; }
.blog-hero { background-image: url("./assets/images/manek-detail.jpg"); background-position: center 30%; }
.page-hero-inner { display: flex; min-height: 354px; flex-direction: column; justify-content: flex-end; }
.page-hero h1 { max-width: 900px; margin: 22px 0 30px; }
.page-hero .lead { max-width: 610px; font-size: 19px; line-height: 1.5; }
.page-nav { display: flex; margin-top: 40px; flex-wrap: wrap; gap: 10px; }
.page-nav a { padding: 11px 15px; background: rgba(255,255,255,.11); font-size: 12px; transition: background 180ms ease; }
.page-nav a:hover { background: rgba(168,136,255,.42); }

.page-content { padding: 130px 0; }
.detail-section { scroll-margin-top: 90px; padding: 90px 0; }
.detail-section:first-child { padding-top: 0; }
.detail-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.detail-copy .section-label { margin-bottom: 24px; }
.detail-copy h2 { margin-bottom: 28px; }
.detail-copy > p { max-width: 590px; color: #4f4f54; font-size: 18px; line-height: 1.6; }
.feature-list { display: grid; gap: 10px; align-content: start; }
.feature-list > div { padding: 24px 26px; background: var(--soft); }
.feature-list h3 { margin-bottom: 9px; font-size: 21px; font-weight: 520; letter-spacing: -.025em; }
.feature-list p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.emphasis { margin-top: 25px; padding: 25px; color: var(--white); background: #242127; }
.emphasis strong { display: block; margin-bottom: 7px; color: var(--accent); font-size: 24px; font-weight: 520; }
.workflow { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 60px; }
.workflow > div { min-height: 180px; padding: 25px; background: var(--soft); }
.workflow h3 { margin-bottom: 12px; font-size: 20px; font-weight: 520; }
.workflow p { color: var(--muted); font-size: 14px; }

.case-detail { scroll-margin-top: 75px; min-height: 760px; }
.case-detail .project-inner { min-height: 760px; }
.case-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; max-width: 760px; margin: 30px 0; }
.case-facts div { padding: 18px; background: rgba(10,10,12,.55); backdrop-filter: blur(9px); }
.case-facts small { display: block; margin-bottom: 7px; color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.case-facts strong { font-size: 14px; font-weight: 520; }

.program-lead { padding: 120px 0; background: var(--soft); }
.program-lead .split-layout p { max-width: 530px; color: #4f4f54; font-size: 20px; line-height: 1.55; align-self: end; }
.program-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 55px; }
.program-grid article { min-height: 220px; padding: 30px; background: #ececea; }
.program-grid h3 { margin-bottom: 15px; font-size: 27px; font-weight: 520; letter-spacing: -.035em; }
.program-grid p { color: var(--muted); }
.program-grid strong { display: block; margin-top: 25px; color: var(--accent-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.gallery-section { padding: 120px 0; color: var(--white); background: #19181b; }
.gallery-heading { display: flex; margin-bottom: 55px; align-items: end; justify-content: space-between; gap: 40px; }
.gallery-heading h2 { max-width: 610px; font-size: clamp(42px,4.3vw,62px); font-weight: 500; line-height: .96; letter-spacing: -.055em; }
.gallery { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: 270px 270px; gap: 12px; }
.gallery figure { position: relative; overflow: hidden; margin: 0; background: #28262b; }
.gallery figure:first-child { grid-row: 1/3; }
.gallery figure:last-child { grid-column: 2/4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.22,1,.36,1), filter 350ms ease; }
.gallery figure:hover img { transform: scale(1.045); filter: contrast(1.06); }
.gallery figcaption { position: absolute; right: 14px; bottom: 14px; left: 14px; padding: 10px 12px; background: rgba(13,13,15,.7); backdrop-filter: blur(7px); font-size: 11px; }

.blog-list { display: grid; gap: 80px; }
.article-entry { scroll-margin-top: 95px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.article-entry + .article-entry { padding-top: 80px; }
.article-entry .topic { color: var(--accent-dark); font-size: 11px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.article-body h2 { margin-bottom: 28px; }
.article-body p { max-width: 720px; margin-top: 18px; color: #4f4f54; font-size: 17px; line-height: 1.68; }
.article-body h3 { margin-top: 34px; font-size: 24px; font-weight: 520; letter-spacing: -.03em; }
.article-body .article-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 30px; }
.article-points span { padding: 17px; background: var(--soft); font-size: 13px; }

.js [data-reveal] {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 780ms ease, transform 900ms cubic-bezier(.22,1,.36,1), filter 780ms ease;
  will-change: opacity, transform, filter;
}
.js [data-reveal="up"] { transform: translateY(54px); }
.js [data-reveal="left"] { transform: translateX(-62px); }
.js [data-reveal="right"] { transform: translateX(62px); }
.js [data-reveal].is-visible { opacity: 1; filter: blur(0); transform: translate(0,0); }
.js [data-stagger] > :nth-child(2) { transition-delay: 90ms; }
.js [data-stagger] > :nth-child(3) { transition-delay: 180ms; }
.js [data-stagger] > :nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; filter: none; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 22px; }
  .mobile-nav { position: relative; display: block; }
  .mobile-nav summary { display: flex; width: 32px; height: 32px; padding: 5px 0; flex-direction: column; justify-content: center; gap: 7px; cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; width: 100%; height: 1px; background: currentColor; }
  .mobile-nav nav { position: fixed; top: 66px; right: 20px; left: 20px; display: flex; padding: 24px; flex-direction: column; gap: 6px; color: var(--white); background: #18171a; box-shadow: 0 25px 80px rgba(0,0,0,.35); }
  .mobile-nav nav a { padding: 15px 4px; font-size: 19px; }
  .hero-layout, .split-layout, .journal-inner, .detail-grid, .article-entry { grid-template-columns: 1fr; }
  .hero-layout { gap: 30px; }
  .split-layout, .detail-grid { gap: 64px; }
  .section { padding: 110px 0; }
  .cycle-flow, .workflow, .contact-grid { grid-template-columns: repeat(2,1fr); }
  .journal-inner { gap: 60px; }
  .contact-heading { grid-template-columns: 1fr; }
  .contact-heading .section-label { grid-column: auto; }
  .contact-heading .button { justify-self: start; }
  .article-entry { gap: 24px; }
  .page-hero { min-height: 560px; }
}

@media (max-width: 640px) {
  .container, .header-inner { width: calc(100% - 40px); }
  .site-header { height: 64px; }
  .site-header.is-scrolled, body:not([data-page="home"]) .site-header { height: 60px; }
  .brand { width: 112px; }
  .header-action { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .mobile-nav nav { top: 60px; }
  .hero, .hero-inner { min-height: 760px; }
  .hero { background-position: 58% 45%; }
  .hero-inner { padding-top: 105px; padding-bottom: 22px; }
  h1 { font-size: clamp(45px,13.2vw,65px); line-height: .92; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 7px; margin-top: 36px; }
  .hero-bottom a { padding: 12px 14px; }
  .section { padding: 84px 0; }
  .split-layout, .detail-grid { gap: 48px; }
  .section h2, .cases-heading h2, .page-content h2 { font-size: 42px; }
  .service-row { min-height: 150px; padding: 23px 48px 23px 22px; }
  .service-row h3 { font-size: 22px; }
  .service-row:hover, .journal-list a:hover { transform: none; }
  .cycle, .cycle-inner { min-height: 830px; }
  .cycle { background-position: 48% center; }
  .cycle-inner { padding: 82px 0 28px; }
  .cycle h2, .project h2, .contact h2, .page-hero h1 { font-size: 45px; }
  .cycle-flow { grid-template-columns: 1fr 1fr; gap: 7px; }
  .cycle-flow > div { min-height: 126px; padding: 17px; }
  .cases-heading { padding-bottom: 76px; }
  .section-summary > p { font-size: 18px; }
  .project, .project-inner { min-height: 780px; }
  .project-manek { background-position: 61% center; }
  .project-tapper { background-position: 42% center; }
  .project::before, .project-tapper::before { background: linear-gradient(180deg,rgba(14,14,17,.16) 16%,rgba(14,14,17,.92) 76%); }
  .project-inner { padding: 80px 0 34px; }
  .project-copy > p:not(.overline) { font-size: 16px; }
  .stack-line { gap: 8px 12px; margin: 25px 0; padding: 15px; }
  .stack-line span::after { margin-left: 12px; }
  .journal { padding: 85px 0; }
  .journal-list a { min-height: 128px; }
  .contact { padding-top: 88px; }
  .contact-heading { gap: 35px; padding-bottom: 68px; }
  .contact-grid { grid-template-columns: 1fr; gap: 8px; }
  .contact-grid > div { min-height: 122px; }
  .footer-inner { grid-template-columns: 1fr auto; min-height: 110px; }
  .footer-inner p { display: none; }
  .page-hero { min-height: 590px; padding: 135px 0 55px; }
  .page-hero-inner { min-height: 400px; }
  .page-hero .lead { font-size: 16px; }
  .page-nav { gap: 6px; }
  .page-content { padding: 80px 0; }
  .detail-section { padding: 65px 0; }
  .detail-copy > p { font-size: 16px; }
  .workflow, .program-grid { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: 1fr; }
  .program-lead { padding: 80px 0; }
  .gallery-heading { align-items: flex-start; flex-direction: column; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 210px 220px; }
  .gallery figure:first-child { grid-column: 1/3; grid-row: auto; }
  .gallery figure:last-child { grid-column: 1/3; }
  .article-body .article-points { grid-template-columns: 1fr; }
  .article-entry + .article-entry { padding-top: 35px; }
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(45px); }
}

/* Education — continuous laboratory photo reel */
body[data-page="home"] .education-gallery {
  overflow: hidden;
}

body[data-page="home"] .education-gallery-meta {
  width: min(var(--container),calc(100% - 80px));
  margin-inline: auto;
}

body[data-page="home"] .education-track {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body[data-page="home"] .education-marquee-strip {
  display: flex;
  width: max-content;
  animation: education-reel 52s linear infinite;
  will-change: transform;
}

body[data-page="home"] .education-marquee-group {
  display: flex;
  flex: none;
  gap: 12px;
  padding-right: 12px;
}

body[data-page="home"] .education-track figure,
body[data-page="home"] .education-track figure:nth-child(n) {
  display: block;
  flex: 0 0 420px;
  width: 420px;
  height: 270px;
  margin: 0;
  overflow: hidden;
}

body[data-page="home"] .education-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body[data-page="home"] .education-track:hover .education-marquee-strip {
  animation-play-state: paused;
}

@keyframes education-reel {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .education-track {
    overflow-x: auto;
  }

  body[data-page="home"] .education-marquee-strip {
    animation: none;
  }

  body[data-page="home"] .education-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 980px) {
  body[data-page="home"] .education-track figure,
  body[data-page="home"] .education-track figure:nth-child(n) {
    flex-basis: 360px;
    width: 360px;
    height: 240px;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .education-gallery-meta {
    width: calc(100% - 40px);
  }

  body[data-page="home"] .education-track figure,
  body[data-page="home"] .education-track figure:nth-child(n) {
    flex-basis: 78vw;
    width: 78vw;
    height: 220px;
  }
}

/* Home page — isolated redesign */
body[data-page="home"] {
  background: #f4f3ef;
}

body[data-page="home"] .home-header .header-inner {
  grid-template-columns: 180px 1fr 180px;
}

body[data-page="home"] .home-nav {
  gap: 8px;
}

body[data-page="home"] .home-nav .nav-link {
  height: auto;
  padding: 12px 17px;
  opacity: 0.68;
}

body[data-page="home"] .home-nav .nav-link::after {
  display: none;
}

body[data-page="home"] .home-nav .nav-link::before {
  position: absolute;
  top: 5px;
  left: 7px;
  width: 8px;
  height: 8px;
  content: "";
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  transform: translate(5px, 5px);
  transition: border-color 180ms ease, transform 220ms ease;
}

body[data-page="home"] .home-nav .nav-link:hover,
body[data-page="home"] .home-nav .nav-link.is-active {
  color: var(--white);
  opacity: 1;
}

body[data-page="home"] .home-nav .nav-link:hover::before,
body[data-page="home"] .home-nav .nav-link.is-active::before {
  border-color: var(--accent);
  transform: translate(0, 0);
}

body[data-page="home"] .home-contact-link {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

body[data-page="home"] .home-contact-link i {
  position: relative;
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  border-right: 0;
  border-bottom: 0;
  transform: rotate(135deg);
  transition: transform 220ms ease;
}

body[data-page="home"] .home-contact-link i::before,
body[data-page="home"] .home-contact-link i::after {
  position: absolute;
  width: 13px;
  height: 13px;
  content: "";
  border: inherit;
}

body[data-page="home"] .home-contact-link i::before { top: -6px; left: -6px; }
body[data-page="home"] .home-contact-link i::after { top: 2px; left: 2px; }
body[data-page="home"] .home-contact-link:hover i { transform: rotate(135deg) translate(-3px, -3px); }

body[data-page="home"] .home-hero {
  background-position: 50% 44%;
}

body[data-page="home"] .home-hero::before {
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.32) 0%, rgba(8, 8, 10, 0.08) 36%, rgba(8, 8, 10, 0.85) 100%),
    linear-gradient(90deg, rgba(21, 14, 29, 0.64) 0%, rgba(21, 14, 29, 0.1) 68%);
}

body[data-page="home"] .home-hero .hero-inner {
  position: relative;
  padding-bottom: 48px;
}

body[data-page="home"] .home-hero .hero-copy > p {
  max-width: 445px;
  font-size: 19px;
}

body[data-page="home"] .home-primary-link {
  display: inline-flex;
  min-height: 54px;
  padding: 0 0 11px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 38px;
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  background: linear-gradient(90deg, var(--accent) 0 65%, rgba(255,255,255,.36) 65% 100%) bottom / 100% 2px no-repeat;
  transition: color 180ms ease, background-size 220ms ease;
}

body[data-page="home"] .home-primary-link:hover {
  color: #d7caff;
  background-size: 76% 2px;
}

body[data-page="home"] .home-primary-link.dark-link {
  color: var(--ink);
  background-image: linear-gradient(90deg, var(--accent-dark) 0 65%, rgba(23,23,25,.22) 65% 100%);
}

body[data-page="home"] .home-secondary-link {
  position: relative;
  display: inline-flex;
  padding: 10px 2px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

body[data-page="home"] .home-secondary-link.light { color: var(--white); }
body[data-page="home"] .home-hero .home-secondary-link { color: var(--white); }
body[data-page="home"] .home-secondary-link::after {
  width: 7px;
  height: 7px;
  margin-left: 12px;
  content: "";
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}
body[data-page="home"] .home-secondary-link:hover::after { transform: rotate(45deg) translate(3px, -3px); }

body[data-page="home"] .hero-angle,
body[data-page="home"] .turnkey-angle,
body[data-page="home"] .education-angle {
  position: absolute;
  right: 0;
  bottom: 96px;
  width: 150px;
  height: 150px;
  opacity: 0.64;
  pointer-events: none;
}

body[data-page="home"] .hero-angle i,
body[data-page="home"] .turnkey-angle i,
body[data-page="home"] .education-angle i {
  position: absolute;
  inset: 20px;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  transform: rotate(45deg);
}
body[data-page="home"] .hero-angle i:nth-child(2),
body[data-page="home"] .turnkey-angle i:nth-child(2),
body[data-page="home"] .education-angle i:nth-child(2) { inset: 38px; }
body[data-page="home"] .hero-angle i:nth-child(3),
body[data-page="home"] .turnkey-angle i:nth-child(3),
body[data-page="home"] .education-angle i:nth-child(3) { inset: 56px; }

body[data-page="home"] .hero-caption {
  margin-top: 54px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body[data-page="home"] .home-section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: end;
  margin-bottom: 72px;
}

body[data-page="home"] .home-section-heading .section-label { margin-bottom: 0; }
body[data-page="home"] .home-section-heading h2 {
  grid-column: 2;
  font-size: clamp(44px, 4.5vw, 64px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.055em;
}

body[data-page="home"] .offer-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

body[data-page="home"] .offer-list > a {
  position: relative;
  display: flex;
  min-height: 390px;
  padding: 28px;
  flex-direction: column;
  background: #e8e7e3;
  overflow: hidden;
  transition: color 250ms ease, background 250ms ease, transform 250ms ease;
}

body[data-page="home"] .offer-list > a::before {
  position: absolute;
  right: -75px;
  bottom: -75px;
  width: 190px;
  height: 190px;
  content: "";
  border: 3px solid rgba(115,82,220,.17);
  transform: rotate(45deg);
  transition: border-color 250ms ease, transform 350ms ease;
}

body[data-page="home"] .offer-list > a:hover {
  color: var(--white);
  background: #242127;
  transform: translateY(-7px);
}

body[data-page="home"] .offer-list > a:hover::before {
  border-color: var(--accent);
  transform: rotate(45deg) translate(-15px, -15px);
}

body[data-page="home"] .offer-list span {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}
body[data-page="home"] .offer-list h3 {
  max-width: 310px;
  margin: auto 0 18px;
  font-size: 30px;
  font-weight: 520;
  line-height: 1.05;
  letter-spacing: -.045em;
}
body[data-page="home"] .offer-list p { max-width: 310px; color: var(--muted); font-size: 14px; transition: color 250ms ease; }
body[data-page="home"] .offer-list i { position: absolute; top: 26px; right: 27px; font-style: normal; }
body[data-page="home"] .offer-list > a:hover p { color: rgba(255,255,255,.6); }
body[data-page="home"] .offer-list > a:hover span { color: var(--accent); }

body[data-page="home"] .home-case .project-inner { padding-bottom: 62px; }
body[data-page="home"] .home-case .project-copy { max-width: 760px; }
body[data-page="home"] .home-case .project-copy > p:not(.overline) { max-width: 650px; }

body[data-page="home"] .system-parts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 850px;
  margin: 36px 0 38px;
  gap: 18px;
}

body[data-page="home"] .system-parts > div {
  position: relative;
  min-height: 82px;
  padding-left: 17px;
}

body[data-page="home"] .system-parts > div::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

body[data-page="home"] .system-parts small {
  display: block;
  margin-bottom: 13px;
  color: rgba(255,255,255,.54);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page="home"] .system-parts strong {
  display: block;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.3;
}

body[data-page="home"] .case-actions { display: flex; align-items: center; gap: 32px; }

body[data-page="home"] .turnkey {
  min-height: 820px;
  background-image: url("./assets/images/manek-detail.jpg");
  background-position: center 36%;
}

body[data-page="home"] .turnkey::before {
  background:
    linear-gradient(90deg, rgba(14,14,17,.94) 0%, rgba(14,14,17,.77) 48%, rgba(14,14,17,.28) 100%),
    linear-gradient(180deg, rgba(14,14,17,.08), rgba(14,14,17,.82));
}

body[data-page="home"] .turnkey-inner {
  position: relative;
  display: grid;
  min-height: 820px;
  padding: 115px 0 70px;
  grid-template-columns: 1.05fr .95fr;
  gap: 90px;
  align-items: center;
}

body[data-page="home"] .turnkey-copy h2 {
  max-width: 660px;
  font-size: clamp(50px, 5.3vw, 76px);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -.06em;
}

body[data-page="home"] .turnkey-copy > p {
  max-width: 570px;
  margin: 30px 0 36px;
  color: rgba(255,255,255,.72);
  font-size: 18px;
  line-height: 1.55;
}

body[data-page="home"] .turnkey-result { display: grid; gap: 12px; }
body[data-page="home"] .turnkey-result > div {
  padding: 26px 28px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(9px);
}
body[data-page="home"] .turnkey-result small {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
body[data-page="home"] .turnkey-result strong { display: block; margin-bottom: 8px; font-size: 20px; font-weight: 520; }
body[data-page="home"] .turnkey-result p { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.5; }
body[data-page="home"] .turnkey-angle { right: auto; bottom: 45px; left: -35px; width: 120px; height: 120px; opacity: .35; }

body[data-page="home"] .education-sale {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 90px;
}
body[data-page="home"] .education-title h2 {
  max-width: 650px;
  font-size: clamp(47px,5vw,70px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.058em;
}
body[data-page="home"] .education-offer { padding-top: 42px; }
body[data-page="home"] .education-offer > p { max-width: 520px; color: #4e4e53; font-size: 20px; line-height: 1.55; }
body[data-page="home"] .education-offer ul { display: grid; margin: 38px 0; gap: 14px; list-style: none; }
body[data-page="home"] .education-offer li { position: relative; padding-left: 23px; color: #4e4e53; font-size: 14px; }
body[data-page="home"] .education-offer li::before { position: absolute; top: 5px; left: 0; width: 8px; height: 8px; content: ""; border-top: 2px solid var(--accent-dark); border-right: 2px solid var(--accent-dark); transform: rotate(45deg); }
body[data-page="home"] .education-angle { right: auto; bottom: -90px; left: -45px; opacity: .12; }

body[data-page="home"] .home-blog { padding: 130px 0 145px; background: #fff; }
body[data-page="home"] .blog-heading { display: flex; margin-bottom: 62px; align-items: end; justify-content: space-between; gap: 50px; }
body[data-page="home"] .blog-heading .section-label { margin-bottom: 24px; }
body[data-page="home"] .blog-heading h2 { max-width: 650px; font-size: clamp(44px,4.6vw,64px); font-weight: 500; line-height: .96; letter-spacing: -.055em; }
body[data-page="home"] .blog-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
body[data-page="home"] .blog-cards a { display: block; }
body[data-page="home"] .blog-cards figure { aspect-ratio: 1; margin: 0 0 24px; overflow: hidden; background: #ddd; }
body[data-page="home"] .blog-cards img { width: 100%; height: 100%; object-fit: cover; transition: transform 550ms cubic-bezier(.22,1,.36,1), filter 350ms ease; }
body[data-page="home"] .blog-cards a:hover img { transform: scale(1.045); filter: contrast(1.08); }
body[data-page="home"] .blog-cards small { color: var(--accent-dark); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
body[data-page="home"] .blog-cards h3 { max-width: 360px; margin-top: 14px; font-size: 25px; font-weight: 520; line-height: 1.15; letter-spacing: -.035em; }

body[data-page="home"] .home-contact { padding: 115px 0 32px; color: var(--white); background: #111113; }
body[data-page="home"] .contact-brand { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: end; margin-bottom: 80px; }
body[data-page="home"] .contact-brand img { width: min(100%, 480px); }
body[data-page="home"] .contact-brand p { max-width: 450px; color: rgba(255,255,255,.65); font-size: 22px; line-height: 1.45; }

body[data-page="home"] .contact-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
body[data-page="home"] .contact-methods a {
  position: relative;
  display: flex;
  min-height: 210px;
  padding: 25px;
  flex-direction: column;
  justify-content: space-between;
  background: #201e23;
  transition: background 220ms ease, transform 220ms ease;
}
body[data-page="home"] .contact-methods a:nth-child(1) { background: #6f4fd4; }
body[data-page="home"] .contact-methods a:hover { background: #8a68ef; transform: translateY(-5px); }
body[data-page="home"] .contact-methods small { color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
body[data-page="home"] .contact-methods strong { max-width: 300px; font-size: clamp(24px,2.3vw,34px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
body[data-page="home"] .contact-methods i { position: absolute; top: 23px; right: 24px; font-style: normal; }

body[data-page="home"] .callback {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  margin-top: 105px;
  padding: 75px 0;
}
body[data-page="home"] .callback-copy h2 { max-width: 500px; font-size: clamp(40px,4.2vw,58px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
body[data-page="home"] .callback-form { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 18px; }
body[data-page="home"] .callback-form label { display: grid; gap: 9px; }
body[data-page="home"] .callback-form label.wide { grid-column: 1/-1; }
body[data-page="home"] .callback-form label > span { color: rgba(255,255,255,.48); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
body[data-page="home"] .callback-form input,
body[data-page="home"] .callback-form textarea {
  width: 100%;
  padding: 15px 0;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  outline: none;
  font: inherit;
  resize: vertical;
  transition: border-color 180ms ease;
}
body[data-page="home"] .callback-form input:focus,
body[data-page="home"] .callback-form textarea:focus { border-color: var(--accent); }
body[data-page="home"] .callback-form button {
  display: flex;
  min-height: 56px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: var(--accent);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}
body[data-page="home"] .callback-form button:hover { color: var(--white); background: var(--accent-dark); }
body[data-page="home"] .form-note { align-self: center; color: rgba(255,255,255,.42); font-size: 11px; line-height: 1.4; }

body[data-page="home"] .contact-meta {
  display: grid;
  grid-template-columns: 1.2fr .7fr 1.2fr auto;
  gap: 35px;
  align-items: end;
  padding-top: 28px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.14);
}
body[data-page="home"] .contact-meta small { display: block; margin-bottom: 7px; color: rgba(255,255,255,.32); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
body[data-page="home"] .contact-meta > a { justify-self: end; color: var(--white); }

@media (max-width: 980px) {
  body[data-page="home"] .home-header .header-inner { grid-template-columns: 1fr auto auto; }
  body[data-page="home"] .home-contact-link { justify-self: auto; }
  body[data-page="home"] .home-section-heading { grid-template-columns: 1fr; gap: 24px; }
  body[data-page="home"] .home-section-heading h2 { grid-column: auto; }
  body[data-page="home"] .offer-list { grid-template-columns: 1fr; }
  body[data-page="home"] .offer-list > a { min-height: 260px; }
  body[data-page="home"] .turnkey-inner,
  body[data-page="home"] .education-sale,
  body[data-page="home"] .contact-brand,
  body[data-page="home"] .callback { grid-template-columns: 1fr; gap: 55px; }
  body[data-page="home"] .system-parts { grid-template-columns: repeat(2,1fr); }
  body[data-page="home"] .blog-cards { gap: 16px; }
  body[data-page="home"] .contact-meta { grid-template-columns: repeat(2,1fr); }
  body[data-page="home"] .contact-meta > a { justify-self: start; }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-contact-link { display: none; }
  body[data-page="home"] .home-header .header-inner { grid-template-columns: 1fr auto; }
  body[data-page="home"] .home-hero .hero-inner { padding-bottom: 28px; }
  body[data-page="home"] .home-hero .hero-copy > p { font-size: 16px; }
  body[data-page="home"] .hero-caption { max-width: 270px; margin-top: 38px; line-height: 1.7; }
  body[data-page="home"] .hero-angle { right: -18px; bottom: 45px; width: 100px; height: 100px; opacity: .42; }
  body[data-page="home"] .offer-list > a { min-height: 235px; padding: 23px; }
  body[data-page="home"] .offer-list h3 { font-size: 27px; }
  body[data-page="home"] .home-case .project-inner { padding-bottom: 34px; }
  body[data-page="home"] .system-parts { grid-template-columns: 1fr 1fr; gap: 15px 8px; }
  body[data-page="home"] .system-parts > div { min-height: 73px; padding-left: 14px; }
  body[data-page="home"] .system-parts strong { font-size: 12px; }
  body[data-page="home"] .case-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  body[data-page="home"] .turnkey,
  body[data-page="home"] .turnkey-inner { min-height: 940px; }
  body[data-page="home"] .turnkey-inner { padding: 84px 0 36px; gap: 44px; }
  body[data-page="home"] .turnkey-copy h2,
  body[data-page="home"] .education-title h2 { font-size: 44px; }
  body[data-page="home"] .turnkey-copy > p,
  body[data-page="home"] .education-offer > p { font-size: 16px; }
  body[data-page="home"] .turnkey-result > div { padding: 20px; }
  body[data-page="home"] .education-offer { padding-top: 0; }
  body[data-page="home"] .home-blog { padding: 85px 0; }
  body[data-page="home"] .blog-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  body[data-page="home"] .blog-cards { grid-template-columns: 1fr; gap: 48px; }
  body[data-page="home"] .blog-cards h3 { font-size: 23px; }
  body[data-page="home"] .home-contact { padding-top: 75px; }
  body[data-page="home"] .contact-brand { margin-bottom: 55px; gap: 35px; }
  body[data-page="home"] .contact-brand img { width: 260px; }
  body[data-page="home"] .contact-brand p { font-size: 18px; }
  body[data-page="home"] .contact-methods { grid-template-columns: 1fr; gap: 8px; }
  body[data-page="home"] .contact-methods a { min-height: 150px; }
  body[data-page="home"] .callback { margin-top: 68px; padding: 45px 0; }
  body[data-page="home"] .callback-form { grid-template-columns: 1fr; }
  body[data-page="home"] .callback-form label.wide { grid-column: auto; }
  body[data-page="home"] .contact-meta { grid-template-columns: 1fr; gap: 24px; padding-bottom: 15px; }
}

/* Home page — refinement pass */
body[data-page="home"] .home-header .header-inner {
  grid-template-columns: 170px 1fr 205px;
}

body[data-page="home"] .home-nav .nav-item {
  height: 100%;
}

body[data-page="home"] .home-nav .nav-link {
  height: 100%;
  padding-inline: 18px;
}

body[data-page="home"] .home-mega-menu {
  top: calc(100% - 1px);
  left: 50%;
  width: 520px;
  padding: 18px;
  gap: 3px;
  color: var(--ink);
  background: rgba(247, 246, 242, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, 14px);
}

body[data-page="home"] .home-portfolio-menu {
  width: 430px;
}

body[data-page="home"] .nav-item:hover .home-mega-menu,
body[data-page="home"] .nav-item:focus-within .home-mega-menu {
  transform: translate(-50%, 0);
}

body[data-page="home"] .home-mega-menu::after {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  content: "";
  border-top: 2px solid rgba(115, 82, 220, 0.38);
  border-right: 2px solid rgba(115, 82, 220, 0.38);
  transform: rotate(45deg);
  pointer-events: none;
}

body[data-page="home"] .home-mega-menu > p {
  padding: 12px 14px 17px;
}

body[data-page="home"] .home-mega-menu a {
  position: relative;
  padding: 17px 76px 17px 15px;
  background: transparent;
}

body[data-page="home"] .home-mega-menu a:hover,
body[data-page="home"] .home-mega-menu a:focus {
  padding-left: 23px;
  background: #eae6f6;
}

body[data-page="home"] .header-phone-home {
  display: grid;
  justify-self: end;
  gap: 2px;
  text-align: right;
}

body[data-page="home"] .header-phone-home small {
  color: rgba(255, 255, 255, 0.43);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="home"] .header-phone-home span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.025em;
  transition: color 180ms ease;
}

body[data-page="home"] .header-phone-home:hover span {
  color: var(--accent);
}

body[data-page="home"] .home-offers {
  padding: 130px 0 0;
  background: #f4f3ef;
  overflow: hidden;
}

body[data-page="home"] .home-offers .home-section-heading {
  margin-bottom: 62px;
}

body[data-page="home"] .home-offers .offer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  min-height: 730px;
  transition: grid-template-columns 550ms cubic-bezier(.22,1,.36,1);
}

body[data-page="home"] .home-offers .offer-list:has(.direction-product:hover) {
  grid-template-columns: 1.28fr .86fr .86fr;
}

body[data-page="home"] .home-offers .offer-list:has(.direction-turnkey:hover) {
  grid-template-columns: .86fr 1.28fr .86fr;
}

body[data-page="home"] .home-offers .offer-list:has(.direction-learning:hover) {
  grid-template-columns: .86fr .86fr 1.28fr;
}

body[data-page="home"] .home-offers .offer-list > a {
  position: relative;
  display: flex;
  min-height: 730px;
  padding: 50px 42px 44px;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  color: var(--white);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  transform: none;
}

body[data-page="home"] .home-offers .offer-list > a::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: auto;
  height: auto;
  content: "";
  border: 0;
  background: linear-gradient(180deg, rgba(12,12,14,.1) 12%, rgba(12,12,14,.88) 88%);
  transform: none;
  transition: background 350ms ease;
}

body[data-page="home"] .home-offers .offer-list > a::after {
  position: absolute;
  z-index: -1;
  top: 38px;
  right: 38px;
  width: 66px;
  height: 66px;
  content: "";
  border-top: 2px solid rgba(255,255,255,.56);
  border-right: 2px solid rgba(168,136,255,.9);
  transform: rotate(45deg);
  transition: transform 450ms cubic-bezier(.22,1,.36,1), border-color 250ms ease;
}

body[data-page="home"] .home-offers .offer-list > a:hover {
  color: var(--white);
  background-color: transparent;
  transform: none;
}

body[data-page="home"] .home-offers .offer-list > a:hover::before {
  background: linear-gradient(180deg, rgba(20,11,29,.06) 5%, rgba(29,18,42,.9) 92%);
}

body[data-page="home"] .home-offers .offer-list > a:hover::after {
  border-color: var(--accent);
  transform: rotate(45deg) scale(1.2);
}

body[data-page="home"] .direction-product {
  background-image: url("./assets/images/manek-dressed.jpg");
  background-position: 55% 28% !important;
}

body[data-page="home"] .direction-turnkey {
  background-image: url("./assets/images/manek-detail.jpg");
  background-position: 50% 30% !important;
}

body[data-page="home"] .direction-learning {
  background-image: url("./assets/images/manek-hero.jpg");
  background-position: 55% center !important;
}

body[data-page="home"] .home-offers .offer-list span {
  position: static;
  color: var(--accent);
}

body[data-page="home"] .home-offers .offer-list h3 {
  max-width: 420px;
  margin: 22px 0 17px;
  font-size: clamp(30px, 2.75vw, 42px);
  line-height: 1.02;
}

body[data-page="home"] .home-offers .offer-list p {
  max-width: 370px;
  color: rgba(255,255,255,.66);
  font-size: 14px;
}

body[data-page="home"] .home-offers .offer-list i {
  position: static;
  margin-top: 30px;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

body[data-page="home"] .home-case .home-primary-link {
  margin-top: 5px;
}

body[data-page="home"] .blog-cards figure {
  aspect-ratio: 1.9 / 1;
}

body[data-page="home"] .home-contact {
  padding: 120px 0 30px;
  background:
    radial-gradient(circle at 83% 10%, rgba(115,82,220,.18), transparent 32%),
    #111113;
}

body[data-page="home"] .contact-opening {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 82px;
}

body[data-page="home"] .contact-opening .section-label {
  grid-column: 1 / -1;
  margin-bottom: -30px;
}

body[data-page="home"] .contact-opening h2 {
  max-width: 720px;
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.07em;
}

body[data-page="home"] .contact-opening > p:last-child {
  max-width: 450px;
  color: rgba(255,255,255,.6);
  font-size: 18px;
  line-height: 1.55;
}

body[data-page="home"] .contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

body[data-page="home"] .contact-methods a,
body[data-page="home"] .contact-methods a:nth-child(1) {
  min-height: 150px;
  padding: 0 35px 0 0;
  justify-content: flex-end;
  background: transparent;
  transform: none;
}

body[data-page="home"] .contact-methods a::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  content: "";
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transition: width 250ms ease, height 250ms ease;
}

body[data-page="home"] .contact-methods a:hover {
  color: var(--accent);
  background: transparent;
  transform: none;
}

body[data-page="home"] .contact-methods a:hover::before {
  width: 27px;
  height: 27px;
}

body[data-page="home"] .contact-methods small {
  margin-bottom: 22px;
}

body[data-page="home"] .contact-methods strong {
  font-size: clamp(25px, 2.5vw, 36px);
}

body[data-page="home"] .contact-methods i {
  top: 0;
  right: 0;
}

body[data-page="home"] .callback-trigger {
  display: inline-flex;
  margin-top: 58px;
  padding: 11px 0;
  align-items: center;
  gap: 15px;
  color: rgba(255,255,255,.7);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  transition: color 180ms ease;
}

body[data-page="home"] .callback-trigger:hover {
  color: var(--accent);
}

body[data-page="home"] .contact-ending {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 90px;
  align-items: end;
  margin-top: 105px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.13);
}

body[data-page="home"] .contact-ending > img {
  display: block;
  width: 310px;
  height: auto;
  aspect-ratio: 922 / 308;
  object-fit: contain;
}

body[data-page="home"] .contact-ending .contact-meta {
  display: grid;
  grid-template-columns: 1fr .7fr 1fr auto;
  gap: 30px;
  padding: 0;
  border: 0;
}

body[data-page="home"] .callback-dialog {
  width: min(720px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  padding: 48px;
  color: var(--ink);
  background: #f4f3ef;
  border: 0;
  box-shadow: 0 40px 140px rgba(0,0,0,.48);
  overflow: auto;
}

body[data-page="home"] .callback-dialog::backdrop {
  background: rgba(7,7,9,.74);
  backdrop-filter: blur(9px);
}

body[data-page="home"] .dialog-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 28px;
  font-weight: 300;
}

body[data-page="home"] .dialog-intro {
  margin-bottom: 38px;
}

body[data-page="home"] .dialog-intro .section-label {
  margin-bottom: 20px;
  color: var(--accent-dark);
}

body[data-page="home"] .dialog-intro h2 {
  margin-bottom: 15px;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.055em;
}

body[data-page="home"] .dialog-intro > p:last-child {
  color: var(--muted);
}

body[data-page="home"] .callback-dialog .callback-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 18px;
}

body[data-page="home"] .callback-dialog .callback-form label > span {
  color: var(--muted);
}

body[data-page="home"] .callback-dialog .callback-form input,
body[data-page="home"] .callback-dialog .callback-form textarea {
  color: var(--ink);
  border-bottom-color: rgba(23,23,25,.28);
}

body[data-page="home"] .callback-dialog .form-note {
  color: var(--muted);
}

@media (max-width: 980px) {
  body[data-page="home"] .home-header .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  body[data-page="home"] .home-offers .offer-list,
  body[data-page="home"] .home-offers .offer-list:has(.direction-product:hover),
  body[data-page="home"] .home-offers .offer-list:has(.direction-turnkey:hover),
  body[data-page="home"] .home-offers .offer-list:has(.direction-learning:hover) {
    grid-template-columns: repeat(3, 1fr);
  }

  body[data-page="home"] .home-offers .offer-list > a {
    min-height: 640px;
    padding: 35px 25px;
  }

  body[data-page="home"] .contact-opening {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  body[data-page="home"] .contact-opening .section-label {
    grid-column: auto;
    margin-bottom: 0;
  }

  body[data-page="home"] .contact-ending {
    grid-template-columns: 230px 1fr;
    gap: 50px;
  }

  body[data-page="home"] .contact-ending > img {
    width: 230px;
  }

  body[data-page="home"] .contact-ending .contact-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .header-phone-home {
    display: none;
  }

  body[data-page="home"] .home-offers {
    padding-top: 84px;
  }

  body[data-page="home"] .home-offers .offer-list,
  body[data-page="home"] .home-offers .offer-list:has(.direction-product:hover),
  body[data-page="home"] .home-offers .offer-list:has(.direction-turnkey:hover),
  body[data-page="home"] .home-offers .offer-list:has(.direction-learning:hover) {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-offers .offer-list > a {
    min-height: 560px;
    padding: 32px 24px;
  }

  body[data-page="home"] .home-offers .offer-list h3 {
    font-size: 36px;
  }

  body[data-page="home"] .contact-opening h2 {
    font-size: 54px;
  }

  body[data-page="home"] .contact-methods {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  body[data-page="home"] .contact-methods a,
  body[data-page="home"] .contact-methods a:nth-child(1) {
    min-height: 115px;
  }

  body[data-page="home"] .contact-ending {
    grid-template-columns: 1fr;
    gap: 38px;
    margin-top: 70px;
  }

  body[data-page="home"] .contact-ending > img {
    width: 240px;
  }

  body[data-page="home"] .contact-ending .contact-meta {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .callback-dialog {
    padding: 55px 24px 28px;
  }

  body[data-page="home"] .callback-dialog .callback-form {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .callback-dialog .callback-form label.wide {
    grid-column: auto;
  }
}

/* Home page — consolidated navigation and contact treatment */
body[data-page="home"] .home-header {
  top: 14px;
  right: 24px;
  left: 24px;
  height: 66px;
  color: var(--white);
  background: rgba(18, 18, 20, .78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body[data-page="home"] .home-header.is-scrolled {
  top: 8px;
  height: 62px;
  background: rgba(18, 18, 20, .94);
}

body[data-page="home"] .home-header .header-inner {
  grid-template-columns: 150px 1fr;
  width: min(var(--container), calc(100% - 42px));
}

body[data-page="home"] .home-header .brand {
  width: 116px;
}

body[data-page="home"] .home-nav {
  justify-content: flex-end;
  gap: 2px;
}

body[data-page="home"] .home-nav .nav-link {
  padding-inline: 15px;
  font-size: 12px;
  font-weight: 600;
  opacity: .78;
}

body[data-page="home"] .home-nav .nav-link::before {
  top: 12px;
  left: 7px;
  width: 6px;
  height: 6px;
}

body[data-page="home"] .home-mega-menu {
  left: auto;
  right: 0;
  width: 450px;
  transform: translateY(13px);
}

body[data-page="home"] .nav-item:hover .home-mega-menu,
body[data-page="home"] .nav-item:focus-within .home-mega-menu {
  transform: translateY(0);
}

body[data-page="home"] .home-portfolio-menu {
  width: 390px;
}

body[data-page="home"] .contact-mega-menu {
  width: 430px;
}

body[data-page="home"] .contact-mega-menu button {
  display: grid;
  width: 100%;
  padding: 17px 76px 17px 15px;
  gap: 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: padding-left 160ms ease, background 160ms ease;
}

body[data-page="home"] .contact-mega-menu button:hover,
body[data-page="home"] .contact-mega-menu button:focus {
  padding-left: 23px;
  background: #eae6f6;
  outline: none;
}

body[data-page="home"] .contact-mega-menu button strong {
  font-size: 16px;
  font-weight: 550;
}

body[data-page="home"] .contact-mega-menu button small {
  color: var(--muted);
  font-size: 12px;
}

body[data-page="home"] .header-phone-home {
  display: none;
}

body[data-page="home"] .home-contact {
  padding-top: 105px;
}

body[data-page="home"] .contact-opening {
  grid-template-columns: minmax(0, 1.12fr) minmax(290px, .88fr);
  margin-bottom: 78px;
}

body[data-page="home"] .contact-title-lockup {
  display: grid;
  gap: 32px;
}

body[data-page="home"] .contact-title-lockup img {
  width: 185px;
  height: auto;
  aspect-ratio: 922 / 308;
  object-fit: contain;
}

body[data-page="home"] .contact-title-lockup h2 {
  max-width: 750px;
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.07em;
}

body[data-page="home"] .contact-methods {
  gap: 12px;
}

body[data-page="home"] .contact-choice,
body[data-page="home"] .contact-methods a.contact-choice,
body[data-page="home"] .contact-methods button.contact-choice,
body[data-page="home"] .direct-choice {
  position: relative;
  display: flex;
  min-height: 290px;
  padding: 26px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background: #201e23;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

body[data-page="home"] .direct-choice {
  background: #6f4fd4;
}

body[data-page="home"] .contact-choice::before,
body[data-page="home"] .contact-methods a.contact-choice::before {
  display: none;
}

body[data-page="home"] .contact-choice:hover,
body[data-page="home"] .contact-methods a.contact-choice:hover,
body[data-page="home"] .contact-methods button.contact-choice:hover {
  color: var(--white);
  background: #8060e2;
  transform: translateY(-5px);
}

body[data-page="home"] .contact-choice small {
  margin: 0;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-page="home"] .contact-choice > strong {
  max-width: 330px;
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.04em;
}

body[data-page="home"] .contact-choice > span,
body[data-page="home"] .direct-choice > div {
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 650;
}

body[data-page="home"] .direct-choice > div {
  display: grid;
  gap: 9px;
}

body[data-page="home"] .direct-choice > div a {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
}

body[data-page="home"] .direct-choice > div a:hover {
  color: var(--white);
  background: transparent;
  transform: none;
  opacity: .72;
}

body[data-page="home"] .callback-trigger {
  display: none;
}

body[data-page="home"] .contact-ending {
  display: block;
  margin-top: 84px;
}

body[data-page="home"] .contact-ending .contact-meta {
  grid-template-columns: 1.2fr .65fr 1.2fr auto;
}

@media (max-width: 980px) {
  body[data-page="home"] .home-header .header-inner {
    grid-template-columns: 1fr auto;
  }

  body[data-page="home"] .contact-opening {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .contact-title-lockup {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-header {
    top: 8px;
    right: 10px;
    left: 10px;
    height: 58px;
  }

  body[data-page="home"] .home-header.is-scrolled {
    top: 6px;
    height: 56px;
  }

  body[data-page="home"] .home-header .header-inner {
    width: calc(100% - 28px);
  }

  body[data-page="home"] .contact-title-lockup img {
    width: 145px;
  }

  body[data-page="home"] .contact-title-lockup h2 {
    font-size: 53px;
  }

  body[data-page="home"] .contact-choice,
  body[data-page="home"] .contact-methods a.contact-choice,
  body[data-page="home"] .contact-methods button.contact-choice,
  body[data-page="home"] .direct-choice {
    min-height: 220px;
  }
}

/* Home page — simplified information architecture */
body[data-page="home"] .home-header .header-inner {
  grid-template-columns: 145px 1fr auto;
  gap: 24px;
}

body[data-page="home"] .home-nav {
  justify-content: center;
  gap: 14px;
}

body[data-page="home"] .home-nav .nav-link {
  position: relative;
  height: auto;
  padding: 12px 9px;
  font-size: 12px;
  font-weight: 600;
  opacity: .62;
}

body[data-page="home"] .home-nav .nav-link::before,
body[data-page="home"] .home-nav .nav-link::after {
  display: none;
}

body[data-page="home"] .home-nav .nav-link:hover,
body[data-page="home"] .home-nav .nav-link.is-active {
  color: var(--white);
  opacity: 1;
}

body[data-page="home"] .home-nav .nav-link.is-active::after {
  position: absolute;
  display: block;
  right: auto;
  bottom: 5px;
  left: 9px;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--accent);
  transform: rotate(45deg);
}

body[data-page="home"] .menu-contact {
  display: inline-flex;
  min-height: 38px;
  padding: 0 2px 0 14px;
  align-items: center;
  gap: 16px;
  color: var(--white);
  background: rgba(255,255,255,.08);
  font-size: 11px;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease;
}

body[data-page="home"] .menu-contact i {
  position: relative;
  width: 34px;
  height: 34px;
  background: var(--accent);
}

body[data-page="home"] .menu-contact i::before,
body[data-page="home"] .menu-contact i::after {
  position: absolute;
  content: "";
}

body[data-page="home"] .menu-contact i::before {
  top: 12px;
  left: 11px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

body[data-page="home"] .menu-contact i::after {
  top: 17px;
  left: 10px;
  width: 14px;
  height: 2px;
  background: var(--ink);
  transform: rotate(-45deg);
  transform-origin: center;
}

body[data-page="home"] .menu-contact:hover {
  color: var(--ink);
  background: var(--accent);
}

body[data-page="home"] .menu-contact:hover i {
  background: var(--white);
}

body[data-page="home"] .home-services {
  padding: 135px 0;
  background: #f4f3ef;
  scroll-margin-top: 90px;
}

body[data-page="home"] .services-layout {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 100px;
}

body[data-page="home"] .services-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

body[data-page="home"] .services-intro h2 {
  max-width: 570px;
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.06em;
}

body[data-page="home"] .services-intro > p:last-child {
  max-width: 430px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

body[data-page="home"] .services-lines {
  display: grid;
}

body[data-page="home"] .services-lines a {
  position: relative;
  display: grid;
  min-height: 178px;
  padding: 27px 54px 27px 0;
  align-content: center;
  gap: 16px;
  border-bottom: 1px solid rgba(23,23,25,.16);
  transition: padding-left 250ms ease, color 200ms ease;
}

body[data-page="home"] .services-lines a:first-child {
  border-top: 1px solid rgba(23,23,25,.16);
}

body[data-page="home"] .services-lines a::before {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 9px;
  height: 9px;
  content: "";
  border-top: 2px solid var(--accent-dark);
  border-right: 2px solid var(--accent-dark);
  opacity: 0;
  transform: translate(-8px,-50%) rotate(45deg);
  transition: opacity 200ms ease, transform 250ms ease;
}

body[data-page="home"] .services-lines a:hover {
  padding-left: 23px;
  color: var(--accent-dark);
}

body[data-page="home"] .services-lines a:hover::before {
  opacity: 1;
  transform: translate(0,-50%) rotate(45deg);
}

body[data-page="home"] .services-lines span {
  font-size: 27px;
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -.035em;
}

body[data-page="home"] .services-lines p {
  max-width: 540px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

body[data-page="home"] .services-lines i {
  position: absolute;
  top: 31px;
  right: 0;
  color: #aaa9ad;
  font-size: 10px;
  font-style: normal;
}

body[data-page="home"] .home-ideas {
  background: #fff;
}

body[data-page="home"] .home-ideas .blog-cards small {
  color: var(--accent-dark);
}

body[data-page="home"] .home-ideas .blog-cards a {
  position: relative;
}

body[data-page="home"] .home-ideas .blog-cards a::after {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  content: "↗";
  color: var(--ink);
  background: rgba(255,255,255,.86);
  display: grid;
  place-items: center;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

body[data-page="home"] .home-ideas .blog-cards a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="home"] .direct-choice {
  justify-content: flex-start;
}

body[data-page="home"] .direct-choice > strong {
  margin-top: 52px;
}

body[data-page="home"] .direct-choice > div {
  display: grid;
  margin-top: auto;
  gap: 0;
}

body[data-page="home"] .direct-choice > div a {
  position: relative;
  display: flex;
  min-height: 46px;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.24);
  font-size: 13px;
}

body[data-page="home"] .direct-choice > div a::after {
  content: "↗";
}

body[data-page="home"] .direct-choice > div a:first-child {
  margin-top: 20px;
}

@media (max-width: 980px) {
  body[data-page="home"] .home-header .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  body[data-page="home"] .menu-contact {
    display: none;
  }

  body[data-page="home"] .services-layout {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  body[data-page="home"] .services-intro {
    position: static;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-services {
    padding: 85px 0;
  }

  body[data-page="home"] .services-layout {
    gap: 48px;
  }

  body[data-page="home"] .services-intro h2 {
    font-size: 45px;
  }

  body[data-page="home"] .services-lines a {
    min-height: 156px;
  }

  body[data-page="home"] .services-lines span {
    font-size: 24px;
  }
}

body[data-page="home"] .project-manek {
  background-image: url("./assets/images/mannequin-case-v2.png");
  background-position: center 48%;
}

@media (max-width: 640px) {
  body[data-page="home"] .project-manek {
    background-position: 58% center;
  }
}

body[data-page="home"] .project-tapper {
  background-image: url("./assets/images/tapper-case.jpg");
  background-position: center 48%;
}

@media (max-width: 640px) {
  body[data-page="home"] .project-tapper {
    background-position: 42% center;
  }
}

/* Home page — X hero and fullscreen navigation */
body[data-page="home"].menu-open {
  overflow: hidden;
}

body[data-page="home"] .home-header {
  top: 8px;
  right: 18px;
  left: 18px;
  height: 62px;
  background: rgba(18,18,20,.94);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-24px);
  transition: opacity 300ms ease, transform 380ms cubic-bezier(.22,1,.36,1), background 280ms ease;
}

body[data-page="home"] .home-header.is-scrolled {
  top: 8px;
  height: 62px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body[data-page="home"] .home-header .header-inner {
  grid-template-columns: 1fr auto;
}

body[data-page="home"] .home-header .brand {
  width: 116px;
}

body[data-page="home"] .menu-toggle,
body[data-page="home"] .hero-menu-toggle,
body[data-page="home"] .menu-top button {
  display: grid;
  padding: 0;
  grid-template-columns: auto 28px;
  grid-template-rows: 1fr 1fr;
  column-gap: 14px;
  align-items: center;
  color: var(--white);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body[data-page="home"] .menu-toggle span,
body[data-page="home"] .hero-menu-toggle span,
body[data-page="home"] .menu-top button span {
  grid-row: 1 / 3;
}

body[data-page="home"] .menu-toggle i,
body[data-page="home"] .hero-menu-toggle i,
body[data-page="home"] .menu-top button i {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width 180ms ease, transform 180ms ease;
}

body[data-page="home"] .menu-toggle:hover i:first-of-type,
body[data-page="home"] .hero-menu-toggle:hover i:first-of-type {
  width: 18px;
  justify-self: end;
}

body[data-page="home"] .hero-menu-toggle {
  position: absolute;
  z-index: 30;
  top: 32px;
  right: 42px;
}

body[data-page="home"] .x-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  color: var(--white);
  background: #101012;
  overflow: hidden;
}

body[data-page="home"] .x-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, rgba(17,17,20,.05), rgba(17,17,20,.34) 62%, rgba(17,17,20,.82) 100%),
    linear-gradient(90deg, rgba(14,14,17,.62), transparent 38%, transparent 62%, rgba(14,14,17,.62));
}

body[data-page="home"] .x-hero-art {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: min(76vw, 1120px);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: .94;
  object-fit: contain;
  animation: x-breathe 8s ease-in-out infinite alternate;
}

@keyframes x-breathe {
  from { transform: translate(-50%, -50%) scale(1); filter: saturate(.9); }
  to { transform: translate(-50%, -50%) scale(1.025); filter: saturate(1.12); }
}

body[data-page="home"] .x-hero .hero-inner {
  display: flex;
  min-height: 100svh;
  padding-top: 110px;
  padding-bottom: 30px;
  flex-direction: column;
  justify-content: space-between;
}

body[data-page="home"] .x-hero .overline {
  align-self: flex-start;
  margin-top: 12px;
}

body[data-page="home"] .x-hero .hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 180px;
  align-items: center;
  margin: auto 0;
}

body[data-page="home"] .x-hero h1,
body[data-page="home"] .x-hero .hero-copy h2 {
  max-width: 600px;
  font-size: clamp(59px, 7vw, 104px);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.07em;
}

body[data-page="home"] .x-hero h1 {
  align-self: center;
}

body[data-page="home"] .x-hero .hero-copy {
  max-width: 570px;
  padding-top: 35px;
}

body[data-page="home"] .x-hero .hero-copy h2 {
  margin-bottom: 30px;
}

body[data-page="home"] .x-hero .hero-copy > p {
  max-width: 420px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.66);
  font-size: 16px;
}

body[data-page="home"] .hero-anchors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(740px, 100%);
  align-self: center;
  gap: 8px;
}

body[data-page="home"] .hero-anchors a {
  display: flex;
  min-height: 66px;
  padding: 0 17px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(9px);
  transition: background 180ms ease, transform 180ms ease;
}

body[data-page="home"] .hero-anchors a:hover {
  background: rgba(168,136,255,.3);
  transform: translateY(-4px);
}

body[data-page="home"] .hero-anchors small {
  color: rgba(255,255,255,.38);
  font-size: 9px;
}

body[data-page="home"] .hero-anchors span {
  font-size: 13px;
  font-weight: 650;
}

body[data-page="home"] .fullscreen-menu {
  position: fixed;
  z-index: 300;
  inset: 0;
  padding: 28px 42px 38px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 18%, rgba(115,82,220,.23), transparent 34%),
    #111113;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity 320ms ease, transform 650ms cubic-bezier(.76,0,.24,1), visibility 650ms ease;
}

body[data-page="home"] .fullscreen-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body[data-page="home"] .menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body[data-page="home"] .menu-top > img {
  width: 135px;
  height: auto;
}

body[data-page="home"] .menu-top button i:first-of-type {
  transform: translateY(7px) rotate(45deg);
}

body[data-page="home"] .menu-top button i:last-of-type {
  transform: translateY(-7px) rotate(-45deg);
}

body[data-page="home"] .menu-content {
  display: grid;
  height: calc(100svh - 110px);
  padding-top: 55px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 100px;
  align-items: center;
}

body[data-page="home"] .menu-main {
  display: grid;
}

body[data-page="home"] .menu-main a {
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  color: rgba(255,255,255,.42);
  transition: color 220ms ease, transform 250ms ease;
}

body[data-page="home"] .menu-main a:hover {
  color: var(--white);
  transform: translateX(18px);
}

body[data-page="home"] .menu-main small {
  color: var(--accent);
  font-size: 10px;
}

body[data-page="home"] .menu-main strong {
  font-size: clamp(50px, 6.3vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.06em;
}

body[data-page="home"] .menu-side {
  display: grid;
  max-width: 410px;
  gap: 38px;
}

body[data-page="home"] .menu-side > p {
  color: rgba(255,255,255,.58);
  font-size: 17px;
  line-height: 1.5;
}

body[data-page="home"] .menu-side > div {
  display: grid;
  gap: 9px;
}

body[data-page="home"] .menu-side small {
  margin-bottom: 4px;
  color: rgba(255,255,255,.32);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-page="home"] .menu-side a {
  font-size: 14px;
  transition: color 180ms ease;
}

body[data-page="home"] .menu-side a:hover {
  color: var(--accent);
}

body[data-page="home"] .menu-contact-action {
  display: flex;
  min-height: 54px;
  padding: 0 17px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink) !important;
  background: var(--accent);
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .x-hero-art { animation: none; }
}

@media (max-width: 980px) {
  body[data-page="home"] .x-hero .hero-layout {
    gap: 70px;
  }

  body[data-page="home"] .x-hero-art {
    width: 92vw;
  }

  body[data-page="home"] .menu-content {
    gap: 55px;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-header {
    right: 10px;
    left: 10px;
  }

  body[data-page="home"] .hero-menu-toggle {
    top: 22px;
    right: 20px;
  }

  body[data-page="home"] .hero-menu-toggle span,
  body[data-page="home"] .menu-toggle span {
    display: none;
  }

  body[data-page="home"] .x-hero .hero-inner {
    padding-top: 84px;
    padding-bottom: 18px;
  }

  body[data-page="home"] .x-hero-art {
    top: 43%;
    width: 135vw;
    opacity: .74;
  }

  body[data-page="home"] .x-hero .hero-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: auto 0 35px;
  }

  body[data-page="home"] .x-hero h1,
  body[data-page="home"] .x-hero .hero-copy h2 {
    font-size: 52px;
    line-height: .87;
  }

  body[data-page="home"] .x-hero .hero-copy {
    padding-top: 0;
    text-align: right;
  }

  body[data-page="home"] .x-hero .hero-copy h2 {
    margin-bottom: 22px;
  }

  body[data-page="home"] .x-hero .hero-copy > p {
    max-width: 300px;
    margin-left: auto;
    font-size: 14px;
  }

  body[data-page="home"] .x-hero .hero-actions {
    align-items: flex-end;
  }

  body[data-page="home"] .hero-anchors {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  body[data-page="home"] .hero-anchors a {
    min-height: 47px;
  }

  body[data-page="home"] .fullscreen-menu {
    padding: 20px;
  }

  body[data-page="home"] .menu-top > img {
    width: 112px;
  }

  body[data-page="home"] .menu-top button span {
    display: none;
  }

  body[data-page="home"] .menu-content {
    height: calc(100svh - 80px);
    padding-top: 30px;
    grid-template-columns: 1fr;
    gap: 34px;
    align-content: center;
  }

  body[data-page="home"] .menu-main a {
    grid-template-columns: 30px 1fr;
  }

  body[data-page="home"] .menu-main strong {
    font-size: 45px;
  }

  body[data-page="home"] .menu-side {
    gap: 18px;
  }

  body[data-page="home"] .menu-side > p {
    display: none;
  }

  body[data-page="home"] .menu-side > div:nth-of-type(2) {
    display: none;
  }
}

/* Home page — minimal content pass */
body[data-page="home"] .home-header {
  top: 0;
  right: 0;
  left: 0;
}

body[data-page="home"] .home-header .header-inner {
  width: min(var(--container), calc(100% - 80px));
}

body[data-page="home"] .hero-menu-wrap {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 50%;
  width: min(var(--container), calc(100% - 80px));
  height: 0;
  transform: translateX(-50%);
}

body[data-page="home"] .hero-menu-toggle {
  top: 32px;
  right: 0;
}

body[data-page="home"] .by-flag {
  display: inline-block;
  margin-left: 5px;
  font-size: 13px;
  filter: saturate(.82);
}

body[data-page="home"] .x-hero .hero-thesis {
  align-self: center;
}

body[data-page="home"] .x-hero .hero-thesis > p {
  max-width: 370px;
  margin-top: 25px;
  color: rgba(255,255,255,.6);
  font-size: 15px;
  line-height: 1.55;
}

body[data-page="home"] .x-hero .hero-copy {
  align-self: center;
  padding-top: 0;
}

body[data-page="home"] .x-hero .hero-copy h2 {
  margin-bottom: 25px;
}

body[data-page="home"] .services-lines article {
  position: relative;
  display: grid;
  min-height: 214px;
  padding: 30px 52px 30px 0;
  align-content: center;
  gap: 15px;
  border-bottom: 1px solid rgba(23,23,25,.16);
}

body[data-page="home"] .services-lines article:first-child {
  border-top: 1px solid rgba(23,23,25,.16);
}

body[data-page="home"] .services-lines article > span {
  font-size: 29px;
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -.04em;
}

body[data-page="home"] .services-lines article > p {
  max-width: 550px;
  color: var(--muted);
  font-size: 14px;
}

body[data-page="home"] .services-lines article > i {
  position: absolute;
  top: 33px;
  right: 0;
  color: #aaa9ad;
  font-size: 10px;
  font-style: normal;
}

body[data-page="home"] .services-lines article ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
  margin-top: 3px;
  list-style: none;
}

body[data-page="home"] .services-lines article li {
  position: relative;
  padding-left: 10px;
  color: #38383c;
  font-size: 11px;
}

body[data-page="home"] .services-lines article li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 3px;
  height: 3px;
  content: "";
  background: var(--accent-dark);
  transform: rotate(45deg);
}

body[data-page="home"] .case-edge-layout {
  display: grid;
  grid-template-columns: minmax(310px, .8fr) minmax(330px, 1.2fr) minmax(270px, .7fr);
  gap: 30px;
  align-items: end;
}

body[data-page="home"] .case-edge-layout .case-main-copy {
  grid-column: 1;
  align-self: end;
}

body[data-page="home"] .case-edge-layout .case-side-data {
  grid-column: 3;
  align-self: end;
}

body[data-page="home"] .reverse-case .case-side-data {
  grid-column: 1;
}

body[data-page="home"] .reverse-case .case-main-copy {
  grid-column: 3;
}

body[data-page="home"] .case-side-data {
  grid-template-columns: 1fr;
  max-width: 280px;
  margin: 0 0 5px;
  gap: 11px;
}

body[data-page="home"] .case-side-data > div {
  min-height: 58px;
}

body[data-page="home"] .case-side-data small {
  margin-bottom: 7px;
}

body[data-page="home"] .case-main-copy .home-primary-link {
  margin-top: 32px;
}

body[data-page="home"] .project-manek::before {
  background:
    linear-gradient(90deg, rgba(12,12,15,.89) 0%, rgba(12,12,15,.17) 31%, rgba(12,12,15,.08) 65%, rgba(12,12,15,.78) 100%),
    linear-gradient(180deg, rgba(12,12,15,.05) 35%, rgba(12,12,15,.66) 100%);
}

body[data-page="home"] .project-tapper::before {
  background:
    linear-gradient(90deg, rgba(12,12,15,.78) 0%, rgba(12,12,15,.08) 34%, rgba(12,12,15,.13) 68%, rgba(12,12,15,.9) 100%),
    linear-gradient(180deg, rgba(12,12,15,.05) 35%, rgba(12,12,15,.62) 100%);
}

body[data-page="home"] .education-gallery {
  width: 100%;
  margin-top: 72px;
  overflow: hidden;
}

body[data-page="home"] .education-track {
  display: flex;
  gap: 12px;
  padding-inline: max(40px, calc((100vw - var(--container)) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

body[data-page="home"] .education-track::-webkit-scrollbar {
  display: none;
}

body[data-page="home"] .education-track figure {
  flex: 0 0 min(31vw, 430px);
  height: 220px;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  background: #ddd;
}

body[data-page="home"] .education-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.03);
  transition: filter 250ms ease, transform 500ms cubic-bezier(.22,1,.36,1);
}

body[data-page="home"] .education-track figure:hover img {
  filter: saturate(1);
  transform: scale(1.035);
}

body[data-page="home"] .education-gallery-control {
  display: flex;
  width: min(var(--container), calc(100% - 80px));
  margin: 17px auto 0;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body[data-page="home"] .education-gallery-control div {
  display: flex;
  gap: 7px;
}

body[data-page="home"] .education-gallery-control button {
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(23,23,25,.2);
  cursor: pointer;
  font: inherit;
  transition: color 180ms ease, background 180ms ease;
}

body[data-page="home"] .education-gallery-control button:hover {
  color: var(--white);
  background: var(--ink);
}

body[data-page="home"] .education-actions {
  display: flex;
  margin-top: 36px;
  align-items: center;
  gap: 30px;
}

body[data-page="home"] .home-ideas .blog-heading {
  margin-bottom: 48px;
}

body[data-page="home"] .ideas-list {
  display: grid;
}

body[data-page="home"] .ideas-list a {
  position: relative;
  display: grid;
  min-height: 104px;
  padding: 22px 52px 22px 0;
  grid-template-columns: 78px 145px 1fr;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid rgba(23,23,25,.15);
  transition: padding-left 220ms ease, color 180ms ease;
}

body[data-page="home"] .ideas-list a:first-child {
  border-top: 1px solid rgba(23,23,25,.15);
}

body[data-page="home"] .ideas-list a:hover {
  padding-left: 16px;
  color: var(--accent-dark);
}

body[data-page="home"] .ideas-list time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

body[data-page="home"] .ideas-list small {
  color: var(--accent-dark);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page="home"] .ideas-list h3 {
  max-width: 760px;
  font-size: 21px;
  font-weight: 520;
  line-height: 1.25;
  letter-spacing: -.025em;
}

body[data-page="home"] .ideas-list i {
  position: absolute;
  right: 5px;
  font-style: normal;
}

body[data-page="home"] .contact-title-lockup img {
  display: none;
}

body[data-page="home"] .contact-title-lockup {
  display: block;
}

body[data-page="home"] .direct-choice > strong {
  margin-top: 45px;
}

body[data-page="home"] .direct-links a,
body[data-page="home"] .direct-choice > div a {
  display: grid;
  min-width: 0;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 14px;
}

body[data-page="home"] .direct-links a b {
  min-width: 0;
  overflow: hidden;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"] .direct-links a::after {
  grid-column: 3;
}

@media (max-width: 980px) {
  body[data-page="home"] .case-edge-layout,
  body[data-page="home"] .reverse-case {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="home"] .case-edge-layout .case-main-copy,
  body[data-page="home"] .reverse-case .case-main-copy {
    grid-column: 1;
  }

  body[data-page="home"] .case-edge-layout .case-side-data,
  body[data-page="home"] .reverse-case .case-side-data {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-header {
    right: 0;
    left: 0;
  }

  body[data-page="home"] .home-header .header-inner {
    width: calc(100% - 40px);
  }

  body[data-page="home"] .hero-menu-wrap {
    width: calc(100% - 40px);
  }

  body[data-page="home"] .hero-menu-toggle {
    top: 22px;
  }

  body[data-page="home"] .hero-location {
    max-width: 220px;
    line-height: 1.5;
  }

  body[data-page="home"] .x-hero .hero-thesis > p {
    max-width: 270px;
    font-size: 13px;
  }

  body[data-page="home"] .services-lines article {
    min-height: 205px;
  }

  body[data-page="home"] .case-edge-layout,
  body[data-page="home"] .reverse-case {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
  }

  body[data-page="home"] .case-side-data {
    grid-template-columns: 1fr 1fr;
    max-width: none;
    margin-top: 25px;
  }

  body[data-page="home"] .education-track {
    padding-inline: 20px;
  }

  body[data-page="home"] .education-track figure {
    flex-basis: 78vw;
    height: 190px;
  }

  body[data-page="home"] .education-gallery-control {
    width: calc(100% - 40px);
  }

  body[data-page="home"] .education-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  body[data-page="home"] .ideas-list a {
    min-height: 130px;
    grid-template-columns: 62px 1fr;
    gap: 10px 16px;
  }

  body[data-page="home"] .ideas-list h3 {
    grid-column: 1 / -1;
    font-size: 18px;
  }

  body[data-page="home"] .direct-links a,
  body[data-page="home"] .direct-choice > div a {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    font-size: 11px;
  }
}

/* Home page — final cascade corrections */
body[data-page="home"] .x-hero .hero-inner { padding-top: 30px; padding-bottom: 22px; }
body[data-page="home"] .x-hero .overline { margin-top: 0; padding-top: 2px; }
body[data-page="home"] .hero-menu-toggle { top: 30px; }
body[data-page="home"] .x-hero .hero-layout { width: 100%; margin: auto 0; gap: 12vw; }
body[data-page="home"] .x-hero .hero-copy { display: flex; max-width: 430px; justify-self: end; align-items: flex-end; flex-direction: column; text-align: right; }
body[data-page="home"] .x-hero .hero-copy > p { max-width: 370px; }
body[data-page="home"] .hero-anchors a { min-height: 56px; }

body[data-page="home"] .home-services { padding: 118px 0 125px; background: #f6f5f1; }
body[data-page="home"] .services-layout { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(60px, 9vw, 140px); }

body[data-page="home"] .project-manek,
body[data-page="home"] .project-tapper { color: var(--white); background-image: none; }
body[data-page="home"] .project-manek { background: #151518; }
body[data-page="home"] .project-tapper { background: #211e25; }
body[data-page="home"] .project-manek::before,
body[data-page="home"] .project-tapper::before { display: none; }
body[data-page="home"] .case-split { display: grid; padding: 70px 0; grid-template-columns: minmax(330px, .78fr) minmax(460px, 1.22fr); gap: clamp(50px, 8vw, 120px); align-items: center; }
body[data-page="home"] .case-split-reverse { grid-template-columns: minmax(460px, 1.22fr) minmax(330px, .78fr); }
body[data-page="home"] .case-media { height: 610px; }

body[data-page="home"] .home-blog { padding: 100px 0 105px; }
body[data-page="home"] .home-ideas .blog-heading { margin-bottom: 34px; }
body[data-page="home"] .ideas-list a { min-height: 68px; padding: 13px 48px 13px 0; grid-template-columns: 68px 126px 1fr; gap: 20px; }
body[data-page="home"] .ideas-list h3 { font-size: 17px; line-height: 1.2; }

body[data-page="home"] .contact-methods { grid-template-columns: minmax(390px, 1.25fr) repeat(2, minmax(0, 1fr)); }
body[data-page="home"] .direct-choice > strong { margin-top: 30px; }
body[data-page="home"] .direct-choice .direct-links { display: grid; width: 100%; margin-top: auto; gap: 0; }
body[data-page="home"] .direct-choice .direct-links a { display: flex; width: 100%; min-width: 0; min-height: 58px; margin: 0; padding: 10px 0; grid-template-columns: none; align-items: center; justify-content: space-between; color: var(--white); background: transparent; border-top: 1px solid rgba(255,255,255,.25); transform: none; }
body[data-page="home"] .direct-choice .direct-links a::before,
body[data-page="home"] .direct-choice .direct-links a::after { display: none; content: none; }
body[data-page="home"] .direct-choice .direct-links a:hover { padding-left: 6px; color: var(--white); background: transparent; transform: none; }
body[data-page="home"] .direct-links a > span { display: grid; min-width: 0; gap: 3px; }
body[data-page="home"] .direct-links a b { overflow: visible; font-size: 14px; text-overflow: clip; }
body[data-page="home"] .direct-links a i { position: static; flex: 0 0 auto; margin-left: 18px; }

@media (max-width: 980px) {
  body[data-page="home"] .services-layout { grid-template-columns: 1fr; gap: 55px; }
  body[data-page="home"] .case-split,
  body[data-page="home"] .case-split-reverse { grid-template-columns: .9fr 1.1fr; gap: 45px; }
  body[data-page="home"] .case-media { height: 520px; }
  body[data-page="home"] .contact-methods { grid-template-columns: 1fr 1fr; }
  body[data-page="home"] .direct-choice { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body[data-page="home"] .x-hero .hero-inner { padding-top: 22px; padding-bottom: 14px; }
  body[data-page="home"] .hero-menu-toggle { top: 22px; }
  body[data-page="home"] .x-hero .hero-layout { gap: 8px; margin: auto 0 18px; }
  body[data-page="home"] .hero-anchors { gap: 4px; }
  body[data-page="home"] .hero-anchors a { min-height: 42px; }
  body[data-page="home"] .case-split,
  body[data-page="home"] .case-split-reverse { display: flex; min-height: auto; padding: 74px 0 0; flex-direction: column; gap: 45px; }
  body[data-page="home"] .case-split-reverse .case-media { order: 2; }
  body[data-page="home"] .case-media,
  body[data-page="home"] .case-media-left,
  body[data-page="home"] .case-media-right { width: calc(100% + 40px); height: 62vw; min-height: 300px; max-height: 460px; margin-right: -20px; margin-left: -20px; }
  body[data-page="home"] .home-blog { padding: 78px 0; }
  body[data-page="home"] .ideas-list a { min-height: 90px; padding: 14px 32px 14px 0; grid-template-columns: 52px 1fr; gap: 6px 12px; }
  body[data-page="home"] .ideas-list h3 { font-size: 15px; }
  body[data-page="home"] .contact-methods { grid-template-columns: 1fr; }
  body[data-page="home"] .direct-choice { grid-column: auto; }
}

body[data-page="home"] .services-intro h2 { font-size: clamp(45px, 4.6vw, 66px); }
body[data-page="home"] .services-catalog { border-top: 1px solid rgba(23,23,25,.18); }
body[data-page="home"] .service-entry { display: grid; padding: 36px 0 38px; grid-template-columns: minmax(190px,.72fr) minmax(0,1.28fr); gap: 42px; border-bottom: 1px solid rgba(23,23,25,.18); }
body[data-page="home"] .service-heading { display: grid; align-content: start; gap: 12px; }
body[data-page="home"] .service-heading small { color: var(--accent-dark); font-size: 9px; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
body[data-page="home"] .service-heading h3 { max-width: 230px; font-size: clamp(25px,2.3vw,34px); font-weight: 520; line-height: 1; letter-spacing: -.045em; }
body[data-page="home"] .service-body { min-width: 0; }
body[data-page="home"] .service-result { max-width: 610px; margin-bottom: 30px; color: #353539; font-size: 17px; line-height: 1.48; }
body[data-page="home"] .service-body dl { display: grid; gap: 12px; }
body[data-page="home"] .service-body dl > div { display: grid; padding-top: 11px; grid-template-columns: 115px minmax(0,1fr); gap: 18px; border-top: 1px solid rgba(23,23,25,.1); }
body[data-page="home"] .service-body dt { color: #929197; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
body[data-page="home"] .service-body dd { color: #5c5b60; font-size: 12px; line-height: 1.45; }

body[data-page="home"] .home-case,
body[data-page="home"] .home-case .project-inner { min-height: 760px; }
body[data-page="home"] .case-main-copy { max-width: 470px; }
body[data-page="home"] .case-main-copy h2 { font-size: clamp(47px,5vw,70px); }
body[data-page="home"] .case-main-copy > p:not(.overline):not(.case-stack) { max-width: 470px; color: rgba(255,255,255,.67); }
body[data-page="home"] .case-stack { margin-top: 28px; padding-top: 15px; color: rgba(255,255,255,.43); border-top: 1px solid rgba(255,255,255,.16); font-size: 10px; line-height: 1.6; letter-spacing: .045em; text-transform: uppercase; }
body[data-page="home"] .case-media { margin: 0; overflow: hidden; background: #0e0e10; }
body[data-page="home"] .case-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78) contrast(1.04); }
body[data-page="home"] .case-media-right { width: calc(100% + max(40px,(100vw - var(--container))/2)); }
body[data-page="home"] .case-media-left { width: calc(100% + max(40px,(100vw - var(--container))/2)); margin-left: calc(-1 * max(40px,(100vw - var(--container))/2)); }

body[data-page="home"] .education-actions { margin-top: 28px; }
body[data-page="home"] .education-program-link { display: inline-flex; padding: 12px 0; align-items: center; gap: 24px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(23,23,25,.35); cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; transition: color 180ms ease,border-color 180ms ease; }
body[data-page="home"] .education-program-link:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
body[data-page="home"] .program-dialog { width: min(960px,calc(100% - 40px)); max-height: calc(100svh - 40px); padding: 52px; color: var(--ink); background: #f6f5f1; border: 0; box-shadow: 0 40px 140px rgba(0,0,0,.5); overflow: auto; }
body[data-page="home"] .program-dialog::backdrop { background: rgba(7,7,9,.76); backdrop-filter: blur(9px); }
body[data-page="home"] .program-intro { display: grid; margin-bottom: 42px; padding-right: 65px; grid-template-columns: 1.2fr .8fr; gap: 14px 50px; align-items: end; }
body[data-page="home"] .program-intro .section-label { grid-column: 1/-1; }
body[data-page="home"] .program-intro h2 { max-width: 560px; font-size: clamp(42px,5vw,64px); font-weight: 500; line-height: .92; letter-spacing: -.06em; }
body[data-page="home"] .program-intro > p:last-child { color: var(--muted); font-size: 14px; }
body[data-page="home"] .program-steps { display: grid; grid-template-columns: 1fr 1fr; list-style: none; border-top: 1px solid rgba(23,23,25,.17); }
body[data-page="home"] .program-steps li { display: grid; min-height: 138px; padding: 24px 24px 24px 0; grid-template-columns: 34px 1fr; gap: 10px; border-bottom: 1px solid rgba(23,23,25,.17); }
body[data-page="home"] .program-steps li:nth-child(odd) { border-right: 1px solid rgba(23,23,25,.17); }
body[data-page="home"] .program-steps li:nth-child(even) { padding-left: 24px; }
body[data-page="home"] .program-steps small { color: var(--accent-dark); font-size: 9px; }
body[data-page="home"] .program-steps strong { font-size: 18px; font-weight: 540; }
body[data-page="home"] .program-steps p { max-width: 300px; margin-top: 8px; color: var(--muted); font-size: 12px; }
body[data-page="home"] .program-footer { display: flex; padding-top: 28px; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 12px; }
body[data-page="home"] .program-footer a { color: var(--accent-dark); font-weight: 650; }

@media (max-width: 640px) {
  body[data-page="home"] .service-entry { padding: 30px 0; grid-template-columns: 1fr; gap: 24px; }
  body[data-page="home"] .service-heading { grid-template-columns: 28px 1fr; align-items: start; }
  body[data-page="home"] .service-result { font-size: 15px; }
  body[data-page="home"] .service-body dl > div { grid-template-columns: 1fr; gap: 7px; }
  body[data-page="home"] .home-case,
  body[data-page="home"] .home-case .project-inner { min-height: auto; }
  body[data-page="home"] .program-dialog { padding: 54px 22px 28px; }
  body[data-page="home"] .program-intro,
  body[data-page="home"] .program-steps { grid-template-columns: 1fr; }
  body[data-page="home"] .program-intro { padding-right: 0; }
  body[data-page="home"] .program-intro .section-label { grid-column: auto; }
  body[data-page="home"] .program-steps li:nth-child(odd) { border-right: 0; }
  body[data-page="home"] .program-steps li:nth-child(even) { padding-left: 0; }
  body[data-page="home"] .program-footer { align-items: flex-start; flex-direction: column; }
}

/* Home page — balance and overflow fix */
html,
body[data-page="home"] {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body[data-page="home"] .x-hero .hero-layout {
  grid-template-columns: 1fr 1fr;
  gap: clamp(70px, 11vw, 180px);
  align-items: start;
}

body[data-page="home"] .x-hero .hero-thesis,
body[data-page="home"] .x-hero .hero-thesis-right {
  display: flex;
  max-width: 430px;
  align-self: start;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
}

body[data-page="home"] .x-hero .hero-thesis-right {
  justify-self: end;
  align-items: flex-end;
  text-align: right;
}

body[data-page="home"] .x-hero .hero-thesis h1,
body[data-page="home"] .x-hero .hero-thesis h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(59px, 7vw, 104px);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.07em;
}

body[data-page="home"] .x-hero .hero-thesis > p,
body[data-page="home"] .x-hero .hero-thesis-right > p {
  max-width: 370px;
  margin: 25px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 15px;
  line-height: 1.55;
}

body[data-page="home"] .hero-anchors {
  flex: 0 0 auto;
  opacity: 1;
  filter: none;
  transform: none;
}

body[data-page="home"] .home-case,
body[data-page="home"] .home-case .project-inner {
  min-height: 100svh;
}

body[data-page="home"] .home-case {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

body[data-page="home"] .project-manek {
  background-image: url("./assets/images/manek-case.png");
  background-position: 66% center;
}

body[data-page="home"] .project-tapper {
  background-image: url("./assets/images/tapper-case.jpg");
  background-position: 31% center;
}

body[data-page="home"] .project-manek::before,
body[data-page="home"] .project-tapper::before {
  position: absolute;
  z-index: -1;
  display: block;
  inset: 0;
  content: "";
}

body[data-page="home"] .project-manek::before {
  background: linear-gradient(90deg, rgba(10,10,13,.96) 0%, rgba(10,10,13,.84) 34%, rgba(10,10,13,.24) 60%, rgba(10,10,13,.08) 100%);
}

body[data-page="home"] .project-tapper::before {
  background: linear-gradient(90deg, rgba(10,10,13,.08) 0%, rgba(10,10,13,.2) 40%, rgba(10,10,13,.84) 68%, rgba(10,10,13,.96) 100%);
}

body[data-page="home"] .case-background-layout {
  display: flex;
  padding: 90px 0 68px;
  align-items: flex-end;
  justify-content: flex-start;
}

body[data-page="home"] .case-background-right {
  justify-content: flex-end;
}

body[data-page="home"] .case-background-right .case-main-copy {
  text-align: left;
}

body[data-page="home"] .education-location {
  display: grid;
  margin-top: 34px;
  padding: 20px 0 0 23px;
  gap: 4px;
  border-top: 1px solid rgba(23,23,25,.16);
}

body[data-page="home"] .education-location small {
  color: var(--accent-dark);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-page="home"] .education-location strong {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 540;
  letter-spacing: -.035em;
}

body[data-page="home"] .education-location p {
  color: var(--muted);
  font-size: 13px;
}

body[data-page="home"] .direct-choice {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}

body[data-page="home"] .direct-choice .direct-links {
  display: grid;
  margin-top: auto;
  align-items: stretch;
}

body[data-page="home"] .direct-choice .direct-links a,
body[data-page="home"] .contact-methods .direct-choice .direct-links a {
  display: grid;
  width: 100%;
  min-height: 56px;
  padding: 13px 0;
  grid-template-columns: 82px minmax(0,1fr);
  gap: 18px;
  align-items: center;
  justify-content: initial;
  color: var(--white);
  background: transparent;
  border-top: 1px solid rgba(255,255,255,.24);
  text-align: left;
}

body[data-page="home"] .direct-choice .direct-links a::before,
body[data-page="home"] .direct-choice .direct-links a::after {
  display: none;
  content: none;
}

body[data-page="home"] .direct-choice .direct-links a small {
  margin: 0;
  color: rgba(255,255,255,.5);
  font-size: 8px;
}

body[data-page="home"] .direct-choice .direct-links a strong {
  min-width: 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body[data-page="home"] .direct-choice .direct-links a:hover {
  padding-left: 0;
  color: var(--white);
  opacity: .72;
}

/* Home page — contained menu, split cases and education utility row */
body {
  font-family: Inter, "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

body[data-page="home"] .fullscreen-menu {
  padding: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(115,82,220,.16), transparent 34%),
    #111113;
}

body[data-page="home"] .menu-shell {
  display: grid;
  width: min(var(--container), calc(100% - 80px));
  height: 100svh;
  margin-inline: auto;
  grid-template-rows: 76px 1fr;
}

body[data-page="home"] .menu-top {
  width: 100%;
  height: 76px;
}

body[data-page="home"] .menu-top > img {
  width: 116px;
}

body[data-page="home"] .menu-top button {
  justify-self: end;
}

body[data-page="home"] .menu-content {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: clamp(45px,7vh,85px) 0 55px;
  grid-template-columns: minmax(390px,.95fr) minmax(300px,.7fr);
  gap: clamp(70px,10vw,150px);
  align-items: center;
}

body[data-page="home"] .menu-main {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.13);
}

body[data-page="home"] .menu-main a {
  min-height: 104px;
  grid-template-columns: 38px minmax(0,1fr);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.13);
}

body[data-page="home"] .menu-main a:hover {
  color: var(--accent);
  transform: none;
}

body[data-page="home"] .menu-main strong {
  font-size: clamp(48px,5.5vw,76px);
}

body[data-page="home"] .menu-side {
  max-width: 360px;
  gap: 30px;
}

body[data-page="home"] .menu-callback {
  display: flex;
  min-height: 52px;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.22);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  text-align: left;
}

body[data-page="home"] .menu-callback:hover {
  color: var(--accent);
}

body[data-page="home"] .x-hero-art {
  animation: x-float 9s ease-in-out infinite alternate;
}

body[data-page="home"] .x-hero::after {
  position: absolute;
  z-index: -1;
  inset: -20%;
  content: "";
  background: linear-gradient(105deg, transparent 35%, rgba(174,146,255,.13) 48%, transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateX(-38%) rotate(4deg);
  animation: hero-scan 8s ease-in-out infinite;
}

@keyframes x-float {
  0% { transform: translate(-50%,-50%) scale(1) rotate(-.35deg); filter: saturate(.86) brightness(.92); }
  50% { transform: translate(-49.4%,-50.6%) scale(1.022) rotate(.25deg); filter: saturate(1.06) brightness(1.04); }
  100% { transform: translate(-50.4%,-49.5%) scale(1.012) rotate(-.1deg); filter: saturate(.96) brightness(.98); }
}

@keyframes hero-scan {
  0%, 18% { opacity: 0; transform: translateX(-42%) rotate(4deg); }
  44% { opacity: .7; }
  72%, 100% { opacity: 0; transform: translateX(42%) rotate(4deg); }
}

body[data-page="home"] .home-case {
  background-image: none;
  background-color: #111113;
}

body[data-page="home"] .home-case::after {
  position: absolute;
  z-index: -2;
  top: 0;
  bottom: 0;
  width: 58%;
  content: "";
  background-repeat: no-repeat;
  background-size: cover;
}

body[data-page="home"] .project-manek::after {
  right: 0;
  background-image: url("./assets/images/manek-case.png");
  background-position: center;
}

body[data-page="home"] .project-tapper::after {
  left: 0;
  background-image: url("./assets/images/tapper-case.jpg");
  background-position: center;
}

body[data-page="home"] .project-manek::before {
  z-index: -1;
  background: linear-gradient(90deg, #111113 0%, #111113 41%, rgba(17,17,19,.92) 48%, rgba(17,17,19,.22) 67%, rgba(17,17,19,.03) 100%);
}

body[data-page="home"] .project-tapper::before {
  z-index: -1;
  background: linear-gradient(90deg, rgba(17,17,19,.03) 0%, rgba(17,17,19,.22) 33%, rgba(17,17,19,.92) 52%, #111113 59%, #111113 100%);
}

body[data-page="home"] .case-background-layout {
  padding-top: 90px;
  padding-bottom: 68px;
  align-items: center;
}

body[data-page="home"] .case-main-copy {
  width: min(40%,470px);
}

body[data-page="home"] .case-background-right .case-main-copy {
  margin-left: auto;
}

body[data-page="home"] .education-actions {
  display: grid;
  margin-top: 28px;
  padding-top: 21px;
  grid-template-columns: auto 1fr auto;
  gap: clamp(30px,6vw,84px);
  align-items: center;
  border-top: 1px solid rgba(23,23,25,.17);
}

body[data-page="home"] .education-program-link,
body[data-page="home"] .education-contact-link {
  border-bottom: 1px solid rgba(23,23,25,.35);
}

body[data-page="home"] .education-action-location {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 13px;
  justify-self: end;
  white-space: nowrap;
}

body[data-page="home"] .education-action-location small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page="home"] .education-action-location strong {
  font-size: 15px;
  font-weight: 560;
}

body[data-page="home"] .education-action-location span {
  color: var(--muted);
  font-size: 11px;
}

body[data-page="home"] .education-contact-link {
  display: inline-flex;
  padding: 12px 0;
  gap: 22px;
  font-size: 12px;
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .x-hero-art,
  body[data-page="home"] .x-hero::after { animation: none; }
}

@media (max-width: 980px) {
  body[data-page="home"] .menu-content { grid-template-columns: 1fr .7fr; gap: 55px; }
  body[data-page="home"] .menu-main a { min-height: 88px; }
  body[data-page="home"] .home-case::after { width: 64%; }
  body[data-page="home"] .case-main-copy { width: min(46%,470px); }
  body[data-page="home"] .education-actions { grid-template-columns: auto 1fr; }
  body[data-page="home"] .education-contact-link { grid-column: 1; }
  body[data-page="home"] .education-action-location { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 640px) {
  body[data-page="home"] .menu-shell { width: calc(100% - 40px); grid-template-rows: 66px 1fr; }
  body[data-page="home"] .menu-top { height: 66px; }
  body[data-page="home"] .menu-content { padding: 26px 0 24px; grid-template-columns: 1fr; gap: 28px; align-content: center; }
  body[data-page="home"] .menu-main a { min-height: 70px; }
  body[data-page="home"] .menu-main strong { font-size: 42px; }
  body[data-page="home"] .menu-side { gap: 16px; }
  body[data-page="home"] .menu-side > p { display: none; }
  body[data-page="home"] .home-case::after { top: 0; width: 100%; height: 58%; }
  body[data-page="home"] .project-manek::after,
  body[data-page="home"] .project-tapper::after { right: 0; left: 0; background-position: center; }
  body[data-page="home"] .project-manek::before,
  body[data-page="home"] .project-tapper::before { background: linear-gradient(180deg, rgba(17,17,19,.02) 0%, rgba(17,17,19,.14) 35%, #111113 65%, #111113 100%); }
  body[data-page="home"] .case-main-copy { width: 100%; margin-top: auto; }
  body[data-page="home"] .education-actions { grid-template-columns: 1fr; gap: 18px; }
  body[data-page="home"] .education-program-link,
  body[data-page="home"] .education-contact-link,
  body[data-page="home"] .education-action-location { grid-column: auto; grid-row: auto; justify-self: stretch; }
  body[data-page="home"] .education-action-location { align-items: flex-start; flex-direction: column; gap: 4px; white-space: normal; }
}

/* Home page — browser review pass */
body[data-page="home"] .x-hero .hero-thesis:first-child {
  justify-self: start;
  width: 100%;
  max-width: 430px;
}

body[data-page="home"] .x-hero .hero-thesis:first-child h1,
body[data-page="home"] .x-hero .hero-thesis:first-child > p {
  align-self: flex-start;
  text-align: left;
}

body[data-page="home"] .x-hero-art {
  animation: none;
}

body[data-page="home"] .x-hero::after {
  display: none;
}

body[data-page="home"] .x-hero .hero-inner::before,
body[data-page="home"] .x-hero .hero-inner::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body[data-page="home"] .x-hero .hero-inner::before {
  top: 50%;
  left: 50%;
  width: min(72vw,1040px);
  aspect-ratio: 1;
  border: 1px solid rgba(168,136,255,.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 5vw rgba(168,136,255,.025),
    0 0 0 11vw rgba(168,136,255,.018);
  transform: translate(-50%,-50%) scale(.74);
  animation: tech-pulse 6.5s cubic-bezier(.4,0,.2,1) infinite;
}

body[data-page="home"] .x-hero .hero-inner::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent 8%, rgba(168,136,255,.08) 28%, rgba(202,186,255,.5) 50%, rgba(168,136,255,.08) 72%, transparent 92%);
  box-shadow: 0 0 24px rgba(168,136,255,.4);
  opacity: 0;
  animation: data-line 5.2s ease-in-out infinite;
}

@keyframes tech-pulse {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.72); }
  28% { opacity: .85; }
  72% { opacity: .35; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.08); }
}

@keyframes data-line {
  0%, 20% { opacity: 0; transform: translateX(-180px); }
  42% { opacity: .85; }
  75%, 100% { opacity: 0; transform: translateX(180px); }
}

body[data-page="home"] .home-case::after {
  width: 62%;
}

body[data-page="home"] .project-manek::after {
  right: 0;
  background-position: 54% center;
}

body[data-page="home"] .project-tapper::after {
  left: 0;
  background-position: 46% center;
}

body[data-page="home"] .project-manek::before {
  background: linear-gradient(90deg,
    #111113 0%,
    #111113 31%,
    rgba(17,17,19,.98) 38%,
    rgba(17,17,19,.88) 47%,
    rgba(17,17,19,.62) 57%,
    rgba(17,17,19,.28) 70%,
    rgba(17,17,19,.04) 100%);
}

body[data-page="home"] .project-tapper::before {
  background: linear-gradient(90deg,
    rgba(17,17,19,.04) 0%,
    rgba(17,17,19,.28) 30%,
    rgba(17,17,19,.62) 43%,
    rgba(17,17,19,.88) 53%,
    rgba(17,17,19,.98) 62%,
    #111113 69%,
    #111113 100%);
}

body[data-page="home"] .case-background-layout {
  align-items: center;
}

body[data-page="home"] .case-background-layout .case-main-copy {
  width: min(36%,430px);
  margin-right: auto;
  margin-left: 0;
}

body[data-page="home"] .case-background-right .case-main-copy {
  margin-right: 0;
  margin-left: auto;
}

body[data-page="home"] .education-actions {
  min-height: 72px;
  margin-top: 34px;
  padding: 0;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  border-top: 1px solid rgba(23,23,25,.17);
  border-bottom: 1px solid rgba(23,23,25,.17);
}

body[data-page="home"] .education-program-link,
body[data-page="home"] .education-contact-link {
  min-height: 72px;
  padding: 0;
  border: 0;
  align-items: center;
}

body[data-page="home"] .education-action-location {
  display: block;
  justify-self: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

body[data-page="home"] .education-action-location span {
  color: var(--ink);
  font-size: inherit;
  font-weight: 620;
}

body[data-page="home"] .education-contact-link {
  justify-content: flex-end;
  color: var(--accent-dark);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .x-hero .hero-inner::before,
  body[data-page="home"] .x-hero .hero-inner::after { animation: none; }
}

@media (max-width: 980px) {
  body[data-page="home"] .case-background-layout .case-main-copy { width: min(43%,430px); }
  body[data-page="home"] .education-actions { grid-template-columns: auto 1fr; }
  body[data-page="home"] .education-action-location { justify-self: end; text-align: right; }
  body[data-page="home"] .education-contact-link { grid-column: 1 / -1; min-height: 50px; justify-content: flex-start; border-top: 1px solid rgba(23,23,25,.12); }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-case::after { width: 100%; }
  body[data-page="home"] .case-background-layout .case-main-copy,
  body[data-page="home"] .case-background-right .case-main-copy { width: 100%; margin: auto 0 0; }
  body[data-page="home"] .education-actions { display: grid; min-height: 0; grid-template-columns: 1fr; gap: 0; }
  body[data-page="home"] .education-program-link,
  body[data-page="home"] .education-contact-link { min-height: 56px; }
  body[data-page="home"] .education-action-location { padding: 15px 0; justify-self: stretch; text-align: left; border-top: 1px solid rgba(23,23,25,.12); }
  body[data-page="home"] .education-contact-link { grid-column: auto; }
}

body[data-page="home"] .hero-tech-grid {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(66vw,930px);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%,-50%) rotate(45deg);
}

body[data-page="home"] .hero-tech-grid i {
  position: absolute;
  inset: calc(var(--ring,0) * 8%);
  border: 1px solid rgba(168,136,255,.16);
  opacity: 0;
  animation: circuit-ring 6.4s ease-out infinite;
  animation-delay: calc(var(--ring,0) * .72s);
}

body[data-page="home"] .hero-tech-grid i:nth-child(1) { --ring: 0; }
body[data-page="home"] .hero-tech-grid i:nth-child(2) { --ring: 1; }
body[data-page="home"] .hero-tech-grid i:nth-child(3) { --ring: 2; }
body[data-page="home"] .hero-tech-grid i:nth-child(4) { --ring: 3; }

body[data-page="home"] .hero-tech-grid i::before,
body[data-page="home"] .hero-tech-grid i::after {
  position: absolute;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 14px rgba(168,136,255,.8);
}

body[data-page="home"] .hero-tech-grid i::before { top: -3px; left: 18%; }
body[data-page="home"] .hero-tech-grid i::after { right: 22%; bottom: -3px; }

@keyframes circuit-ring {
  0% { opacity: 0; transform: scale(.68); }
  22% { opacity: .62; }
  68% { opacity: .17; }
  100% { opacity: 0; transform: scale(1.06); }
}

body[data-page="home"] .home-education {
  padding-bottom: 78px;
}

body[data-page="home"] .project-manek::before {
  background: linear-gradient(90deg,
    #111113 0%, #111113 28%, rgba(17,17,19,.99) 34%, rgba(17,17,19,.93) 42%,
    rgba(17,17,19,.78) 51%, rgba(17,17,19,.52) 61%, rgba(17,17,19,.26) 73%, rgba(17,17,19,.04) 100%);
}

body[data-page="home"] .project-tapper::before {
  background: linear-gradient(90deg,
    rgba(17,17,19,.04) 0%, rgba(17,17,19,.26) 27%, rgba(17,17,19,.52) 39%,
    rgba(17,17,19,.78) 49%, rgba(17,17,19,.93) 58%, rgba(17,17,19,.99) 66%, #111113 72%, #111113 100%);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .hero-tech-grid i { animation: none; opacity: .14; }
}

@media (max-width: 640px) {
  body[data-page="home"] .hero-tech-grid { width: 115vw; opacity: .6; }
  body[data-page="home"] .home-education { padding-bottom: 58px; }
}

/* Home page — stronger signal, cinematic cases and scroll story */
body[data-page="home"] .x-hero .hero-thesis h1 a,
body[data-page="home"] .x-hero .hero-thesis h2 a {
  color: inherit;
  transition: color 240ms ease, text-shadow 240ms ease;
}

body[data-page="home"] .x-hero .hero-thesis h1 a:hover,
body[data-page="home"] .x-hero .hero-thesis h2 a:hover {
  color: #c9b8ff;
  text-shadow: 0 0 28px rgba(168,136,255,.24);
}

body[data-page="home"] .hero-tech-grid {
  width: min(74vw,1060px);
  filter: drop-shadow(0 0 18px rgba(132,94,255,.26));
}

body[data-page="home"] .hero-tech-grid::before,
body[data-page="home"] .hero-tech-grid::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

body[data-page="home"] .hero-tech-grid::before {
  inset: -2%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(168,136,255,.42) 80%, transparent 88%);
  opacity: .72;
  -webkit-mask: radial-gradient(circle, transparent 0 53%, #000 54% 55%, transparent 56% 64%, #000 65% 65.5%, transparent 66%);
  mask: radial-gradient(circle, transparent 0 53%, #000 54% 55%, transparent 56% 64%, #000 65% 65.5%, transparent 66%);
  animation: tech-radar 9s linear infinite;
}

body[data-page="home"] .hero-tech-grid::after {
  top: 50%;
  right: -8%;
  left: -8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,136,255,.46) 20%, transparent 48%, transparent 52%, rgba(168,136,255,.46) 80%, transparent);
  box-shadow: 0 0 18px rgba(168,136,255,.28);
}

body[data-page="home"] .hero-tech-grid i {
  border-color: rgba(168,136,255,.3);
  animation-duration: 5.2s;
}

body[data-page="home"] .hero-tech-grid i::before,
body[data-page="home"] .hero-tech-grid i::after {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 7px #bca6ff, 0 0 24px rgba(168,136,255,.95);
}

body[data-page="home"] .x-hero .hero-inner::before {
  border-color: rgba(168,136,255,.24);
  box-shadow: 0 0 0 5vw rgba(168,136,255,.045), 0 0 0 11vw rgba(168,136,255,.028);
}

body[data-page="home"] .x-hero .hero-inner::after {
  width: 2px;
  box-shadow: 0 0 32px rgba(168,136,255,.9);
}

@keyframes tech-radar {
  to { transform: rotate(360deg); }
}

body[data-page="home"] .home-case::after {
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
}

body[data-page="home"] .project-manek::after {
  background-position: 58% center;
}

body[data-page="home"] .project-tapper::after {
  background-position: 42% center;
}

body[data-page="home"] .project-manek::before {
  background: linear-gradient(90deg,
    rgba(10,10,12,.93) 0%, rgba(10,10,12,.9) 18%, rgba(10,10,12,.78) 29%,
    rgba(10,10,12,.55) 40%, rgba(10,10,12,.27) 52%, rgba(10,10,12,.08) 65%, rgba(10,10,12,.02) 100%);
}

body[data-page="home"] .project-tapper::before {
  background: linear-gradient(90deg,
    rgba(10,10,12,.02) 0%, rgba(10,10,12,.08) 35%, rgba(10,10,12,.27) 48%,
    rgba(10,10,12,.55) 60%, rgba(10,10,12,.78) 71%, rgba(10,10,12,.9) 82%, rgba(10,10,12,.93) 100%);
}

body[data-page="home"] .education-gallery-stage {
  position: relative;
  min-height: 72vh;
  margin-top: 72px;
}

body[data-page="home"] .education-gallery {
  position: sticky;
  top: 68px;
  width: 100%;
  height: calc(100svh - 68px);
  margin-top: 0;
  padding: 54px 0 42px;
  background: #e9e8e3;
  overflow: hidden;
}

body[data-page="home"] .education-gallery-meta {
  display: flex;
  width: min(var(--container),calc(100% - 80px));
  margin: 0 auto 22px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-page="home"] .education-gallery-meta b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

body[data-page="home"] .education-track {
  display: flex;
  width: max-content;
  height: calc(100% - 52px);
  padding: 0 40px;
  gap: 12px;
  overflow: visible;
  scroll-snap-type: none;
  will-change: transform;
}

body[data-page="home"] .education-track figure {
  flex: 0 0 clamp(250px,26vw,360px);
  width: clamp(250px,26vw,360px);
  height: 100%;
  max-height: 560px;
  scroll-snap-align: none;
}

body[data-page="home"] .education-track figure.crop-left img { object-position: 25% center; }
body[data-page="home"] .education-track figure.crop-right img { object-position: 75% center; }

body[data-page="home"] .education-gallery-control {
  display: none;
}

body[data-page="home"] .education-next {
  display: grid;
  padding-top: 100px;
  padding-bottom: 90px;
  grid-template-columns: minmax(0,1.08fr) minmax(330px,.92fr);
  gap: clamp(70px,10vw,140px);
  align-items: end;
}

body[data-page="home"] .education-next-copy h3 {
  max-width: 650px;
  margin-top: 18px;
  font-size: clamp(42px,4.5vw,62px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.055em;
}

body[data-page="home"] .education-next-copy > p:last-child {
  max-width: 590px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

body[data-page="home"] .education-next-side {
  display: grid;
  gap: 42px;
}

body[data-page="home"] .education-place {
  display: grid;
  padding-top: 17px;
  gap: 4px;
  border-top: 1px solid rgba(23,23,25,.18);
}

body[data-page="home"] .education-place small {
  color: var(--accent-dark);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-page="home"] .education-place strong {
  margin-top: 7px;
  font-size: 23px;
  font-weight: 540;
  letter-spacing: -.035em;
}

body[data-page="home"] .education-place span {
  color: var(--muted);
  font-size: 12px;
}

body[data-page="home"] .education-next-actions {
  display: grid;
  border-top: 1px solid rgba(23,23,25,.18);
}

body[data-page="home"] .education-next-actions button,
body[data-page="home"] .education-next-actions a {
  display: flex;
  min-height: 58px;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(23,23,25,.18);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  transition: color 180ms ease,padding-left 180ms ease;
}

body[data-page="home"] .education-next-actions button:hover,
body[data-page="home"] .education-next-actions a:hover {
  padding-left: 8px;
  color: var(--accent-dark);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .hero-tech-grid::before,
  body[data-page="home"] .hero-tech-grid i { animation: none; }
}

@media (max-width: 980px) {
  body[data-page="home"] .education-track figure { flex-basis: 34vw; width: 34vw; }
  body[data-page="home"] .education-next { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-case::after { height: 100%; }
  body[data-page="home"] .project-manek::after { background-position: 60% center; }
  body[data-page="home"] .project-tapper::after { background-position: 37% center; }
  body[data-page="home"] .project-manek::before,
  body[data-page="home"] .project-tapper::before { background: linear-gradient(180deg,rgba(10,10,12,.04) 0%,rgba(10,10,12,.16) 36%,rgba(10,10,12,.92) 72%,#111113 100%); }
  body[data-page="home"] .education-gallery-stage { margin-top: 48px; }
  body[data-page="home"] .education-gallery { top: 62px; height: calc(100svh - 62px); padding: 38px 0 30px; }
  body[data-page="home"] .education-gallery-meta { width: calc(100% - 40px); }
  body[data-page="home"] .education-track { padding-inline: 20px; }
  body[data-page="home"] .education-track figure { flex-basis: 68vw; width: 68vw; height: 100%; }
  body[data-page="home"] .education-next { padding-top: 70px; padding-bottom: 65px; }
}

/* Home page — simplified final composition */
body[data-page="home"] .x-hero .hero-inner::before {
  top: 50%;
  left: 50%;
  display: block;
  width: min(74vw,1080px);
  aspect-ratio: 1;
  border: 2px solid rgba(168,136,255,.3);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 48px rgba(132,94,255,.28), inset 0 0 48px rgba(132,94,255,.08);
  opacity: 0;
  transform: translate(-50%,-50%) scale(.68);
  animation: single-tech-pulse 4.8s cubic-bezier(.2,.72,.22,1) infinite;
}

body[data-page="home"] .x-hero .hero-inner::after,
body[data-page="home"] .hero-tech-grid {
  display: none;
  animation: none;
}

@keyframes single-tech-pulse {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.66); }
  20% { opacity: .82; }
  58% { opacity: .45; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.05); }
}

body[data-page="home"] .home-case,
body[data-page="home"] .home-case .project-inner {
  min-height: 650px;
  height: min(76svh,720px);
}

body[data-page="home"] .project-manek::after {
  background-size: cover;
  background-position: 88% center;
}

body[data-page="home"] .project-tapper::after {
  background-size: cover;
  background-position: 12% center;
}

body[data-page="home"] .project-manek::before {
  background: linear-gradient(90deg,
    rgba(10,10,12,.95) 0%, rgba(10,10,12,.9) 22%, rgba(10,10,12,.7) 35%,
    rgba(10,10,12,.38) 48%, rgba(10,10,12,.12) 62%, transparent 78%);
}

body[data-page="home"] .project-tapper::before {
  background: linear-gradient(90deg,
    transparent 22%, rgba(10,10,12,.12) 38%, rgba(10,10,12,.38) 52%,
    rgba(10,10,12,.7) 65%, rgba(10,10,12,.9) 78%, rgba(10,10,12,.95) 100%);
}

body[data-page="home"] .education-gallery-stage {
  min-height: 0;
  height: auto !important;
  margin-top: 58px;
}

body[data-page="home"] .education-gallery {
  position: relative;
  top: auto;
  height: auto;
  margin: 0;
  padding: 24px 0 0;
  background: transparent;
  overflow: visible;
}

body[data-page="home"] .education-gallery-meta {
  margin-bottom: 14px;
}

body[data-page="home"] .education-gallery-meta b {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

body[data-page="home"] .education-track {
  display: flex;
  width: 100%;
  height: auto;
  padding-inline: max(40px,calc((100vw - var(--container))/2));
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dark) rgba(23,23,25,.1);
  transform: none !important;
  will-change: auto;
}

body[data-page="home"] .education-track::-webkit-scrollbar { height: 3px; }
body[data-page="home"] .education-track::-webkit-scrollbar-track { background: rgba(23,23,25,.1); }
body[data-page="home"] .education-track::-webkit-scrollbar-thumb { background: var(--accent-dark); }

body[data-page="home"] .education-track figure {
  flex: 0 0 min(28vw,390px);
  width: min(28vw,390px);
  height: 220px;
  max-height: none;
  scroll-snap-align: start;
}

body[data-page="home"] .education-choices {
  display: grid;
  margin-top: 30px;
  padding-bottom: 10px;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid rgba(23,23,25,.18);
  border-bottom: 1px solid rgba(23,23,25,.18);
}

body[data-page="home"] .education-choice {
  display: flex;
  min-width: 0;
  min-height: 142px;
  padding: 22px 28px 22px 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: default;
  font: inherit;
  text-align: left;
}

body[data-page="home"] button.education-choice,
body[data-page="home"] a.education-choice {
  padding-left: 28px;
  cursor: pointer;
  border-left: 1px solid rgba(23,23,25,.18);
  transition: color 180ms ease,background 180ms ease;
}

body[data-page="home"] button.education-choice:hover,
body[data-page="home"] a.education-choice:hover {
  color: var(--accent-dark);
  background: rgba(115,82,220,.035);
}

body[data-page="home"] .education-choice small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body[data-page="home"] .education-choice strong {
  margin: auto 0 7px;
  font-size: 22px;
  font-weight: 540;
  line-height: 1.05;
  letter-spacing: -.035em;
}

body[data-page="home"] .education-choice > span {
  color: var(--muted);
  font-size: 11px;
}

body[data-page="home"] .education-choice-accent strong {
  color: var(--accent-dark);
}

body[data-page="home"] .education-next {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .x-hero .hero-inner::before { animation: none; opacity: .35; }
}

@media (max-width: 980px) {
  body[data-page="home"] .home-case,
  body[data-page="home"] .home-case .project-inner { height: 680px; }
  body[data-page="home"] .education-track figure { flex-basis: 38vw; width: 38vw; }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-case,
  body[data-page="home"] .home-case .project-inner { min-height: 640px; height: 78svh; }
  body[data-page="home"] .project-manek::after { background-position: 66% center; }
  body[data-page="home"] .project-tapper::after { background-position: 34% center; }
  body[data-page="home"] .education-gallery-stage { margin-top: 42px; }
  body[data-page="home"] .education-gallery { height: auto; padding-top: 18px; }
  body[data-page="home"] .education-track { padding-inline: 20px; }
  body[data-page="home"] .education-track figure { flex-basis: 76vw; width: 76vw; height: 190px; }
  body[data-page="home"] .education-choices { grid-template-columns: 1fr; }
  body[data-page="home"] .education-choice { min-height: 120px; padding: 20px 0; }
  body[data-page="home"] button.education-choice,
  body[data-page="home"] a.education-choice { padding-left: 0; border-top: 1px solid rgba(23,23,25,.18); border-left: 0; }
}

/* Home page — voxel CRT, displaced case layers, plain education row */
body[data-page="home"] .x-hero .hero-inner::before {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(168,136,255,.045) 0 2px, transparent 2px 7px);
  box-shadow: none;
  opacity: .72;
  mix-blend-mode: screen;
  pointer-events: none;
  transform: none;
  animation: voxel-crt 4.2s steps(1,end) infinite;
}

body[data-page="home"] .x-hero .hero-inner::after {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  display: block;
  width: 16%;
  content: "";
  background: linear-gradient(90deg,transparent,rgba(168,136,255,.18),transparent);
  filter: blur(14px);
  opacity: 0;
  transform: translateX(-50%);
  animation: voxel-scan 4.2s steps(12,end) infinite;
}

@keyframes voxel-crt {
  0%, 92%, 100% { transform: translate(0,0); filter: none; }
  93% { transform: translate(2px,-1px); filter: hue-rotate(8deg); }
  94% { transform: translate(-2px,1px); filter: contrast(1.2); }
  95% { transform: translate(0,0); filter: none; }
}

@keyframes voxel-scan {
  0% { left: 10%; opacity: 0; }
  12% { opacity: .65; }
  72% { opacity: .2; }
  100% { left: 90%; opacity: 0; }
}

body[data-page="home"] .home-case,
body[data-page="home"] .home-case .project-inner {
  min-height: 720px;
  height: min(84svh,820px);
}

body[data-page="home"] .home-case::after {
  top: 0;
  bottom: 0;
  width: 76%;
  height: 100%;
  background-size: cover;
}

body[data-page="home"] .project-manek::after {
  right: -18%;
  left: auto;
  background-image: url("./assets/images/manek-case.png");
  background-position: center;
}

body[data-page="home"] .project-tapper::after {
  right: auto;
  left: -18%;
  background-image: url("./assets/images/tapper-case-v2.png");
  background-position: center;
}

body[data-page="home"] .project-manek::before {
  background: linear-gradient(90deg,#111113 0%,rgba(17,17,19,.98) 31%,rgba(17,17,19,.78) 43%,rgba(17,17,19,.4) 57%,rgba(17,17,19,.08) 72%,transparent 100%);
}

body[data-page="home"] .project-tapper::before {
  background: linear-gradient(90deg,transparent 0%,rgba(17,17,19,.08) 28%,rgba(17,17,19,.4) 43%,rgba(17,17,19,.78) 57%,rgba(17,17,19,.98) 69%,#111113 100%);
}

body[data-page="home"] .education-gallery-stage {
  margin-top: 48px;
}

body[data-page="home"] .education-gallery {
  padding-top: 20px;
}

body[data-page="home"] .education-gallery-meta {
  width: min(var(--container),calc(100% - 80px));
  margin-bottom: 13px;
}

body[data-page="home"] .education-track {
  display: grid;
  width: min(var(--container),calc(100% - 80px));
  margin-inline: auto;
  padding: 0;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 8px;
  overflow: visible;
  scrollbar-width: none;
}

body[data-page="home"] .education-track figure {
  width: auto;
  height: 168px;
  min-width: 0;
  scroll-snap-align: none;
}

body[data-page="home"] .education-track img {
  object-position: center;
}

body[data-page="home"] .education-choices {
  margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .x-hero .hero-inner::before,
  body[data-page="home"] .x-hero .hero-inner::after { animation: none; }
}

@media (max-width: 980px) {
  body[data-page="home"] .home-case,
  body[data-page="home"] .home-case .project-inner { min-height: 700px; height: 760px; }
  body[data-page="home"] .home-case::after { width: 88%; }
  body[data-page="home"] .project-manek::after { right: -30%; }
  body[data-page="home"] .project-tapper::after { left: -30%; }
  body[data-page="home"] .education-track { grid-template-columns: repeat(3,1fr); }
  body[data-page="home"] .education-track figure:nth-child(n+4) { display: none; }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-case,
  body[data-page="home"] .home-case .project-inner { min-height: 680px; height: 78svh; }
  body[data-page="home"] .home-case::after { top: 0; width: 120%; height: 62%; }
  body[data-page="home"] .project-manek::after { right: -42%; }
  body[data-page="home"] .project-tapper::after { left: -42%; }
  body[data-page="home"] .project-manek::before,
  body[data-page="home"] .project-tapper::before { background: linear-gradient(180deg,transparent 0%,rgba(17,17,19,.18) 35%,rgba(17,17,19,.96) 67%,#111113 100%); }
  body[data-page="home"] .education-gallery-meta,
  body[data-page="home"] .education-track { width: calc(100% - 40px); }
  body[data-page="home"] .education-track { grid-template-columns: 1fr 1fr; }
  body[data-page="home"] .education-track figure { height: 150px; }
  body[data-page="home"] .education-track figure:nth-child(3) { display: none; }
}

/* Home page — visible voxel field and continuous case photography */
body[data-page="home"] .x-hero .hero-inner::before,
body[data-page="home"] .x-hero .hero-inner::after {
  display: none !important;
  animation: none !important;
}

body[data-page="home"] .hero-voxels {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

body[data-page="home"] .hero-voxels i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  background: #b696ff;
  box-shadow: 0 0 0 1px rgba(223,213,255,.3), 0 0 8px rgba(182,150,255,.5);
  opacity: 0;
  transform: translate(-50%,-50%) scale(.65);
  animation: voxel-flicker var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: opacity;
}

body[data-page="home"] .hero-voxels i:nth-child(4n) {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.32), 0 0 8px rgba(255,255,255,.48);
}

@keyframes voxel-flicker {
  0%, 10% {
    opacity: 0;
    transform: translate(-50%,-50%) scale(.35);
  }
  26% {
    opacity: var(--peak);
    transform: translate(calc(-50% + var(--mid-x)),calc(-50% + var(--mid-y))) scale(.9);
  }
  68% {
    opacity: calc(var(--peak) * .62);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--end-x)),calc(-50% + var(--end-y))) scale(1.08);
  }
}

body[data-page="home"] .home-case,
body[data-page="home"] .home-case .project-inner {
  min-height: 730px;
  height: min(86svh,830px);
}

body[data-page="home"] .home-case::after {
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #111113;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

body[data-page="home"] .project-manek::after {
  right: auto;
  left: 0;
  background-image: url("./assets/images/mannequin-case-v2.png");
  background-position: calc(50% + 225px + 10vw) center;
}

body[data-page="home"] .project-tapper::after {
  right: 0;
  left: auto;
  background-image: url("./assets/images/tapper-case-v4.png");
  background-position: -10vw center;
}

body[data-page="home"] .project-manek::before {
  background: linear-gradient(90deg,
    #111113 0%, rgba(17,17,19,.99) 20%, rgba(17,17,19,.9) 34%,
    rgba(17,17,19,.62) 48%, rgba(17,17,19,.28) 63%, rgba(17,17,19,.07) 76%, transparent 90%);
}

body[data-page="home"] .project-tapper::before {
  background: linear-gradient(90deg,
    transparent 10%, rgba(17,17,19,.07) 24%, rgba(17,17,19,.28) 37%,
    rgba(17,17,19,.62) 52%, rgba(17,17,19,.9) 66%, rgba(17,17,19,.99) 80%, #111113 100%);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .hero-voxels i { animation: none; opacity: .3; }
}

@media (max-width: 980px) {
  body[data-page="home"] .project-manek::after { background-position: calc(50% + 170px + 8vw) center; }
  body[data-page="home"] .project-tapper::after { background-position: -8vw center; }
}

@media (max-width: 640px) {
  body[data-page="home"] .hero-voxels i:nth-child(even) { display: none; }
  body[data-page="home"] .home-case,
  body[data-page="home"] .home-case .project-inner { min-height: 700px; height: 82svh; }
  body[data-page="home"] .home-case::after { top: 0; width: 100%; height: 66%; background-size: auto 100%; }
  body[data-page="home"] .project-manek::after { left: 0; background-position: calc(50% + 90px + 5vw) center; }
  body[data-page="home"] .project-tapper::after { right: 0; background-position: -5vw center; }
  body[data-page="home"] .project-manek::before,
  body[data-page="home"] .project-tapper::before { background: linear-gradient(180deg,transparent 0%,rgba(9,9,11,.08) 32%,rgba(9,9,11,.68) 56%,#111113 72%,#111113 100%); }
}

@media (max-height: 760px) and (min-width: 641px) {
  body[data-page="home"] .x-hero .hero-inner { padding-bottom: 14px; }
  body[data-page="home"] .x-hero .hero-thesis h1,
  body[data-page="home"] .x-hero .hero-thesis h2 { font-size: clamp(54px, 6.4vw, 88px); }
  body[data-page="home"] .x-hero .hero-thesis > p,
  body[data-page="home"] .x-hero .hero-thesis-right > p { margin-top: 18px; }
  body[data-page="home"] .hero-anchors a { min-height: 48px; }
}

@media (max-width: 640px) {
  body[data-page="home"] .x-hero .hero-layout { grid-template-columns: 1fr; align-items: start; }
  body[data-page="home"] .x-hero .hero-thesis h1,
  body[data-page="home"] .x-hero .hero-thesis h2 { font-size: 52px; }
  body[data-page="home"] .x-hero .hero-thesis-right { justify-self: stretch; }
  body[data-page="home"] .x-hero .hero-thesis > p,
  body[data-page="home"] .x-hero .hero-thesis-right > p { max-width: 285px; margin-top: 14px; font-size: 12px; }
  body[data-page="home"] .home-case,
  body[data-page="home"] .home-case .project-inner { min-height: 700px; }
  body[data-page="home"] .project-manek { background-position: 57% center; }
  body[data-page="home"] .project-tapper { background-position: 39% center; }
  body[data-page="home"] .project-manek::before,
  body[data-page="home"] .project-tapper::before { background: linear-gradient(180deg, rgba(10,10,13,.1) 10%, rgba(10,10,13,.35) 42%, rgba(10,10,13,.95) 78%); }
  body[data-page="home"] .case-background-layout,
  body[data-page="home"] .case-background-right { padding: 80px 0 42px; align-items: flex-end; justify-content: flex-start; }
  body[data-page="home"] .direct-choice .direct-links a,
body[data-page="home"] .contact-methods .direct-choice .direct-links a { grid-template-columns: 72px minmax(0,1fr); }
}

/* Final education reel overrides */
body[data-page="home"] .education-gallery { overflow: hidden; }
body[data-page="home"] .education-gallery-meta { width: min(var(--container),calc(100% - 80px)); margin-inline: auto; }
body[data-page="home"] .education-track { display: block; width: 100%; margin: 0; padding: 0; overflow: hidden; }
body[data-page="home"] .education-marquee-strip { display: flex; width: max-content; animation: education-reel 52s linear infinite; will-change: transform; }
body[data-page="home"] .education-marquee-group { display: flex; flex: none; gap: 12px; padding-right: 12px; }
body[data-page="home"] .education-track figure,
body[data-page="home"] .education-track figure:nth-child(n) { display: block; flex: 0 0 auto; width: auto; height: 270px; min-width: 0; margin: 0; overflow: visible; }
body[data-page="home"] .education-track img { display: block; width: auto; height: 100%; max-width: none; object-fit: contain; object-position: center; }
body[data-page="home"] .education-track:hover .education-marquee-strip { animation-play-state: paused; }

body[data-page="home"] .hero-layout-lowered { transform: translateY(30px); }
body[data-page="home"] .form-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
body[data-page="home"] .callback-form[hidden],
body[data-page="home"] .callback-success[hidden] { display: none !important; }
body[data-page="home"] .callback-success {
  display: grid;
  min-height: 280px;
  padding: 42px 0 16px;
  align-content: center;
  justify-items: start;
  gap: 14px;
  color: var(--ink);
  outline: none;
}
body[data-page="home"] .callback-success > span {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  place-items: center;
  color: #fff;
  background: #3f9b67;
  border-radius: 50%;
  box-shadow: 0 10px 32px rgba(63,155,103,.24);
  font-size: 28px;
  font-weight: 700;
}
body[data-page="home"] .callback-success h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px,5vw,62px);
  font-weight: 480;
  line-height: 1;
  letter-spacing: -.055em;
}
body[data-page="home"] .callback-success p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
body[data-page="home"] .instagram-choice { background: linear-gradient(145deg,#6e3cff 0%,#b4438d 52%,#e4803d 100%); }
body[data-page="home"] .instagram-choice small,
body[data-page="home"] .instagram-choice strong,
body[data-page="home"] .instagram-choice span { color: #fff; }

@media (max-width: 640px) {
  body[data-page="home"] .hero-layout-lowered { transform: translateY(30px); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .education-track { overflow-x: auto; }
  body[data-page="home"] .education-marquee-strip { animation: none; }
  body[data-page="home"] .education-marquee-group[aria-hidden="true"] { display: none; }
}

@media (max-width: 980px) {
  body[data-page="home"] .education-track figure,
  body[data-page="home"] .education-track figure:nth-child(n) { flex-basis: auto; width: auto; height: 240px; }
}

@media (max-width: 640px) {
  body[data-page="home"] .education-gallery-meta { width: calc(100% - 40px); }
  body[data-page="home"] .education-track { width: 100%; }
  body[data-page="home"] .education-track figure,
  body[data-page="home"] .education-track figure:nth-child(n) { flex-basis: auto; width: auto; height: 220px; }
}

/* Ideas archive, article and publisher */
body[data-page="ideas-page"],
body[data-page="idea-page"] { margin: 0; color: #171719; background: #f6f5f1; }

.ideas-archive { min-height: 100svh; padding: 95px 0 130px; }
.ideas-archive-heading { display: grid; max-width: 850px; margin-bottom: 80px; gap: 18px; }
.ideas-archive-heading h1,
.idea-article h1 { margin: 0; font-size: clamp(54px,7.4vw,112px); font-weight: 480; line-height: .9; letter-spacing: -.065em; }
.ideas-archive-heading > p:last-child { max-width: 600px; color: #69696d; font-size: 18px; line-height: 1.55; }
.ideas-archive-list { border-top: 1px solid rgba(23,23,25,.18); }
.ideas-archive-list a { display: grid; min-height: 112px; padding: 22px 0; grid-template-columns: 140px minmax(0,1fr) auto; gap: 36px; align-items: center; color: inherit; border-bottom: 1px solid rgba(23,23,25,.18); text-decoration: none; }
.ideas-archive-list time { color: #706d77; font-size: 12px; }
.ideas-archive-list h2 { margin: 0; font-size: clamp(22px,2.3vw,34px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.ideas-archive-list span { color: #7551c8; font-size: 12px; }

.idea-article-wrap { min-height: 100svh; padding: 100px 40px 130px; }
.idea-article { width: min(900px,100%); margin-inline: auto; }
.idea-article header { display: grid; margin-bottom: 56px; gap: 22px; }
.idea-article h1 { font-size: clamp(50px,6.5vw,90px); }
.idea-article figure { margin: 0 0 58px; }
.idea-article figure img { display: block; width: 100%; max-height: 720px; object-fit: contain; background: #ebeae6; }
.idea-body { max-width: 760px; color: #303034; font-size: 20px; line-height: 1.7; }
.idea-body p { margin: 0 0 1.35em; }
.idea-article footer { margin-top: 70px; padding-top: 26px; border-top: 1px solid rgba(23,23,25,.18); }
.idea-article footer a { color: #6441bb; font-size: 15px; text-decoration: none; }

@media (max-width: 640px) {
  .ideas-archive { padding: 70px 0 90px; }
  .ideas-archive-heading { margin-bottom: 50px; }
  .ideas-archive-list a { grid-template-columns: 70px 1fr; gap: 12px; }
  .ideas-archive-list a span { grid-column: 2; }
  .idea-article-wrap { padding: 70px 20px 90px; }
  .idea-body { font-size: 17px; }
}

.idea-breadcrumbs { display: flex; margin-bottom: 38px; gap: 11px; align-items: center; color: #817f87; font-size: 12px; }
.idea-breadcrumbs a { color: inherit; text-decoration: none; }
.idea-breadcrumbs a:hover { color: #6441bb; }

body[data-page="idea-page"] .idea-article-wrap { padding-bottom: 0; }
body[data-page="idea-page"] .idea-article { padding-bottom: 110px; }

.idea-next-step {
  position: relative;
  width: min(1280px,100%);
  margin: 0 auto;
  padding: clamp(62px,7vw,104px) clamp(28px,6vw,92px);
  color: #fff;
  background: #111113;
  overflow: hidden;
}
.idea-next-step::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg,rgba(17,17,19,.98) 0%,rgba(17,17,19,.88) 48%,rgba(17,17,19,.42) 100%), url("./assets/images/hero-x.png") 112% 50% / min(650px,62vw) auto no-repeat;
  opacity: .92;
}
.idea-next-step > * { position: relative; z-index: 1; }
.idea-next-step > div:first-child { display: grid; max-width: 820px; gap: 22px; }
.idea-next-step h2 { margin: 0; font-size: clamp(44px,6vw,86px); font-weight: 460; line-height: .94; letter-spacing: -.06em; }
.idea-next-step > div:first-child > p:last-child { max-width: 660px; margin: 0; color: rgba(255,255,255,.64); font-size: 17px; line-height: 1.55; }
.idea-next-links { display: grid; margin-top: clamp(46px,7vw,90px); grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.2); }
.idea-next-links a { display: grid; min-height: 170px; padding: 28px 0 24px; gap: 14px; color: #fff; text-decoration: none; }
.idea-next-links a + a { padding-left: clamp(24px,4vw,58px); border-left: 1px solid rgba(255,255,255,.2); }
.idea-next-links a:first-child { padding-right: clamp(24px,4vw,58px); }
.idea-next-links small { color: rgba(255,255,255,.48); font-size: 11px; }
.idea-next-links strong { max-width: 430px; font-size: clamp(26px,3vw,40px); font-weight: 480; line-height: 1; letter-spacing: -.045em; }
.idea-next-links span { align-self: end; color: #b99cff; font-size: 12px; }
.idea-next-links a:hover strong { color: #c8b3ff; }

@media (max-width: 760px) {
  body[data-page="idea-page"] .idea-article { padding-bottom: 76px; }
  .idea-next-links { grid-template-columns: 1fr; }
  .idea-next-links a { min-height: 145px; }
  .idea-next-links a + a { padding-left: 0; border-top: 1px solid rgba(255,255,255,.2); border-left: 0; }
  .idea-next-links a:first-child { padding-right: 0; }
}

@media (max-width: 480px) {
  .idea-next-step { padding-inline: 20px; }
  .idea-next-step::before { background-position: 160% 35%; background-size: 470px auto; }
}

/* Internal idea pages reuse the exact home shell */
body.shell-internal-page {
  color: #171719;
  background: #f6f5f1;
}

body.shell-internal-page .home-header,
body.shell-internal-page .home-header.is-scrolled {
  top: 8px;
  height: 62px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.shell-internal-page .ideas-archive,
body.shell-internal-page .idea-article-wrap {
  padding-top: 132px;
}

body.idea-page-view .idea-article-wrap {
  padding-right: 40px;
  padding-bottom: 0;
  padding-left: 40px;
  overflow: hidden;
}

body.idea-page-view .idea-article {
  width: min(1040px,100%);
  padding-bottom: clamp(72px,8vw,112px);
}

body.idea-page-view .idea-article header {
  max-width: 960px;
  margin-bottom: clamp(42px,5vw,64px);
}

body.idea-page-view .idea-article h1 {
  max-width: 960px;
  font-size: clamp(40px,4.6vw,68px);
  line-height: .96;
  letter-spacing: -.055em;
}

body.idea-page-view .idea-body {
  max-width: none;
  color: #303034;
  font-size: 18px;
  line-height: 1.62;
}

body.idea-page-view .idea-body-intro {
  max-width: 760px;
  margin-bottom: 46px;
  font-size: 20px;
}

body.idea-page-view .idea-sections {
  border-top: 1px solid rgba(23,23,25,.2);
}

body.idea-page-view .idea-section {
  display: grid;
  min-height: 176px;
  padding: 31px 0 34px;
  grid-template-columns: 70px 190px minmax(0,1fr);
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid rgba(23,23,25,.2);
}

body.idea-page-view .idea-section-number {
  padding-top: 5px;
  color: #7551c8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

body.idea-page-view .idea-section h2 {
  margin: 0;
  font-size: clamp(22px,2.3vw,32px);
  font-weight: 510;
  line-height: 1;
  letter-spacing: -.045em;
}

body.idea-page-view .idea-section-copy {
  max-width: 680px;
  color: #4d4d52;
  font-size: 17px;
  line-height: 1.65;
}

body.idea-page-view .idea-section-copy p:last-child { margin-bottom: 0; }

body.idea-page-view .idea-technologies {
  display: flex;
  max-width: 700px;
  gap: 12px 26px;
  flex-wrap: wrap;
}

body.idea-page-view .idea-technologies span {
  position: relative;
  padding: 3px 0 8px 15px;
  color: #36363a;
  border-bottom: 1px solid rgba(23,23,25,.16);
  font-size: 14px;
  line-height: 1.35;
}

body.idea-page-view .idea-technologies span::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: #8260d5;
}

body.idea-page-view .idea-next-step {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: 310px;
  margin: 0 0 0 -50vw;
  padding: clamp(42px,5vw,64px) max(40px,calc((100vw - var(--container)) / 2));
  display: flex;
  align-items: center;
  color: #171719;
  background: #eeece6;
  overflow: hidden;
}

body.idea-page-view .idea-next-step::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: max(40px,calc((100vw - var(--container)) / 2));
  left: max(40px,calc((100vw - var(--container)) / 2));
  height: 1px;
  content: "";
  opacity: 1;
  background: linear-gradient(90deg,#7551c8 0 92px,rgba(23,23,25,.18) 92px 100%);
}

body.idea-page-view .idea-next-copy {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0,1.08fr) minmax(300px,.72fr);
  gap: 18px clamp(50px,7vw,112px);
}

body.idea-page-view .idea-next-copy > p:not(.section-label) {
  grid-column: 2;
  grid-row: 2;
  max-width: 570px;
  margin: 0;
  color: #66666b;
  font-size: 15px;
  line-height: 1.55;
}

body.idea-page-view .idea-next-step h2 {
  grid-column: 1;
  grid-row: 2/4;
  margin: 0;
  font-size: clamp(36px,4.2vw,58px);
  font-weight: 470;
  line-height: .96;
  letter-spacing: -.055em;
}

body.idea-page-view .idea-next-step .section-label { color: #7551c8; }
body.idea-page-view .idea-next-copy > .section-label { grid-column: 1/-1; }

body.idea-page-view .idea-next-links {
  display: flex;
  margin: 8px 0 0;
  gap: 12px 30px;
  border: 0;
  flex-wrap: wrap;
}

body.idea-page-view .idea-next-links a,
body.idea-page-view .idea-next-links a + a,
body.idea-page-view .idea-next-links a:first-child {
  display: inline-flex;
  min-height: 0;
  padding: 10px 0;
  gap: 16px;
  align-items: center;
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.35);
  font-size: 12px;
  text-decoration: none;
}

body.idea-page-view .idea-next-links a:hover { color: #c8b3ff; }
body.idea-page-view .idea-next-links span { color: #b99cff; }

body.idea-page-view .idea-next-actions {
  display: flex;
  margin-top: 4px;
  grid-column: 2;
  grid-row: 3;
  gap: 9px;
  flex-wrap: wrap;
}

body.idea-page-view .idea-next-actions a,
body.idea-page-view .idea-next-actions button {
  display: inline-flex;
  min-width: 190px;
  min-height: 52px;
  padding: 0 17px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(23,23,25,.24);
  border-radius: 0;
  color: #171719;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  text-decoration: none;
  transition: color 180ms ease,background 180ms ease,border-color 180ms ease,transform 180ms ease;
}

body.idea-page-view .idea-next-actions button {
  color: #fff;
  background: #7551c8;
  border-color: #7551c8;
}

body.idea-page-view .idea-next-actions a:hover,
body.idea-page-view .idea-next-actions button:hover {
  color: #fff;
  background: #171719;
  border-color: #171719;
  transform: translateY(-2px);
}

body.idea-page-view .idea-next-actions span { color: inherit; }

@media (max-width: 760px) {
  body.shell-internal-page .ideas-archive,
  body.shell-internal-page .idea-article-wrap { padding-top: 106px; }
  body.idea-page-view .idea-article-wrap { padding-right: 20px; padding-left: 20px; }
  body.idea-page-view .idea-next-step {
    min-height: 0;
    padding: 48px 20px;
    align-items: center;
  }
  body.idea-page-view .idea-next-step::before {
    right: 20px;
    left: 20px;
    background: linear-gradient(90deg,#7551c8 0 64px,rgba(23,23,25,.18) 64px 100%);
  }
  body.idea-page-view .idea-next-copy { width: 100%; grid-template-columns: 1fr; gap: 16px; }
  body.idea-page-view .idea-next-step h2 { font-size: clamp(35px,10vw,52px); }
  body.idea-page-view .idea-next-step h2,
  body.idea-page-view .idea-next-copy > p:not(.section-label),
  body.idea-page-view .idea-next-actions { grid-column: 1; grid-row: auto; }
  body.idea-page-view .idea-next-links { display: grid; gap: 0; }
  body.idea-page-view .idea-article h1 { font-size: clamp(38px,10.8vw,54px); }
  body.idea-page-view .idea-section {
    min-height: 0;
    padding: 26px 0 30px;
    grid-template-columns: 42px minmax(0,1fr);
    gap: 11px 14px;
  }
  body.idea-page-view .idea-section-number { grid-row: 1/3; }
  body.idea-page-view .idea-section-copy,
  body.idea-page-view .idea-technologies { grid-column: 2; }
  body.idea-page-view .idea-next-actions { display: grid; grid-template-columns: 1fr 1fr; }
  body.idea-page-view .idea-next-actions a,
  body.idea-page-view .idea-next-actions button { min-width: 0; }
}

@media (max-width: 430px) {
  body.idea-page-view .idea-next-actions { grid-template-columns: 1fr; }
}

/* Home hero — automation-first value proposition */
body[data-page="home"] .automation-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  color: var(--white);
  background: #0f0f12;
  background-image: none;
  overflow: hidden;
}

body[data-page="home"] .automation-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg,rgba(0,0,0,.32),#000 48%,rgba(0,0,0,.2));
  mask-image: linear-gradient(90deg,rgba(0,0,0,.32),#000 48%,rgba(0,0,0,.2));
}

body[data-page="home"] .automation-hero::after {
  position: absolute;
  z-index: -1;
  top: -34%;
  right: -15%;
  width: min(760px,62vw);
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle,rgba(130,91,230,.22) 0%,rgba(91,64,170,.1) 32%,transparent 69%);
  pointer-events: none;
}

body[data-page="home"] .automation-hero .hero-inner {
  display: flex;
  min-height: 100svh;
  padding-top: 30px;
  padding-bottom: 22px;
  flex-direction: column;
  justify-content: space-between;
}

body[data-page="home"] .automation-hero .hero-location {
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.58);
}

body[data-page="home"] .automation-hero-grid {
  display: grid;
  width: 100%;
  margin: clamp(42px,7vh,82px) 0 clamp(28px,4vh,46px);
  grid-template-columns: minmax(0,1.34fr) minmax(320px,.66fr);
  gap: clamp(56px,8vw,128px);
  align-items: end;
}

body[data-page="home"] .automation-hero-main {
  min-width: 0;
}

body[data-page="home"] .automation-kicker {
  display: flex;
  margin: 0 0 20px;
  align-items: center;
  gap: 12px;
  color: #b99cff;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body[data-page="home"] .automation-kicker::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

body[data-page="home"] .automation-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(58px,6.7vw,102px);
  font-weight: 480;
  line-height: .87;
  letter-spacing: -.069em;
}

body[data-page="home"] .automation-hero h1 em {
  color: #b99cff;
  font-style: normal;
  font-weight: inherit;
}

body[data-page="home"] .automation-hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.62);
  font-size: clamp(14px,1.2vw,17px);
  line-height: 1.55;
}

body[data-page="home"] .automation-hero-actions {
  display: flex;
  margin-top: 30px;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

body[data-page="home"] .automation-hero-actions a {
  display: inline-flex;
  min-height: 52px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease,background 180ms ease,border-color 180ms ease,transform 180ms ease;
}

body[data-page="home"] .automation-primary {
  color: #131316;
  background: #b99cff;
  border: 1px solid #b99cff;
}

body[data-page="home"] .automation-primary:hover {
  background: #cab6ff;
  border-color: #cab6ff;
  transform: translateY(-2px);
}

body[data-page="home"] .automation-secondary {
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.2);
}

body[data-page="home"] .automation-secondary:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}

body[data-page="home"] .automation-hero-brief {
  display: grid;
  min-width: 0;
  border-top: 1px solid rgba(255,255,255,.2);
}

body[data-page="home"] .automation-hero-brief > div {
  display: grid;
  padding: 18px 0 19px;
  grid-template-columns: 116px minmax(0,1fr);
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

body[data-page="home"] .automation-hero-brief small {
  color: #9d7fe9;
  font-size: 8px;
  font-weight: 680;
  letter-spacing: .095em;
  line-height: 1.4;
  text-transform: uppercase;
}

body[data-page="home"] .automation-hero-brief p {
  max-width: 340px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.5;
}

body[data-page="home"] .automation-hero-brief .automation-examples {
  align-items: start;
}

body[data-page="home"] .automation-examples a {
  display: flex;
  grid-column: 2;
  padding: 0 0 9px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.16);
  font-size: 11px;
  text-decoration: none;
  transition: color 180ms ease,padding 180ms ease;
}

body[data-page="home"] .automation-examples a + a {
  padding-top: 9px;
}

body[data-page="home"] .automation-examples a:hover {
  padding-left: 5px;
  color: #b99cff;
}

body[data-page="home"] .automation-examples a span {
  color: #9d7fe9;
}

body[data-page="home"] .automation-hero-bottom {
  display: flex;
  min-height: 46px;
  padding-top: 15px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: rgba(255,255,255,.43);
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 10px;
  letter-spacing: .035em;
}

body[data-page="home"] .automation-hero-bottom p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 10px;
}

body[data-page="home"] .automation-hero-bottom p > span {
  width: 6px;
  height: 6px;
  background: #79d69f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(121,214,159,.09);
}

body[data-page="home"] .automation-hero-bottom a {
  color: rgba(255,255,255,.62);
  text-decoration: none;
  transition: color 180ms ease;
}

body[data-page="home"] .automation-hero-bottom a:hover {
  color: #b99cff;
}

@media (max-width: 1050px) {
  body[data-page="home"] .automation-hero-grid {
    grid-template-columns: minmax(0,1.08fr) minmax(300px,.92fr);
    gap: 50px;
  }
  body[data-page="home"] .automation-hero h1 { font-size: clamp(54px,7.2vw,78px); }
  body[data-page="home"] .automation-hero-brief > div { grid-template-columns: 100px minmax(0,1fr); gap: 14px; }
}

@media (max-height: 790px) and (min-width: 761px) {
  body[data-page="home"] .automation-hero-grid { margin-top: 34px; margin-bottom: 22px; }
  body[data-page="home"] .automation-hero h1 { font-size: clamp(52px,6.2vw,82px); }
  body[data-page="home"] .automation-hero-lead { margin-top: 20px; }
  body[data-page="home"] .automation-hero-actions { margin-top: 21px; }
  body[data-page="home"] .automation-hero-brief > div { padding-top: 13px; padding-bottom: 14px; }
}

@media (max-width: 760px) {
  body[data-page="home"] .automation-hero { min-height: max(100svh,720px); }
  body[data-page="home"] .automation-hero::before { background-size: 46px 46px; }
  body[data-page="home"] .automation-hero::after { top: -10%; right: -55%; width: 120vw; }
  body[data-page="home"] .automation-hero .hero-inner { min-height: max(100svh,720px); padding-top: 22px; padding-bottom: 16px; }
  body[data-page="home"] .automation-hero .hero-location { max-width: 260px; padding-right: 30px; font-size: 9px; line-height: 1.45; }
  body[data-page="home"] .automation-hero-grid { margin: 54px 0 22px; grid-template-columns: 1fr; gap: 28px; align-items: start; }
  body[data-page="home"] .automation-kicker { margin-bottom: 14px; font-size: 8px; }
  body[data-page="home"] .automation-hero h1 { font-size: clamp(43px,12.5vw,60px); line-height: .88; }
  body[data-page="home"] .automation-hero-lead { max-width: 520px; margin-top: 18px; font-size: 13px; }
  body[data-page="home"] .automation-hero-actions { margin-top: 20px; }
  body[data-page="home"] .automation-hero-actions a { min-height: 46px; padding-inline: 14px; gap: 24px; }
  body[data-page="home"] .automation-hero-brief { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body[data-page="home"] .automation-hero-brief > div { padding: 13px 12px 14px 0; grid-template-columns: 1fr; gap: 7px; }
  body[data-page="home"] .automation-hero-brief > div + div { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.14); }
  body[data-page="home"] .automation-hero-brief small { font-size: 7px; }
  body[data-page="home"] .automation-hero-brief p { font-size: 10px; line-height: 1.42; }
  body[data-page="home"] .automation-hero-brief .automation-examples { display: none; }
  body[data-page="home"] .automation-hero-bottom { min-height: 36px; padding-top: 11px; font-size: 8px; }
  body[data-page="home"] .automation-hero-bottom p { display: none; }
  body[data-page="home"] .automation-hero-bottom a { margin-left: auto; }
}

@media (max-width: 480px) {
  body[data-page="home"] .automation-hero { min-height: max(100svh,760px); }
  body[data-page="home"] .automation-hero .hero-inner { min-height: max(100svh,760px); }
  body[data-page="home"] .automation-hero-grid { margin-top: 50px; gap: 24px; }
  body[data-page="home"] .automation-hero h1 { font-size: clamp(38px,11.4vw,50px); }
  body[data-page="home"] .automation-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  body[data-page="home"] .automation-hero-actions a { min-width: 0; padding: 0 11px; gap: 8px; font-size: 10px; }
  body[data-page="home"] .automation-hero-brief > div { padding-right: 8px; }
  body[data-page="home"] .automation-hero-brief > div + div { padding-left: 8px; }
  body[data-page="home"] .automation-hero-brief p { font-size: 9px; }
}

/* Home hero — circuit artwork with slow electron movement */
body[data-page="home"] .automation-hero::before {
  background:
    linear-gradient(90deg,#0f0f12 0%,rgba(15,15,18,.96) 18%,rgba(15,15,18,.82) 42%,rgba(15,15,18,.42) 70%,rgba(15,15,18,.24) 100%),
    linear-gradient(180deg,rgba(15,15,18,.42),rgba(15,15,18,.16) 46%,rgba(15,15,18,.64)),
    url("./assets/images/hero-circuit-bg.jpg?v=2") center / cover no-repeat;
  -webkit-mask-image: none;
  mask-image: none;
  opacity: .86;
  transform: scale(1.015);
}

body[data-page="home"] .automation-hero::after {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background:
    radial-gradient(circle at 50% 50%,rgba(157,116,255,.17),transparent 25%),
    radial-gradient(ellipse at 76% 47%,rgba(84,125,226,.11),transparent 43%);
  clip-path: none;
  filter: none;
  opacity: 1;
  transform: none;
  animation: hero-circuit-breathe 9s ease-in-out infinite alternate;
  will-change: opacity;
}

body[data-page="home"] .automation-hero .hero-inner {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .automation-hero-brief {
  position: relative;
  isolation: isolate;
}

body[data-page="home"] .automation-hero-brief::before {
  position: absolute;
  z-index: -1;
  inset: -32px -36px;
  content: "";
  background: rgba(8,8,12,.2);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

body[data-page="home"] .hero-electrons {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

body[data-page="home"] .hero-electrons i {
  --dx: 0px;
  --dy: 0px;
  --start-x: 50%;
  --start-y: 50%;
  --duration: 8.6s;
  --delay: 0s;
  position: absolute;
  top: var(--start-y);
  left: var(--start-x);
  width: 4px;
  height: 4px;
  background: #d7c4ff;
  border-radius: 1px;
  box-shadow: 0 0 7px #b693ff,0 0 18px rgba(143,101,255,.88),0 0 34px rgba(90,181,255,.42);
  opacity: 0;
  animation: hero-electron-run var(--duration) cubic-bezier(.24,.05,.35,1) var(--delay) infinite;
  animation-play-state: paused;
  will-change: transform,opacity;
}

body[data-page="home"] .hero-electrons.is-ready i { animation-play-state: running; }

body[data-page="home"] .hero-electrons i:nth-child(1) { --dx: max(48vw,78vh); --dy: min(-48vw,-78vh); --duration: 9.8s; --delay: 0s; }
body[data-page="home"] .hero-electrons i:nth-child(2) { --dx: min(-48vw,-78vh); --dy: min(-48vw,-78vh); --duration: 8.4s; --delay: 1.3s; }
body[data-page="home"] .hero-electrons i:nth-child(3) { --dx: min(-48vw,-78vh); --dy: max(48vw,78vh); --duration: 11.2s; --delay: 2.7s; }
body[data-page="home"] .hero-electrons i:nth-child(4) { --dx: max(48vw,78vh); --dy: max(48vw,78vh); --duration: 10.6s; --delay: 4.1s; }
body[data-page="home"] .hero-electrons i:nth-child(5) { --dx: max(48vw,78vh); --dy: min(-48vw,-78vh); --duration: 12.4s; --delay: .8s; }
body[data-page="home"] .hero-electrons i:nth-child(6) { --dx: min(-48vw,-78vh); --dy: min(-48vw,-78vh); --duration: 10.1s; --delay: 2.1s; }
body[data-page="home"] .hero-electrons i:nth-child(7) { --dx: min(-48vw,-78vh); --dy: max(48vw,78vh); --duration: 9.2s; --delay: 3.5s; }
body[data-page="home"] .hero-electrons i:nth-child(8) { --dx: max(48vw,78vh); --dy: max(48vw,78vh); --duration: 11.8s; --delay: 4.9s; }

@keyframes hero-electron-run {
  0% { opacity: 0; transform: translate3d(0,0,0) scale(.5); }
  2% { opacity: .92; transform: translate3d(0,0,0) scale(.7); }
  74% { opacity: .7; }
  100% { opacity: 0; transform: translate3d(var(--dx),var(--dy),0) scale(1.15); }
}

@keyframes hero-circuit-breathe {
  from { opacity: .72; }
  to { opacity: 1; }
}

@media (max-width: 760px) {
  body[data-page="home"] .automation-hero::before {
    background:
      linear-gradient(180deg,rgba(15,15,18,.94) 0%,rgba(15,15,18,.71) 43%,rgba(15,15,18,.46) 72%,rgba(15,15,18,.82) 100%),
      url("./assets/images/hero-circuit-bg.jpg?v=2") center / cover no-repeat;
    opacity: .72;
  }

  body[data-page="home"] .automation-hero::after {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 100%;
    transform: none;
  }

  body[data-page="home"] .automation-hero-brief::before {
    inset: -18px -12px;
  }

  body[data-page="home"] .hero-electrons i:nth-child(n+7) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .automation-hero::after,
  body[data-page="home"] .hero-electrons i {
    animation: none;
  }
}

/* Home hero details and full-viewport cases */
body[data-page="home"] .automation-hero-brief > div {
  padding-top: 21px;
  padding-bottom: 22px;
  grid-template-columns: 132px minmax(0,1fr);
  gap: 24px;
}

body[data-page="home"] .automation-hero-brief small {
  font-size: 10px;
  line-height: 1.45;
}

body[data-page="home"] .automation-hero-brief p {
  max-width: 390px;
  font-size: 15px;
  line-height: 1.48;
}

body[data-page="home"] .automation-examples a {
  font-size: 14px;
}

body[data-page="home"] .home-case,
body[data-page="home"] .home-case .project-inner {
  min-height: 720px;
  height: 100svh;
}

@media (max-width: 1050px) {
  body[data-page="home"] .automation-hero-brief > div {
    grid-template-columns: 112px minmax(0,1fr);
    gap: 16px;
  }

  body[data-page="home"] .automation-hero-brief p { font-size: 14px; }
}

@media (max-width: 760px) {
  body[data-page="home"] .automation-hero-brief > div {
    padding-top: 14px;
    padding-bottom: 15px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="home"] .automation-hero-brief small { font-size: 8px; }
  body[data-page="home"] .automation-hero-brief p { font-size: 11px; }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-case,
  body[data-page="home"] .home-case .project-inner {
    min-height: 700px;
    height: max(100svh,700px);
  }
}

/* Center case content vertically while preserving its left/right alignment */
body[data-page="home"] .case-background-layout,
body[data-page="home"] .case-background-right {
  padding-top: 70px;
  padding-bottom: 70px;
  justify-content: center;
}

@media (max-width: 640px) {
  body[data-page="home"] .case-background-layout,
  body[data-page="home"] .case-background-right {
    padding-top: 64px;
    padding-bottom: 64px;
    justify-content: center;
  }
}

/* Mobile hero — stable menu control and a calmer vertical composition */
@media (max-width: 760px) {
  body[data-page="home"] .hero-menu-toggle,
  body[data-page="home"] .menu-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 0 10px;
    flex-direction: column;
    flex: 0 0 48px;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  body[data-page="home"] .hero-menu-toggle {
    top: 6px;
    right: -10px;
  }

  body[data-page="home"] .hero-menu-toggle span,
  body[data-page="home"] .menu-toggle span {
    display: none;
  }

  body[data-page="home"] .hero-menu-toggle i,
  body[data-page="home"] .menu-toggle i,
  body[data-page="home"] .hero-menu-toggle:hover i:first-of-type,
  body[data-page="home"] .menu-toggle:hover i:first-of-type {
    width: 28px;
    height: 1px;
    flex: 0 0 1px;
    justify-self: auto;
  }

  body[data-page="home"] .automation-hero-grid {
    margin-top: 42px;
    margin-bottom: 18px;
    gap: clamp(46px, 6.5svh, 62px);
  }

  body[data-page="home"] .automation-hero-brief {
    border-top: 0;
  }
}
