.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual canvas {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  touch-action: none;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  /* The Three.js particle effect only loads above this same breakpoint (see the matchMedia
   * gate at the bottom of index.php), so the canvas is never drawn into on mobile. A static
   * screenshot of the real effect (already carrying its own grid backdrop) covers #hero
   * instead — as a background, not a block image, so it costs no layout space of its own. */
  .hero-grid-bg,
  .hero-glow {
    display: none;
  }
  #hero {
    background-image: url("/images/hero-mobile.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
  .hero-visual {
    display: none;
  }
}
.hero-h1 .dim {
  color: #ffffff;
}
.hero-h1-accent {
  color: #8fc7e8;
}
.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: #ffffff;
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.65;
}
.situation-left {
  text-align: center;
}
.situation-left.reveal {
  transform: none;
  transition: opacity 0.9s ease;
}
.situation-left p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto 16px;
  max-width: 440px;
}
.situation-card {
  position: relative;
  padding: 28px 28px 28px 34px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
}
.situation-card.reveal {
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}
.situation-card-num {
  position: absolute;
  top: 50%;
  left: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-50%) translateX(-26px);
  transition:
    opacity 0.25s ease-out,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.situation-card.visible .situation-card-num {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.situation-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.who-card-icon {
  position: absolute;
  bottom: -14px;
  left: -14px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.who-card-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  color: #fff;
}
.who-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}
.who-card p {
  font-size: 14px;
  color: #fff;
  line-height: 1.6;
}
#services {
  scroll-margin-top: 80px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-header {
  margin-bottom: 64px;
  text-align: center;
}
.services-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 600px;
  margin: 0 auto;
}
.services-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 16px auto 0;
}
.services-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 30px;
}
.service-row {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px 20px 18px 18px;
  background: var(--bg);
  overflow: visible;
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}
.service-row.active {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.service-row:nth-child(1) {
  --file-accent: #8fc7e8;
}
.service-row:nth-child(2) {
  --file-accent: #8fc7e8;
}
.service-row:nth-child(3) {
  --file-accent: #8fc7e8;
}
.service-row:nth-child(4) {
  --file-accent: #8fc7e8;
}
.service-file-tab {
  position: absolute;
  top: -22px;
  left: 28px;
  width: 76px;
  height: 30px;
  color: #10131a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.service-file-tab svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.service-file-tab path {
  fill: var(--file-accent);
}
.service-file-tab span {
  position: relative;
  z-index: 1;
}
.service-row-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 32px 30px 124px;
  cursor: pointer;
  user-select: none;
  border-radius: 18px 18px 0 0;
}
.service-row-header:hover {
  background: rgba(255, 255, 255, 0.02);
}
.service-row-header h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 1;
  transition: color var(--transition);
}
.service-row-hint {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.service-row-chevron {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    color var(--transition);
}
.service-row.active .service-row-chevron {
  transform: rotate(180deg);
  color: var(--file-accent);
}
.service-row-body {
  position: relative;
  max-height: 0;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: var(--bg);
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-row-body-inner {
  padding: 0 32px 32px 124px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.4s ease 0.05s,
    transform 0.4s ease 0.05s;
}
.service-row.active .service-row-body-inner {
  opacity: 1;
  transform: translateY(0);
}
.service-row-body-inner p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 640px;
}
.service-tag {
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
}
.service-tag-accent {
  background: #8fc7e8;
  color: #0b0b0b;
  border-color: #8fc7e8;
}
.service-link {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    color var(--transition),
    gap var(--transition);
}
.service-link:hover {
  color: #6fa8cc;
  gap: 10px;
}
@media (max-width: 640px) {
  .service-row-hint {
    display: none;
  }
  .service-file-tab {
    left: 20px;
    width: 60px;
    height: 26px;
    font-size: 12px;
  }
  .service-row-header {
    padding: 24px 20px 24px 96px;
    gap: 14px;
  }
  .service-row-body-inner {
    padding: 0 20px 24px 96px;
  }
}
.how-step {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: #192230;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: visible;
}
.how-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.how-more {
  text-align: center;
  margin-top: 48px;
}
.how-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--accent);
  transition: color var(--transition);
}
.how-more-link:hover {
  color: var(--text);
}
.how-more-link svg {
  transition: transform var(--transition);
}
.how-more-link:hover svg {
  transform: translateX(3px);
}
.why-labels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 0;
}
.why-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-label-col {
  position: relative;
  padding: 26px 60px 26px 24px;
  background: #192230;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  transition: background var(--transition);
}
.why-label-col:hover {
  background: #35599c;
}
.why-label-col.size-lg {
  min-height: 260px;
}
.why-label-col.size-sm {
  min-height: 170px;
}
.why-label-notch {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: var(--bg);
  border-radius: 0 0 0 32px;
}
.why-label-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.why-label-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}
.why-label-desc {
  font-size: 13px;
  color: #fff;
  line-height: 1.6;
}
.stack-header {
  margin-bottom: 64px;
  text-align: center;
}
.stack-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}
.industries-left {
  text-align: center;
}
.industries-left p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 440px;
}
.industries-wheel {
  position: relative;
  height: 280px;
  margin-top: 8px;
  overflow: hidden;
}
.wheel-arrow {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: #8fc7e8;
  z-index: 2;
}
.wheel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.wheel-item {
  position: absolute;
  left: 40px;
  right: 0;
  top: 50%;
  margin-top: -20px;
  height: 40px;
  line-height: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: 0.02em;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.45s,
    filter 0.45s,
    font-size 0.45s,
    color 0.45s;
  will-change: transform, filter, opacity;
}
@media (max-width: 640px) {
  .industries-wheel {
    height: 220px;
  }
  .wheel-item {
    left: 28px;
  }
}
.approach-left {
  text-align: center;
}
.approach-left p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto 16px;
  max-width: 620px;
}
.approach-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.approach-item h3 {
  font-size: 18px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.approach-item h3.pixel-done {
  opacity: 1;
}
.value-card {
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.value-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
#cta {
  scroll-margin-top: 80px;
}
.cta-box h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  color: #060606;
}
.cta-form {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 40px auto 0;
  text-align: left;
}
.cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cta-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(6, 6, 6, 0.55);
}
.cta-field-opt {
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  opacity: 0.7;
}
.cta-field input,
.cta-field textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(6, 6, 6, 0.15);
  border-radius: 10px;
  color: #060606;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}
