:root {
  --bg: #27262b;
  --surface: #42306d;
  --surface-muted: #594e65;
  --border: #594e65;
  --border-strong: #958a9d;
  --text: #e5e6e6;
  --text-muted: #bcbdc2;
  --text-soft: #cccacc;
  --label-muted: #89878d;
  --accent: #afa5e7;
  --accent-cool: #a8e2ca;
  --action: #4c9480;
  --action-deep: #41695e;
  --highlight: #e0c4f2;
  --deep-accent: #4c4494;
  --heading-section: clamp(25px, 2.8vw, 34px);
  --heading-page: clamp(34px, 4vw, 48px);
  --radius: 8px;
  --shadow: 0 18px 40px color-mix(in srgb, var(--bg) 70%, transparent);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
main:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: 12px;
  z-index: 10;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.section-wrap {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}

.brand {
  flex: 0 0 auto;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-nav a {
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding-block: 6px;
  text-decoration: none;
}

.site-nav a:hover,
.contact-links a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  gap: 18px;
  padding-block: 42px 34px;
}

.hero-copy,
.hero-image,
.card,
.project-card,
.about,
.services,
.contact {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 48px);
}

.hero-image {
  display: grid;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-image figcaption {
  align-self: end;
  margin: 0;
  padding: 13px 16px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 14px;
}

.kicker,
.section-label,
.card span {
  margin-top: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 8vw, 78px);
  line-height: 0.96;
}

#hero-title {
  font-size: clamp(42px, 5vw, 64px);
  max-width: 100%;
}

h2 {
  margin: 0;
  font-size: var(--heading-section);
  line-height: 1.12;
}

h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0 0 12px;
  color: var(--accent-cool);
  font-weight: 800;
}

.hero-lead,
.about p,
.section-heading-row p,
.card p,
.project-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-lead {
  max-width: 62ch;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  padding: 11px 18px;
  text-decoration: none;
}

.button-primary {
  background: var(--action);
  color: var(--text);
}

.button-primary:hover {
  background: var(--accent-cool);
  color: var(--bg);
}

.button-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent-cool);
  color: var(--accent-cool);
}

.section-wrap:not(.hero) {
  padding-top: 46px;
}

.about,
.services,
.contact {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 24px;
}

.cards,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  min-height: 160px;
  padding: 20px;
}

.card p,
.project-card p {
  margin-bottom: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: clamp(150px, 17vw, 190px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card div {
  padding: 18px;
}

.services-grid,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 9px;
}

.services-grid span,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-muted);
  line-height: 1.2;
  padding: 10px 13px;
  text-decoration: none;
}

.contact {
  margin-top: clamp(30px, 5vw, 52px);
  margin-bottom: 56px;
}

.services {
  margin-top: 42px;
  margin-bottom: clamp(30px, 4vw, 44px);
}

.contact-page {
  min-height: 100vh;
}

.contact-main {
  padding-block: 46px 60px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 46px);
}

.contact-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-intro p:last-child {
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
}

.form-field-hidden {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.form-note {
  border-left: 3px solid var(--accent-cool);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  padding-left: 14px;
}

.form-note + .form-note {
  color: var(--label-muted);
}

.form-note-protection {
  color: var(--text-muted);
}

.turnstile-wrap {
  display: flex;
  align-items: center;
  min-height: 65px;
  max-width: 100%;
  overflow-x: auto;
  padding-top: 2px;
}

.turnstile-wrap iframe {
  max-width: 100%;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.submit-row .button {
  border: 0;
  cursor: pointer;
}



#projects {
  margin-bottom: clamp(32px, 5vw, 58px);
}

.services {
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
}

.services h2,
.contact h2 {
  line-height: 1.14;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.services-grid span {
  justify-content: flex-start;
  min-height: 42px;
}

.contact {
  align-items: center;
  gap: clamp(22px, 4vw, 38px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  width: 54px;
  height: 54px;
  padding: 0;
  border-color: var(--accent);
  background: var(--deep-accent);
  color: var(--text);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--bg) 58%, transparent);
}

.contact-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon:hover {
  border-color: var(--accent-cool);
  background: var(--action);
  color: var(--text);
}
@media (min-width: 901px) {
  .hero {
    gap: 24px;
    padding-block: 52px 44px;
  }

  .hero-copy {
    padding: clamp(36px, 4.5vw, 60px);
  }

  .hero-image img {
    min-height: 400px;
  }

  #hero-title {
    font-size: clamp(48px, 4.8vw, 68px);
    white-space: nowrap;
  }
}
@media (max-width: 900px) {
  .hero,
  .about,
  .services,
  .contact,
  .contact-panel,
  .section-heading-row {
    grid-template-columns: 1fr;
  }

  .cards,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card img {
    height: clamp(145px, 24vw, 180px);
  }

  .hero-image img {
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  .site-header,
  .section-wrap {
    width: min(100% - 32px, 1200px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 32px;
  }

  .cards,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .services {
    margin-top: 34px;
    margin-bottom: 34px;
  }

  .contact {
    margin-top: 34px;
  }

  .project-card img {
    height: clamp(150px, 48vw, 210px);
  }

  .hero-image img {
    min-height: 230px;
  }

  .services-grid span,
  .contact-links a {
    white-space: normal;
  }
}

/* Premium visual polish pass */
:root {
  --surface-rich: #4c4494;
  --surface-deep: color-mix(in srgb, var(--surface) 68%, var(--bg));
  --surface-quiet: color-mix(in srgb, var(--surface-muted) 48%, var(--bg));
  --border-soft: color-mix(in srgb, var(--border-strong) 58%, transparent);
  --shadow-soft: 0 16px 34px color-mix(in srgb, var(--bg) 54%, transparent);
  --shadow-strong: 0 26px 64px color-mix(in srgb, var(--bg) 68%, transparent);
}

body {
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--surface) 28%, var(--bg)) 42%, var(--bg) 100%);
}

.site-header,
.section-wrap {
  width: min(100% - 44px, 1220px);
}

.site-header {
  border-bottom-color: var(--border-soft);
}

.site-nav a {
  color: var(--text-soft);
}

.site-nav a:hover {
  color: var(--accent-cool);
}

.hero {
  gap: clamp(22px, 2.4vw, 32px);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-rich) 58%, var(--surface-muted) 100%);
  box-shadow: var(--shadow-strong);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cool));
}

.hero-image {
  border-color: var(--border-soft);
  background: var(--surface-quiet);
  box-shadow: var(--shadow-strong);
}

.hero-image img {
  filter: saturate(1.04) contrast(1.04);
}

.section-wrap:not(.hero) {
  padding-top: clamp(54px, 6vw, 76px);
}

#projects {
  margin-bottom: clamp(38px, 6vw, 68px);
}

.section-heading-row {
  margin-bottom: 2px;
}

.about,
.services,
.contact,
.contact-panel {
  border-color: var(--border-soft);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-deep) 100%);
  box-shadow: var(--shadow-soft);
}

.about {
  align-items: center;
}

.about p {
  max-width: 70ch;
}

.card,
.project-card {
  border-color: color-mix(in srgb, var(--border-strong) 62%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--surface-muted)) 0%, var(--surface-quiet) 100%);
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.card:hover,
.project-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 72%, var(--border-strong));
  box-shadow: var(--shadow-strong);
}

.project-card div {
  padding: 20px;
}

.project-card h3,
.card h3 {
  color: var(--text);
}

.card span {
  display: inline-flex;
  margin-bottom: 8px;
}

.services {
  background: linear-gradient(135deg, var(--surface-rich) 0%, var(--surface-deep) 100%);
}

.services-grid {
  gap: 12px;
}

.services-grid span {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border-strong));
  background: color-mix(in srgb, var(--bg) 18%, var(--surface-muted));
  color: var(--text-soft);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--bg) 38%, transparent);
}

.services-grid span:hover {
  border-color: var(--accent-cool);
  background: color-mix(in srgb, var(--deep-accent) 76%, var(--action));
  color: var(--text);
}

.contact {
  border-color: color-mix(in srgb, var(--accent-cool) 38%, var(--border-strong));
  background: linear-gradient(135deg, var(--surface-deep) 0%, var(--deep-accent) 100%);
}

.contact-links {
  gap: 14px;
}

.contact-icon {
  width: 58px;
  height: 58px;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--accent) 72%, var(--border-strong));
  background: linear-gradient(135deg, var(--deep-accent) 0%, var(--surface-rich) 100%);
  color: var(--text);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--bg) 62%, transparent);
}

.contact-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.05;
}

.contact-icon:hover,
.contact-icon:focus-visible {
  border-color: var(--accent-cool);
  background: linear-gradient(135deg, var(--action) 0%, var(--deep-accent) 100%);
  color: var(--text);
}

.form-field input,
.form-field textarea {
  background: color-mix(in srgb, var(--bg) 78%, var(--surface-deep));
}

@media (min-width: 901px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    padding-block: 64px 52px;
  }

  .hero-copy {
    padding: clamp(44px, 5vw, 68px);
  }

  .hero-image img {
    min-height: 430px;
  }

  #hero-title {
    font-size: clamp(52px, 5vw, 74px);
  }
}

@media (max-width: 680px) {
  .site-header,
  .section-wrap {
    width: min(100% - 32px, 1220px);
  }

  .contact-icon {
    width: 52px;
    height: 52px;
  }

  .contact-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Work Areas header alignment refinement */
#work .section-heading-row {
  grid-template-columns: minmax(0, 760px);
  align-items: start;
  gap: 12px;
  max-width: 820px;
}

#work .section-heading-row p {
  max-width: 64ch;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.65;
}

#work .cards {
  margin-top: clamp(24px, 3vw, 34px);
}

@media (max-width: 900px) {
  #work .section-heading-row {
    max-width: 100%;
  }
}

/* Featured Work showcase upgrade */
#projects .section-heading-row {
  position: relative;
  align-items: start;
  max-width: 920px;
  border-left: 3px solid var(--accent-cool);
  background: linear-gradient(90deg, color-mix(in srgb, var(--surface-rich) 34%, transparent), transparent 88%);
  padding: clamp(18px, 3vw, 26px) 0 clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px);
}

#projects .section-heading-row p {
  max-width: 48ch;
  margin: 0;
  color: var(--text-soft);
}

#projects .project-grid {
  gap: clamp(18px, 2.2vw, 26px);
  margin-top: clamp(26px, 3vw, 36px);
}

#projects .project-card {
  position: relative;
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong));
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-rich) 42%, var(--surface)) 0%, var(--surface-quiet) 100%);
}

#projects .project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cool));
  opacity: 0.9;
}

#projects .project-card img {
  width: calc(100% - 24px);
  margin: 12px auto 0;
  border: 1px solid color-mix(in srgb, var(--border-strong) 64%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--bg) 50%, transparent);
}

#projects .project-card div {
  padding: 22px 22px 24px;
}

#projects .project-card h3 {
  margin-bottom: 10px;
}

#projects .project-card p {
  line-height: 1.65;
}

#projects .project-card:hover img {
  border-color: color-mix(in srgb, var(--accent-cool) 70%, var(--border-strong));
}

/* Premium layered product transformation hero visual */
.hero-transformation-visual {
  position: relative;
  min-height: 100%;
  border-color: color-mix(in srgb, var(--accent-cool) 36%, var(--border-strong));
  background: var(--surface-quiet);
}

.transformation-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(84px, 0.7fr) minmax(178px, 1.12fr) minmax(112px, 0.86fr);
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  min-height: 430px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--accent-cool) 6%, transparent) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 46%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 34%),
    radial-gradient(ellipse at 85% 32%, color-mix(in srgb, var(--accent-cool) 16%, transparent), transparent 27%),
    linear-gradient(145deg, var(--surface-deep) 0%, var(--surface-rich) 56%, var(--surface-muted) 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.transformation-scene::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: var(--radius);
  box-shadow: inset 0 0 36px color-mix(in srgb, var(--accent) 14%, transparent);
  pointer-events: none;
}

.transformation-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 38%, color-mix(in srgb, var(--accent-cool) 12%, transparent) 48%, transparent 58%);
  opacity: 0;
  transform: translateX(-54%);
  animation: transformationSweep 7.4s ease-in-out infinite;
  pointer-events: none;
}

.transformation-paths {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flow-line {
  fill: none;
  stroke: url(#layerFlow);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 10 18;
  opacity: 0.72;
  animation: pathCurrent 3.4s linear infinite;
}

.flow-step-a {
  animation-delay: 0.45s;
}

.flow-step-b {
  animation-delay: 0.9s;
}

.flow-step-c,
.flow-exit {
  animation-delay: 1.35s;
}

.chaos-input,
.layer-machine,
.product-outputs,
.mobile-flow,
.flow-particle {
  position: relative;
  z-index: 2;
}

.chaos-input {
  min-width: 0;
  min-height: 310px;
}

.raw-card,
.raw-chip,
.raw-dot {
  position: absolute;
  display: block;
}

.raw-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border-strong));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 30%, var(--surface-muted));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--bg) 48%, transparent);
  animation: rawFragmentFloat 5.8s ease-in-out infinite;
}

.raw-card::before,
.raw-card::after,
.raw-card span::before {
  content: "";
  position: absolute;
  left: 11px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 52%, transparent);
}

.raw-card::before {
  top: 13px;
  width: 58%;
}

.raw-card::after {
  top: 25px;
  width: 32%;
  opacity: 0.65;
}

.raw-card span::before {
  right: 12px;
  bottom: 10px;
  opacity: 0.38;
}

.raw-card-a {
  left: 2%;
  top: 15%;
  width: 70px;
  height: 48px;
  transform: rotate(-15deg);
}

.raw-card-b {
  right: 8%;
  top: 28%;
  width: 54px;
  height: 42px;
  transform: rotate(12deg);
  animation-delay: 0.65s;
}

.raw-card-c {
  left: 17%;
  bottom: 20%;
  width: 62px;
  height: 44px;
  transform: rotate(-7deg);
  opacity: 0.82;
  animation-delay: 1.15s;
}

.raw-card-d {
  right: 20%;
  bottom: 8%;
  width: 42px;
  height: 36px;
  transform: rotate(18deg);
  opacity: 0.72;
  animation-delay: 1.6s;
}

.raw-chip {
  width: 28px;
  height: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 46%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--deep-accent) 48%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 34%, transparent);
  animation: rawChipDrift 4.6s ease-in-out infinite;
}

.raw-chip-a {
  left: 10%;
  top: 58%;
  transform: rotate(15deg);
}

.raw-chip-b {
  right: 2%;
  top: 12%;
  width: 20px;
  animation-delay: 1s;
}

.raw-chip-c {
  right: 28%;
  bottom: 31%;
  width: 24px;
  transform: rotate(-18deg);
  animation-delay: 1.85s;
}

.raw-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-cool);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-cool) 80%, transparent);
  animation: rawDotIntoLayer 4.8s ease-in-out infinite;
}

.raw-dot-a {
  left: 30%;
  top: 18%;
}

.raw-dot-b {
  left: 48%;
  top: 46%;
  width: 5px;
  height: 5px;
  animation-delay: 0.9s;
}

.raw-dot-c {
  left: 22%;
  bottom: 18%;
  width: 6px;
  height: 6px;
  animation-delay: 1.8s;
}

.layer-machine {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 340px;
  isolation: isolate;
}

.machine-halo {
  position: absolute;
  width: min(92%, 285px);
  height: min(82%, 285px);
  border-radius: 36px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  filter: blur(18px);
  opacity: 0.72;
  animation: machineHalo 3.8s ease-in-out infinite;
}

.processing-stack {
  position: relative;
  width: min(100%, 260px);
  height: 300px;
  transform: perspective(720px) rotateX(9deg) rotateZ(-2deg);
}

.process-layer {
  position: absolute;
  left: 50%;
  display: block;
  width: 82%;
  height: 56px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--border-strong));
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--text) 8%, transparent), color-mix(in srgb, var(--deep-accent) 62%, var(--surface-muted)));
  box-shadow: 0 18px 32px color-mix(in srgb, var(--bg) 54%, transparent);
  transform: translateX(-50%) skewX(-12deg);
  animation: layerActivation 4.8s ease-in-out infinite;
}

.process-layer::before,
.process-layer::after,
.process-layer span::before {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.process-layer::before {
  inset: 10px 18px auto;
  height: 4px;
  background: color-mix(in srgb, var(--text) 44%, transparent);
}

.process-layer::after {
  left: -42%;
  top: 0;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-cool) 32%, transparent), transparent);
  animation: layerScan 4.8s ease-in-out infinite;
}

.process-layer span::before {
  left: 18px;
  bottom: 12px;
  width: 42%;
  height: 5px;
  background: color-mix(in srgb, var(--accent-cool) 42%, transparent);
}

.process-layer-top {
  top: 16px;
  z-index: 4;
  width: 88%;
  border-color: color-mix(in srgb, var(--accent-cool) 66%, var(--border-strong));
  animation-delay: 0s;
}

