:root {
  --ink: #171c26;
  --ink-soft: #313846;
  --muted: #6f675d;
  --paper: #fbf7ef;
  --paper-2: #f3eadc;
  --paper-3: #ede0ce;
  --white: #ffffff;
  --line: rgba(107, 86, 61, 0.18);
  --line-strong: rgba(107, 86, 61, 0.32);
  --bronze: #aa7a49;
  --bronze-dark: #7b542d;
  --olive: #918c68;
  --shadow: 0 26px 76px rgba(55, 38, 18, 0.16);
  --max: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
  word-break: normal;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

h1,
h2 {
  font-family:
    "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
    "PingFang SC", serif;
  font-weight: 650;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(46px, 4.45vw, 68px);
  line-height: 1.18;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.22;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.text-line {
  display: block;
}

.text-phrase {
  display: inline-block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 18px clamp(24px, 4vw, 64px);
  color: var(--ink);
  background: rgba(251, 247, 239, 0.58);
  border-bottom: 1px solid rgba(107, 86, 61, 0.11);
  backdrop-filter: blur(16px);
  transition:
    min-height 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.site-header.scrolled,
.site-header.nav-active {
  min-height: 72px;
  background: rgba(251, 247, 239, 0.94);
  box-shadow: 0 14px 34px rgba(58, 42, 26, 0.08);
}

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

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(16, 18, 25, 0.16);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 22px;
  font-weight: 800;
}

.brand small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.26em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 62px);
  font-size: 16px;
}

.site-nav a {
  color: var(--ink);
  opacity: 0.86;
  transition:
    color 160ms ease,
    opacity 160ms ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--bronze-dark);
  opacity: 1;
}

.nav-cta {
  min-width: 138px;
  padding: 10px 23px;
  border: 1px solid rgba(170, 122, 73, 0.72);
  border-radius: 7px;
  background: rgba(170, 122, 73, 0.8);
  color: var(--white) !important;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.54);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 700px;
  padding-top: 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.8) 0 18%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(90deg, rgba(251, 247, 239, 0.98) 0%, rgba(244, 236, 224, 0.95) 45%, rgba(226, 210, 190, 0.78) 100%),
    var(--paper-2);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-scene {
  position: absolute;
  top: 88px;
  right: 0;
  bottom: 42px;
  z-index: 0;
  width: min(58vw, 815px);
  pointer-events: none;
}

.hero-scene > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(0.98);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  width: min(100% - 96px, var(--max));
  min-height: 612px;
  margin: 0 auto;
  padding-top: 56px;
}

.hero-copy {
  width: min(720px, 51vw);
}

.hero-copy p {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: #121823;
  box-shadow: 0 18px 36px rgba(18, 24, 35, 0.18);
}

.button-ghost,
.button-light {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
}

.button-light {
  background: rgba(255, 255, 255, 0.84);
}

.hero-flow {
  position: absolute;
  left: 0;
  bottom: 22px;
  display: grid;
  grid-template-columns: 82px minmax(150px, 270px) 130px 150px;
  align-items: center;
  width: min(760px, 58vw);
  color: var(--ink-soft);
}

.source-stack {
  display: grid;
  align-self: start;
  gap: 6px;
  transform: translateY(-46px);
}

.source-stack span {
  width: 72px;
  padding: 2px 0;
  border: 1px solid rgba(128, 112, 87, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: #4a443c;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.flow-rail {
  position: relative;
  height: 118px;
}

.flow-rail::after {
  content: "";
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.92), rgba(170, 122, 73, 0.54));
}

.flow-rail span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.82));
  transform-origin: right center;
}

.flow-rail span:nth-child(1) {
  top: 12px;
  transform: rotate(13deg);
}

.flow-rail span:nth-child(2) {
  top: 35px;
  transform: rotate(7deg);
}

.flow-rail span:nth-child(3) {
  top: 59px;
}

.flow-rail span:nth-child(4) {
  top: 83px;
  transform: rotate(-7deg);
}

.flow-rail span:nth-child(5) {
  top: 106px;
  transform: rotate(-13deg);
}

.flow-node {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: #4d4439;
  background: rgba(169, 126, 82, 0.08);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.6);
  text-align: center;
}

.flow-node strong {
  max-width: 58px;
  font-size: 13px;
  line-height: 1.25;
}

.flow-wave {
  display: flex;
  align-items: center;
  gap: 5px;
}

.flow-wave i {
  display: block;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: rgba(168, 120, 66, 0.65);
  animation: wave 1.5s ease-in-out infinite;
}

.flow-wave i:nth-child(2) {
  animation-delay: 80ms;
}

