:root {
  color-scheme: light;
  --bg: #f5f6f4;
  --bg-soft: #ecefed;
  --ink: #101412;
  --ink-soft: #2d3430;
  --muted: #66706a;
  --faint: #9aa39d;
  --line: #d7ddd9;
  --line-strong: #aab4ae;
  --green: #00a86b;
  --green-dark: #007a52;
  --green-soft: #e2f4ed;
  --hero-bg: #050706;
  --hero-ink: #f4f7f5;
  --hero-muted: #aeb8b2;
  --hero-line: rgba(244, 247, 245, 0.18);
  --container: min(1280px, calc(100vw - 72px));
  --header-height: 96px;
  --radius: 2px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 20, 18, 0.035) 1px, transparent 1px) 0 0 / calc((100vw - 72px) / 12) 100%,
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--green-soft);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-height);
  padding: 14px max(48px, calc((100vw - 1400px) / 2));
  background: rgba(5, 7, 6, 0.94);
  border-bottom: 1px solid rgba(244, 247, 245, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.brand img {
  width: auto;
  height: 58px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: rgba(244, 247, 245, 0.72);
  font-size: 15px;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -18px;
  left: 0;
  height: 2px;
  background: transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  background: var(--green);
}

.site-nav .nav-cta {
  padding: 13px 24px;
  background: #fff;
  border: 1px solid #fff;
  color: var(--ink);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.site-nav .nav-cta::after {
  display: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 14px;
  border: 1px solid rgba(244, 247, 245, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.language-switch button {
  min-width: 42px;
  min-height: 36px;
  border: 0;
  border-right: 1px solid rgba(244, 247, 245, 0.14);
  background: transparent;
  color: rgba(244, 247, 245, 0.7);
  font-size: 13px;
  font-weight: 760;
}

.language-switch button:last-child {
  border-right: 0;
}

.language-switch button:hover,
.language-switch button.is-active {
  background: var(--green);
  color: #fff;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 247, 245, 0.22);
  border-radius: var(--radius);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: #fff;
}

main {
  overflow: hidden;
}

.section-panel {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: calc(100svh - var(--header-height));
  margin: 0;
  padding: clamp(56px, 7vw, 88px) max(48px, calc((100vw - 1400px) / 2)) 40px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(244, 247, 245, 0.082) 1px, transparent 1px) 0 0 / calc((100vw - 96px) / 12) 100%,
    linear-gradient(180deg, #050706 0%, #080b09 100%);
  border-bottom: 1px solid #141a17;
  color: var(--hero-ink);
}

.hero::before {
  content: "";
  position: absolute;
  right: max(48px, calc((100vw - 1400px) / 2));
  bottom: 174px;
  width: min(44vw, 660px);
  height: 1px;
  background: var(--green);
  opacity: 0.88;
  display: none;
}

.hero-layout {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: clamp(26px, 4.4vw, 62px);
  align-items: stretch;
  width: 100%;
  max-width: 1400px;
  min-height: calc(100svh - var(--header-height) - 96px);
  margin: 0 auto;
}

.hero-copy h1 {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  color: var(--hero-ink);
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.45vw, 28px);
  font-size: clamp(118px, 13.4vw, 198px);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 860;
}

.hero-copy h1 span {
  display: inline-block;
  white-space: nowrap;
}

.hero-copy h1 span + span {
  margin-left: 0;
}

.hero-accent {
  color: var(--green);
}

.hero-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 840px) minmax(280px, auto);
  gap: clamp(28px, 4vw, 70px);
  align-items: end;
  padding-top: 32px;
  border-top: 1px solid var(--hero-line);
}

.hero-lead {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 2.15vw, 31px);
  line-height: 1.34;
  font-weight: 680;
}

.hero-lead span {
  white-space: nowrap;
}

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

.hero-note {
  position: relative;
  grid-column: 1 / -1;
  max-width: 620px;
  margin: 2px 0 0;
  padding-left: 80px;
  color: var(--hero-muted);
  font-size: 14px;
}

.hero-methods {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--hero-line);
  border-left: 1px solid var(--hero-line);
}

.hero-methods::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  width: min(44vw, 660px);
  height: 1px;
  background: var(--green);
  opacity: 0.88;
  pointer-events: none;
}

.hero-methods article {
  min-height: 126px;
  padding: 24px 24px 22px;
  border-right: 1px solid var(--hero-line);
  border-bottom: 1px solid var(--hero-line);
}

.hero-methods span {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 760;
}

.hero-methods strong {
  display: block;
  color: var(--hero-ink);
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.2;
  font-weight: 760;
}

