:root {
  --ink: #121a1d;
  --ink-soft: #425056;
  --deep-blue: #05070b;
  --deep-blue-rich: #06101c;
  --paper: #edf2f7;
  --paper-deep: #dfe8f1;
  --paper-soft: #f7faff;
  --line: rgba(18, 26, 29, 0.14);
  --coral: #2f6bff;
  --teal: #267dff;
  --amber: #8fc7ff;
  --blue: #4a7dff;
  --white: #fffef8;
  --shadow: 0 20px 50px rgba(18, 26, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    "Noto Sans SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--deep-blue);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  align-items: center;
  background: rgba(5, 10, 18, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 254, 248, 0.1);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: rgba(255, 254, 248, 0.1);
  border: 1px solid rgba(255, 254, 248, 0.16);
  color: var(--white);
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--white);
  font-size: 15px;
}

.brand small {
  color: rgba(255, 254, 248, 0.62);
  font-size: 12px;
  margin-top: 2px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.site-nav a,
.header-action,
.button,
.filter-button {
  border: 1px solid transparent;
  min-height: 40px;
}

.site-nav a {
  color: rgba(255, 254, 248, 0.68);
  font-size: 14px;
  padding: 10px 12px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.header-action,
.button {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  padding: 10px 16px;
}

.header-action {
  background: linear-gradient(135deg, #2f6bff, #1f8bd8);
  color: var(--white);
}

.button.primary {
  background: linear-gradient(135deg, #2f6bff, #1f8bd8);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 254, 248, 0.78);
  border-color: rgba(255, 254, 248, 0.78);
  color: var(--ink);
}

.hero {
  min-height: min(900px, 92svh);
  overflow: hidden;
  position: relative;
}

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

.hero-media {
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(18, 26, 29, 0.74), rgba(18, 26, 29, 0.2) 52%, rgba(18, 26, 29, 0.46)),
    linear-gradient(0deg, rgba(18, 26, 29, 0.38), rgba(18, 26, 29, 0));
}

.hero-content {
  color: var(--white);
  max-width: 720px;
  padding: clamp(120px, 17vh, 180px) clamp(18px, 6vw, 88px) 150px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.96;
  margin-bottom: 24px;
  max-width: 680px;
}

h2 {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  margin-bottom: 0;
}

h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.hero-copy {
  color: rgba(255, 254, 248, 0.88);
  font-size: 19px;
  line-height: 1.7;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  bottom: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: clamp(18px, 6vw, 88px);
  max-width: 740px;
  position: absolute;
  right: clamp(18px, 6vw, 88px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  z-index: 3;
}

.hero-metrics span {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 254, 248, 0.76);
  display: block;
  font-size: 14px;
  padding: 20px 22px;
}

.hero-metrics span:last-child {
  border-right: 0;
}

.hero-metrics strong {
  color: var(--white);
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.intro-band {
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.18), rgba(31, 139, 216, 0.08)),
    var(--deep-blue-rich);
  color: var(--white);
}

.contact-band {
  background: var(--deep-blue);
  color: var(--white);
}

.section,
.intro-band,
.contact-band {
  padding: clamp(70px, 9vw, 120px) 0;
}

.contact-band {
  padding: clamp(42px, 5vw, 68px) 0;
}

#works {
  background: var(--paper);
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(18px, 4vw, 44px);
}

.intro-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 0.35fr 1.1fr 0.75fr;
}

.intro-grid h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 48px);
}

