:root {
  color-scheme: light;
  --page: #f6f8ff;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --surface-tint: #eef3ff;
  --ink: #111827;
  --text: #263348;
  --muted: #65758f;
  --line: #dfe6f5;
  --line-strong: #c7d3ea;
  --primary: #365ee8;
  --primary-strong: #2647c6;
  --violet: #7667f4;
  --cyan: #20aee5;
  --green: #18b985;
  --orange: #f39b38;
  --pink: #e95c9d;
  --amber: #eab75a;
  --shadow: 0 10px 24px rgba(45, 73, 132, 0.1);
  --soft-shadow: 0 4px 12px rgba(45, 73, 132, 0.08);
  --shell-max-width: 1920px;
  --header-height: 58px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(214, 225, 255, 0.88), transparent 26rem),
    radial-gradient(circle at 88% 40%, rgba(255, 232, 202, 0.62), transparent 24rem),
    linear-gradient(180deg, #fbfdff 0%, #f3f7ff 48%, #ffffff 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.dark-mode {
  --page: #0f1523;
  --surface: #151f32;
  --surface-soft: #101a2c;
  --surface-tint: #1d2a44;
  --ink: #f7faff;
  --text: #edf3ff;
  --muted: #afbdd2;
  --line: rgba(195, 210, 234, 0.17);
  --line-strong: rgba(195, 210, 234, 0.28);
  --primary: #86a0ff;
  --primary-strong: #b2c1ff;
  background:
    radial-gradient(circle at 16% 18%, rgba(61, 88, 155, 0.25), transparent 26rem),
    radial-gradient(circle at 88% 40%, rgba(119, 80, 145, 0.18), transparent 24rem),
    linear-gradient(180deg, #0d1422 0%, #101827 58%, #0b111d 100%);
}

body::before,
.ambient,
.noomo-flow-canvas,
.noomo-pointer-light {
  display: none !important;
}

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

a {
  color: inherit;
}

button,
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(54, 94, 232, 0.28);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 14px;
  text-decoration: none;
}

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

.site-header,
.tool-sidebar,
.quick-entry,
.page {
  position: relative;
  z-index: 3;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-height);
  grid-template-columns: minmax(185px, 280px) minmax(620px, 1fr) minmax(210px, 320px);
  padding: 0 max(24px, calc((100vw - min(var(--shell-max-width), calc(100vw - 64px))) / 2));
  border-bottom: 1px solid rgba(219, 227, 244, 0.9);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

body.dark-mode .site-header {
  background: rgba(15, 21, 35, 0.98);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2f62f0, #6c63ff 58%, #18b9e6);
  color: #fff;
  box-shadow: 0 6px 12px rgba(54, 94, 232, 0.16);
}

.brand-symbol::after {
  content: none;
}

.image-symbol img {
  width: 34px;
  height: 34px;
}

.brand strong {
  display: block;
  overflow: hidden;
  max-width: 160px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.05;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.3vw, 24px);
}

.nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--header-height);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 2px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-trigger svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.nav-trigger:hover,
.nav-trigger.active {
  color: var(--primary);
  background: transparent;
}

.nav-trigger:hover {
  transform: translateY(-1px);
}

.nav-trigger.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.theme-toggle,
.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 10px;
}

.theme-toggle strong {
  min-width: 38px;
  border-radius: 6px;
  background: var(--surface-tint);
  color: var(--primary);
  padding: 4px 8px;
  font-size: 12px;
  text-align: center;
}

