/* croon.tv (#693, 2026-09-24): one screen.
   The Midjourney still (K, audio equipment) sits full width and is never enlarged
   or cropped; a dark veil over it keeps the headline readable. Beside the headline
   the launch video plays and, when it ends, the card turns over to the on-device
   recording, then back again. Orange is only for the words that turn in the
   headline. Mock and its history: docs/design/20260923-i693-croontv-hero.md. */

@font-face {
  /* Shippori Mincho B1 SemiBold (OFL), subset to the headline's turning words
     (#693). Kanji the face does not carry fall back to Hiragino Mincho. */
  font-family: "Shippori Mincho CROON";
  src: url("/assets/shippori-mincho-b1-semibold.woff2?v=20260924-i693") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  /* Spectral SemiBold (OFL), the wordmark's face and the English headline's. */
  font-family: "Spectral CROON";
  src: url("/assets/spectral-semibold.woff2?v=20260924-i693") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ground: #0B0A09;
  --text: #F6F3EF;
  --muted: #A9A19A;
  --soft: #7F7871;
  --brand: #FF9900;
  --side: clamp(20px, 5.5vw, 88px);
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --min: "Shippori Mincho CROON", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --spec: "Spectral CROON", Georgia, serif;
  /* The row below the header: the text column, the gap, and the video's width. */
  --row: min(100% - 2 * var(--side), 600px + clamp(40px, 7vw, 110px) + min(78svh, 680px) * 9 / 16);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sf); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; border-radius: 26px; border: 0; cursor: pointer;
  font: 600 17px/1 var(--sf); text-decoration: none; white-space: nowrap;
}
.btn.solid { background: var(--text); color: #0B0A09; }
.btn.ghost {
  background: rgba(255, 255, 255, .06); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn:focus-visible, .snd:focus-visible, .xlink:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---- the page ---- */
.hero { position: relative; min-height: max(640px, 100svh); overflow: hidden; isolation: isolate; }

/* The still, whole: full width at its own ratio, centred on the screen's height. */
.art {
  position: absolute; z-index: 0; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  aspect-ratio: 1456 / 816; pointer-events: none;
  background: url("/assets/hero-k.jpg?v=20260924-i693") center / 100% 100% no-repeat;
}
.art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,10,9,.88) 0%, rgba(11,10,9,.62) 32%, rgba(11,10,9,.2) 58%, rgba(11,10,9,.3) 78%, rgba(11,10,9,.8) 100%),
    linear-gradient(180deg, rgba(11,10,9,.5) 0%, rgba(11,10,9,0) 18%, rgba(11,10,9,0) 70%, rgba(11,10,9,1) 100%);
}
.grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

