.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -14%;
  top: -30%;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(closest-side at 40% 40%, rgba(11, 138, 122, 0.1), transparent 70%),
    radial-gradient(closest-side at 60% 55%, rgba(122, 63, 242, 0.1), transparent 70%),
    radial-gradient(closest-side at 70% 35%, rgba(239, 74, 74, 0.07), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 580px;
  gap: 40px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink2);
  margin-bottom: 26px;
}

.eyebrow .bar {
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background: var(--spec);
}

.hero h1 {
  font: 500 clamp(42px, 5.4vw, 68px)/1.04 var(--slab);
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  max-width: none;
}

.hero h1 .u {
  position: relative;
  white-space: nowrap;
}

.hero h1 .u-stroke {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
}

.sub {
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink2);
  max-width: 30em;
}

.ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.facts {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.facts i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.collage {
  position: relative;
  height: 520px;
}

.tile {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 34px 60px -28px rgba(20, 19, 18, 0.55), 0 0 0 1px rgba(20, 19, 18, 0.08);
  animation: drift var(--d, 14s) ease-in-out infinite alternate;
  animation-delay: var(--dl, 0s);
}

.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.tile .tbar {
  height: 22px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  font: 600 9.5px var(--sans);
  color: #55524c;
}

.tile .tbar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6d1c7;
}

.tile .tbar b {
  margin-left: 6px;
  font-weight: 600;
}

.tile .shot {
  height: calc(100% - 22px);
  position: relative;
}

.tile.window .shot img,
.tile .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.tile.phone {
  border-radius: 26px;
  background: #0d0d0f;
  padding: 7px;
}

.tile.phone .tbar {
  display: none;
}

.tile.phone img {
  border-radius: 20px;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
  to { transform: translate3d(var(--x, 0), var(--y, -10px), 0) rotate(var(--r, 0deg)); }
}

.t1 { left: 0; top: 20px; width: 300px; height: 190px; --r: -3deg; --d: 15s; --x: 6px; --y: -12px; z-index: 1; }
.t2 { right: 0; top: 0; width: 280px; height: 230px; --r: 2.5deg; --d: 13s; --x: -8px; --y: 10px; z-index: 2; }
.t3 { left: 40px; bottom: 10px; width: 310px; height: 200px; --r: 2deg; --d: 16s; --x: 8px; --y: -8px; z-index: 2; }
.t4 { left: 150px; top: 150px; width: 330px; height: 250px; --r: -1deg; --d: 12s; --x: -6px; --y: -12px; z-index: 3; }
.t5 { right: 6px; bottom: 40px; width: 150px; height: 250px; border-radius: 26px; background: #0d0d0f; padding: 7px; --r: 4deg; --d: 14s; --x: -6px; --y: -14px; z-index: 4; }
.t5 .tbar { display: none; }
.t5 img { border-radius: 20px; }

.chip {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 7px 13px 7px 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 14px 30px -14px rgba(20, 19, 18, 0.45), 0 0 0 1px rgba(20, 19, 18, 0.06);
  animation: drift 11s ease-in-out infinite alternate;
}

.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent);
}

.chip small {
  color: var(--ink3);
  font-weight: 500;
}

.c1 { left: -8px; top: 220px; --y: -8px; }
.c2 { right: 150px; top: -6px; --y: 8px; animation-duration: 13s; }
.c3 { left: 250px; bottom: -4px; --y: -6px; animation-duration: 12s; }

.sec h2 {
  font: 500 clamp(34px, 4.3vw, 52px)/1.08 var(--slab);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.svc {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sv {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 28px 30px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.sv:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 50px -32px rgba(20, 19, 18, 0.3);
}

.sv .ic {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.sv .ic::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--spec);
}

.sv .ic svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

.sv h3 {
  font: 500 22px/1.25 var(--slab);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.sv p {
  margin: 10px 0 0;
  color: var(--ink2);
  font-size: 15.5px;
}

.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}

.legend {
  display: flex;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink3);
}

.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.pc {
  --acc: #141312;
  position: relative;
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 12px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
  isolation: isolate;
}

.pc.w7 { grid-column: span 7; }
.pc.w5 { grid-column: span 5; }
.pc.w4 { grid-column: span 4; }

.pc::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 27px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--acc), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.pc:hover {
  transform: translateY(-6px);
  box-shadow: 0 44px 70px -40px color-mix(in srgb, var(--acc) 70%, #000), 0 2px 6px -2px rgba(20, 19, 18, 0.08);
}

.pc:hover::before { opacity: 1; }

.pv {
  position: relative;
  height: 300px;
  border-radius: 17px;
  overflow: hidden;
  background: color-mix(in srgb, var(--acc) 10%, var(--bg2));
}

.pv::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 17px;
  box-shadow: inset 0 0 0 1px rgba(20, 19, 18, 0.06);
  pointer-events: none;
}

