/* Sidra's tokens (Packages/SidraDesign/Tokens.swift). On the site the gradient lives in the shaders and the art, never on flat UI. */
:root {
  --ground: #0c0e12; --pane: #12151a; --raised: #191e25; --hair: rgba(255,255,255,.065); --hair2: rgba(255,255,255,.11);
  --text: #d9dde3; --soft: #b4bac4; --petal: #f3efe9; --peach: #f2b9a1; --jade: #5ad6a0;
  --serif: "Instrument Serif", Georgia, serif; --ui: "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font: 17px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; color: var(--petal); margin: 0; }
h1 { font-size: clamp(46px, 6.2vw, 84px); line-height: .98; }
h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; }
h3 { font-size: 30px; line-height: 1.08; }
h1 i, h2 i, h3 i { color: var(--peach); }
/* The title's second line goes through the devices: each one leaves upward and the next comes up from below.
   A screen reader, and a reader with reduced motion, gets the one plain line "on every Apple device." */
h1 .every { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1 .swap { display: block; height: 1.2em; line-height: 1.2; margin-top: -.1em; overflow: hidden; }
h1 .swap span { display: block; animation: swoosh 10s cubic-bezier(.7, 0, .2, 1) infinite; }
@keyframes swoosh { 0%, 20% { translate: 0 0; } 25%, 45% { translate: 0 -100%; } 50%, 70% { translate: 0 -200%; } 75%, 95% { translate: 0 -300%; } 100% { translate: 0 -400%; } }
@media (prefers-reduced-motion: reduce) { h1 .every { position: static; display: block; width: auto; height: auto; clip-path: none; overflow: visible; white-space: normal; } h1 .swap { display: none; } }
h1 code { font: 400 .74em var(--mono); letter-spacing: -.06em; color: var(--jade); }
.lede { color: var(--soft); font-size: 19px; max-width: 520px; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--jade); }
.kicker img { width: 16px; height: 16px; }
/* A product's own mark before its name, as tall as the text and never on another line than the name. */
.prod { white-space: nowrap; }
.prod img { display: inline-block; width: 1em; height: 1em; margin-right: .3em; vertical-align: -.15em; }
.prod img[src*="gitlab"] { scale: 1.5; }   /* the file has a wide margin around the mark */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--hair2); background: rgba(18,21,26,.6); text-decoration: none; font-weight: 500; font-size: 16px; }
.btn:hover { border-color: var(--soft); }
.btn.light { background: var(--petal); color: var(--ground); border-color: transparent; font-weight: 600; }
.btn.jade { background: var(--jade); color: #07130d; border-color: transparent; font-weight: 600; }
.btn svg { width: 19px; height: 19px; flex: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Shader canvases fade in over a CSS stand-in, so a browser without WebGL still has light. */
canvas[data-gl] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
canvas[data-gl].on { opacity: 1; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.nav.over { position: absolute; z-index: 3; top: 0; left: 0; right: 0; padding: 24px clamp(16px, 4vw, 56px); }
.brand { display: flex; align-items: center; gap: 10px; font: 400 30px/1 var(--serif); text-decoration: none; color: var(--petal); }
.brand img { border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 28px; font: 500 13px var(--mono); letter-spacing: .04em; }
.nav nav a { text-decoration: none; }
.nav nav a:not(.btn):hover { color: #fff; }
.nav .btn { height: 44px; padding: 0 22px; font: 600 15px var(--ui); letter-spacing: 0; }

/* Hero: the flower plate, the fountain behind the device, then the plate again over the device's foot. */
.hero { position: relative; z-index: 1; overflow-x: clip; min-height: min(900px, 100vh); display: flex; align-items: center; padding: 120px 0 90px; }
.hero > .plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero > .plate.front { z-index: 4; pointer-events: none; -webkit-mask-image: linear-gradient(transparent 66%, #000 82%); mask-image: linear-gradient(transparent 66%, #000 82%); }
.hero .shade { pointer-events: none; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,14,18,.88), rgba(12,14,18,.55) 38%, rgba(12,14,18,0) 60%); }
.hero .fountain { position: absolute; left: 34%; right: 0; top: -5%; height: 88%; mix-blend-mode: screen; filter: brightness(2) saturate(1.15);
  -webkit-mask-image: radial-gradient(60% 62% at 50% 62%, #000 45%, transparent 100%); mask-image: radial-gradient(60% 62% at 50% 62%, #000 45%, transparent 100%); }
.hero .stand { position: absolute; left: 52%; top: 21%; width: min(42%, 600px); transform: rotate(-5deg); z-index: 3; }
/* On scroll the device straightens and grows, and its screen goes from the agent's clip to the activity board.
   On a wide screen it also holds its place in the window (translate follows the scroll), moves to the centre,
   leaves the hero over its lower edge, and then scrolls on with the page.
   Without scroll timelines, or with reduced motion, it keeps its tilt and the clip. */
.hero .stand { display: grid; }
.hero .stand > video { grid-area: 1 / 1; }
.hero .stand > .board { opacity: 0; pointer-events: none; }
/* The warp: streaks of light behind the device while it is pinned. Fixed in the window, shown only by the scroll. */
.hero .warp { position: fixed; inset: 0; opacity: 0; pointer-events: none; }
.hero .warp canvas { width: 100%; height: 100%; display: block; }
@supports (animation-timeline: scroll()) { @media (prefers-reduced-motion: no-preference) {
  /* Two animations: `straighten` turns, grows and moves the device sideways until --end; `pin` holds it in the window
     (translate follows the scroll) for --pin and then for --hold more, so the board stays on screen for a while. */
  .hero .stand { --grow: 1.06; --pin: 0px; --hold: 0px; --shift: 0px; --end: 380px; transform: translateX(0) rotate(-5deg) scale(1);
    animation: straighten linear both, pin linear both; animation-timeline: scroll(root), scroll(root);
    animation-range: 0 var(--end), 0 calc(var(--pin) + var(--hold) + 1px); }
  .hero .stand > .board { animation: show linear both; animation-timeline: scroll(root); animation-range: calc(var(--end) * .4) calc(var(--end) * .75); }
  @media (min-width: 901px) {
    /* --pin leaves the grown device 280px below the hero: the margin and the next section's padding hold that room.
       190px more gives the device as much air below it as it has above (about 220px to the hero's edge). */
    .hero { margin-bottom: calc(390px + 70vh); }
    .hero .stand, .hero .warp { --w: min(42vw, 600px); --grow: 1.5; --shift: calc(-2vw - var(--w) / 2);
      --pin: calc(280px + .79 * min(900px, 100vh) - var(--w) * .766 * (1 + var(--grow)) / 2); --end: var(--pin); --hold: 70vh; }
    /* The picture behind goes dark while the device moves: the board then stands on the plain ground. */
    .hero > .plate, .hero .fountain { animation: fade linear both; animation-timeline: scroll(root); animation-range: 60px 420px; }
    .hero > .plate.front { animation: fade linear both; animation-timeline: scroll(root); animation-range: 0 200px; }
    .hero .warp { animation: glow linear both; animation-timeline: scroll(root); animation-range: 120px calc(var(--pin) + var(--hold) + 260px); }
  }
} }
@keyframes straighten { to { transform: translateX(var(--shift)) rotate(0) scale(var(--grow)); } }
@keyframes pin { to { translate: 0 calc(var(--pin) + var(--hold)); } }
@keyframes fade { to { opacity: 0; } }
@keyframes glow { 0%, 100% { opacity: 0; } 22%, 82% { opacity: 1; } }
@keyframes show { to { opacity: 1; } }
.hero-text { position: relative; z-index: 2; width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; flex-direction: column; gap: 26px; }
/* The text column is as wide as the page: clicks beside the text go through to the clip. */
.hero-text { pointer-events: none; }
.hero-text > * { max-width: 580px; pointer-events: auto; }
.hero-text h1 { max-width: 700px; }
/* Beside the device the text keeps to the left half, so the device never covers it at rest. */
@media (min-width: 901px) { .hero-text > *, .hero-text h1 { max-width: min(700px, 50vw - 24px); } .hero-text > :not(h1) { max-width: min(580px, 50vw - 24px); }
  /* The front flowers lie over the device, so they stay in its half and off the text. */
  .hero > .plate.front { -webkit-mask-image: linear-gradient(transparent 66%, #000 82%), linear-gradient(90deg, transparent 50%, #000 64%); mask-image: linear-gradient(transparent 66%, #000 82%), linear-gradient(90deg, transparent 50%, #000 64%); -webkit-mask-composite: source-in; mask-composite: intersect; } }
.hero-text .icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 0 0 1px var(--hair), 0 16px 34px rgba(0,0,0,.5); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 14px 0 0; list-style: none; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.chips li { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(12,14,18,.7); border: 1px solid var(--hair); }
.plat { width: 16px; height: 16px; flex: none; }
h1 .plat { width: .62em; height: .62em; margin-left: .22em; vertical-align: -.02em; stroke-width: 1.5; }

/* Devices: a dark bezel around a shot or a clip. */
.ipad { padding: .8%; background: #06070a; border-radius: 2.6% / 3.5%; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 50px 90px rgba(0,0,0,.6); }
.ipad, .iphone { position: relative; }
.ipad > video, .ipad > img { width: 100%; border-radius: 1.9% / 2.5%; aspect-ratio: 4 / 3; object-fit: cover; }
.iphone { padding: 4%; background: #06070a; border-radius: 18% / 8.4%; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 60px rgba(0,0,0,.65); }
.iphone > video, .iphone > img { width: 100%; border-radius: 15% / 6.9%; aspect-ratio: 552 / 1200; object-fit: cover; }

/* A click on a clip pauses it. Its button (site-gl.js) shows only on keyboard focus: the device stays clean. */
.ipad > video, .iphone > video { cursor: pointer; }
.pause { position: absolute; z-index: 2; left: 50%; bottom: 8%; translate: -50% 0; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hair2); background: rgba(12,14,18,.9); color: var(--petal); font: 500 14px var(--ui); cursor: pointer; opacity: 0; pointer-events: none; }
.pause:focus-visible { opacity: 1; pointer-events: auto; }
/* The background's button shows for the keyboard only (on focus): no button for the pointer, by the owner's choice. */
.pause.bg { bottom: auto; top: 16px; z-index: 5; height: 36px; padding: 0 14px; font-size: 13px; }

section { padding: 110px 0 0; }
.head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; }
.card { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--hair); background: var(--pane); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.say { padding: 40px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.say > * { position: relative; }
.points { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; color: var(--text); }
.points li { padding-left: 22px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); }
.show { min-height: 480px; display: grid; place-items: center; padding: 40px; }
.show > .ipad { position: relative; width: min(100%, 640px); }
.show > .iphone { position: relative; width: min(46%, 230px); }
.columns { background: linear-gradient(0deg, #4d4120, var(--ground) 75%); }
/* Under text the light stays low, so the words keep their contrast. */
.say canvas[data-gl] { -webkit-mask-image: linear-gradient(transparent 35%, #000 95%); mask-image: linear-gradient(transparent 35%, #000 95%); }
.say canvas[data-gl].on { opacity: .7; }
.blend { background: linear-gradient(135deg, #33483f, #543d35); }

/* The stage: iPad and iPhone lie on the stone; Vision Pro windows float over the hills. */
.stage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.stage .card { min-height: 620px; }
.stage .card > img.plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .card::after { content: ""; pointer-events: none; position: absolute; inset: 0 0 62%; background: linear-gradient(rgba(12,14,18,.85), rgba(12,14,18,0)); }
.stage .label { z-index: 1; position: absolute; left: 28px; top: 26px; right: 28px; display: flex; flex-direction: column; gap: 8px; }
.lay .ipad { position: absolute; left: 12%; top: 27%; width: 62%; transform: rotate(-3deg); box-shadow: 0 0 0 1px rgba(255,255,255,.12), -18px 30px 50px rgba(0,0,0,.65); }
/* Padding in % counts from the card's width, not the phone's: .8% of the card is 4% of a phone that is 20% wide. */
.lay .iphone { position: absolute; left: 70%; top: 40%; width: 20%; padding: .8%; transform: rotate(7deg); }
.room > img.plate { filter: blur(14px) brightness(.7); transform: scale(1.2); }
.room .space { position: absolute; inset: 120px 0 0; perspective: 900px; }
.vwin { position: absolute; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 30px 60px rgba(0,0,0,.55); animation: hover 9s ease-in-out infinite; }
.vwin > * { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.vwin.main { left: 14%; top: 12%; width: 72%; aspect-ratio: 3 / 2; z-index: 2; }
.vwin.left { left: -3%; top: 36%; width: 44%; aspect-ratio: 4 / 3; transform: rotateY(32deg); animation-delay: -3s; }
.vwin.right { right: -3%; top: 30%; width: 44%; aspect-ratio: 4 / 3; transform: rotateY(-32deg); animation-delay: -6s; }
.vwin.orb { left: 39%; top: 66%; width: 22%; aspect-ratio: 1; border-radius: 50%; z-index: 3; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.vwin.orb::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: conic-gradient(#d6b6f2, #f2a487, #e8894f, #b8983a, #5ad6a0, #d6b6f2); filter: blur(6px); animation: turn 6s linear infinite, blob 2.6s ease-in-out infinite alternate; }
@keyframes hover { 50% { translate: 0 -10px; } }
@keyframes turn { to { rotate: 1turn; } }
@keyframes blob { from { scale: .8; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; } to { scale: 1.25; border-radius: 56% 44% 42% 58% / 44% 58% 42% 56%; } }

.grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tab { display: flex; flex-direction: column; }
.tab .say { padding: 32px 32px 24px; gap: 12px; justify-content: flex-start; }
.tab p { margin: 0; color: var(--soft); }
.tab p.sub, .say p.sub { font-size: 15px; color: var(--soft); margin: 0; }
.tab img.shot { margin: auto 32px 0; width: calc(100% - 64px); border-radius: 14px 14px 0 0; border: 1px solid var(--hair); border-bottom: 0; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: s; padding: 28px; border-radius: 28px; border: 1px solid var(--hair); background: var(--pane); display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: "0" counter(s); font: 500 12px var(--mono); letter-spacing: .08em; color: var(--jade); }
.steps b { font: 400 26px/1.1 var(--serif); color: var(--petal); }
.steps span, .links span { color: var(--soft); font-size: 15px; }
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.links a { padding: 24px 28px; border-radius: 28px; border: 1px solid var(--hair); text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.links a:hover { border-color: var(--hair2); }
.links img { width: 24px; height: 24px; margin-bottom: 6px; }
.inv { filter: invert(1); }

.close { position: relative; overflow: hidden; margin-top: 110px; padding: 90px 0 0; min-height: 640px; text-align: center; }
.close > .plate { position: absolute; inset: auto 0 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.close::before { content: ""; position: absolute; z-index: 1; inset: 0 0 42%; background: linear-gradient(var(--ground), rgba(12,14,18,.82) 55%, rgba(12,14,18,0)); }
.close .in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.close h2 { font-size: clamp(48px, 6vw, 76px); }
.close p { margin: 0; font-size: 19px; }
.foot { padding: 28px 0 40px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; font-size: 14px; }
.foot span { color: var(--soft); }
.close .foot { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 24px; max-width: 1240px; margin-inline: auto; min-height: 64px; padding: 14px 28px; border-radius: 20px; background: rgba(12,14,18,.38); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--hair2); }
.close .foot span, .close .foot a { color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* Plain pages (privacy, herdr patch) */
.doc { padding: 40px 0 90px; max-width: 760px; }
.doc h1 { font-size: 52px; margin-bottom: 20px; }
.doc h2 { font-size: 30px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--soft); }
.doc code, .doc pre { font-family: var(--mono); font-size: 14px; background: var(--pane); border: 1px solid var(--hair); border-radius: 8px; }
.doc code { padding: 2px 6px; }
.doc pre { padding: 14px 16px; overflow-x: auto; }
.doc pre code { border: 0; padding: 0; background: none; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc td, .doc th { border-bottom: 1px solid var(--hair); padding: 10px 8px; text-align: left; vertical-align: top; }

@media (max-width: 900px) {
  .nav.over nav a:not(.btn) { display: none; }
  .hero { flex-direction: column; align-items: stretch; padding: 110px 0 0; min-height: 0; }
  .hero-text { order: 1; }
  .hero .shade { background: linear-gradient(rgba(12,14,18,.9) 40%, rgba(12,14,18,.2)); }
  .hero .stand { order: 2; z-index: 2; position: relative; left: auto; top: auto; width: min(92%, 560px); margin: 48px auto 120px; }
  .hero .fountain { left: 0; top: 40%; height: 60%; }
  .split, .split.flip, .stage, .grid4, .steps, .links { grid-template-columns: minmax(0, 1fr); }
  .split.flip .show { order: 2; }
  section { padding-top: 72px; }
  .say { padding: 28px; }
  .show { min-height: 0; padding: 28px; }
  .stage .card { min-height: 520px; }
  .close { min-height: 720px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vwin, .vwin.orb::after { animation: none; }
}
