/* ==========================================================================
   Agent Bond — elevate layer
   Interface devices borrowed from the 21st.dev component vocabulary
   (italic serif accents, grid-and-glow hero, shimmer border, spotlight bento,
   marquee, number ticker, numbered FAQ, hover-reveal footer), translated into
   the cream brand. Loaded after home.css; motion off under reduced motion.
   ========================================================================== */

@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --glow: rgba(49, 93, 70, 0.22);
  --glow-warm: rgba(214, 170, 110, 0.28);
  --hair: rgba(17, 17, 15, 0.09);
}

/* Italic serif accent word inside the sans display type. */
.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
  padding: 0 0.02em 0 0.08em;
  margin-right: -0.04em;
}
.headline .soft .accent { color: #7f9a88; }
.band .accent { color: #9cc3a9; }

/* ----------------------------------------------------- Hero backdrop -- */
.hero { isolation: isolate; }
.hero::before, .invite::before { /* fine grid, faded out from the centre */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 980px;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after, .invite::after { /* two soft light pools */
  content: "";
  position: absolute;
  left: 50%;
  top: -160px;
  width: min(1400px, 140vw);
  height: 900px;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 32% 40%, var(--glow), transparent),
    radial-gradient(closest-side at 70% 36%, var(--glow-warm), transparent);
  filter: blur(30px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::after, .invite::after { animation: drift 14s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translateX(-47%) translateY(30px) scale(1.06); } }
}

/* ----------------------------------------------- Pill badge (shimmer) -- */
.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--glass-strong);
  margin-bottom: 26px;
  isolation: isolate;
}
.badge b {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 12px;
  font-weight: 600;
}
.badge svg { width: 14px; height: 14px; stroke: currentColor; transition: transform 0.3s var(--ease); }
.badge:hover svg { transform: translateX(3px); }