.flow-wave i:nth-child(3) {
  animation-delay: 160ms;
}

.flow-wave i:nth-child(4) {
  animation-delay: 240ms;
}

.flow-wave i:nth-child(5) {
  animation-delay: 320ms;
}

.flow-wave i:nth-child(6) {
  animation-delay: 400ms;
}

.flow-wave i:nth-child(7) {
  animation-delay: 480ms;
}

.flow-tags {
  position: absolute;
  left: 120px;
  top: -24px;
  display: flex;
  gap: 18px;
}

.flow-tags span {
  padding: 5px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(116, 107, 77, 0.72);
  font-size: 13px;
  white-space: nowrap;
}

.metric-strip {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

.metric-wrap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100% - 96px, var(--max));
  margin: 0 auto;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 0 clamp(12px, 2vw, 32px);
  border-right: 1px solid var(--line);
}

.metric-item:first-child {
  border-left: 1px solid var(--line);
}

.metric-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(170, 122, 73, 0.66);
  border-radius: 50%;
  color: var(--bronze-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.metric-item strong,
.metric-item small {
  display: block;
  line-height: 1.3;
}

.metric-item strong {
  font-size: 16px;
}

.metric-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.section {
  position: relative;
  padding: 92px clamp(24px, 4vw, 64px);
}

.section-narrow {
  padding: 0 clamp(24px, 4vw, 64px) 76px;
}

.section-heading {
  width: min(100%, var(--max));
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading p:last-child,
.tech-copy p,
.experience-copy p,
.contact-copy p,
.process-item p,
.delivery-step p,
.lab-notes span {
  color: var(--muted);
}

.section-index {
  margin-bottom: 8px;
  color: var(--bronze-dark);
  font-size: 14px;
  font-weight: 800;
}

.solution-section {
  background:
    linear-gradient(180deg, #fffdf8 0%, rgba(251, 247, 239, 0) 42%),
    var(--paper);
}

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
}

.delivery-step {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  align-items: start;
}

.delivery-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -22px;
  width: 36px;
  height: 1px;
  background: var(--bronze);
}

.delivery-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 37px;
  right: -22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--bronze);
  border-right: 1px solid var(--bronze);
  transform: rotate(45deg);
}

.step-symbol {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 8px solid #f5efe5;
  border-radius: 50%;
  background: #efe2d0;
  box-shadow: inset 0 0 0 1px rgba(170, 122, 73, 0.32);
}

.step-symbol span {
  color: var(--bronze-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
}

.delivery-step h3 {
  font-size: 19px;
}

.delivery-step p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.7;
}

.case-card {
  display: grid;
  grid-template-columns: 104px minmax(220px, 1.3fr) minmax(360px, 1.8fr) auto;
  align-items: center;
  gap: 24px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 18px 28px 18px 20px;
  border: 1px solid rgba(155, 123, 86, 0.2);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(232, 221, 206, 0.94), rgba(255, 255, 255, 0.76));
  box-shadow: 0 24px 64px rgba(72, 50, 27, 0.1);
}

.case-avatar {
  width: 82px;
  height: 82px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 28%;
}

.case-copy h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2vw, 32px);
}

.case-copy .section-index {
  margin-bottom: 2px;
}

.case-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  color: #6f604f;
  font-size: 13px;
  list-style: none;
}

.case-tags li {
  position: relative;
  padding-left: 16px;
  line-height: 1.45;
}

.case-tags li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bronze);
}

.experience-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.82) 0 16%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(251, 247, 239, 0.1), rgba(237, 224, 206, 0.72)),
    var(--paper-2);
}

.experience-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 58px;
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.experience-copy {
  max-width: 630px;
}

.persona-grid {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.persona-grid article {
  padding: 18px 20px;
  border: 1px solid rgba(142, 111, 75, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.persona-grid span,
.wallpaper-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--bronze-dark);
  font-size: 13px;
  font-weight: 800;
}

.persona-grid strong,
.wallpaper-panel strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.persona-grid p {
  margin: 7px 0 0;
  font-size: 14px;
}

.persona-sharp {
  border-color: rgba(49, 56, 70, 0.22) !important;
  background: rgba(23, 28, 38, 0.06) !important;
}

.app-showcase {
  display: grid;
  gap: 20px;
}

.phone-rail {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(190px, 1fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 14px;
}

.phone-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(64, 47, 28, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 52px rgba(55, 38, 18, 0.16);
}

.phone-shot img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
}

.phone-shot-main {
  transform: translateY(-10px);
  box-shadow: 0 26px 72px rgba(19, 25, 39, 0.22);
}

.phone-shot-side {
  opacity: 0.72;
  transform: scale(0.9);
}

.wallpaper-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(142, 111, 75, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

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

.wallpaper-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(55, 38, 18, 0.12);
}

.technology-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(243, 234, 220, 0.82)),
    var(--paper-2);
}