.process-layer-second {
  top: 86px;
  z-index: 3;
  width: 82%;
  opacity: 0.9;
  animation-delay: 0.75s;
}

.process-layer-third {
  top: 156px;
  z-index: 2;
  width: 76%;
  opacity: 0.82;
  animation-delay: 1.5s;
}

.process-layer-final {
  top: 226px;
  z-index: 1;
  width: 70%;
  border-color: color-mix(in srgb, var(--accent-cool) 72%, var(--border-strong));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-cool) 16%, transparent), color-mix(in srgb, var(--surface-rich) 70%, var(--surface-muted)));
  animation-delay: 2.25s;
}

.layer-transfer {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-cool), color-mix(in srgb, var(--highlight) 70%, transparent));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-cool) 65%, transparent);
  opacity: 0;
  transform: translateX(-50%) skewX(-12deg);
  animation: layerDrop 4.8s ease-in-out infinite;
}

.transfer-a {
  top: 66px;
  animation-delay: 0.55s;
}

.transfer-b {
  top: 136px;
  animation-delay: 1.3s;
}

.transfer-c {
  top: 206px;
  animation-delay: 2.05s;
}

.entry-stream,
.exit-stream {
  position: absolute;
  z-index: 3;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 30%, transparent);
}

.entry-stream {
  left: -18px;
  top: 86px;
  width: 74px;
  transform: rotate(-12deg);
}

.exit-stream {
  right: -16px;
  bottom: 72px;
  width: 78px;
  transform: rotate(-8deg);
}

.entry-stream::after,
.exit-stream::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: var(--accent-cool);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-cool) 78%, transparent);
  animation: streamForward 2.8s ease-in-out infinite;
}

.exit-stream::after {
  animation-delay: 1.7s;
}

.product-outputs {
  display: grid;
  grid-template-columns: 0.84fr 0.54fr;
  grid-template-rows: auto auto auto;
  align-items: end;
  gap: 11px;
  min-width: 0;
  min-height: 316px;
}

.product-form {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border-strong));
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-rich) 48%, var(--surface-muted)), color-mix(in srgb, var(--bg) 14%, var(--surface-muted)));
  box-shadow: 0 15px 30px color-mix(in srgb, var(--bg) 50%, transparent);
  animation: productResolve 4.8s ease-in-out infinite;
}

.product-web {
  grid-column: 1 / 3;
  height: 86px;
  border-color: color-mix(in srgb, var(--accent-cool) 48%, var(--border-strong));
}

.product-web::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 18px;
  background: color-mix(in srgb, var(--bg) 28%, var(--surface-rich));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.product-web::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-cool);
  box-shadow: 12px 0 0 color-mix(in srgb, var(--accent) 76%, transparent), 24px 0 0 color-mix(in srgb, var(--text) 42%, transparent);
}

.product-web > span:first-child::before,
.product-web > span:first-child::after,
.product-web > span:nth-child(2)::before,
.product-web > span:nth-child(2)::after,
.product-web > span:nth-child(3)::before {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 58%, transparent);
}

.product-web > span:first-child::before {
  left: 14px;
  top: 33px;
  width: 44%;
  height: 5px;
}

.product-web > span:first-child::after {
  left: 14px;
  top: 47px;
  width: 28%;
  height: 4px;
  opacity: 0.64;
}

.product-web > span:nth-child(2)::before {
  right: 14px;
  top: 34px;
  width: 31%;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-cool) 24%, var(--deep-accent));
}

.product-web > span:nth-child(2)::after {
  left: 14px;
  bottom: 12px;
  width: 54%;
  height: 4px;
  opacity: 0.42;
}

.product-web > span:nth-child(3)::before {
  right: 22px;
  bottom: 15px;
  width: 20%;
  height: 4px;
  opacity: 0.62;
}

.product-phone {
  grid-column: 2;
  grid-row: 2 / 4;
  justify-self: end;
  width: 58px;
  height: 132px;
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--accent-cool) 68%, var(--border-strong));
  animation-delay: 0.45s;
}

.product-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 54%, transparent);
  transform: translateX(-50%);
}

.product-phone::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-cool) 68%, transparent);
}

.product-phone > span:first-child::before,
.product-phone > span:first-child::after,
.product-phone > span:nth-child(2)::before {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 24%, var(--deep-accent));
}

.product-phone > span:first-child::before {
  top: 22px;
  height: 38px;
}

.product-phone > span:first-child::after {
  top: 68px;
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 50%, transparent);
}

.product-phone > span:nth-child(2)::before {
  top: 86px;
  height: 20px;
  background: color-mix(in srgb, var(--accent-cool) 25%, var(--deep-accent));
}

.product-desktop {
  grid-column: 1;
  height: 80px;
  border-color: color-mix(in srgb, var(--accent) 54%, var(--border-strong));
  animation-delay: 0.9s;
}

.product-desktop::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 42px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--bg) 24%, var(--surface-rich));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.product-desktop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 36px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-cool) 44%, var(--deep-accent));
  transform: translateX(-50%);
}

.product-desktop > span:first-child::before,
.product-desktop > span:first-child::after,
.product-desktop > span:nth-child(2)::before {
  content: "";
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 54%, transparent);
}

.product-desktop > span:first-child::before {
  left: 20px;
  top: 22px;
  width: 42%;
  height: 4px;
}

.product-desktop > span:first-child::after {
  left: 20px;
  top: 33px;
  width: 28%;
  height: 4px;
  opacity: 0.58;
}

.product-desktop > span:nth-child(2)::before {
  right: 20px;
  top: 22px;
  width: 26px;
  height: 22px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent-cool) 38%, var(--deep-accent));
}

.product-tool {
  grid-column: 1;
  height: 74px;
  border-color: color-mix(in srgb, var(--accent-cool) 56%, var(--border-strong));
  background: linear-gradient(135deg, color-mix(in srgb, var(--action) 30%, var(--surface-rich)), color-mix(in srgb, var(--surface-muted) 78%, var(--deep-accent)));
  animation-delay: 1.35s;
}

.product-tool::before,
.product-tool::after,
.product-tool > span:first-child::before,
.product-tool > span:first-child::after,
.product-tool > span:nth-child(2)::before,
.product-tool > span:nth-child(3)::before {
  content: "";
  position: absolute;
  border-radius: 7px;
  background: color-mix(in srgb, var(--bg) 22%, var(--accent-cool));
}

.product-tool::before {
  left: 13px;
  top: 13px;
  width: 24px;
  height: 20px;
}

.product-tool::after {
  left: 45px;
  top: 13px;
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 58%, transparent);
}

.product-tool > span:first-child::before {
  left: 45px;
  top: 25px;
  width: 28px;
  height: 5px;
  border-radius: 999px;
  opacity: 0.62;
}

.product-tool > span:first-child::after {
  left: 13px;
  bottom: 12px;
  width: 22px;
  height: 15px;
}

.product-tool > span:nth-child(2)::before {
  left: 43px;
  bottom: 12px;
  width: 22px;
  height: 15px;
  background: color-mix(in srgb, var(--accent) 46%, var(--deep-accent));
}

.product-tool > span:nth-child(3)::before {
  left: 73px;
  bottom: 12px;
  width: 22px;
  height: 15px;
  background: color-mix(in srgb, var(--highlight) 38%, var(--deep-accent));
}

.flow-particle {
  position: absolute;
  z-index: 4;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-cool);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-cool) 78%, transparent);
  opacity: 0;
  pointer-events: none;
  animation: particleLayerPath 5.6s ease-in-out infinite;
}

.particle-a {
  left: 14%;
  top: 27%;
}

.particle-b {
  left: 18%;
  top: 53%;
  width: 6px;
  height: 6px;
  animation-delay: 1.2s;
}

.particle-c {
  left: 33%;
  top: 34%;
  width: 7px;
  height: 7px;
  animation-delay: 2.15s;
}

.mobile-flow {
  display: none;
}

@keyframes transformationSweep {
  0%, 34% {
    opacity: 0;
    transform: translateX(-58%);
  }
  52% {
    opacity: 0.72;
  }
  82%, 100% {
    opacity: 0;
    transform: translateX(58%);
  }
}

@keyframes pathCurrent {
  to {
    stroke-dashoffset: -112;
  }
}

@keyframes rawFragmentFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 9px -8px;
  }
}

@keyframes rawChipDrift {
  0%, 100% {
    opacity: 0.54;
    translate: 0 0;
  }
  50% {
    opacity: 0.95;
    translate: 14px -5px;
  }
}

@keyframes rawDotIntoLayer {
  0%, 100% {
    opacity: 0;
    transform: translateX(0) scale(0.7);
  }
  34%, 64% {
    opacity: 0.95;
    transform: translateX(70px) scale(1);
  }
}

@keyframes machineHalo {
  0%, 100% {
    opacity: 0.48;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@keyframes layerActivation {
  0%, 100% {
    filter: brightness(0.92);
  }
  45%, 58% {
    filter: brightness(1.15);
  }
}

@keyframes layerScan {
  0%, 38%, 100% {
    opacity: 0;
    transform: translateX(0);
  }
  46%, 64% {
    opacity: 1;
  }
  78% {
    opacity: 0;
    transform: translateX(440%);
  }
}

@keyframes layerDrop {
  0%, 38%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-14px) skewX(-12deg);
  }
  50%, 70% {
    opacity: 0.95;
    transform: translateX(-50%) translateY(12px) skewX(-12deg);
  }
}

@keyframes streamForward {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }
  24%, 72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(250%);
  }
}

@keyframes productResolve {
  0%, 100% {
    box-shadow: 0 15px 30px color-mix(in srgb, var(--bg) 50%, transparent);
  }
  50% {
    box-shadow: 0 17px 36px color-mix(in srgb, var(--accent-cool) 32%, transparent);
  }
}

@keyframes particleLayerPath {
  0%, 100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.65);
  }
  22% {
    opacity: 0.95;
    transform: translate(120px, -42px) scale(1);
  }
  45% {
    opacity: 0.95;
    transform: translate(170px, 28px) scale(1);
  }
  68% {
    opacity: 0.82;
    transform: translate(230px, 92px) scale(0.9);
  }
  86% {
    opacity: 0;
    transform: translate(360px, 72px) scale(0.75);
  }
}

@keyframes verticalPulse {
  0% {
    opacity: 0;
    transform: translateY(-110%);
  }
  30%, 72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(250%);
  }
}

@media (max-width: 900px) {
  .transformation-scene {
    grid-template-columns: minmax(82px, 0.72fr) minmax(168px, 1.06fr) minmax(112px, 0.9fr);
  }

  .processing-stack {
    width: min(100%, 236px);
  }
}

@media (max-width: 680px) {
  .transformation-scene {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding: 22px;
  }

  .transformation-paths,
  .entry-stream,
  .exit-stream,
  .flow-particle {
    display: none;
  }

  .chaos-input {
    min-height: 178px;
  }

  .layer-machine {
    min-height: 330px;
  }

  .product-outputs {
    min-height: 270px;
  }

  .raw-card-a {
    left: 13%;
    top: 12%;
  }

  .raw-card-b {
    right: 18%;
    top: 25%;
  }

  .raw-card-c {
    left: 28%;
    bottom: 18%;
  }

  .raw-card-d {
    right: 25%;
    bottom: 8%;
  }

  .mobile-flow {
    display: block;
    justify-self: center;
    width: 2px;
    height: 34px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 36%, transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 28%, transparent);
  }

  .mobile-flow::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 38%;
    border-radius: inherit;
    background: var(--accent-cool);
    box-shadow: 0 0 18px color-mix(in srgb, var(--accent-cool) 78%, transparent);
    animation: verticalPulse 2.8s ease-in-out infinite;
  }

  .mobile-flow-out::after {
    animation-delay: 0.85s;
  }

  .processing-stack {
    width: min(100%, 260px);
  }

  .product-outputs {
    width: min(100%, 260px);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .transformation-scene::after,
  .flow-line,
  .raw-card,
  .raw-chip,
  .raw-dot,
  .machine-halo,
  .process-layer,
  .process-layer::after,
  .layer-transfer,
  .entry-stream::after,
  .exit-stream::after,
  .product-form,
  .flow-particle,
  .mobile-flow::after {
    animation: none;
  }
}
/* Mobile compactness refinement */
@media (max-width: 680px) {
  .section-wrap:not(.hero) {
    padding-top: 38px;
  }

  .hero {
    gap: 14px;
    padding-block: 24px 22px;
  }

  .hero-copy {
    padding: 22px;
  }

  .kicker {
    margin-bottom: 8px;
  }

  #hero-title {
    margin-bottom: 12px;
  }

  .hero-subtitle {
    margin-bottom: 9px;
  }

  .hero-lead {
    margin-bottom: 18px;
    line-height: 1.58;
  }

  .hero-actions {
    gap: 8px;
  }

  .button {
    min-height: 40px;
    padding: 9px 15px;
  }

  .hero-transformation-visual {
    max-width: 100%;
  }

  .transformation-scene {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    max-width: 100%;
    padding: 16px;
  }

  .transformation-scene::before {
    inset: 12px;
  }

  .transformation-paths,
  .entry-stream,
  .exit-stream,
  .flow-particle {
    display: none;
  }

  .chaos-input,
  .layer-machine,
  .product-outputs {
    min-width: 0;
  }

  .chaos-input {
    min-height: 220px;
  }

  .layer-machine {
    min-height: 230px;
  }

  .product-outputs {
    width: 100%;
    min-height: 218px;
    gap: 7px;
  }

  .raw-card-a {
    left: 0;
    top: 18%;
    width: 48px;
    height: 36px;
  }

  .raw-card-b {
    right: 4%;
    top: 30%;
    width: 40px;
    height: 32px;
  }

  .raw-card-c {
    left: 18%;
    bottom: 24%;
    width: 44px;
    height: 32px;
  }

  .raw-card-d {
    right: 12%;
    bottom: 13%;
    width: 34px;
    height: 28px;
  }

  .raw-card::before {
    top: 10px;
  }

  .raw-card::after {
    top: 20px;
  }

  .raw-card span::before {
    bottom: 7px;
  }

  .raw-chip {
    width: 20px;
    height: 9px;
  }

  .raw-chip-b {
    right: 0;
  }

  .raw-chip-c {
    right: 20%;
  }

  .raw-dot-b {
    left: 42%;
  }

  .processing-stack {
    width: min(100%, 148px);
    height: 208px;
    transform: perspective(620px) rotateX(9deg) rotateZ(-2deg);
  }

  .process-layer {
    height: 38px;
    border-radius: 11px;
  }

  .process-layer::before {
    inset: 8px 14px auto;
    height: 3px;
  }

  .process-layer span::before {
    left: 14px;
    bottom: 9px;
    height: 4px;
  }

  .process-layer-top {
    top: 8px;
  }

  .process-layer-second {
    top: 55px;
  }

  .process-layer-third {
    top: 102px;
  }

  .process-layer-final {
    top: 149px;
  }

  .layer-transfer {
    width: 5px;
    height: 27px;
  }

  .transfer-a {
    top: 43px;
  }

  .transfer-b {
    top: 90px;
  }

  .transfer-c {
    top: 137px;
  }

  .machine-halo {
    width: min(94%, 176px);
    height: min(78%, 188px);
  }

  .entry-stream {
    left: -10px;
    top: 74px;
    width: 44px;
  }

  .exit-stream {
    right: -8px;
    bottom: 60px;
    width: 44px;
  }

  .product-web {
    height: 56px;
  }

  .product-web::before {
    height: 14px;
  }

  .product-web::after {
    left: 9px;
    top: 5px;
    width: 4px;
    height: 4px;
    box-shadow: 9px 0 0 color-mix(in srgb, var(--accent) 76%, transparent), 18px 0 0 color-mix(in srgb, var(--text) 42%, transparent);
  }

  .product-web > span:first-child::before {
    left: 10px;
    top: 25px;
    height: 4px;
  }

  .product-web > span:first-child::after {
    left: 10px;
    top: 36px;
    height: 3px;
  }

  .product-web > span:nth-child(2)::before {
    right: 10px;
    top: 25px;
    height: 20px;
  }

  .product-web > span:nth-child(2)::after {
    left: 10px;
    bottom: 9px;
    height: 3px;
  }

  .product-web > span:nth-child(3)::before {
    right: 16px;
    bottom: 11px;
    height: 3px;
  }

  .product-phone {
    width: 40px;
    height: 94px;
    border-radius: 14px;
  }

  .product-phone::before {
    top: 7px;
    width: 13px;
  }

  .product-phone::after {
    left: 10px;
    right: 10px;
    bottom: 8px;
    height: 3px;
  }

  .product-phone > span:first-child::before {
    left: 9px;
    right: 9px;
    top: 20px;
    height: 26px;
  }

  .product-phone > span:first-child::after {
    left: 9px;
    right: 9px;
    top: 54px;
    height: 7px;
  }

  .product-phone > span:nth-child(2)::before {
    left: 9px;
    right: 9px;
    top: 68px;
    height: 14px;
  }

  .product-desktop {
    height: 54px;
  }

  .product-desktop::before {
    left: 7px;
    right: 7px;
    top: 7px;
    height: 29px;
  }

  .product-desktop::after {
    bottom: 6px;
    width: 28px;
    height: 6px;
  }

  .product-desktop > span:first-child::before {
    left: 14px;
    top: 16px;
    height: 3px;
  }

  .product-desktop > span:first-child::after {
    left: 14px;
    top: 25px;
    height: 3px;
  }

  .product-desktop > span:nth-child(2)::before {
    right: 14px;
    top: 16px;
    width: 18px;
    height: 15px;
  }

  .product-tool {
    height: 50px;
  }

  .product-tool::before {
    left: 9px;
    top: 10px;
    width: 17px;
    height: 14px;
  }

  .product-tool::after {
    left: 33px;
    top: 10px;
    width: 30px;
    height: 4px;
  }

  .product-tool > span:first-child::before {
    left: 33px;
    top: 19px;
    width: 20px;
    height: 4px;
  }

  .product-tool > span:first-child::after {
    left: 9px;
    bottom: 9px;
    width: 15px;
    height: 10px;
  }

  .product-tool > span:nth-child(2)::before {
    left: 31px;
    bottom: 9px;
    width: 15px;
    height: 10px;
  }

  .product-tool > span:nth-child(3)::before {
    left: 53px;
    bottom: 9px;
    width: 15px;
    height: 10px;
  }

  #projects {
    margin-bottom: 28px;
  }

  #projects .section-heading-row {
    padding: 14px 0 14px 14px;
  }

  #projects .project-grid {
    gap: 13px;
    margin-top: 20px;
  }

  #projects .project-card img,
  .project-card img {
    height: clamp(124px, 34vw, 152px);
  }

  #projects .project-card img {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  #projects .project-card div,
  .project-card div {
    padding: 15px 16px 17px;
  }

  #projects .project-card h3,
  .project-card h3 {
    margin: 8px 0 6px;
    line-height: 1.18;
  }

  #projects .project-card p,
  .project-card p {
    line-height: 1.55;
  }

  #work .section-heading-row {
    gap: 8px;
  }

  #work .section-heading-row p {
    line-height: 1.55;
  }

  #work .cards,
  .cards {
    gap: 12px;
    margin-top: 18px;
  }

  .card {
    min-height: 0;
    padding: 15px 16px;
  }

  .card span {
    margin-bottom: 5px;
  }

  .card h3 {
    margin: 7px 0 5px;
  }

  .card p {
    line-height: 1.55;
  }

  .about,
  .services,
  .contact {
    gap: 18px;
    padding: 20px;
  }

  .services {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  .services-grid {
    gap: 8px;
  }

  .services-grid span {
    min-height: 38px;
    padding: 9px 12px;
  }

  .contact {
    margin-top: 28px;
    margin-bottom: 44px;
  }

  .project-card,
  .card,
  .about,
  .services,
  .contact,
  .hero-copy,
  .hero-transformation-visual {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Clear AI transformation hero visual */
.hero-system-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(92px, 0.76fr) minmax(172px, 1fr) minmax(138px, 0.96fr);
  align-items: center;
  gap: clamp(14px, 2.1vw, 24px);
  width: 100%;
  min-height: clamp(300px, 30vw, 360px);
  overflow: visible;
  padding: clamp(8px, 1.6vw, 16px);
  border-radius: 0;
  background: transparent;
}

.hero-system-visual::before {
  content: none;
}

.hero-system-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(112deg, transparent 0 38%, color-mix(in srgb, var(--accent-cool) 13%, transparent) 50%, transparent 62%);
  opacity: 0;
  transform: translateX(-56%);
  animation: systemSceneSweep 7.6s ease-in-out infinite;
  pointer-events: none;
}