.hero-note::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 64px;
  height: 1px;
  background: var(--hero-line);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.2;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

.button-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.66;
}

.button-secondary {
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.button:focus-visible,
.site-nav a:focus-visible,
.portfolio-card:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(0, 136, 95, 0.22);
  outline-offset: 2px;
}

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

.section-heading {
  margin-bottom: 38px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 0.75fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.section-heading.split > * {
  min-width: 0;
}

.section-title-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.section-title-row > span {
  padding-top: 10px;
  border-top: 2px solid var(--green);
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
}

.section-heading h2,
.apply-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 760;
  word-break: keep-all;
}

.section-heading p,
.apply-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.outreach-section .section-heading.split {
  grid-template-columns: minmax(720px, 1fr) minmax(500px, 0.62fr);
  gap: clamp(64px, 5vw, 86px);
}

.outreach-section .section-heading h2 {
  font-size: clamp(34px, 3.2vw, 46px);
  white-space: nowrap;
}

.models-section .section-heading.split {
  grid-template-columns: minmax(700px, 1fr) minmax(430px, 0.62fr);
  gap: clamp(56px, 5vw, 86px);
}

.method-list {
  border-top: 1px solid var(--ink);
}

.method-list article {
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.method-list span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 760;
}

.method-list h3,
.model-grid h3,
.apply-intro h3,
.form-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.28;
  font-weight: 760;
}