.tech-copy,
.device-lab {
  width: min(100%, 620px);
}

.tech-copy {
  justify-self: end;
}

.device-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
}

.system-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.system-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
}

.system-tab.active {
  color: var(--white);
  border-color: transparent;
  background: var(--ink);
}

.device-stage {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border-radius: 8px;
  background: #27221e;
  box-shadow: var(--shadow);
}

.device-stage img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center;
}

.demo-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: rgba(20, 16, 12, 0.66);
  backdrop-filter: blur(18px);
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.demo-panel span {
  display: block;
  margin-bottom: 8px;
  color: #e7bf85;
  font-size: 13px;
}

.demo-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.demo-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.lab-notes {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.lab-notes article {
  min-height: 150px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.66);
}

.lab-notes strong,
.lab-notes span {
  display: block;
}

.lab-notes strong {
  margin-bottom: 8px;
  font-size: 17px;
}

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

.case-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.96fr) minmax(0, 0.96fr);
  grid-auto-rows: 236px;
  gap: 18px;
  width: min(100%, var(--max));
  margin: 0 auto;
  scroll-margin-top: 96px;
}

.case-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(117, 94, 65, 0.18);
  border-radius: 8px;
  background: #211b17;
  box-shadow: 0 20px 56px rgba(55, 38, 18, 0.14);
}

.case-photo-featured {
  grid-row: span 2;
}

.case-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 14, 10, 0.02) 36%, rgba(18, 14, 10, 0.78) 100%),
    linear-gradient(90deg, rgba(18, 14, 10, 0.3), rgba(18, 14, 10, 0));
  pointer-events: none;
}

.case-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 600ms ease;
}

.case-photo:hover img,
.case-photo:focus-within img {
  transform: scale(1.05);
}

.case-photo-persona img {
  object-position: center 38%;
}

.case-photo-video:hover > img,
.case-photo-video:focus-within > img {
  transform: scale(1.01);
}

.case-frame-video {
  position: absolute;
  top: 22.3%;
  left: 29.9%;
  z-index: 2;
  width: 49.6%;
  height: 64.6%;
  overflow: hidden;
  border-radius: 2px;
  background: #090807;
  clip-path: polygon(12.6% 0, 100% 0.4%, 86.6% 99%, 0 95.4%);
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  transform: none;
  transform-origin: 50% 50%;
  pointer-events: auto;
}

.case-frame-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9) saturate(0.98) contrast(1.02);
}

.case-frame-video audio {
  display: none;
}

.case-frame-video > span {
  display: none;
}

.case-photo-brand {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.13), transparent 44%),
    #030303;
}

.case-photo-brand img {
  box-sizing: border-box;
  padding: 26px 42px 72px;
  object-fit: contain;
}

.case-photo-brand:hover img,
.case-photo-brand:focus-within img {
  transform: scale(1.02);
}

.case-photo > div:not(.case-frame-video) {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 3;
}

.case-photo > div:not(.case-frame-video) span,
.case-photo > div:not(.case-frame-video) strong {
  display: block;
}

.case-photo > div:not(.case-frame-video) span {
  margin-bottom: 6px;
  color: #e2ba82;
  font-size: 13px;
  font-weight: 700;
}

.case-photo > div:not(.case-frame-video) strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.35;
}

.process-section {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.process-item {
  padding: 28px 0 0;
  border-top: 1px solid rgba(170, 122, 73, 0.78);
}

.process-item span {
  display: block;
  margin-bottom: 28px;
  color: var(--bronze);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 64px;
  align-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(170, 122, 73, 0.16) 0 16%, rgba(170, 122, 73, 0) 38%),
    var(--paper);
}

.contact-copy {
  justify-self: end;
  max-width: 570px;
}

.compliance-note {
  margin-top: 26px;
  padding: 16px 18px;
  border-left: 3px solid var(--bronze);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.58);
}