.hero-system-visual .visual-stage,
.hero-system-visual .flow-beam {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-system-visual .idea-inputs {
  min-height: clamp(220px, 23vw, 280px);
}

.hero-system-visual .idea-note,
.hero-system-visual .idea-fragment {
  position: absolute;
  display: block;
}

.hero-system-visual .idea-note {
  width: clamp(62px, 8.4vw, 92px);
  min-height: 58px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--border-strong));
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 26%, var(--surface-muted));
  box-shadow: 0 14px 24px color-mix(in srgb, var(--bg) 44%, transparent);
  animation: ideaNoteFloat 5.8s ease-in-out infinite;
}

.hero-system-visual .idea-note span,
.hero-system-visual .output-card span,
.hero-system-visual .engine-label {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--accent-cool);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero-system-visual .idea-note i,
.hero-system-visual .output-card i {
  position: relative;
  z-index: 1;
  display: block;
  height: 4px;
  margin-top: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 50%, transparent);
}

.hero-system-visual .idea-note i:last-child,
.hero-system-visual .output-card i:last-child {
  width: 58%;
  opacity: 0.55;
}

.hero-system-visual .idea-note-primary {
  left: 1%;
  top: 13%;
  transform: rotate(-9deg);
}

.hero-system-visual .idea-note-secondary {
  right: 9%;
  top: 36%;
  transform: rotate(8deg);
  animation-delay: 0.8s;
}

.hero-system-visual .idea-note-tertiary {
  left: 18%;
  bottom: 14%;
  transform: rotate(-4deg);
  animation-delay: 1.45s;
}

.hero-system-visual .idea-fragment {
  width: 28px;
  height: 11px;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--deep-accent) 44%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent-cool) 38%, transparent);
  animation: ideaFragmentDrift 4.8s ease-in-out infinite;
}

.hero-system-visual .fragment-a {
  right: 6%;
  top: 14%;
}

.hero-system-visual .fragment-b {
  left: 9%;
  top: 61%;
  animation-delay: 1s;
}

.hero-system-visual .fragment-c {
  right: 28%;
  bottom: 7%;
  width: 18px;
  animation-delay: 1.75s;
}

.hero-system-visual .flow-beam {
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 36%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 28%, transparent);
}

.hero-system-visual .flow-beam::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  border-radius: inherit;
  background: var(--accent-cool);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-cool) 80%, transparent);
  animation: systemBeamTravel 2.8s ease-in-out infinite;
}

.hero-system-visual .flow-beam-in {
  transform: rotate(-5deg);
}

.hero-system-visual .flow-beam-out {
  transform: rotate(4deg);
}

.hero-system-visual .flow-beam-out::after {
  animation-delay: 0.8s;
}

.hero-system-visual .ai-engine {
  display: grid;
  place-items: center;
  min-height: clamp(238px, 25vw, 300px);
}

.hero-system-visual .engine-orbit {
  position: absolute;
  width: min(92%, 240px);
  height: min(84%, 240px);
  border: 1px solid color-mix(in srgb, var(--accent-cool) 26%, transparent);
  border-radius: 34px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent-cool) 16%, transparent);
  filter: blur(0.2px);
  animation: engineOrbitGlow 4.2s ease-in-out infinite;
}

.hero-system-visual .engine-core {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 210px);
  min-height: clamp(202px, 21vw, 226px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 58%, var(--border-strong));
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-rich) 74%, var(--bg)), color-mix(in srgb, var(--deep-accent) 78%, var(--surface-muted)));
  box-shadow: 0 20px 36px color-mix(in srgb, var(--bg) 52%, transparent);
  animation: engineCorePulse 4.8s ease-in-out infinite;
}

.hero-system-visual .engine-label {
  position: absolute;
  top: 17px;
  left: 18px;
  color: var(--text);
  font-size: 13px;
}

.hero-system-visual .engine-port {
  position: absolute;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-cool);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent-cool) 78%, transparent);
}

.hero-system-visual .port-a {
  top: 19px;
}

.hero-system-visual .port-b {
  top: 35px;
  opacity: 0.58;
}

.hero-system-visual .engine-layers {
  display: grid;
  gap: 13px;
  width: min(78%, 150px);
}

.hero-system-visual .engine-layer {
  position: relative;
  display: block;
  height: 38px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 44%, var(--border-strong));
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg) 18%, var(--surface-muted));
  animation: engineLayerPulse 4.8s ease-in-out infinite;
}

.hero-system-visual .engine-layer::before,
.hero-system-visual .engine-layer::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.hero-system-visual .engine-layer::before {
  left: 14px;
  right: 36px;
  top: 12px;
  height: 4px;
  background: color-mix(in srgb, var(--text) 48%, transparent);
}

.hero-system-visual .engine-layer::after {
  left: -40%;
  top: 0;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-cool) 36%, transparent), transparent);
  animation: engineScan 4.8s ease-in-out infinite;
}

.hero-system-visual .layer-b {
  animation-delay: 0.65s;
}

.hero-system-visual .layer-b::after {
  animation-delay: 0.65s;
}

.hero-system-visual .layer-c {
  animation-delay: 1.3s;
}

.hero-system-visual .layer-c::after {
  animation-delay: 1.3s;
}

.hero-system-visual .output-products {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  grid-template-rows: auto auto auto auto;
  align-items: end;
  gap: 9px;
  min-height: clamp(220px, 23vw, 282px);
}

.hero-system-visual .output-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 46%, var(--border-strong));
  border-radius: 13px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--action) 20%, var(--surface-rich)), color-mix(in srgb, var(--surface-muted) 80%, var(--deep-accent)));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--bg) 46%, transparent);
  animation: outputCardGlow 5.2s ease-in-out infinite;
}

.hero-system-visual .output-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 16px;
  background: color-mix(in srgb, var(--bg) 24%, var(--surface-rich));
  border-bottom: 1px solid color-mix(in srgb, var(--accent-cool) 22%, transparent);
}

.hero-system-visual .output-card span {
  margin: 25px 12px 0;
  color: var(--text);
  font-size: 9px;
}

.hero-system-visual .output-card i {
  margin-inline: 12px;
}

.hero-system-visual .output-web {
  grid-column: 1 / -1;
  height: 64px;
}

.hero-system-visual .output-mobile {
  grid-column: 2;
  grid-row: 2 / 5;
  justify-self: end;
  width: min(100%, 62px);
  height: 120px;
  border-radius: 18px;
}

.hero-system-visual .output-dashboard,
.hero-system-visual .output-flow,
.hero-system-visual .output-commerce {
  grid-column: 1;
  height: 48px;
}

.hero-system-visual .output-dashboard::after,
.hero-system-visual .output-flow::after,
.hero-system-visual .output-commerce::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 11px;
  width: 24px;
  height: 18px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent-cool) 36%, var(--deep-accent));
}

.hero-system-visual .output-flow::after {
  width: 38px;
  height: 10px;
  border-radius: 999px;
  box-shadow: -24px 0 0 color-mix(in srgb, var(--accent) 44%, var(--deep-accent));
}

.hero-system-visual .output-commerce::after {
  width: 20px;
  height: 18px;
  border-radius: 5px 5px 8px 8px;
  box-shadow: inset 0 6px 0 color-mix(in srgb, var(--bg) 22%, transparent);
}

@keyframes systemSceneSweep {
  0%, 34% {
    opacity: 0;
    transform: translateX(-56%);
  }
  54% {
    opacity: 0.74;
  }
  84%, 100% {
    opacity: 0;
    transform: translateX(56%);
  }
}

@keyframes ideaNoteFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 8px -7px;
  }
}

@keyframes ideaFragmentDrift {
  0%, 100% {
    opacity: 0.56;
    translate: 0 0;
  }
  50% {
    opacity: 0.96;
    translate: 12px -5px;
  }
}

@keyframes systemBeamTravel {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }
  24%, 72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(260%);
  }
}

@keyframes systemBeamTravelVertical {
  0% {
    opacity: 0;
    transform: translateY(-120%);
  }
  24%, 72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(260%);
  }
}

@keyframes engineOrbitGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

@keyframes engineCorePulse {
  0%, 100% {
    box-shadow: 0 20px 36px color-mix(in srgb, var(--bg) 52%, transparent);
  }
  50% {
    box-shadow: 0 22px 42px color-mix(in srgb, var(--accent-cool) 30%, transparent);
  }
}

@keyframes engineLayerPulse {
  0%, 100% {
    filter: brightness(0.92);
  }
  46%, 60% {
    filter: brightness(1.16);
  }
}

@keyframes engineScan {
  0%, 38%, 100% {
    opacity: 0;
    transform: translateX(0);
  }
  48%, 66% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translateX(420%);
  }
}

@keyframes outputCardGlow {
  0%, 100% {
    box-shadow: 0 14px 28px color-mix(in srgb, var(--bg) 46%, transparent);
  }
  50% {
    box-shadow: 0 16px 32px color-mix(in srgb, var(--accent-cool) 28%, transparent);
  }
}

@media (max-width: 900px) {
  .hero-system-visual {
    grid-template-columns: minmax(86px, 0.78fr) minmax(150px, 1fr) minmax(116px, 0.92fr);
    gap: 10px;
    min-height: clamp(276px, 46vw, 330px);
    padding: clamp(6px, 1.6vw, 12px);
  }

  .hero-system-visual .engine-core {
    min-height: clamp(190px, 30vw, 216px);
  }

  .hero-system-visual .output-card span {
    font-size: 8px;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 680px) {
  .hero-system-visual {
    grid-template-columns: minmax(58px, 0.78fr) minmax(96px, 1fr) minmax(74px, 0.9fr);
    gap: 6px;
    min-height: clamp(220px, 62vw, 284px);
    padding: 4px;
  }

  .hero-system-visual .idea-inputs {
    min-height: clamp(148px, 42vw, 210px);
  }

  .hero-system-visual .idea-note {
    width: clamp(48px, 18vw, 74px);
    min-height: 38px;
    padding: 6px;
  }

  .hero-system-visual .idea-note-primary {
    left: 4%;
    top: 8%;
  }

  .hero-system-visual .idea-note-secondary {
    right: 8%;
    top: 28%;
  }

  .hero-system-visual .idea-note-tertiary {
    left: 34%;
    bottom: 6%;
  }

  .hero-system-visual .flow-beam {
    justify-self: stretch;
    width: auto;
    height: 2px;
  }

  .hero-system-visual .flow-beam::after {
    inset: 0 auto 0 0;
    width: 44%;
    height: 100%;
    animation-name: systemBeamTravel;
  }

  .hero-system-visual .flow-beam-in {
    transform: rotate(-5deg);
  }

  .hero-system-visual .flow-beam-out {
    transform: rotate(4deg);
  }

  .hero-system-visual .ai-engine {
    min-height: clamp(158px, 45vw, 214px);
  }

  .hero-system-visual .engine-orbit {
    width: min(94%, 190px);
    height: min(82%, 178px);
  }

  .hero-system-visual .engine-core {
    width: min(100%, 172px);
    min-height: clamp(140px, 40vw, 178px);
    border-radius: 18px;
  }

  .hero-system-visual .engine-layers {
    gap: 7px;
  }

  .hero-system-visual .engine-layer {
    height: clamp(24px, 7vw, 30px);
  }

  .hero-system-visual .output-products {
    grid-template-columns: minmax(0, 1fr) minmax(34px, 0.58fr);
    grid-template-rows: auto auto auto auto;
    min-height: clamp(150px, 44vw, 206px);
    gap: 6px;
  }

  .hero-system-visual .output-card span {
    margin: 19px 7px 0;
    font-size: 7px;
    letter-spacing: 0.03em;
  }

  .hero-system-visual .output-card i {
    height: 3px;
    margin-inline: 7px;
    margin-top: 6px;
  }

  .hero-system-visual .output-card::before {
    height: 12px;
  }

  .hero-system-visual .output-web,
  .hero-system-visual .output-mobile,
  .hero-system-visual .output-dashboard,
  .hero-system-visual .output-flow,
  .hero-system-visual .output-commerce {
    border-radius: 12px;
  }

  .hero-system-visual .output-web {
    grid-column: 1 / -1;
    height: 42px;
  }

  .hero-system-visual .output-mobile {
    grid-column: 2;
    grid-row: 2 / 5;
    justify-self: end;
    width: min(100%, 48px);
    height: 98px;
    border-radius: 14px;
  }

  .hero-system-visual .output-dashboard,
  .hero-system-visual .output-flow,
  .hero-system-visual .output-commerce {
    grid-column: 1;
    height: 34px;
  }

  .hero-system-visual .output-commerce {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-system-visual::after,
  .hero-system-visual .idea-note,
  .hero-system-visual .idea-fragment,
  .hero-system-visual .flow-beam::after,
  .hero-system-visual .engine-orbit,
  .hero-system-visual .engine-core,
  .hero-system-visual .engine-layer,
  .hero-system-visual .engine-layer::after,
  .hero-system-visual .output-card {
    animation: none;
  }
}

/* Product-system hero visual refinement */
.product-system-flow {
  grid-template-columns: minmax(116px, 0.82fr) minmax(188px, 1.08fr) minmax(140px, 0.9fr);
  gap: clamp(12px, 1.8vw, 20px);
  min-height: 430px;
  padding: clamp(22px, 2.6vw, 30px);
}

.product-system-flow .visual-stage {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.visual-stage-title {
  margin: 0 0 14px;
  color: var(--accent-cool);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-system-flow .transformation-paths {
  z-index: 2;
}

.product-system-flow .flow-line {
  marker-end: url("#flowArrow");
  opacity: 0.7;
  stroke-width: 2.6;
  stroke-dasharray: none;
  animation: none;
}

.product-system-flow .chaos-input,
.product-system-flow .layer-machine,
.product-system-flow .output-stage {
  min-height: 322px;
}

.idea-notes {
  position: relative;
  min-height: 276px;
}

.product-system-flow .idea-note,
.product-system-flow .output-card {
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border-strong));
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 28%, var(--surface-muted));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--bg) 46%, transparent);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.product-system-flow .idea-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  width: 112px;
  padding: 9px 10px;
}