/* A conic ring that travels around the border (badge + primary button). */
.shine::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--spin), transparent 0 64%, rgba(49, 93, 70, 0.9) 78%, rgba(214, 170, 110, 0.95) 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  z-index: -1;
  pointer-events: none;
}
.badge.shine { border: 1px solid var(--hair); }
.btn-dark.shine { position: relative; isolation: isolate; box-shadow: 0 10px 30px -12px rgba(17, 17, 15, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.btn-dark.shine::before {
  inset: -2px;
  padding: 2px;
  background: conic-gradient(from var(--spin), transparent 0 55%, #315d46 72%, #c8964f 86%, transparent 97%);
}
.btn-dark.shine::after { /* sheen sweep on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 120% 0;
  transition: background-position 0.8s var(--ease);
  pointer-events: none;
}
.btn-dark.shine:hover::after { background-position: -40% 0; }
.btn-dark.shine:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: no-preference) {
  .shine::before { animation: spin 4.5s linear infinite; }
  @keyframes spin { to { --spin: 360deg; } }
}
.hint { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hint kbd { font: inherit; font-weight: 600; color: var(--ink-2); }

/* -------------------------------------------------- Blur-in headlines -- */
.headline.reveal, .reveal .headline { filter: blur(10px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.headline.reveal.in, .reveal.in .headline { filter: none; }

/* --------------------------------------------------------- Stat strip -- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(80px, 12vw, 140px) auto 0;
  border-block: 1px solid var(--hair);
}
.stat { padding: 34px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--hair); }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--hair); }
}

/* ------------------------------------------------------ Spotlight bento -- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 14px;
  margin-top: 60px;
  text-align: left;
}
.cell {
  --x: 50%;
  --y: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 253, 249, 0.7);
  border: 1px solid var(--hair);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 20px 50px -34px rgba(59, 51, 38, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  grid-column: span 2;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cell.wide { grid-column: span 3; }
.cell.hero-cell { grid-column: span 4; }
.cell::before { /* spotlight that follows the cursor */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(49, 93, 70, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.cell::after { /* matching lit border */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(49, 93, 70, 0.55), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.cell:hover::before, .cell:hover::after { opacity: 1; }
.cell:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 30px 60px -34px rgba(59, 51, 38, 0.55); }
.cell b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -0.025em; margin-bottom: 6px; }
.cell span { color: var(--muted); font-size: 15px; }
.cell .demo { flex: 1; display: grid; place-items: center; margin-bottom: 22px; min-height: 130px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell, .cell.wide, .cell.hero-cell { grid-column: span 1; }
  .cell.hero-cell { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cell.hero-cell { grid-column: span 1; }
}

/* Demo visuals inside the cells (pure CSS, no images). */
.demo-bubbles { display: grid; gap: 8px; width: min(320px, 100%); }
.demo-bubbles i {
  font-style: normal;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 80%;
  background: #fff;
  border: 1px solid var(--hair);
  justify-self: start;
}
.demo-bubbles i.me { justify-self: end; background: var(--ink); color: var(--canvas); border-color: transparent; }
.demo-bubbles i.img { padding: 6px; }
.demo-bubbles i.img::before { content: ""; display: block; width: 150px; height: 84px; border-radius: 13px; background: linear-gradient(135deg, #cfd9c9, #e9d6b7 60%, #c7b8a0); }
.demo-bubbles .dots { display: inline-flex; gap: 4px; padding: 13px 14px; }
.demo-bubbles .dots u { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); text-decoration: none; opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .demo-bubbles .dots u { animation: dot 1.2s ease-in-out infinite; }
  .demo-bubbles .dots u:nth-child(2) { animation-delay: 0.15s; }
  .demo-bubbles .dots u:nth-child(3) { animation-delay: 0.3s; }
  @keyframes dot { 30% { opacity: 1; transform: translateY(-3px); } }
}
.demo-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--hair);
  box-shadow: 0 16px 34px -20px rgba(59, 51, 38, 0.5);
  transition: transform 0.5s var(--ease);
}
.cell:hover .demo-icon { transform: translateY(-4px) rotate(-4deg); }
.demo-icon svg { width: 34px; height: 34px; stroke: var(--accent); }
.demo-wave { display: flex; gap: 4px; align-items: center; height: 70px; }
.demo-wave i { width: 5px; border-radius: 3px; background: var(--accent); height: 30%; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .demo-wave i { animation: wave 1.3s ease-in-out infinite; }
  .demo-wave i:nth-child(odd) { animation-duration: 1.05s; }
  .demo-wave i:nth-child(3n) { animation-duration: 1.6s; }
}
.demo-switch { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.demo-switch i { font-style: normal; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; }
.demo-switch i.on { background: var(--ink); color: var(--canvas); border-color: transparent; }

/* ---------------------------------------------------------- Marquee -- */
.marquee {
  --gap: 12px;
  display: flex;
  gap: var(--gap);
  overflow: hidden;
  margin-top: 34px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: var(--gap); flex-shrink: 0; min-width: 100%; justify-content: space-around; }
.marquee .tag, .marquee .model { flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee.reverse .marquee-track { animation-direction: reverse; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
}
.models-marquee { margin-top: 60px; display: grid; gap: 12px; }
.models-marquee .marquee { margin-top: 0; }

/* -------------------------------------------------------- Numbered FAQ -- */
.faq { max-width: 860px; margin: 60px auto 0; text-align: left; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  align-items: center;
  gap: 8px;
  padding: 26px 4px;
  font-family: var(--display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary em { font-style: normal; font-family: var(--text); font-size: 14px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.faq summary i {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--canvas); }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 0 0 26px; padding-left: 64px; padding-right: 36px; color: var(--muted); font-size: 17px; max-width: 700px; }
@media (max-width: 560px) {
  .faq summary { grid-template-columns: 36px 1fr 28px; }
  .faq p { padding-left: 44px; padding-right: 0; }
}

/* ---------------------------------------------- Hover-reveal footer -- */
.footer { overflow: hidden; }
.wordmark {
  --x: 50%;
  --y: 50%;
  position: relative;
  margin: 10px auto -0.18em;
  width: min(1320px, 100% - 24px);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 17vw, 240px);
  line-height: 1;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(17, 17, 15, 0.14);
  user-select: none;
}
.wordmark span {
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 0;
  background: radial-gradient(360px circle at var(--x) var(--y), var(--accent), #d6aa6e 45%, transparent 70%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.wordmark:hover span { opacity: 1; }
@media (hover: none) {
  .wordmark span { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .headline.reveal, .reveal .headline { filter: none; }
  .cell, .cell:hover, .cell:hover .demo-icon { transform: none; }
}

/* ======================================================= v2 devices ===== */

/* ------------------------------------------ Rotating word (hero title) -- */
.hero-title .line2 { display: block; color: #a29d91; font-size: 0.8em; letter-spacing: -0.045em; margin-top: 0.12em; }
.rotator {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  height: 1.12em;
  overflow: hidden;
  transition: width 0.6s var(--ease);
  text-align: left;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.rotator .accent {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--accent);
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.4s var(--ease);
}
.rotator .accent.is-on { opacity: 1; transform: none; position: relative; }
.rotator .accent.is-out { opacity: 0; transform: translateY(-110%); }

/* ---------------------------------------------------- Agent plan card -- */
.plan {
  margin-top: 34px;
  max-width: 440px;
  border-radius: 22px;
  padding: 18px 18px 10px;
  text-align: left;
}
.plan-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.plan-head b { font-family: var(--display); font-size: 16px; letter-spacing: -0.02em; flex: 1; }
.plan-head em { font-style: normal; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-orb {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9cc3a9, var(--accent) 60%, #173526);
  box-shadow: 0 0 0 4px rgba(49, 93, 70, 0.12);
}
.plan ol { list-style: none; margin: 0; padding: 6px 0 0; }
.plan li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 9px 2px; font-size: 15px; color: var(--muted); transition: color 0.3s var(--ease); }
.plan li i {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(17, 17, 15, 0.22);
  position: relative;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.plan li small { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(17, 17, 15, 0.05); color: var(--muted); }
.plan li small::before { content: "Pending"; }
.plan li.run { color: var(--ink); }
.plan li.run i { border-style: dashed; border-color: var(--accent); }
.plan li.run small { background: rgba(49, 93, 70, 0.12); color: var(--accent); }
.plan li.run small::before { content: "Working"; }
.plan li.done { color: var(--ink-2); }
.plan li.done span { text-decoration: line-through; text-decoration-color: rgba(17, 17, 15, 0.25); }
.plan li.done i { background: var(--accent); border-color: var(--accent); }
.plan li.done i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.plan li.done small { background: transparent; }
.plan li.done small::before { content: "Done"; }
@media (prefers-reduced-motion: no-preference) {
  .plan li.run i { animation: spin 2.4s linear infinite; }
  .plan-orb { animation: breathe 3s ease-in-out infinite; }
}
.split .plan { margin-inline: 0; }
@media (max-width: 900px) { .split .plan { margin-inline: auto; } }

/* ------------------------------------------------- Glowing prompt bar -- */
.prompt {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(640px, 100%);
  margin: 38px auto 0;
  height: 64px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: #fffdf9;
  box-shadow: 0 24px 60px -30px rgba(49, 93, 70, 0.6);
  text-align: left;
}
.prompt::before { /* moving colour ring */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--spin), #315d46, #9cc3a9, #d6aa6e, #f1d8ae, #315d46);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  z-index: -1;
}
.prompt::after { /* the same ring, blurred into a halo */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), #315d46, #9cc3a9, #d6aa6e, #f1d8ae, #315d46);
  filter: blur(18px);
  opacity: 0.35;
  z-index: -2;
}
@media (prefers-reduced-motion: no-preference) {
  .prompt::before, .prompt::after { animation: spin 5s linear infinite; }
}
.prompt-spark { width: 20px; height: 20px; fill: var(--accent); flex-shrink: 0; }
.prompt-text { flex: 1; font-size: 17px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt-text::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.prompt-go {
  display: inline-flex; align-items: center; gap: 6px;
  height: 48px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: var(--canvas);
  font-weight: 600; font-size: 15px;
  transition: transform 0.3s var(--ease);
}
.prompt-go svg { width: 16px; height: 16px; stroke: currentColor; transition: transform 0.3s var(--ease); }
.prompt:hover .prompt-go svg { transform: translateX(3px); }
@media (max-width: 560px) {
  .prompt { height: 56px; padding-left: 16px; }
  .prompt-text { font-size: 15px; }
  .prompt-go { height: 42px; padding: 0 14px; }
}

/* ------------------------------------------------------ Glow horizon -- */
.band.has-horizon { position: relative; isolation: isolate; }
.horizon {
  position: absolute;
  left: 50%;
  bottom: -62%;
  width: 180%;
  aspect-ratio: 2.2 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, #1d2a22 0%, #11110f 55%);
  box-shadow:
    0 -2px 0 rgba(214, 238, 222, 0.55),
    0 -18px 60px rgba(156, 195, 169, 0.45),
    0 -60px 160px rgba(49, 93, 70, 0.55);
  z-index: -1;
  pointer-events: none;
}
.band.has-horizon::before { /* faint stars */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 32% 42%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 58% 12%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 78% 30%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 88% 8%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 22% 64%, rgba(255,255,255,.25), transparent),
    radial-gradient(1px 1px at 70% 58%, rgba(255,255,255,.25), transparent);
}
@media (max-width: 700px) { .horizon { width: 320%; bottom: -30%; } }

/* ------------------------------------------------- 3D screen carousel -- */
.orbit {
  --item: clamp(150px, 16vw, 210px);
  --radius: calc(var(--item) * 2.35);
  position: relative;
  height: calc(var(--item) * 2.75);
  margin-top: 40px;
  perspective: 1500px;
  perspective-origin: 50% 40%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  user-select: none;
}
.orbit.dragging { cursor: grabbing; }
.orbit-ring {
  position: absolute;
  left: 50%;
  top: 9%;
  width: var(--item);
  aspect-ratio: 520 / 1131;
  margin-left: calc(var(--item) / -2);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--radius) * -1)) rotateY(var(--angle, 0deg));
}
.orbit-item {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: calc(var(--item) * 0.13);
  padding: calc(var(--item) * 0.03);
  background: linear-gradient(145deg, #2b2a27, #0c0c0b 45%, #262521);
  box-shadow: 0 30px 60px -30px rgba(59, 51, 38, 0.6);
  transform: rotateY(calc(var(--i) * 30deg)) translateZ(var(--radius));
  backface-visibility: hidden;
}
.orbit-item img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--item) * 0.105); pointer-events: none; }
@media (max-width: 700px) { .orbit { --item: 130px; } }

/* ------------------------------------------ Container scroll (laptop) -- */
.tilt-stage { perspective: 1200px; margin-top: 70px; }
.tilt-card {
  --p: 0;
  margin-top: 0;
  transform-origin: 50% 0%;
  transform: rotateX(calc((1 - var(--p)) * 26deg)) scale(calc(1.06 - var(--p) * 0.06)) translateY(calc((1 - var(--p)) * -20px));
  will-change: transform;
}
.tilt-card .lid { box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 60px 120px -40px rgba(59, 51, 38, 0.55), 0 20px 50px -20px rgba(59, 51, 38, 0.35); }

/* ---------------------------------------------------------- Aurora -- */
.final.has-aurora { position: relative; isolation: isolate; }
.aurora { position: absolute; inset: 10% -10%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: 0.8; }
.aurora i { position: absolute; border-radius: 50%; }
.aurora i:nth-child(1) { width: 46%; height: 60%; left: 8%; top: 18%; background: rgba(49, 93, 70, 0.32); }
.aurora i:nth-child(2) { width: 40%; height: 55%; right: 10%; top: 10%; background: rgba(214, 170, 110, 0.4); }
.aurora i:nth-child(3) { width: 36%; height: 46%; left: 34%; bottom: 4%; background: rgba(156, 195, 169, 0.4); }
@media (prefers-reduced-motion: no-preference) {
  .aurora i:nth-child(1) { animation: float1 16s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { animation: float2 19s ease-in-out infinite alternate; }
  .aurora i:nth-child(3) { animation: float1 22s ease-in-out infinite alternate-reverse; }
  @keyframes float1 { to { transform: translate(18%, 12%) scale(1.15); } }
  @keyframes float2 { to { transform: translate(-16%, 18%) scale(0.9); } }
}

/* ------------------------------------------------- Compact nav on scroll -- */
.nav { transition: width 0.5s var(--ease), height 0.5s var(--ease), top 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.nav.is-compact { width: min(860px, calc(100% - 24px)); height: 50px; top: 8px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 40px -18px rgba(59, 51, 38, 0.45); }

@media (prefers-reduced-motion: reduce) {
  .tilt-card { transform: none; }
  .rotator .accent { transition: none; }
}
.hero-title .rotator { display: inline-block; font-size: 1em; margin-top: 0; letter-spacing: -0.02em; }
.hero-title .line2 .accent { font-size: 1.08em; }

.brand { white-space: nowrap; flex-shrink: 0; }
.nav.is-compact { width: min(920px, calc(100% - 24px)); }
.split .headline { font-size: clamp(44px, 6.2vw, 92px); }
/* Clip the rotating words vertically only, so italic overhang isn't cut. */
.rotator { overflow: visible; clip-path: inset(0 -0.4em 0 -0.15em); }
@media (max-width: 600px) {
  .hero-title { font-size: clamp(40px, 12.4vw, 60px); }
  .hero-title .line2 { font-size: 0.86em; }
}
/* A phone on the dark band needs a lit rim, or its frame sinks into the black. */
.band .phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 0 6px rgba(255, 255, 255, 0.03), 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 0 90px -20px rgba(156, 195, 169, 0.28); }