.contact-panel {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  width: min(100%, 640px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.qr-area {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 258px;
  border: 1px dashed rgba(170, 122, 73, 0.44);
  border-radius: 8px;
  background: rgba(251, 247, 239, 0.8);
  text-align: center;
}

.qr-area img {
  width: min(168px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border-radius: 6px;
  background: var(--white);
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(55, 38, 18, 0.1);
}

.qr-area span {
  color: var(--muted);
  font-size: 13px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: rgba(170, 122, 73, 0.7);
  box-shadow: 0 0 0 3px rgba(170, 122, 73, 0.12);
}

.contact-form .button {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #33706e;
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(24px, 4vw, 64px);
  color: rgba(255, 255, 255, 0.66);
  background: #171c26;
  font-size: 13px;
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform 620ms ease,
    opacity 620ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes wave {
  0%,
  100% {
    height: 14px;
  }

  50% {
    height: 38px;
  }
}

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

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

@media (max-width: 1180px) {
  .site-nav {
    gap: 24px;
  }

  .hero-inner,
  .metric-wrap {
    width: min(100% - 56px, var(--max));
  }

  .hero-copy {
    width: min(560px, 54vw);
  }

  .hero-scene {
    width: min(60vw, 720px);
  }

  .hero-flow {
    width: min(700px, 64vw);
  }

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

  .metric-item:nth-child(4) {
    border-left: 1px solid var(--line);
  }

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

  .delivery-step:not(:last-child)::before,
  .delivery-step:not(:last-child)::after {
    display: none;
  }

  .case-card {
    grid-template-columns: 92px 1fr auto;
  }

  .case-tags {
    grid-column: 2 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .technology-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .experience-inner {
    grid-template-columns: 1fr;
  }

  .experience-copy {
    max-width: 760px;
  }

  .app-showcase {
    width: min(100%, 860px);
    margin: 0 auto;
  }

  .tech-copy,
  .device-lab,
  .contact-copy,
  .contact-panel {
    justify-self: center;
    width: min(100%, 900px);
    max-width: none;
  }
}

@media (max-width: 780px) {
  body {
    font-size: 15px;
  }

  .site-header,
  .site-header.scrolled {
    min-height: 68px;
    padding: 11px 18px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 76px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 247, 239, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 12px;
    border-radius: 8px;
  }

  .site-nav a:hover {
    background: rgba(170, 122, 73, 0.08);
  }

  .nav-cta {
    margin-top: 4px;
    min-width: 0;
  }

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

  .hero-inner {
    width: 100%;
    min-height: auto;
    padding: 42px 20px 0;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 10.2vw, 48px);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  h3 {
    font-size: 18px;
  }

  .hero-copy p {
    margin-bottom: 22px;
    font-size: 16px;
  }

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

  .button {
    width: 100%;
  }

  .hero-scene {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 420px;
    margin-top: 24px;
  }

  .hero-scene img {
    object-position: right center;
    mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
  }

  .hero-flow {
    display: none;
  }

  .metric-wrap {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .metric-item,
  .metric-item:first-child,
  .metric-item:nth-child(4) {
    min-height: 70px;
    padding: 0 20px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section,
  .section-narrow {
    padding: 70px 20px;
  }

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

  .delivery-steps,
  .process-line,
  .case-gallery {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .delivery-step {
    grid-template-columns: 68px 1fr;
  }

  .step-symbol {
    width: 62px;
    height: 62px;
    border-width: 6px;
  }

  .case-card {
    grid-template-columns: 70px 1fr;
    gap: 16px;
    padding: 16px;
  }

  .case-avatar {
    width: 70px;
    height: 70px;
  }

  .case-tags,
  .case-card .button {
    grid-column: 1 / -1;
  }

  .case-tags {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 13px;
  }

  .technology-section,
  .contact-section {
    gap: 42px;
  }

  .experience-inner {
    gap: 42px;
  }

  .phone-rail {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    overflow-x: auto;
    padding: 8px 4px 16px;
    scroll-snap-type: x proximity;
  }

  .phone-shot {
    border-radius: 18px;
    scroll-snap-align: center;
  }

  .phone-shot img {
    height: 360px;
  }

  .phone-shot-main,
  .phone-shot-side {
    opacity: 1;
    transform: none;
  }

  .wallpaper-panel {
    grid-template-columns: 1fr;
  }

  .device-lab,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .device-stage,
  .device-stage img {
    min-height: 420px;
  }

  .lab-notes article {
    min-height: auto;
  }

  .case-gallery {
    grid-auto-rows: 260px;
  }

  .case-photo-featured {
    grid-row: span 1;
  }

  .case-photo-video {
    grid-row: span 2;
  }

  .contact-copy {
    justify-self: start;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 420px) {
  .hero-scene {
    height: 360px;
  }

  .hero-actions .button {
    min-height: 50px;
    padding: 0 18px;
  }

  .device-stage,
  .device-stage img {
    min-height: 360px;
  }
}