.product-system-flow .idea-note::before,
.product-system-flow .output-card::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--accent-cool);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-cool) 70%, transparent);
}

.note-raw {
  left: 0;
  top: 7px;
  transform: rotate(-7deg);
}

.note-market {
  right: 0;
  top: 62px;
  transform: rotate(5deg);
}

.note-content {
  left: 8px;
  top: 122px;
  transform: rotate(-3deg);
}

.note-tool {
  right: 6px;
  top: 178px;
  transform: rotate(4deg);
}

.note-workflow {
  left: 14px;
  bottom: 0;
  transform: rotate(-5deg);
}

.product-system-flow .layer-machine {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  isolation: isolate;
}

.product-system-flow .machine-halo {
  inset: 52px 8px auto;
  width: auto;
  height: 236px;
  border-radius: 28px;
  opacity: 0.5;
  animation: none;
}

.product-system-flow .processing-stack {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 238px;
  height: auto;
  margin: 0 auto;
  transform: none;
}

.product-system-flow .process-layer {
  position: relative;
  left: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  padding: 0 11px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--accent-cool) 46%, var(--border-strong));
  border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-rich) 78%, var(--surface-muted)), color-mix(in srgb, var(--bg) 14%, var(--surface-muted)));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--bg) 46%, transparent);
  opacity: 1;
  transform: none;
  animation: none;
}

.product-system-flow .process-layer::before,
.product-system-flow .process-layer span::before {
  content: none;
}

.product-system-flow .process-layer::after {
  content: "";
  position: static;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-cool);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent-cool) 76%, transparent);
  animation: none;
}

.product-system-flow .process-layer strong {
  color: var(--accent-cool);
  font-size: 11px;
  font-weight: 900;
}

.product-system-flow .process-layer span {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.product-system-flow .entry-stream,
.product-system-flow .exit-stream {
  width: 42px;
  opacity: 0.78;
}

.product-system-flow .entry-stream {
  left: -2px;
  top: 183px;
  transform: rotate(0deg);
}

.product-system-flow .exit-stream {
  right: -2px;
  bottom: 139px;
  transform: rotate(0deg);
}

.product-system-flow .product-outputs {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 9px;
  min-height: 276px;
}

.product-system-flow .output-card {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 10px;
  border-color: color-mix(in srgb, var(--accent-cool) 48%, var(--border-strong));
  background: linear-gradient(135deg, color-mix(in srgb, var(--action) 24%, var(--surface-rich)), color-mix(in srgb, var(--surface-muted) 82%, var(--deep-accent)));
}

.contact-note {
  max-width: 38ch;
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .product-system-flow {
    grid-template-columns: minmax(100px, 0.78fr) minmax(158px, 1fr) minmax(112px, 0.86fr);
    gap: 10px;
  }

  .product-system-flow .idea-note,
  .product-system-flow .output-card {
    font-size: 10.5px;
  }

  .product-system-flow .idea-note {
    width: 96px;
    padding-inline: 8px;
  }

  .product-system-flow .process-layer {
    height: 39px;
    padding-inline: 9px;
  }

  .product-system-flow .process-layer span {
    font-size: 11px;
  }
}

@media (max-width: 680px) {
  .product-system-flow {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 16px;
  }

  .product-system-flow .transformation-paths,
  .product-system-flow .entry-stream,
  .product-system-flow .exit-stream {
    display: none;
  }

  .product-system-flow .mobile-flow {
    display: block;
    justify-self: center;
  }

  .product-system-flow .chaos-input,
  .product-system-flow .layer-machine,
  .product-system-flow .output-stage {
    min-height: auto;
  }

  .visual-stage-title {
    margin-bottom: 10px;
  }

  .idea-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
  }

  .product-system-flow .idea-note {
    position: static;
    width: auto;
    min-height: 34px;
    transform: none;
  }

  .note-workflow {
    grid-column: 1 / -1;
  }

  .product-system-flow .machine-halo {
    display: none;
  }

  .product-system-flow .processing-stack {
    max-width: none;
    gap: 7px;
  }

  .product-system-flow .process-layer {
    height: 38px;
  }

  .product-system-flow .product-outputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
  }

.product-system-flow .output-card:last-child {
    grid-column: 1 / -1;
  }
}

/* Second-layer portfolio polish */
#projects .project-visual {
  position: relative;
  display: grid;
  min-height: clamp(150px, 17vw, 190px);
  width: calc(100% - 24px);
  margin: 12px auto 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border-strong) 64%, transparent);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--accent-cool) 7%, transparent) 1px, transparent 1px),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-rich) 72%, var(--bg)), color-mix(in srgb, var(--surface-muted) 76%, var(--bg)));
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--bg) 50%, transparent);
}

#projects .project-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 7px;
  pointer-events: none;
}

#projects .project-card:hover .project-visual {
  border-color: color-mix(in srgb, var(--accent-cool) 70%, var(--border-strong));
}

.project-visual-commerce {
  place-items: center;
  padding: 22px;
}

.visual-dashboard {
  display: grid;
  gap: 12px;
  width: min(100%, 310px);
}

.visual-topbar,
.visual-metrics span,
.visual-decision-row span,
.pipeline-track span,
.pipeline-proof span,
.build-layers span,
.validation-panel span,
.validation-panel strong {
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border-strong));
  background: color-mix(in srgb, var(--bg) 22%, var(--surface-muted));
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.visual-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  border-radius: 10px;
  padding: 9px 12px;
}

.visual-topbar strong {
  color: var(--accent-cool);
}

.visual-metrics,
.visual-decision-row {
  display: grid;
  gap: 8px;
}

.visual-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visual-metrics span,
.visual-decision-row span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 9px;
}

.visual-decision-row {
  grid-template-columns: 1fr 1fr;
}

.visual-decision-row span {
  border-color: color-mix(in srgb, var(--accent-cool) 48%, var(--border-strong));
  background: color-mix(in srgb, var(--action) 22%, var(--surface-rich));
}

.project-visual-content,
.project-visual-builder {
  align-content: center;
  gap: 16px;
  padding: 22px;
}

.pipeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  position: relative;
}

.pipeline-track::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: color-mix(in srgb, var(--accent-cool) 68%, transparent);
  transform: translateY(-50%);
}

.pipeline-track span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 10px;
  text-align: center;
}

.pipeline-track span:nth-child(2),
.pipeline-track span:nth-child(3) {
  border-color: color-mix(in srgb, var(--accent-cool) 50%, var(--border-strong));
}

.pipeline-proof {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pipeline-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 11px;
}

.pipeline-proof span:last-child {
  border-color: color-mix(in srgb, var(--accent-cool) 54%, var(--border-strong));
  color: var(--accent-cool);
}

.build-layers {
  display: grid;
  gap: 8px;
  width: min(100%, 260px);
}

.build-layers span {
  min-height: 34px;
  border-radius: 9px;
  padding: 9px 12px;
}

.build-layers span:nth-child(2) {
  margin-left: 18px;
}

.build-layers span:nth-child(3) {
  margin-left: 36px;
  border-color: color-mix(in srgb, var(--accent-cool) 48%, var(--border-strong));
}

.build-layers span:nth-child(4) {
  margin-left: 54px;
  border-color: color-mix(in srgb, var(--accent-cool) 58%, var(--border-strong));
  color: var(--accent-cool);
}

.validation-panel {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 7px;
  width: min(38%, 136px);
}

.validation-panel span,
.validation-panel strong {
  border-radius: 8px;
  padding: 7px 9px;
}

.validation-panel strong {
  border-color: color-mix(in srgb, var(--accent-cool) 62%, var(--border-strong));
  background: color-mix(in srgb, var(--action) 26%, var(--surface-rich));
  color: var(--accent-cool);
}

.services-note {
  max-width: 45ch;
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.contact-cta {
  min-height: 46px;
  border-color: color-mix(in srgb, var(--accent-cool) 50%, var(--border-strong));
  background: var(--action);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--bg) 50%, transparent);
}

.contact-cta:hover,
.contact-cta:focus-visible {
  border-color: var(--accent-cool);
  background: var(--accent-cool);
  color: var(--bg);
}

@media (max-width: 900px) {
  #projects .project-visual {
    min-height: clamp(145px, 24vw, 180px);
  }

  .visual-topbar,
  .visual-metrics span,
  .visual-decision-row span,
  .pipeline-track span,
  .pipeline-proof span,
  .build-layers span,
  .validation-panel span,
  .validation-panel strong {
    font-size: 10.5px;
  }
}

@media (max-width: 680px) {
  #projects .project-visual {
    min-height: clamp(124px, 34vw, 152px);
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .project-visual-commerce,
  .project-visual-content,
  .project-visual-builder {
    padding: 16px;
  }

  .visual-dashboard,
  .project-visual-content,
  .project-visual-builder {
    gap: 9px;
  }

  .visual-topbar,
  .visual-metrics span,
  .visual-decision-row span {
    min-height: 32px;
  }

  .pipeline-track {
    gap: 6px;
  }

  .pipeline-track span {
    min-height: 42px;
  }

  .pipeline-proof span,
  .build-layers span,
  .validation-panel span,
  .validation-panel strong {
    padding: 6px 8px;
  }

  .build-layers {
    width: 74%;
  }

  .build-layers span:nth-child(2) {
    margin-left: 10px;
  }

  .build-layers span:nth-child(3) {
    margin-left: 20px;
  }

  .build-layers span:nth-child(4) {
    margin-left: 30px;
  }

  .validation-panel {
    right: 16px;
    bottom: 16px;
    width: min(42%, 116px);
  }

  .contact-cta {
    width: 100%;
  }
}

/* Desktop visual consistency polish */
#projects .project-card {
  height: 100%;
}

#projects .project-card > div:not(.project-visual) {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
}

#projects .project-card > div:not(.project-visual) p {
  margin-top: auto;
}

#projects .project-card .project-visual {
  padding: 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#projects .project-card .project-visual-commerce {
  padding: 22px;
}

#projects .project-card .project-visual .visual-dashboard,
#projects .project-card .project-visual .visual-metrics,
#projects .project-card .project-visual .visual-decision-row,
#projects .project-card .project-visual .pipeline-track,
#projects .project-card .project-visual .pipeline-proof,
#projects .project-card .project-visual .build-layers,
#projects .project-card .project-visual .validation-panel {
  padding: 0;
}

#projects .project-card .project-visual .visual-topbar {
  padding: 9px 12px;
}

.hero-subtitle {
  max-width: 58ch;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.45;
}

.hero-lead {
  font-size: clamp(15.5px, 1.18vw, 17px);
}

.section-heading-row h2 {
  max-width: 17ch;
}

.section-heading-row p,
.about p,
.services-note,
.contact-note,
.card p,
.project-card p {
  font-size: clamp(15px, 1.08vw, 16px);
}

.cards,
.project-grid {
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 178px;
}

.card h3 {
  margin-top: 10px;
  margin-bottom: 9px;
}

.card p {
  margin-top: auto;
}

.services {
  align-items: start;
}

.services-grid {
  align-content: start;
}

.services-grid span {
  min-height: 44px;
  padding: 11px 14px;
}

.contact-links {
  align-items: center;
}

.contact-cta {
  padding-inline: 18px;
}

@media (min-width: 901px) {
  .hero {
    grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
    padding-block: 60px 48px;
  }

  .hero-copy,
  .hero-transformation-visual {
    min-height: clamp(320px, 31vw, 370px);
  }

  .product-system-flow {
    min-height: 430px;
    padding: 26px;
  }

  .section-wrap:not(.hero) {
    padding-top: clamp(56px, 5.2vw, 70px);
  }

  #projects {
    margin-bottom: clamp(38px, 5vw, 58px);
  }

  #projects .project-grid {
    margin-top: 30px;
  }

  #work .cards {
    margin-top: 30px;
  }

  .about,
  .services,
  .contact {
    padding: clamp(26px, 3.4vw, 36px);
  }
}

@media (max-width: 680px) {
  #projects .project-card .project-visual,
  #projects .project-card .project-visual-commerce {
    padding: 16px;
  }
}

/* Unified hero panel */
.hero {
  position: relative;
  isolation: isolate;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(20px, 3vw, 34px);
  padding: clamp(24px, 3.2vw, 42px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 34%, var(--border-strong));
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-rich) 54%, var(--surface-deep) 100%);
  box-shadow: var(--shadow-strong);
}

.hero-copy,
.hero-image,
.hero-transformation-visual {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy {
  overflow: visible;
  padding: clamp(4px, 1.4vw, 18px) 0;
}

.hero-copy::before {
  content: none;
}

.hero-image {
  overflow: visible;
}

.hero-transformation-visual {
  min-width: 0;
}

@media (min-width: 901px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    gap: 18px;
    margin-top: 18px;
    padding: 18px;
  }

  .hero-copy {
    padding: 2px 0 0;
  }
}

/* Final accessibility and interaction polish */
.site-nav a:focus-visible,
.button:focus-visible,
.contact-cta:focus-visible,
.contact-icon:focus-visible {
  outline-color: var(--accent-cool);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-cool) 20%, transparent);
}

.button,
.contact-cta,
.contact-icon,
.site-nav a {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .contact-cta,
  .contact-icon,
  .site-nav a,
  .card,
  .project-card,
  #projects .project-visual {
    transition: none;
  }

  .card:hover,
  .project-card:hover {
    transform: none;
  }
}

/* Scoped RTL support for the Arabic homepage */
[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .site-nav {
  justify-content: flex-start;
}

[dir="rtl"] #projects .section-heading-row {
  border-left: 0;
  border-right: 3px solid var(--accent-cool);
  background: linear-gradient(270deg, color-mix(in srgb, var(--surface-rich) 34%, transparent), transparent 88%);
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px) 0;
}

@media (max-width: 680px) {
  [dir="rtl"] #projects .section-heading-row {
    padding: 14px 14px 14px 0;
  }
}

p.card-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  width: fit-content;
  margin: 0 0 10px;
  color: color-mix(in srgb, var(--accent-cool) 74%, var(--text-muted));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

#projects .project-card > div:not(.project-visual) p.card-status,
.card p.card-status {
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-status + h3 {
  margin-top: 0;
}

.card-status span {
  display: inline-block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-cool) 78%, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-cool) 12%, transparent);
}

/* Premium hybrid idea-to-product hero scene */
.premium-transformation-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(118px, 0.86fr) minmax(156px, 0.95fr) minmax(178px, 1.08fr);
  align-items: center;
  gap: clamp(10px, 1.5vw, 18px);
  width: 100%;
  min-height: clamp(318px, 29vw, 374px);
  overflow: visible;
  padding: clamp(8px, 1.3vw, 14px);
  border-radius: 0;
  background: transparent;
}

.premium-transformation-scene::before {
  content: none;
}

.premium-transformation-scene::after {
  content: "";
  position: absolute;
  inset: 4% -2% 1%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 47% 50%, color-mix(in srgb, var(--accent-cool) 18%, transparent), transparent 31%),
    radial-gradient(ellipse at 12% 48%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28%),
    radial-gradient(ellipse at 88% 50%, color-mix(in srgb, var(--highlight) 10%, transparent), transparent 30%);
  opacity: 0.74;
  filter: blur(4px);
  animation: premiumSceneBreath 7s ease-in-out infinite;
  pointer-events: none;
}

.premium-transformation-scene .visual-stage,
.premium-transformation-scene .transformation-flow,
.premium-transformation-scene .scene-glow {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.premium-transformation-scene .scene-glow {
  position: absolute;
  z-index: 0;
  width: 32%;
  aspect-ratio: 1.5;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-cool) 18%, transparent);
  filter: blur(20px);
  opacity: 0.62;
  pointer-events: none;
}

.premium-transformation-scene .scene-glow-left {
  left: -8%;
  top: 18%;
}

.premium-transformation-scene .scene-glow-core {
  left: 32%;
  top: 22%;
  width: 38%;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.premium-transformation-scene .scene-glow-right {
  right: -7%;
  top: 28%;
  background: color-mix(in srgb, var(--highlight) 16%, transparent);
}

.premium-transformation-scene .transformation-flow {
  position: absolute;
  inset: 6% 1% 2%;
  z-index: 1;
  width: 98%;
  height: 92%;
  overflow: visible;
  pointer-events: none;
}

.premium-transformation-scene .flow-path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.6;
  stroke-dasharray: 14 18;
  opacity: 0.78;
  animation: premiumFlowTravel 4.8s linear infinite;
}

