@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* Embedded Works — restrained premium redesign */
:root {
  --ew-bg: #f3f4ef;
  --ew-surface: #ffffff;
  --ew-surface-soft: #e9ece6;
  --ew-ink: #151a18;
  --ew-copy: #59615d;
  --ew-muted: #7b847f;
  --ew-line: rgba(21, 26, 24, 0.12);
  --ew-accent: #176b5a;
  --ew-accent-soft: #d8ebe4;
  --ew-dark: #121816;
  --ew-radius: 18px;
  --ew-max: 1180px;
  --bg: var(--ew-bg);
  --bg-soft: var(--ew-bg);
  --surface: var(--ew-surface);
  --surface-strong: var(--ew-surface);
  --panel: var(--ew-surface-soft);
  --text: var(--ew-ink);
  --text-soft: var(--ew-copy);
  --text-muted: var(--ew-muted);
  --line: var(--ew-line);
  --line-strong: rgba(21, 26, 24, 0.2);
  --green: var(--ew-accent);
  --green-2: var(--ew-accent);
  --cyan: var(--ew-accent);
  --amber: var(--ew-accent);
  --header-bg: rgba(255, 255, 255, 0.86);
  --header-text: var(--ew-ink);
  --radius: 14px;
  --shadow: 0 24px 80px rgba(19, 31, 26, 0.12);
  --shadow-soft: 0 12px 40px rgba(19, 31, 26, 0.08);
}

:root[data-theme="dark"] {
  --ew-bg: #0e1311;
  --ew-surface: #151c19;
  --ew-surface-soft: #1b2420;
  --ew-ink: #f2f4ef;
  --ew-copy: #a9b1ac;
  --ew-muted: #7e8983;
  --ew-line: rgba(242, 244, 239, 0.12);
  --ew-accent: #78cbb5;
  --ew-accent-soft: #19352e;
  --ew-dark: #080c0a;
  --header-bg: rgba(15, 20, 18, 0.86);
  --header-text: var(--ew-ink);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.2);
}

html {
  background: var(--ew-bg);
}

body {
  overflow-x: hidden;
  color: var(--ew-ink);
  background: var(--ew-bg);
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

section[id],
section[aria-labelledby] {
  scroll-margin-top: 104px;
}

body::before {
  display: none;
}

h1,
h2,
h3 {
  color: var(--ew-ink);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

p {
  letter-spacing: -0.012em;
}

.site-header {
  top: 16px;
  width: min(calc(100% - 32px), var(--ew-max));
  min-height: 64px;
  padding: 8px 9px 8px 14px;
  color: var(--header-text);
  background: var(--header-bg);
  border: 1px solid var(--ew-line);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(19, 31, 26, 0.07);
  backdrop-filter: blur(18px) saturate(140%);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--ew-surface), transparent 5%);
  border-color: var(--ew-line);
}

.brand {
  gap: 11px;
  color: var(--ew-ink);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--ew-dark);
  box-shadow: none;
  font-size: 0;
}

.brand-mark::before {
  content: "EW";
  position: static;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  transform: none;
}

.brand-mark::after {
  display: none;
}

.brand-mark.has-logo {
  background: transparent;
}

.brand-mark.has-logo::before {
  display: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav {
  gap: 2px;
}

.nav a {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 10px;
  color: var(--ew-copy);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--ew-ink);
  background: var(--ew-surface-soft);
}

.nav a[href="./contact"] {
  margin-left: 5px;
  color: #fff;
  background: var(--ew-dark);
}

.nav a[href="./contact"]:hover,
.nav a[href="./contact"]:focus-visible,
.nav a[href="./contact"][aria-current="page"] {
  color: #fff;
  background: color-mix(in srgb, var(--ew-dark), white 10%);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-color: var(--ew-line);
  border-radius: 10px;
  color: var(--ew-ink);
  background: transparent;
}

.hero {
  width: min(calc(100% - 48px), var(--ew-max));
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.82fr);
  gap: clamp(50px, 7vw, 96px);
  align-items: center;
  margin: 0 auto;
  padding: 150px 0 90px;
  overflow: visible;
  color: var(--ew-ink);
  background: transparent;
}

.hero::after,
.hero-overlay {
  display: none;
}

.hero-media {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  height: clamp(500px, 49vw, 650px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--ew-dark);
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "PCB  •  EMBEDDED  •  IOT";
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(10, 16, 13, 0.6);
  backdrop-filter: blur(14px);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.78) contrast(1.03);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: block;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.hero-content {
  max-width: 660px;
  padding: 0;
}

.hero-visual-stack {
  display: none;
}

.eyebrow,
.section-kicker,
.tag,
.page-kicker {
  margin-bottom: 18px;
  color: var(--ew-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  color: var(--ew-ink);
  font-size: clamp(3.4rem, 6vw, 5.55rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero-copy,
.page-copy {
  max-width: 610px;
  margin-top: 26px;
  color: var(--ew-copy);
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  gap: 10px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--ew-line);
  border-radius: 11px;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  border-color: var(--ew-dark);
  background: var(--ew-dark);
}

:root[data-theme="dark"] .button.primary {
  color: #0d1612;
  border-color: #ecf4ef;
  background: #ecf4ef;
}

.button.secondary {
  color: var(--ew-ink);
  background: transparent;
}

.button.secondary:hover {
  background: var(--ew-surface);
  border-color: rgba(21, 26, 24, 0.22);
}

.client-rail {
  width: min(calc(100% - 48px), var(--ew-max));
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 auto;
  overflow: visible;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius);
  background: var(--ew-surface);
  box-shadow: none;
}

.client-rail article {
  min-height: 156px;
  gap: 8px;
  padding: 27px 30px;
  border-right: 1px solid var(--ew-line);
  background: transparent;
}

.client-rail article:last-child {
  border-right: 0;
}

.client-rail span {
  color: var(--ew-accent);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.client-rail strong {
  color: var(--ew-ink);
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.client-rail p {
  color: var(--ew-copy);
  font-size: 0.9rem;
  line-height: 1.55;
}

.section,
.page-hero,
.contact-section,
.footer,
.dark-band-inner {
  width: min(calc(100% - 48px), var(--ew-max));
  margin-right: auto;
  margin-left: auto;
}

.section {
  padding: 112px 0;
}

.page-hero {
  padding: 178px 0 96px;
  border-bottom: 1px solid var(--ew-line);
}

.page-hero h1 {
  max-width: 930px;
}

.page-hero .page-copy {
  max-width: 700px;
}

.section-head,
.split-heading {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: end;
  margin-bottom: 48px;
}

.split-heading {
  margin-bottom: 44px;
}

.section h2,
.contact-section h2,
.split-heading h2,
.dark-band h2 {
  max-width: 820px;
  color: var(--ew-ink);
  font-size: clamp(2.6rem, 4.7vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-head p,
.split-copy,
.card p,
.case-card p,
.service-card p,
.timeline-card p,
.spec-list,
.contact-copy p {
  color: var(--ew-copy);
}

.home-strip {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.proof-item {
  min-height: 228px;
  display: block;
  padding: 30px;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius);
  background: var(--ew-surface);
  box-shadow: none;
}

.proof-item svg,
.proof-item > i {
  width: 22px;
  height: 22px;
  margin-bottom: 42px;
  color: var(--ew-accent);
}

.proof-item strong {
  display: block;
  margin-bottom: 11px;
  color: var(--ew-ink);
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.proof-item span {
  color: var(--ew-copy);
  font-size: 0.94rem;
  line-height: 1.6;
}

.about-founder {
  padding-top: 38px;
}

.about-founder-grid {
  grid-template-columns: 1fr;
  gap: 0;
  padding: clamp(38px, 7vw, 78px);
  border: 1px solid var(--ew-line);
  border-radius: 24px;
  background: var(--ew-dark);
  box-shadow: none;
}

.about-photo-wrap {
  display: none;
}

.about-copy {
  max-width: 850px;
}

.about-copy h2,
.about-copy p {
  color: #f2f4ef;
}

.about-copy > p:not(.section-kicker) {
  max-width: 720px;
  color: rgba(242, 244, 239, 0.66);
  font-size: 1.04rem;
}

.about-skills span,
.chip-row span,
.case-meta span {
  border: 1px solid var(--ew-line);
  border-radius: 999px;
  color: var(--ew-copy);
  background: transparent;
  font-size: 0.75rem;
}

.about-skills span {
  color: rgba(242, 244, 239, 0.82);
  border-color: rgba(242, 244, 239, 0.16);
}

.work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card,
.case-card.featured {
  grid-column: auto;
  grid-row: auto;
  overflow: hidden;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius);
  background: var(--ew-surface);
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.case-visual,
.featured .case-visual,
.compact-work-grid .case-visual,
.compact-work-grid .featured .case-visual {
  min-height: 248px;
  border-radius: 0;
  background: var(--ew-dark);
}

.case-visual:not(.has-image) {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 24%, rgba(34, 199, 232, 0.2), transparent 24%),
    linear-gradient(145deg, #12191e, #070a0c);
}

.case-visual:not(.has-image)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.55;
  background:
    linear-gradient(90deg, transparent 11%, rgba(34, 199, 232, 0.32) 11.3%, transparent 11.6%) 0 0 / 82px 82px,
    linear-gradient(transparent 63%, rgba(34, 199, 232, 0.28) 63.3%, transparent 63.6%) 0 0 / 82px 82px,
    radial-gradient(circle, rgba(34, 199, 232, 0.9) 0 2px, transparent 3px) 36px 52px / 164px 164px;
  mask-image: linear-gradient(135deg, transparent 8%, black 40%, black 72%, transparent 98%);
}

.case-visual:not(.has-image)::after {
  content: "EW";
  position: absolute;
  right: 34px;
  bottom: 18px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.04);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.1em;
}

.case-visual:not(.has-image) .case-media-grid {
  opacity: 0;
}

.case-media-grid {
  gap: 4px;
}

.case-media-slot {
  border: 0;
  border-radius: 0;
}

.case-media-slot img {
  filter: saturate(0.8) contrast(1.02);
  transition: transform 500ms ease;
}

.case-card:hover .case-media-slot img {
  transform: scale(1.025);
}

.case-content,
.featured .case-content {
  padding: 27px;
}

.case-content .tag {
  margin-bottom: 13px;
}

.case-card h3 {
  color: var(--ew-ink);
  font-size: 1.3rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.case-card p:not(.tag) {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.case-meta {
  margin-top: 20px;
}

.project-card-topline,
.project-origin-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.project-card-topline {
  margin-bottom: 10px;
}

.project-card-topline .tag {
  margin: 0;
}

.project-origin-row {
  margin-top: 18px;
  color: var(--ew-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-origin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(34, 199, 232, 0.36);
  border-radius: 999px;
  color: var(--ew-accent);
  background: rgba(34, 199, 232, 0.1);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-origin-badge.personal-project {
  border-color: rgba(255, 194, 115, 0.35);
  color: #ffc273;
  background: rgba(255, 194, 115, 0.12);
}

.project-origin-badge-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(5, 9, 12, 0.84);
  backdrop-filter: blur(10px);
}

.mini-link,
.text-link {
  color: var(--ew-accent);
  font-size: 0.88rem;
}

.dark-band {
  color: #f2f4ef;
  background: var(--ew-dark);
}

.dark-band-inner {
  grid-template-columns: minmax(0, 0.8fr) minmax(400px, 0.7fr);
  gap: clamp(48px, 8vw, 110px);
  padding: 104px 0;
}

.dark-band h2 {
  color: #f2f4ef;
}

.dark-band p {
  color: rgba(242, 244, 239, 0.63);
}

.dark-stats {
  grid-template-columns: 1fr;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.dark-stats div {
  min-height: 100px;
  padding: 24px 0;
  border-right: 0;
  border-bottom: 1px solid rgba(242, 244, 239, 0.14);
}

.dark-stats div:first-child {
  padding-top: 0;
}

.dark-stats strong {
  font-size: 1.32rem;
}

.dark-stats span {
  color: rgba(242, 244, 239, 0.58);
}

[aria-labelledby="home-contact"] {
  grid-template-columns: minmax(0, 0.78fr) minmax(400px, 0.62fr);
  gap: clamp(50px, 8vw, 105px);
  align-items: start;
  margin-top: 110px;
  margin-bottom: 110px;
  padding: clamp(40px, 7vw, 78px);
  border: 1px solid var(--ew-line);
  border-radius: 24px;
  color: var(--ew-ink);
  background: var(--ew-surface);
  box-shadow: none;
}

.contact-section::before,
.contact-section::after {
  display: none;
}

.contact-copy,
.lead-panel {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  color: var(--ew-ink);
  font-size: clamp(2.7rem, 4.4vw, 4.4rem);
}

.contact-copy p:not(.section-kicker) {
  color: var(--ew-copy);
}

.contact-section .button.primary {
  color: #fff;
  background: var(--ew-dark);
}

.contact-section .button.secondary {
  color: var(--ew-ink);
  border-color: var(--ew-line);
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.card,
.timeline-card,
.project-info-panel,
.project-summary-card {
  min-height: 0;
  padding: 30px;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius);
  background: var(--ew-surface);
  box-shadow: none;
}

.service-card {
  min-height: 500px;
}

.service-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 64px;
  border-radius: 10px;
  color: var(--ew-accent);
  background: var(--ew-accent-soft);
}

.service-card h3,
.card h3,
.timeline-card h3 {
  color: var(--ew-ink);
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.service-card > p {
  margin-top: 16px;
  font-size: 0.94rem;
}

.spec-list {
  gap: 11px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--ew-line);
  font-size: 0.84rem;
}

.spec-list li::before {
  background: var(--ew-accent);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.timeline-card {
  min-height: 300px;
}

.timeline-card > span {
  margin-bottom: 88px;
  color: var(--ew-accent);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.timeline-card p {
  font-size: 0.9rem;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 220px;
}

.card h3 {
  margin-bottom: 42px;
}

.project-category-grid,
.category-capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-category-card {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius);
  background: var(--ew-surface);
  box-shadow: none;
}

.category-visual {
  min-height: 150px;
  background: var(--ew-dark);
}

.project-category-content {
  padding: 26px;
}

.project-category-content h3 {
  color: var(--ew-ink);
  font-size: 1.25rem;
}

.project-category-content p:not(.section-kicker) {
  color: var(--ew-copy);
  font-size: 0.87rem;
}

.project-category-footer {
  color: var(--ew-accent);
  border-color: var(--ew-line);
}

.category-nav {
  width: min(calc(100% - 48px), var(--ew-max));
  gap: 8px;
  margin: 24px auto 0;
  overflow-x: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.category-nav a {
  min-height: 58px;
  border: 1px solid var(--ew-line);
  border-radius: 10px;
  color: var(--ew-copy);
  background: var(--ew-surface);
}

.category-nav a[aria-current="page"] {
  color: #fff;
  border-color: var(--ew-dark);
  background: var(--ew-dark);
}

.category-hero-grid,
.project-title-grid {
  gap: clamp(42px, 8vw, 100px);
}

.category-hero-visual {
  border-color: var(--ew-line);
  border-radius: 20px;
  box-shadow: none;
}

.empty-category-card {
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius);
  background: var(--ew-surface);
  box-shadow: none;
}

.project-crumb {
  color: var(--ew-muted);
}

.project-crumb a {
  color: var(--ew-accent);
}

.project-summary-card {
  background: var(--ew-surface);
}

.project-spec-grid div {
  border-color: var(--ew-line);
  background: var(--ew-surface-soft);
}

.project-showcase {
  border-color: var(--ew-line);
  border-radius: 20px;
  box-shadow: none;
}

.project-showcase .case-visual {
  min-height: clamp(420px, 58vw, 700px);
}

.project-detail-columns {
  gap: 14px;
}

.project-info-panel li {
  color: var(--ew-copy);
}

.project-info-panel li::before {
  background: var(--ew-accent);
}

.spec-table-wrap {
  border-color: var(--ew-line);
  border-radius: var(--ew-radius);
  background: var(--ew-surface);
  box-shadow: none;
}

.project-spec-table tr {
  border-color: var(--ew-line);
}

.project-spec-table th {
  color: var(--ew-muted);
  background: var(--ew-surface-soft);
}

.project-spec-table td {
  color: var(--ew-ink);
}

.lead-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lead-form {
  padding: 0;
}

.lead-form label > span {
  color: var(--ew-ink);
  font-size: 0.77rem;
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  color: var(--ew-ink);
  border: 1px solid var(--ew-line);
  border-radius: 10px;
  background: var(--ew-bg);
  box-shadow: none;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--ew-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ew-accent), transparent 84%);
}

.form-head h2 {
  color: var(--ew-ink);
  font-size: 1.8rem;
}

.form-note,
.form-head p:not(.section-kicker) {
  color: var(--ew-copy);
}

.footer {
  min-height: 118px;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 36px 0;
  color: var(--ew-muted);
  border-top: 1px solid var(--ew-line);
  font-size: 0.8rem;
}

.footer > span:first-child {
  color: var(--ew-ink);
  font-weight: 700;
}

.footer > span:nth-child(2) {
  display: none;
}

.footer .owner-login {
  display: none;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.76fr);
    gap: 42px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(3rem, 7vw, 4.7rem);
  }

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

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

  .service-card {
    min-height: 470px;
  }

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

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    padding: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand span:last-child {
    max-width: 150px;
  }

  .nav {
    top: calc(100% + 8px);
    padding: 8px;
    border-color: var(--ew-line);
    border-radius: 14px;
    background: var(--ew-surface);
    box-shadow: var(--shadow-soft);
  }

  .nav a {
    min-height: 48px;
  }

  .nav a[href="./contact"] {
    margin: 4px 0 0;
  }

  .hero {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 126px 0 62px;
  }

  .hero-grid,
  .hero-media {
    grid-column: 1;
  }

  .hero-grid {
    grid-row: 1;
  }

  .hero-media {
    grid-row: 2;
    height: 390px;
    border-radius: 18px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 13vw, 3.55rem);
    letter-spacing: -0.06em;
  }

  .hero-copy,
  .page-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .client-rail,
  .section,
  .page-hero,
  .contact-section,
  .footer,
  .dark-band-inner,
  .category-nav {
    width: calc(100% - 36px);
  }

  .client-rail {
    grid-template-columns: 1fr;
  }

  .client-rail article {
    min-height: 0;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--ew-line);
  }

  .client-rail article:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 78px 0;
  }

  .page-hero {
    padding: 132px 0 70px;
  }

  .section-head,
  .split-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 34px;
  }

  .section h2,
  .contact-section h2,
  .split-heading h2,
  .dark-band h2 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
  }

  .home-strip,
  .work-grid,
  .service-grid,
  .process-grid,
  .detail-grid,
  .project-category-grid,
  .category-capability-grid,
  .project-detail-columns {
    grid-template-columns: 1fr;
  }

  .proof-item {
    min-height: 205px;
  }

  .about-founder {
    padding-top: 16px;
  }

  .about-founder-grid {
    padding: 34px 26px;
    border-radius: 18px;
  }

  .case-visual,
  .featured .case-visual,
  .compact-work-grid .case-visual {
    min-height: 240px;
  }

  .service-card {
    min-height: 0;
  }

  .service-icon {
    margin-bottom: 46px;
  }

  .timeline-card {
    min-height: 240px;
  }

  .timeline-card > span {
    margin-bottom: 58px;
  }

  .dark-band-inner {
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 78px 0;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 58px;
    margin-top: 64px;
    margin-bottom: 64px;
    padding: 34px 24px;
    border-radius: 18px;
  }

  .category-hero-grid,
  .project-title-grid,
  .empty-category-card {
    grid-template-columns: 1fr;
  }

  .category-nav {
    display: flex;
  }

  .category-nav a {
    min-width: 130px;
  }

  .project-showcase .case-media-grid {
    grid-template-columns: 1fr;
  }

  .project-showcase .case-visual {
    min-height: 360px;
  }

  .footer {
    min-height: 96px;
    grid-template-columns: 1fr auto;
  }
}

