/* ============================================
   KARLIE KING STUDIO — AI Content page
   Builds on css/style.css (tokens, type, header, footer, buttons)
   ============================================ */

:root {
  --ai-ink: #0a0a0a;
  --ai-canvas: #0a0a0a;
  --ai-node: #141414;
  --ai-node-line: #262626;
  --ai-wire: rgba(255,255,255,0.16);
  --ai-glow: rgba(255,255,255,0.9);
  --ai-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ai-ease), transform 1s var(--ai-ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }
.reveal[data-delay="5"] { transition-delay: .6s; }

.ai-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
}
.ai-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: aiPulse 2s ease-in-out infinite; }
@keyframes aiPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- Hero: video triptych ---------- */
.ai-hero .hero-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #000; }
.ai-hero .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.ai-hero .hero-media::after { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.7) 100%); }
.ai-hero h1 { font-size: clamp(2.75rem, 8vw, 6.5rem); }
.ai-hero .hero-content .eyebrow { display: inline-flex; }
@media (max-width: 768px) {
  .ai-hero .hero-media { grid-template-columns: 1fr; }
  .ai-hero .hero-media video:not(:first-child) { display: none; }
}

/* ---------- Channels ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.5rem, 1.2vw, 1rem); }
.channel { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #f0f0f0; color: #fff; display: block; }
.channel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ai-ease); }
.channel:hover { opacity: 1; }
.channel:hover img { transform: scale(1.05); }
.channel .meta { position: absolute; inset: auto 0 0 0; padding: clamp(1.25rem, 2.5vw, 2rem); background: linear-gradient(180deg, transparent, rgba(0,0,0,.62)); }
.channel .meta .eyebrow { color: rgba(255,255,255,.75); }
.channel .meta h3 { color: #fff; margin-top: .35rem; }
@media (max-width: 768px) {
  .channels { grid-template-columns: 1fr 1fr; }
  .channel:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .channel:not(:first-child) .meta .eyebrow { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 0; background: #fff; }
.marquee-row { display: flex; gap: .75rem; width: max-content; animation: marquee 70s linear infinite; }
.marquee-row + .marquee-row { margin-top: .75rem; animation-direction: reverse; animation-duration: 85s; }
.marquee-row img { height: clamp(180px, 22vw, 300px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #f0f0f0; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Process canvas (node graph) ---------- */
.process { background: var(--ai-canvas); color: #fff; }
.process .section-head h2 { color: #fff; }
.process .section-head .eyebrow, .process .section-head p { color: rgba(255,255,255,.6); }
.canvas-wrap { position: relative; max-width: var(--max-w); margin: 0 auto; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.canvas-wrap::-webkit-scrollbar { display: none; }
.canvas-stage { position: relative; }
.canvas {
  position: absolute; top: 0; left: 0;
  width: 1440px; height: 840px;
  transform-origin: 0 0;
  border: 1px solid #1c1c1c; border-radius: 18px;
  background-color: #0d0d0d;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.canvas svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wire { fill: none; stroke: var(--ai-wire); stroke-width: 1.6; }
.wire-flow { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.6; stroke-dasharray: 3 14; animation: wireFlow 1.4s linear infinite; opacity: 0; transition: opacity .8s ease; }
.canvas.is-live .wire-flow { opacity: 1; }
@keyframes wireFlow { to { stroke-dashoffset: -34; } }
.pulse-dot { fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }

.node {
  position: absolute;
  background: var(--ai-node);
  border: 1px solid var(--ai-node-line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  overflow: visible;
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .8s var(--ai-ease), transform .8s var(--ai-ease), border-color .4s ease;
}
.canvas.is-in .node { opacity: 1; transform: none; }
.node:hover, .node.is-hot { border-color: #5a5a5a; }
.node-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .6rem .8rem; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: rgba(255,255,255,.85);
}
.node-head .tag { font-size: 10px; letter-spacing: .08em; color: rgba(255,255,255,.4); text-transform: none; }
.node-body { padding: 0 .55rem .55rem; }
.node-body img, .node-body video { display: block; width: 100%; border-radius: 8px; object-fit: cover; background: #1d1d1d; }
.node-foot { padding: .15rem .8rem .7rem; font-size: 11px; color: rgba(255,255,255,.45); }
.port { position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #0d0d0d; border: 1.5px solid #6a6a6a; }
.port.in { left: -6px; }
.port.out { right: -6px; }
.port.top { top: -6px; left: 50%; margin: 0 0 0 -5px; }
.port.bottom { top: auto; bottom: -6px; left: 50%; margin: 0 0 0 -5px; }
.node.is-hot .port { border-color: #fff; }

.mood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mood-grid img { aspect-ratio: 1; }
.ref-main { aspect-ratio: 16 / 10; background: #000 !important; object-fit: contain !important; }
.ref-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.ref-thumbs img { aspect-ratio: 1; background: #000 !important; object-fit: contain !important; padding: 4px; }
.ref-thumbs img.light { background: #fff !important; }
.cast-img { aspect-ratio: 16 / 11; object-position: 50% 28%; }

.prompt-box {
  min-height: 170px; margin: 0 .55rem .55rem; padding: .8rem .85rem;
  border-radius: 8px; background: #0b0b0b; border: 1px solid #222;
  font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.82); font-weight: 300;
}
.prompt-box .caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #fff; animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 .55rem .7rem; }
.prompt-chips span { font-size: 10px; letter-spacing: .06em; padding: .25rem .5rem; border: 1px solid #2c2c2c; border-radius: 999px; color: rgba(255,255,255,.6); }

.model-list { list-style: none; padding: 0 .55rem .6rem; }
.model-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem .7rem; margin-bottom: 4px; border-radius: 8px; border: 1px solid #222;
  font-size: 12px; color: rgba(255,255,255,.55); transition: all .5s ease;
}
.model-list li small { font-size: 10px; color: rgba(255,255,255,.35); }
.model-list li.is-on { background: #fff; color: #0a0a0a; border-color: #fff; }
.model-list li.is-on small { color: rgba(0,0,0,.55); }

.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gen-cell { position: relative; aspect-ratio: 9 / 13; border-radius: 8px; overflow: hidden; background: #1a1a1a; }
.gen-cell img { position: absolute; inset: 0; height: 100%; border-radius: 0 !important; opacity: 0; filter: blur(18px) saturate(.4); transform: scale(1.08); transition: opacity 1.2s ease, filter 1.6s var(--ai-ease), transform 1.6s var(--ai-ease); }
.gen-cell::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.12) 40%, transparent 60%) , repeating-conic-gradient(#222 0 25%, #1a1a1a 0 50%) 0 0 / 8px 8px;
  background-size: 250% 100%, 8px 8px; animation: shimmer 1.3s linear infinite; transition: opacity .8s ease;
}
.gen-cell.is-done::before { opacity: 0; }
.gen-cell.is-done img { opacity: 1; filter: none; transform: none; }
.gen-cell .pick { position: absolute; z-index: 2; inset: 0; border: 2px solid transparent; border-radius: 8px; transition: border-color .4s ease; }
.gen-cell .pick::after { content: '✓ Selected'; position: absolute; left: 6px; bottom: 6px; font-size: 10px; letter-spacing: .08em; background: #fff; color: #0a0a0a; padding: .2rem .45rem; border-radius: 999px; opacity: 0; transform: translateY(4px); transition: all .4s ease; }
.gen-cell.is-picked .pick { border-color: #fff; }
.gen-cell.is-picked .pick::after { opacity: 1; transform: none; }
.gen-cell.is-dim img { opacity: .35; }
@keyframes shimmer { from { background-position: 150% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
.gen-status { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.45); padding: .5rem .25rem 0; }
.gen-bar { height: 2px; background: #222; border-radius: 2px; margin: .4rem .25rem 0; overflow: hidden; }
.gen-bar i { display: block; height: 100%; width: 0; background: #fff; }

.check-img { position: relative; overflow: hidden; border-radius: 8px; }
.check-img img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.check-img .scan { position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(180deg, transparent, rgba(255,255,255,.18) 80%, rgba(255,255,255,.7) 100%); animation: scan 3.2s var(--ai-ease) infinite; }
@keyframes scan { 0% { top: -40%; } 70%,100% { top: 100%; } }
.checklist { list-style: none; padding: .55rem .25rem 0; font-size: 11.5px; color: rgba(255,255,255,.4); }
.checklist li { display: flex; align-items: center; gap: .5rem; padding: .22rem 0; transition: color .4s ease; }
.checklist li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #444; flex: none; transition: all .4s ease; }
.checklist li.ok { color: rgba(255,255,255,.9); }
.checklist li.ok::before { background: #fff; border-color: #fff; box-shadow: inset 0 0 0 3px #141414; }

.video-node video { aspect-ratio: 1; object-position: 50% 62%; }

.out-img { aspect-ratio: 16 / 10; }
.out-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: 8px; overflow: hidden; }
.out-grid img { aspect-ratio: 4 / 5; border-radius: 0 !important; }
.out-ad { position: relative; border-radius: 8px; overflow: hidden; }
.out-ad img { aspect-ratio: 16 / 10; object-position: 50% 20%; }
.out-ad img.wm { position: absolute; left: 8px; top: 8px; height: 13px; width: auto !important; aspect-ratio: auto; object-fit: contain; background: none !important; border-radius: 0 !important; }
.out-ad .cta { position: absolute; left: 8px; right: 8px; bottom: 8px; background: #fff; color: #0a0a0a; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: .3rem; border-radius: 4px; font-weight: 500; }
.node.out .node-head { color: #fff; }
.node.out.is-lit { border-color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 20px 60px rgba(255,255,255,.08); }

.canvas-hint { display: none; text-align: center; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 1rem; }
@media (max-width: 900px) { .canvas-hint { display: block; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.5rem, 1vw, 1rem); }
.step-card .media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #f0f0f0; }
.step-card .media img, .step-card .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ai-ease); }
.step-card .media.contain { background: #0a0a0a; }
.step-card .media.contain img { object-fit: contain; padding: 12%; }
.step-card:hover .media img { transform: scale(1.05); }
.step-card .num { position: absolute; top: .75rem; left: .9rem; font-family: var(--font-display); color: #fff; font-size: 1.1rem; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.step-card h3 { font-size: 1.15rem; margin: .9rem 0 .3rem; }
.step-card p { font-size: .88rem; line-height: 1.5; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- One reference, endless scenes ---------- */
.consistency { background: #fafafa; }
.cons-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 3vw, 3rem); align-items: center; max-width: 1100px; margin: 0 auto; }
.cons-ref { background: #cfcfcf; aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.cons-ref img { width: 100%; height: 100%; object-fit: cover; animation: floaty 8s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.cons-ref .ai-label { position: absolute; top: 1rem; left: 1rem; z-index: 1; color: rgba(10,10,10,.7); }
.cons-arrow { width: clamp(40px, 6vw, 90px); height: 2px; background: linear-gradient(90deg, var(--color-line), #0a0a0a); position: relative; }
.cons-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; width: 10px; height: 10px; border-top: 1.5px solid #0a0a0a; border-right: 1.5px solid #0a0a0a; transform: rotate(45deg); }
.cons-arrow i { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #0a0a0a; animation: travel 1.6s var(--ai-ease) infinite; }
@keyframes travel { from { left: 0; opacity: 0; } 20% { opacity: 1; } to { left: 100%; opacity: 0; } }
.cons-scenes { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #eee; }
.cons-scenes img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 5s linear; }
.cons-scenes img.is-on { opacity: 1; transform: scale(1); }
.cons-scenes .scanline { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(255,255,255,.35)); pointer-events: none; }
.cons-scenes .scanline.run { animation: scan 1.2s var(--ai-ease) 1; }
.cons-scenes .counter { position: absolute; right: 1rem; bottom: 1rem; color: #fff; font-size: .72rem; letter-spacing: .2em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.cons-scenes .ai-label { position: absolute; top: 1rem; left: 1rem; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
@media (max-width: 860px) {
  .cons-grid { grid-template-columns: 1fr 1fr; }
  .cons-arrow { display: none; }
}

/* ---------- Case study ---------- */
.case-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.case-facts .fact-item .num { font-size: clamp(2rem, 4vw, 2.75rem); }
@media (max-width: 860px) { .case-head { grid-template-columns: 1fr; } }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: clamp(4rem, 8vw, 6rem) 0 1.5rem; }
.mock-head h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.demo-tag { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); border: 1px solid var(--color-line); padding: .35rem .75rem; }

/* Browser mockup with auto-scroll */
.browser { border: 1px solid var(--color-line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(0,0,0,.35); }
.browser-bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; background: #f3f3f3; border-bottom: 1px solid var(--color-line); }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8d8d8; }
.browser-bar .url { flex: 1; max-width: 420px; margin: 0 auto; background: #fff; border-radius: 6px; padding: .3rem .8rem; font-size: .72rem; color: var(--color-muted); text-align: center; }
.browser-view { height: clamp(460px, 62vw, 720px); overflow: hidden; position: relative; }
.browser-view .site { transition: transform 0s; will-change: transform; }
.browser-view:hover .site { animation-play-state: paused !important; }

.s-site { color: #111; font-family: var(--font-body); }
.s-nav { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 2.5rem; border-bottom: 1px solid #eee; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.s-nav nav { display: flex; gap: 1.8rem; color: #666; }
.s-nav .wm { height: 22px; width: auto; }
.s-hero { display: grid; grid-template-columns: 1fr 1fr; background: #efeeec; height: clamp(360px, 40vw, 520px); }
.s-hero .txt { padding: 3.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; }
.s-hero .claim { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; }
.s-hero p { font-size: .95rem; color: #555; max-width: 34ch; }
.s-btn { display: inline-block; align-self: flex-start; background: #111; color: #fff; padding: .85rem 1.6rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.s-hero .img { overflow: hidden; }
.s-hero .img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.s-usp { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-bottom: 1px solid #eee; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.s-usp div { padding: 1.2rem .5rem; }
.s-usp div + div { border-left: 1px solid #eee; }
.s-prod { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; padding: 3rem 2.5rem; }
.s-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.s-gal .main { grid-column: 1 / -1; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f1f1; }
.s-gal .th { aspect-ratio: 1; overflow: hidden; background: #f1f1f1; }
.s-gal img { width: 100%; height: 100%; object-fit: cover; }
.s-info .wm { height: 34px; width: auto; }
.s-info .sub { color: #777; font-size: .9rem; margin: .5rem 0 1.25rem; }
.s-info ul { list-style: none; margin: 1.25rem 0 1.75rem; font-size: .9rem; color: #444; }
.s-info li { padding: .6rem 0; border-top: 1px solid #eee; }
.s-how { padding: 3rem 2.5rem; background: #f7f7f6; }
.s-title { font-family: var(--font-body); font-weight: 500; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 1.5rem; }
.s-how3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.s-how3 .i { aspect-ratio: 4 / 5; overflow: hidden; background: #eee; }
.s-how3 img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.s-how3 figcaption { padding: .8rem 0; font-size: .85rem; color: #555; }
.s-how3 figcaption b { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #111; font-weight: 500; margin-bottom: .2rem; }
.s-ba { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.s-ba .i { aspect-ratio: 1; overflow: hidden; }
.s-ba img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.s-ba .t { padding: 3rem; }
.s-ba .claim { font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.02em; }
.s-ba p { margin-top: .8rem; font-size: .9rem; }
.s-com { padding: 3rem 2.5rem; }
.s-com4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.s-com4 div { aspect-ratio: 1; overflow: hidden; background: #eee; }
.s-com4 img { width: 100%; height: 100%; object-fit: cover; }
.s-foot { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2.5rem; background: #111; color: #aaa; font-size: .72rem; }
.s-foot .wm { height: 18px; width: auto; }
@media (max-width: 760px) {
  .s-nav nav { display: none; }
  .s-hero { grid-template-columns: 1fr; height: auto; }
  .s-prod, .s-ba { grid-template-columns: 1fr; }
  .s-hero .img { aspect-ratio: 4 / 5; }
  .s-hero .txt, .s-ba .t { padding: 2rem 1.25rem; }
  .s-prod, .s-how, .s-com { padding: 2rem 1.25rem; }
  .s-how3 { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  .s-com4 { grid-template-columns: 1fr 1fr; }
  .s-nav { padding: 1rem 1.25rem; }
}

/* Phones */
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; max-width: 900px; margin: 0 auto; }
.phone-col .eyebrow { display: block; text-align: center; margin-bottom: 1rem; }
.phone { background: #0a0a0a; border-radius: 44px; padding: 10px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); max-width: 380px; margin: 0 auto; }
.screen { position: relative; background: #fff; border-radius: 35px; overflow: hidden; aspect-ratio: 9 / 19.5; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; color: #111; }
.screen .sb { display: flex; justify-content: space-between; padding: .7rem 1.5rem .3rem; font-size: .7rem; font-weight: 600; }
.p-head { display: flex; align-items: center; justify-content: space-between; padding: .3rem 1rem .6rem; font-weight: 700; font-size: .9rem; }
.p-head small { font-weight: 400; font-size: .62rem; color: #888; border: 1px solid #ddd; border-radius: 8px; padding: 0 .4rem; margin-left: .35rem; }
.p-prof { display: flex; align-items: center; gap: 1rem; padding: .2rem 1rem .6rem; }
.p-av { width: 62px; height: 62px; border-radius: 50%; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; flex: none; }
.p-av img { width: 72%; }
.p-stats { flex: 1; display: flex; justify-content: space-around; text-align: center; font-size: .66rem; color: #555; }
.p-stats b { display: block; font-size: .9rem; color: #111; }
.p-bio { padding: 0 1rem .6rem; font-size: .7rem; line-height: 1.4; }
.p-hl { display: flex; gap: .7rem; padding: .1rem 1rem .7rem; }
.p-hl div { text-align: center; font-size: .58rem; color: #444; }
.p-hl i { display: block; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #ddd; overflow: hidden; margin-bottom: .2rem; padding: 2px; }
.p-hl img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.p-tabs { display: flex; border-top: 1px solid #eee; }
.p-tabs span { flex: 1; text-align: center; padding: .45rem 0; font-size: .6rem; letter-spacing: .1em; color: #aaa; }
.p-tabs span.a { color: #111; border-bottom: 1.5px solid #111; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.p-grid div { aspect-ratio: 4 / 5; overflow: hidden; background: #eee; }
.p-grid img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s ease, transform 1.2s var(--ai-ease); }
.p-grid.is-in img { opacity: 1; transform: none; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel .ui { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 18%, transparent 70%, rgba(0,0,0,.45)); color: #fff; }
.reel .top { position: absolute; top: 2.4rem; left: 1rem; font-weight: 700; font-size: .95rem; }
.reel .bottom { position: absolute; left: 1rem; right: 3.5rem; bottom: 1.4rem; font-size: .72rem; line-height: 1.4; }
.reel .bottom b { display: flex; align-items: center; gap: .4rem; font-size: .8rem; margin-bottom: .35rem; }
.reel .bottom b i { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.reel .bottom b i img { width: 70%; }
.reel .side { position: absolute; right: .8rem; bottom: 1.6rem; display: flex; flex-direction: column; gap: 1rem; font-size: 1.2rem; text-align: center; }
.reel .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.3); }
.reel .progress i { display: block; height: 100%; width: 0; background: #fff; }
@media (max-width: 640px) { .phones { grid-template-columns: 1fr; } .phone { max-width: 320px; } }

/* Ads */
.ads { display: grid; grid-template-columns: 1fr .8fr 1.2fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.ad-lbl { display: block; margin-bottom: .75rem; }
.feedad { border: 1px solid var(--color-line); background: #fff; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; }
.fa-h { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; font-size: .8rem; }
.mini { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ddd; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mini img { width: 72%; }
.fa-h small { display: block; font-size: .66rem; color: #888; }
.fa-img { aspect-ratio: 4 / 5; overflow: hidden; }
.fa-img img { width: 100%; height: 100%; object-fit: cover; }
.fa-cta { display: flex; justify-content: space-between; padding: .7rem .75rem; background: #f3f3f3; font-size: .8rem; font-weight: 600; }
.fa-t { padding: .6rem .75rem .9rem; font-size: .78rem; line-height: 1.45; }
.story-ad { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; background: #111; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.story-ad video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-ad .bar { position: absolute; top: 8px; left: 8px; right: 8px; height: 2px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.story-ad .bar i { display: block; height: 100%; width: 0; background: #fff; }
.story-ad .top { position: absolute; top: 18px; left: 10px; display: flex; align-items: center; gap: .45rem; color: #fff; font-size: .72rem; font-family: -apple-system, Arial, sans-serif; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.story-ad .top .mini { width: 24px; height: 24px; }
.story-ad .claim { position: absolute; left: 14px; right: 14px; top: 16%; color: #fff; font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0,0,0,.35); opacity: 0; transform: translateY(10px); animation: claimIn 1s var(--ai-ease) .6s forwards; }
@keyframes claimIn { to { opacity: 1; transform: none; } }
.story-ad .more { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: #fff; color: #111; border-radius: 999px; padding: .5rem 1.1rem; font-size: .72rem; font-weight: 600; font-family: -apple-system, Arial, sans-serif; white-space: nowrap; }
.story-ad.static img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner { margin-top: clamp(2rem, 4vw, 3rem); }
.banner-box { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--color-line); background: #fff; overflow: hidden; }
.banner .bi { position: relative; overflow: hidden; min-height: 260px; background: #eceae6; }
.banner .bi img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; animation: kenburns 16s ease-in-out infinite alternate; transform-origin: 50% 78%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.banner .bt { padding: clamp(1.5rem, 3vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .9rem; }
.banner .bt .wm { height: 26px; width: auto; }
.banner .claim { font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.08; text-transform: uppercase; letter-spacing: -.01em; }
.banner p { font-size: .95rem; margin: 0; }
.ads { grid-template-columns: 1.15fr .85fr .85fr; }
@media (max-width: 960px) { .ads { grid-template-columns: 1fr 1fr; } .ads > :first-child { grid-column: 1 / -1; max-width: 480px; } }
@media (max-width: 560px) { .ads { grid-template-columns: 1fr; } .banner-box { grid-template-columns: 1fr; } .banner .bi { aspect-ratio: 4 / 3; min-height: 0; } }

/* Favourites */
.fav-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(.5rem, 1.2vw, 1rem); align-items: stretch; }
.fav-grid .fav { margin: 0; aspect-ratio: auto; height: clamp(360px, 38vw, 560px); }
.fav-grid .fav img { width: 100%; height: 100%; object-fit: cover; }
.fav-grid .fav:nth-child(1) img { object-position: 50% 30%; }
@media (max-width: 760px) { .fav-grid { grid-template-columns: 1fr 1fr; } .fav-grid .fav:first-child { grid-column: 1 / -1; height: 120vw; max-height: 620px; } .fav-grid .fav { height: 60vw; } }
@media (hover: none) { .fav-grid .meta { opacity: 1; transform: none; } }

/* Craft */
.craft { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.craft .service-card p { margin-bottom: 0; }
@media (max-width: 960px) { .craft { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .craft { grid-template-columns: 1fr; } }

.ai-disclosure { font-size: .78rem; color: var(--color-muted); max-width: var(--max-w); margin: 0 auto; padding: 1.5rem var(--pad) 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-row { animation: none; }
  .node { opacity: 1; transform: none; }
}
.fav-grid .highlight-tile.fav { grid-column: auto !important; aspect-ratio: auto !important; }

.s-banner { line-height: 0; }
.s-banner img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .fav-grid { grid-template-columns: 1fr 1fr; }
  .fav-grid .highlight-tile.fav { height: auto !important; aspect-ratio: 4 / 5 !important; }
  .fav-grid .highlight-tile.fav:first-child { grid-column: 1 / -1 !important; }
  .fav-grid .fav .meta { padding: .9rem; }
  .fav-grid .fav .meta .title { font-size: 1rem; }
}