.top {
  position: absolute; z-index: 4; left: 0; right: 0; top: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) var(--side) 0;
  display: flex; align-items: center; justify-content: space-between;
}
.top .croon-horizontal-lockup { --word-size: 34px; color: #fff; }
.top .btn { height: 40px; padding: 0 18px; font-size: 14.5px; }
.top-r { display: flex; align-items: center; gap: 10px; }
.xlink {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff;
  background: rgba(11, 10, 9, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.xlink:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.xlink svg { width: 17px; height: 17px; fill: currentColor; }
@media (min-width: 761px) {
  .top { left: 50%; right: auto; transform: translateX(-50%); padding-inline: 0; width: var(--row); }
}
.head, .top .croon-horizontal-lockup { filter: drop-shadow(0 2px 14px rgba(0,0,0,.85)) drop-shadow(0 0 2px rgba(0,0,0,.6)); }

.hero-grid {
  position: relative; z-index: 3; max-width: 1320px; margin: 0 auto; min-height: max(640px, 100svh);
  padding: calc(env(safe-area-inset-top, 0px) + 110px) var(--side) 64px;
  display: grid; grid-template-columns: minmax(0, 600px) auto; justify-content: center;
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

/* The headline: three places turn — the language heard, the kind of audio, the language you hear it in. */
.head { margin: 0; font-family: var(--min); font-weight: 600; font-size: clamp(40px, 3vw + 14px, 64px); line-height: 1.3; letter-spacing: -.02em; color: #fff; }
:lang(en) .head { font-family: var(--spec); letter-spacing: -.012em; line-height: 1.18; }
.head .line { display: block; white-space: nowrap; }
.slot {
  display: inline-block; position: relative; vertical-align: bottom; white-space: nowrap; color: var(--brand); height: 1.3em;
  transition: width .32s cubic-bezier(.22, 1, .36, 1) .18s;
}
:lang(en) .slot { height: 1.18em; }
.slot > span { position: absolute; left: 0; top: 0; white-space: nowrap; }

/* The four, small under the headline: a moving mark and the words. */
.feats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 34px; }
.feats li {
  display: flex; align-items: center; gap: 11px; white-space: nowrap;
  font-size: 15.5px; font-weight: 600; color: rgba(246, 243, 239, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
}
.ic { position: relative; flex: none; width: 26px; height: 26px; color: rgba(255, 255, 255, .9); }
.ic svg { display: block; width: 26px; height: 26px; overflow: visible; }
.ic .faint { opacity: .32; }
.ic-wave path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 4; animation: flow 1.6s linear infinite; }
.ic-wave path.faint { animation-duration: 2.2s; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.ic-apps rect { fill: none; stroke: currentColor; stroke-width: 1.3; opacity: .28; animation: app 3.6s ease-in-out infinite; }
.ic-apps rect:nth-child(2) { animation-delay: 1.2s; }
.ic-apps rect:nth-child(3) { animation-delay: 2.4s; }
@keyframes app { 0%, 100% { opacity: .28; } 15%, 33% { opacity: 1; } }
.ic-lang circle { fill: none; stroke: currentColor; stroke-width: 1.3; opacity: .35; }
.ic-lang .glyph { position: absolute; inset: 0; display: grid; place-items: center; font: 600 12.5px/1 var(--min); font-style: normal; color: #fff; }
.ic-voice circle { fill: none; stroke: currentColor; stroke-width: 1.3; }
.ic-voice .ring { transform-origin: 22px 22px; animation: ring 2.6s ease-out infinite; opacity: 0; }
.ic-voice .ring.r2 { animation-delay: 1.3s; }
@keyframes ring { 0% { transform: scale(.55); opacity: .7; } 100% { transform: scale(1.15); opacity: 0; } }

.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* The video: the launch film on the front, the on-device recording on the back. */
.stage { --sh: min(78svh, 680px); position: relative; height: var(--sh); aspect-ratio: 9 / 16; max-width: 100%; perspective: 1800px; }
.flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.65, 0, .35, 1); }
.stage.back .flip { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.face-b { transform: rotateY(180deg); display: grid; place-items: center; }

.screen {
  position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 120px rgba(0, 0, 0, .7);
}
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The phone is the same titanium frame as the launch film's. */
.phone {
  --h: var(--sh); --w: calc(var(--h) / 2.17); position: relative; height: var(--h); width: var(--w); max-width: 100%;
  border-radius: calc(var(--w) * .155);
  background: linear-gradient(145deg, #f6f4f2 0%, #8f8b86 7%, #dedbd7 15%, #6b6763 27%, #cdcac6 40%, #83807b 52%, #e9e6e2 66%, #76726e 80%, #c6c3bf 92%, #8d8a85 100%);
  box-shadow: 0 2px 2px rgba(255, 255, 255, .10), 0 50px 110px rgba(0, 0, 0, .75);
}
.phone::before { content: ""; position: absolute; inset: calc(var(--w) * .009); border-radius: calc(var(--w) * .146); background: #08080a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -1px 1px rgba(255, 255, 255, .22); }
.phone .glass { position: absolute; inset: calc(var(--w) * .02); border-radius: calc(var(--w) * .135); overflow: hidden; background: #000; }
.phone .glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 72%, rgba(255,255,255,.025) 100%); }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; z-index: 2; top: calc(var(--w) * .046); left: 50%; transform: translateX(-50%); width: calc(var(--w) * .30); height: calc(var(--w) * .085); border-radius: calc(var(--w) * .05); background: #000; }
.phone .nub { position: absolute; width: calc(var(--w) * .011); border-radius: calc(var(--w) * .0055); background: linear-gradient(180deg, #d9d6d2, #8d8a85 55%, #b6b3af); }
.phone .n1 { left: calc(var(--w) * -.0055); top: 20.5%; height: 4.3%; }
.phone .n2 { left: calc(var(--w) * -.0055); top: 27.2%; height: 8.2%; }
.phone .n3 { left: calc(var(--w) * -.0055); top: 37.2%; height: 8.2%; }
.phone .n4 { right: calc(var(--w) * -.0055); top: 30%; height: 11.8%; }

.snd {
  position: absolute; z-index: 3; right: 12px; bottom: 12px; height: 36px; padding: 0 14px; border-radius: 18px; border: 0; cursor: pointer;
  background: rgba(20, 18, 17, .78); color: #fff; font: 600 13px/1 var(--sf); display: inline-flex; align-items: center; gap: 7px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.phone .snd { right: calc(var(--w) * .06); bottom: calc(var(--w) * .06); }
.snd svg { width: 15px; height: 15px; fill: currentColor; }

.legal {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: flex; justify-content: center; gap: 22px; font-size: 12.5px;
}
.legal a { color: var(--soft); text-decoration: none; }
.legal a:hover { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .copy > * { animation: rise .6s cubic-bezier(.22, 1, .36, 1) both; }
  .copy > :nth-child(2) { animation-delay: .1s; }
  .copy > :nth-child(3) { animation-delay: .16s; }
  .stage { animation: rise .8s .12s cubic-bezier(.22, 1, .36, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media (prefers-reduced-motion: reduce) {
  .flip { transition: none; }
  .ic * { animation: none !important; }
  .ic-voice .ring { opacity: .3; }
}

/* Phone width: the still across the top, the words under it (never on it), then the video. */
@media (max-width: 760px) {
  .art { top: calc(env(safe-area-inset-top, 0px) + 70px); transform: none; }
  .art::after { background: linear-gradient(180deg, rgba(11,10,9,.6) 0%, rgba(11,10,9,.3) 20%, rgba(11,10,9,.55) 48%, rgba(11,10,9,.95) 64%, rgba(11,10,9,1) 100%); }
  .top { padding-top: calc(env(safe-area-inset-top, 0px) + 18px); }
  .top .croon-horizontal-lockup { --word-size: 26px; }
  .top .btn { height: 36px; padding: 0 14px; font-size: 13.5px; }
  .xlink { width: 36px; height: 36px; }
  .xlink svg { width: 15px; height: 15px; }
  .hero-grid {
    grid-template-columns: 1fr; gap: 28px; align-content: start;
    padding: calc(env(safe-area-inset-top, 0px) + 70px + 100vw * 816 / 1456 + 22px) 20px 48px;
  }
  .head { font-size: clamp(28px, 8.4vw, 36px); }
  .feats { margin-top: 22px; gap: 12px 22px; }
  .feats li { font-size: 14px; gap: 9px; }
  .ic, .ic svg { width: 22px; height: 22px; }
  .acts { margin-top: 26px; width: 100%; }
  .acts .btn { flex: 1 1 auto; }
  .stage { justify-self: center; --sh: min(60svh, 520px); }
  .screen { border-radius: 18px; }
  .legal { position: relative; bottom: auto; padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 28px); }
}
