/* Iliada website: bronze on black, like a Greek vase. One self-hosted font
   (Cinzel, OFL) for titles; the system's own for text. */

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #0b0907;
  --bg-2: #14100c;
  --ink: #f3e7d3;
  --muted: #b5a48d;
  --bronze: #d99c4b;
  --bronze-hi: #f6d38e;
  --bronze-lo: #9a5f1c;
  --terracotta: #c2602b;
  --line: rgba(240, 200, 140, 0.14);
  --card: rgba(255, 236, 210, 0.035);
  --glow: rgba(217, 156, 75, 0.28);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  /* The Greek key, drawn once and repeated. */
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='24' viewBox='0 0 28 24'%3E%3Cg fill='none' stroke='%23c98a3e' stroke-width='1.6'%3E%3Cpath d='M0 2.5H28M0 21.5H28M3 21.5V7H19V17H9V11.5H14'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1400px 900px at 50% -200px, rgba(217, 156, 75, 0.16), transparent 65%),
    var(--bg);
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
kbd {
  font: 600 0.82em ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 0.1em 0.45em; border-radius: 6px;
  border: 1px solid var(--line); border-bottom-width: 2px; background: var(--card);
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; margin: 0 0 18px; line-height: 1.1; }
h2 { font-size: clamp(32px, 5vw, 58px); text-align: center; }
h3 { font-size: 26px; }
.small { font-size: 14px; color: var(--muted); }
.eyebrow {
  text-align: center; margin: 0 0 14px;
  font: 600 13px/1 var(--text); letter-spacing: 0.32em; text-transform: uppercase; color: var(--bronze);
}
.meander { height: 24px; background: var(--meander) repeat-x center / 28px 24px; opacity: 0.75; }

/* ── Top bar ── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.bar.solid {
  background: rgba(11, 9, 7, 0.72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.bar nav { display: flex; gap: clamp(12px, 2.6vw, 30px); align-items: center; }
.bar nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.bar nav a:hover { color: var(--ink); }
.bar nav a.pill {
  color: #1b1108; font-weight: 700; padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--bronze-hi), var(--bronze));
}

/* ── Hero ── */
.hero { max-width: none; margin: 0; position: relative; min-height: min(100vh, 980px); display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; padding: 110px 20px 28px; }
#embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; max-width: 980px; margin: auto 0; }
.hero-logo {
  margin: 0 auto 22px; filter: drop-shadow(0 14px 50px var(--glow));
  animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both, breathe 6s ease-in-out 1.2s infinite;
}
@keyframes breathe { 50% { transform: translateY(-6px); filter: drop-shadow(0 18px 70px rgba(246,211,142,.45)); } }
.kicker {
  margin: 0 0 10px; color: var(--muted); font-size: clamp(13px, 1.6vw, 15px);
  letter-spacing: 0.24em; text-transform: uppercase; animation: fade 1.2s .3s both;
}
.title {
  font-size: clamp(56px, min(15vw, 19vh), 190px); font-weight: 900; letter-spacing: 0.14em;
  margin: 0 0 6px; padding-left: 0.14em; line-height: 1;
}
.title span {
  display: inline-block;
  background: linear-gradient(180deg, var(--bronze-hi) 0%, var(--bronze) 48%, var(--bronze-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(217, 156, 75, 0.35));
  animation: letter 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.title span:nth-child(1) { animation-delay: .45s; }
.title span:nth-child(2) { animation-delay: .55s; }
.title span:nth-child(3) { animation-delay: .65s; }
.title span:nth-child(4) { animation-delay: .75s; }
.title span:nth-child(5) { animation-delay: .85s; }
.title span:nth-child(6) { animation-delay: .95s; }
@keyframes letter { from { opacity: 0; transform: translateY(60px) scale(.9); filter: blur(12px); } }
.tagline { font: 600 clamp(22px, 3.4vw, 38px)/1.25 var(--display); margin: 0 0 20px; animation: fade 1.2s 1.2s both; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 34px; animation: fade 1.2s 1.4s both; }
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fade 1.2s 1.6s both; }
.hero .meander { position: relative; align-self: stretch; margin: 56px -20px 0; flex: none; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.92); } }

.button {
  display: inline-block; text-decoration: none; font-weight: 700; letter-spacing: 0.02em;
  padding: 14px 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  transition: transform .2s, box-shadow .3s, border-color .3s;
}
.button:hover { transform: translateY(-2px); border-color: var(--bronze); }
.button.primary {
  color: #1b1108; border-color: transparent;
  background: linear-gradient(135deg, var(--bronze-hi), var(--bronze) 55%, var(--bronze-lo));
  box-shadow: 0 10px 40px var(--glow);
}
.button.primary:hover { box-shadow: 0 14px 60px rgba(246,211,142,.4); }
.button.disabled { opacity: .5; pointer-events: none; }