.cta-field input::placeholder,
.cta-field textarea::placeholder {
  color: rgba(6, 6, 6, 0.4);
}
.cta-field input:focus,
.cta-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(46, 78, 160, 0.15);
}
.cta-field textarea {
  resize: vertical;
  min-height: 100px;
}
#cta-submit {
  width: 100%;
  justify-content: center;
}
.cta-form-status {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}
@media (max-width: 640px) {
  .cta-form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 960px) {
  section {
    padding: 80px 0;
  }
  .hero-meta {
    flex-wrap: wrap;
    gap: 32px;
  }
  .situation-grid,
  .approach-grid,
  .careers-grid,
  .industries-grid {
    grid-template-columns: 1fr !important;
    gap: 48px;
  }
  .who-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .how-steps {
    grid-template-columns: 1fr 1fr !important;
  }
  .values-grid {
    grid-template-columns: 1fr !important;
  }
  .why-labels {
    gap: 20px;
  }
  .stack-categories {
    grid-template-columns: 1fr 1fr !important;
  }
  .cta-box {
    padding: 64px 32px;
  }
}
@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }
  .who-grid {
    grid-template-columns: 1fr !important;
  }
  .why-labels {
    grid-template-columns: 1fr !important;
  }
  .how-steps {
    grid-template-columns: 1fr !important;
  }
  .stack-categories {
    grid-template-columns: 1fr !important;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-box {
    padding: 40px 20px;
  }
  .hero-inner {
    padding-top: calc(var(--header-h) + 48px);
  }
}