.header-cta {
  border: 0;
  background: linear-gradient(180deg, #f7cd84, #e9a94c);
  color: #271706;
  padding: 0 18px;
  box-shadow: 0 6px 12px rgba(177, 113, 28, 0.14);
}

.header-cta:hover {
  background: linear-gradient(180deg, #ffd899, #efa94b);
}

.quick-entry {
  display: none;
}

.page {
  margin-left: 0;
}

.landing-home {
  display: grid;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 32px;
  width: min(var(--shell-max-width), calc(100vw - 64px)) !important;
  min-height: auto;
  margin-inline: auto !important;
  padding: 0 0 42px !important;
}

.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(560px, 0.8fr) minmax(700px, 1.2fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  min-height: min(520px, calc(100vh - var(--header-height)));
  padding: 42px 0 30px;
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0 calc((100vw - min(var(--shell-max-width), calc(100vw - 64px))) / -2);
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(54, 94, 232, 0.15), rgba(255, 255, 255, 0) 48%),
    radial-gradient(circle at 70% 32%, rgba(128, 153, 255, 0.38), transparent 26rem);
}

.landing-copy {
  width: min(710px, 100%);
  min-width: 0;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin: 0 0 18px;
  border: 1px solid rgba(54, 94, 232, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
}

body.dark-mode .landing-kicker {
  background: rgba(21, 31, 50, 0.7);
}

.landing-kicker svg {
  width: 16px;
  height: 16px;
}

.landing-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 3.45vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-copy h1 span {
  display: block;
}

.landing-copy h1 span:last-child {
  color: var(--primary);
}

.landing-copy h1 .hero-title-nowrap {
  white-space: nowrap;
}

.landing-summary {
  max-width: 56ch;
  margin: 18px 0 0;
  color: #35445c;
  font-size: 16px;
  line-height: 1.8;
  text-wrap: pretty;
}

body.dark-mode .landing-summary {
  color: var(--muted);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #456ef4, #365ee8);
  color: #fff;
  box-shadow: 0 8px 16px rgba(54, 94, 232, 0.2);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-button:hover {
  background: linear-gradient(180deg, #365ee8, #2647c6);
  box-shadow: 0 10px 18px rgba(54, 94, 232, 0.24);
  transform: translateY(-1px);
}

.ghost-button,
.outline-link {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ghost-button:hover,
.outline-link:hover {
  border-color: rgba(54, 94, 232, 0.38);
  color: var(--primary);
  transform: translateY(-1px);
}

.landing-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.landing-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(226, 233, 247, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #3a4961;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 850;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.landing-points span:hover {
  border-color: rgba(54, 94, 232, 0.24);
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

body.dark-mode .landing-points span {
  background: var(--surface);
  color: var(--text);
}

.landing-points svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
  transform: translateZ(0);
  transition: filter 220ms ease, transform 220ms ease;
}

.hero-media:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: translateY(-2px);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 18px;
}

.about-panel,
.services-panel,
.service-detail-section,
.portfolio-section,
.project-detail-section,
.internal-pages-section,
.toolbox-section,
.trust-strip,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

body.dark-mode .about-panel,
body.dark-mode .services-panel,
body.dark-mode .service-detail-section,
body.dark-mode .portfolio-section,
body.dark-mode .project-detail-section,
body.dark-mode .internal-pages-section,
body.dark-mode .toolbox-section,
body.dark-mode .trust-strip,
body.dark-mode .contact-section {
  background: var(--surface);
}

.about-panel,
.services-panel,
.service-detail-section,
.portfolio-section,
.project-detail-section,
.internal-pages-section,
.toolbox-section,
.contact-section {
  padding: 22px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading-wide {
  margin-bottom: 22px;
}

.section-heading h2,
.toolbox-heading h2,
.portfolio-head h2,
.project-copy h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.22;
  text-wrap: balance;
}

.section-heading h2::after,
.toolbox-heading h2::after,
.portfolio-head h2::after,
.contact-section h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--primary);
}

.services-panel .section-heading h2::after {
  background: var(--orange);
}

.section-heading p,
.toolbox-heading p,
.portfolio-head p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.about-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
}

.about-visual {
  width: 100%;
  min-height: 185px;
  border-radius: 8px;
  object-fit: cover;
}

.about-body p {
  margin: 0;
  color: #33445e;
  line-height: 1.76;
}

body.dark-mode .about-body p {
  color: var(--muted);
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.skill-row span {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 60px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.skill-row svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

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

.service-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 88px;
  border: 1px solid rgba(225, 232, 245, 0.96);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--text);
  padding: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body.dark-mode .service-card {
  background: var(--surface-soft);
}

.service-card:hover {
  border-color: rgba(54, 94, 232, 0.28);
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(45, 73, 132, 0.08);
}

.service-card svg,
.service-detail-grid svg,
.workflow-row svg,
.trust-strip svg {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--primary);
  padding: 10px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.service-card:hover svg {
  transform: scale(1.06) rotate(-2deg);
}

.service-card:nth-child(2) svg,
.service-card:nth-child(5) svg {
  background: #e6f9f4;
  color: var(--green);
}

.service-card:nth-child(3) svg,
.service-card:nth-child(4) svg {
  background: #fff3e4;
  color: var(--orange);
}

.service-card:nth-child(6) svg {
  background: #e8f7ff;
  color: var(--cyan);
}

.service-card strong,
.service-card small {
  display: block;
  min-width: 0;
}

.service-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}

.service-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.service-detail-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 206px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.service-detail-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.service-detail-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.service-detail-grid a {
  align-self: end;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--primary);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.service-detail-feature {
  background: linear-gradient(180deg, #ffffff, #f3f7ff) !important;
}

body.dark-mode .service-detail-feature {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft)) !important;
}