.method-list p,
.model-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.models-section {
  border-top: 1px solid var(--line);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.model-grid article {
  min-height: 260px;
  padding: 34px 34px 30px 0;
  border-right: 1px solid var(--line);
}

.model-grid article + article {
  padding-left: 34px;
}

.model-grid article:last-child {
  border-right: 0;
}

.model-grid h3 {
  max-width: 260px;
  margin-bottom: 68px;
}

.section-footnote {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.clients-section {
  width: 100%;
  padding-right: max(36px, calc((100vw - 1280px) / 2));
  padding-left: max(36px, calc((100vw - 1280px) / 2));
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clients-section .section-heading h2 {
  word-break: normal;
}

.client-logo-marquee {
  display: block;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 34s linear infinite;
}

.client-logo-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track img {
  width: 190px;
  height: 114px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 30px 34px;
  border-right: 1px solid var(--line);
  filter: grayscale(0.08);
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.portfolio-heading {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.portfolio-heading h3 {
  grid-column: 2;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.04;
  font-weight: 780;
}

.portfolio-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.portfolio-marquee {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.portfolio-viewport {
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.portfolio-grid {
  display: flex;
  width: max-content;
  animation: portfolio-scroll-reverse 42s linear infinite;
  border-top: 1px solid var(--line);
}

.portfolio-marquee:hover .portfolio-grid {
  animation-play-state: paused;
}

@keyframes portfolio-scroll-reverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.portfolio-card {
  position: relative;
  display: flex;
  width: clamp(310px, 24vw, 392px);
  min-height: 390px;
  flex: 0 0 clamp(310px, 24vw, 392px);
  flex-direction: column;
  padding: 28px 28px 66px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease, color 0.18s ease;
}

.duplicate-card {
  pointer-events: none;
}

.portfolio-card:hover {
  background: var(--ink);
  color: #fff;
}

.portfolio-card:hover p,
.portfolio-card:hover dt,
.portfolio-card:hover dd {
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-card .stage {
  display: inline-flex;
  width: max-content;
  margin-bottom: 28px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 780;
}

.portfolio-card h3 {
  min-height: 86px;
  margin: 0;
  color: inherit;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.12;
  font-weight: 780;
}

.portfolio-card p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.portfolio-card dl {
  display: grid;
  gap: 14px;
  margin: auto 0 0;
  padding-top: 28px;
}

.portfolio-card dl div {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.portfolio-card dt {
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 12px;
}

.portfolio-card dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 680;
}

.card-service-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 780;
}

.card-service-badge::before {
  width: 8px;
  height: 8px;
  border: 2px solid var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.14);
  content: "";
}

.portfolio-card:hover .card-service-badge {
  color: #fff;
}

.case-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}

.case-preview-card {
  position: relative;
  display: flex;
  min-height: 486px;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.case-preview-card::before {
  position: absolute;
  inset: 0;
  border-top: 3px solid transparent;
  pointer-events: none;
  content: "";
}

.case-preview-card:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.case-preview-card:hover::before {
  border-color: var(--green);
}

.case-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.case-card-link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}

.case-product-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 188px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 168, 107, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(16, 20, 18, 0.08), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(135deg, #f8faf9 0, #f8faf9 15px, #edf1ef 15px, #edf1ef 16px);
}

.case-product-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 66%, #fff 100%),
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 84%, #fff 100%);
  pointer-events: none;
  content: "";
}

.case-product-visual span {
  position: relative;
  z-index: 1;
  color: var(--faint);
  font-size: 13px;
  font-weight: 760;
}

.case-product-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.case-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.case-slot {
  display: inline-flex;
  width: max-content;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 780;
}

.case-preview-card h3 {
  max-width: none;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: clamp(19px, 1.08vw, 20px);
  line-height: 1.12;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-preview-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.case-meta-line {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.case-meta-line span {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 720;
}

.case-preview-card:hover h3,
.case-preview-card:hover p,
.case-preview-card:hover .case-meta-line span {
  color: #fff;
}

.case-preview-card:hover .case-product-visual,
.case-preview-card:hover .case-meta-line {
  border-color: rgba(255, 255, 255, 0.14);
}

.case-preview-card:hover .case-product-visual span {
  color: rgba(255, 255, 255, 0.58);
}

.case-preview-card:hover .case-slot {
  color: var(--green);
}

.case-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.case-actions a,
.case-action-disabled,
.case-link-disabled {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 720;
}

.case-actions a {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.case-actions a:hover {
  background: var(--green-dark);
}

.case-action-disabled {
  border-color: var(--line);
  background: rgba(16, 20, 18, 0.03);
  color: var(--faint);
  cursor: default;
}

.case-status-badge {
  position: absolute;
  right: 20px;
  bottom: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(0, 168, 107, 0.22);
  background: rgba(0, 168, 107, 0.08);
  padding: 5px 8px;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 780;
  pointer-events: none;
}

.case-status-badge::before {
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 168, 107, 0.14);
  content: "";
}

.case-link-disabled {
  color: var(--faint);
}

.case-preview-card:hover .case-actions a {
  border-color: var(--green);
  color: #fff;
}

.case-preview-card:hover .case-status-badge {
  border-color: rgba(0, 168, 107, 0.5);
  background: rgba(0, 168, 107, 0.16);
  color: #fff;
}

.case-preview-card:hover .case-action-disabled,
.case-preview-card:hover .case-link-disabled {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.48);
}

.apply-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(560px, 1fr);
  grid-template-areas:
    "copy form"
    "intro form";
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  width: 100%;
  padding-right: max(36px, calc((100vw - 1280px) / 2));
  padding-left: max(36px, calc((100vw - 1280px) / 2));
}

.apply-copy {
  grid-area: copy;
}

.apply-intro {
  grid-area: intro;
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.apply-intro h3,
.form-heading h3 {
  font-size: 20px;
}

.apply-intro ol {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.72;
}

.apply-note {
  display: grid;
  gap: 8px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.apply-note strong {
  color: var(--ink);
  font-size: 15px;
}

.apply-note span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.apply-form-wrap {
  grid-area: form;
  border-top: 3px solid var(--green);
}

.form-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
}

.form-heading p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.apply-form {
  padding-top: 24px;
}

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

.form-grid label,
.consent-line {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.form-grid .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea {
  resize: vertical;
  min-height: 112px;
}

input::placeholder,
textarea::placeholder {
  color: #9aa19d;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink);
}

.consent-line {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 560;
}

.consent-line input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--green);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.form-actions p {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

.success-message {
  margin-top: 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--green);
}

.success-message h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 18px;
}

.success-message p,
.noscript-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  width: var(--container);
  margin: 0 auto;
  padding: 46px 0 38px;
  border-top: 1px solid var(--line);
}

.footer-brand img {
  width: 96px;
  height: auto;
}

.footer-brand p {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--green-dark);
}

.footer-icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.footer-icon-button:hover {
  border-color: var(--green);
  background: rgba(0, 168, 107, 0.06);
  color: var(--green-dark);
}

.footer-icon-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 11, 0.58);
}

.qr-modal-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.qr-modal-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.qr-modal-panel p {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.qr-modal-panel img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #f8f8f8;
}

.qr-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.qr-modal-close:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.legal-page {
  width: var(--container);
  margin: 0 auto;
  padding: 78px 0 96px;
}

.legal-page section {
  max-width: 820px;
}

.legal-page h1 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.legal-page h2 {
  margin: 36px 0 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.legal-page p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.project-page {
  width: min(100vw - 72px, 1180px);
  margin: 0 auto;
  padding: 118px 0 86px;
}

.project-hero {
  border-top: 1px solid var(--ink);
  padding-top: 34px;
}

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.project-visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  pointer-events: none;
  content: "";
}

