/* The TitanKeys launch page. The privacy page keeps style.css. Inter is served from this site, not a font service. */
@font-face { font-family: Inter; src: url(assets/Inter-Medium.otf) format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/Inter-Bold.otf) format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --orange: #EF804E;
  --ink: #160A04;
  --cream: #FFF1E6;
  --muted: #A2958C;
  --black: #000;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--black); color: var(--cream); font: 500 18px/1.55 Inter, system-ui, sans-serif; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* The trailer's way of picking out a word: a solid box, the letters in the page's ink. */
.box { background: var(--orange); color: var(--black); padding: 0 .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.box.dark { background: var(--black); color: var(--cream); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 20px; padding-bottom: 20px; position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 22px; }
.mark svg { height: 22px; width: auto; }
.mark .tk { fill: var(--ink); }
.mark .slash { fill: var(--cream); }
.mark b { font-weight: 500; }
.mark span { color: var(--ink); }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
.top nav a:hover { text-decoration: underline; }

/* The hero: the store graphic's orange gradient behind the header and the first screen. */
.hero { padding: 110px 0 64px; color: var(--ink);
  background: radial-gradient(circle at 18% 10%, rgba(255, 227, 207, .55), transparent 55%), linear-gradient(160deg, #F8A273 0%, #EF804E 50%, #D9602C 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.kicker { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin: 0 0 12px; }
h1 { font-weight: 700; font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; }
h1 .box { background: var(--black); color: var(--cream); }
.lead { font-size: 20px; max-width: 32em; margin: 0 0 28px; }
.hero-shot { width: 100%; height: auto; background: #111; border-radius: 18px; box-shadow: 0 30px 60px rgba(60, 20, 0, .35); justify-self: end; max-width: 440px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.button { display: inline-block; background: var(--black); color: var(--cream); text-decoration: none; font-weight: 700; padding: 14px 26px; border-radius: 999px; transition: transform .15s; }
.button:hover { transform: translateY(-2px); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button.dark { background: var(--black); color: var(--cream); }
.button.ghost.dark { background: transparent; color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }

.trailer { padding-top: 72px; padding-bottom: 24px; }
.trailer video { margin: 0 auto; border-radius: 18px; max-height: 80vh; width: auto; background: #111; }

.features { padding-top: 48px; padding-bottom: 48px; }
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding: 40px 0; }
.feature:nth-child(even) img { order: 2; }
.feature img { border-radius: 18px; max-width: 460px; width: 100%; }
.feature:nth-child(even) img { justify-self: end; }
h2 { font-weight: 700; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; }
.feature p { color: var(--muted); font-size: 19px; max-width: 30em; margin: 0; }

.cta { color: var(--ink); padding: 80px 0;
  background: linear-gradient(160deg, #F8A273 0%, #EF804E 50%, #D9602C 100%); }
.cta p { font-size: 19px; max-width: 34em; margin: 0 0 28px; }
.cta-shot { display: none; }

footer { padding-top: 32px; padding-bottom: 48px; color: var(--muted); font-size: 15px; }
footer .fine { font-size: 13px; }

@media (max-width: 760px) {
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) img { order: 0; justify-self: start; }
  .hero-shot { justify-self: start; }
  .top nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }

/* Grid items may shrink below their pictures' size, so text never runs off a phone's screen. */
.hero-grid > *, .feature > * { min-width: 0; }
@media (max-width: 480px) { .top { flex-wrap: wrap; } .hero { padding-top: 130px; } .top nav a { font-size: 15px; } .lead { font-size: 18px; } }

/* The Titan 2 Elite's square screen: about 690 CSS px wide and nearly as tall in a browser. The phone layout's stacked pictures
   took a whole screen each, so here the picture sits beside its words again, sized to the screen's height, and every section
   fits on one screen. */
@media (min-width: 480px) and (max-width: 860px) and (min-aspect-ratio: 3/4) {
  .top { flex-wrap: nowrap; }
  .hero { padding: 84px 0 40px; }
  .hero-grid, .feature { grid-template-columns: 1fr 1fr; gap: 24px; }
  .feature:nth-child(even) img { order: 2; justify-self: end; }
  h1 { font-size: 46px; margin-bottom: 14px; }
  .lead { font-size: 16px; margin-bottom: 20px; }
  .button { padding: 11px 20px; font-size: 15px; }
  .hero-shot, .feature img { max-height: 72vh; width: auto; max-width: 100%; justify-self: center; }
  .trailer { padding-top: 40px; }
  .trailer video { max-height: 86vh; }
  .features { padding-top: 16px; padding-bottom: 16px; }
  .feature { padding: 24px 0; min-height: 88vh; }
  h2 { font-size: 32px; margin-bottom: 12px; }
  .feature p, .cta p { font-size: 16px; }
  .cta { padding: 48px 0; }
}

/* Motion. Everything is visible without it: the reveals only run where the browser supports them and nobody asked for less
   motion. */
@media (prefers-reduced-motion: no-preference) {
  /* The hero comes up line by line, then the trailer slides in. */
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes slide-in { from { opacity: 0; transform: translateX(40px) rotate(2deg) scale(.96); } to { opacity: 1; transform: none; } }
  .hero .kicker, .hero h1, .hero .lead, .hero .actions { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 { animation-delay: .08s; }
  .hero .lead { animation-delay: .2s; }
  .hero .actions { animation-delay: .32s; }
  .hero .hero-shot { animation: slide-in .9s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .top { animation: rise .6s both; }

  /* The trailer's box sweeps in behind its word, as the boxes do in the trailer. */
  @keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
  .box { background: linear-gradient(var(--orange), var(--orange)) no-repeat left / 100% 100%; }
  .box.dark, h1 .box { background-image: linear-gradient(var(--black), var(--black)); }
  .hero h1 .box { animation: sweep .6s .55s cubic-bezier(.6, 0, .2, 1) both; }

  /* The hero's light drifts slowly. */
  @keyframes drift { 0%, 100% { background-position: 0% 0%, 0 0; } 50% { background-position: 30% 20%, 0 0; } }
  .hero { background-size: 160% 160%, 100% 100%; animation: drift 14s ease-in-out infinite; }

  /* Buttons lift, pictures tilt toward you a little. */
  .button { transition: transform .2s, box-shadow .2s; }
  .button:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
  /* Only with a mouse: on a touch screen a tap left the picture tilted, off its frame. */
  @media (hover: hover) {
    .feature img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
    .feature img:hover { transform: perspective(900px) rotateY(-4deg) rotateX(2deg) scale(1.02); }
    .feature:nth-child(even) img:hover { transform: perspective(900px) rotateY(4deg) rotateX(2deg) scale(1.02); }
  }

  /* Each feature rises in once as it comes into view (the script adds .in), its box sweeping in after. */
  .reveal img, .reveal h2, .reveal p, .reveal .actions { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .reveal h2 { transition-delay: .08s; } .reveal p { transition-delay: .16s; } .reveal .actions { transition-delay: .24s; }
  .reveal.in img, .reveal.in h2, .reveal.in p, .reveal.in .actions { opacity: 1; transform: none; }
  .reveal h2 .box { background-size: 0% 100%; transition: background-size .6s .35s cubic-bezier(.6, 0, .2, 1); }
  .reveal.in h2 .box { background-size: 100% 100%; }
}

/* The trailer as a button: tap for full screen. */
.hero-media { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; justify-self: end; max-width: 440px; width: 100%; color: inherit; font: inherit; }
.hero-media .hero-shot { max-width: 100%; }
.tap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, .72); color: var(--cream); font-weight: 700; font-size: 15px; padding: 9px 16px 9px 12px; border-radius: 999px;
  backdrop-filter: blur(6px); white-space: nowrap; }
.tap svg { width: 18px; height: 18px; fill: var(--orange); }
.hero-media:hover .tap, .hero-media:focus-visible .tap { background: var(--black); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 128, 78, .55); } 60% { box-shadow: 0 0 0 12px rgba(239, 128, 78, 0); } }
  .tap { animation: pulse 2.4s 1.4s ease-out infinite; }
  .hero .hero-media { animation: slide-in .9s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .hero-shot { animation: none; }
}

/* The Titan 2 Elite in Chrome: about 690 px wide and 680 tall, nearly square. Every part fills exactly one screen, picture beside
   words, sized to the screen's height so nothing is cut (no snapping: owner, 2026-11-21). svh is the height with the browser's
   bars showing, so a part never hides under them. */
@media (min-width: 480px) and (max-width: 860px) and (min-aspect-ratio: 3/4) {
  .hero, .feature, .cta { min-height: 100svh; display: grid; align-content: center; }
  .hero { padding: 64px 0 20px; }
  .hero-media { max-width: none; justify-self: center; width: auto; }
  .hero-media .hero-shot { max-height: calc(100svh - 104px); width: auto; }
  .features { padding: 0 16px; }
  .feature { padding: 16px 0; min-height: 100svh; grid-template-columns: auto 1fr; }
  .feature:nth-child(even) { grid-template-columns: 1fr auto; }
  .feature img { height: min(62svh, 420px); width: auto; max-width: none; max-height: none; }
  .cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
  .cta-shot { display: block; height: min(70svh, 480px); width: auto; border-radius: 18px; box-shadow: 0 24px 50px rgba(60, 20, 0, .35); }
  .cta { padding: 24px 0; }
  .cta h2 { font-size: 34px; }
  footer { padding-top: 20px; padding-bottom: 24px; }
}

/* A Titan 2 Elite: the real bar, pinned to the screen's bottom edge over the keys (see the script in index.html). Its height is
   88 of the screen's 1076 pixels across, so the parts leave that much room under them. */
.phone-bar { display: none; }
.t2e .phone-bar { display: block; position: fixed; left: 0; bottom: 0; width: 100vw; height: calc(100vw * 280 / 1076); z-index: 20; pointer-events: none; overflow: hidden; }
.bar-layer { position: absolute; left: 0; bottom: 0; width: 100vw; opacity: 0; transition: opacity .4s ease; }
.bar-layer.on { opacity: 1; }
.bar-layer svg { display: block; width: 100vw; height: auto; overflow: hidden; }
.t2e body { padding-bottom: calc(100vw * 88 / 1076); }
@media (min-width: 480px) and (max-width: 860px) and (min-aspect-ratio: 3/4) {
  .t2e .hero, .t2e .feature, .t2e .cta { min-height: calc(100svh - 100vw * 88 / 1076); }
  .t2e .feature img { height: min(calc(62svh - 40px), 400px); }
  .t2e .hero-media .hero-shot { max-height: calc(100svh - 104px - 100vw * 88 / 1076); }
}

/* The square screen at any zoom: type and gaps follow the screen's width, so 120% text scaling (574 px across) gets the same
   layout as 100% (689 px), only bigger. */
@media (min-width: 480px) and (max-width: 860px) and (min-aspect-ratio: 3/4) {
  .wrap, .features { padding-left: 3vw; padding-right: 3vw; }
  .top { padding-top: 2.5vw; padding-bottom: 2.5vw; }
  .mark { font-size: 3.4vw; }
  .mark svg { height: 3.4vw; }
  .top nav a { font-size: 2.6vw; }
  .top nav { gap: 3vw; }
  .hero { padding: 11vw 0 3vw; }
  .hero-grid, .feature, .cta .wrap { gap: 3.5vw; }
  .kicker { font-size: 2.1vw; margin-bottom: 1.6vw; }
  h1 { font-size: 6.6vw; margin-bottom: 2vw; }
  .lead { font-size: 2.6vw; margin-bottom: 3vw; }
  .button { font-size: 2.3vw; padding: 1.7vw 3.2vw; }
  .actions { gap: 1.8vw; }
  h2, .cta h2 { font-size: 4.8vw; margin-bottom: 1.8vw; }
  .feature p, .cta p { font-size: 2.6vw; margin-bottom: 0; }
  .cta p { margin-bottom: 3vw; }
  .tap { font-size: 2.2vw; bottom: 2.5vw; padding: 1.3vw 2.4vw 1.3vw 1.8vw; }
  .tap svg { width: 2.6vw; height: 2.6vw; }
  .feature { padding: 2vw 0; }
  .feature img { height: min(calc(100svh - 18vw), 62vw); }
  .t2e .feature img { height: min(calc(100svh - 18vw - 100vw * 88 / 1076), 62vw); }
  .hero-media .hero-shot { max-height: calc(100svh - 16vw); }
  .t2e .hero-media .hero-shot { max-height: calc(100svh - 16vw - 100vw * 88 / 1076); }
  .cta-shot { height: min(calc(100svh - 14vw), 66vw); }
  .t2e .cta-shot { height: min(calc(100svh - 14vw - 100vw * 88 / 1076), 66vw); }
  footer { font-size: 2.2vw; }
  footer .fine { font-size: 1.9vw; }
}

/* A box stays inside its own line: drawn as tall as the font's full height, it covered the line above where headings sit tight
   ("right" under "keys", owner 2026-11-21). */
.box { display: inline-block; line-height: 1.04; padding: 0 .14em; }
h1, h2 { line-height: 1.1; }

/* The chip asking for the tap that lets the page vibrate, just above the bar. */
.haptic-chip { position: fixed; left: 50%; bottom: calc(100vw * 88 / 1076 + 2.5vw); transform: translateX(-50%); z-index: 21;
  border: 0; border-radius: 999px; background: rgba(0, 0, 0, .8); color: var(--cream); font: 700 2.4vw/1 Inter, system-ui, sans-serif;
  padding: 1.6vw 3vw; box-shadow: 0 0 0 1.5px var(--orange); transition: opacity .35s, transform .35s; }
.haptic-chip.gone { opacity: 0; transform: translate(-50%, 8px); }