/* V11 — seamless inquiry canvas */
body:not(:has(#home-positioning)) .contact-section {
  width: 100%;
  max-width: none;
  padding: 110px max(24px, calc((100vw - var(--ew-max)) / 2));
  box-shadow: none;
}

/* V6 — editorial portfolio, refined inquiry flow, and restrained motion */
.studio-nav-link {
  color: var(--ew-muted);
}

.studio-nav-link:hover,
.studio-nav-link:focus-visible {
  color: var(--ew-text);
}

[aria-labelledby="project-categories"] .section-head,
[aria-labelledby="case-studies"] .section-head {
  grid-template-columns: minmax(0, 860px);
  justify-content: start;
}

[aria-labelledby="project-categories"] .section-head > p,
[aria-labelledby="case-studies"] .section-head > p {
  display: none;
}

body:has(#project-categories) > main > .page-hero {
  padding-bottom: 72px;
}

.case-visual:not(.has-image) {
  background:
    radial-gradient(circle at 78% 18%, rgba(34, 199, 232, 0.14), transparent 32%),
    linear-gradient(145deg, #10171b, #070a0c);
}

.case-visual:not(.has-image)::after {
  content: "";
  display: none;
}

body:not(:has(#home-positioning)) .contact-section {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 0.62fr) minmax(500px, 0.9fr);
  gap: clamp(64px, 8vw, 112px);
  align-items: start;
  margin: 0 auto;
  padding: 110px max(24px, calc((100vw - var(--ew-max)) / 2));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(:has(#home-positioning)) .contact-section .contact-copy {
  max-width: 480px;
  padding-top: 36px;
}

body:not(:has(#home-positioning)) .contact-section .contact-copy h2 {
  max-width: 480px;
  font-size: clamp(2.8rem, 4vw, 4rem);
}

.lead-panel {
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: #0d1115;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.lead-form {
  gap: 18px;
}

.form-head {
  margin-bottom: 8px;
}

.form-head h2 {
  max-width: 520px;
  font-size: clamp(2rem, 3vw, 2.75rem);
  letter-spacing: -0.04em;
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .service-card:nth-child(2),
  .case-card:nth-child(2),
  .proof-item:nth-child(2) {
    transition-delay: 80ms;
  }

  .service-card:nth-child(3),
  .case-card:nth-child(3),
  .proof-item:nth-child(3) {
    transition-delay: 160ms;
  }

  .site-header {
    animation: ew-header-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-content > * {
    opacity: 0;
    animation: ew-hero-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero-content > :nth-child(2) { animation-delay: 70ms; }
  .hero-content > :nth-child(3) { animation-delay: 140ms; }
  .hero-content > :nth-child(4) { animation-delay: 210ms; }
  .hero-content > :nth-child(5) { animation-delay: 280ms; }

  .hero-media img {
    animation: ew-image-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .button svg,
  .button i,
  .text-link svg,
  .text-link i {
    transition: transform 0.25s ease;
  }

  .button:hover svg,
  .button:hover i,
  .text-link:hover svg,
  .text-link:hover i {
    transform: translateX(4px);
  }

  .case-card .case-visual {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
  }

  .case-card:hover .case-visual {
    transform: translateY(-5px);
    border-color: rgba(34, 199, 232, 0.32);
  }
}

.blog-diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.blog-diagram div {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(34, 199, 232, 0.18);
  border-radius: 16px;
  background: rgba(34, 199, 232, 0.06);
}

.blog-diagram span {
  color: var(--ew-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.blog-diagram strong {
  color: var(--ew-text);
  line-height: 1.35;
}

.blog-checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.blog-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ew-copy);
}

.blog-checklist svg {
  width: 18px;
  height: 18px;
  color: var(--ew-accent);
}

.blog-faqs {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.blog-faqs details,
.category-faq-list details {
  padding: 16px 18px;
  border: 1px solid rgba(149, 166, 174, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.blog-faqs summary,
.category-faq-list summary {
  cursor: pointer;
  color: var(--ew-text);
  font-weight: 800;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-grid article,
.moderation-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(149, 166, 174, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.pricing-grid span,
.moderation-status {
  color: var(--ew-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.moderation-list {
  display: grid;
  gap: 14px;
}

.moderation-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

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

html:root[data-theme="light"] .blog-diagram div,
html:root[data-theme="light"] .blog-faqs details,
html:root[data-theme="light"] .category-faq-list details,
html:root[data-theme="light"] .pricing-grid article,
html:root[data-theme="light"] .moderation-card {
  color: #111c20;
  border-color: rgba(17, 28, 32, 0.14);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(18, 34, 39, 0.07);
}

html:root[data-theme="light"] .blog-diagram strong,
html:root[data-theme="light"] .blog-checklist li,
html:root[data-theme="light"] .blog-faqs summary,
html:root[data-theme="light"] .category-faq-list summary,
html:root[data-theme="light"] .pricing-grid h3,
html:root[data-theme="light"] .moderation-card h3 {
  color: #111c20;
}

html:root[data-theme="light"] .blog-faqs p,
html:root[data-theme="light"] .category-faq-list p,
html:root[data-theme="light"] .pricing-grid p,
html:root[data-theme="light"] .moderation-card p,
html:root[data-theme="light"] .moderation-card small {
  color: #4e5f65;
}

@media (max-width: 820px) {
  .blog-diagram,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .moderation-card {
    grid-template-columns: 1fr;
  }
}

/* V55 - cleaner blog article cards, animated FAQs, smaller project badges */
.blog-post-card .blog-faqs,
.blog-featured .blog-faqs {
  gap: 10px;
  margin: 22px 0 10px;
}

.blog-faqs details,
.category-faq-list details {
  overflow: hidden;
  padding: 0 !important;
  border-radius: 14px !important;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.blog-faqs details:hover,
.category-faq-list details:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 199, 232, 0.28);
}

.blog-faqs summary,
.category-faq-list summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  padding: 16px 18px;
  list-style: none;
}

.blog-faqs summary::-webkit-details-marker,
.category-faq-list summary::-webkit-details-marker {
  display: none;
}

.blog-faqs summary::after,
.category-faq-list summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 199, 232, 0.24);
  border-radius: 50%;
  color: var(--ew-accent);
  background: rgba(34, 199, 232, 0.06);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 220ms ease, background 220ms ease;
}

.blog-faqs details[open] summary::after,
.category-faq-list details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
  background: rgba(34, 199, 232, 0.12);
}

.blog-faqs p,
.category-faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  animation: faqReveal 220ms ease both;
}

@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.blog-action-strip > span {
  color: var(--ew-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-actions {
  margin-left: auto;
}

.blog-action-button {
  min-height: 36px !important;
  padding: 7px 10px !important;
  font-size: 0.78rem !important;
}

.blog-action-button strong {
  min-width: 17px !important;
  height: 17px !important;
}

.blog-post-content > .text-link,
.blog-featured > .button.secondary {
  margin-bottom: 4px;
}

.project-origin-badge,
.project-origin-badge-overlay,
html:root body .project-origin-badge,
html:root body .project-origin-badge-overlay {
  min-height: 22px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
}

.project-origin-badge-overlay {
  right: 10px !important;
  bottom: 10px !important;
}

@media (max-width: 640px) {
  .blog-action-strip {
    display: grid;
    justify-items: start;
  }

  .blog-actions {
    margin-left: 0;
  }

  .blog-faqs summary,
  .category-faq-list summary {
    grid-template-columns: minmax(0, 1fr) 22px;
    min-height: 52px;
    padding: 14px 15px;
  }
}

/* V56 - readable post meta and premium motion on article chips/actions */
.blog-featured-topline span + span,
.insight-meta span + span {
  color: rgba(226, 238, 241, 0.72) !important;
}

.blog-resource-links a,
.blog-action-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.blog-resource-links a::before,
.blog-action-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(34, 199, 232, 0.18) 45%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-resource-links a:hover,
.blog-resource-links a:focus-visible,
.blog-action-button:hover,
.blog-action-button:focus-visible,
.blog-action-button.is-active {
  transform: translateY(-2px);
  border-color: rgba(34, 199, 232, 0.52) !important;
  color: #f4fbfc !important;
  background: rgba(34, 199, 232, 0.12) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(34, 199, 232, 0.06) inset;
}

.blog-resource-links a:hover::before,
.blog-resource-links a:focus-visible::before,
.blog-action-button:hover::before,
.blog-action-button:focus-visible::before,
.blog-action-button.is-active::before {
  transform: translateX(120%);
}

.blog-resource-links a svg,
.blog-action-button svg {
  transition: transform 220ms ease, color 220ms ease;
}

.blog-resource-links a:hover svg,
.blog-resource-links a:focus-visible svg {
  transform: translate(2px, -2px);
}

.blog-action-button:hover svg,
.blog-action-button:focus-visible svg,
.blog-action-button.is-active svg {
  transform: scale(1.08);
}

.blog-action-button:active,
.blog-resource-links a:active {
  transform: translateY(0) scale(0.98);
}

.blog-action-button strong {
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.blog-action-button:hover strong,
.blog-action-button:focus-visible strong,
.blog-action-button.is-active strong {
  transform: scale(1.06);
  color: #031015 !important;
  background: #8eeaff !important;
}

html:root[data-theme="light"] .blog-featured-topline span + span,
html:root[data-theme="light"] .insight-meta span + span {
  color: #697a80 !important;
}

html:root[data-theme="light"] .blog-resource-links a,
html:root[data-theme="light"] .blog-action-button {
  color: #203940 !important;
  border-color: rgba(0, 137, 164, 0.28) !important;
  background: #f3fbfd !important;
  box-shadow: 0 8px 22px rgba(18, 34, 39, 0.06);
}

html:root[data-theme="light"] .blog-resource-links a:hover,
html:root[data-theme="light"] .blog-resource-links a:focus-visible,
html:root[data-theme="light"] .blog-action-button:hover,
html:root[data-theme="light"] .blog-action-button:focus-visible,
html:root[data-theme="light"] .blog-action-button.is-active {
  color: #071114 !important;
  background: #e8f8fb !important;
  box-shadow: 0 14px 36px rgba(18, 34, 39, 0.12), 0 0 0 1px rgba(0, 137, 164, 0.08) inset;
}

html:root[data-theme="light"] .blog-action-strip > span {
  color: #53666d !important;
}

@media (prefers-reduced-motion: reduce) {
  .blog-resource-links a,
  .blog-action-button,
  .blog-resource-links a::before,
  .blog-action-button::before,
  .blog-resource-links a svg,
  .blog-action-button svg,
  .blog-action-button strong {
    transition: none !important;
  }
}

/* V57 - compact premium service FAQ accordions */
.category-faq-section {
  padding-top: clamp(56px, 6vw, 86px) !important;
  padding-bottom: clamp(64px, 7vw, 96px) !important;
}

.category-faq-section .section-head {
  max-width: min(980px, 100%);
  margin-inline: auto;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.category-faq-list {
  max-width: min(980px, 100%);
  display: grid !important;
  gap: 10px;
  margin-inline: auto;
  border-top: 0 !important;
}

.category-faq-list details {
  border: 1px solid rgba(149, 166, 174, 0.18) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 13, 16, 0.68) !important;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.16);
}

.category-faq-list summary {
  min-height: 58px !important;
  padding: 17px 18px !important;
  color: var(--ew-text) !important;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem) !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

.category-faq-list summary::after {
  position: static !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 0.96rem !important;
}

.category-faq-list details p {
  max-width: 820px !important;
  padding: 0 18px 18px !important;
  color: var(--ew-muted) !important;
  font-size: 0.96rem;
  line-height: 1.7 !important;
}

.category-faq-list details[open] {
  border-color: rgba(34, 199, 232, 0.32) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 199, 232, 0.1), transparent 34%),
    rgba(8, 13, 16, 0.78) !important;
}

html:root[data-theme="light"] .category-faq-list details {
  border-color: rgba(17, 28, 32, 0.12) !important;
  background: #ffffff !important;
  box-shadow: 0 14px 38px rgba(18, 34, 39, 0.07) !important;
}

html:root[data-theme="light"] .category-faq-list details[open] {
  border-color: rgba(0, 137, 164, 0.24) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 199, 232, 0.08), transparent 34%),
    #ffffff !important;
}

html:root[data-theme="light"] .category-faq-list details p {
  color: #4e5f65 !important;
}

@media (max-width: 720px) {
  .category-faq-section .section-head,
  .category-faq-list {
    max-width: 100%;
  }

  .category-faq-list summary {
    min-height: 54px !important;
    padding: 15px !important;
  }

  .category-faq-list details p {
    padding-inline: 15px !important;
  }
}

@keyframes ew-header-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to { opacity: 1; transform: translateX(-50%); }
}

@keyframes ew-hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes ew-image-in {
  from { opacity: 0; transform: scale(1.045); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 760px) {
  body:not(:has(#home-positioning)) .contact-section {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 48px;
    margin: 0 auto;
    padding: 72px 18px;
  }

  body:not(:has(#home-positioning)) .contact-section .contact-copy {
    padding-top: 0;
  }

  .lead-panel {
    padding: 26px 20px;
  }
}

/* V11 — seamless inquiry canvas (authoritative) */
html:root body:not(:has(#home-positioning)) .contact-section {
  width: 100%;
  max-width: none;
  padding: 110px max(24px, calc((100vw - var(--ew-max)) / 2));
  box-shadow: none;
}

/* V12 — premium navigation system */
/* V14 — disciplined client-facing header */
/* V15 — brand alignment and premium project narrative */
/* V16 — compact project-sharing layout */
/* V18 — professional site footer */
html:root body .footer.footer-pro {
  width: 100%;
  max-width: none;
  display: block;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f7f7;
  background: #080c0e;
}

html:root body .footer.footer-pro .footer-main,
html:root body .footer.footer-pro .footer-bottom {
  width: min(calc(100% - 56px), 1440px);
  margin-inline: auto;
}

html:root body .footer.footer-pro .footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(130px, 0.4fr) minmax(180px, 0.5fr) minmax(160px, 0.42fr);
  gap: clamp(32px, 4vw, 64px);
  padding: 58px 0 48px;
}

html:root body .nav-shell .nav {
  gap: 6px;
}

html:root body .nav-shell .nav a {
  padding-inline: clamp(9px, 0.7vw, 14px);
}

html:root body .footer.footer-pro .footer-brand {
  max-width: 520px;
}

html:root body .footer.footer-pro .footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #f7f9f9;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

html:root body .footer.footer-pro .footer-brand-line {
  width: 3px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #42dcf5, #0a8da9);
  box-shadow: 0 0 20px rgba(34, 199, 232, 0.28);
}

html:root body .footer.footer-pro .footer-brand > p {
  max-width: 500px;
  margin: 20px 0 21px;
  color: rgba(224, 231, 233, 0.66);
  font-size: 0.95rem;
  line-height: 1.65;
}

html:root body .footer.footer-pro .footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(238, 246, 247, 0.82);
  font-size: 0.9rem;
}

html:root body .footer.footer-pro .footer-contact-link svg {
  width: 17px;
  height: 17px;
  color: var(--ew-accent);
}

html:root body .footer.footer-pro .footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

html:root body .footer.footer-pro .footer-column h2 {
  margin: 0 0 10px;
  color: #f5f8f8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

html:root body .footer.footer-pro .footer-column a {
  position: relative;
  width: fit-content;
  padding: 2px 0;
  color: rgba(224, 231, 233, 0.64);
  font-size: 0.9rem;
  transition: color 160ms ease, transform 160ms ease;
}

html:root body .footer.footer-pro .footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

html:root body .footer.footer-pro .footer-socials svg {
  width: 16px;
  height: 16px;
  color: var(--ew-accent);
}

html:root body .footer.footer-pro .footer-column a:hover,
html:root body .footer.footer-pro .footer-column a:focus-visible,
html:root body .footer.footer-pro .footer-contact-link:hover,
html:root body .footer.footer-pro .footer-contact-link:focus-visible {
  color: #f7fbfc;
  transform: translateX(3px);
  outline: none;
}

html:root body .footer.footer-pro .footer-bottom {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

html:root body .footer.footer-pro .footer-bottom p,
html:root body .footer.footer-pro .footer-bottom > span {
  margin: 0;
  color: rgba(219, 227, 229, 0.48);
  font-size: 0.78rem;
}

html:root body .footer.footer-pro .footer-admin {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(34, 199, 232, 0.28);
  border-radius: 9px;
  color: rgba(227, 246, 249, 0.82);
  background: rgba(34, 199, 232, 0.055);
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

html:root body .footer.footer-pro .footer-admin svg {
  width: 15px;
  height: 15px;
}

html:root body .footer.footer-pro .footer-admin:hover,
html:root body .footer.footer-pro .footer-admin:focus-visible {
  border-color: rgba(34, 199, 232, 0.58);
  color: #f5fcfd;
  background: rgba(34, 199, 232, 0.1);
  outline: none;
}

@media (max-width: 860px) {
  html:root body .footer.footer-pro .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  html:root body .footer.footer-pro .footer-brand {
    grid-column: 1 / -1;
  }

  html:root body .footer.footer-pro .footer-bottom {
    grid-template-columns: 1fr auto;
  }

  html:root body .footer.footer-pro .footer-bottom > span {
    display: none;
  }
}

@media (max-width: 560px) {
  html:root body .footer.footer-pro .footer-main,
  html:root body .footer.footer-pro .footer-bottom {
    width: calc(100% - 36px);
  }

  html:root body .footer.footer-pro .footer-main {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 58px 0 48px;
  }

  html:root body .footer.footer-pro .footer-brand {
    grid-column: auto;
  }

  html:root body .footer.footer-pro .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
    padding: 22px 0;
  }
}

html:root body [data-project-detail] .project-page-hero {
  padding-top: 132px;
  padding-bottom: 54px;
}

html:root body [data-project-detail] .project-page-hero h1 {
  max-width: 900px;
  margin-top: 10px;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

html:root body [data-project-detail] .project-crumb {
  margin-bottom: 34px;
  font-size: 0.8rem;
}

html:root body [data-project-detail] .project-hero-meta {
  margin-top: 24px;
}

html:root body [data-project-detail] > .section {
  padding-top: 58px;
  padding-bottom: 58px;
}

html:root body [data-project-detail] > .section + .section {
  border-top: 1px solid var(--ew-line);
}

html:root body [data-project-detail] .project-section-title {
  margin: 0 0 26px;
  color: var(--ew-ink);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

html:root body [data-project-detail] .project-showcase {
  border-radius: 16px;
}

html:root body [data-project-detail] .project-showcase .case-visual {
  min-height: clamp(300px, 48vw, 600px);
}

html:root body [data-project-detail] .project-overview-card {
  display: block;
  padding: 28px 30px;
  border-radius: 14px;
  background: var(--ew-surface);
}

html:root body [data-project-detail] .project-overview-card > p {
  max-width: 880px;
  color: var(--ew-copy);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0;
}

html:root body [data-project-detail] .project-feature-grid,
html:root body [data-project-detail] .project-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

html:root body [data-project-detail] .project-list-item {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--ew-line);
  border-radius: 10px;
  color: var(--ew-copy);
  background: var(--ew-surface);
  font-size: 0.95rem;
  line-height: 1.45;
}

html:root body [data-project-detail] .project-list-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--ew-accent);
  stroke-width: 2;
}

html:root body [data-project-detail] .spec-table-wrap {
  border-radius: 14px;
}

html:root body [data-project-detail] .project-spec-table th,
html:root body [data-project-detail] .project-spec-table td {
  padding: 18px 20px;
  font-size: 0.94rem;
}

html:root body [data-project-detail] .project-spec-table th {
  width: 32%;
}

html:root body [data-project-detail] .project-model-inline {
  margin-top: 40px;
}

html:root body [data-project-detail] .project-gallery-subhead {
  margin: 0 0 20px;
}

html:root body [data-project-detail] .project-gallery-subhead h3 {
  font-size: 1.2rem;
}

@media (max-width: 760px) {
  html:root body [data-project-detail] .project-page-hero {
    padding-top: 108px;
    padding-bottom: 42px;
  }

  html:root body [data-project-detail] .project-page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  html:root body [data-project-detail] > .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  html:root body [data-project-detail] .project-feature-grid,
  html:root body [data-project-detail] .project-deliverables-grid {
    grid-template-columns: 1fr;
  }

  html:root body [data-project-detail] .project-overview-card {
    padding: 22px;
  }

  html:root body [data-project-detail] .project-showcase .case-visual {
    min-height: 240px;
  }

  html:root body [data-project-detail] .project-spec-table th,
  html:root body [data-project-detail] .project-spec-table td {
    display: block;
    width: 100%;
    padding: 14px 16px;
  }

  html:root body [data-project-detail] .project-spec-table th {
    padding-bottom: 5px;
    border: 0;
  }

  html:root body [data-project-detail] .project-spec-table td {
    padding-top: 5px;
  }
}

html:root body header.site-header .brand {
  line-height: 1;
}

html:root body header.site-header .brand > span:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  transform: translateY(-1px);
}

html:root body header.site-header .brand .brand-mark.has-logo img {
  transform: translateY(-1px) scale(1.13);
}

.project-page-hero .project-hero-copy {
  max-width: 980px;
}

.project-page-hero .project-hero-copy .page-copy {
  max-width: 760px;
}

.project-showcase-section,
.project-overview-section,
.project-features-section,
.project-spec-section,
.project-evidence-section,
.project-deliverables-section {
  padding-top: clamp(84px, 8vw, 118px);
  padding-bottom: clamp(84px, 8vw, 118px);
}

.project-showcase-section + .project-overview-section,
.project-overview-section + .project-features-section,
.project-features-section + .project-spec-section,
.project-spec-section + .project-evidence-section,
.project-evidence-section + .project-deliverables-section {
  border-top: 1px solid var(--ew-line);
}

.project-section-intro {
  margin-bottom: clamp(38px, 5vw, 64px);
}

.project-section-intro h2 {
  max-width: 760px;
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.project-section-intro > p {
  max-width: 500px;
  align-self: end;
}

.project-showcase-section .project-showcase {
  margin-top: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #080c0f;
}

.project-gallery-subhead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: 48px;
  align-items: end;
  margin: 70px 0 28px;
}

.project-gallery-subhead h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.project-gallery-subhead > p {
  color: var(--ew-muted);
}

.project-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 54px;
  align-items: end;
  padding: clamp(34px, 5vw, 62px);
  border: 1px solid var(--ew-line);
  border-radius: 22px;
  background: var(--ew-surface);
}

.project-overview-card > p {
  max-width: 900px;
  color: var(--ew-ink);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.project-overview-card .case-meta {
  justify-content: flex-end;
}

.project-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-feature-grid article {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--ew-line);
  border-radius: 18px;
  background: var(--ew-surface);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.project-feature-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 199, 232, 0.34);
  background: var(--ew-surface-soft);
}

.project-feature-grid article > span,
.project-deliverables-grid article > span {
  color: var(--ew-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-feature-grid h3 {
  max-width: 280px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.12;
}

.project-spec-section .spec-table-wrap {
  max-width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.project-spec-section .project-spec-table th,
.project-spec-section .project-spec-table td {
  padding: 24px 28px;
}

.project-evidence-grid {
  gap: 14px;
}

.project-evidence-grid .project-info-panel {
  min-height: 310px;
  border-radius: 18px;
}

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

.project-deliverables-grid article {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--ew-line);
  border-radius: 18px;
  background: var(--ew-surface);
}

.project-deliverables-grid article p {
  color: var(--ew-ink);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.45;
}

.project-deliverables-grid article svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border: 1px solid rgba(34, 199, 232, 0.35);
  border-radius: 50%;
  color: var(--ew-accent);
}

.project-deliverables-section {
  padding-bottom: clamp(104px, 10vw, 150px);
}

@media (max-width: 900px) {
  .project-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-overview-card {
    grid-template-columns: 1fr;
  }

  .project-overview-card .case-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  html:root body header.site-header .brand > span:last-child {
    min-height: 44px;
    transform: none;
  }

  .project-section-intro,
  .project-gallery-subhead {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .project-feature-grid article {
    min-height: 170px;
  }

  .project-deliverables-grid article {
    min-height: 126px;
    gap: 16px;
    padding: 22px;
  }

  .project-spec-section .project-spec-table th,
  .project-spec-section .project-spec-table td {
    padding: 19px 18px;
  }
}

html:root body header.site-header {
  min-height: 78px;
  padding: 0 max(28px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 8, 10, 0.94);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

html:root body header.site-header::after {
  opacity: 0.22;
}

html:root body header.site-header .brand {
  gap: 12px;
  color: #f6f8f8;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

html:root body header.site-header .brand-mark,
html:root body header.site-header .brand-mark.has-logo {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html:root body header.site-header .brand-mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.16);
  filter: drop-shadow(0 4px 11px rgba(0, 0, 0, 0.26));
}

html:root body header.site-header .nav-shell {
  gap: 10px;
}

html:root body header.site-header .nav {
  gap: 1px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

html:root body header.site-header .nav a {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 9px;
  color: rgba(231, 237, 239, 0.68);
  font-size: 0.82rem;
  font-weight: 650;
}

html:root body header.site-header .nav a:hover,
html:root body header.site-header .nav a:focus-visible,
html:root body header.site-header .nav a[aria-current="page"] {
  color: #f8fafb;
  background: rgba(255, 255, 255, 0.07);
}

html:root body header.site-header .nav a[href*="contact"] {
  min-height: 40px;
  margin-left: 5px;
  padding: 0 17px;
  border: 1px solid #eefbfd;
  border-radius: 9px;
  color: #061014;
  background: #eefbfd;
  box-shadow: none;
}

html:root body header.site-header .nav a[href*="contact"]:hover,
html:root body header.site-header .nav a[href*="contact"]:focus-visible,
html:root body header.site-header .nav a[href*="contact"][aria-current="page"] {
  color: #041013;
  border-color: #bceff7;
  background: #dff9fc;
  transform: none;
}

html:root body header.site-header .icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: transparent;
}

html:root[data-theme="light"] body header.site-header {
  border-bottom-color: rgba(10, 24, 29, 0.1);
  background: rgba(249, 250, 248, 0.95);
  box-shadow: 0 10px 35px rgba(9, 25, 31, 0.07);
}

html:root[data-theme="light"] body header.site-header .brand {
  color: #0a1215;
}

html:root[data-theme="light"] body header.site-header .nav {
  border-color: rgba(10, 24, 29, 0.1);
  background: rgba(10, 24, 29, 0.025);
}

html:root[data-theme="light"] body header.site-header .nav a {
  color: rgba(16, 29, 33, 0.64);
}

html:root[data-theme="light"] body header.site-header .nav a:hover,
html:root[data-theme="light"] body header.site-header .nav a:focus-visible,
html:root[data-theme="light"] body header.site-header .nav a[aria-current="page"] {
  color: #091215;
  background: rgba(8, 24, 29, 0.06);
}

html:root[data-theme="light"] body header.site-header .nav a[href*="contact"] {
  color: #f7fafb;
  border-color: #081114;
  background: #081114;
}

html:root[data-theme="light"] body header.site-header .icon-button {
  border-color: rgba(10, 24, 29, 0.12);
  color: #10191c;
}

@media (max-width: 980px) {
  html:root body header.site-header {
    padding-right: 18px;
    padding-left: 18px;
  }

  html:root body header.site-header .brand-mark,
  html:root body header.site-header .brand-mark.has-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
}

@media (max-width: 760px) {
  html:root body header.site-header {
    min-height: 72px;
    padding: 0 15px;
  }

  html:root body header.site-header .brand {
    gap: 9px;
    font-size: 1.02rem;
  }

  html:root body header.site-header .brand-mark,
  html:root body header.site-header .brand-mark.has-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  html:root body header.site-header .nav {
    top: 72px;
    right: 12px;
    left: 12px;
    display: none;
    padding: 9px;
    border-radius: 14px;
    background: rgba(6, 9, 11, 0.985);
  }

  html:root body header.site-header .nav.is-open {
    display: grid;
  }

  html:root body header.site-header .nav a[href*="contact"] {
    margin: 5px 0 0;
  }
}

html:root body .site-header {
  min-height: 88px;
  padding: 0 max(24px, calc((100vw - var(--ew-max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f8f8;
  background:
    linear-gradient(90deg, rgba(12, 198, 229, 0.035), transparent 30%, transparent 70%, rgba(12, 198, 229, 0.025)),
    rgba(5, 7, 8, 0.9);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

html:root body .site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 18%, rgba(22, 198, 231, 0.5) 50%, transparent 82%);
  opacity: 0.48;
}

html:root body .site-header.is-scrolled {
  background: rgba(5, 7, 8, 0.96);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

html:root body .site-header .brand {
  gap: 13px;
  color: #f7f9f9;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

html:root body .site-header .brand-mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #071014;
  background: linear-gradient(145deg, #ffffff 0%, #e7f9fc 58%, #9eeaf5 100%);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 4px rgba(20, 198, 231, 0.08), 0 10px 30px rgba(0, 0, 0, 0.3);
}

html:root body .site-header .brand-mark.has-logo {
  padding: 3px;
  border-color: rgba(20, 198, 231, 0.34);
  background: #070c0f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 0 4px rgba(20, 198, 231, 0.07), 0 12px 32px rgba(0, 0, 0, 0.32);
}

html:root body .site-header .brand-mark.has-logo img {
  object-fit: contain;
}

html:root body .site-header .brand-mark::before {
  color: #071014;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.08em;
}

html:root body .site-header .nav-shell {
  gap: 12px;
}

html:root body .site-header .nav {
  gap: 4px;
}

html:root body .site-header .nav a {
  position: relative;
  min-height: 44px;
  padding: 0 14px;
  color: rgba(226, 234, 237, 0.68);
  font-size: 0.84rem;
  font-weight: 680;
  letter-spacing: -0.01em;
}

html:root body .site-header .nav a:not([href="./contact"])::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: #19c7e8;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

html:root body .site-header .nav a:hover,
html:root body .site-header .nav a:focus-visible,
html:root body .site-header .nav a[aria-current="page"] {
  color: #f7f9f9;
  background: rgba(255, 255, 255, 0.045);
}

html:root body .site-header .nav a:not([href="./contact"]):hover::after,
html:root body .site-header .nav a:not([href="./contact"]):focus-visible::after,
html:root body .site-header .nav a:not([href="./contact"])[aria-current="page"]::after {
  transform: scaleX(1);
}

html:root body .site-header .nav a[href="./contact"] {
  min-height: 48px;
  margin-left: 10px;
  padding: 0 21px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  color: #071014;
  background: #f7f9f9;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

html:root body .site-header .nav a[href="./contact"]:hover,
html:root body .site-header .nav a[href="./contact"]:focus-visible {
  color: #041014;
  border-color: #b7f2fa;
  background: #dffaff;
  transform: translateY(-1px);
}

html:root body .site-header .icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #e7f5f7;
  background: rgba(255, 255, 255, 0.045);
}

html:root body .site-header .icon-button:hover,
html:root body .site-header .icon-button:focus-visible {
  border-color: rgba(25, 199, 232, 0.55);
  background: rgba(25, 199, 232, 0.1);
}

html:root[data-theme="light"] body .site-header {
  border-bottom-color: rgba(12, 26, 31, 0.1);
  color: #0a1113;
  background:
    linear-gradient(90deg, rgba(20, 198, 231, 0.035), transparent 32%, transparent 68%, rgba(20, 198, 231, 0.025)),
    rgba(249, 250, 248, 0.91);
  box-shadow: 0 14px 38px rgba(15, 30, 35, 0.09);
}

html:root[data-theme="light"] body .site-header .brand,
html:root[data-theme="light"] body .site-header .nav a:hover,
html:root[data-theme="light"] body .site-header .nav a:focus-visible,
html:root[data-theme="light"] body .site-header .nav a[aria-current="page"] {
  color: #0a1113;
}

html:root[data-theme="light"] body .site-header .nav a {
  color: rgba(20, 31, 34, 0.62);
}

html:root[data-theme="light"] body .site-header .icon-button {
  border-color: rgba(12, 26, 31, 0.12);
  color: #10191c;
  background: rgba(8, 18, 21, 0.035);
}

html:root[data-theme="light"] body .site-header .nav a[href="./contact"] {
  color: #f7f9f9;
  border-color: #091114;
  background: #091114;
}

html:root body .site-header .mobile-theme-toggle {
  display: none;
}

@media (max-width: 760px) {
  html:root body .site-header {
    min-height: 74px;
    padding: 0 15px;
  }

  html:root body .site-header .brand {
    gap: 10px;
    font-size: 1.04rem;
  }

  html:root body .site-header .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  html:root body .site-header .nav {
    top: 74px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(7, 10, 12, 0.98);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
  }

  html:root[data-theme="light"] body .site-header .nav {
    border-color: rgba(12, 26, 31, 0.12);
    background: #f8faf8;
    box-shadow: 0 24px 70px rgba(9, 25, 31, 0.18);
  }

  html:root[data-theme="light"] body .site-header .nav a {
    color: rgba(9, 18, 21, 0.78);
    background: transparent;
  }

  html:root[data-theme="light"] body .site-header .nav a:hover,
  html:root[data-theme="light"] body .site-header .nav a:focus-visible,
  html:root[data-theme="light"] body .site-header .nav a[aria-current="page"] {
    color: #071014;
    background: rgba(8, 18, 21, 0.07);
  }

  html:root[data-theme="light"] body .site-header .nav a[href="./contact"],
  html:root[data-theme="light"] body .site-header .nav a[href*="contact"] {
    color: #ffffff;
    background: #071014;
    border-color: #071014;
  }

  html:root body .site-header .nav a[href="./contact"] {
    margin: 6px 0 0;
  }

  html:root body .site-header .mobile-theme-toggle {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding: 0 15px;
    border: 1px solid rgba(149, 166, 174, 0.18);
    border-radius: 12px;
    color: #edf7f8;
    background: rgba(255, 255, 255, 0.04);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  html:root body .site-header .mobile-theme-toggle span {
    color: rgba(226, 234, 237, 0.72);
  }

  html:root body .site-header .mobile-theme-toggle strong {
    margin-left: auto;
    color: #f7f9f9;
    font-size: 0.88rem;
  }

  html:root body .site-header .mobile-theme-toggle i,
  html:root body .site-header .mobile-theme-toggle svg {
    width: 18px;
    height: 18px;
    color: #19c7e8;
  }

  html:root[data-theme="light"] body .site-header .mobile-theme-toggle {
    color: #10191c;
    border-color: rgba(12, 26, 31, 0.12);
    background: rgba(8, 18, 21, 0.035);
  }

  html:root[data-theme="light"] body .site-header .mobile-theme-toggle span {
    color: rgba(20, 31, 34, 0.62);
  }

  html:root[data-theme="light"] body .site-header .mobile-theme-toggle strong {
    color: #0a1113;
  }
}

@media (max-width: 760px) {
  html:root body:not(:has(#home-positioning)) .contact-section {
    width: 100%;
    padding: 72px 18px;
  }
}

/* V9 — search-intent service landing sections */
.category-service-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(54px, 8vw, 110px);
  align-items: start;
}

.category-service-intro {
  position: sticky;
  top: 140px;
}

.category-service-intro h2 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 4.2vw, 4.4rem);
}

.category-service-intro > p:last-child {
  max-width: 650px;
  color: var(--ew-muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.category-service-grid {
  display: grid;
  gap: 14px;
}

.category-service-grid .card {
  min-height: 210px;
  padding: 32px;
}

.category-service-grid .card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.category-service-grid .card p {
  color: var(--ew-muted);
  line-height: 1.72;
}

.category-faq-list {
  border-top: 1px solid var(--ew-line);
}

.category-faq-list details {
  border-bottom: 1px solid var(--ew-line);
}

.category-faq-list summary {
  position: relative;
  padding: 26px 54px 26px 0;
  color: var(--ew-text);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.category-faq-list summary::-webkit-details-marker {
  display: none;
}

.category-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 24px;
  right: 4px;
  color: var(--ew-accent);
  font-size: 1.5rem;
  font-weight: 400;
}

.category-faq-list details[open] summary::after {
  content: "−";
}

.category-faq-list details p {
  max-width: 880px;
  padding: 0 54px 28px 0;
  color: var(--ew-muted);
  line-height: 1.72;
}

.service-link {
  margin-top: auto;
  padding-top: 22px;
}

@media (max-width: 820px) {
  .category-service-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .category-service-intro {
    position: static;
  }
}

/* SEO growth: evidence-led case studies and engineering insights */
.insights-nav-link {
  color: var(--ew-muted);
}

.insights-nav-link:hover,
.insights-nav-link:focus-visible,
.insights-nav-link[aria-current="page"] {
  color: var(--ew-text);
}

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

.project-evidence-grid .project-info-panel {
  min-height: 280px;
  padding: 34px;
}

.project-evidence-grid .project-info-panel > span {
  display: block;
  margin-bottom: 54px;
  color: var(--ew-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.project-evidence-grid .project-info-panel h3 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.project-evidence-grid .project-info-panel p,
.project-evidence-grid .project-info-panel li {
  color: var(--ew-muted);
  line-height: 1.72;
}

.project-evidence-grid .verified-outcomes {
  border-color: rgba(34, 199, 232, 0.32);
}

.insights-hero .page-copy {
  max-width: 820px;
}

.insights-section {
  padding-top: 96px;
}

.insights-list {
  display: grid;
  gap: 28px;
}

.insight-article {
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid var(--ew-line);
  border-radius: 24px;
  background: #0d1115;
}

.insight-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--ew-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.insight-meta span + span {
  color: var(--ew-muted);
}

.insight-article > h2 {
  max-width: 980px;
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.insight-summary {
  max-width: 900px;
  margin: 22px 0 46px;
  color: var(--ew-muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

.insight-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insight-body section {
  padding-top: 24px;
  border-top: 1px solid var(--ew-line);
}

.insight-body h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.insight-body p,
.insight-takeaway p {
  color: var(--ew-muted);
  line-height: 1.72;
}

.insight-takeaway {
  max-width: 900px;
  margin: 40px 0 28px;
  padding: 22px 24px;
  border-left: 2px solid var(--ew-accent);
  background: rgba(34, 199, 232, 0.045);
}

.insight-takeaway strong {
  display: block;
  margin-bottom: 8px;
}

.insight-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--ew-muted);
}

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

@media (max-width: 760px) {
  .project-evidence-grid {
    grid-template-columns: 1fr;
  }

  .project-evidence-grid .project-info-panel {
    min-height: 0;
    padding: 26px 22px;
  }

  .project-evidence-grid .project-info-panel > span {
    margin-bottom: 34px;
  }

  .insights-section {
    padding-top: 72px;
  }

  .insight-article {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .insight-article > h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

/* V4 — final professional refinement */
.hero {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 790px;
  display: block;
  margin: 0;
  padding: 176px max(24px, calc((100vw - var(--ew-max)) / 2)) 104px;
  overflow: hidden;
  isolation: isolate;
  background: #050607;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-media::before {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.98) 0%, rgba(3, 5, 6, 0.93) 34%, rgba(3, 5, 6, 0.54) 62%, rgba(3, 5, 6, 0.18) 100%),
    linear-gradient(180deg, rgba(3, 5, 6, 0.18), rgba(3, 5, 6, 0.58));
}

.hero-media::after {
  display: none;
}

.hero-media img {
  object-position: 64% center;
  filter: saturate(0.72) contrast(1.08) brightness(0.7);
}

.hero-grid {
  width: min(100%, var(--ew-max));
  display: block;
  margin: 0 auto;
}

.hero-content {
  max-width: 740px;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(3.7rem, 5.6vw, 5.45rem);
  text-wrap: balance;
}

.hero-copy {
  max-width: 690px;
  color: rgba(225, 231, 235, 0.72);
}

.hero .button.secondary {
  color: #f7f8f8;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(3, 5, 6, 0.18);
  backdrop-filter: blur(10px);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(3.15rem, 5.25vw, 4.9rem);
  text-wrap: balance;
}

.category-hero-grid,
.project-title-grid {
  grid-template-columns: minmax(0, 1fr);
}

.category-hero-grid > div:first-child {
  max-width: 940px;
}

.category-hero-visual {
  display: none;
}

.category-page-hero h1 {
  max-width: 900px;
}

.project-page-hero .project-title-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.4fr);
  gap: clamp(46px, 7vw, 92px);
}

.project-page-hero h1 {
  font-size: clamp(3rem, 5vw, 4.65rem);
}

.project-cta-visual {
  display: none;
}

.project-cta-band .dark-band-inner {
  grid-template-columns: minmax(0, 860px);
  justify-content: start;
  padding-top: 92px;
  padding-bottom: 92px;
}

.project-cta-band h2 {
  max-width: 780px;
  font-size: clamp(2.8rem, 4.7vw, 4.65rem);
}

.project-cta-band p {
  max-width: 680px;
}

body:not(:has(#home-positioning)) .contact-section {
  grid-template-columns: minmax(0, 0.72fr) minmax(440px, 0.62fr);
  gap: clamp(60px, 8vw, 110px);
  align-items: center;
  padding: clamp(44px, 5.5vw, 68px);
}

body:not(:has(#home-positioning)) .contact-section .contact-copy {
  max-width: 560px;
}

body:not(:has(#home-positioning)) .contact-section .contact-copy h2 {
  max-width: 540px;
  font-size: clamp(2.7rem, 4vw, 4rem);
  line-height: 1;
}

body:not(:has(#home-positioning)) .contact-section .contact-copy > p:not(.section-kicker) {
  max-width: 520px;
}

[data-project-form-link] {
  display: none;
}

.lead-panel {
  padding: 32px;
  border: 1px solid var(--ew-line);
  border-radius: 20px;
  background: #0d1115;
}

:root[data-theme="light"] .lead-panel {
  background: #f7f8f6;
}

.form-head h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
}

.lead-form input,
.lead-form select {
  min-height: 52px;
}

.lead-form textarea {
  min-height: 150px;
}

.lead-submit {
  width: 100%;
  justify-content: center;
}

.section-head h2,
.split-heading h2 {
  text-wrap: balance;
}

@media (max-width: 760px) {
  .hero {
    min-height: 780px;
    padding: 128px 18px 76px;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .hero-media::before {
    background:
      linear-gradient(180deg, rgba(3, 5, 6, 0.78) 0%, rgba(3, 5, 6, 0.93) 54%, rgba(3, 5, 6, 0.99) 100%),
      linear-gradient(90deg, rgba(3, 5, 6, 0.7), rgba(3, 5, 6, 0.28));
  }

  .hero-media img {
    object-position: 58% center;
    filter: saturate(0.66) contrast(1.05) brightness(0.56);
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13.5vw, 3.85rem);
  }

  .page-hero h1,
  .project-page-hero h1 {
    font-size: clamp(2.65rem, 12.5vw, 3.65rem);
  }

  .project-page-hero .project-title-grid {
    grid-template-columns: 1fr;
  }

  body:not(:has(#home-positioning)) .contact-section {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 30px 22px;
  }

  body:not(:has(#home-positioning)) .contact-section .contact-copy h2 {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
  }

  .lead-panel {
    padding: 24px 18px;
  }
}

/* V6 final cascade guard */
[aria-labelledby="project-categories"] .section-head,
[aria-labelledby="case-studies"] .section-head {
  grid-template-columns: minmax(0, 860px);
  justify-content: start;
}

[aria-labelledby="project-categories"] .section-head > p,
[aria-labelledby="case-studies"] .section-head > p {
  display: none;
}

.case-visual:not(.has-image)::after {
  content: "";
  display: none;
}

body:not(:has(#home-positioning)) .contact-section {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 0.62fr) minmax(500px, 0.9fr);
  gap: clamp(64px, 8vw, 112px);
  align-items: start;
  margin: 0 auto;
  padding: 110px max(24px, calc((100vw - var(--ew-max)) / 2));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(:has(#home-positioning)) .contact-section .contact-copy {
  max-width: 480px;
  padding-top: 36px;
}

.lead-panel {
  padding: 40px;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.lead-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 760px) {
  body:not(:has(#home-positioning)) .contact-section {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 48px;
    margin: 0 auto;
    padding: 72px 18px;
  }

  body:not(:has(#home-positioning)) .contact-section .contact-copy {
    padding-top: 0;
  }

  .lead-panel {
    padding: 26px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* V2 — dark editorial direction based on the approved reference */
:root,
:root[data-theme="dark"] {
  --ew-bg: #07090b;
  --ew-surface: #111418;
  --ew-surface-soft: #171b20;
  --ew-ink: #f7f8f8;
  --ew-copy: #abb2bd;
  --ew-muted: #737d89;
  --ew-line: rgba(255, 255, 255, 0.12);
  --ew-accent: #22c7e8;
  --ew-accent-soft: rgba(34, 199, 232, 0.12);
  --ew-dark: #050607;
  --header-bg: rgba(5, 6, 7, 0.92);
  --header-text: #f7f8f8;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.24);
  --bg: var(--ew-bg);
  --bg-soft: var(--ew-bg);
  --surface: var(--ew-surface);
  --surface-strong: var(--ew-surface);
  --panel: var(--ew-surface-soft);
  --text: var(--ew-ink);
  --text-soft: var(--ew-copy);
  --text-muted: var(--ew-muted);
  --line: var(--ew-line);
  --line-strong: rgba(255, 255, 255, 0.2);
  --green: var(--ew-accent);
  --green-2: var(--ew-accent);
  --cyan: var(--ew-accent);
  --amber: var(--ew-accent);
}

:root[data-theme="light"] {
  --ew-bg: #f3f4f1;
  --ew-surface: #ffffff;
  --ew-surface-soft: #e8ebe7;
  --ew-ink: #111614;
  --ew-copy: #5b635f;
  --ew-muted: #7b847f;
  --ew-line: rgba(17, 22, 20, 0.13);
  --ew-accent: #008eaa;
  --ew-accent-soft: rgba(0, 142, 170, 0.1);
  --ew-dark: #111614;
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-text: #111614;
  --shadow: 0 28px 90px rgba(15, 25, 21, 0.13);
  --shadow-soft: 0 18px 50px rgba(15, 25, 21, 0.09);
}

body {
  color: var(--ew-ink);
  background: var(--ew-bg);
}

.site-header {
  top: 0;
  width: 100%;
  min-height: 96px;
  padding: 0 max(24px, calc((100vw - var(--ew-max)) / 2));
  border: 0;
  border-bottom: 1px solid var(--ew-line);
  border-radius: 0;
  color: var(--ew-ink);
  background: var(--header-bg);
  box-shadow: none;
}

.site-header.is-scrolled {
  border-color: var(--ew-line);
  background: color-mix(in srgb, var(--ew-bg), transparent 3%);
}

.brand {
  color: var(--ew-ink);
  font-size: 1.18rem;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 1px solid var(--ew-line);
  border-radius: 50%;
  color: var(--ew-bg);
  background: var(--ew-ink);
}

.brand-mark::before {
  color: var(--ew-bg);
}

.nav {
  gap: 10px;
}

.nav a {
  min-height: 46px;
  padding: 0 13px;
  color: var(--ew-copy);
  background: transparent;
  font-size: 0.86rem;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--ew-ink);
  background: transparent;
}

.nav a[href="./contact"],
.nav a[href="./contact"]:hover,
.nav a[href="./contact"]:focus-visible,
.nav a[href="./contact"][aria-current="page"] {
  min-height: 54px;
  margin-left: 18px;
  padding: 0 25px;
  border-radius: 16px;
  color: #080a0b;
  background: #f7f8f8;
}

.icon-button {
  border: 0;
  color: var(--ew-ink);
}

.hero {
  width: min(calc(100% - 48px), var(--ew-max));
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.72fr);
  gap: clamp(48px, 7vw, 100px);
  min-height: 780px;
  padding: 150px 0 70px;
  color: var(--ew-ink);
  background: transparent;
}

.hero-media {
  height: 590px;
  border: 1px solid var(--ew-line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 6, 8, 0.54));
}

.hero-media::after {
  z-index: 2;
  content: "PRODUCT ENGINEERING • PCB • IOT";
  color: #dffaff;
  border-color: rgba(34, 199, 232, 0.35);
  background: rgba(3, 8, 11, 0.72);
}

.hero-media img {
  filter: saturate(0.8) contrast(1.06) brightness(0.82);
}

.hero-content {
  max-width: 720px;
}

.eyebrow,
.page-kicker,
.section-kicker,
.tag {
  color: var(--ew-accent);
}

.hero .eyebrow {
  width: fit-content;
  margin-bottom: 28px;
  padding: 10px 15px;
  border: 1px solid var(--ew-line);
  border-radius: 999px;
  color: var(--ew-ink);
  background: var(--ew-surface);
  letter-spacing: 0.025em;
}

.hero .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--ew-accent);
}

.hero h1,
.page-hero h1 {
  color: var(--ew-ink);
  font-weight: 690;
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.7rem, 5.75vw, 5.65rem);
}

.accent-word {
  color: var(--ew-accent);
}

.hero-copy {
  max-width: 680px;
  color: var(--ew-copy);
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 42px;
}

.button {
  min-height: 58px;
  padding: 0 26px;
  border-radius: 14px;
}

.button.primary,
:root[data-theme="dark"] .button.primary {
  color: #080a0b;
  border-color: #f7f8f8;
  background: #f7f8f8;
}

.button.secondary {
  color: var(--ew-ink);
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
}

:root[data-theme="light"] .button.secondary {
  border-color: var(--ew-line);
}

.client-rail,
[aria-labelledby="home-capability"] {
  display: none;
}

[aria-labelledby="proof-details"] {
  display: none;
}

body:has(#home-positioning) main {
  display: flex;
  flex-direction: column;
}

body:has(#home-positioning) .hero {
  order: 1;
}

body:has(#home-positioning) [aria-labelledby="home-positioning"] {
  order: 2;
}

body:has(#home-positioning) [aria-labelledby="home-work"] {
  order: 3;
}

body:has(#home-positioning) .about-founder {
  order: 4;
}

body:has(#home-positioning) [aria-labelledby="home-contact"] {
  order: 5;
}

.section {
  padding: 104px 0;
}

.section h2,
.contact-section h2,
.split-heading h2,
.dark-band h2 {
  color: var(--ew-ink);
}

[aria-labelledby="home-positioning"] {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--ew-max)) / 2));
  padding-left: max(24px, calc((100vw - var(--ew-max)) / 2));
  border-top: 1px solid var(--ew-line);
  border-bottom: 1px solid var(--ew-line);
  background: #0a0c0f;
}

:root[data-theme="light"] [aria-labelledby="home-positioning"] {
  background: #e9ece8;
}

[aria-labelledby="home-positioning"] .split-heading {
  display: block;
  margin-bottom: 58px;
  text-align: center;
}

[aria-labelledby="home-positioning"] .split-heading h2 {
  margin: 0 auto;
  font-size: clamp(2.8rem, 4vw, 4.35rem);
}

[aria-labelledby="home-positioning"] .split-copy {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--ew-copy);
  font-size: 1.06rem;
}

.home-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.proof-item {
  min-height: 355px;
  padding: 38px 40px;
  border-color: var(--ew-line);
  border-radius: 22px;
  background: var(--ew-surface);
}

.proof-item svg,
.proof-item > i {
  width: 42px;
  height: 42px;
  margin-bottom: 54px;
  stroke-width: 1.7;
  color: var(--ew-accent);
}

.proof-item strong {
  margin-bottom: 16px;
  color: var(--ew-ink);
  font-size: 1.55rem;
  line-height: 1.18;
}

.proof-item span {
  color: var(--ew-copy);
  font-size: 0.98rem;
}

[aria-labelledby="home-work"] {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--ew-max)) / 2));
  padding-left: max(24px, calc((100vw - var(--ew-max)) / 2));
  background: #050607;
}

:root[data-theme="light"] [aria-labelledby="home-work"] {
  background: #f3f4f1;
}

[aria-labelledby="home-work"] .section-head {
  align-items: end;
}

[aria-labelledby="home-work"] .work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 34px;
}

.compact-work-grid,
.category-work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 34px;
}

.case-card,
.case-card.featured {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.case-card:hover {
  box-shadow: none;
}

.case-visual,
.featured .case-visual,
.compact-work-grid .case-visual,
.compact-work-grid .featured .case-visual {
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--ew-line);
  border-radius: 22px;
}

.case-content,
.featured .case-content {
  padding: 22px 0 0;
}

.case-card h3 {
  color: var(--ew-ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.case-card p:not(.tag) {
  max-width: 620px;
  color: var(--ew-copy);
}

.case-content .tag {
  color: var(--ew-accent);
  letter-spacing: 0.1em;
}

.case-meta {
  display: none;
}

.project-learn-more {
  margin-top: 10px;
}

.about-founder {
  width: min(calc(100% - 48px), var(--ew-max));
  padding: 112px 0;
}

.about-founder-grid {
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1.1fr);
  gap: clamp(54px, 8vw, 110px);
  align-items: center;
  padding: clamp(48px, 7vw, 82px);
  border-color: var(--ew-line);
  border-radius: 26px;
  background: var(--ew-surface);
}

.about-photo-wrap {
  display: grid;
  place-items: center;
}

.about-photo {
  width: min(100%, 270px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(34, 199, 232, 0.34);
  border-radius: 50%;
  color: var(--ew-ink);
  background:
    radial-gradient(circle at 34% 28%, rgba(34, 199, 232, 0.25), transparent 34%),
    linear-gradient(145deg, #141b20, #090c0e);
  box-shadow: 0 0 0 12px rgba(34, 199, 232, 0.05);
}

.about-photo span {
  color: #f7f8f8;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.about-photo.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy h2,
.about-copy p {
  color: var(--ew-ink);
}

.about-copy > p:not(.section-kicker) {
  color: var(--ew-copy);
  font-size: 1.05rem;
}

.about-skills span {
  color: var(--ew-copy);
  border-color: var(--ew-line);
}

[aria-labelledby="home-contact"] {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 70px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 86px max(28px, calc((100vw - var(--ew-max)) / 2));
  width: 100%;
  max-width: none;
  border-width: 1px 0 0;
  border-radius: 0;
  background: #0c1013;
}

body:not(:has(#home-positioning)) .contact-section {
  width: min(calc(100% - 48px), var(--ew-max));
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 0.65fr);
  gap: clamp(54px, 8vw, 104px);
  align-items: start;
  margin: 96px auto;
  padding: clamp(42px, 6vw, 70px);
  border: 1px solid var(--ew-line);
  border-radius: 24px;
  background: var(--ew-surface);
}

:root[data-theme="light"] [aria-labelledby="home-contact"] {
  background: #e8ebe7;
}

[aria-labelledby="home-contact"] .contact-copy {
  max-width: 800px;
}

[aria-labelledby="home-contact"] h2 {
  max-width: 800px;
}

[aria-labelledby="home-contact"] .contact-actions {
  align-self: center;
}

.page-hero {
  width: 100%;
  max-width: none;
  padding: 176px max(24px, calc((100vw - var(--ew-max)) / 2)) 96px;
  border-bottom: 1px solid var(--ew-line);
  background: #090b0e;
}

:root[data-theme="light"] .page-hero {
  background: #e9ece8;
}

.page-hero h1 {
  font-size: clamp(3.3rem, 6vw, 5.8rem);
}

.page-copy {
  color: var(--ew-copy);
}

.service-card,
.card,
.timeline-card,
.project-info-panel,
.project-summary-card {
  border-color: var(--ew-line);
  background: var(--ew-surface);
}

.service-card {
  min-height: 440px;
  padding: 38px;
  border-radius: 22px;
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 58px;
  color: var(--ew-accent);
  background: transparent;
}

.service-card h3,
.card h3,
.timeline-card h3 {
  color: var(--ew-ink);
}

.spec-list,
.service-card > p,
.card p,
.timeline-card p {
  color: var(--ew-copy);
}

.dark-band {
  background: #0a0d10;
}

.project-category-card {
  border-color: var(--ew-line);
  background: var(--ew-surface);
}

.project-category-content h3,
.project-spec-table td,
.project-info-panel h3,
.project-summary-card strong {
  color: var(--ew-ink);
}

.category-nav a {
  color: var(--ew-copy);
  border-color: var(--ew-line);
  background: var(--ew-surface);
}

.category-nav a[aria-current="page"] {
  color: #061014;
  border-color: var(--ew-accent);
  background: var(--ew-accent);
}

.project-showcase,
.spec-table-wrap {
  border-color: var(--ew-line);
  background: var(--ew-surface);
}

.project-spec-grid div,
.project-spec-table th {
  border-color: var(--ew-line);
  background: var(--ew-surface-soft);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  color: var(--ew-ink);
  border-color: var(--ew-line);
  background: var(--ew-surface-soft);
}

.form-head h2,
.lead-form label > span {
  color: var(--ew-ink);
}

.footer {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--ew-max)) / 2));
  padding-left: max(24px, calc((100vw - var(--ew-max)) / 2));
  border-top-color: var(--ew-line);
  color: var(--ew-muted);
  background: #050607;
}

.footer > span:first-child {
  color: #f7f8f8;
}

:root[data-theme="light"] .footer {
  background: #111614;
}

@media (max-width: 980px) {
  .site-header {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.65fr);
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 7vw, 4.8rem);
  }

  .proof-item {
    padding: 30px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 0;
    width: 100%;
    min-height: 72px;
    padding: 0 14px;
    border-radius: 0;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .nav {
    top: 72px;
    right: 12px;
    left: 12px;
    color: var(--ew-ink);
    background: var(--ew-surface);
  }

  .nav a[href="./contact"],
  .nav a[href="./contact"]:hover,
  .nav a[href="./contact"]:focus-visible {
    min-height: 50px;
    margin: 5px 0 0;
    color: #080a0b;
    background: #f7f8f8;
  }

  :root[data-theme="light"] .nav a[href="./contact"] {
    color: #fff;
    background: #111614;
  }

  .hero {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 48px;
    padding: 122px 0 68px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .hero-media {
    height: 410px;
  }

  .hero .eyebrow {
    margin-bottom: 24px;
    padding: 9px 12px;
    font-size: 0.64rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-actions {
    gap: 10px;
  }

  [aria-labelledby="home-positioning"],
  [aria-labelledby="home-work"] {
    padding-right: 18px;
    padding-left: 18px;
  }

  [aria-labelledby="home-positioning"] .split-heading {
    text-align: left;
  }

  .home-strip,
  [aria-labelledby="home-work"] .work-grid,
  .compact-work-grid,
  .category-work-grid {
    grid-template-columns: 1fr;
  }

  .proof-item {
    min-height: 295px;
    padding: 32px;
  }

  .proof-item svg,
  .proof-item > i {
    margin-bottom: 46px;
  }

  .case-visual,
  .featured .case-visual,
  .compact-work-grid .case-visual {
    min-height: 265px;
  }

  .about-founder {
    width: calc(100% - 36px);
    padding: 82px 0;
  }

  .about-founder-grid {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 38px 26px;
  }

  .about-photo {
    width: 205px;
  }

  [aria-labelledby="home-contact"] {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 74px 18px;
  }

  body:not(:has(#home-positioning)) .contact-section {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 52px;
    margin: 64px auto;
    padding: 34px 24px;
  }

  [aria-labelledby="home-contact"] .contact-actions {
    width: 100%;
  }

  .page-hero {
    padding: 128px 18px 72px;
  }

  .page-hero h1 {
    font-size: clamp(2.8rem, 13vw, 3.9rem);
  }

  .service-card {
    min-height: 0;
  }

  .footer {
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* V5 — cascade-safe final overrides */
.hero {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 790px;
  display: block;
  margin: 0;
  padding: 176px max(24px, calc((100vw - var(--ew-max)) / 2)) 104px;
  overflow: hidden;
  isolation: isolate;
  background: #050607;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.98) 0%, rgba(3, 5, 6, 0.93) 34%, rgba(3, 5, 6, 0.54) 62%, rgba(3, 5, 6, 0.18) 100%),
    linear-gradient(180deg, rgba(3, 5, 6, 0.18), rgba(3, 5, 6, 0.58));
}

.hero-media::after {
  display: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  filter: saturate(0.72) contrast(1.08) brightness(0.7);
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(100%, var(--ew-max));
  display: block;
  margin: 0 auto;
}

.hero-content {
  max-width: 740px;
  padding: 0;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(3.7rem, 5.6vw, 5.45rem);
  text-wrap: balance;
}

.hero-copy {
  max-width: 690px;
  color: rgba(225, 231, 235, 0.72);
}

.hero .button.secondary {
  color: #f7f8f8;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(3, 5, 6, 0.18);
  backdrop-filter: blur(10px);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(3.15rem, 5.25vw, 4.9rem);
  text-wrap: balance;
}

.category-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.category-hero-grid > div:first-child {
  max-width: 940px;
}

.category-hero-visual {
  display: none;
}

.category-page-hero h1 {
  max-width: 900px;
}

.project-page-hero .project-title-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.4fr);
  gap: clamp(46px, 7vw, 92px);
}

.project-page-hero h1 {
  font-size: clamp(3rem, 5vw, 4.65rem);
}

.project-cta-visual {
  display: none;
}

.project-cta-band .dark-band-inner {
  grid-template-columns: minmax(0, 860px);
  justify-content: start;
  padding-top: 92px;
  padding-bottom: 92px;
}

.project-cta-band h2 {
  max-width: 780px;
  font-size: clamp(2.8rem, 4.7vw, 4.65rem);
}

.project-cta-band p {
  max-width: 680px;
}

body:not(:has(#home-positioning)) .contact-section {
  width: min(calc(100% - 48px), var(--ew-max));
  grid-template-columns: minmax(0, 0.72fr) minmax(440px, 0.62fr);
  gap: clamp(60px, 8vw, 110px);
  align-items: center;
  margin: 96px auto;
  padding: clamp(44px, 5.5vw, 68px);
  border: 1px solid var(--ew-line);
  border-radius: 24px;
  background: var(--ew-surface);
}

body:not(:has(#home-positioning)) .contact-section .contact-copy {
  max-width: 560px;
}

body:not(:has(#home-positioning)) .contact-section .contact-copy h2 {
  max-width: 540px;
  font-size: clamp(2.7rem, 4vw, 4rem);
  line-height: 1;
}

body:not(:has(#home-positioning)) .contact-section .contact-copy > p:not(.section-kicker) {
  max-width: 520px;
}

[data-project-form-link] {
  display: none;
}

.lead-panel {
  padding: 32px;
  border: 1px solid var(--ew-line);
  border-radius: 20px;
  background: #0d1115;
}

:root[data-theme="light"] .lead-panel {
  background: #f7f8f6;
}

.form-head h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
}

.lead-form input,
.lead-form select {
  min-height: 52px;
}

.lead-form textarea {
  min-height: 150px;
}

.lead-submit {
  width: 100%;
  justify-content: center;
}

@media (max-width: 760px) {
  .hero {
    width: 100%;
    min-height: 780px;
    padding: 128px 18px 76px;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .hero-media::before {
    background:
      linear-gradient(180deg, rgba(3, 5, 6, 0.76) 0%, rgba(3, 5, 6, 0.92) 52%, rgba(3, 5, 6, 0.99) 100%),
      linear-gradient(90deg, rgba(3, 5, 6, 0.7), rgba(3, 5, 6, 0.28));
  }

  .hero-media img {
    object-position: 58% center;
    filter: saturate(0.66) contrast(1.05) brightness(0.56);
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13.5vw, 3.85rem);
  }

  .page-hero h1,
  .project-page-hero h1 {
    font-size: clamp(2.65rem, 12.5vw, 3.65rem);
  }

  .project-page-hero .project-title-grid {
    grid-template-columns: 1fr;
  }

  body:not(:has(#home-positioning)) .contact-section {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 48px;
    margin: 64px auto;
    padding: 30px 22px;
  }

  body:not(:has(#home-positioning)) .contact-section .contact-copy h2 {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
  }

  .lead-panel {
    padding: 24px 18px;
  }
}

/* V7 — authoritative final layout overrides */

/* V10 — light-theme contrast on intentionally dark surfaces */
:root[data-theme="light"] .hero h1 {
  color: #f7f8f8;
}

:root[data-theme="light"] .hero-copy {
  color: rgba(225, 231, 235, 0.78);
}

:root[data-theme="light"] .hero .button.secondary {
  color: #f7f8f8;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(3, 5, 6, 0.32);
}

:root[data-theme="light"] .hero .button.secondary:hover,
:root[data-theme="light"] .hero .button.secondary:focus-visible {
  color: #071014;
  border-color: #f7f8f8;
  background: #f7f8f8;
}

:root[data-theme="light"] .nav a[href="./contact"],
:root[data-theme="light"] .nav a[href="./contact"]:hover,
:root[data-theme="light"] .nav a[href="./contact"]:focus-visible,
:root[data-theme="light"] .nav a[href="./contact"][aria-current="page"] {
  color: #f7f8f8;
  background: #080a0b;
}

:root[data-theme="light"] .dark-band,
:root[data-theme="light"] .footer,
:root[data-theme="light"] .insight-article,
:root[data-theme="light"] .project-cta-band {
  color: #f7f8f8;
}

:root[data-theme="light"] .dark-band h1,
:root[data-theme="light"] .dark-band h2,
:root[data-theme="light"] .dark-band h3,
:root[data-theme="light"] .dark-band strong,
:root[data-theme="light"] .insight-article h1,
:root[data-theme="light"] .insight-article h2,
:root[data-theme="light"] .insight-article h3,
:root[data-theme="light"] .insight-article strong,
:root[data-theme="light"] .project-cta-band h2,
:root[data-theme="light"] .footer strong,
:root[data-theme="light"] .footer a {
  color: #f7f8f8;
}

:root[data-theme="light"] .dark-band p,
:root[data-theme="light"] .dark-band span:not(.section-kicker),
:root[data-theme="light"] .insight-summary,
:root[data-theme="light"] .insight-body p,
:root[data-theme="light"] .insight-takeaway p,
:root[data-theme="light"] .project-cta-band p {
  color: #aeb7bd;
}

:root[data-theme="light"] .dark-band .section-kicker,
:root[data-theme="light"] .insight-article .insight-meta span:first-child,
:root[data-theme="light"] .project-cta-band .section-kicker {
  color: #22c7e8;
}

:root[data-theme="light"] .insight-article {
  border-color: rgba(255, 255, 255, 0.13);
  background: #0d1115;
}

:root[data-theme="light"] .insight-body section {
  border-color: rgba(255, 255, 255, 0.13);
}

:root[data-theme="light"] .insight-article .text-link {
  color: #22c7e8;
}
[aria-labelledby="project-categories"] .section-head,
[aria-labelledby="case-studies"] .section-head {
  grid-template-columns: minmax(0, 860px);
  justify-content: start;
}

[aria-labelledby="project-categories"] .section-head > p,
[aria-labelledby="case-studies"] .section-head > p {
  display: none;
}

.case-visual:not(.has-image)::after {
  content: "";
  display: none;
}

body:not(:has(#home-positioning)) .contact-section {
  width: min(calc(100% - 48px), var(--ew-max));
  grid-template-columns: minmax(0, 0.62fr) minmax(500px, 0.9fr);
  gap: clamp(64px, 8vw, 112px);
  align-items: start;
  margin: 0 auto;
  padding: 110px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not(:has(#home-positioning)) .contact-section .contact-copy {
  max-width: 480px;
  padding-top: 36px;
}

.lead-panel {
  padding: 40px;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

@media (max-width: 760px) {
  body:not(:has(#home-positioning)) .contact-section {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 48px;
    margin: 0 auto;
    padding: 72px 0;
  }

  body:not(:has(#home-positioning)) .contact-section .contact-copy {
    padding-top: 0;
  }

  .lead-panel {
    padding: 26px 20px;
  }
}

/* V20.1 — portfolio thumbnails and natural-ratio project galleries */
html:root body .case-card .case-visual,
html:root body .compact-work-grid .case-visual,
html:root body .category-work-grid .case-visual,
html:root body [aria-labelledby="home-work"] .case-visual {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

html:root body .case-card .case-media-grid,
html:root body .compact-work-grid .case-media-grid,
html:root body .category-work-grid .case-media-grid,
html:root body [aria-labelledby="home-work"] .case-media-grid {
  width: 100%;
  height: 100%;
  min-height: 0;
}

html:root body .case-card .case-media-slot img {
  object-fit: cover;
  object-position: center;
}

html:root body [data-project-detail] .project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

html:root body [data-project-detail] .project-gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ew-line);
  border-radius: 16px;
  background: var(--ew-surface);
}

html:root body [data-project-detail] .project-gallery-item:first-child,
html:root body [data-project-detail] .project-gallery-item:only-child {
  grid-column: 1 / -1;
}

html:root body [data-project-detail] .project-gallery-item img {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: none;
}

html:root body [data-project-detail] .project-gallery-item figcaption {
  padding: 13px 16px 15px;
  border-top: 1px solid var(--ew-line);
  color: var(--ew-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

html:root body [data-project-detail] .project-overview-card {
  display: block;
  padding: clamp(28px, 4vw, 48px);
}

html:root body [data-project-detail] .project-overview-card > p {
  width: 100%;
  max-width: none;
  margin: 0;
}

@media (max-width: 760px) {
  html:root body [data-project-detail] .project-gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  html:root body [data-project-detail] .project-gallery-item:first-child,
  html:root body [data-project-detail] .project-gallery-item:only-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  body:not(:has(#home-positioning)) .contact-section {
    width: 100%;
    padding: 72px 18px;
  }
}

/* V20.2 — adaptive portfolio media and category project previews */
html:root body .case-card .case-visual.has-image,
html:root body .compact-work-grid .case-visual.has-image,
html:root body .category-work-grid .case-visual.has-image,
html:root body [aria-labelledby="home-work"] .case-visual.has-image {
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
}

html:root body .case-card .case-visual.has-image::before,
html:root body .case-card .case-visual.has-image::after {
  display: none;
}

html:root body .case-card .case-visual.has-image .case-media-grid.image-count-1 {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
}

html:root body .case-card .case-visual.has-image .case-media-slot,
html:root body .case-card .case-visual.has-image .slot-main {
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
}

html:root body .case-card .case-visual.has-image .case-media-slot img {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

html:root body .category-visual.has-project-images {
  min-height: 190px;
  padding: 0;
  background: #080c0f;
}

html:root body .category-visual.has-project-images::before {
  display: none;
}

html:root body .category-media-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

html:root body .category-media-grid.image-count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

html:root body .category-media-grid.image-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
}

html:root body .category-media-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #10161a;
}

html:root body .category-media-grid.image-count-3 .category-media-item:first-child {
  grid-row: 1 / -1;
}

html:root body .category-visual.has-project-images .category-media-item img {
  position: static;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

html:root body .project-category-card:hover .category-media-item img {
  transform: scale(1.025);
}

/* V20.3 — remove all presentation framing from uploaded portfolio media */
html:root body .case-card .case-visual.has-image,
html:root body .compact-work-grid .case-visual.has-image,
html:root body .category-work-grid .case-visual.has-image,
html:root body [aria-labelledby="home-work"] .case-visual.has-image {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html:root body .case-card .case-visual.has-image .case-media-grid,
html:root body .case-card .case-visual.has-image .case-media-slot {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html:root body .case-card .case-visual.has-image .case-media-slot::before {
  display: none;
}

html:root body .case-card .case-visual.has-image .case-media-slot img {
  width: 100% !important;
  height: auto !important;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain !important;
  transform: none;
}

/* V28 — premium project gallery carousel + lightbox */
html:root body [data-project-detail] .project-gallery-carousel {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
}

html:root body [data-project-detail] .project-gallery-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 24px;
}

html:root body [data-project-detail] .project-gallery-viewport::-webkit-scrollbar {
  display: none;
}

html:root body [data-project-detail] .project-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(420px, calc((100% - 24px) / 2));
  gap: 24px;
  align-items: stretch;
  padding: 2px;
}

html:root body [data-project-detail] .project-gallery-carousel[data-gallery-count="1"] .project-gallery-track {
  grid-auto-columns: minmax(0, 100%);
}

html:root body [data-project-detail] .project-gallery-carousel[data-gallery-count="2"] .project-gallery-track {
  grid-auto-columns: minmax(0, calc((100% - 24px) / 2));
}

html:root body [data-project-detail] .project-gallery-carousel[data-gallery-count="3"] .project-gallery-track {
  grid-auto-columns: minmax(320px, calc((100% - 48px) / 3));
}

html:root body [data-project-detail] .project-gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid color-mix(in srgb, var(--ew-line) 86%, var(--ew-accent));
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--ew-surface);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  transform: translateZ(0);
  transition:
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

html:root body [data-project-detail] .project-gallery-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ew-accent) 38%, var(--ew-line));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

html:root body [data-project-detail] .project-gallery-item:first-child,
html:root body [data-project-detail] .project-gallery-item:only-child {
  grid-column: auto;
}

html:root body [data-project-detail] .project-gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

html:root body [data-project-detail] .project-gallery-open:focus-visible {
  outline: 2px solid var(--ew-accent);
  outline-offset: -5px;
  border-radius: 20px;
}

html:root body [data-project-detail] .project-gallery-item img {
  position: static;
  display: block;
  width: 100%;
  height: min(42vw, 520px);
  min-height: 280px;
  object-fit: contain;
  object-position: center;
  background: #f5f6f3;
  filter: none;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

html:root body [data-project-detail] .project-gallery-item:hover img {
  transform: scale(1.018);
}

html:root body [data-project-detail] .project-gallery-item figcaption {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--ew-line);
  color: var(--ew-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

html:root body [data-project-detail] .project-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-grid;
  width: 42px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(34, 199, 232, 0.22);
  border-radius: 14px;
  color: var(--ew-text);
  background: rgba(7, 12, 15, 0.72);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

html:root body [data-project-detail] .project-gallery-arrow:hover {
  color: #061014;
  background: var(--ew-accent);
  border-color: var(--ew-accent);
  transform: translateY(-50%) scale(1.04);
}

html:root body [data-project-detail] .project-gallery-arrow-prev {
  left: 8px;
}

html:root body [data-project-detail] .project-gallery-arrow-next {
  right: 8px;
}

html:root.project-lightbox-open {
  overflow: hidden;
}

html:root body [data-project-detail] .project-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(56px, 0.12fr) minmax(0, 1fr) minmax(56px, 0.12fr);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(18px, 4vw, 58px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 150, 190, 0.12), transparent 32%),
    rgba(3, 7, 9, 0.88);
  backdrop-filter: blur(20px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

html:root body [data-project-detail] .project-gallery-lightbox.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

html:root body [data-project-detail] .project-lightbox-frame {
  min-width: 0;
  max-height: calc(100vh - 104px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 213, 238, 0.55) rgba(255, 255, 255, 0.08);
  margin: 0;
  transform: translateY(10px) scale(0.985);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

html:root body [data-project-detail] .project-lightbox-frame::-webkit-scrollbar {
  width: 10px;
}

html:root body [data-project-detail] .project-lightbox-frame::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

html:root body [data-project-detail] .project-lightbox-frame::-webkit-scrollbar-thumb {
  background: rgba(28, 213, 238, 0.55);
  border-radius: 999px;
}

html:root body [data-project-detail] .project-gallery-lightbox.is-open .project-lightbox-frame {
  transform: translateY(0) scale(1);
}

html:root body [data-project-detail] .project-lightbox-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--ew-line) 76%, var(--ew-accent));
  border-radius: 24px;
  background: #f5f6f3;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
}

html:root body [data-project-detail] .project-lightbox-frame figcaption {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 4px 0;
  color: rgba(236, 244, 247, 0.72);
  font-size: 0.9rem;
}

html:root body [data-project-detail] .project-lightbox-close,
html:root body [data-project-detail] .project-lightbox-nav {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f8fbfc;
  background: rgba(12, 17, 20, 0.72);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

html:root body [data-project-detail] .project-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
}

html:root body [data-project-detail] .project-lightbox-close:hover,
html:root body [data-project-detail] .project-lightbox-nav:hover {
  color: #061014;
  border-color: var(--ew-accent);
  background: var(--ew-accent);
  transform: scale(1.04);
}

html:root body [data-project-detail] .project-lightbox-prev {
  justify-self: end;
}

html:root body [data-project-detail] .project-lightbox-next {
  justify-self: start;
}

:root[data-theme="light"] body [data-project-detail] .project-gallery-item {
  background: #ffffff;
  box-shadow: 0 22px 80px rgba(18, 32, 39, 0.12);
}

:root[data-theme="light"] body [data-project-detail] .project-gallery-arrow {
  color: #071113;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 52px rgba(18, 32, 39, 0.18);
}

@media (max-width: 900px) {
  html:root body [data-project-detail] .project-gallery-carousel {
    width: 100%;
  }

  html:root body [data-project-detail] .project-gallery-track,
  html:root body [data-project-detail] .project-gallery-carousel[data-gallery-count="2"] .project-gallery-track,
  html:root body [data-project-detail] .project-gallery-carousel[data-gallery-count="3"] .project-gallery-track {
    grid-auto-columns: minmax(78vw, 1fr);
    gap: 16px;
  }

  html:root body [data-project-detail] .project-gallery-item img {
    height: min(72vw, 460px);
    min-height: 220px;
  }

  html:root body [data-project-detail] .project-gallery-arrow {
    width: 42px;
    height: 52px;
    border-radius: 14px;
    background: rgba(7, 12, 15, 0.72);
  }

  html:root body [data-project-detail] .project-gallery-arrow-prev {
    left: 8px;
  }

  html:root body [data-project-detail] .project-gallery-arrow-next {
    right: 8px;
  }
}

@media (max-width: 640px) {
  html:root body [data-project-detail] .project-gallery-lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: 16px;
  }

  html:root body [data-project-detail] .project-lightbox-frame {
    grid-column: 1;
  }

  html:root body [data-project-detail] .project-lightbox-nav {
    position: fixed;
    bottom: 18px;
  }

  html:root body [data-project-detail] .project-lightbox-prev {
    left: calc(50% - 62px);
  }

  html:root body [data-project-detail] .project-lightbox-next {
    right: calc(50% - 62px);
  }

  html:root body [data-project-detail] .project-lightbox-frame img {
    max-height: calc(100vh - 150px);
    border-radius: 18px;
  }
}

/* V51 — professional light theme, profile utility, readable blog/reviews */
.profile-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(232, 241, 242, 0.8);
  background: rgba(255, 255, 255, 0.025);
}

.profile-link:hover,
.profile-link:focus-visible,
.profile-link[aria-current="page"] {
  color: var(--ew-text);
  border-color: rgba(34, 199, 232, 0.38);
  background: rgba(34, 199, 232, 0.1);
}

.profile-link svg {
  width: 19px;
  height: 19px;
}

.profile-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-link.has-profile {
  border-color: rgba(34, 199, 232, 0.42);
}

.blog-post-card {
  align-items: start;
}

.blog-post-media {
  align-self: start;
  width: calc(100% - 28px);
  margin: 14px;
  border-radius: 16px;
}

.blog-post-media:not(.blog-post-fallback) {
  min-height: 0;
  background: transparent;
}

.blog-post-media img {
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.blog-featured-image,
.blog-video {
  display: grid;
  place-items: center;
}

.blog-featured-image img {
  max-height: 520px;
  object-position: center;
}

.blog-video {
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: 18px;
}

.blog-video iframe,
.blog-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: inherit;
  background: #05090b;
}

.blog-video figcaption {
  width: 100%;
  margin-top: 10px;
  color: var(--ew-muted);
  font-size: 0.82rem;
}

.testimonial-card small {
  justify-self: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ew-accent);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.blog-comments {
  display: grid;
  gap: 10px;
}

.blog-comment-empty {
  margin: 0;
  color: var(--ew-muted);
  font-size: 0.86rem;
}

.blog-comment-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.blog-comment-item strong {
  display: block;
  color: var(--ew-text);
}

.blog-comment-item span,
.blog-comment-item p {
  color: var(--ew-muted);
}

.blog-comment-item p {
  margin: 0;
}

.blog-comment-item button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 120, 120, 0.32);
  border-radius: 999px;
  color: #ffd9d9;
  background: rgba(255, 90, 90, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

html:root[data-theme="light"] body {
  color: #111c20;
  background: #f6f8f7;
}

html:root[data-theme="light"] body header.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(11, 28, 34, 0.12);
  box-shadow: 0 10px 30px rgba(11, 28, 34, 0.08);
}

html:root[data-theme="light"] .profile-link {
  color: #17252a;
  border-color: rgba(11, 28, 34, 0.14);
  background: #f7faf9;
}

html:root[data-theme="light"] .profile-link:hover,
html:root[data-theme="light"] .profile-link:focus-visible,
html:root[data-theme="light"] .profile-link[aria-current="page"] {
  color: #071114;
  border-color: rgba(0, 137, 164, 0.34);
  background: #e9f7fa;
}

html:root[data-theme="light"] .blog-featured,
html:root[data-theme="light"] .blog-post-card,
html:root[data-theme="light"] .blog-sidebar section,
html:root[data-theme="light"] .testimonial-card,
html:root[data-theme="light"] .client-profile-panel,
html:root[data-theme="light"] .client-profile-form,
html:root[data-theme="light"] .blog-comment-form {
  border-color: rgba(13, 32, 38, 0.12);
  color: #111c20;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(11, 28, 34, 0.09);
}

html:root[data-theme="light"] .blog-featured {
  background:
    radial-gradient(circle at 16% 0%, rgba(34, 199, 232, 0.12), transparent 36%),
    #ffffff;
}

html:root[data-theme="light"] .blog-post-content p,
html:root[data-theme="light"] .blog-post-content details p,
html:root[data-theme="light"] .blog-post-content small,
html:root[data-theme="light"] .blog-sidebar p,
html:root[data-theme="light"] .blog-sidebar li,
html:root[data-theme="light"] .testimonial-card span,
html:root[data-theme="light"] .testimonial-card small,
html:root[data-theme="light"] .blog-featured > p,
html:root[data-theme="light"] .blog-featured-points span,
html:root[data-theme="light"] .client-gate-card p,
html:root[data-theme="light"] .blog-comment-empty {
  color: #536167;
}

html:root[data-theme="light"] .blog-featured h2,
html:root[data-theme="light"] .blog-post-content h3,
html:root[data-theme="light"] .blog-sidebar h2,
html:root[data-theme="light"] .testimonial-card blockquote,
html:root[data-theme="light"] .testimonial-card strong,
html:root[data-theme="light"] .client-gate-card strong,
html:root[data-theme="light"] .blog-post-content summary {
  color: #111c20;
}

html:root[data-theme="light"] .blog-resource-links a,
html:root[data-theme="light"] .blog-action-button {
  color: #244047;
  border-color: rgba(0, 137, 164, 0.24);
  background: #f2fbfd;
}

html:root[data-theme="light"] .blog-action-button strong {
  color: #052027;
  background: #d5eef4;
}

html:root[data-theme="light"] .blog-comment-form textarea,
html:root[data-theme="light"] .review-form input,
html:root[data-theme="light"] .review-form select,
html:root[data-theme="light"] .review-form textarea,
html:root[data-theme="light"] .lead-form input,
html:root[data-theme="light"] .lead-form select,
html:root[data-theme="light"] .lead-form textarea {
  color: #111c20;
  border-color: rgba(13, 32, 38, 0.18);
  background: #f8faf9;
}

html:root[data-theme="light"] .blog-comment-form label span,
html:root[data-theme="light"] .review-form label span,
html:root[data-theme="light"] .lead-form label > span {
  color: #34454b;
}

html:root[data-theme="light"] .client-gate-card {
  color: #16262b;
  border-color: rgba(0, 137, 164, 0.2);
  background: #edf9fb;
}

html:root[data-theme="light"] .blog-comment-item {
  border-color: rgba(13, 32, 38, 0.12);
  background: #f7faf9;
}

html:root[data-theme="light"] .blog-comment-item strong,
html:root[data-theme="light"] .blog-comment-item p {
  color: #17252a;
}

html:root[data-theme="light"] .blog-comment-item span {
  color: #647177;
}

html:root[data-theme="light"] .insight-takeaway {
  color: #17252a;
  background: #eef9fb;
}

html:root[data-theme="light"] .insight-takeaway p {
  color: #526066;
}

/* Project detail pages and image inspection zoom */
html:root body [data-project-detail] .project-page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(118px, 10vw, 160px);
  padding-bottom: clamp(58px, 7vw, 92px);
  background:
    radial-gradient(circle at 14% 8%, rgba(37, 150, 190, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 72%);
}

html:root body [data-project-detail] .project-page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 150, 190, 0.34), transparent);
}

html:root body [data-project-detail] .project-hero-copy {
  max-width: 940px;
}

html:root body [data-project-detail] .project-page-hero h1 {
  max-width: 980px;
  margin-top: 14px;
  font-size: clamp(3rem, 6.4vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

html:root body [data-project-detail] .project-page-hero .page-copy {
  max-width: 760px;
  margin-top: 24px;
  color: var(--ew-copy);
  font-size: clamp(1.02rem, 1.45vw, 1.25rem);
  line-height: 1.7;
}

html:root body [data-project-detail] .project-hero-meta {
  display: none !important;
}

html:root body [data-project-detail] > .section {
  padding-top: clamp(62px, 7vw, 96px);
  padding-bottom: clamp(62px, 7vw, 96px);
}

html:root body [data-project-detail] .project-section-title {
  margin-bottom: clamp(24px, 3vw, 38px);
  font-size: clamp(1.85rem, 3.1vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

html:root body [data-project-detail] .project-overview-card,
html:root body [data-project-detail] .project-list-item,
html:root body [data-project-detail] .spec-table-wrap,
html:root body [data-project-detail] .project-detail-cta {
  border-color: rgba(149, 166, 174, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(16, 21, 25, 0.86);
}

html:root body [data-project-detail] .project-overview-card {
  border: 1px solid rgba(149, 166, 174, 0.2);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 52px);
}

html:root body [data-project-detail] .project-overview-card > p {
  max-width: 980px;
  color: var(--ew-copy);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.82;
}

html:root body [data-project-detail] .project-feature-grid,
html:root body [data-project-detail] .project-deliverables-grid {
  gap: 16px;
}

html:root body [data-project-detail] .project-list-item {
  min-height: 68px;
  border-radius: 18px;
  padding: 18px 20px;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

html:root body [data-project-detail] .project-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 150, 190, 0.36);
  background:
    linear-gradient(145deg, rgba(37, 150, 190, 0.07), rgba(255, 255, 255, 0.012)),
    rgba(16, 21, 25, 0.92);
}

html:root body [data-project-detail] .project-section-copy {
  max-width: 900px;
  margin: -18px 0 clamp(24px, 3vw, 34px);
  color: var(--ew-copy);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

html:root body [data-project-detail] .project-results-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(149, 166, 174, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(16, 21, 25, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
}

html:root body [data-project-detail] .project-results-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

html:root body [data-project-detail] .project-results-table th,
html:root body [data-project-detail] .project-results-table td {
  padding: 22px 20px;
  border-right: 1px solid rgba(149, 166, 174, 0.16);
  border-bottom: 1px solid rgba(149, 166, 174, 0.16);
  text-align: left;
  vertical-align: top;
}

html:root body [data-project-detail] .project-results-table th:last-child,
html:root body [data-project-detail] .project-results-table td:last-child {
  border-right: 0;
}

html:root body [data-project-detail] .project-results-table tr:last-child th,
html:root body [data-project-detail] .project-results-table tr:last-child td {
  border-bottom: 0;
}

html:root body [data-project-detail] .project-results-table thead th {
  color: var(--ew-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

html:root body [data-project-detail] .project-results-table tbody th {
  color: var(--ew-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

html:root body [data-project-detail] .project-results-table td {
  color: var(--ew-copy);
  font-size: 0.92rem;
  line-height: 1.62;
}

html:root body [data-project-detail] .project-result-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(214, 166, 67, 0.32);
  border-radius: 999px;
  color: #ffd36e;
  background: rgba(214, 166, 67, 0.11);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

html:root body [data-project-detail] .project-result-status.status-verified {
  color: #8ff5bd;
  border-color: rgba(91, 220, 142, 0.36);
  background: rgba(50, 185, 104, 0.13);
}

html:root body [data-project-detail] .project-result-status.status-ready,
html:root body [data-project-detail] .project-result-status.status-documented {
  color: #8ee7ff;
  border-color: rgba(37, 150, 190, 0.4);
  background: rgba(37, 150, 190, 0.13);
}

html:root body [data-project-detail] .project-result-status.status-to-verify,
html:root body [data-project-detail] .project-result-status.status-pending {
  color: #ffd36e;
  border-color: rgba(214, 166, 67, 0.32);
  background: rgba(214, 166, 67, 0.11);
}

html:root body [data-project-detail] .project-video-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(149, 166, 174, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(16, 21, 25, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
}

html:root body [data-project-detail] .project-video-frame video,
html:root body [data-project-detail] .project-video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #030607;
}

html:root body [data-project-detail] .project-video-frame figcaption {
  padding: 14px 18px;
  color: var(--ew-copy);
  font-size: 0.92rem;
  line-height: 1.55;
  border-top: 1px solid rgba(149, 166, 174, 0.16);
}

html:root body [data-project-detail] .project-spec-table th,
html:root body [data-project-detail] .project-spec-table td {
  padding: 20px 24px;
  vertical-align: top;
}

html:root body [data-project-detail] .project-spec-table th {
  color: var(--ew-muted);
  letter-spacing: 0.12em;
}

html:root body [data-project-detail] .project-spec-table td {
  color: var(--ew-ink);
  font-weight: 650;
}

html:root body [data-project-detail] .project-gallery-open {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
}

html:root body [data-project-detail] .project-gallery-carousel.zoom-enabled .project-gallery-open::after {
  content: "Click to view";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(5, 9, 12, 0.72);
  backdrop-filter: blur(14px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

html:root body [data-project-detail] .project-gallery-carousel.zoom-enabled .project-gallery-open:hover::after {
  opacity: 1;
  transform: translateY(0);
}

html:root body [data-project-detail] .project-gallery-carousel.zoom-enabled .project-gallery-open img {
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
}

@media (hover: hover) and (pointer: fine) {
  html:root body [data-project-detail] .project-gallery-carousel.zoom-enabled .project-gallery-open:hover img {
    transform: scale(1.72);
    filter: contrast(1.03) saturate(1.02);
  }

  html:root body [data-project-detail] .project-lightbox-frame.zoom-enabled:hover img {
    cursor: zoom-in;
    transform: scale(1.55);
  }
}

html:root body [data-project-detail] .project-lightbox-frame.zoom-enabled {
  overflow: auto;
  border-radius: 24px;
}

html:root body [data-project-detail] .project-lightbox-frame.zoom-enabled img {
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

html:root body [data-project-detail] .project-lightbox-frame.zoom-enabled figcaption {
  position: relative;
  z-index: 2;
}

html:root body [data-project-detail] .project-cta-section {
  border-top: 1px solid var(--ew-line);
}

html:root body [data-project-detail] .project-detail-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(149, 166, 174, 0.2);
  border-radius: 28px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.18);
}

html:root body [data-project-detail] .project-detail-cta h2 {
  max-width: 760px;
  margin: 8px 0 12px;
  color: var(--ew-ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

html:root body [data-project-detail] .project-detail-cta p:not(.page-kicker) {
  max-width: 780px;
  color: var(--ew-copy);
  font-size: 1rem;
  line-height: 1.7;
}

html:root body [data-project-detail] .project-section-heading h2 {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--ew-ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

html:root body [data-project-detail] .project-spec-profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: start;
}

html:root body [data-project-detail] .project-spec-tabs {
  display: grid;
  gap: 24px;
}

html:root body [data-project-detail] .project-spec-tablist {
  display: inline-flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--ew-line);
  border-radius: 18px;
  background: rgba(14, 19, 27, 0.92);
}

html:root body [data-project-detail] .project-spec-tablist button {
  min-height: 38px;
  min-width: 82px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  color: rgba(175, 194, 235, 0.78);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

html:root body [data-project-detail] .project-spec-tablist button:hover,
html:root body [data-project-detail] .project-spec-tablist button:focus-visible {
  color: var(--ew-ink);
}

html:root body [data-project-detail] .project-spec-tablist button.is-active {
  color: #041114;
  background: var(--ew-accent);
}

html:root body [data-project-detail] .project-spec-panel {
  display: none;
}

html:root body [data-project-detail] .project-spec-panel.is-active {
  display: block;
}

html:root body [data-project-detail] .project-spec-tabs .spec-table-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(149, 166, 174, 0.16);
}

html:root body [data-project-detail] .project-spec-tabs .project-spec-table th,
html:root body [data-project-detail] .project-spec-tabs .project-spec-table td {
  padding: 18px 24px;
  border-color: rgba(149, 166, 174, 0.12);
}

html:root body [data-project-detail] .project-spec-tabs .project-spec-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

html:root body [data-project-detail] .project-spec-intro {
  position: sticky;
  top: 110px;
}

html:root body [data-project-detail] .project-spec-intro h3,
html:root body [data-project-detail] .project-deliverables-copy h3 {
  margin: 0 0 16px;
  color: var(--ew-ink);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

html:root body [data-project-detail] .project-spec-intro p,
html:root body [data-project-detail] .project-deliverables-copy p {
  margin: 0;
  color: var(--ew-copy);
  line-height: 1.75;
}

html:root body [data-project-detail] .project-spec-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

html:root body [data-project-detail] .project-spec-card {
  min-height: 172px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--ew-line) 82%, var(--ew-accent));
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(34, 199, 232, 0.08), transparent 56%),
    color-mix(in srgb, var(--ew-surface) 92%, transparent);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.18);
}

html:root body [data-project-detail] .project-spec-card > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(34, 199, 232, 0.28);
  border-radius: 999px;
  color: var(--ew-accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
}

html:root body [data-project-detail] .project-spec-card h4 {
  margin: 0 0 10px;
  color: var(--ew-ink);
  font-size: 1rem;
}

html:root body [data-project-detail] .project-spec-card p {
  margin: 0;
  color: var(--ew-copy);
  line-height: 1.65;
}

html:root body [data-project-detail] .project-deliverables-premium {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 92px);
  align-items: start;
}

html:root body [data-project-detail] .project-deliverables-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

html:root body [data-project-detail] .project-deliverables-list article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--ew-line);
  color: var(--ew-ink);
  line-height: 1.55;
}

html:root body [data-project-detail] .project-deliverables-list svg {
  width: 20px;
  height: 20px;
  padding: 4px;
  border: 1px solid rgba(34, 199, 232, 0.34);
  border-radius: 999px;
  color: var(--ew-accent);
  background: rgba(34, 199, 232, 0.08);
}

html:root body [data-project-detail] .project-detail-cta .button {
  justify-self: end;
  width: fit-content;
  min-width: 260px;
  min-height: 58px;
  padding-inline: 28px;
  border-radius: 14px;
  white-space: nowrap;
}

:root[data-theme="light"] body [data-project-detail] .project-overview-card,
:root[data-theme="light"] body [data-project-detail] .project-list-item,
:root[data-theme="light"] body [data-project-detail] .project-results-table-wrap,
:root[data-theme="light"] body [data-project-detail] .project-video-frame,
:root[data-theme="light"] body [data-project-detail] .spec-table-wrap,
:root[data-theme="light"] body [data-project-detail] .project-detail-cta {
  background: #ffffff;
  border-color: rgba(11, 18, 20, 0.12);
}

:root[data-theme="light"] body [data-project-detail] .project-spec-card {
  border-color: rgba(11, 18, 20, 0.12);
  background:
    linear-gradient(145deg, rgba(0, 150, 180, 0.07), transparent 58%),
    #ffffff;
  box-shadow: 0 20px 62px rgba(18, 32, 39, 0.08);
}

:root[data-theme="light"] body [data-project-detail] .project-spec-tablist {
  border-color: rgba(11, 18, 20, 0.12);
  background: #eef4f3;
}

:root[data-theme="light"] body [data-project-detail] .project-spec-tablist button {
  color: #536267;
}

:root[data-theme="light"] body [data-project-detail] .project-spec-tablist button:hover,
:root[data-theme="light"] body [data-project-detail] .project-spec-tablist button:focus-visible {
  color: #111c20;
}

:root[data-theme="light"] body [data-project-detail] .project-spec-tablist button.is-active {
  color: #041114;
  background: var(--ew-accent);
}

:root[data-theme="light"] body [data-project-detail] .project-spec-tabs .spec-table-wrap {
  border-color: rgba(11, 18, 20, 0.12);
  background: #ffffff;
}

:root[data-theme="light"] body [data-project-detail] .project-spec-tabs .project-spec-table tr:nth-child(even) {
  background: rgba(8, 18, 21, 0.035);
}

:root[data-theme="light"] body [data-project-detail] .project-deliverables-list article {
  border-color: rgba(11, 18, 20, 0.12);
}

:root[data-theme="light"] body [data-project-detail] .project-detail-cta .button.primary {
  color: #f8fbfc;
  background: #111c20;
  border-color: #111c20;
  box-shadow: 0 16px 36px rgba(17, 28, 32, 0.16);
}

:root[data-theme="light"] body [data-project-detail] .project-detail-cta .button.primary:hover {
  color: #061014;
  background: var(--ew-accent);
  border-color: var(--ew-accent);
}

:root[data-theme="light"] body [data-project-detail] .project-result-status.status-verified {
  color: #0f6f3d;
  border-color: rgba(15, 111, 61, 0.24);
  background: rgba(15, 111, 61, 0.08);
}

:root[data-theme="light"] body [data-project-detail] .project-result-status.status-ready,
:root[data-theme="light"] body [data-project-detail] .project-result-status.status-documented {
  color: #0c6d88;
  border-color: rgba(12, 109, 136, 0.24);
  background: rgba(12, 109, 136, 0.08);
}

:root[data-theme="light"] body [data-project-detail] .project-result-status.status-to-verify,
:root[data-theme="light"] body [data-project-detail] .project-result-status.status-pending {
  color: #8a5b00;
  border-color: rgba(138, 91, 0, 0.24);
  background: rgba(138, 91, 0, 0.08);
}

:root[data-theme="light"] body [data-project-detail] .project-results-table th,
:root[data-theme="light"] body [data-project-detail] .project-results-table td {
  border-color: rgba(11, 18, 20, 0.11);
}

:root[data-theme="light"] body [data-project-detail] .project-results-table thead th {
  background: rgba(8, 18, 21, 0.035);
}

@media (max-width: 760px) {
  html:root body [data-project-detail] .project-page-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.5rem);
  }

  html:root body [data-project-detail] .project-feature-grid,
  html:root body [data-project-detail] .project-deliverables-grid,
  html:root body [data-project-detail] .project-spec-profile,
  html:root body [data-project-detail] .project-spec-card-grid,
  html:root body [data-project-detail] .project-deliverables-premium,
  html:root body [data-project-detail] .project-deliverables-list,
  html:root body [data-project-detail] .project-detail-cta {
    grid-template-columns: 1fr;
  }

  html:root body [data-project-detail] .project-spec-intro {
    position: static;
  }

  html:root body [data-project-detail] .project-results-table,
  html:root body [data-project-detail] .project-results-table tbody,
  html:root body [data-project-detail] .project-results-table tr,
  html:root body [data-project-detail] .project-results-table th,
  html:root body [data-project-detail] .project-results-table td {
    display: block;
    width: 100%;
  }

  html:root body [data-project-detail] .project-results-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  html:root body [data-project-detail] .project-results-table tr {
    padding: 18px 0;
    border-bottom: 1px solid rgba(149, 166, 174, 0.16);
  }

  html:root body [data-project-detail] .project-results-table tr:last-child {
    border-bottom: 0;
  }

  html:root body [data-project-detail] .project-results-table th,
  html:root body [data-project-detail] .project-results-table td {
    padding: 8px 18px;
    border: 0;
  }

  html:root body [data-project-detail] .project-results-table th::before,
  html:root body [data-project-detail] .project-results-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--ew-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  html:root body [data-project-detail] .project-detail-cta .button {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile navigation contrast hardening */
@media (max-width: 760px) {
  html:root[data-theme="light"] body header.site-header .nav.is-open,
  html:root[data-theme="light"] body .site-header .nav.is-open {
    color: #071014 !important;
    background: #f8faf8 !important;
    border-color: rgba(7, 16, 20, 0.16) !important;
    box-shadow: 0 24px 70px rgba(9, 25, 31, 0.2) !important;
  }

  html:root[data-theme="light"] body header.site-header .nav.is-open a,
  html:root[data-theme="light"] body .site-header .nav.is-open a {
    color: rgba(7, 16, 20, 0.82) !important;
    opacity: 1 !important;
  }

  html:root[data-theme="light"] body header.site-header .nav.is-open a:hover,
  html:root[data-theme="light"] body header.site-header .nav.is-open a:focus-visible,
  html:root[data-theme="light"] body header.site-header .nav.is-open a[aria-current="page"],
  html:root[data-theme="light"] body .site-header .nav.is-open a:hover,
  html:root[data-theme="light"] body .site-header .nav.is-open a:focus-visible,
  html:root[data-theme="light"] body .site-header .nav.is-open a[aria-current="page"] {
    color: #071014 !important;
    background: rgba(7, 16, 20, 0.07) !important;
  }

  html:root[data-theme="light"] body header.site-header .nav.is-open a[href*="contact"],
  html:root[data-theme="light"] body .site-header .nav.is-open a[href*="contact"] {
    color: #ffffff !important;
    background: #071014 !important;
    border-color: #071014 !important;
  }
}

/* V35 — unified premium technical typography */
:root {
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-size-base: 15px;
}

html:root body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html:root body h1,
html:root body h2,
html:root body h3,
html:root body .hero h1,
html:root body .page-hero h1,
html:root body .project-page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.04em;
}

html:root body .hero h1,
html:root body .page-hero h1,
html:root body .project-page-hero h1 {
  max-width: 780px;
  font-size: clamp(31px, 4.4vw, 50px) !important;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

html:root body .hero-copy,
html:root body .page-copy,
html:root body .lead,
html:root body .section-head > p,
html:root body .split-copy {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.003em;
}

html:root body .section h2,
html:root body .contact-section h2,
html:root body .split-heading h2,
html:root body .dark-band h2,
html:root body .project-section-title {
  max-width: 760px;
  font-family: var(--font-heading);
  font-size: clamp(23px, 3vw, 32px) !important;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.028em;
}

html:root body .project-section-heading {
  margin-bottom: clamp(22px, 3vw, 34px);
}

html:root body .project-section-heading .project-section-title {
  margin: 0;
}

html:root body .section-kicker,
html:root body .page-kicker,
html:root body .project-section-eyebrow,
html:root body .eyebrow,
html:root body .footer.footer-pro h2,
html:root body .project-crumb,
html:root body .project-result-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

html:root body .project-section-eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--ew-accent);
}

html:root body .brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

html:root body .nav a,
html:root body header.site-header .nav a,
html:root body .site-header .nav a {
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0;
}

html:root body .button,
html:root body button,
html:root body .footer-admin {
  font-size: 13px;
  font-weight: 500;
}

html:root body .card h3,
html:root body .case-card h3,
html:root body .service-card h3,
html:root body .timeline-card h3,
html:root body .project-list-item strong,
html:root body [data-project-detail] .project-list-item span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

html:root body .card p,
html:root body .case-card p,
html:root body .service-card p,
html:root body .timeline-card p,
html:root body .project-overview-card p,
html:root body .project-list-item,
html:root body .project-detail-cta p:not(.page-kicker) {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
}

html:root body [data-project-detail] .project-overview-card > p {
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.003em;
}

html:root body [data-project-detail] .spec-table-wrap,
html:root body [data-project-detail] .project-results-table-wrap {
  border-radius: 14px;
  box-shadow: none;
}

html:root body [data-project-detail] .project-spec-table th,
html:root body [data-project-detail] .project-results-table thead th,
html:root body [data-project-detail] .project-results-table th::before,
html:root body [data-project-detail] .project-results-table td::before {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html:root body [data-project-detail] .project-spec-table th,
html:root body [data-project-detail] .project-spec-table td,
html:root body [data-project-detail] .project-results-table th,
html:root body [data-project-detail] .project-results-table td {
  padding: 15px 18px;
}

html:root body [data-project-detail] .project-spec-table th {
  width: 220px;
}

html:root body [data-project-detail] .project-spec-table td,
html:root body [data-project-detail] .project-results-table tbody th,
html:root body [data-project-detail] .project-results-table td {
  font-size: 13.5px;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: -0.003em;
}

html:root body [data-project-detail] .project-results-table tbody th {
  color: var(--ew-ink);
  font-weight: 600;
}

html:root body [data-project-detail] .project-result-status {
  padding: 5px 9px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

html:root body .category-nav a,
html:root body .chip,
html:root body .project-hero-meta span,
html:root body .spec-list span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

html:root body .accent-word {
  background: linear-gradient(95deg, var(--ew-accent), #bff7ff, var(--ew-accent));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ewTextShimmer 7s ease-in-out infinite;
}

@keyframes ewTextShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 760px) {
  html:root body .hero h1,
  html:root body .page-hero h1,
  html:root body .project-page-hero h1 {
    font-size: clamp(31px, 10vw, 44px) !important;
  }

  html:root body .section h2,
  html:root body .contact-section h2,
  html:root body .split-heading h2,
  html:root body .dark-band h2,
  html:root body .project-section-title {
    font-size: clamp(23px, 8vw, 30px) !important;
  }
}


/* ============================================================
   V36 — Global polish layer (Notion AI review)
   Additive only: focus states, selection, scrollbars, smooth
   scrolling, motion-entrance fallback, and micro-interactions.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

::selection {
  background: rgba(105, 214, 206, 0.28);
  color: inherit;
}

/* Accessible, on-brand focus ring for keyboard users */
a:focus-visible,
button:focus-visible,
[data-theme-toggle]:focus-visible,
[data-menu-toggle]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(105, 214, 206, 0.7);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Refined scrollbars (WebKit + Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(105, 214, 206, 0.4) transparent;
}
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  background-color: rgba(120, 140, 146, 0.42);
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(105, 214, 206, 0.6);
}

/* Smoother, more premium button + card hover (transform-free so it
   never fights the GSAP pointer animation, which uses translateY) */
.button {
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.button.primary:hover {
  box-shadow: 0 14px 38px rgba(105, 214, 206, 0.22);
}
.button.secondary:hover {
  border-color: rgba(105, 214, 206, 0.55);
}

/* Images never overflow their container or cause layout shift */
img {
  max-width: 100%;
  height: auto;
}

/* Graceful state if WebGL/Three.js is unavailable: hide the empty
   canvas frame instead of showing a blank box */
.hero-3d-shell.three-unavailable canvas {
  display: none;
}
.hero-3d-shell.three-unavailable {
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(105, 214, 206, 0.14), transparent 60%),
    radial-gradient(120% 120% at 90% 100%, rgba(199, 131, 69, 0.12), transparent 60%);
}

/* Premium client review section */
.review-section {
  position: relative;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.72fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(34, 199, 232, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.review-copy > p:not(.section-kicker) {
  max-width: 680px;
  margin-top: 18px;
  color: var(--ew-muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.review-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.review-proof-grid article {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(7, 11, 13, 0.58);
}

.review-proof-grid article {
  padding: 22px;
}

.review-proof-grid span {
  color: var(--ew-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.review-proof-grid strong {
  display: block;
  margin: 24px 0 8px;
  color: var(--ew-text);
  font-size: 1rem;
}

.review-proof-grid p {
  color: var(--ew-muted);
  line-height: 1.65;
}

.review-form {
  display: grid;
  gap: 15px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(34, 199, 232, 0.22);
  border-radius: 20px;
  background: rgba(4, 8, 10, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.review-form label span {
  color: rgba(237, 246, 247, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ew-text);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
}

.review-form select option {
  color: #0a1114;
  background: #f7fbfc;
}

.review-form select option:checked {
  color: #061013;
  background: #9fd4ff;
}

.review-form textarea {
  min-height: 132px;
  resize: vertical;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  border-color: rgba(34, 199, 232, 0.72);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 199, 232, 0.13);
}

.review-message,
.review-form .button,
.review-note {
  grid-column: 1 / -1;
}

.review-note {
  margin: 0;
  color: rgba(221, 231, 233, 0.58);
  font-size: 0.82rem;
  line-height: 1.55;
}

.review-note.is-success {
  color: #7ee7b8;
}

.client-gate-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(34, 199, 232, 0.18);
  border-radius: 16px;
  color: rgba(232, 241, 242, 0.86);
  background: rgba(34, 199, 232, 0.07);
}

.client-gate-card > svg {
  width: 22px;
  height: 22px;
  color: var(--ew-accent);
}

.client-gate-card strong {
  display: block;
  color: var(--ew-text);
}

.client-gate-card p {
  margin: 3px 0 0;
  color: var(--ew-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.client-gate-card .button {
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

form.is-locked input:not([type="hidden"]),
form.is-locked select,
form.is-locked textarea,
form.is-locked button[type="submit"] {
  cursor: not-allowed;
  opacity: 0.58;
}

.client-hero {
  min-height: 430px;
}

.client-portal {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.client-profile-panel,
.client-profile-form {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(8, 13, 16, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.client-profile-panel {
  position: sticky;
  top: 110px;
  padding: clamp(24px, 3vw, 34px);
}

.client-profile-empty {
  display: grid;
  gap: 14px;
}

.client-profile-empty svg {
  width: 44px;
  height: 44px;
  color: var(--ew-accent);
}

.client-profile-empty h2,
.client-profile-summary h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  line-height: 1.05;
}

.client-profile-summary {
  display: grid;
  gap: 18px;
}

.client-profile-avatar,
.client-logo-preview {
  width: 86px;
  height: 86px;
}

.client-profile-summary a {
  display: inline-block;
  margin-top: 8px;
  color: var(--ew-accent);
  font-weight: 700;
}

.client-profile-details {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.client-profile-details div {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.client-profile-details dt {
  color: rgba(224, 234, 236, 0.55);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-profile-details dd {
  margin: 0;
  color: var(--ew-text);
  overflow-wrap: anywhere;
}

.client-profile-form {
  padding: clamp(26px, 4vw, 42px);
}

.client-account-form {
  display: grid;
  gap: 22px;
}

.client-account-head {
  padding-bottom: 4px;
}

.client-auth-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 4px;
  width: min(100%, 300px);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.client-auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(224, 234, 236, 0.72);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.client-auth-tabs button:hover,
.client-auth-tabs button:focus-visible {
  color: var(--ew-text);
}

.client-auth-tabs button.is-active {
  background: rgba(28, 213, 238, 0.16);
  color: var(--ew-text);
  box-shadow: inset 0 0 0 1px rgba(28, 213, 238, 0.38), 0 10px 26px rgba(0, 0, 0, 0.16);
}

.client-auth-fields,
.client-profile-fields {
  display: grid;
  gap: 18px;
}

.client-auth-fields[hidden],
.client-profile-fields[hidden],
[data-signup-only][hidden],
.client-form-actions button[hidden] {
  display: none;
}

.client-logo-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

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

.client-logo-field input {
  padding: 12px;
}

.client-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

[data-client-status].is-success {
  color: rgba(158, 245, 198, 0.92);
}

[data-client-status].is-error {
  color: rgba(255, 176, 158, 0.94);
}

@media (max-width: 980px) {
  .review-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .review-layout {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .review-proof-grid {
    grid-template-columns: 1fr;
  }
}

/* Dedicated blog and testimonials pages */
html:root body .site-header .nav {
  gap: 3px;
}

html:root body .site-header .nav a {
  padding-inline: clamp(8px, 0.58vw, 12px);
  font-size: clamp(0.78rem, 0.78vw, 0.9rem);
}

html:root body .site-header .nav a[href="/contact"],
html:root body .site-header .nav a[href="./contact"] {
  padding-inline: clamp(12px, 0.95vw, 18px);
}

.blog-hero {
  min-height: 480px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}

.blog-main {
  display: grid;
  gap: 24px;
}

.blog-featured,
.blog-post-card,
.blog-sidebar section,
.testimonial-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 13, 16, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.blog-featured {
  padding: clamp(30px, 4.5vw, 54px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 199, 232, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.blog-featured-topline,
.insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--ew-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-featured-topline span + span,
.insight-meta span + span {
  color: rgba(224, 234, 236, 0.54);
}

.blog-featured h2 {
  max-width: 940px;
  margin: 24px 0 18px;
  font-size: clamp(2.25rem, 4.6vw, 4.8rem);
  line-height: 0.98;
}

.blog-featured > p {
  max-width: 820px;
  color: var(--ew-muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.blog-featured-image {
  margin: 34px 0 0;
}

.blog-featured-image,
.blog-post-media {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}

.blog-featured-image figcaption,
.blog-post-media figcaption {
  margin-top: 10px;
  color: rgba(224, 234, 236, 0.56);
  font-size: 0.82rem;
  line-height: 1.5;
}

.blog-image-open {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.blog-featured-image img,
.blog-post-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.blog-featured-image img {
  aspect-ratio: 16 / 8;
}

.blog-post-media img {
  aspect-ratio: 4 / 5;
  height: auto;
  min-height: 0;
  object-position: center;
}

.blog-post-media figcaption {
  display: none;
}

.blog-image-open:hover img,
.blog-image-open:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.blog-featured-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.blog-featured-points div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.blog-featured-points strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ew-text);
}

.blog-featured-points span,
.blog-post-content p,
.blog-post-content details p,
.blog-post-content small,
.blog-sidebar p,
.blog-sidebar li,
.testimonial-card span,
.testimonial-card small {
  color: var(--ew-muted);
  line-height: 1.68;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-post-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
  border-radius: 20px;
}

.blog-post-media {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(34, 199, 232, 0.2), rgba(34, 199, 232, 0.035)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 16px);
}

.blog-post-media:not(.blog-post-fallback) {
  display: grid;
  place-items: center;
  background: rgba(4, 9, 11, 0.72);
}

.blog-post-media:not(.blog-post-fallback) .blog-image-open {
  height: auto;
  display: grid;
}

.blog-post-media span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 199, 232, 0.4);
  border-radius: 50%;
  color: var(--ew-text);
  font-size: 1.4rem;
  font-weight: 800;
}

.blog-post-content {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
}

.blog-post-content h3 {
  max-width: 780px;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 1.08;
}

.blog-post-content details {
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-resource-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(34, 199, 232, 0.28);
  border-radius: 999px;
  color: rgba(228, 248, 251, 0.86);
  background: rgba(34, 199, 232, 0.07);
  font-size: 0.82rem;
  font-weight: 700;
}

.blog-resource-links svg {
  width: 14px;
  height: 14px;
}

.blog-engagement {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.blog-action-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(232, 241, 242, 0.78);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  font-weight: 700;
}

.blog-action-button svg {
  width: 15px;
  height: 15px;
}

.blog-action-button strong {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #041013;
  background: rgba(224, 234, 236, 0.84);
  font-size: 0.68rem;
}

.blog-action-button:hover,
.blog-action-button:focus-visible,
.blog-action-button.is-active {
  border-color: rgba(34, 199, 232, 0.5);
  color: #f4fbfc;
  background: rgba(34, 199, 232, 0.12);
}

.blog-action-button.is-active strong {
  background: var(--ew-accent);
}

.blog-action-status {
  min-height: 1.2em;
  color: rgba(224, 234, 236, 0.58);
  font-size: 0.82rem;
}

.blog-comment-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(34, 199, 232, 0.16);
  border-radius: 16px;
  background: rgba(4, 9, 11, 0.62);
}

.blog-comment-form label {
  display: grid;
  gap: 8px;
}

.blog-comment-form label span {
  color: rgba(235, 244, 245, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-comment-form textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  color: var(--ew-text);
  background: rgba(255, 255, 255, 0.045);
}

.blog-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(1, 4, 6, 0.86);
  backdrop-filter: blur(18px);
}

.blog-image-lightbox.is-open {
  display: flex;
}

.blog-image-lightbox-frame {
  max-width: min(1120px, 100%);
  max-height: min(760px, 88vh);
  margin: 0;
}

.blog-image-lightbox-frame img {
  width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

.blog-image-lightbox-frame figcaption {
  margin-top: 12px;
  color: rgba(237, 247, 248, 0.72);
  text-align: center;
}

.blog-image-lightbox-frame.zoom-enabled:hover img {
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  transform: scale(1.35);
}

.blog-image-lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f7fbfc;
  background: rgba(9, 14, 17, 0.82);
}

.blog-post-content summary {
  cursor: pointer;
  color: var(--ew-text);
  font-weight: 700;
}

.blog-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.blog-sidebar section {
  padding: 22px;
  border-radius: 18px;
}

.blog-sidebar h2 {
  margin-bottom: 16px;
  color: var(--ew-text);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-topic-list {
  display: grid;
  gap: 9px;
}

.blog-topic-list a,
.blog-sidebar li a {
  color: rgba(232, 241, 242, 0.76);
}

.blog-sidebar ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.blog-sidebar-cta {
  border-color: rgba(34, 199, 232, 0.24) !important;
}

.testimonials-section {
  padding-top: 90px;
}

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

.testimonial-card {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 20px;
}

.testimonial-rating {
  color: var(--ew-accent);
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--ew-text);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.35;
}

.testimonial-card strong {
  display: block;
  margin-bottom: 5px;
}

.testimonial-client {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.testimonial-avatar,
.client-mini-avatar,
.client-profile-avatar,
.client-logo-preview {
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 199, 232, 0.28);
  border-radius: 50%;
  color: #f6fbfc;
  background:
    radial-gradient(circle at 35% 20%, rgba(34, 199, 232, 0.22), transparent 45%),
    #0a1013;
  font-weight: 800;
}

.testimonial-avatar,
.client-mini-avatar {
  width: 54px;
  height: 54px;
}

.testimonial-avatar img,
.client-mini-avatar img,
.client-profile-avatar img,
.client-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-client em {
  display: block;
  margin-top: 4px;
  color: rgba(224, 234, 236, 0.62);
  font-style: normal;
  font-size: 0.88rem;
}

.testimonial-card small {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(34, 199, 232, 0.48);
  border-radius: 999px;
  color: rgba(230, 251, 255, 0.86);
  background: rgba(34, 199, 232, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 1020px) {
  .blog-layout,
  .blog-post-card,
  .testimonial-grid,
  .client-portal {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .client-profile-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .blog-featured-points {
    grid-template-columns: 1fr;
  }

  .blog-post-media {
    min-height: 160px;
  }

  .client-gate-card,
  .client-logo-row {
    grid-template-columns: 1fr;
  }

  .client-gate-card .button,
  .blog-comment-form .button {
    width: 100%;
  }
}

/* V51 final cascade overrides */
.testimonial-card small {
  justify-self: start !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--ew-accent) !important;
  background: transparent !important;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html:root[data-theme="light"] .testimonial-card small {
  color: #087f98 !important;
  background: transparent !important;
}

/* V52 — full article cards, admin comments, cleaner profile utility */
.profile-link {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
}

.profile-link:hover,
.profile-link:focus-visible,
.profile-link[aria-current="page"] {
  background: rgba(34, 199, 232, 0.12) !important;
}

.profile-link img {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(34, 199, 232, 0.34);
}

.client-profile-stack {
  display: grid;
  gap: 18px;
}

.admin-login-panel {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(8, 13, 16, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.admin-login-panel h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.blog-post-card {
  display: block !important;
  min-height: 0 !important;
  padding: clamp(30px, 4.5vw, 54px);
  border-radius: 24px;
}

.blog-post-content {
  padding: 0 !important;
}

.blog-card-image {
  margin: 24px 0 4px;
}

.blog-card-image img {
  width: min(100%, 920px);
  max-height: 520px;
  margin-inline: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}

.blog-comment-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-comment-tools button,
.blog-reply-item button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(34, 199, 232, 0.22);
  border-radius: 999px;
  color: rgba(228, 248, 251, 0.86);
  background: rgba(34, 199, 232, 0.07);
  font-size: 0.78rem;
  font-weight: 800;
}

.blog-comment-item.is-pinned {
  border-color: rgba(34, 199, 232, 0.42);
  background: rgba(34, 199, 232, 0.08);
}

.blog-comment-item strong {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.blog-reply-form {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.blog-reply-form[hidden] {
  display: none;
}

.blog-reply-form textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  color: var(--ew-text);
  background: rgba(255, 255, 255, 0.045);
}

.blog-replies {
  display: grid;
  gap: 8px;
  margin-left: 18px;
  padding-left: 14px;
  border-left: 1px solid rgba(34, 199, 232, 0.22);
}

.blog-reply-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

html:root[data-theme="light"] .admin-login-panel,
html:root[data-theme="light"] .review-proof-grid article,
html:root[data-theme="light"] .review-form {
  border-color: rgba(13, 32, 38, 0.12);
  color: #111c20;
  background: #ffffff;
}

html:root[data-theme="light"] .review-layout {
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 199, 232, 0.12), transparent 34%),
    #ffffff;
}

html:root[data-theme="light"] .review-proof-grid article {
  box-shadow: 0 16px 42px rgba(11, 28, 34, 0.08);
}

html:root[data-theme="light"] .review-proof-grid strong,
html:root[data-theme="light"] .review-proof-grid article span,
html:root[data-theme="light"] .review-copy h2,
html:root[data-theme="light"] .admin-login-panel h2 {
  color: #111c20;
}

html:root[data-theme="light"] .review-proof-grid p,
html:root[data-theme="light"] .review-copy > p,
html:root[data-theme="light"] .admin-login-panel p {
  color: #56666b;
}

html:root[data-theme="light"] .blog-reply-form textarea {
  color: #111c20;
  border-color: rgba(13, 32, 38, 0.18);
  background: #f8faf9;
}

html:root[data-theme="light"] .blog-comment-tools button,
html:root[data-theme="light"] .blog-reply-item button {
  color: #244047;
  border-color: rgba(0, 137, 164, 0.24);
  background: #f2fbfd;
}

html:root[data-theme="light"] .blog-comment-item.is-pinned {
  background: #eef9fb;
}

html:root[data-theme="light"] .blog-reply-item {
  background: #f7faf9;
}

.section,
.blog-post-card,
.blog-featured,
.testimonial-card,
.service-card,
.case-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

/* V53 - admin login through profile, stronger light contrast, cleaner blog actions */
.blog-featured > .button.secondary,
.blog-post-content > .text-link {
  width: fit-content;
}

.blog-resource-links {
  gap: 12px 14px !important;
  margin-top: 4px;
}

.blog-resource-links a,
.blog-featured > .button.secondary,
.blog-post-content > .text-link {
  min-height: 42px;
}

.comment-author-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.comment-author-line img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-author-line em {
  padding: 4px 8px;
  border: 1px solid rgba(34, 199, 232, 0.26);
  border-radius: 999px;
  color: rgba(143, 234, 250, 0.92);
  background: rgba(34, 199, 232, 0.08);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-comment-item.is-admin,
.blog-reply-item.is-admin {
  border-color: rgba(34, 199, 232, 0.36);
  background: rgba(34, 199, 232, 0.08);
}

html:root[data-theme="light"] body {
  background: #f5f8f7;
}

html:root[data-theme="light"] .page-hero,
html:root[data-theme="light"] .client-hero,
html:root[data-theme="light"] .testimonials-hero,
html:root[data-theme="light"] .insights-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 199, 232, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f1f6f5 100%);
}

html:root[data-theme="light"] .blog-featured,
html:root[data-theme="light"] .blog-post-card,
html:root[data-theme="light"] .blog-sidebar section,
html:root[data-theme="light"] .testimonial-card,
html:root[data-theme="light"] .review-form,
html:root[data-theme="light"] .review-proof-grid article,
html:root[data-theme="light"] .client-profile-panel,
html:root[data-theme="light"] .client-profile-form,
html:root[data-theme="light"] .blog-comment-form {
  color: #111c20 !important;
  border-color: rgba(17, 28, 32, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 22px 62px rgba(18, 34, 39, 0.08) !important;
}

html:root[data-theme="light"] .client-auth-tabs {
  border-color: rgba(17, 28, 32, 0.14);
  background: #f2f6f5;
}

html:root[data-theme="light"] .client-auth-tabs button {
  color: #536267;
}

html:root[data-theme="light"] .client-auth-tabs button:hover,
html:root[data-theme="light"] .client-auth-tabs button:focus-visible {
  color: #111c20;
}

html:root[data-theme="light"] .client-auth-tabs button.is-active {
  color: #111c20;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(18, 34, 39, 0.12), 0 10px 24px rgba(18, 34, 39, 0.08);
}

html:root[data-theme="light"] .blog-sidebar h2,
html:root[data-theme="light"] .blog-sidebar a,
html:root[data-theme="light"] .blog-sidebar li,
html:root[data-theme="light"] .blog-sidebar p,
html:root[data-theme="light"] .blog-featured h2,
html:root[data-theme="light"] .blog-post-content h3,
html:root[data-theme="light"] .blog-post-content summary,
html:root[data-theme="light"] .testimonial-card blockquote,
html:root[data-theme="light"] .testimonial-card strong,
html:root[data-theme="light"] .review-copy h2,
html:root[data-theme="light"] .review-proof-grid strong,
html:root[data-theme="light"] .client-profile-summary h2,
html:root[data-theme="light"] .client-profile-details dd {
  color: #111c20 !important;
}

html:root[data-theme="light"] .blog-sidebar p,
html:root[data-theme="light"] .blog-sidebar li a,
html:root[data-theme="light"] .blog-featured > p,
html:root[data-theme="light"] .blog-featured-points span,
html:root[data-theme="light"] .blog-post-content p,
html:root[data-theme="light"] .blog-post-content details p,
html:root[data-theme="light"] .blog-post-content small,
html:root[data-theme="light"] .testimonial-card span,
html:root[data-theme="light"] .testimonial-card em,
html:root[data-theme="light"] .review-copy > p,
html:root[data-theme="light"] .review-proof-grid p,
html:root[data-theme="light"] .review-note,
html:root[data-theme="light"] .client-profile-details dt,
html:root[data-theme="light"] .client-profile-summary p {
  color: #4e5f65 !important;
}

html:root[data-theme="light"] .review-form .button.primary,
html:root[data-theme="light"] .client-profile-form .button.primary,
html:root[data-theme="light"] .blog-comment-form .button,
html:root[data-theme="light"] .blog-reply-form .button {
  color: #071114 !important;
  background: #eaf1f2 !important;
  border-color: rgba(17, 28, 32, 0.12) !important;
}

html:root[data-theme="light"] .review-form .button.primary:hover,
html:root[data-theme="light"] .client-profile-form .button.primary:hover,
html:root[data-theme="light"] .blog-comment-form .button:hover,
html:root[data-theme="light"] .blog-reply-form .button:hover {
  background: #dff5f9 !important;
  border-color: rgba(0, 137, 164, 0.32) !important;
}

html:root[data-theme="light"] .review-note {
  opacity: 1 !important;
}

html:root[data-theme="light"] .blog-action-status {
  color: #607078 !important;
}

html:root[data-theme="light"] .comment-author-line em {
  color: #075d70;
  border-color: rgba(0, 137, 164, 0.24);
  background: #eaf9fc;
}

html:root[data-theme="light"] .blog-comment-item.is-admin,
html:root[data-theme="light"] .blog-reply-item.is-admin {
  background: #eef9fb;
}

@media (prefers-reduced-motion: no-preference) {
  .blog-post-card,
  .testimonial-card,
  .review-proof-grid article,
  .blog-sidebar section {
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  }

  .blog-post-card:hover,
  .testimonial-card:hover,
  .review-proof-grid article:hover,
  .blog-sidebar section:hover {
    transform: translateY(-2px);
  }
}

/* V61: YouTube-style blog discussion thread and stricter admin feedback. */
.blog-comment-form {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.blog-comment-composer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.blog-comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: #f8feff;
  font-weight: 800;
  background: radial-gradient(circle at 30% 20%, rgba(34, 199, 232, 0.5), rgba(6, 13, 15, 0.98));
  border: 1px solid rgba(34, 199, 232, 0.36);
}

.blog-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-comment-form label {
  display: block !important;
}

.blog-comment-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.blog-comment-form textarea,
.blog-reply-form textarea {
  min-height: 44px !important;
  resize: vertical;
  border-width: 0 0 1px !important;
  border-radius: 0 !important;
  padding: 10px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.blog-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.blog-reply-actions .button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
}

.blog-comments {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.blog-comment-item,
.blog-reply-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.blog-comment-body {
  min-width: 0;
}

.comment-author-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-author-line strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.92rem !important;
}

.comment-author-line small,
.blog-comment-item span,
.blog-reply-item span {
  color: rgba(174, 187, 193, 0.75);
  font-size: 0.82rem;
}

.blog-comment-item p,
.blog-reply-item p {
  margin: 7px 0 8px !important;
  line-height: 1.55;
}

.blog-comment-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.blog-comment-tools button,
.blog-reply-item button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(226, 236, 240, 0.82);
  font-size: 0.84rem;
}

.blog-comment-tools button:hover,
.blog-reply-item button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f8feff;
}

.blog-reply-form {
  margin-top: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.blog-replies {
  margin-top: 10px;
}

.blog-replies summary {
  width: fit-content;
  cursor: pointer;
  color: #22c7e8;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 5px 10px;
  border-radius: 999px;
}

.blog-replies summary:hover {
  background: rgba(34, 199, 232, 0.1);
}

.blog-replies .blog-reply-item {
  margin-top: 12px;
}

.blog-comment-item.is-pinned .blog-comment-body {
  padding: 12px;
  border-radius: 14px;
  background: rgba(34, 199, 232, 0.07);
  border: 1px solid rgba(34, 199, 232, 0.18);
}

html:root[data-theme="light"] .blog-comment-avatar {
  color: #071013;
  background: radial-gradient(circle at 30% 20%, #c6f5ff, #f8fbfb);
  border-color: rgba(0, 137, 164, 0.28);
}

html:root[data-theme="light"] .blog-comment-form textarea,
html:root[data-theme="light"] .blog-reply-form textarea {
  color: #10191d !important;
  border-color: rgba(16, 25, 29, 0.22) !important;
}

html:root[data-theme="light"] .comment-author-line small,
html:root[data-theme="light"] .blog-comment-item span,
html:root[data-theme="light"] .blog-reply-item span {
  color: #66757c !important;
}

html:root[data-theme="light"] .blog-comment-tools button,
html:root[data-theme="light"] .blog-reply-item button {
  color: #334247 !important;
}

html:root[data-theme="light"] .blog-comment-tools button:hover,
html:root[data-theme="light"] .blog-reply-item button:hover,
html:root[data-theme="light"] .blog-replies summary:hover {
  background: rgba(0, 137, 164, 0.1) !important;
}

html:root[data-theme="light"] .blog-comment-item.is-pinned .blog-comment-body {
  background: #e9f8fb;
  border-color: rgba(0, 137, 164, 0.2);
}