.premium-transformation-scene .flow-in {
  stroke: color-mix(in srgb, var(--accent) 72%, transparent);
}

.premium-transformation-scene .flow-out {
  stroke: color-mix(in srgb, var(--accent-cool) 78%, transparent);
  animation-duration: 4.2s;
}

.premium-transformation-scene .flow-in-b,
.premium-transformation-scene .flow-out-b {
  stroke-width: 3.2;
  opacity: 0.9;
}

.premium-transformation-scene .flow-in-c,
.premium-transformation-scene .flow-out-c {
  animation-delay: 0.45s;
}

.premium-transformation-scene .raw-ideas-stage,
.premium-transformation-scene .ai-engine-stage,
.premium-transformation-scene .output-products-stage {
  position: relative;
  z-index: 2;
}

.premium-transformation-scene .raw-ideas-stage {
  min-height: clamp(250px, 24vw, 310px);
}

.premium-transformation-scene .chaos-ring,
.premium-transformation-scene .rough-note,
.premium-transformation-scene .concept-card,
.premium-transformation-scene .raw-chip,
.premium-transformation-scene .raw-dot {
  position: absolute;
  display: block;
}

.premium-transformation-scene .chaos-ring {
  width: 54px;
  height: 54px;
  border: 1px dashed color-mix(in srgb, var(--accent-cool) 34%, transparent);
  border-radius: 999px;
  opacity: 0.55;
  animation: rawOrbitDrift 8s ease-in-out infinite;
}

.premium-transformation-scene .chaos-ring-a {
  left: 2%;
  top: 18%;
}

.premium-transformation-scene .chaos-ring-b {
  right: 8%;
  bottom: 14%;
  width: 38px;
  height: 38px;
  animation-delay: 1.2s;
}

.premium-transformation-scene .rough-note {
  width: clamp(62px, 7.6vw, 88px);
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border-strong));
  border-radius: 11px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--text) 8%, transparent), color-mix(in srgb, var(--surface-muted) 70%, transparent));
  box-shadow: 0 14px 26px color-mix(in srgb, var(--bg) 42%, transparent);
  animation: premiumRawFloat 5.8s ease-in-out infinite;
}

.premium-transformation-scene .rough-note strong,
.premium-transformation-scene .output-card strong,
.premium-transformation-scene .chip-label {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--accent-cool);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.premium-transformation-scene .rough-note i,
.premium-transformation-scene .output-card i {
  position: relative;
  z-index: 1;
  display: block;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 48%, transparent);
}

.premium-transformation-scene .rough-note i:last-of-type,
.premium-transformation-scene .output-card i:last-of-type {
  width: 58%;
  opacity: 0.55;
}

.premium-transformation-scene .rough-note em {
  position: absolute;
  right: 11px;
  bottom: 9px;
  width: 17px;
  height: 17px;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 54%, transparent);
  border-radius: 50%;
  box-shadow: 12px 5px 0 -7px color-mix(in srgb, var(--accent) 74%, transparent);
}

.premium-transformation-scene .rough-note-primary {
  left: 4%;
  top: 10%;
  transform: rotate(-10deg);
}

.premium-transformation-scene .rough-note-secondary {
  right: 2%;
  top: 29%;
  transform: rotate(8deg);
  animation-delay: 0.85s;
}

.premium-transformation-scene .rough-note-tertiary {
  left: 16%;
  bottom: 7%;
  transform: rotate(-5deg);
  animation-delay: 1.55s;
}

.premium-transformation-scene .concept-card {
  border: 1px solid color-mix(in srgb, var(--accent-cool) 34%, var(--border-strong));
  border-radius: 12px;
  background: color-mix(in srgb, var(--deep-accent) 52%, transparent);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--bg) 44%, transparent);
  animation: premiumRawFloat 6.4s ease-in-out infinite;
}

.premium-transformation-scene .concept-card-main {
  left: 22%;
  top: 36%;
  width: clamp(76px, 9vw, 106px);
  height: 86px;
  transform: rotate(4deg);
}

.premium-transformation-scene .concept-card-small {
  right: 18%;
  top: 2%;
  width: 58px;
  height: 42px;
  transform: rotate(-8deg);
  animation-delay: 1.1s;
}

.premium-transformation-scene .concept-card i,
.premium-transformation-scene .concept-card b {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 48%, transparent);
}

.premium-transformation-scene .concept-card i:first-child {
  left: 13px;
  top: 14px;
  width: 54%;
  height: 4px;
}

.premium-transformation-scene .concept-card i:nth-child(2) {
  left: 13px;
  top: 27px;
  width: 38%;
  height: 4px;
  opacity: 0.68;
}

.premium-transformation-scene .concept-card b {
  border: 1px solid color-mix(in srgb, var(--accent-cool) 48%, transparent);
  background: transparent;
  border-radius: 4px;
}

.premium-transformation-scene .concept-card b:first-of-type {
  left: 14px;
  bottom: 14px;
  width: 22px;
  height: 18px;
}

.premium-transformation-scene .concept-card b:last-of-type {
  right: 16px;
  bottom: 19px;
  width: 25px;
  height: 14px;
}

.premium-transformation-scene .raw-chip {
  width: 26px;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 52%, var(--deep-accent));
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 36%, transparent);
  animation: rawChipDrift 4.8s ease-in-out infinite;
}

.premium-transformation-scene .chip-a {
  left: 0;
  bottom: 31%;
}

.premium-transformation-scene .chip-b {
  right: 22%;
  bottom: 30%;
  background: color-mix(in srgb, var(--accent-cool) 58%, var(--deep-accent));
  animation-delay: 0.6s;
}

.premium-transformation-scene .chip-c {
  right: 1%;
  top: 58%;
  width: 17px;
  animation-delay: 1.25s;
}

.premium-transformation-scene .raw-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-cool);
  box-shadow: 0 0 13px color-mix(in srgb, var(--accent-cool) 76%, transparent);
  opacity: 0.72;
  animation: rawDotTwinkle 3.2s ease-in-out infinite;
}

.premium-transformation-scene .dot-a {
  left: 12%;
  top: 47%;
}

.premium-transformation-scene .dot-b {
  right: 10%;
  top: 45%;
  animation-delay: 0.7s;
}

.premium-transformation-scene .dot-c {
  left: 42%;
  bottom: 2%;
  animation-delay: 1.4s;
}

.premium-transformation-scene .ai-engine-stage {
  display: grid;
  place-items: center;
  min-height: clamp(268px, 25vw, 324px);
}

.premium-transformation-scene .engine-halo,
.premium-transformation-scene .engine-shadow,
.premium-transformation-scene .engine-particle {
  position: absolute;
  display: block;
  pointer-events: none;
}

.premium-transformation-scene .engine-halo {
  width: min(112%, 250px);
  height: min(82%, 250px);
  border-radius: 40px;
  background:
    radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--accent-cool) 30%, transparent), transparent 42%),
    radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 46%);
  border: 1px solid color-mix(in srgb, var(--accent-cool) 18%, transparent);
  filter: blur(0.2px);
  opacity: 0.78;
  animation: engineHaloPulse 5.8s ease-in-out infinite;
}

.premium-transformation-scene .engine-shadow {
  bottom: 4%;
  width: 76%;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  filter: blur(15px);
}

.premium-transformation-scene .server-core {
  position: relative;
  width: min(100%, 205px);
  height: clamp(238px, 23vw, 288px);
  z-index: 2;
}

.premium-transformation-scene .server-slab {
  position: absolute;
  left: 50%;
  display: block;
  width: 86%;
  height: 39px;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 38%, var(--border-strong));
  border-radius: 16px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent), transparent 24% 74%, color-mix(in srgb, var(--accent-cool) 10%, transparent)),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-rich) 72%, var(--bg)), color-mix(in srgb, var(--deep-accent) 80%, var(--surface-muted)));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 18%, transparent),
    0 14px 24px color-mix(in srgb, var(--bg) 46%, transparent),
    0 0 18px color-mix(in srgb, var(--accent-cool) 10%, transparent);
  translate: -50% 0;
  animation: serverLayerActivate 5.8s ease-in-out infinite;
}

.premium-transformation-scene .server-slab::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 52px;
  top: 14px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 44%, transparent);
}

.premium-transformation-scene .server-slab i {
  position: absolute;
  top: 13px;
  right: 18px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-cool);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-cool) 80%, transparent);
}

.premium-transformation-scene .server-slab i:nth-child(2) {
  right: 31px;
  opacity: 0.48;
}

.premium-transformation-scene .server-slab b {
  position: absolute;
  left: -32px;
  right: -32px;
  top: 50%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-cool) 54%, transparent), transparent);
  opacity: 0.5;
}

.premium-transformation-scene .slab-top {
  top: 12px;
  width: 74%;
}

.premium-transformation-scene .slab-a {
  top: 58px;
  animation-delay: 0.28s;
}

.premium-transformation-scene .slab-b {
  top: 104px;
  width: 94%;
  animation-delay: 0.56s;
}

.premium-transformation-scene .slab-c {
  top: 150px;
  animation-delay: 0.84s;
}

.premium-transformation-scene .slab-bottom {
  top: 196px;
  width: 78%;
  animation-delay: 1.12s;
}

.premium-transformation-scene .core-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 86px;
  height: 102px;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 58%, var(--border-strong));
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--accent-cool) 32%, transparent), transparent 46%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-rich) 74%, var(--bg)), color-mix(in srgb, var(--deep-accent) 82%, var(--surface-muted)));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 20%, transparent),
    0 18px 34px color-mix(in srgb, var(--bg) 56%, transparent),
    0 0 28px color-mix(in srgb, var(--accent-cool) 26%, transparent);
  translate: -50% -50%;
  animation: coreChipPulse 4.6s ease-in-out infinite;
}

.premium-transformation-scene .chip-label {
  position: absolute;
  left: 13px;
  top: 13px;
  color: var(--text);
  font-size: 12px;
}

.premium-transformation-scene .neural-mark {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
}

.premium-transformation-scene .node,
.premium-transformation-scene .link {
  position: absolute;
  display: block;
}

.premium-transformation-scene .node {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-cool);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent-cool) 78%, transparent);
}

.premium-transformation-scene .node-a {
  left: 4px;
  top: 18px;
}

.premium-transformation-scene .node-b {
  left: 20px;
  top: 5px;
}

.premium-transformation-scene .node-c {
  right: 4px;
  top: 20px;
}

.premium-transformation-scene .node-d {
  left: 20px;
  bottom: 4px;
}

.premium-transformation-scene .link {
  left: 9px;
  top: 22px;
  width: 32px;
  height: 1px;
  background: color-mix(in srgb, var(--accent-cool) 68%, transparent);
  transform-origin: center;
}

.premium-transformation-scene .link-a {
  rotate: -38deg;
}

.premium-transformation-scene .link-b {
  rotate: 32deg;
}

.premium-transformation-scene .link-c {
  top: 30px;
  rotate: -8deg;
}

.premium-transformation-scene .engine-particle {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent-cool);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-cool) 74%, transparent);
  animation: engineParticleRise 4.8s ease-in-out infinite;
}

.premium-transformation-scene .engine-particle-a {
  left: 12%;
  top: 38%;
}

.premium-transformation-scene .engine-particle-b {
  right: 10%;
  top: 48%;
  animation-delay: 0.8s;
}

.premium-transformation-scene .engine-particle-c {
  left: 28%;
  bottom: 20%;
  animation-delay: 1.5s;
}

.premium-transformation-scene .output-products-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(52px, 0.42fr);
  grid-template-rows: auto auto auto auto;
  align-items: end;
  gap: 9px;
  min-height: clamp(248px, 24vw, 310px);
}

.premium-transformation-scene .output-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 42%, var(--border-strong));
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 24%, color-mix(in srgb, var(--accent-cool) 18%, transparent), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-rich) 76%, var(--bg)), color-mix(in srgb, var(--deep-accent) 82%, var(--surface-muted)));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 16%, transparent),
    0 15px 30px color-mix(in srgb, var(--bg) 44%, transparent);
  animation: outputProductGlow 5.4s ease-in-out infinite;
}

.premium-transformation-scene .output-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 15px;
  background: color-mix(in srgb, var(--bg) 24%, var(--surface-rich));
  border-bottom: 1px solid color-mix(in srgb, var(--accent-cool) 20%, transparent);
}

.premium-transformation-scene .output-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 0 40%, color-mix(in srgb, var(--accent-cool) 14%, transparent) 49%, transparent 58%);
  opacity: 0;
  transform: translateX(-80%);
  animation: productShimmer 6s ease-in-out infinite;
}

.premium-transformation-scene .output-card strong {
  margin: 24px 11px 0;
  color: var(--text);
  font-size: 8px;
}

.premium-transformation-scene .output-card i {
  margin-inline: 11px;
  background: color-mix(in srgb, var(--text) 52%, transparent);
}

.premium-transformation-scene .output-card b {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  display: block;
  width: 26px;
  height: 18px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent-cool) 38%, var(--deep-accent));
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent-cool) 22%, transparent);
}

.premium-transformation-scene .output-web {
  grid-column: 1 / -1;
  height: 72px;
}

.premium-transformation-scene .output-web b {
  width: 42px;
  height: 25px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-cool) 48%, transparent), transparent 50%),
    color-mix(in srgb, var(--deep-accent) 76%, var(--surface-rich));
}

.premium-transformation-scene .output-mobile {
  grid-column: 2;
  grid-row: 2 / 5;
  justify-self: end;
  width: min(100%, 58px);
  height: 136px;
  border-radius: 19px;
  animation-delay: 0.35s;
}

.premium-transformation-scene .output-mobile b {
  left: 50%;
  right: auto;
  bottom: 12px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  translate: -50% 0;
}

.premium-transformation-scene .output-dashboard,
.premium-transformation-scene .output-flow,
.premium-transformation-scene .output-commerce {
  grid-column: 1;
  height: 55px;
}

.premium-transformation-scene .output-dashboard {
  animation-delay: 0.7s;
}

.premium-transformation-scene .output-dashboard b {
  height: 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 70% 50%, transparent 0 31%, color-mix(in srgb, var(--accent-cool) 76%, var(--deep-accent)) 32% 100%),
    color-mix(in srgb, var(--accent) 50%, var(--deep-accent));
}

.premium-transformation-scene .output-flow {
  animation-delay: 1.05s;
}

.premium-transformation-scene .output-flow b {
  width: 44px;
  height: 10px;
  border-radius: 999px;
  box-shadow:
    -25px 0 0 color-mix(in srgb, var(--accent) 42%, var(--deep-accent)),
    22px 0 0 color-mix(in srgb, var(--highlight) 42%, var(--deep-accent));
}

.premium-transformation-scene .output-commerce {
  animation-delay: 1.4s;
}

.premium-transformation-scene .output-commerce b {
  width: 22px;
  height: 20px;
  border-radius: 5px 5px 8px 8px;
  box-shadow: inset 0 6px 0 color-mix(in srgb, var(--bg) 22%, transparent);
}

@keyframes premiumSceneBreath {
  0%, 100% {
    opacity: 0.58;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.02);
  }
}

@keyframes premiumFlowTravel {
  0% {
    stroke-dashoffset: 62;
  }
  100% {
    stroke-dashoffset: -62;
  }
}

@keyframes premiumRawFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 7px -8px;
  }
}

@keyframes rawChipDrift {
  0%, 100% {
    opacity: 0.62;
    translate: 0 0;
  }
  50% {
    opacity: 1;
    translate: 12px -4px;
  }
}

@keyframes rawDotTwinkle {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.12);
  }
}

@keyframes rawOrbitDrift {
  0%, 100% {
    transform: rotate(0deg) scale(0.96);
  }
  50% {
    transform: rotate(14deg) scale(1.05);
  }
}

@keyframes engineHaloPulse {
  0%, 100% {
    opacity: 0.62;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@keyframes serverLayerActivate {
  0%, 100% {
    filter: brightness(0.9);
    translate: -50% 0;
  }
  45%, 58% {
    filter: brightness(1.18);
    translate: -50% -2px;
  }
}

@keyframes coreChipPulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 color-mix(in srgb, var(--text) 20%, transparent),
      0 18px 34px color-mix(in srgb, var(--bg) 56%, transparent),
      0 0 28px color-mix(in srgb, var(--accent-cool) 26%, transparent);
  }
  50% {
    box-shadow:
      inset 0 1px 0 color-mix(in srgb, var(--text) 24%, transparent),
      0 22px 42px color-mix(in srgb, var(--bg) 56%, transparent),
      0 0 44px color-mix(in srgb, var(--accent-cool) 42%, transparent);
  }
}

@keyframes engineParticleRise {
  0%, 100% {
    opacity: 0.28;
    translate: 0 8px;
  }
  50% {
    opacity: 0.86;
    translate: 0 -8px;
  }
}