.portfolio-section {
  display: grid;
  gap: 18px;
}

.portfolio-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  align-items: end;
  gap: 18px;
}

.portfolio-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.portfolio-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
}

.portfolio-tabs button.active,
.portfolio-tabs button:hover {
  background: var(--primary);
  color: #fff;
}

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

.portfolio-grid article {
  position: relative;
  min-width: 0;
}

.portfolio-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-tint);
}

.portfolio-grid article::after {
  content: "";
  position: absolute;
  top: calc((100vw - 48px) / 12 * 0.35);
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.55);
  pointer-events: none;
}

.portfolio-grid h3 {
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-grid p,
.portfolio-grid span {
  color: var(--muted);
  font-size: 12px;
}

.portfolio-grid p {
  margin: 4px 0 0;
}

.portfolio-grid span {
  position: absolute;
  right: 0;
  bottom: 0;
}

.outline-link {
  justify-self: center;
}

.project-detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: center;
}

.project-media,
.internal-grid {
  width: 100%;
}

.case-video-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.case-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #101724;
}

.case-frame img,
.thumb-strip img {
  width: 100%;
  border-radius: 8px;
  background: var(--surface-tint);
  object-fit: cover;
}

.case-frame img {
  aspect-ratio: 16 / 9;
}

.case-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
}

.case-play svg {
  width: 26px;
  height: 26px;
}

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

.thumb-strip img {
  aspect-ratio: 16 / 9;
  min-height: 58px;
}

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

.internal-page-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 18px;
  text-decoration: none;
}

.internal-page-card:hover {
  border-color: rgba(54, 94, 232, 0.35);
  transform: translateY(-1px);
}

.internal-page-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--primary);
}

.internal-page-card strong,
.internal-page-card small {
  display: block;
}

.internal-page-card strong {
  color: var(--ink);
  font-size: 17px;
}

.internal-page-card small {
  color: var(--muted);
  line-height: 1.55;
}

.project-copy h2 {
  color: var(--primary);
  font-size: 18px;
}

.project-copy h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.project-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-copy ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.project-copy li {
  color: var(--text);
  line-height: 1.55;
}

.internal-pages-section {
  display: grid;
  gap: 4px;
}

.internal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.process-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 20px;
}

.process-panel h3 {
  margin: 0 0 14px;
  color: var(--ink);
}

.process-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: process-step;
  list-style: none;
}

.process-panel li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  line-height: 1.55;
  counter-increment: process-step;
}

.process-panel li::before {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  content: counter(process-step, decimal-leading-zero);
}

.process-panel strong,
.process-panel span {
  grid-column: 2;
  display: block;
}

.process-panel strong {
  color: var(--ink);
}

.process-panel span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.toolbox-section {
  display: grid;
  gap: 18px;
}