/* ── Sections ── */
section { padding: clamp(80px, 12vw, 150px) clamp(18px, 5vw, 48px); max-width: 1120px; margin: 0 auto; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Why ── */
.why { max-width: 860px; }
.manifesto { font-size: clamp(21px, 2.6vw, 30px); line-height: 1.5; color: var(--muted); margin: 0 0 28px; }
.manifesto.strong { color: var(--ink); font-family: var(--display); font-weight: 600; }
.initial {
  float: left; font: 900 4.2em/0.82 var(--display); margin: 0.06em 0.12em 0 0;
  background: linear-gradient(180deg, var(--bronze-hi), var(--bronze-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Books ── */
.books h2 { margin-bottom: 56px; }
.book {
  display: grid; grid-template-columns: 150px 1fr; gap: 34px; align-items: center;
  padding: 38px 8px; border-top: 1px solid var(--line);
}
.book:last-child { border-bottom: 1px solid var(--line); }
.letter {
  font: 900 128px/1 var(--display); text-align: center;
  background: linear-gradient(180deg, var(--bronze-hi), var(--bronze) 50%, var(--bronze-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(217,156,75,.18);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.book:hover .letter { transform: scale(1.08) rotate(-3deg); }
.book-no { margin: 0 0 4px; font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--bronze); }
.book p { margin: 0; color: var(--muted); max-width: 640px; }
.book h3 { margin-bottom: 10px; }

/* ── Assistant demo ── */
.assistant { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.assistant h2, .assistant .eyebrow { text-align: left; }
.assistant .copy p { color: var(--muted); }
.panel {
  border-radius: 22px; border: 1px solid rgba(217,156,75,.35);
  background: linear-gradient(160deg, rgba(40, 30, 22, .82), rgba(18, 13, 10, .9));
  box-shadow: 0 40px 120px -30px var(--glow), inset 0 1px 0 rgba(255,236,210,.08);
  backdrop-filter: blur(18px); overflow: hidden;
}
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.panel-bar span { flex: 1; }
.panel-body { min-height: 360px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 11px 15px; border-radius: 16px; max-width: 88%; font-size: 15.5px; animation: pop .45s cubic-bezier(.2,.7,.2,1) both; }
.msg.you { align-self: flex-end; color: #1b1108; background: linear-gradient(135deg, var(--bronze-hi), var(--bronze)); border-bottom-right-radius: 4px; }
.msg.iliada { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.step { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--muted); animation: pop .45s cubic-bezier(.2,.7,.2,1) both; }
.step::before { content: "✦"; color: var(--bronze); }
.step b { color: var(--ink); font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1.05em; vertical-align: -0.15em; background: #1b1108; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ── Comparison ── */
.table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 44px; }
.row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.15fr; }
.row > span { padding: 16px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.row.head > span { border-top: 0; font: 700 15px var(--display); letter-spacing: .08em; color: var(--ink); }
.row > span[role="rowheader"] { color: var(--ink); font-weight: 600; }
.row > .us { background: linear-gradient(180deg, rgba(217,156,75,.14), rgba(217,156,75,.06)); color: var(--bronze-hi); font-weight: 600; }

/* ── Shield ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat { text-align: center; padding: 34px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.stat b {
  display: block; font: 900 clamp(40px, 5vw, 60px)/1.1 var(--display); margin-bottom: 10px;
  background: linear-gradient(180deg, var(--bronze-hi), var(--bronze-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); }

/* ── Gallery ── */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 26px 0 26px; }
.tabs button {
  font: inherit; font-size: 15px; color: var(--muted); cursor: pointer;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
}
.tabs button[aria-selected="true"] { color: #1b1108; border-color: transparent; background: linear-gradient(135deg, var(--bronze-hi), var(--bronze)); font-weight: 700; }
.frame {
  margin: 0; padding: 10px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(246,211,142,.55), rgba(154,95,28,.35) 40%, rgba(246,211,142,.25));
  box-shadow: 0 50px 140px -40px var(--glow);
}
.frame img { border-radius: 14px; transition: opacity .25s; }
.frame figcaption { padding: 14px 8px 4px; text-align: center; color: #1b1108; font-weight: 600; font-size: 15px; }

/* ── Get ── */
.get { text-align: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 40px auto; max-width: 960px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.steps li { counter-increment: s; padding: 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.steps li::before {
  content: counter(s, upper-roman); display: block; margin-bottom: 12px;
  font: 900 34px/1 var(--display); color: var(--bronze);
}
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }
.get .ctas { animation: none; margin-bottom: 18px; }

/* ── Footer ── */
footer { text-align: center; padding: 30px 16px 60px; color: var(--muted); }
.muse { font: 600 italic clamp(18px, 2.4vw, 24px) var(--display); color: var(--ink); margin: 34px 0 18px; }
.links { display: flex; gap: 22px; justify-content: center; font-size: 14px; }

@media (max-width: 820px) {
  .bar nav a:not(.pill) { display: none; }
  .assistant { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .book p { margin: 0 auto; }
  .letter { font-size: 96px; }
  .stats, .steps { grid-template-columns: 1fr; }
  .table { overflow-x: auto; }
  .row { min-width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
/* Short screens (laptops): everything in the first view, buttons included. */
@media (max-height: 800px) and (min-width: 821px) {
  .hero { padding-top: 88px; }
  .hero-logo { width: 84px; margin-bottom: 14px; }
  .tagline { margin-bottom: 12px; }
  .lead { margin-bottom: 24px; }
  .hero .meander { margin-top: 32px; }
}

/* ── The three choices (Why) ── */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 10px 0 36px; }
.choice { padding: 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.choice h3 { font-size: 22px; color: var(--bronze-hi); margin-bottom: 10px; }
.choice p { margin: 0; color: var(--muted); font-size: 16px; }
.why { max-width: 1040px; }
.sub { text-align: center; color: var(--muted); max-width: 640px; margin: -4px auto 0; font-size: 18px; }
.row > .same { color: var(--ink); }
@media (max-width: 820px) { .choices { grid-template-columns: 1fr; } }

/* A book still being written. */
.book.coming { border-style: dashed; border-width: 1px 0; }
.book.coming .letter { opacity: 0.75; }
.soon {
  margin-left: 10px; padding: 3px 10px; border-radius: 999px; vertical-align: 1px;
  font: 700 11px/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase;
  color: #1b1108; background: linear-gradient(135deg, var(--bronze-hi), var(--bronze));
}