@keyframes outputProductGlow {
  0%, 100% {
    filter: brightness(0.96);
    translate: 0 0;
  }
  50% {
    filter: brightness(1.1);
    translate: 0 -2px;
  }
}

@keyframes productShimmer {
  0%, 38%, 100% {
    opacity: 0;
    transform: translateX(-80%);
  }
  56% {
    opacity: 0.9;
  }
  76% {
    opacity: 0;
    transform: translateX(80%);
  }
}

@media (max-width: 900px) {
  .premium-transformation-scene {
    grid-template-columns: minmax(100px, 0.84fr) minmax(132px, 0.96fr) minmax(142px, 1.04fr);
    gap: 9px;
    min-height: clamp(292px, 45vw, 348px);
    padding: 6px;
  }

  .premium-transformation-scene .raw-ideas-stage,
  .premium-transformation-scene .output-products-stage {
    min-height: clamp(232px, 36vw, 288px);
  }

  .premium-transformation-scene .ai-engine-stage {
    min-height: clamp(248px, 38vw, 306px);
  }

  .premium-transformation-scene .server-core {
    width: min(100%, 184px);
    height: clamp(220px, 34vw, 266px);
  }

  .premium-transformation-scene .output-card strong {
    font-size: 7.4px;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 680px) {
  .premium-transformation-scene {
    grid-template-columns: minmax(54px, 0.74fr) minmax(92px, 1fr) minmax(86px, 1.08fr);
    gap: 5px;
    min-height: clamp(236px, 64vw, 304px);
    padding: 2px;
  }

  .premium-transformation-scene .transformation-flow {
    inset: 10% -2% 3%;
    width: 104%;
  }

  .premium-transformation-scene .flow-path {
    stroke-width: 2;
    stroke-dasharray: 9 16;
  }

  .premium-transformation-scene .raw-ideas-stage {
    min-height: clamp(178px, 50vw, 232px);
  }

  .premium-transformation-scene .rough-note {
    width: clamp(45px, 17vw, 66px);
    min-height: 37px;
    padding: 6px;
    border-radius: 9px;
  }

  .premium-transformation-scene .rough-note strong {
    font-size: 6.2px;
    letter-spacing: 0.04em;
  }

  .premium-transformation-scene .rough-note i {
    height: 3px;
    margin-top: 5px;
  }

  .premium-transformation-scene .rough-note-tertiary {
    left: 8%;
  }

  .premium-transformation-scene .concept-card-main {
    left: 18%;
    width: clamp(52px, 19vw, 74px);
    height: 58px;
  }

  .premium-transformation-scene .concept-card-small,
  .premium-transformation-scene .chaos-ring-b,
  .premium-transformation-scene .dot-c {
    display: none;
  }

  .premium-transformation-scene .raw-chip {
    width: 18px;
    height: 9px;
  }

  .premium-transformation-scene .ai-engine-stage {
    min-height: clamp(184px, 52vw, 244px);
  }

  .premium-transformation-scene .engine-halo {
    width: min(116%, 166px);
    height: min(86%, 188px);
    border-radius: 28px;
  }

  .premium-transformation-scene .server-core {
    width: min(100%, 132px);
    height: clamp(166px, 47vw, 218px);
  }

  .premium-transformation-scene .server-slab {
    height: 28px;
    border-radius: 12px;
  }

  .premium-transformation-scene .server-slab::before {
    left: 10px;
    right: 38px;
    top: 11px;
    height: 3px;
  }

  .premium-transformation-scene .server-slab i {
    right: 12px;
    top: 10px;
    width: 5px;
    height: 5px;
  }

  .premium-transformation-scene .server-slab i:nth-child(2) {
    right: 22px;
  }

  .premium-transformation-scene .slab-top {
    top: 10px;
  }

  .premium-transformation-scene .slab-a {
    top: 44px;
  }

  .premium-transformation-scene .slab-b {
    top: 78px;
  }

  .premium-transformation-scene .slab-c {
    top: 112px;
  }

  .premium-transformation-scene .slab-bottom {
    top: 146px;
  }

  .premium-transformation-scene .core-chip {
    width: 58px;
    height: 72px;
    border-radius: 15px;
  }

  .premium-transformation-scene .chip-label {
    left: 9px;
    top: 9px;
    font-size: 9px;
  }

  .premium-transformation-scene .neural-mark {
    width: 34px;
    height: 34px;
  }

  .premium-transformation-scene .node {
    width: 6px;
    height: 6px;
  }

  .premium-transformation-scene .node-b,
  .premium-transformation-scene .node-d {
    left: 14px;
  }

  .premium-transformation-scene .link {
    left: 6px;
    top: 16px;
    width: 23px;
  }

  .premium-transformation-scene .link-c {
    top: 21px;
  }

  .premium-transformation-scene .engine-particle-c {
    display: none;
  }

  .premium-transformation-scene .output-products-stage {
    grid-template-columns: minmax(0, 1fr) minmax(34px, 0.52fr);
    min-height: clamp(178px, 51vw, 238px);
    gap: 5px;
  }

  .premium-transformation-scene .output-card::before {
    height: 11px;
  }

  .premium-transformation-scene .output-card strong {
    margin: 17px 6px 0;
    font-size: 5.8px;
    letter-spacing: 0.02em;
  }

  .premium-transformation-scene .output-card i {
    height: 3px;
    margin-inline: 6px;
    margin-top: 5px;
  }

  .premium-transformation-scene .output-card b {
    right: 7px;
    bottom: 7px;
    width: 18px;
    height: 13px;
  }

  .premium-transformation-scene .output-web {
    height: 43px;
  }

  .premium-transformation-scene .output-mobile {
    width: min(100%, 42px);
    height: 96px;
    border-radius: 14px;
  }

  .premium-transformation-scene .output-dashboard,
  .premium-transformation-scene .output-flow,
  .premium-transformation-scene .output-commerce {
    height: 34px;
  }

  .premium-transformation-scene .output-flow b {
    width: 25px;
    box-shadow:
      -16px 0 0 color-mix(in srgb, var(--accent) 42%, var(--deep-accent)),
      14px 0 0 color-mix(in srgb, var(--highlight) 42%, var(--deep-accent));
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-transformation-scene,
  .premium-transformation-scene::after,
  .premium-transformation-scene .flow-path,
  .premium-transformation-scene .chaos-ring,
  .premium-transformation-scene .rough-note,
  .premium-transformation-scene .concept-card,
  .premium-transformation-scene .raw-chip,
  .premium-transformation-scene .raw-dot,
  .premium-transformation-scene .engine-halo,
  .premium-transformation-scene .server-slab,
  .premium-transformation-scene .core-chip,
  .premium-transformation-scene .engine-particle,
  .premium-transformation-scene .output-card,
  .premium-transformation-scene .output-card::after {
    animation: none;
  }
}

/* Temporary hero visual alignment refinement */
.premium-transformation-scene {
  grid-template-columns: minmax(118px, 0.88fr) minmax(160px, 1fr) minmax(168px, 1fr);
  padding-inline: clamp(6px, 1.2vw, 14px) clamp(22px, 2.8vw, 36px);
  transform: translateX(clamp(-16px, -1vw, -8px));
}

.premium-transformation-scene .transformation-flow {
  inset: 6% 5% 2% -2%;
  width: 97%;
}

.premium-transformation-scene .scene-glow-right {
  right: 1%;
}

.premium-transformation-scene .output-products-stage {
  justify-self: stretch;
  max-width: min(100%, 280px);
}

@media (min-width: 901px) and (max-width: 1120px) {
  .premium-transformation-scene {
    grid-template-columns: minmax(96px, 0.8fr) minmax(136px, 0.98fr) minmax(132px, 1fr);
    gap: 8px;
    padding-inline: 2px clamp(22px, 3vw, 32px);
    transform: translateX(-6px) scale(0.96);
    transform-origin: center;
  }

  .premium-transformation-scene .transformation-flow {
    inset: 8% 5% 2% -2%;
    width: 97%;
  }

  .premium-transformation-scene .output-products-stage {
    max-width: min(100%, 250px);
  }
}

@media (max-width: 900px) {
  .premium-transformation-scene {
    grid-template-columns: minmax(96px, 0.84fr) minmax(132px, 0.98fr) minmax(134px, 1fr);
    padding-inline: 4px clamp(16px, 3vw, 26px);
    transform: translateX(clamp(-10px, -1vw, -6px));
  }

  .premium-transformation-scene .transformation-flow {
    inset: 8% 4% 2% -2%;
    width: 98%;
  }
}

@media (max-width: 680px) {
  .premium-transformation-scene {
    grid-template-columns: minmax(54px, 0.72fr) minmax(90px, 1fr) minmax(78px, 0.96fr);
    padding-inline: 1px clamp(10px, 3vw, 16px);
    transform: translateX(-4px);
  }

  .premium-transformation-scene .transformation-flow {
    inset: 10% 2% 3% -3%;
    width: 101%;
  }

  .premium-transformation-scene .output-products-stage {
    max-width: 100%;
  }
}

/* Site integration pass */
body:has(main > .hero.section-wrap) {
  background:
    radial-gradient(ellipse at 8% 13%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 36rem),
    radial-gradient(ellipse at 92% 36%, color-mix(in srgb, var(--accent-cool) 9%, transparent), transparent 38rem),
    radial-gradient(ellipse at 48% 68%, color-mix(in srgb, var(--deep-accent) 18%, transparent), transparent 48rem),
    linear-gradient(90deg, color-mix(in srgb, var(--deep-accent) 9%, transparent), transparent 34%, color-mix(in srgb, var(--accent-cool) 4%, transparent) 74%, transparent),
    linear-gradient(
      180deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--surface) 24%, var(--bg)) 22%,
      color-mix(in srgb, var(--surface-deep) 28%, var(--bg)) 50%,
      color-mix(in srgb, var(--deep-accent) 13%, var(--bg)) 76%,
      var(--bg) 100%
    );
}

main:has(> .hero.section-wrap) {
  position: relative;
  isolation: isolate;
}

main:has(> .hero.section-wrap)::before {
  content: "";
  position: absolute;
  inset: clamp(140px, 16vw, 220px) 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--surface-rich) 6%, transparent) 18%, transparent 39%, color-mix(in srgb, var(--accent-cool) 4%, transparent) 70%, transparent 100%),
    radial-gradient(ellipse at 14% 45%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 30rem),
    radial-gradient(ellipse at 86% 70%, color-mix(in srgb, var(--accent-cool) 6%, transparent), transparent 32rem);
}

main > .hero.section-wrap ~ .section-wrap {
  padding-top: clamp(34px, 3.8vw, 50px);
}

main > .hero.section-wrap ~ #projects {
  margin-bottom: clamp(14px, 2.6vw, 28px);
}

main > .hero.section-wrap {
  border-color: color-mix(in srgb, var(--accent-cool) 22%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 68%, transparent) 0%, color-mix(in srgb, var(--surface-rich) 44%, transparent) 54%, color-mix(in srgb, var(--surface-deep) 54%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 38%, color-mix(in srgb, var(--accent-cool) 7%, transparent));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 7%, transparent),
    0 20px 48px color-mix(in srgb, var(--bg) 42%, transparent);
}

main > .hero.section-wrap ~ .about.section-wrap,
main > .hero.section-wrap ~ #services.services.section-wrap,
main > .hero.section-wrap ~ #contact.contact.section-wrap {
  position: relative;
  overflow: visible;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

main > .hero.section-wrap ~ .about.section-wrap::before,
main > .hero.section-wrap ~ #services.services.section-wrap::before,
main > .hero.section-wrap ~ #contact.contact.section-wrap::before {
  content: "";
  position: absolute;
  inset: -16px -22px;
  z-index: 0;
  pointer-events: none;
  border-radius: calc(var(--radius) + 12px);
  background:
    radial-gradient(ellipse at 8% 48%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 54%),
    radial-gradient(ellipse at 88% 58%, color-mix(in srgb, var(--accent-cool) 4%, transparent), transparent 56%),
    linear-gradient(90deg, color-mix(in srgb, var(--surface-rich) 4%, transparent), transparent 46%, color-mix(in srgb, var(--surface-deep) 3%, transparent));
}

main > .hero.section-wrap ~ .about.section-wrap > *,
main > .hero.section-wrap ~ #services.services.section-wrap > *,
main > .hero.section-wrap ~ #contact.contact.section-wrap > * {
  position: relative;
  z-index: 1;
}

main > .hero.section-wrap ~ .about.section-wrap {
  margin-top: clamp(12px, 2vw, 22px);
  background: transparent;
}

main > .hero.section-wrap ~ .about.section-wrap::before {
  background:
    radial-gradient(ellipse at 12% 46%, color-mix(in srgb, var(--accent) 4%, transparent), transparent 54%),
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface-rich) 4%, transparent), transparent 72%);
}

main > .hero.section-wrap ~ #services.services.section-wrap {
  margin-top: clamp(12px, 2vw, 22px);
  margin-bottom: clamp(12px, 2vw, 22px);
  background: transparent;
}

main > .hero.section-wrap ~ #services.services.section-wrap::before {
  background:
    radial-gradient(ellipse at 86% 50%, color-mix(in srgb, var(--accent-cool) 4%, transparent), transparent 54%),
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface-deep) 4%, transparent), transparent);
}

main > .hero.section-wrap ~ #contact.contact.section-wrap {
  margin-top: clamp(12px, 2vw, 22px);
  border-color: transparent;
  background: transparent;
}

main > .hero.section-wrap ~ #contact.contact.section-wrap::before {
  background:
    radial-gradient(ellipse at 82% 48%, color-mix(in srgb, var(--accent-cool) 5%, transparent), transparent 56%),
    linear-gradient(90deg, color-mix(in srgb, var(--deep-accent) 4%, transparent), transparent 62%);
}

main > .hero.section-wrap ~ #projects .section-heading-row {
  border-left-color: color-mix(in srgb, var(--accent-cool) 28%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--surface-rich) 10%, transparent), transparent 82%);
}

[dir="rtl"] main > .hero.section-wrap ~ #projects .section-heading-row {
  border-right-color: color-mix(in srgb, var(--accent-cool) 28%, transparent);
  background: linear-gradient(270deg, color-mix(in srgb, var(--surface-rich) 10%, transparent), transparent 82%);
}

/* Temporary Work section operations visual */
main > .hero.section-wrap ~ #work .section-heading-row {
  position: relative;
  isolation: isolate;
  max-width: none;
  min-height: clamp(220px, 25vw, 315px);
  align-content: center;
  padding-block: clamp(22px, 3vw, 34px);
  padding-inline-end: min(46%, 560px);
}

main > .hero.section-wrap ~ #work .section-heading-row::before {
  content: "";
  position: absolute;
  inset: -18px 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 98%, transparent) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 34%, color-mix(in srgb, var(--bg) 30%, transparent) 64%, color-mix(in srgb, var(--bg) 12%, transparent) 82%, color-mix(in srgb, var(--bg) 58%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, transparent), transparent 34%, transparent 66%, color-mix(in srgb, var(--bg) 90%, transparent)),
    url("assets/work-operations-bg.png") right center / cover no-repeat;
  filter: saturate(1.04) contrast(1.02);
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(ellipse 78% 84% at 74% 50%, #000 0%, #000 40%, rgba(0, 0, 0, 0.74) 64%, transparent 96%);
  mask-image: radial-gradient(ellipse 78% 84% at 74% 50%, #000 0%, #000 40%, rgba(0, 0, 0, 0.74) 64%, transparent 96%);
}

[dir="rtl"] main > .hero.section-wrap ~ #work .section-heading-row {
  padding-inline-start: min(46%, 560px);
  padding-inline-end: 0;
}

[dir="rtl"] main > .hero.section-wrap ~ #work .section-heading-row::before {
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  main > .hero.section-wrap ~ #work .section-heading-row,
  [dir="rtl"] main > .hero.section-wrap ~ #work .section-heading-row {
    min-height: clamp(190px, 34vw, 260px);
    padding-inline: 0;
    padding-block: clamp(18px, 4vw, 28px);
  }

  main > .hero.section-wrap ~ #work .section-heading-row::before {
    inset: -12px 0;
    opacity: 0.48;
  }
}

@media (max-width: 680px) {
  main > .hero.section-wrap ~ #work .section-heading-row {
    min-height: auto;
  }

  main > .hero.section-wrap ~ #work .section-heading-row::before {
    opacity: 0.32;
  }
}

/* Landing page commercial polish */
body:has(main > .hero.section-wrap) > .site-header {
  position: relative;
  top: auto;
  z-index: 20;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--border-strong) 24%, transparent);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface-rich) 16%, transparent), color-mix(in srgb, var(--surface-deep) 12%, transparent)),
    color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--bg) 30%, transparent);
  backdrop-filter: blur(16px);
}

body:has(main > .hero.section-wrap) > .site-header .brand {
  letter-spacing: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

body:has(main > .hero.section-wrap) > .site-header .site-nav {
  align-items: center;
  gap: 5px;
}

body:has(main > .hero.section-wrap) > .site-header .site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-soft);
  padding: 7px 10px;
}