.toolbox-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  align-items: start;
  gap: 20px;
}

.engine-panel-card {
  border: 1px solid rgba(54, 94, 232, 0.18);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.engine-panel-head span {
  color: var(--ink);
}

.engine-panel-card p,
.engine-panel-card small {
  color: var(--muted);
}

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

.workflow-row button {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  border: 1px solid rgba(54, 94, 232, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.workflow-row button:hover {
  border-color: rgba(54, 94, 232, 0.35);
  transform: translateY(-1px);
}

.workflow-row svg {
  width: 38px;
  height: 38px;
  padding: 9px;
}

.workflow-row span,
.workflow-row small {
  display: block;
}

.workflow-row span {
  color: var(--ink);
  font-weight: 900;
}

.workflow-row small {
  margin-top: 3px;
  color: var(--muted);
}

.home-picker,
.ai-console {
  width: 100% !important;
  max-width: none;
}

.home-picker-shell {
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.home-picker-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.home-tabs {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.home-tabs button {
  flex: 0 0 auto;
  min-width: 108px;
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.home-tabs button span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.home-tabs button.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: inset 0 3px 0 var(--primary);
}

.home-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border-left: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 0 14px;
}

.home-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.home-search span {
  border-radius: 6px;
  background: var(--surface-tint);
  color: var(--muted);
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 900;
}

.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  min-height: 226px;
  padding: 16px;
}

.home-tool {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  justify-content: start;
  gap: 10px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 12px;
  box-shadow: none;
  font-weight: 900;
  text-align: left;
}

.home-tool:hover {
  border-color: color-mix(in srgb, var(--tool-color, var(--primary)) 38%, var(--line));
  background: var(--surface);
  transform: translateY(-1px);
}

.home-tool svg {
  width: 22px;
  height: 22px;
  color: var(--tool-color, var(--primary));
}

.home-tool span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(232, 240, 255, 0.95), rgba(246, 239, 255, 0.95));
}

body.dark-mode .trust-strip {
  background: var(--surface);
}

.trust-strip span {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.trust-strip span:last-child {
  border-right: 0;
}

.trust-strip svg {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  padding: 9px;
}

.trust-strip strong {
  color: var(--ink);
  font-size: 14px;
}

.trust-strip small {
  margin-top: 3px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr) auto;
  gap: 22px;
  align-items: center;
}

.contact-section ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-section li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.contact-section svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.tool-mode .landing-home,
.tool-mode .site-footer {
  display: none;
}

.home-mode .tool-sidebar,
.home-mode .hero-tool,
.home-mode .result-section {
  display: none;
}

.tool-mode .page {
  margin-left: var(--sidebar-width);
}

.tool-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

body.dark-mode .tool-sidebar {
  background: rgba(15, 21, 35, 0.94);
}

.sidebar-title {
  color: var(--muted);
}

.sidebar-tool {
  border-radius: 8px;
}

.sidebar-tool:hover,
.sidebar-tool.active {
  background: rgba(54, 94, 232, 0.1);
  color: var(--primary);
}

.sidebar-tool.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.hero-tool {
  background:
    radial-gradient(circle at 10% 8%, rgba(207, 221, 255, 0.65), transparent 24rem),
    linear-gradient(180deg, #fbfdff, #f4f8ff);
}

body.dark-mode .hero-tool {
  background:
    radial-gradient(circle at 10% 8%, rgba(71, 99, 170, 0.22), transparent 24rem),
    linear-gradient(180deg, #0e1524, #101827);
}

.badges span,
.creator-rail span,
.upload-card,
.result-panel,
.steps-panel,
.popover-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  backdrop-filter: none;
}

.tool-intro h1 {
  color: var(--ink);
  letter-spacing: 0;
}

.lead,
.steps p,
.status-card {
  color: var(--muted);
}

.icon-bubble,
.upload-orb,
.steps strong {
  border-radius: 8px;
  background: linear-gradient(180deg, #456ef4, #365ee8);
  color: #fff;
  box-shadow: 0 8px 16px rgba(54, 94, 232, 0.18);
}

.dropzone {
  border-color: rgba(54, 94, 232, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 246, 255, 0.78));
}

body.dark-mode .dropzone {
  background: var(--surface-soft);
}

.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(54, 94, 232, 0.08);
}

.setting input,
.setting select,
.setting textarea,
.setting-check,
.url-tool div,
.file-row {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.url-tool button {
  background: var(--primary);
  color: #fff;
}

.result-section {
  background: #ffffff;
}

body.dark-mode .result-section {
  background: #0b111d;
}

#logOutput {
  background: #101724;
  color: #d8f6e8;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(140px, 0.65fr));
  gap: 28px;
  width: min(var(--shell-max-width), calc(100vw - 64px));
  margin: 0 auto;
  padding: 38px 0 34px;
  color: var(--muted);
  background: transparent;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-brand p {
  max-width: 42ch;
  margin: 0;
  line-height: 1.7;
}

.footer-links,
.footer-meta {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links strong,
.footer-meta strong {
  color: var(--ink);
}

.footer-links a,
.footer-links button,
.footer-meta a {
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links button:hover,
.footer-meta a:hover {
  color: var(--primary);
}

.popover {
  background: rgba(15, 23, 42, 0.24);
}

@media (max-width: 1180px) {
  :root {
    --shell-max-width: 960px;
  }

  .site-header {
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
    padding: 10px 18px;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nav-trigger {
    min-height: 38px;
  }

  .hero-band,
  .overview-grid,
  .project-detail-section,
  .internal-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-band {
    min-height: auto;
    padding-top: 38px;
  }

  .landing-copy {
    width: min(760px, 100%);
  }

  .portfolio-head,
  .toolbox-heading {
    grid-template-columns: 1fr;
  }

  .portfolio-tabs {
    justify-content: flex-start;
  }

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

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

  .trust-strip span:nth-child(2) {
    border-right: 0;
  }

  .trust-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 900px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    min-height: var(--header-height);
    justify-content: space-between;
    padding: 10px 14px;
  }

  .tool-mode .tool-sidebar {
    display: none;
  }

  .top-nav {
    order: 3;
    display: flex;
    flex: 0 0 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-top: 6px;
    scrollbar-width: thin;
  }

  .nav-trigger {
    flex: 0 0 auto;
    min-height: 34px;
    font-size: 13px;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .theme-toggle {
    width: 42px;
    padding: 0;
  }

  .theme-toggle strong,
  .header-cta span {
    display: none;
  }

  .landing-home {
    width: 100% !important;
    max-width: 100% !important;
    gap: 22px;
    padding: 0 16px 28px !important;
    overflow: hidden !important;
  }

  .landing-home,
  .landing-home * {
    max-width: 100%;
  }

  .landing-copy,
  .hero-band,
  .overview-grid,
  .about-body,
  .about-body > div,
  .service-list,
  .service-detail-grid,
  .portfolio-grid,
  .internal-grid,
  .toolbox-section,
  .trust-strip,
  .contact-section {
    min-width: 0;
  }

  .hero-band {
    gap: 24px;
    padding: 28px 0 8px;
    overflow: hidden;
  }

  .hero-band::before {
    inset-inline: -16px;
  }

  .landing-copy h1 {
    font-size: clamp(30px, 8.2vw, 40px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .landing-copy h1 .hero-title-nowrap {
    white-space: normal;
  }

  .landing-summary {
    font-size: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .about-panel,
  .services-panel,
  .service-detail-section,
  .portfolio-section,
  .project-detail-section,
  .internal-pages-section,
  .toolbox-section,
  .contact-section {
    padding: 18px;
  }

  .about-body,
  .service-list,
  .service-detail-grid,
  .workflow-row,
  .home-picker-top {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-height: 240px;
    min-height: 0;
    object-fit: cover;
  }

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

  .home-search {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .home-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .home-tool {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 74px;
    padding: 10px 8px;
    text-align: center;
  }

  .home-tool span {
    white-space: normal;
    line-height: 1.2;
  }

  .trust-strip,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .trust-strip span,
  .trust-strip span:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip span:last-child {
    border-bottom: 0;
  }

  .page,
  .tool-mode .page {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 18px;
  }

  .brand small {
    max-width: 150px;
    font-size: 10px;
  }

  .landing-kicker {
    align-items: flex-start;
    min-height: 0;
    padding-block: 7px;
    line-height: 1.35;
  }

  .landing-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-actions .primary-button,
  .landing-actions .ghost-button {
    width: 100%;
  }

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

  .landing-points span {
    min-width: 0;
    padding-inline: 10px;
    font-size: 12px;
  }

  .hero-media img {
    min-height: 210px;
    object-position: center;
    object-fit: cover;
  }

  .section-heading h2,
  .toolbox-heading h2,
  .portfolio-head h2,
  .project-copy h3,
  .contact-section h2 {
    font-size: 21px;
  }

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

  .skill-row span {
    min-width: 0;
    font-size: 12px;
  }

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

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .workflow-row button {
    min-height: 68px;
  }

  .home-tabs button {
    min-width: 86px;
    min-height: 50px;
    font-size: 13px;
  }

  .home-search span {
    display: none;
  }

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

  .home-tool {
    min-height: 70px;
  }

  .trust-strip span {
    padding: 16px;
  }
}

.site-page .page {
  margin-left: 0;
}

.inner-page {
  display: grid;
  gap: 24px;
  width: min(1920px, calc(100vw - 64px));
  margin-inline: auto;
  padding: 42px 0 48px;
}

.page-hero,
.page-section,
.about-page-hero,
.about-capability-grid,
.contact-brief-grid,
.service-page-layout,
.service-page-grid {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.page-hero,
.about-page-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  padding: clamp(26px, 4vw, 44px);
}

body.dark-mode .page-hero,
body.dark-mode .about-page-hero {
  background: var(--surface);
}

.page-hero {
  display: grid;
  gap: 16px;
}

.page-hero-split,
.about-page-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(22px, 4vw, 42px);
}

.page-hero h1,
.about-page-hero h1 {
  max-width: 20ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
  text-wrap: balance;
}

.page-hero p:not(.landing-kicker),
.about-page-hero p {
  max-width: 68ch;
  margin: 0;
  color: #33445e;
  font-size: 17px;
  line-height: 1.78;
  text-wrap: pretty;
}

body.dark-mode .page-hero p:not(.landing-kicker),
body.dark-mode .about-page-hero p {
  color: var(--muted);
}

.about-page-hero img {
  width: 100%;
  height: clamp(300px, 28vw, 460px);
  min-height: 0;
  border-radius: 8px;
  object-fit: cover;
}

.service-flow-card,
.contact-card-large {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 20px;
}

.service-flow-card ol,
.contact-card-large ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-flow-card ol {
  counter-reset: flow-step;
}

.service-flow-card li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  color: var(--muted);
  line-height: 1.58;
  counter-increment: flow-step;
}

.service-flow-card li::before {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  content: counter(flow-step, decimal-leading-zero);
}

.service-flow-card strong,
.service-flow-card span {
  grid-column: 2;
  display: block;
  min-width: 0;
}

.service-flow-card strong {
  color: var(--ink);
  font-size: 16px;
}

.service-page-grid,
.about-capability-grid,
.contact-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  align-items: start;
  gap: 18px;
}

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

.service-page-card,
.about-capability-grid article,
.contact-brief-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  padding: 22px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-page-card:hover,
.about-capability-grid article:hover,
.contact-brief-grid article:hover {
  border-color: rgba(54, 94, 232, 0.28);
  box-shadow: 0 8px 16px rgba(45, 73, 132, 0.1);
  transform: translateY(-2px);
}

body.dark-mode .service-page-card,
body.dark-mode .about-capability-grid article,
body.dark-mode .contact-brief-grid article {
  background: var(--surface);
}

.service-page-card > svg,
.about-capability-grid article > svg,
.contact-brief-grid article > svg {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--primary);
  padding: 10px;
}

.service-page-card h2,
.about-capability-grid h2,
.contact-brief-grid h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.service-page-card p,
.about-capability-grid p,
.contact-brief-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.service-page-card ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.service-page-card li {
  position: relative;
  color: var(--text);
  line-height: 1.5;
  padding-left: 18px;
}

.service-page-card li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.service-page-card-feature {
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
}

body.dark-mode .service-page-card-feature {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}

.service-page-card .primary-button {
  justify-self: start;
  margin-top: 4px;
}

.service-sticky-panel {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.94)),
    radial-gradient(circle at 82% 10%, rgba(54, 94, 232, 0.14), transparent 12rem);
  box-shadow: var(--soft-shadow);
  padding: 22px;
}

body.dark-mode .service-sticky-panel {
  background:
    linear-gradient(180deg, var(--surface), var(--surface-soft)),
    radial-gradient(circle at 82% 10%, rgba(134, 160, 255, 0.14), transparent 12rem);
}

.service-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  border: 1px solid rgba(54, 94, 232, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 900;
}

.service-signal svg {
  width: 16px;
  height: 16px;
}

.service-sticky-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.32;
  text-wrap: balance;
}

.service-sticky-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.service-proof-list {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.service-proof-list span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.service-proof-list svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.service-sticky-panel .outline-link {
  justify-self: start;
  min-height: 40px;
  margin-top: 2px;
}

.motion-ready [data-reveal] {
  opacity: 1;
  transform: translateY(10px);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready [data-reveal].is-visible {
  transform: translateY(0);
}

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

.portfolio-grid-page article::after {
  top: 31%;
}

.about-strip {
  margin-top: 0;
}

.contact-card-large li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.contact-card-large svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.contact-card-large a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card-large a:hover {
  color: var(--primary);
}

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

.page-cta .primary-button {
  white-space: nowrap;
}

@media (min-width: 1181px) {
  .hero-band {
    padding-top: 58px;
  }

  .service-detail-grid {
    grid-template-columns: repeat(3, minmax(300px, 1fr));
  }

  .service-page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.28fr);
  }

  .service-page-layout .service-page-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }
}

@media (max-width: 900px) {
  .inner-page {
    width: 100%;
    max-width: 100%;
    padding: 22px 16px 34px;
  }

  .page-hero-split,
  .about-page-hero,
  .service-page-layout,
  .service-page-grid,
  .about-capability-grid,
  .contact-brief-grid,
  .page-cta {
    grid-template-columns: 1fr;
  }

  .service-page-layout .service-page-grid {
    grid-template-columns: 1fr;
  }

  .service-sticky-panel {
    position: static;
  }

  .page-hero h1,
  .about-page-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.2vw, 40px);
    overflow-wrap: anywhere;
  }

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

  .internal-preview-grid,
  .thumb-strip {
    grid-template-columns: 1fr;
  }

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

  .page-cta .primary-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .page-hero,
  .about-page-hero,
  .service-page-card,
  .about-capability-grid article,
  .contact-brief-grid article,
  .service-flow-card,
  .contact-card-large {
    padding: 18px;
  }

  .portfolio-grid-page {
    grid-template-columns: 1fr;
  }

  .case-play {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 1181px) {
  :root {
    --shell-max-width: 100vw;
    --site-edge: clamp(24px, 1.7vw, 34px);
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(210px, 300px) minmax(0, 1fr) max-content;
    align-items: center;
    width: 100%;
    padding-inline: var(--site-edge);
  }

  .site-header > .brand {
    justify-self: start;
  }

  .site-header .top-nav {
    min-width: 0;
    justify-self: center;
    justify-content: center;
    gap: clamp(16px, 1.55vw, 30px);
  }

  .site-header .header-actions {
    justify-self: end;
  }

  .landing-home,
  .inner-page,
  .site-footer {
    width: calc(100vw - var(--site-edge) - var(--site-edge)) !important;
    max-width: none;
    margin-inline: auto !important;
  }
}

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

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