/* Home: cinematic sections + live demo */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { scroll-behavior: auto; }
main { background: #000; }

.a-wrap { width: min(1080px, 100% - 48px); margin: 0 auto; }
.center { text-align: center; }
.a-kicker { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: #2fc7a6; margin: 0 0 10px; letter-spacing: -.01em; }
.a-h1 { font-size: clamp(52px, 9vw, 120px); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; margin: 0; }
.a-h2 { font-size: clamp(40px, 6vw, 80px); font-weight: 700; line-height: 1.04; letter-spacing: -.04em; margin: 0; }
.a-dim { color: #86868b; }
.a-sub { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.38; color: #a1a1a6; font-weight: 500; max-width: 680px; margin: 22px auto 0; letter-spacing: -.015em; }
.a-ctas { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.a-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 26px; border-radius: 999px; background: #2fc7a6; color: #000; font-weight: 600; font-size: 17px; text-decoration: none; transition: background .25s, transform .25s; }
.a-btn:hover { background: #45d6b6; transform: scale(1.03); }
.a-link { color: #2fc7a6; font-size: 19px; font-weight: 500; text-decoration: none; }
.a-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* hero */
.a-hero { min-height: 74svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 40px; color: #f5f5f7; background: #000; }
.a-hero .a-h1 { max-width: 1100px; }

/* live demo */
.a-demo { background: #000; padding: 20px 0 120px; perspective: 1800px; }
.a-stage { width: min(1180px, 100% - 40px); margin: 0 auto; }
.d-window { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 60px 140px -30px rgba(47, 199, 166, .25), 0 40px 100px -20px rgba(0, 0, 0, .8); transform-origin: 50% 0%; will-change: transform; }
.d-chrome { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: #f5f5f7; border-bottom: 1px solid #e5e5ea; }
.d-chrome i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.d-chrome i:nth-child(2) { background: #febc2e; } .d-chrome i:nth-child(3) { background: #28c840; }
.d-url { margin: 0 auto; font-size: 13px; color: #6e6e73; background: #fff; padding: 4px 16px; border-radius: 8px; border: 1px solid #e5e5ea; }
.d-tag { font-size: 12px; font-weight: 600; color: #0b7a68; background: #dff5ee; padding: 4px 10px; border-radius: 999px; }
.d-split { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 560px; }
.d-editor { padding: 26px 30px 30px; border-right: 1px solid #e5e5ea; display: flex; flex-direction: column; color: #1d1d1f; }
.d-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.d-crumb { font-size: 13px; color: #86868b; }
.d-crumb span { margin: 0 4px; }
.d-actions { display: flex; align-items: center; gap: 10px; }
.d-status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f2f2f4; color: #6e6e73; transition: background .3s, color .3s; }
.d-status.live { background: #dff5ee; color: #0b7a68; }
.d-status.changed { background: #fff3d6; color: #8a5a00; }
.d-publish { height: 34px; padding: 0 18px; border-radius: 999px; border: 0; background: #000; color: #fff; font: 600 14px var(--sans); cursor: pointer; transition: transform .15s, background .2s; }
.d-publish:hover { background: #1d1d1f; }
.d-publish:active { transform: scale(.94); }
.d-publish:disabled { background: #e5e5ea; color: #86868b; cursor: default; }
.d-label { font-size: 12.5px; font-weight: 600; color: #6e6e73; margin: 16px 0 7px; }
.d-label-row { display: flex; justify-content: space-between; align-items: center; }
.d-tools { display: flex; gap: 4px; }
.d-tools button { width: 28px; height: 26px; border-radius: 7px; border: 1px solid #e5e5ea; background: #fff; cursor: pointer; font: 14px var(--sans); color: #1d1d1f; }
.d-tools button:hover { background: #f5f5f7; }
.d-input { width: 100%; border: 1px solid #d2d2d7; border-radius: 12px; padding: 12px 14px; font: 500 16px/1.5 var(--sans); color: #1d1d1f; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.d-input:focus { border-color: #2fc7a6; box-shadow: 0 0 0 4px rgba(47, 199, 166, .18); }
.d-title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.d-body { min-height: 120px; flex: 1; }
.d-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.d-photos button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: #f5f5f7; transition: border-color .2s, transform .2s; }
.d-photos button:hover { transform: translateY(-2px); }
.d-photos button.on { border-color: #2fc7a6; box-shadow: 0 0 0 3px rgba(47, 199, 166, .2); }
.d-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-site { position: relative; background: #fbfaf7; color: #1d1d1f; overflow: hidden; }
.d-ribbon { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6e6e73; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border: 1px solid #e5e5ea; padding: 5px 11px; border-radius: 999px; transition: all .35s; }
.d-ribbon span { width: 7px; height: 7px; border-radius: 50%; background: #c7c7cc; transition: background .3s; }
.d-ribbon.live { color: #0b7a68; border-color: #bfe9dd; background: #effaf6; }
.d-ribbon.live span { background: #2fc7a6; box-shadow: 0 0 0 4px rgba(47, 199, 166, .25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(47, 199, 166, 0); } }
.d-sitebar { display: flex; align-items: center; gap: 22px; height: 56px; padding: 0 26px; background: #1d1d1f; color: #a1a1a6; font-size: 13px; }
.d-sitebar b { color: #fff; font-size: 15px; margin-right: auto; letter-spacing: -.01em; }
.d-article { padding: 34px 32px 30px; }
.d-article small { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #0e9e93; margin-bottom: 10px; }
.d-article h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.04; letter-spacing: -.01em; margin: 0 0 18px; min-height: 1em; word-break: break-word; }
.d-article img { width: 100%; height: 230px; object-fit: cover; border-radius: 14px; display: block; transition: opacity .35s; }
.d-article p { font-size: 16px; line-height: 1.6; color: #3a3a3c; margin: 18px 0 0; }
.d-flash { animation: flash .9s ease; }
@keyframes flash { 0% { background: #dff5ee; } 100% { background: transparent; } }
.a-hint { text-align: center; color: #86868b; font-size: 15px; margin-top: 26px; }

/* scroll-lit statement */
.a-reveal { background: #000; }
.a-reveal-pin { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.a-reveal-text { max-width: 1000px; font-size: clamp(34px, 5vw, 66px); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; color: #f5f5f7; margin: 0; }
.a-reveal-text .rw { color: #3a3a3c; transition: color .1s; }

/* feature with product film */
.light { background: #f5f5f7 !important; color: #1d1d1f; }
.light .a-sub { color: #6e6e73; }
.light .a-dim { color: #86868b; }
.a-feature { padding: 140px 0 120px; text-align: center; }
.a-media { width: min(1180px, 100% - 40px); margin: 60px auto 0; border-radius: 28px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .35); background: #000; will-change: transform; }
.a-media video { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }

/* bento */
.a-bento { padding: 40px 0 150px; }
.a-bento .a-h2 { margin-bottom: 60px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(230px, auto); gap: 20px; }
.b-tile { background: #fff; border-radius: 28px; padding: 34px 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; position: relative; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.b-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); }
.b-tile.wide { grid-column: span 2; }
.b-tile.tall { grid-row: span 2; background: #000; color: #f5f5f7; }
.b-tile.tall p { color: #a1a1a6; }
.b-tile h3 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.b-tile h3.b-big { font-size: 76px; letter-spacing: -.05em; line-height: 1; color: #0e9e93; }
.b-tile p { color: #6e6e73; font-size: 17px; line-height: 1.45; margin: 0; max-width: 420px; }
.b-ic { position: absolute; top: 30px; left: 32px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #dff5ee; color: #0b7a68; }
.b-tile.tall .b-ic { background: rgba(47, 199, 166, .15); color: #2fc7a6; }

/* film */
.a-film { background: #000; color: #f5f5f7; }
.a-film-pin { position: relative; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.a-film-frame { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; overflow: hidden; will-change: transform, border-radius; }
.a-film-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-film-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .75)); }
.a-film-copy { position: absolute; left: 0; right: 0; bottom: 9vh; text-align: center; z-index: 2; }
.a-film-copy .a-h2 { text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.a-film-copy .a-link { display: inline-block; margin-top: 18px; }

/* platforms */
.a-platforms { background: #000; color: #f5f5f7; padding: 150px 0; overflow: hidden; }
.a-platforms .a-h2 { margin-bottom: 70px; }
.p-row { display: flex; gap: 56px; white-space: nowrap; font-size: clamp(40px, 6vw, 84px); font-weight: 700; letter-spacing: -.04em; will-change: transform; }
.p-row span { color: #2c2c2e; transition: color .3s; }
.p-row span:hover { color: #2fc7a6; }
.p-row-2 { margin-top: 18px; }
.p-row-1 span:nth-child(3n+1), .p-row-2 span:nth-child(4n+2) { color: #f5f5f7; }
.a-platforms .a-link { display: inline-block; margin-top: 70px; }

/* final */
.a-final { background: #000; color: #f5f5f7; text-align: center; padding: 160px 24px 180px; }

/* reduced motion & small screens */
@media (prefers-reduced-motion: reduce) { .a-reveal-text .rw { color: inherit; } .a-reveal-pin { min-height: 0; padding: 120px 24px; } }
@media (max-width: 900px) {
  .d-split { grid-template-columns: 1fr; }
  .d-editor { border-right: 0; border-bottom: 1px solid #e5e5ea; }
  .d-tag { display: none; }
  .bento { grid-template-columns: 1fr; }
  .b-tile.wide, .b-tile.tall { grid-column: auto; grid-row: auto; }
  .a-film-pin { height: 70vh; }
}

/* refinements */
body { background: #000; }
.bento { grid-auto-flow: dense; }
.a-film-pin { display: block; }
.a-film-copy { position: absolute; left: 0; right: 0; top: 13vh; bottom: auto; z-index: 2; }
.a-film-copy .a-h2 { text-shadow: none; }
.a-film-frame { inset: auto 0 0 0; top: 0; }
.a-film-frame::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .35)); }

/* ===================== Real-time 3D section ===================== */
.x3d { position: relative; height: 520vh; background: #000; color: #f5f5f7; margin-top: -53px; }
.x3d-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.x3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.x3d-shade { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, rgba(0, 0, 0, .78), rgba(0, 0, 0, .25) 70%, transparent); pointer-events: none; }
.x3d-o { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px 40px; will-change: opacity, transform; }
.x3d-o:not(.o-hero) { opacity: 0; visibility: hidden; pointer-events: none; }
.x3d-o .a-link { margin-top: 26px; pointer-events: auto; }
.x3d .mint { color: #2fc7a6; }
.o-hero .a-h1 { max-width: 1100px; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.x3d-o .a-h2 { text-shadow: 0 6px 40px rgba(0, 0, 0, .7); font-size: clamp(44px, 7vw, 96px); }
.x3d-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #86868b; }
.x3d-scroll span { width: 1.5px; height: 44px; background: linear-gradient(#86868b, transparent); position: relative; overflow: hidden; }
.x3d-scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #2fc7a6; animation: drip 1.8s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes drip { to { top: 110%; } }
.x3d.no3d { height: auto; }
.x3d.no3d .x3d-stage { position: relative; min-height: 100vh; }
.x3d.no3d .x3d-o:not(.o-hero) { display: none; }
@media (prefers-reduced-motion: reduce) { .x3d { height: 100vh; } .x3d-o:not(.o-hero) { display: none; } }

/* 3D logo in the final CTA */
.logo3d { display: block; width: 260px; height: 260px; margin: -60px auto 10px; }

/* ===================== Accessibility fixes ===================== */
.light .a-kicker, .a-feature .a-kicker { color: #0a6f66; }
.d-crumb { color: #6e6e73; }
.d-ribbon, .d-ribbon b { color: #3a3a3c; }
.d-article small { color: #0a6f66; }
.b-tile h3.b-big { color: #0a6f66; }
.p-row span { color: #6a6a6e; }
.p-row-1 span:nth-child(3n+1), .p-row-2 span:nth-child(4n+2) { color: #f5f5f7; }
.a-dim { color: #98989d; }
.light .a-dim { color: #6e6e73; }
.a-hint { color: #98989d; }
.x3d-scroll { color: #98989d; }
@media (max-width: 520px) { .a-ctas { gap: 16px; } .d-chrome .d-url { display: none; } .d-editor, .d-article { padding: 18px; } .d-photos { gap: 6px; } }