.intro-grid p:last-child,
.event-copy,
.section-note {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.intro-grid p:last-child {
  color: rgba(255, 254, 248, 0.72);
}

.section-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.section-note {
  max-width: 440px;
}

.filter-group {
  border: 1px solid var(--line);
  display: inline-flex;
  padding: 4px;
}

.filter-button {
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 8px 14px;
}

.filter-button.is-active {
  background: var(--deep-blue);
  color: var(--white);
}

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

.work-card,
.featured-video,
.video-card,
.automation-screen,
.automation-card,
.automation-demo,
.automation-tool-card {
  appearance: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.work-card:hover,
.work-card:focus-visible,
.featured-video:hover,
.featured-video:focus-visible,
.video-card:hover,
.video-card:focus-visible,
.automation-screen:hover,
.automation-screen:focus-visible,
.automation-card:hover,
.automation-card:focus-visible,
.automation-demo:hover,
.automation-demo:focus-visible,
.automation-tool-card:hover,
.automation-tool-card:focus-visible {
  border-color: rgba(47, 107, 255, 0.48);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.work-card img {
  aspect-ratio: 1.14;
  display: block;
  height: auto;
  margin: -14px -14px -10px;
  max-width: none;
  object-fit: cover;
  width: calc(100% + 28px);
}

.card-tag {
  background: var(--paper-deep);
  color: var(--teal);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  margin: 18px 18px 0;
  padding: 6px 9px;
}

.card-body {
  display: block;
  min-height: 146px;
  padding: 14px 18px 20px;
}

.card-body strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.card-body span {
  color: var(--ink-soft);
  display: block;
  font-size: 15px;
  line-height: 1.65;
}

.work-card.is-hidden {
  display: none;
}

.portfolio-section,
.video-portfolio-section {
  color: var(--white);
}

.portfolio-section {
  background:
    linear-gradient(180deg, rgba(47, 107, 255, 0.06), rgba(5, 7, 11, 0) 32%),
    var(--deep-blue);
}

.video-portfolio-section {
  background:
    linear-gradient(180deg, rgba(47, 107, 255, 0.075), rgba(5, 7, 11, 0) 34%),
    var(--deep-blue);
  border-top: 1px solid rgba(143, 199, 255, 0.08);
  position: relative;
}

.portfolio-section .section-inner,
.video-portfolio-section .section-inner {
  max-width: none;
  padding-left: clamp(24px, 4.2vw, 72px);
  padding-right: clamp(24px, 4.2vw, 72px);
}

.portfolio-section .section-head,
.video-portfolio-section .section-head {
  margin-left: auto;
  margin-right: auto;
  max-width: 1500px;
}

.portfolio-section .section-kicker,
.video-portfolio-section .section-kicker {
  color: var(--amber);
}

.portfolio-section .section-note,
.video-portfolio-section .section-note {
  color: rgba(255, 254, 248, 0.68);
}

.portfolio-grid {
  display: grid;
  gap: clamp(18px, 2vw, 32px);
  grid-auto-rows: clamp(128px, 9vw, 180px);
  grid-template-areas:
    "one one one one one one one two two two two two"
    "one one one one one one one two two two two two"
    "three three three three five five five six six six six six"
    "three three three three five five five six six six six six"
    "three three three three four four four four four four four four"
    "three three three three four four four four four four four four";
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.portfolio-card {
  appearance: none;
  background: var(--deep-blue);
  border: 1px solid rgba(255, 254, 248, 0.08);
  border-radius: clamp(8px, 1vw, 14px);
  color: inherit;
  cursor: pointer;
  aspect-ratio: auto;
  height: 100%;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.portfolio-card:nth-child(1) {
  grid-area: one;
}

.portfolio-card:nth-child(2) {
  grid-area: two;
}

.portfolio-card:nth-child(3) {
  grid-area: three;
}

.portfolio-card:nth-child(4) {
  grid-area: four;
}

.portfolio-card:nth-child(5) {
  grid-area: five;
}

.portfolio-card:nth-child(6) {
  grid-area: six;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: rgba(255, 254, 248, 0.24);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.portfolio-card img,
.portfolio-video {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
  width: 100%;
}

.portfolio-video {
  display: block;
  pointer-events: none;
}

.portfolio-card:hover img,
.portfolio-card:focus-visible img,
.portfolio-card:hover .portfolio-video,
.portfolio-card:focus-visible .portfolio-video {
  transform: scale(1.035);
}

.portfolio-card::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.portfolio-card[data-video]::before {
  border-bottom: 18px solid transparent;
  border-left: 28px solid rgba(255, 254, 248, 0.94);
  border-top: 18px solid transparent;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  z-index: 2;
}

.portfolio-card[data-video] .portfolio-index::after {
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--white);
  border-top: 8px solid transparent;
  content: "";
  left: calc(50% - 4px);
  position: absolute;
  top: calc(50% - 8px);
}

.portfolio-index {
  align-items: center;
  background: rgba(0, 0, 0, 0.58);
  bottom: clamp(12px, 1.4vw, 20px);
  color: var(--white);
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  left: clamp(12px, 1.4vw, 20px);
  position: absolute;
  width: 52px;
  z-index: 2;
}

.portfolio-card[data-video] .portfolio-index {
  background: var(--blue);
  color: transparent;
}

.portfolio-section .portfolio-index {
  display: none;
}

.video-portfolio-section .portfolio-index {
  display: none;
}

.video-portfolio-section .portfolio-card {
  aspect-ratio: auto;
}

.showcase-section {
  background: var(--paper);
}

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

.case-card,
.motion-case-card {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.case-card:hover,
.case-card:focus-visible,
.motion-case-card:hover,
.motion-case-card:focus-visible {
  border-color: rgba(47, 107, 255, 0.48);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.case-thumb,
.case-thumb img,
.motion-case-card img {
  display: block;
  width: 100%;
}

.case-thumb img,
.motion-case-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-info {
  display: block;
  min-height: 118px;
  padding: 18px;
}

.case-info strong,
.case-info small,
.motion-case-card strong,
.motion-case-card small {
  display: block;
}

.case-info strong,
.motion-case-card strong {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.case-info small,
.motion-case-card small {
  color: var(--ink-soft);
  font-size: 14px;
}

.motion-showcase {
  background: var(--deep-blue);
  color: var(--white);
}

.motion-showcase .section-note {
  color: rgba(255, 254, 248, 0.68);
}

.motion-case-card {
  background: rgba(255, 254, 248, 0.08);
  border-color: rgba(255, 254, 248, 0.16);
  color: var(--white);
}

.motion-case-card::after {
  background: linear-gradient(0deg, rgba(18, 26, 29, 0.72), transparent 62%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.motion-case-card span:not(.mini-play) {
  bottom: 0;
  display: block;
  left: 0;
  padding: 20px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.motion-case-card small {
  color: rgba(255, 254, 248, 0.7);
}

.mini-play {
  border: 2px solid rgba(255, 254, 248, 0.86);
  height: 46px;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 46px;
  z-index: 2;
}

.mini-play::after {
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--white);
  border-top: 9px solid transparent;
  content: "";
  left: 17px;
  position: absolute;
  top: 12px;
}

.workflow-section {
  background: var(--paper);
}

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

.workflow-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.workflow-visual {
  background:
    linear-gradient(135deg, rgba(38, 125, 255, 0.16), rgba(143, 199, 255, 0.12)),
    var(--paper-deep);
  height: 260px;
  position: relative;
}

.workflow-visual::before,
.workflow-visual::after {
  background: rgba(18, 26, 29, 0.24);
  content: "";
  height: 2px;
  left: 12%;
  position: absolute;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
}

.workflow-visual::after {
  left: 50%;
  right: auto;
  top: 16%;
  height: 68%;
  width: 2px;
}

.workflow-visual.alt {
  background:
    linear-gradient(135deg, rgba(77, 97, 255, 0.16), rgba(241, 189, 63, 0.14)),
    var(--paper-deep);
}

.workflow-node {
  align-items: center;
  background: var(--deep-blue);
  color: var(--white);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  position: absolute;
  width: 86px;
  z-index: 2;
}

.node-a {
  left: 7%;
  top: 40%;
}

.node-b {
  left: 28%;
  top: 15%;
}

.node-c {
  left: 42%;
  top: 40%;
}

.node-d {
  right: 25%;
  top: 65%;
}

.node-e {
  right: 7%;
  top: 40%;
}

.workflow-pulse {
  background: var(--coral);
  border-radius: 999px;
  box-shadow: 0 0 0 10px rgba(47, 107, 255, 0.16);
  height: 14px;
  left: 12%;
  position: absolute;
  top: calc(50% - 7px);
  width: 14px;
  z-index: 3;
}

.workflow-visual.alt .workflow-pulse {
  background: var(--blue);
  box-shadow: 0 0 0 10px rgba(77, 97, 255, 0.16);
}

.pulse-one {
  animation: pulseAcross 4s linear infinite;
}

.pulse-two {
  animation: pulseAcross 4s linear 2s infinite;
}

.workflow-copy {
  padding: 24px;
}

.workflow-copy h3 {
  font-size: 24px;
}

.workflow-copy p:last-child {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 0;
}

@keyframes pulseAcross {
  0% {
    left: 12%;
    opacity: 0;
    transform: scale(0.8);
  }

  12%,
  88% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    left: 86%;
    opacity: 0;
    transform: scale(0.8);
  }
}

.automation-section {
  background: var(--paper-soft);
  padding-bottom: clamp(46px, 6vw, 76px);
}

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

.automation-screen {
  background: var(--deep-blue);
  grid-column: 1 / -1;
  min-height: 420px;
  position: relative;
}

.automation-screen img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.automation-screen::after {
  background: linear-gradient(0deg, rgba(18, 26, 29, 0.76), transparent 58%);
  content: "";
  inset: 0;
  position: absolute;
}

.automation-caption {
  bottom: 28px;
  color: var(--white);
  display: block;
  left: 28px;
  position: absolute;
  right: 28px;
  z-index: 3;
}

.automation-caption strong {
  display: block;
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.automation-caption span {
  color: rgba(255, 254, 248, 0.72);
}

.automation-pair {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
}

.automation-tool-card {
  background: var(--deep-blue);
  min-height: 520px;
  position: relative;
}

.automation-tool-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
  min-height: 520px;
}

.automation-tool-panel {
  background: var(--white);
  display: block;
  min-width: 0;
}

.automation-tool-panel + .automation-tool-panel {
  border-left: 1px solid rgba(18, 26, 29, 0.12);
}

.automation-tool-panel img {
  height: 100%;
  object-fit: contain;
  padding: 12px;
  width: 100%;
}

.automation-tool-card::after {
  background: linear-gradient(0deg, rgba(6, 16, 28, 0.82), rgba(6, 16, 28, 0) 38%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.automation-tool-copy {
  bottom: 24px;
  color: var(--white);
  display: block;
  left: 24px;
  max-width: min(560px, calc(100% - 48px));
  position: absolute;
  z-index: 2;
}

.automation-tool-copy strong,
.automation-tool-copy small {
  display: block;
}

.automation-tool-copy strong {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.automation-tool-copy small {
  color: rgba(255, 254, 248, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.automation-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 420px;
}

.automation-card img {
  aspect-ratio: 16 / 10;
  background: var(--white);
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.automation-card span {
  align-self: center;
  display: block;
  padding: 18px;
}

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

.automation-card strong {
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.automation-card small {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.automation-demo {
  background: var(--white);
  min-height: 420px;
}

.automation-demo img {
  background: var(--white);
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 18px;
  width: 100%;
}

.tool-entry-link {
  color: #2f6bff;
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 14px;
  text-decoration-line: underline;
  text-decoration-color: #2f6bff;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.image-page {
  background: var(--paper);
}

.subpage-header {
  background: rgba(5, 10, 18, 0.9);
}

.image-page-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.78), rgba(5, 10, 18, 0.38) 38%, rgba(5, 10, 18, 0.04) 68%),
    url("assets/images/image-generation/banner-dark.png") center / cover no-repeat;
  display: flex;
  min-height: clamp(240px, 26vw, 340px);
  padding: clamp(58px, 6vw, 84px) 0 clamp(34px, 4vw, 54px);
}

.image-page-hero-inner {
  max-width: 1500px;
  padding-left: clamp(16px, 2.6vw, 36px);
  padding-right: clamp(16px, 2.6vw, 36px);
  width: 100%;
}

.image-page-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 4.6vw, 58px);
  max-width: 720px;
}

.image-page-section {
  padding: clamp(70px, 8vw, 112px) 0;
}

.image-page-section h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.image-page-section:nth-of-type(even) {
  background: var(--white);
}

.image-case-inner {
  max-width: 1500px;
  padding-left: clamp(16px, 2.6vw, 36px);
  padding-right: clamp(16px, 2.6vw, 36px);
}

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

.prompt-case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.prompt-case-card:hover,
.prompt-case-card:focus-visible {
  border-color: rgba(47, 107, 255, 0.46);
  box-shadow: var(--shadow);
  outline: 0;
  transform: translateY(-4px);
}

.prompt-case-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.prompt-case-card div {
  padding: 18px;
}

.prompt-case-card strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.prompt-case-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 0;
}

.case-pagination {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.case-pagination button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  min-height: 38px;
  min-width: 42px;
  padding: 8px 14px;
}

.case-pagination button.is-active {
  background: var(--deep-blue);
  color: var(--white);
}

.case-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.asset-module-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.asset-module-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 150px;
  padding: 24px;
}

.asset-module-grid span {
  color: var(--coral);
  display: block;
  font-weight: 900;
  margin-bottom: 24px;
}

.asset-module-grid h3 {
  font-size: 21px;
}

.asset-module-grid p,
.workflow-share-list p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 0;
}

.prompt-link-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.prompt-link-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(18, 26, 29, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(38, 125, 255, 0.08);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 16px 18px 16px 22px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.prompt-link-item:hover,
.prompt-link-item:focus-visible {
  border-color: rgba(47, 107, 255, 0.26);
  box-shadow: 0 20px 48px rgba(38, 125, 255, 0.14);
  outline: 0;
  transform: translateY(-2px);
}

.prompt-link-item strong,
.prompt-link-item small {
  display: block;
}

.prompt-link-item strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 4px;
}

.prompt-link-item small {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.prompt-link-arrow {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--teal);
  display: inline-flex;
  font-size: 42px;
  font-weight: 300;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.workflow-share-list {
  counter-reset: workflow;
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-share-list li {
  align-items: start;
  border-top: 1px solid var(--line);
  counter-increment: workflow;
  display: grid;
  gap: 24px;
  grid-template-columns: 92px minmax(0, 0.42fr) minmax(0, 1fr);
  padding: 28px 0;
}

.workflow-share-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.workflow-share-list li::before {
  color: var(--coral);
  content: counter(workflow, decimal-leading-zero);
  font-size: 26px;
  font-weight: 900;
}

.workflow-share-list strong {
  font-size: 22px;
  line-height: 1.35;
}

.featured-video {
  min-height: 520px;
  position: relative;
}

.featured-video img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.featured-video::after {
  background: linear-gradient(0deg, rgba(18, 26, 29, 0.78), transparent 60%);
  content: "";
  inset: 0;
  position: absolute;
}

.play-icon {
  border: 2px solid rgba(255, 254, 248, 0.8);
  height: 70px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  z-index: 2;
}

.play-icon::after {
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--white);
  border-top: 13px solid transparent;
  content: "";
  left: 27px;
  position: absolute;
  top: 20px;
}

.featured-caption {
  bottom: 28px;
  color: var(--white);
  display: block;
  left: 28px;
  position: absolute;
  right: 28px;
  z-index: 3;
}

.featured-caption strong {
  display: block;
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.featured-caption span {
  color: rgba(255, 254, 248, 0.72);
}

.video-list {
  display: grid;
  gap: 18px;
}

.video-card {
  align-items: stretch;
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 154px;
}

.video-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.video-card span {
  align-self: center;
  display: block;
  padding: 18px;
}

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

.video-card strong {
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.video-card small {
  color: var(--ink-soft);
  font-size: 14px;
}

.records {
  background: #fffefe;
}

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

.record-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.record-card:hover,
.record-card:focus-visible {
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow: var(--shadow);
  outline: 0;
  transform: translateY(-3px);
}

.record-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.record-content {
  padding: 24px;
}

.record-index {
  color: var(--coral);
  display: block;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.record-card p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 0;
}

.events {
  background: var(--paper-soft);
}

.event-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.timeline {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 26px 0;
}

.timeline time {
  color: var(--coral);
  font-size: 26px;
  font-weight: 900;
}

.timeline strong,
.timeline small {
  display: block;
}

.timeline strong {
  font-size: 22px;
  margin-bottom: 8px;
}

.timeline small {
  color: var(--ink-soft);
  font-size: 15px;
}

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

.contact-band h2 {
  color: var(--white);
  font-size: clamp(24px, 2.6vw, 36px);
  max-width: none;
  white-space: nowrap;
}

.contact-actions {
  display: flex;
  gap: 12px;
}

.about-section {
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.18), rgba(31, 139, 216, 0.08)),
    var(--deep-blue-rich);
  color: var(--white);
  padding: clamp(72px, 9vw, 128px) 0;
}

.about-layout {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
}

.about-layout h2 {
  color: var(--white);
}

.about-layout p:last-child {
  color: rgba(255, 254, 248, 0.78);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.9;
  margin: 0;
}

.site-footer {
  align-items: center;
  background: var(--deep-blue-rich);
  border-top: 1px solid rgba(255, 254, 248, 0.12);
  box-shadow: inset 0 1px rgba(143, 199, 255, 0.08);
  color: rgba(255, 254, 248, 0.66);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  min-height: 78px;
  padding: 18px clamp(18px, 4vw, 56px);
}

.detail-dialog,
.submit-dialog,
.image-case-dialog {
  background: var(--white);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(18, 26, 29, 0.32);
  color: var(--ink);
  max-height: calc(100svh - 40px);
  overflow: auto;
  padding: 0;
}

.detail-dialog {
  max-width: min(940px, calc(100vw - 34px));
  width: 940px;
}

.submit-dialog {
  border: 1px solid rgba(18, 26, 29, 0.12);
  border-radius: 12px;
  max-width: min(620px, calc(100vw - 34px));
  width: 620px;
}

.image-case-dialog {
  max-width: calc(100vw - 24px);
  width: min(var(--case-dialog-width, 980px), calc(100vw - 24px));
}

.detail-dialog::backdrop,
.submit-dialog::backdrop,
.image-case-dialog::backdrop {
  background: rgba(18, 26, 29, 0.68);
}

.dialog-close {
  background: var(--deep-blue);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 26px;
  height: 44px;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  z-index: 5;
}

.dialog-media {
  background: var(--deep-blue);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.dialog-media > img,
.dialog-media > video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dialog-content {
  padding: 28px;
}

.dialog-content h2 {
  font-size: 32px;
  margin-bottom: 14px;
}

.dialog-content p:last-child {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 0;
}

.submit-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #3a414d;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 36px;
  z-index: 5;
}

.submit-close svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  width: 24px;
}

.submit-form {
  display: grid;
  gap: 10px;
  padding: 20px 26px 12px;
}

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

.submit-head-icon {
  align-items: center;
  background: #eaf2ff;
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.submit-head-icon svg,
.submit-control svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.submit-head-icon svg {
  height: 20px;
  width: 20px;
}

.submit-head h2 {
  color: #101827;
  font-size: 24px;
  line-height: 1.12;
}

.submit-head .section-kicker {
  color: var(--teal);
  font-size: 13px;
  margin-bottom: 4px;
}

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

.submit-label {
  color: #151d2c;
  display: block;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.submit-label em {
  color: #ff3d3d;
  font-style: normal;
  margin-left: 4px;
}

.submit-control {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(18, 26, 29, 0.18);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 44px;
  padding: 0 12px;
}

.submit-control:focus-within {
  border-color: rgba(47, 107, 255, 0.56);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.submit-control svg {
  color: #9aa5b5;
  height: 20px;
  width: 20px;
}

.submit-control input,
.submit-control textarea {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
  min-width: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}

.submit-control input::placeholder,
.submit-control textarea::placeholder {
  color: #8e96a5;
}

.textarea-control {
  align-items: start;
  min-height: 96px;
  padding: 10px 12px 22px;
  position: relative;
}

.textarea-control textarea {
  height: 68px;
  min-height: 52px;
  resize: vertical;
}

.textarea-control textarea[name="prompt"] {
  height: 82px;
}

.char-count {
  bottom: 10px;
  color: #647084;
  font-size: 14px;
  line-height: 1;
  position: absolute;
  right: 16px;
}

.submit-form .file-picker {
  align-items: center;
  background: #f8fbff;
  border: 1px dashed rgba(47, 107, 255, 0.32);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 96px;
  padding: 12px;
  text-align: center;
  width: 100%;
}

.submit-form .file-picker input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.submit-form .file-icon {
  align-items: center;
  background: #eaf2ff;
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.submit-form .file-icon svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

.submit-form .file-name {
  color: #151d2c;
  display: block;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submit-form .file-picker small {
  color: #697488;
  font-size: 12px;
  line-height: 1.55;
}

.submit-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 0;
}

.submit-actions .button {
  border-radius: 6px;
  font-size: 14px;
  min-height: 36px;
  min-width: 88px;
  padding: 7px 12px;
}

.submit-actions .button.secondary {
  background: var(--white);
  border-color: rgba(18, 26, 29, 0.14);
  color: #404a5a;
}

.submit-status {
  color: var(--teal);
  font-size: 13px;
  line-height: 1.6;
  margin: -8px 0 -4px;
  min-height: 10px;
  text-align: right;
}

.case-dialog-media {
  align-items: center;
  background: var(--white);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.case-dialog-media img {
  background: transparent;
  display: block;
  height: auto;
  max-height: min(72svh, 720px);
  object-fit: contain;
  width: 100%;
}

.case-dialog-content {
  padding: 20px 30px 26px;
}

.case-dialog-content h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: 10px;
}

.case-dialog-content p:last-child {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 0;
  white-space: pre-wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .intro-grid,
  .automation-layout,
  .video-layout,
  .event-grid,
  .contact-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .case-grid,
  .motion-grid,
  .workflow-grid,
  .record-grid,
  .method-lane,
  .asset-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .workflow-share-list li {
    grid-template-columns: 72px minmax(0, 0.48fr) minmax(0, 1fr);
  }

  .portfolio-grid {
    grid-auto-rows: clamp(130px, 24vw, 220px);
    grid-template-areas:
      "one one one one one one"
      "one one one one one one"
      "two two two three three three"
      "four four four four four four"
      "four four four four four four"
      "five five five six six six";
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .portfolio-card:nth-child(n) {
    grid-area: auto;
    margin-top: 0;
  }

  .portfolio-card:nth-child(1) {
    grid-area: one;
  }

  .portfolio-card:nth-child(2) {
    grid-area: two;
  }

  .portfolio-card:nth-child(3) {
    grid-area: three;
  }

  .portfolio-card:nth-child(4) {
    grid-area: four;
  }

  .portfolio-card:nth-child(5) {
    grid-area: five;
  }

  .portfolio-card:nth-child(6) {
    grid-area: six;
  }

  .automation-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    gap: 10px;
    min-height: 64px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    padding: 108px 18px 210px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-metrics {
    bottom: 38px;
    grid-template-columns: 1fr;
    left: 18px;
    right: 18px;
  }

  .hero-metrics span {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 0;
    padding: 14px 16px;
  }

  .hero-metrics span:last-child {
    border-bottom: 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .filter-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .filter-button {
    padding: 8px 6px;
  }

  .work-grid,
  .case-grid,
  .motion-grid,
  .workflow-grid,
  .record-grid,
  .method-lane,
  .prompt-case-grid,
  .asset-module-grid {
    grid-template-columns: 1fr;
  }

  .image-page-hero {
    min-height: 260px;
    padding-top: 68px;
  }

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

  .workflow-share-list li {
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .prompt-link-item {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .prompt-link-arrow {
    justify-self: start;
  }

  .portfolio-grid {
    grid-auto-rows: auto;
    grid-template-areas: none;
    grid-template-columns: 1fr;
  }

  .portfolio-card:nth-child(n),
  .portfolio-card:nth-child(even) {
    grid-area: auto;
    margin-top: 0;
  }

  .portfolio-section .portfolio-card:nth-child(n),
  .video-portfolio-section .portfolio-card:nth-child(n) {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .video-portfolio-section .portfolio-card:nth-child(n) {
    aspect-ratio: 16 / 9;
  }

  .case-info {
    min-height: auto;
  }

  .automation-screen {
    min-height: 380px;
  }

  .automation-pair {
    grid-template-columns: 1fr;
  }

  .automation-tool-card {
    min-height: 0;
  }

  .automation-tool-media {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .automation-tool-panel {
    aspect-ratio: 16 / 10;
  }

  .automation-tool-panel + .automation-tool-panel {
    border-left: 0;
    border-top: 1px solid rgba(18, 26, 29, 0.12);
  }

  .automation-tool-card::after {
    display: none;
  }

  .automation-tool-copy {
    background: var(--deep-blue);
    bottom: auto;
    left: auto;
    max-width: none;
    padding: 20px;
    position: static;
  }

  .tool-entry-link {
    font-size: 14px;
    margin-top: 12px;
  }

  .automation-caption strong {
    font-size: 25px;
  }

  .workflow-visual {
    height: 230px;
  }

  .workflow-node {
    font-size: 13px;
    height: 46px;
    width: 70px;
  }

  .card-body {
    min-height: auto;
  }

  .featured-video {
    min-height: 380px;
  }

  .featured-caption strong {
    font-size: 25px;
  }

  .video-card {
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 128px;
  }

  .video-card strong {
    font-size: 16px;
  }

  .record-card {
    min-height: 0;
    padding: 0;
  }

  .record-index {
    margin-bottom: 14px;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .submit-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-band h2 {
    white-space: normal;
  }

  .submit-form {
    gap: 10px;
    padding: 20px;
  }

  .submit-close {
    right: 16px;
    top: 16px;
  }

  .submit-head h2 {
    font-size: 24px;
  }

  .submit-head .section-kicker {
    font-size: 13px;
  }

  .submit-label {
    font-size: 16px;
  }

  .submit-form .file-picker {
    min-height: 96px;
  }

  .button {
    width: 100%;
  }

  .dialog-content {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
