@font-face { font-family: Outfit; src: url(/assets/Outfit.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
/* Know Thyself's own typeface, only for its name on its card */
@font-face { font-family: Cormorant; src: url(/assets/Cormorant-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Cormorant; src: url(/assets/Cormorant-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #000005;            /* the logo animation's own black */
  --bg2: #06070f;
  --panel: #0b0e18;
  --line: #1a2030;
  --ice: #e8f0f2;           /* the mark's white */
  --muted: #9aa6b2;
  --ember: #e2456d;         /* the glow in the mark's flame */
  --ember-hi: #f0698c;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ice); font: 350 18px/1.65 Outfit, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ice); }
a:focus-visible, .btn:focus-visible, .card:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ice); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow { color: var(--ember-hi); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin: 0 0 14px; }
h2 { font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 22px; text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.2rem; margin: 0 0 10px; }

/* the top bar */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.brand img { width: 28px; height: auto; opacity: .85; transition: opacity .2s; }
.brand:hover img { opacity: 1; }
.top nav { display: flex; gap: 26px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: .95rem; letter-spacing: .02em; transition: color .2s; }
.top nav a:hover { color: var(--ice); }

/* the hero: the logo animation, then the line under it */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 20px 70px; overflow: hidden; isolation: isolate; }
.hero-logo { position: relative; width: min(1100px, 100%); }
.hero-logo::before { content: ""; position: absolute; left: 6%; top: 8%; width: 50%; height: 84%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(226, 69, 109, .34), rgba(226, 69, 109, .1) 55%, rgba(226, 69, 109, 0)); opacity: 0; transition: opacity 2.4s ease; }
.lit .hero-logo::before, .still .hero-logo::before { opacity: 1; }
.lit .hero-logo::before { animation: breathe 8s ease-in-out 2.4s infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.94); } }
.hero-logo video { width: 100%; aspect-ratio: 16 / 9; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.lede { font-size: clamp(1.25rem, 2.8vw, 1.75rem); font-weight: 400; margin: -2vw 0 6px; max-width: 30ch; text-wrap: balance; opacity: 0; transform: translateY(8px); transition: opacity 1.2s ease .2s, transform 1.2s ease .2s; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 42ch; text-wrap: balance; opacity: 0; transition: opacity 1.2s ease .6s; }
.lit .lede, .lit .sub, .still .lede, .still .sub { opacity: 1; transform: none; }
.cue { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; letter-spacing: .06em; transition: color .2s; }
.cue:hover { color: var(--ice); }
.cue svg { animation: nudge 2.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* our work: one feature card (+ its gallery) per game or app */
.games { background: linear-gradient(var(--bg), var(--bg2) 30%); padding: 90px 0 100px; }
.feature { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 520px; display: flex; align-items: center; isolation: isolate; }
.feature-art { position: absolute; inset: 0; z-index: -1; background: url(/assets/wbr_keyart.jpg) 70% 40% / cover no-repeat; }
.feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 5, 3, .96) 0%, rgba(8, 5, 3, .92) 38%, rgba(8, 5, 3, .55) 52%, rgba(8, 5, 3, .12) 72%, rgba(8, 5, 3, 0) 100%); }
.feature-body { padding: 48px clamp(22px, 5vw, 56px); max-width: 560px; }
.wbr-logo { width: min(420px, 100%); margin: 0 0 18px -6px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.tagline { font-size: 1.3rem; font-weight: 500; margin: 0 0 12px; text-wrap: balance; }
.feature-body p { color: #d9d2c6; }
.facts { list-style: none; padding: 0; margin: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: .85rem; letter-spacing: .03em; color: #efe6d6; border: 1px solid rgba(255, 217, 115, .35); background: rgba(20, 14, 10, .55); padding: 5px 12px; border-radius: 999px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { margin: 16px 0 0; font-size: .95rem; }
.more a { color: #efe6d6; text-decoration: none; border-bottom: 1px solid rgba(239, 230, 214, .35); }
.more a:hover { border-color: #efe6d6; }
.btn { display: inline-block; text-decoration: none; font-weight: 500; padding: 12px 20px; border-radius: 10px; background: var(--ember); color: #fff; border: 1px solid var(--ember); transition: background .2s, border-color .2s, transform .15s; }
.btn:hover { background: var(--ember-hi); border-color: var(--ember-hi); transform: translateY(-1px); }
.btn.ghost { background: rgba(10, 10, 16, .5); border-color: rgba(232, 240, 242, .35); }
.btn.ghost:hover { border-color: var(--ice); background: rgba(30, 30, 44, .6); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 12px; }
.gallery > * { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.gallery img { aspect-ratio: 16 / 9; }
.gallery .main { grid-row: span 2; aspect-ratio: auto; }
.eyebrow.later { margin-top: 100px; }

/* Know Thyself: the app's own night blue and gold, its hero painting set a fifth of the way in so the astrolabe and the
   temple stay clear of the text */
.feature.kt { background: #080a16; border-color: #1d2035; }
.kt .feature-art { left: 20%; background: url(/assets/kt_art.jpg) 50% 45% / cover no-repeat; }
.kt .feature-art::after { background: linear-gradient(90deg, #080a16 0%, rgba(8, 10, 22, .9) 22%, rgba(8, 10, 22, .45) 40%, rgba(8, 10, 22, .08) 60%, rgba(8, 10, 22, 0) 100%); }
.kt .feature-body .kt-title { font: 500 clamp(3rem, 6.4vw, 4.6rem)/.95 Cormorant, Georgia, serif; letter-spacing: -.01em; margin: 0 0 18px; padding-bottom: .08em;
  background: linear-gradient(180deg, #ede9f6 30%, #e3bf76); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kt .kt-title em { font-style: italic; font-weight: 400; }
.kt .feature-body p { color: #cfcade; }
.kt .facts li { color: #ede9f6; border-color: rgba(227, 191, 118, .4); background: rgba(8, 10, 22, .6); }
.kt .more a { color: #ede9f6; border-bottom-color: rgba(227, 191, 118, .45); }
.kt .more a:hover { border-color: #e3bf76; }
/* Teaching Mate: its own violet, the aquarium of its game art, its mate-gourd logo */
.feature.tm { background: #120f2b; border-color: #2a2556; }
.tm .feature-art { left: 22%; background: url(/assets/tm_art.jpg) 60% 50% / cover no-repeat; }
.tm .feature-art::after { background: linear-gradient(90deg, #120f2b 0%, rgba(18, 15, 43, .9) 22%, rgba(18, 15, 43, .45) 40%, rgba(18, 15, 43, .06) 60%, rgba(18, 15, 43, 0) 100%); }
.tm .tm-title { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 3.8rem); line-height: 1; letter-spacing: -.01em; color: #fff; margin: 0 0 18px; }
.tm .tm-title img { width: clamp(48px, 5.5vw, 64px); height: auto; flex: none; }
.tm .feature-body p { color: #d8d4f0; }
.tm .facts li { color: #f1efff; border-color: rgba(139, 127, 240, .5); background: rgba(18, 15, 43, .6); }
.tm .more a { color: #f1efff; border-bottom-color: rgba(139, 127, 240, .55); }
.tm .more a:hover { border-color: #8b7ff0; }
/* Přijímačky zadarmo: night-blue squared paper with the tests' own constructions in chalk, the app's blue tick logo,
   its green for the right answer */
.feature.pz { background: #08121f; border-color: #1a2c44; }
.pz .feature-art { left: 22%; background: url(/assets/pz_art.jpg) 55% 50% / cover no-repeat; }
.pz .feature-art::after { background: linear-gradient(90deg, #08121f 0%, rgba(8, 18, 31, .9) 22%, rgba(8, 18, 31, .45) 40%, rgba(8, 18, 31, .06) 60%, rgba(8, 18, 31, 0) 100%); }
.pz .pz-title { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: clamp(2.3rem, 4.6vw, 3.3rem); line-height: 1.02; letter-spacing: -.015em; color: #fff; margin: 0 0 18px; }
.pz .pz-title img { width: clamp(48px, 5.5vw, 64px); height: auto; flex: none; border-radius: 22%; box-shadow: 0 6px 22px rgba(46, 120, 190, .45); }
.pz .pz-title em { font-style: normal; color: #8ec9f2; }
.pz .feature-body p { color: #d3deea; }
.pz .facts li { color: #eef5fc; border-color: rgba(126, 224, 176, .45); background: rgba(8, 18, 31, .6); }
.pz .more a { color: #eef5fc; border-bottom-color: rgba(126, 224, 176, .5); }
.pz .more a:hover { border-color: #7ee0b0; }

/* the studio */
.studio { background: var(--bg2); padding: 100px 0 90px; border-top: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.studio p { color: #c9d2da; }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: var(--radius); padding: 26px 28px; }
.note p { font-size: .97rem; }
.next { margin-top: 80px; padding-top: 44px; border-top: 1px solid var(--line); }
.big { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 400; max-width: 32ch; margin: 0; text-wrap: balance; }

/* contact */
.contact { background: radial-gradient(60% 80% at 50% 0%, rgba(226, 69, 109, .08), transparent 70%), var(--bg); padding: 100px 0 110px; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; transition: border-color .2s, transform .15s, background .2s; }
.card:hover { border-color: var(--ember); transform: translateY(-2px); background: #0f1320; }
.label { color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.addr { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500; color: var(--ice); overflow-wrap: anywhere; }
.hint { color: var(--muted); font-size: .95rem; }

/* footer */
.foot { text-align: center; padding: 50px 20px 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot img { width: 150px; margin: 0 auto 16px; opacity: .8; }
.foot p { margin: 4px 0; }
.foot .links { margin: 10px 0 14px; }
.foot .quiet { font-size: .82rem; opacity: .8; }
.foot a { color: var(--muted); }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .top { padding: 14px 16px; }
  .top nav { gap: 18px; }
  .hero { min-height: 88svh; padding-top: 70px; }
  .lede { margin-top: 0; }
  .feature { min-height: 0; align-items: flex-end; }
  .feature-art { background-position: 60% 20%; }
  .feature-art::after { background: linear-gradient(0deg, rgba(8, 5, 3, .96) 0%, rgba(8, 5, 3, .9) 55%, rgba(8, 5, 3, .35) 100%); }
  .feature-body { padding-top: 180px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .eyebrow.later { margin-top: 70px; }
  .kt .feature-art { left: 0; bottom: auto; height: 300px; background-position: 42% 30%; }
  .kt .feature-art::after { background: linear-gradient(0deg, #080a16 0%, rgba(8, 10, 22, .5) 40%, rgba(8, 10, 22, 0) 75%); }
  .tm .feature-art { left: 0; bottom: auto; height: 300px; background-position: 72% 40%; }
  .tm .feature-art::after { background: linear-gradient(0deg, #120f2b 0%, rgba(18, 15, 43, .5) 40%, rgba(18, 15, 43, 0) 75%); }
  .pz .feature-art { left: 0; bottom: auto; height: 300px; background-position: 68% 30%; }
  .pz .feature-art::after { background: linear-gradient(0deg, #08121f 0%, rgba(8, 18, 31, .5) 40%, rgba(8, 18, 31, 0) 75%); }
  .feature-body { max-width: none; }
  .two, .cards { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