.project-visual span {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  color: var(--faint);
  font-size: 14px;
  font-weight: 760;
  transform: translate(-50%, -50%);
}

.project-visual.has-image {
  background: #f7f9f8;
}

.project-visual.has-image::after {
  background: none;
}

.project-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 48px;
  align-items: end;
  padding: 38px 0 0;
}

.project-copy .case-slot {
  margin-bottom: 22px;
}

.project-copy h1 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  white-space: nowrap;
}

.project-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.72;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 26px;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 68px;
  background: var(--line);
  border-top: 1px solid var(--ink);
}

.project-detail-grid article {
  min-height: 186px;
  padding: 28px;
  background: #fff;
}

.project-detail-grid span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 780;
}

.project-detail-grid h2 {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.12;
}

.project-detail-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.project-note {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.project-note h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
}

.project-note p {
  max-width: 980px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.mexihome-page {
  width: min(100vw - 72px, 1240px);
  padding-top: 68px;
}

.mexihome-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 52px;
  align-items: end;
  border-top: 1px solid var(--ink);
  padding-top: 32px;
}

.mexihome-hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.mexihome-hero-media img {
  width: 100%;
  height: min(54vw, 520px);
  object-fit: cover;
}

.mexihome-hero-copy h1 {
  margin: 20px 0 0;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.96;
  font-weight: 840;
  letter-spacing: 0;
}

.mexihome-hero-copy p {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.64;
}

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

.mexihome-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 72px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.mexihome-stat-strip article {
  min-height: 142px;
  border-right: 1px solid var(--line);
  padding: 24px;
  background: rgba(255, 255, 255, 0.52);
}

.mexihome-stat-strip article:last-child {
  border-right: 0;
}

.mexihome-stat-strip strong {
  display: block;
  color: var(--ink);
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1;
  font-weight: 840;
}

.mexihome-stat-strip span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  text-transform: uppercase;
}

.mexihome-section {
  margin-top: 86px;
  border-top: 1px solid var(--ink);
  padding-top: 34px;
}

.mexihome-split {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
  gap: 72px;
}

.mexihome-section h2,
.mexihome-contact h2 {
  max-width: 900px;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  font-weight: 820;
}

.mexihome-section-heading p,
.mexihome-copy-stack p,
.mexihome-contact p {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.76;
}

.mexihome-service-grid,
.mexihome-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.mexihome-service-grid article,
.mexihome-pricing-grid article {
  min-height: 260px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 26px;
}

.mexihome-service-grid span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 780;
}

.mexihome-service-grid h3,
.mexihome-pricing-grid h3 {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.14;
}