.pv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.frame {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 28px;
  bottom: -12px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 26px 50px -26px rgba(20, 19, 18, 0.55);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.frame .fb {
  height: 24px;
  background: #f6f4f0;
  border-bottom: 1px solid #ebe7df;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}

.frame .fb i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8d3c9;
}

.frame .fb span {
  margin-left: 10px;
  font: 500 10.5px var(--mono);
  color: #7d796f;
  background: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  flex: 1;
  max-width: 220px;
}

.frame img {
  display: block;
  width: 100%;
  height: calc(100% - 24px);
  object-fit: cover;
  object-position: top left;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pc:hover .frame { transform: translateY(-8px); }
.pc:hover .frame img { transform: scale(1.03); }

.frame.full {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 17px;
}

.frame.full .fb { display: none; }
.frame.full img { height: 100%; border-radius: 17px; }

.duo { position: absolute; inset: 0; }
.duo .frame { right: 110px; }

.duo .mob {
  position: absolute;
  right: 24px;
  bottom: -14px;
  width: 150px;
  height: 240px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 26px 50px -24px rgba(20, 19, 18, 0.6), 0 0 0 5px #141312;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.duo .mob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
}

.pc:hover .duo .mob { transform: translateY(-10px) rotate(-1.5deg); }

.soon {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(23, 21, 31, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}

.body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 16px 10px;
}

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

.pm {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--acc);
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pm svg {
  width: 26px;
  height: auto;
}

.pm img {
  width: 26px;
  height: auto;
}

.pm.tile {
  background: transparent;
}

.pm img.tile-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 11px;
}

.pm .lt {
  font: 600 19px/1 var(--slab);
  margin-top: -2px;
}

.pc h3 {
  font: 500 26px/1.1 var(--slab);
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

.desc {
  margin: 12px 0 0;
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.5;
  max-width: 46ch;
}

.foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visit {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  text-decoration: none;
  position: relative;
  z-index: 3;
}

.visit svg { transition: transform 0.25s; }
.pc:hover .visit { background: var(--acc); color: #fff; box-shadow: none; }
.pc:hover .visit svg { transform: translate(2px, -2px); }

.pc > a.cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 26px;
}

.w4 .duo .frame { right: 70px; }
.w4 .duo .mob { width: 118px; height: 200px; right: 18px; }
.w4 .frame { left: 22px; right: 22px; top: 22px; }
.w4 .pv { height: 270px; }

.final {
  padding: 20px 0 110px;
}

.fbox {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #141312;
  color: #f3f1ec;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.fbox::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -60%;
  width: 70%;
  height: 180%;
  background: radial-gradient(closest-side, rgba(122, 63, 242, 0.28), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(11, 138, 122, 0.25), transparent 70%);
  pointer-events: none;
}

.fbox::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--spec);
}

.fbox h2 {
  position: relative;
  color: #fff;
  font: 500 clamp(34px, 4.3vw, 52px)/1.08 var(--slab);
  letter-spacing: -0.02em;
  margin: 0;
}

.fbox p {
  position: relative;
  margin: 14px 0 0;
  color: #b9b5ad;
  font-size: 18px;
  max-width: 36ch;
}

.fbox .ctas {
  position: relative;
  justify-content: flex-end;
}

.fbox a.btn-ink,
.fbox a.btn-ink:hover {
  background: #fff;
  color: var(--ink);
}

.fbox a.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.fbox a.btn-ghost:hover {
  color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .collage { max-width: 580px; margin: 0 auto; width: 100%; }
}

@media (max-width: 1100px) {
  .pc.w4 { grid-column: span 6; }
  .pc.w4:last-child { grid-column: span 12; }
}

@media (max-width: 960px) {
  .svc { grid-template-columns: 1fr; }
  .pc, .pc.w7, .pc.w5, .pc.w4, .pc.w4:last-child { grid-column: span 12; }
  .fbox { grid-template-columns: 1fr; }
  .fbox .ctas { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .hero { padding: 36px 0 30px; }
  .hero h1 { font-size: 42px; }
  .sub { font-size: 18px; }
  .ctas { flex-direction: column; }
  .ctas .btn { justify-content: center; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .collage { height: 520px; transform: scale(0.6); transform-origin: top left; width: 580px; margin: 0 0 -200px; }
  .pv { height: 230px; }
  .frame { left: 16px; right: 16px; top: 16px; }
  .duo .frame { right: 16px; }
  .duo .mob { width: 100px; height: 170px; right: 14px; }
  .pc h3 { font-size: 23px; }
  .body { padding: 18px 8px 6px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .fbox { padding: 52px 24px; border-radius: 24px; }
  .legend { flex-wrap: wrap; }
}

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

.state-final *, .state-final *::before, .state-final *::after {
  animation: none !important;
  transition: none !important;
}