body:has(main > .hero.section-wrap) > .site-header .site-nav a:hover {
  border-color: color-mix(in srgb, var(--accent-cool) 38%, transparent);
  background: color-mix(in srgb, var(--surface-rich) 34%, transparent);
  color: var(--text);
}

body:has(main > .hero.section-wrap) > .site-header .site-nav .header-cta {
  border-color: color-mix(in srgb, var(--accent-cool) 40%, transparent);
  background: color-mix(in srgb, var(--action) 24%, transparent);
  color: var(--text);
  padding-inline: 12px;
}

body:has(main > .hero.section-wrap) > .site-header .site-nav a[lang] {
  width: 34px;
  min-width: 34px;
  border-color: color-mix(in srgb, var(--accent-cool) 28%, transparent);
  background: color-mix(in srgb, var(--surface-rich) 22%, transparent);
  padding-inline: 0;
}

main > .hero.section-wrap {
  overflow: visible;
  border-color: color-mix(in srgb, var(--accent-cool) 13%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 40%, transparent), color-mix(in srgb, var(--surface-rich) 20%, transparent) 52%, color-mix(in srgb, var(--surface-deep) 24%, transparent)),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 3%, transparent), transparent 42%, color-mix(in srgb, var(--accent-cool) 3%, transparent));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent),
    0 18px 42px color-mix(in srgb, var(--bg) 24%, transparent),
    0 0 54px color-mix(in srgb, var(--accent-cool) 5%, transparent);
}

main > .hero.section-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 4%, transparent), transparent 34%),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 3%, transparent), transparent 48%, color-mix(in srgb, var(--accent-cool) 3%, transparent));
  opacity: 0.5;
}

main > .hero.section-wrap::after {
  content: "";
  position: absolute;
  inset: -44px -36px;
  z-index: -1;
  pointer-events: none;
  border-radius: calc(var(--radius) + 34px);
  background:
    radial-gradient(ellipse at 16% 24%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 45%),
    radial-gradient(ellipse at 80% 55%, color-mix(in srgb, var(--accent-cool) 7%, transparent), transparent 48%);
  opacity: 0.5;
}

main > .hero.section-wrap .hero-copy {
  max-width: 660px;
}

main > .hero.section-wrap .kicker {
  color: var(--accent-cool);
}

main > .hero.section-wrap .hero-subtitle {
  max-width: 18ch;
  color: var(--text);
  font-size: clamp(23px, 2.7vw, 36px);
  line-height: 1.12;
  margin-bottom: 16px;
}

main > .hero.section-wrap .hero-lead {
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  font-size: clamp(16px, 1.25vw, 18px);
}

main > .hero.section-wrap .button-primary {
  box-shadow: 0 12px 28px color-mix(in srgb, var(--action) 32%, transparent);
}

main > .hero.section-wrap ~ #projects {
  padding-top: clamp(42px, 4.8vw, 64px);
}

#projects .section-label {
  color: var(--accent-cool);
}

main > .hero.section-wrap ~ #projects .section-heading-row {
  max-width: 980px;
  border-left-color: color-mix(in srgb, var(--accent-cool) 58%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface-rich) 18%, transparent), transparent 76%),
    linear-gradient(180deg, color-mix(in srgb, var(--text) 4%, transparent), transparent);
  padding-block: clamp(20px, 3.2vw, 30px);
}

#projects .featured-intent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(16px, 2vw, 22px);
}

#projects .featured-intent span {
  border: 1px solid color-mix(in srgb, var(--accent-cool) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-rich) 20%, transparent);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 8px 11px;
}

#projects .section-heading-row h2 {
  max-width: 760px;
}

#projects .section-heading-row p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
}

@media (max-width: 900px) {
  body:has(main > .hero.section-wrap) > .site-header {
    margin-top: 8px;
  }

  main > .hero.section-wrap .hero-subtitle {
    max-width: 24ch;
  }
}

@media (max-width: 680px) {
  body:has(main > .hero.section-wrap) {
    overflow-x: hidden;
  }

  body:has(main > .hero.section-wrap) > .site-header,
  body:has(main > .hero.section-wrap) main > .section-wrap {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  body:has(main > .hero.section-wrap) > .site-header {
    position: relative;
    top: auto;
    gap: 10px;
    padding: 14px;
  }

  body:has(main > .hero.section-wrap) > .site-header .site-nav {
    width: 100%;
    gap: 3px;
  }

  body:has(main > .hero.section-wrap) > .site-header .site-nav a {
    min-height: 34px;
    font-size: 12.5px;
    padding: 7px 6px;
  }

  body:has(main > .hero.section-wrap) > .site-header .site-nav a[lang] {
    min-width: 30px;
    padding-inline: 6px;
  }

  main > .hero.section-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  main > .hero.section-wrap .hero-copy,
  main > .hero.section-wrap .hero-transformation-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  main > .hero.section-wrap .hero-subtitle {
    max-width: 14ch;
    font-size: clamp(20px, 5.4vw, 22px);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  main > .hero.section-wrap .hero-lead {
    max-width: 32ch;
    font-size: 15px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  main > .hero.section-wrap .hero-actions {
    width: 100%;
  }

  main > .hero.section-wrap .button {
    flex: 1 1 100%;
    min-width: 0;
    padding-inline: 12px;
  }
}

/* Landing page visual refinement pass */
html[lang="en"] body:has(main > .hero.section-wrap) {
  background:
    linear-gradient(
      180deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--surface) 16%, var(--bg)) 31%,
      color-mix(in srgb, var(--deep-accent) 10%, var(--bg)) 63%,
      var(--bg) 100%
    );
}

html[lang="en"] main:has(> .hero.section-wrap)::before {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      color-mix(in srgb, var(--surface-rich) 4%, transparent) 28%,
      transparent 48%,
      color-mix(in srgb, var(--accent-cool) 3%, transparent) 78%,
      transparent 100%
    );
}

html[lang="en"] body:has(main > .hero.section-wrap) > .site-header {
  padding: 9px 11px;
  border-color: color-mix(in srgb, var(--border-strong) 34%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface-rich) 12%, transparent), color-mix(in srgb, var(--surface-deep) 18%, transparent)),
    color-mix(in srgb, var(--bg) 91%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent),
    0 12px 26px color-mix(in srgb, var(--bg) 28%, transparent);
  backdrop-filter: blur(10px);
}

html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .brand {
  color: var(--text);
}

html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav {
  gap: 5px;
}

html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav a {
  min-height: 35px;
  color: color-mix(in srgb, var(--text) 72%, var(--text-soft));
  font-size: 14px;
  line-height: 1;
  padding: 7px 10px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav a:hover {
  transform: translateY(-1px);
}

html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav .header-cta {
  border-color: color-mix(in srgb, var(--accent-cool) 52%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--action) 36%, transparent), color-mix(in srgb, var(--deep-accent) 26%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
  font-weight: 800;
}

html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav a[lang] {
  width: 36px;
  min-width: 36px;
  border-color: color-mix(in srgb, var(--accent-cool) 42%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-rich) 34%, transparent), color-mix(in srgb, var(--bg) 32%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent);
  font-size: 15px;
}

html[lang="en"] main > .hero.section-wrap {
  position: relative;
  gap: clamp(18px, 2.1vw, 28px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 18%, transparent);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 32%, var(--bg)), color-mix(in srgb, var(--surface-rich) 18%, var(--bg)) 54%, color-mix(in srgb, var(--surface-deep) 28%, var(--bg))),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 3%, transparent), transparent 46%, color-mix(in srgb, var(--accent-cool) 3%, transparent));
  padding: clamp(12px, 1.6vw, 18px);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),
    0 18px 40px color-mix(in srgb, var(--bg) 30%, transparent);
}

html[lang="en"] main > .hero.section-wrap::before {
  opacity: 0.36;
}

html[lang="en"] main > .hero.section-wrap::after {
  opacity: 0.28;
}

html[lang="en"] main > .hero.section-wrap .hero-copy,
html[lang="en"] main > .hero.section-wrap .hero-transformation-visual {
  border-color: color-mix(in srgb, var(--border-strong) 38%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 64%, var(--bg)), color-mix(in srgb, var(--surface-rich) 30%, var(--bg)) 64%, color-mix(in srgb, var(--surface-deep) 42%, var(--bg)));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent),
    0 12px 28px color-mix(in srgb, var(--bg) 22%, transparent);
}

html[lang="en"] main > .hero.section-wrap .hero-copy {
  padding: clamp(34px, 4.4vw, 60px);
}

html[lang="en"] main > .hero.section-wrap .hero-lead,
html[lang="en"] main > .hero.section-wrap ~ .section-wrap .section-heading-row p,
html[lang="en"] main > .hero.section-wrap ~ .section-wrap .card p,
html[lang="en"] main > .hero.section-wrap ~ .section-wrap .project-card p,
html[lang="en"] main > .hero.section-wrap ~ .about.section-wrap p,
html[lang="en"] main > .hero.section-wrap ~ #services .services-note,
html[lang="en"] main > .hero.section-wrap ~ #contact .contact-note {
  color: color-mix(in srgb, var(--text-soft) 88%, var(--text));
  line-height: 1.72;
}

html[lang="en"] .premium-transformation-scene {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--accent-cool) 4%, transparent) 1px, transparent 1px),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-deep) 94%, var(--bg)) 0%, color-mix(in srgb, var(--surface-rich) 54%, var(--bg)) 58%, color-mix(in srgb, var(--surface-muted) 72%, var(--bg)) 100%);
  background-size: 38px 38px, 38px 38px, auto;
}

html[lang="en"] .premium-transformation-scene .scene-glow {
  opacity: 0.45;
}

html[lang="en"] .premium-transformation-scene::after {
  opacity: 0.28;
}

html[lang="en"] main > .hero.section-wrap ~ .section-wrap {
  padding-top: clamp(42px, 4.4vw, 62px);
}

html[lang="en"] main > .hero.section-wrap ~ #projects {
  padding-top: clamp(54px, 5.6vw, 76px);
  margin-bottom: clamp(24px, 3.6vw, 42px);
}

html[lang="en"] main > .hero.section-wrap ~ .about.section-wrap {
  margin-top: clamp(20px, 3vw, 34px);
}

html[lang="en"] main > .hero.section-wrap ~ #work.section-wrap {
  padding-top: clamp(58px, 6vw, 82px);
}

html[lang="en"] main > .hero.section-wrap ~ #services.services.section-wrap {
  margin-top: clamp(28px, 4vw, 48px);
}

html[lang="en"] main > .hero.section-wrap ~ #projects .section-heading-row {
  border-left-color: color-mix(in srgb, var(--accent-cool) 68%, transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface-rich) 24%, transparent), transparent 74%),
    linear-gradient(180deg, color-mix(in srgb, var(--text) 5%, transparent), transparent 72%);
}

html[lang="en"] #projects .featured-intent span {
  border-color: color-mix(in srgb, var(--accent-cool) 36%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-rich) 28%, transparent), color-mix(in srgb, var(--bg) 18%, transparent));
  color: color-mix(in srgb, var(--text) 74%, var(--text-soft));
}

html[lang="en"] #projects .project-card {
  border-color: color-mix(in srgb, var(--border-strong) 56%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 62%, var(--bg)) 0%, color-mix(in srgb, var(--surface-deep) 74%, var(--bg)) 100%);
}

html[lang="en"] #projects .project-card::after {
  content: "";
  position: absolute;
  inset: 12px 12px auto;
  height: clamp(150px, 17vw, 190px);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--deep-accent) 18%, transparent), color-mix(in srgb, var(--bg) 34%, transparent)),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent-cool) 8%, transparent));
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.7;
}

html[lang="en"] #projects .project-card img {
  filter: saturate(0.82) contrast(1.08) brightness(0.86) sepia(0.08) hue-rotate(226deg);
  transition: filter 180ms ease, transform 180ms ease, border-color 180ms ease;
}

html[lang="en"] #projects .project-card:hover img {
  filter: saturate(0.9) contrast(1.1) brightness(0.9) sepia(0.06) hue-rotate(218deg);
}

html[lang="en"] #projects .project-card h3 {
  color: color-mix(in srgb, var(--text) 94%, var(--accent-cool));
}

html[lang="en"] p.card-status {
  border: 1px solid color-mix(in srgb, var(--accent-cool) 26%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 26%, transparent);
  color: color-mix(in srgb, var(--accent-cool) 82%, var(--text));
  padding: 5px 8px;
}

html[lang="en"] p.card-status span {
  background: var(--accent-cool);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-cool) 14%, transparent);
}

html[lang="en"] main > .hero.section-wrap ~ .about.section-wrap {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 24%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 46%, var(--bg)), color-mix(in srgb, var(--surface-deep) 64%, var(--bg)));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent),
    0 18px 36px color-mix(in srgb, var(--bg) 28%, transparent);
}

html[lang="en"] main > .hero.section-wrap ~ .about.section-wrap::before {
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 0;
  background: linear-gradient(180deg, var(--accent-cool), color-mix(in srgb, var(--accent) 68%, var(--accent-cool)));
}

html[lang="en"] main > .hero.section-wrap ~ .about.section-wrap h2 {
  max-width: 13ch;
}

html[lang="en"] main > .hero.section-wrap ~ #work .section-heading-row {
  border: 1px solid color-mix(in srgb, var(--border-strong) 34%, transparent);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface) 42%, var(--bg)), color-mix(in srgb, var(--surface-deep) 20%, transparent) 58%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent),
    0 14px 30px color-mix(in srgb, var(--bg) 20%, transparent);
  padding-inline-start: clamp(20px, 3vw, 34px);
}

html[lang="en"] main > .hero.section-wrap ~ #work .section-heading-row::before {
  inset: 0;
  border-radius: calc(var(--radius) + 6px);
  opacity: 0.58;
  filter: saturate(0.94) contrast(1.05) brightness(0.9);
}

html[lang="en"] #work .cards {
  gap: clamp(14px, 1.8vw, 22px);
}

html[lang="en"] #work .cards .card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  border-color: color-mix(in srgb, var(--border-strong) 48%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 58%, var(--bg)), color-mix(in srgb, var(--surface-deep) 72%, var(--bg)));
  padding: 22px;
}

html[lang="en"] #work .cards .card::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-cool) 70%, var(--accent));
  opacity: 0.84;
}

html[lang="en"] #work .cards .card > span:first-child {
  margin-top: 12px;
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
}

html[lang="en"] #work .cards .card h3 {
  margin-top: 14px;
  color: var(--text);
}

html[lang="en"] #work .cards .card:hover,
html[lang="en"] #projects .project-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-cool) 44%, var(--border-strong));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent),
    0 18px 42px color-mix(in srgb, var(--bg) 34%, transparent);
}

html[lang="en"] main > .hero.section-wrap ~ #services.services.section-wrap {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border-strong) 32%, transparent);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 36%, var(--bg)), color-mix(in srgb, var(--surface-rich) 22%, var(--bg)) 60%, color-mix(in srgb, var(--surface-deep) 46%, var(--bg)));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent),
    0 16px 34px color-mix(in srgb, var(--bg) 26%, transparent);
}

html[lang="en"] main > .hero.section-wrap ~ #services.services.section-wrap::before {
  display: none;
}

html[lang="en"] #services .services-grid {
  gap: 12px;
}

html[lang="en"] #services .services-grid span {
  position: relative;
  min-height: 54px;
  border-radius: var(--radius);
  border-color: color-mix(in srgb, var(--accent-cool) 28%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 28%, transparent), color-mix(in srgb, var(--surface-deep) 46%, transparent));
  color: color-mix(in srgb, var(--text) 82%, var(--text-soft));
  font-weight: 800;
  padding: 13px 14px 13px 28px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

html[lang="en"] #services .services-grid span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cool);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-cool) 11%, transparent);
  transform: translateY(-50%);
}

html[lang="en"] #services .services-grid span:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-cool) 50%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-rich) 34%, transparent), color-mix(in srgb, var(--action) 18%, transparent));
  color: var(--text);
}

html[lang="en"] main > .hero.section-wrap ~ #contact.contact.section-wrap {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 34%, transparent);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-deep) 76%, var(--bg)), color-mix(in srgb, var(--deep-accent) 46%, var(--bg)) 68%, color-mix(in srgb, var(--surface-rich) 30%, var(--bg)));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),
    0 18px 40px color-mix(in srgb, var(--bg) 34%, transparent);
}

html[lang="en"] main > .hero.section-wrap ~ #contact.contact.section-wrap::before {
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-cool) 9%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--text) 5%, transparent), transparent 58%);
}

html[lang="en"] #contact .contact-links {
  gap: 12px;
}

html[lang="en"] #contact .contact-icon {
  width: 60px;
  height: 60px;
  border-color: color-mix(in srgb, var(--accent-cool) 44%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--deep-accent) 80%, var(--bg)), color-mix(in srgb, var(--surface-rich) 62%, var(--bg)));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),
    0 12px 24px color-mix(in srgb, var(--bg) 34%, transparent);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