.mexihome-service-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.mexihome-pricing-grid article {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.mexihome-pricing-grid ul {
  margin: 24px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.mexihome-price {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.mexihome-price + .mexihome-price {
  margin-top: 18px;
}

.mexihome-price span {
  display: block;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.mexihome-price strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.28;
}

.mexihome-price.muted strong {
  color: var(--ink-soft);
  font-size: 18px;
}

.mexihome-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.mexihome-category-list span {
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 720;
}

.mexihome-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.55fr);
  gap: 60px;
  margin-top: 86px;
  border-top: 1px solid var(--ink);
  padding: 36px 0 92px;
}

.mexihome-contact-card {
  display: grid;
  gap: 10px;
  align-self: end;
}

.mexihome-contact-card a {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.mexihome-contact-card a:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

@media (max-width: 1180px) {
  .section-heading.split,
  .apply-section {
    grid-template-columns: 1fr;
  }

  .outreach-section .section-heading.split,
  .models-section .section-heading.split {
    grid-template-columns: minmax(0, 1fr);
  }

  .apply-section {
    grid-template-areas:
      "copy"
      "intro"
      "form";
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-actions {
    justify-content: flex-start;
  }

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

  .model-grid article,
  .model-grid article + article {
    min-height: auto;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .model-grid article:last-child {
    border-bottom: 0;
  }

  .model-grid h3 {
    margin-bottom: 16px;
  }

  .portfolio-heading {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .portfolio-heading p {
    grid-column: 2 / -1;
  }

  .portfolio-card {
    width: clamp(300px, 38vw, 360px);
    flex-basis: clamp(300px, 38vw, 360px);
  }

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

  .mexihome-hero,
  .mexihome-split,
  .mexihome-contact {
    grid-template-columns: 1fr;
  }

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

  .mexihome-contact-card {
    align-self: stretch;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100vw - 32px, 680px);
    --header-height: 78px;
  }

  body {
    background: var(--bg);
  }

  .site-header {
    gap: 12px;
    padding: 10px 16px;
  }

  .brand img {
    height: 46px;
  }

  .menu-button {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
    min-height: 38px;
    border-bottom: 0;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin: 0;
    padding: 10px 14px;
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    font-size: 13px;
  }

  .language-switch {
    margin-left: 0;
  }

  .language-switch button {
    min-width: 38px;
    min-height: 34px;
    font-size: 12px;
  }

  .section-panel {
    padding: 66px 0;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
    padding: 42px 16px 44px;
  }

  .hero::before {
    display: none;
  }

  .hero-layout {
    gap: 34px;
    min-height: calc(100svh - var(--header-height) - 86px);
  }

  .hero-copy h1 {
    display: block;
    font-size: clamp(74px, 22.5vw, 108px);
    line-height: 0.96;
  }

  .hero-copy h1 > span {
    display: block;
  }

  .hero-bottom {
    gap: 22px;
    padding-top: 22px;
  }

  .hero-lead {
    font-size: 20px;
    line-height: 1.42;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-note {
    margin-top: 0;
    padding-left: 64px;
    font-size: 13px;
  }

  .hero-note::before {
    width: 44px;
  }

  .hero-methods {
    display: none;
  }

  .section-title-row,
  .apply-copy.section-title-row {
    width: 100%;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .section-title-row > span {
    font-size: 16px;
  }

  .section-heading h2,
  .apply-copy h2 {
    min-width: 0;
    font-size: clamp(30px, 9vw, 42px);
  }

  .outreach-section .section-heading h2 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.12;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .clients-section .section-heading h2 {
    font-size: clamp(28px, 7vw, 32px);
    line-height: 1.14;
    overflow-wrap: anywhere;
  }

  .section-heading p,
  .apply-copy p {
    font-size: 16px;
  }

  .method-list article {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .method-list p {
    grid-column: 2;
  }

  .marquee-track img {
    width: 156px;
    height: 88px;
    padding: 22px 28px;
  }

  .portfolio-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 42px;
  }

  .portfolio-heading h3 {
    grid-column: auto;
  }

  .portfolio-heading p {
    grid-column: auto;
  }

  .portfolio-marquee {
    margin-top: 42px;
  }

  .portfolio-grid {
    animation-duration: 34s;
  }

  .portfolio-card {
    width: min(82vw, 330px);
    flex-basis: min(82vw, 330px);
    min-height: auto;
    padding: 24px 24px 62px;
  }

  .portfolio-card h3 {
    min-height: auto;
  }

  .case-preview-grid {
    grid-template-columns: 1fr;
    margin-top: 42px;
    gap: 18px;
  }

  .case-preview-card {
    min-height: auto;
  }

  .case-preview-card h3 {
    font-size: clamp(22px, 6.3vw, 26px);
    white-space: normal;
  }

  .case-product-visual {
    min-height: 168px;
  }

  .case-card-body {
    padding: 24px;
  }

  .form-heading {
    display: grid;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }

  .project-page {
    width: var(--container);
    padding: 72px 0;
  }

  .project-copy {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 26px;
  }

  .project-copy h1 {
    font-size: clamp(34px, 8vw, 46px);
    line-height: 1.08;
    white-space: normal;
  }

  .project-copy p {
    max-width: 620px;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.82;
  }

  .project-actions .button {
    width: 100%;
  }

  .project-actions {
    grid-column: auto;
    margin-top: 0;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .mexihome-page {
    width: var(--container);
    padding-top: 46px;
  }

  .mexihome-hero {
    gap: 28px;
  }

  .mexihome-hero-media img {
    height: min(72vw, 360px);
  }

  .mexihome-hero-copy h1 {
    font-size: clamp(40px, 12vw, 56px);
    line-height: 1;
  }

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

  .mexihome-hero-actions {
    flex-direction: column;
  }

  .mexihome-stat-strip,
  .mexihome-service-grid,
  .mexihome-pricing-grid {
    grid-template-columns: 1fr;
  }

  .mexihome-stat-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mexihome-stat-strip article:last-child {
    border-bottom: 0;
  }

  .mexihome-section,
  .mexihome-contact {
    margin-top: 62px;
  }

  .mexihome-section h2,
  .mexihome-contact h2 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.08;
  }

  .mexihome-pricing-grid article {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  :root {
    --container: min(100vw - 24px, 480px);
  }

  .hero-copy h1 {
    font-size: clamp(48px, 14vw, 58px);
  }

  .marquee-track {
    animation-duration: 24s;
  }

  .portfolio-card {
    width: min(84vw, 300px);
    flex-basis: min(84vw, 300px);
    padding: 22px 20px 58px;
  }
}

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