/* mdobler.com — made with passion */

/* Inter (SIL Open Font License), embedded so every device shows the same type */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2");
}

:root {
  --bg: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "Instrument Serif", "New York", ui-serif, Georgia, serif;
  --header: 56px;
  --gutter: clamp(14px, 3.4vw, 44px);
  --max: 1360px;
  --card: clamp(26px, 3.4vw, 44px);          /* radius of the big cards */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --page-accent: #008af8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
/* The serif face is used in one way only: in its original form, with the letter
   spacing of the font itself, everywhere. Only its size changes. */
em, .stage .tag { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--page-accent); outline-offset: 4px; border-radius: 6px; }
::selection { background: #1d1d1f; color: #fff; }

.arrow { width: 0.95em; height: 0.95em; flex: none; transition: transform 0.3s var(--ease); }

/* Things that drift in when they scroll into view */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ top bar --- */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(var(--gutter), env(safe-area-inset-left));
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.top.scrolled {
  background: rgba(251, 251, 253, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
/* The name as one word, in lowercase: first name in the usual weight, surname thin */
.brand { display: inline-flex; align-items: baseline; font-size: 15px; letter-spacing: -0.01em; text-transform: lowercase; }
.brand b { font-weight: 600; }
.brand i { font-style: normal; font-weight: 300; }
.top nav { display: flex; align-items: center; gap: clamp(2px, 0.8vw, 10px); margin-right: -14px; }
.top nav a { padding: 6px 14px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.top nav a:hover { color: var(--text); }
/* The page you are on is shown as a capsule */
.top nav a.active { color: var(--text); border-color: rgba(0, 0, 0, 0.22); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --------------------------------------------------------- shared type --- */

.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(17px, 1.55vw, 22px); line-height: 1.5; color: var(--muted); max-width: 34em; text-wrap: balance; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn:hover { transform: scale(1.04); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 28%, transparent); }
.btn.dark { --accent: #1d1d1f; --accent-ink: #fff; }
.btn.blue { --accent: #0071e3; --accent-ink: #fff; }
.badge { display: inline-block; transition: transform 0.3s var(--ease); }
.badge:hover { transform: scale(1.04); }
.badge img { display: block; height: 50px; width: auto; }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* Size of the wordmark. The text block below is tied to it, so the wordmark
     always stays the widest thing on the opening screen, at any window width. */
  --wm: clamp(52px, 20vw, 156px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center;
  /* The same distance above and below the two buttons */
  --gap: clamp(72px, 10vw, 140px);
  padding: calc(var(--header) + clamp(36px, 8vh, 96px)) var(--gutter) 0;
}
.hero h1 {
  font-size: var(--wm);
  font-weight: 700; line-height: 0.84; letter-spacing: -0.05em;
}
/* The two lines are staggered: the first sits to the left, the second to the right */
.hero h1 span { display: block; position: relative; left: -0.353em; animation: rise 1.3s var(--ease) 0.2s both; }
.hero h1 em {
  display: block;
  position: relative; left: 0.125em;
  font-size: 1.2em; line-height: 0.92;
  padding: 0 0.12em 0.14em;
  color: #0071e3;
  animation: rise 1.4s var(--ease) 0.34s both;
}
/* A few personal words under the wordmark, in a quiet justified block.
   It sits optically centred between the wordmark and the buttons: the same --gap
   as below it, less the empty room the blue line carries under its baseline. */
.me { width: min(24em, calc(var(--wm) * 3.45)); max-width: 100%; margin-top: calc(var(--gap) - var(--wm) * 0.16); font-size: clamp(17px, 1.55vw, 22px); line-height: 2.34; color: var(--muted); animation: rise 1.4s var(--ease) 0.5s both; }
.me p { text-align: justify; -webkit-hyphens: manual; hyphens: manual; }
.me p + p { margin-top: 1.1em; }
/* The two doors: to the apps and to the games */
.doors { display: flex; justify-content: center; gap: 12px; margin-top: var(--gap); animation: rise 1.4s var(--ease) 0.62s both; }
/* Without the personal words the buttons follow the wordmark directly: the same --gap
   from its baseline as below the buttons, the blue line has no descenders to clear. */
.hero h1 + .doors { margin-top: calc(var(--gap) - var(--wm) * 0.31); }
.doors .btn { height: 52px; min-width: 150px; justify-content: center; padding: 0 28px; font-size: 16px; }

@keyframes rise { from { opacity: 0; transform: translateY(42px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }


/* ------------------------------------------------------ section openers --- */

.intro, .moments, .hello, .about, .more-games { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.intro { padding-top: clamp(88px, 12vw, 176px); padding-bottom: clamp(36px, 5vw, 64px); }
.intro h2, .moments h2, .hello h2 {
  margin-top: 16px;
  font-size: clamp(46px, 9vw, 136px);
  font-weight: 700; line-height: 0.9; letter-spacing: -0.05em;
}
.intro h2 em, .moments h2 em, .hello h2 em { font-size: 1.16em; }
.intro .lede { margin-top: clamp(20px, 2.6vw, 34px); }
.intro.small { padding-top: clamp(80px, 11vw, 150px); }
.intro.first { padding-top: clamp(40px, 6vw, 96px); }
.intro.label { padding-bottom: clamp(18px, 2vw, 28px); }
/* On the Apps and Games pages the cards start right under the top bar */
.stack.lead { padding-top: calc(var(--header) + 22px); }
.intro.small h2 { font-size: clamp(40px, 6.4vw, 92px); }

/* -------------------------------------------------------- game stages --- */

.stack { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.stage {
  --top: calc(var(--header) + 22px);
  position: sticky; top: var(--top);
  height: min(820px, calc(100svh - var(--top) - 18px)); min-height: 540px;
  margin-bottom: 30px;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border-radius: var(--card);
  background: var(--world); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 -22px 60px -30px rgba(0, 0, 0, 0.4);
  transform-origin: 50% 0;
  transform: translateY(calc(var(--cover, 0) * -14px)) scale(calc(1 - var(--cover, 0) * 0.045));
}
/* Only the stages on screen get their own layer; buried ones are not drawn at all */
.stage.live { will-change: transform; }
.stage.gone { visibility: hidden; }
.stage::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--cover, 0) * 0.4); pointer-events: none; z-index: 5; }
.stage.flip .stage-text { order: 2; }
.pill { display: inline-block; padding: 6px 13px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.stage-text { position: relative; z-index: 3; align-self: center; padding: clamp(26px, 5.2vw, 84px); }
.stage-meta { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(18px, 2.6vw, 34px); }
.app-icon { display: block; width: 66px; height: 66px; border-radius: 22.5%; box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.count { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.count i { font-style: normal; opacity: 0.5; }
.stage h3, .stage h1 { font-size: clamp(38px, 5.5vw, 88px); font-weight: 700; line-height: 0.94; letter-spacing: -0.045em; text-wrap: balance; }
.stage .tag { margin-top: clamp(10px, 1.4vw, 18px); font-size: clamp(24px, 2.7vw, 40px); line-height: 1.08; }
.stage .line { margin-top: clamp(12px, 1.6vw, 22px); max-width: 29em; font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.55; opacity: 0.74; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(22px, 2.8vw, 38px); }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(22px, 3vw, 40px); font-size: 14px; font-weight: 500; opacity: 0.7; transition: opacity 0.2s; }
.back .arrow { transform: rotate(180deg); }
.back:hover { opacity: 1; }
.back:hover .arrow { transform: rotate(180deg) translateX(3px); }

.honor { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(18px, 2.2vw, 30px); text-align: center; }
.honor .laurel { height: 58px; width: auto; flex: none; opacity: 0.85; }
.honor b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.honor span { display: block; margin-top: 3px; font-size: 12.5px; opacity: 0.72; }

/* Three screens: one in front, two behind, all three the same size. Depth comes from
   overlap, tilt and shadow, not from a smaller device. */
.stage-link { display: block; min-width: 0; min-height: 0; }
.stage-visual { position: relative; width: 100%; height: 100%; container-type: size; }
.shots { position: absolute; inset: 0; --h: min(80cqh, 86cqw); --w: calc(var(--h) * 0.5625); }
.shot { --sw: var(--w); position: absolute; left: 50%; top: 50%; width: var(--sw); margin: 0; }
.shot.tall { --sw: calc(var(--w) * 0.9); }
.shot img, .shot video { display: block; width: 100%; height: auto; background: #1c1c1f; }
.shot.main { z-index: 2; transform: translate(-50%, -50%) translateY(calc((1 - var(--p, 1)) * 16cqh)); }
.shot.a { transform: translate(-50%, -50%) translate(calc(var(--w) * -0.7), calc(3cqh + (1 - var(--p, 1)) * 34cqh)) rotate(calc(var(--p, 1) * -7deg)); }
.shot.b { transform: translate(-50%, -50%) translate(calc(var(--w) * 0.7), calc(3cqh + (1 - var(--p, 1)) * 46cqh)) rotate(calc(var(--p, 1) * 7deg)); }

.landscape .shots { --w: min(72cqw, 92cqh); }
.landscape .shot.a { transform: translate(-50%, -50%) translate(calc(var(--w) * -0.1), calc(var(--w) * -0.3 + (1 - var(--p, 1)) * 30cqh)) rotate(calc(var(--p, 1) * -5deg)); }
.landscape .shot.b { transform: translate(-50%, -50%) translate(calc(var(--w) * 0.1), calc(var(--w) * 0.3 + (1 - var(--p, 1)) * 44cqh)) rotate(calc(var(--p, 1) * 4deg)); }

/* Every screenshot sits in an iPhone drawn here in CSS (no Apple artwork): metal band,
   black front, side buttons. All measures hang on the width of the device (--sw).
   No Dynamic Island, on purpose: the screen stays free. */
.shot {
  --band: calc(var(--sw) * 0.014);
  --btn: calc(var(--sw) * 0.008);
  --metal: linear-gradient(125deg, #b9babd 0%, #55565a 18%, #8e8f93 42%, #303134 68%, #7c7d81 88%, #4a4b4f 100%);
  border: var(--band) solid transparent;
  box-shadow:
    inset 0 0 0 calc(var(--sw) * 0.004) #000,
    0 calc(var(--sw) * 0.14) calc(var(--sw) * 0.26) calc(var(--sw) * -0.1) rgba(0, 0, 0, 0.6);
}
/* Side buttons: action and volume on the left, power on the right */
.shot::after {
  content: ""; position: absolute; z-index: -1;
  top: 0; bottom: 0;
  left: calc(-1 * (var(--band) + var(--btn))); right: calc(-1 * (var(--band) + var(--btn)));
  background:
    linear-gradient(90deg, #77787c, #3c3d41) left 0 top 18.5% / var(--btn) 4.4% no-repeat,
    linear-gradient(90deg, #77787c, #3c3d41) left 0 top 27.5% / var(--btn) 7.6% no-repeat,
    linear-gradient(90deg, #77787c, #3c3d41) left 0 top 38% / var(--btn) 7.6% no-repeat,
    linear-gradient(270deg, #77787c, #3c3d41) right 0 top 33% / var(--btn) 11.5% no-repeat;
}

/* A current iPhone around every screenshot: thin even bezel, round screen corners.
   The old 16:9 screenshots ("classic") get the same modern phone, just shorter, so the
   device always fits its screen and nothing is squeezed. */
.shot.tall, .shot.classic {
  --bezel: calc(var(--sw) * 0.022);
  --screen-r: calc(var(--sw) * 0.125);
  padding: var(--bezel);
  border-radius: calc(var(--screen-r) + var(--bezel) + var(--band));
  background: linear-gradient(#040405, #040405) padding-box, var(--metal) border-box;
}
.shot.classic { --sw: calc(var(--w) * 0.9); --screen-r: calc(var(--sw) * 0.11); }
.shot.tall img, .shot.tall video, .shot.classic img { border-radius: var(--screen-r); }
/* The same phone turned on its side; here --sw is the long edge */
.landscape .shot.classic {
  --sw: var(--w);
  --band: calc(var(--sw) * 0.008);
  --bezel: calc(var(--sw) * 0.012);
  --screen-r: calc(var(--sw) * 0.06);
}
.landscape .shot::after { display: none; }

/* The stage at the top of a game page */
.stack.solo { padding-top: calc(var(--header) + 14px); }
.stack.solo .stage { position: relative; top: auto; margin-bottom: 0; height: min(880px, calc(100svh - var(--header) - 32px)); }

/* ------------------------------------------------------------- moments --- */

.moments { padding-top: clamp(96px, 15vw, 220px); text-align: center; }
/* On the home page the headline keeps the same distance to the buttons as the capsule does */
.home .moments { padding-top: calc(clamp(72px, 10vw, 140px) - 16px); }
/* The headline stays on one line; its size follows the window so it always fits */
.moments h2 { white-space: nowrap; font-size: clamp(25px, 8.64vw, 108px); }
/* Four in a row on wide windows, two by two on medium ones, one below the other on
   phones. A row that is not full always sits in the middle. */
.moments ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; row-gap: clamp(28px, 4vw, 56px); margin-top: clamp(44px, 6vw, 88px); }
.moments li { flex: 0 0 25%; display: flex; justify-content: center; padding: 0 10px; }
@media (max-width: 1199px) { .moments li { flex-basis: 50%; } }
@media (max-width: 639px) { .moments li { flex-basis: 100%; } }
.moments .honor { margin-top: 0; gap: 12px; }
.moments .honor .laurel { height: 92px; color: #b9b9be; opacity: 1; }
.moments .honor b { font-size: 19px; }
.moments .honor span { font-size: 14px; color: var(--muted); opacity: 1; }
.moments .honor a { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.moments .honor a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- hello --- */

.hello { padding-top: clamp(110px, 17vw, 240px); padding-bottom: clamp(96px, 13vw, 190px); text-align: center; }
.hello h2 { font-size: clamp(41px, 8.1vw, 122px); }
.hello p { margin: clamp(18px, 2.4vw, 30px) auto 0; font-size: clamp(17px, 1.55vw, 22px); color: var(--muted); }
.hello .btn { margin-top: clamp(26px, 3vw, 40px); height: 54px; padding: 0 30px; font-size: 16px; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  max-width: var(--max); margin: 0 auto;
  padding: 30px var(--gutter) calc(34px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.foot .brand { color: var(--text); }
.foot nav { display: flex; gap: 24px; }
.foot nav a:hover { color: var(--text); }

/* ----------------------------------------------------------- game page --- */

.strip {
  display: flex; gap: clamp(14px, 1.8vw, 26px);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 10px max(var(--gutter), calc(50vw - var(--max) / 2 + var(--gutter))) 70px;
}
.strip::-webkit-scrollbar { display: none; }
.strip img {
  flex: none; display: block; width: auto; height: clamp(400px, 62vh, 620px);
  border-radius: clamp(22px, 2.4vw, 34px);
  scroll-snap-align: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 34px 60px -30px rgba(0, 0, 0, 0.45);
}
.strip.landscape img { height: clamp(190px, 36vw, 440px); border-radius: clamp(12px, 1.6vw, 22px); }

.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 7vw, 110px); }
.about h2 { margin: 14px 0 clamp(22px, 3vw, 38px); font-size: clamp(40px, 6.4vw, 92px); line-height: 0.96; color: var(--page-accent); text-wrap: balance; }
.about-text > p:not(.kicker) { max-width: 34em; margin-top: 1.1em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: #424245; }
.about-card { padding: clamp(24px, 3vw, 38px); border-radius: clamp(22px, 2.6vw, 32px); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0, 0, 0, 0.25); }
.about-card ul { list-style: none; }
.about-card li { position: relative; padding: 9px 0 9px 28px; font-size: 16px; line-height: 1.4; }
.about-card li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 6px; border-left: 2.2px solid var(--page-accent); border-bottom: 2.2px solid var(--page-accent); transform: rotate(-45deg); }
.about-card dl { margin: 18px 0 24px; border-top: 1px solid var(--line); }
.about-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.about-card dt { color: var(--muted); }
.about-card dd { text-align: right; font-weight: 500; }

/* Imprint */
.legal {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start;
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--header) + clamp(48px, 9vw, 130px)) var(--gutter) 0;
}
.legal h1 { margin-top: 16px; font-size: clamp(54px, 9vw, 136px); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; }
.legal .lede { margin-top: clamp(20px, 2.6vw, 34px); }
.legal .back { margin: clamp(26px, 3vw, 40px) 0 0; font-size: 15px; }
.legal-card dl { margin: 0; border-top: 0; }
.legal-card dl div { padding: 16px 0; font-size: 16px; }
.legal-card dl div:last-child { border-bottom: 0; }
.legal-card dd { line-height: 1.45; }
.legal-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { margin-top: 18px; font-size: 14px; color: var(--muted); }
.prose section { padding: clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line); }
.prose section:first-child { padding-top: 4px; }
.prose section:last-child { padding-bottom: 4px; border-bottom: 0; }
.prose h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.prose p, .prose li { font-size: 16px; line-height: 1.6; color: #424245; }
.prose p { margin-top: 10px; }
.prose ul { margin: 10px 0 0; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(0, 0, 0, 0.25); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
@media (min-width: 901px) {
  .legal-text { position: sticky; top: calc(var(--header) + 40px); }
}

.more-games { padding-top: clamp(96px, 13vw, 190px); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.8vw, 24px); margin-top: 22px; }
.tile {
  display: flex; align-items: center; gap: 18px;
  padding: clamp(20px, 3vw, 40px);
  border-radius: clamp(22px, 2.8vw, 36px);
  background: var(--world); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.js .tile[data-reveal].in { transition: opacity 1s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s; }
.tile:hover { transform: translateY(-5px) !important; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 30px 50px -28px rgba(0, 0, 0, 0.5); }
.tile span { flex: 1; min-width: 0; }
.tile small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.tile b { display: block; margin-top: 4px; font-size: clamp(20px, 2.6vw, 38px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.tile .arrow { width: 22px; height: 22px; }
.tile:hover .arrow { transform: translateX(5px); }

/* --------------------------------------------------------------- small --- */

@media (max-width: 900px) {
  .stage { --top: calc(var(--header) + 14px); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: min(760px, calc(100svh - var(--top) - 14px)); min-height: 0; margin-bottom: 22px; }
  .stack.lead { padding-top: calc(var(--header) + 14px); }
  .top nav { margin-right: -9px; }
  .top nav a { padding: 5px 9px; font-size: 13px; }
  .stage.flip .stage-text { order: 0; }
  .stage-text { align-self: start; padding: 24px 22px 18px; }
  .stage-meta { margin-bottom: 16px; }
  .app-icon { width: 52px; height: 52px; }
  .stage .line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .honor .laurel { height: 46px; }
  .actions { margin-top: 18px; gap: 9px; }
  .btn { height: 44px; padding: 0 20px; }

  /* Screens hang from the top edge and run out of the card at the bottom */
  .shots { --w: 44cqw; }
  .shot { top: 10px; }
  .shot.main { transform: translate(-50%, 0) translateY(calc((1 - var(--p, 1)) * 60px)); }
  .shot.tall { --sw: var(--w); }
  .shot.classic { --sw: var(--w); }
  .landscape .shot.classic { --sw: var(--w); }
  .shot.a { transform: translate(-50%, 0) translate(calc(var(--w) * -0.86), calc(9cqw + (1 - var(--p, 1)) * 110px)) rotate(calc(var(--p, 1) * -6deg)); }
  .shot.b { transform: translate(-50%, 0) translate(calc(var(--w) * 0.86), calc(9cqw + (1 - var(--p, 1)) * 150px)) rotate(calc(var(--p, 1) * 6deg)); }
  .landscape .shots { --w: 88cqw; }
  .landscape .shot.a { display: none; }
  .landscape .shot.b { transform: translate(-50%, 0) translate(5cqw, calc(var(--w) * 0.5 + (1 - var(--p, 1)) * 120px)) rotate(calc(var(--p, 1) * 3deg)); }

  .stack.solo .stage { height: auto; min-height: calc(100svh - var(--header) - 28px); grid-template-rows: auto minmax(300px, 1fr); }
  .stack.solo .stage-text { padding-top: 22px; }
  .stack.solo .stage .line { display: block; }

  .about, .legal { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .moments .honor .laurel { height: 76px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

/* Short screens: let the stages scroll freely instead of stacking */
@media (max-height: 560px) {
  .stage { position: relative; top: auto; height: auto; min-height: 480px; transform: none; }
  .stage::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Very narrow phones: the contact link stays in the footer only */
@media (max-width: 359px) {
  .top .nav-contact { display: none; }
}