html[lang="en"] #contact .contact-icon svg {
  width: 27px;
  height: 27px;
}

html[lang="en"] #contact .contact-icon:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cool);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 7%, transparent),
    0 16px 30px color-mix(in srgb, var(--bg) 38%, transparent);
}

@media (max-width: 900px) {
  html[lang="en"] main > .hero.section-wrap {
    padding: clamp(10px, 2.5vw, 14px);
  }

  html[lang="en"] #projects .project-card::after {
    height: clamp(145px, 24vw, 180px);
  }

  html[lang="en"] main > .hero.section-wrap ~ #work .section-heading-row {
    padding-inline: clamp(18px, 4vw, 28px);
  }
}

@media (max-width: 680px) {
  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header {
    padding: 12px;
  }

  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav a {
    min-height: 32px;
    font-size: 12.5px;
    padding: 7px 6px;
  }

  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav a[lang] {
    width: 32px;
    min-width: 32px;
    font-size: 14px;
  }

  html[lang="en"] main > .hero.section-wrap .hero-copy {
    padding: clamp(24px, 7vw, 32px);
  }

  html[lang="en"] #projects .project-card::after {
    height: clamp(150px, 48vw, 210px);
  }

  html[lang="en"] main > .hero.section-wrap ~ .about.section-wrap h2 {
    max-width: none;
  }

  html[lang="en"] #services .services-grid {
    grid-template-columns: 1fr;
  }

  html[lang="en"] #contact .contact-icon {
    width: 54px;
    height: 54px;
  }

  html[lang="en"] #contact .contact-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav a,
  html[lang="en"] #projects .project-card img,
  html[lang="en"] #work .cards .card,
  html[lang="en"] #projects .project-card,
  html[lang="en"] #services .services-grid span,
  html[lang="en"] #contact .contact-icon {
    transition: none;
  }

  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav a:hover,
  html[lang="en"] #work .cards .card:hover,
  html[lang="en"] #projects .project-card:hover,
  html[lang="en"] #services .services-grid span:hover,
  html[lang="en"] #contact .contact-icon:hover {
    transform: none;
  }
}

/* Landing page scale correction */
@media (min-width: 901px) {
  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header,
  html[lang="en"] body:has(main > .hero.section-wrap) main > .section-wrap {
    width: min(100% - 64px, 1500px);
    max-width: 1500px;
  }

  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header {
    padding: 11px 13px;
  }

  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .brand {
    font-size: clamp(20px, 1.55vw, 24px);
  }

  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav {
    gap: 6px;
  }

  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav a {
    min-height: 38px;
    font-size: 14.8px;
    padding: 8px 12px;
  }

  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav .header-cta {
    padding-inline: 16px;
  }

  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav a[lang] {
    width: 38px;
    min-width: 38px;
    font-size: 16px;
  }

  html[lang="en"] main > .hero.section-wrap {
    gap: clamp(24px, 2.4vw, 34px);
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    padding: clamp(16px, 1.9vw, 24px);
  }

  html[lang="en"] main > .hero.section-wrap .hero-copy,
  html[lang="en"] main > .hero.section-wrap .hero-transformation-visual {
    min-height: clamp(630px, 48vw, 720px);
  }

  html[lang="en"] main > .hero.section-wrap .hero-copy {
    padding: clamp(42px, 5vw, 74px);
  }

  html[lang="en"] main > .hero.section-wrap .hero-lead,
  html[lang="en"] main > .hero.section-wrap ~ .section-wrap .section-heading-row p,
  html[lang="en"] main > .hero.section-wrap ~ .section-wrap .card p,
  html[lang="en"] main > .hero.section-wrap ~ .section-wrap .project-card p,
  html[lang="en"] main > .hero.section-wrap ~ .about.section-wrap p,
  html[lang="en"] main > .hero.section-wrap ~ #services .services-note,
  html[lang="en"] main > .hero.section-wrap ~ #contact .contact-note {
    font-size: clamp(15px, 1.05vw, 17px);
  }

  html[lang="en"] main > .hero.section-wrap ~ #work .cards .card h3 {
    color: color-mix(in srgb, var(--text) 95%, var(--accent-cool));
  }
}

html[lang="en"] main > .hero.section-wrap .hero-transformation-visual {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--accent-cool) 10%, transparent);
  background:
    radial-gradient(ellipse at 50% 48%, color-mix(in srgb, var(--surface-rich) 30%, transparent), transparent 62%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 30%, var(--bg)), color-mix(in srgb, var(--surface-rich) 16%, var(--bg)) 58%, color-mix(in srgb, var(--surface-deep) 34%, var(--bg)));
}

html[lang="en"] .premium-transformation-scene {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 48% 46%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 48%),
    radial-gradient(ellipse at 74% 54%, color-mix(in srgb, var(--accent-cool) 8%, transparent), transparent 46%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-deep) 76%, var(--bg)) 0%, color-mix(in srgb, var(--surface-rich) 36%, var(--bg)) 58%, color-mix(in srgb, var(--surface-muted) 50%, var(--bg)) 100%);
  -webkit-mask-image: radial-gradient(ellipse 88% 78% at 52% 50%, #000 0%, #000 66%, rgba(0, 0, 0, 0.82) 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 78% at 52% 50%, #000 0%, #000 66%, rgba(0, 0, 0, 0.82) 82%, transparent 100%);
}

html[lang="en"] .premium-transformation-scene::before {
  border-color: color-mix(in srgb, var(--accent) 13%, transparent);
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--accent) 7%, transparent);
}

html[lang="en"] .premium-transformation-scene .scene-glow {
  opacity: 0.32;
}

html[lang="en"] .premium-transformation-scene::after {
  opacity: 0.18;
}

html[lang="en"] #work .cards .card::before {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cool), color-mix(in srgb, var(--accent) 64%, var(--accent-cool)));
  opacity: 0.9;
}

html[lang="en"] #work .cards .card {
  border-color: color-mix(in srgb, var(--border-strong) 54%, transparent);
}

html[lang="en"] #work .cards .card p {
  color: color-mix(in srgb, var(--text-soft) 92%, var(--text));
}

@media (min-width: 681px) and (max-width: 900px) {
  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .brand {
    font-size: clamp(19px, 2.5vw, 22px);
  }

  html[lang="en"] body:has(main > .hero.section-wrap) > .site-header .site-nav a {
    font-size: 13.5px;
  }
}

@media (max-width: 680px) {
  html[lang="en"] main > .hero.section-wrap .hero-transformation-visual {
    background:
      radial-gradient(ellipse at 50% 48%, color-mix(in srgb, var(--surface-rich) 26%, transparent), transparent 64%),
      linear-gradient(135deg, color-mix(in srgb, var(--surface) 34%, var(--bg)), color-mix(in srgb, var(--surface-rich) 18%, var(--bg)) 62%, color-mix(in srgb, var(--surface-deep) 38%, var(--bg)));
  }

  html[lang="en"] .premium-transformation-scene {
    -webkit-mask-image: radial-gradient(ellipse 96% 86% at 52% 50%, #000 0%, #000 72%, rgba(0, 0, 0, 0.86) 86%, transparent 100%);
    mask-image: radial-gradient(ellipse 96% 86% at 52% 50%, #000 0%, #000 72%, rgba(0, 0, 0, 0.86) 86%, transparent 100%);
  }
}

/* Landing page final polish */
@media (min-width: 901px) {
  html[lang="en"] main > .hero.section-wrap {
    padding-block: clamp(14px, 1.6vw, 20px);
  }

  html[lang="en"] main > .hero.section-wrap .hero-copy,
  html[lang="en"] main > .hero.section-wrap .hero-transformation-visual {
    min-height: clamp(590px, 44vw, 665px);
  }

  html[lang="en"] main > .hero.section-wrap .hero-copy {
    padding-block: clamp(38px, 4.2vw, 62px) clamp(34px, 3.6vw, 54px);
  }

  html[lang="en"] main > .hero.section-wrap ~ .about.section-wrap {
    grid-template-columns: minmax(300px, 0.48fr) minmax(0, 1fr);
  }

  html[lang="en"] main > .hero.section-wrap ~ .about.section-wrap h2 {
    max-width: 15.5ch;
    font-size: clamp(31px, 2.8vw, 42px);
    line-height: 1.08;
  }
}

html[lang="en"] main > .hero.section-wrap .hero-transformation-visual {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

html[lang="en"] .premium-transformation-scene {
  background:
    radial-gradient(ellipse at 48% 46%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 52%),
    radial-gradient(ellipse at 74% 54%, color-mix(in srgb, var(--accent-cool) 6%, transparent), transparent 50%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-deep) 58%, transparent) 0%, color-mix(in srgb, var(--surface-rich) 27%, transparent) 58%, color-mix(in srgb, var(--surface-muted) 34%, transparent) 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 80% at 52% 50%, #000 0%, #000 70%, rgba(0, 0, 0, 0.76) 86%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 80% at 52% 50%, #000 0%, #000 70%, rgba(0, 0, 0, 0.76) 86%, transparent 100%);
}

html[lang="en"] .premium-transformation-scene::before {
  border-color: transparent;
  box-shadow: none;
}

html[lang="en"] .premium-transformation-scene .scene-glow {
  opacity: 0.24;
}

html[lang="en"] .premium-transformation-scene::after {
  opacity: 0.1;
}

html[lang="en"] main > .hero.section-wrap .hero-lead,
html[lang="en"] main > .hero.section-wrap ~ .section-wrap .project-card p,
html[lang="en"] main > .hero.section-wrap ~ .section-wrap .card p,
html[lang="en"] main > .hero.section-wrap ~ #services .services-note,
html[lang="en"] main > .hero.section-wrap ~ #contact .contact-note {
  color: color-mix(in srgb, var(--text-soft) 94%, var(--text));
  line-height: 1.76;
}

html[lang="en"] main > .hero.section-wrap .hero-lead {
  font-size: clamp(16px, 1.12vw, 18px);
}

html[lang="en"] #services .services-grid span {
  color: color-mix(in srgb, var(--text) 88%, var(--text-soft));
}

html[lang="en"] #contact .contact-icon {
  width: 64px;
  height: 64px;
  border-color: color-mix(in srgb, var(--accent-cool) 50%, transparent);
}

html[lang="en"] #contact .contact-icon svg {
  width: 28px;
  height: 28px;
}

html[lang="en"] #contact .contact-icon:hover {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--action) 38%, var(--deep-accent)), color-mix(in srgb, var(--surface-rich) 68%, var(--bg)));
  border-color: color-mix(in srgb, var(--accent-cool) 74%, transparent);
}

@media (max-width: 680px) {
  html[lang="en"] main > .hero.section-wrap .hero-transformation-visual {
    border-color: transparent;
    background: transparent;
  }

  html[lang="en"] .premium-transformation-scene {
    -webkit-mask-image: radial-gradient(ellipse 100% 88% at 52% 50%, #000 0%, #000 74%, rgba(0, 0, 0, 0.82) 88%, transparent 100%);
    mask-image: radial-gradient(ellipse 100% 88% at 52% 50%, #000 0%, #000 74%, rgba(0, 0, 0, 0.82) 88%, transparent 100%);
  }

  html[lang="en"] #contact .contact-icon {
    width: 56px;
    height: 56px;
  }
}

/* Hero illustration background transfer */
html[lang="en"] main > .hero.section-wrap {
  background:
    radial-gradient(ellipse at 70% 42%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 34%),
    radial-gradient(ellipse at 78% 58%, color-mix(in srgb, var(--accent-cool) 6%, transparent), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-deep) 78%, var(--bg)) 0%, color-mix(in srgb, var(--surface-rich) 38%, var(--bg)) 52%, color-mix(in srgb, var(--surface-muted) 50%, var(--bg)) 100%);
}

html[lang="en"] main > .hero.section-wrap .hero-transformation-visual {
  background: transparent;
}

html[lang="en"] main > .hero.section-wrap .hero-copy {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

html[lang="en"] main > .hero.section-wrap .hero-copy::before {
  display: none;
}

html[lang="en"] .premium-transformation-scene {
  background: transparent;
  -webkit-mask-image: none;
  mask-image: none;
}

html[lang="en"] .premium-transformation-scene::before,
html[lang="en"] .premium-transformation-scene::after {
  display: none;
}

/* Contact icon centering */
@media (min-width: 901px) {
  html[lang="en"] #contact .contact-links {
    align-self: center;
    justify-self: stretch;
    justify-content: center;
  }
}

/* Footer copyright */
html[lang="en"] .site-footer {
  width: min(100% - 64px, 1500px);
  max-width: 1500px;
  margin: clamp(-26px, -2vw, -14px) auto clamp(26px, 4vw, 42px);
  border-top: 1px solid color-mix(in srgb, var(--border-strong) 24%, transparent);
  color: color-mix(in srgb, var(--text-soft) 70%, var(--label-muted));
  font-size: 13px;
  line-height: 1.5;
  padding-top: 16px;
  text-align: center;
}

html[lang="en"] .site-footer p {
  margin: 0;
}

@media (max-width: 680px) {
  html[lang="en"] .site-footer {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-top: -16px;
    font-size: 12.5px;
  }
}

/* Hero height trim */
@media (min-width: 901px) {
  html[lang="en"] main > .hero.section-wrap {
    padding-block: clamp(10px, 1.2vw, 16px);
  }

  html[lang="en"] main > .hero.section-wrap .hero-copy,
  html[lang="en"] main > .hero.section-wrap .hero-transformation-visual {
    min-height: clamp(530px, 39vw, 590px);
  }

  html[lang="en"] main > .hero.section-wrap .hero-copy {
    padding-block: clamp(32px, 3.4vw, 50px) clamp(28px, 3vw, 44px);
  }
}

/* Hero edge blend */
html[lang="en"] main > .hero.section-wrap {
  border-color: transparent;
  background:
    radial-gradient(ellipse at 70% 42%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%),
    radial-gradient(ellipse at 78% 58%, color-mix(in srgb, var(--accent-cool) 5%, transparent), transparent 38%),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--bg) 94%, var(--surface-deep)) 0%,
      color-mix(in srgb, var(--surface-rich) 42%, var(--bg)) 8%,
      color-mix(in srgb, var(--surface-rich) 40%, var(--bg)) 50%,
      color-mix(in srgb, var(--surface-muted) 44%, var(--bg)) 92%,
      color-mix(in srgb, var(--bg) 94%, var(--surface-deep)) 100%
    );
  box-shadow: 0 20px 38px color-mix(in srgb, var(--bg) 26%, transparent);
}

html[lang="en"] main > .hero.section-wrap::before {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--bg) 28%, transparent),
      transparent 14%,
      transparent 86%,
      color-mix(in srgb, var(--bg) 28%, transparent)
    );
}

/* Hero slight height reduction */
@media (min-width: 901px) {
  html[lang="en"] main > .hero.section-wrap {
    padding-block: clamp(8px, 1vw, 14px);
  }

  html[lang="en"] main > .hero.section-wrap .hero-copy,
  html[lang="en"] main > .hero.section-wrap .hero-transformation-visual {
    min-height: clamp(500px, 36vw, 560px);
  }
}

/* Landing section hero color unification */
html[lang="en"] main > .hero.section-wrap ~ #projects .section-heading-row,
html[lang="en"] main > .hero.section-wrap ~ .about.section-wrap,
html[lang="en"] main > .hero.section-wrap ~ #work .section-heading-row,
html[lang="en"] main > .hero.section-wrap ~ #services.services.section-wrap,
html[lang="en"] main > .hero.section-wrap ~ #contact.contact.section-wrap {
  border-color: transparent;
  background:
    radial-gradient(ellipse at 70% 42%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 34%),
    radial-gradient(ellipse at 78% 58%, color-mix(in srgb, var(--accent-cool) 4%, transparent), transparent 38%),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--bg) 94%, var(--surface-deep)) 0%,
      color-mix(in srgb, var(--surface-rich) 42%, var(--bg)) 8%,
      color-mix(in srgb, var(--surface-rich) 40%, var(--bg)) 50%,
      color-mix(in srgb, var(--surface-muted) 44%, var(--bg)) 92%,
      color-mix(in srgb, var(--bg) 94%, var(--surface-deep)) 100%
    );
  box-shadow: 0 18px 36px color-mix(in srgb, var(--bg) 24%, transparent);
}

html[lang="en"] #projects .project-card,
html[lang="en"] #work .cards .card {
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
  background:
    radial-gradient(ellipse at 72% 18%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 42%),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--surface-rich) 42%, var(--bg)) 0%,
      color-mix(in srgb, var(--surface-rich) 36%, var(--bg)) 54%,
      color-mix(in srgb, var(--surface-muted) 42%, var(--bg)) 100%
    );
}

html[lang="en"] #projects .featured-intent span,
html[lang="en"] #services .services-grid span,
html[lang="en"] p.card-status {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--surface-rich) 36%, var(--bg)),
      color-mix(in srgb, var(--surface-muted) 32%, var(--bg))
    );
}
