/* ============================================================
   Leon El-Alamin — author website
   Theme pulled from both covers:
   · Public Enemy: Flint — night navy, electric Flint blue, City Hall sunset
   · Tears Dry & Wounds Heal — flag red, steel bars, white serif caps
   Type: Cinzel (cover name caps) · Oswald (cover headlines) · Manrope (body)
   ============================================================ */

:root {
  --bg: #06080d;
  --bg-2: #0b0f17;
  --bg-3: #111724;
  --steel: #1a2130;
  --glass: rgba(255, 255, 255, .035);
  --glass-2: rgba(255, 255, 255, .06);
  --edge: rgba(255, 255, 255, .08);
  --edge-2: rgba(255, 255, 255, .16);
  --text: #eef0f4;
  --muted: #8e97a7;

  --blue: #1f8bff;
  --blue-2: #66b3ff;
  --red: #d22b35;
  --red-2: #ff5a5f;
  --sun: #f2a84b;
  --sun-2: #ffd08a;

  --f-name: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-d: "Oswald", "Arial Narrow", sans-serif;
  --f-b: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-b);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.shell { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Atmosphere ---------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 139, 255, .09), transparent 62%);
  transform: translate(var(--cx, -999px), var(--cy, -999px));
  transition: transform .35s var(--ease);
}
main, section, footer { position: relative; z-index: 1; }

/* ---------- Shared type ---------- */
.label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-d); font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1rem;
}
.label::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--red), var(--blue)); }
.h2 {
  font-family: var(--f-d); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: .01em;
}
.hl-blue { color: var(--blue-2); }
.hl-red { color: var(--red-2); }
.hl-sun { color: var(--sun); }
.head { margin-bottom: 3rem; max-width: 720px; }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .label { justify-content: center; }
.head__note { max-width: 360px; color: var(--muted); font-size: .95rem; }
.head--center .head__note { max-width: 520px; margin: 1rem auto 0; }

.section { padding: 7rem 0; }

/* ---------- Buttons ---------- */
.cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 50px; padding: 0 1.5rem; border-radius: 12px; overflow: hidden;
  font-family: var(--f-d); font-weight: 500; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, border-color .3s;
}
.cta .icon { transition: transform .4s var(--ease); }
.cta:hover { transform: translateY(-2px); }
.cta:hover .icon { transform: translateX(3px); }
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.cta:hover::after { transform: translateX(120%); }
.cta--blue {
  background: linear-gradient(135deg, var(--blue-2), var(--blue) 55%, #1560c9); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 12px 36px -12px rgba(31, 139, 255, .75);
}
.cta--red {
  background: linear-gradient(135deg, var(--red-2), var(--red) 55%, #9b1820); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 12px 36px -12px rgba(210, 43, 53, .75);
}
.cta--glass { background: var(--glass-2); border: 1px solid var(--edge-2); backdrop-filter: blur(12px); }
.cta--glass:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.cta--full { width: 100%; }

/* ---------- Floating nav ---------- */
.island {
  position: fixed; top: 16px; left: 50%; z-index: 50;
  display: flex; align-items: center; gap: .4rem;
  padding: .4rem .4rem .4rem .5rem; border-radius: 999px;
  background: rgba(10, 13, 20, .6); border: 1px solid var(--edge);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  transform: translateX(-50%);
  animation: islandIn 1s var(--ease) .2s both;
  transition: background .4s, top .4s var(--ease);
}
@keyframes islandIn { from { opacity: 0; transform: translate(-50%, -40px) scale(.95); } }
.island.is-scrolled { top: 10px; background: rgba(8, 11, 17, .88); }
.island__logo { display: flex; align-items: center; gap: .6rem; padding-right: .9rem; }
.island__mark {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-name); font-weight: 700; font-size: .8rem; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, var(--red), #7e1520 45%, #12366b 55%, var(--blue));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset;
  flex-shrink: 0;
}
.island__name { font-family: var(--f-name); font-weight: 600; font-size: .92rem; letter-spacing: .08em; white-space: nowrap; }
.island__links { display: flex; gap: .1rem; }
.island__links a {
  padding: .5rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--muted);
  transition: color .25s, background .25s;
}
.island__links a:hover, .island__links a.is-active { color: #fff; background: rgba(255, 255, 255, .07); }
.island__cta {
  margin-left: .3rem; padding: .55rem 1.1rem; border-radius: 999px;
  font-family: var(--f-d); font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  background: #fff; color: var(--bg); white-space: nowrap; transition: background .25s, color .25s;
}
.island__cta:hover { background: var(--blue); color: #fff; }
.island__burger { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; background: rgba(255, 255, 255, .06); }
.island__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
.island__burger span:first-child { top: 16px; }
.island__burger span:last-child { top: 23px; }
.island.is-open .island__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.island.is-open .island__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 8rem 0 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero__glow--blue { width: 620px; height: 620px; right: -120px; top: -160px; background: rgba(31, 139, 255, .28); }
.hero__glow--red { width: 520px; height: 520px; left: -200px; bottom: -160px; background: rgba(210, 43, 53, .2); }
.hero__glow--sun { width: 320px; height: 320px; right: 22%; bottom: 4%; background: rgba(242, 168, 75, .14); }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; flex: 1; }
.kicker {
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem;
  font-family: var(--f-d); font-size: .82rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--blue-2);
}
.kicker__line { width: 36px; height: 2px; background: linear-gradient(90deg, var(--red), var(--blue)); }
.hero__name {
  font-family: var(--f-name); font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.05; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 30%, #b9c4d6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tag {
  margin-top: 1.1rem;
  font-family: var(--f-d); font-weight: 500; font-size: clamp(.95rem, 1.4vw, 1.1rem); letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-2);
}
.hero__lead { margin-top: 1.4rem; max-width: 33rem; color: #b3bccb; font-size: 1.02rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.anim { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i) * .1s + .35s); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ---------- 3D book ---------- */
.b3d {
  --w: 220px; --d: 26px;
  position: relative; width: var(--w); aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, 24deg));
  transition: transform .9s var(--ease);
}
.b3d--lg { --w: 260px; --d: 28px; }
.b3d > div { position: absolute; backface-visibility: hidden; outline: 1px solid transparent; }
.b3d__front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: inset 4px 0 8px rgba(0, 0, 0, .35); }
.b3d__front img { width: 100%; height: 100%; object-fit: cover; }
.b3d__front::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .12) 40%, transparent); }
.b3d__gloss {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%);
  transform: translateX(var(--gx, -60%)); transition: transform .9s var(--ease);
}
.b3d__spine {
  left: 0; top: 0; width: var(--d); height: 100%;
  transform-origin: left center; transform: translateZ(calc(var(--d) / -2)) rotateY(-90deg);
  display: grid; place-items: center; overflow: hidden;
}
.b3d__spine span {
  writing-mode: vertical-rl; white-space: nowrap;
  font-family: var(--f-d); font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.b3d--blue .b3d__spine { background: linear-gradient(90deg, #08142a, #10305e 50%, #08142a); }
.b3d--red .b3d__spine { background: linear-gradient(90deg, #1a0a0d, #5c121a 50%, #1a0a0d); }
.b3d__pages {
  right: 0; top: 3px; width: var(--d); height: calc(100% - 6px);
  transform-origin: right center; transform: translateZ(calc(var(--d) / -2)) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #e9e4da 0 1px, #cfc9bd 1px 2px);
}
.b3d__back { inset: 0; transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); background: #0b0f17; border-radius: 5px 2px 2px 5px; }

/* hero portrait (background removed) */
.portrait { position: relative; width: min(390px, 100%); aspect-ratio: 2 / 3; margin-left: auto; margin-right: 6%; align-self: end; }
.portrait__glow {
  position: absolute; inset: 0 -20% 10%; z-index: -1; border-radius: 50%;
  background:
    radial-gradient(closest-side at 60% 40%, rgba(31, 139, 255, .38), transparent),
    radial-gradient(closest-side at 35% 70%, rgba(210, 43, 53, .26), transparent);
}
.portrait__img {
  position: absolute; inset: 0;
  /* fade the bottom, and the right edge where the original photo cuts the sleeve */
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 99%), linear-gradient(90deg, #000 82%, transparent 97%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 78%, transparent 99%), linear-gradient(90deg, #000 82%, transparent 97%);
  mask-composite: intersect;
}
.portrait__img img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }

/* ticker */
.ticker { margin-top: 3rem; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); overflow: hidden; background: rgba(255, 255, 255, .015); }
.ticker__track { display: flex; align-items: center; gap: 1.6rem; width: max-content; padding: .95rem 0; animation: tick 40s linear infinite; }
.ticker span { font-family: var(--f-d); font-size: .9rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: #c9d1de; }
.ticker i { font-style: normal; font-size: .7rem; color: var(--red-2); }
.ticker i:nth-of-type(even) { color: var(--blue-2); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.story { padding: 8rem 0 4rem; }
.lit {
  max-width: 980px;
  font-family: var(--f-d); font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.8vw, 2.25rem); line-height: 1.3; letter-spacing: .01em;
}
.lit .w { color: rgba(255, 255, 255, .14); transition: color .4s; }
.lit .w.on { color: #fff; }
.lit strong .w.on { color: var(--red-2); }

/* ---------- Bento ---------- */
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--edge); padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
}
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 139, 255, .12), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile--photo { grid-column: 1; grid-row: 1 / 4; padding: 0; min-height: 460px; }
.tile__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 57% 0%;
  transition: transform 1.2s var(--ease);
}
.tile--photo:hover .tile__img { transform: scale(1.04); }
.tile__over {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 1.4rem 1.4rem;
  background: linear-gradient(transparent, rgba(6, 8, 13, .95));
}
.tile__over h3 { font-family: var(--f-name); font-weight: 600; font-size: 1.15rem; letter-spacing: .06em; }
.tile__over p { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.tile--bio { grid-column: 2 / 4; justify-content: center; }
.tile--bio p { color: #b7c0cf; font-size: .98rem; }
.tile--bio strong { color: #fff; font-weight: 600; }
.tile--stat { grid-column: 4; }
.tile--ring { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.1rem; }
.tile--made { grid-column: 3; }
.tile--books { grid-column: 4; }
.tile--quote { grid-column: 2 / 5; flex-direction: row; align-items: center; gap: 1.4rem; background: linear-gradient(120deg, rgba(210, 43, 53, .12), rgba(31, 139, 255, .1)); }
.tile--quote p { font-family: var(--f-d); font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.4; font-weight: 400; }
.tile__q { width: 38px; height: 38px; fill: var(--red-2); flex-shrink: 0; opacity: .85; }
.tile__k { font-family: var(--f-d); font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tile__s { font-size: .85rem; color: var(--muted); }
.big { font-family: var(--f-d); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: #fff; }
.big--sm { font-size: 1.6rem; }
.tile--stat .big { color: var(--sun); }
.tile--books .big { color: var(--blue-2); }
.ring { width: 96px; height: 96px; transform: rotate(-90deg); flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 9; }
.ring__bg { stroke: rgba(255, 255, 255, .07); }
.ring__fg { stroke: url(#rg); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.tile--ring.is-in .ring__fg { stroke-dashoffset: 154.3; }
.ring__txt { display: flex; flex-direction: column; }
.made { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .8rem; font-size: .9rem; color: #b7c0cf; }
.made b { font-family: var(--f-d); font-size: 1.15rem; color: var(--red-2); font-weight: 600; }

/* ---------- Books ---------- */
.books { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.feature {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center;
  padding: 4rem; border-radius: 28px; border: 1px solid var(--edge); overflow: hidden; isolation: isolate;
}
.feature + .feature { margin-top: 2rem; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.feature--blue::before {
  background:
    radial-gradient(600px 400px at 18% 30%, rgba(31, 139, 255, .25), transparent 70%),
    radial-gradient(400px 300px at 10% 100%, rgba(242, 168, 75, .16), transparent 70%),
    linear-gradient(160deg, #0b1424, #070a11);
}
.feature--red::before {
  background:
    radial-gradient(560px 400px at 82% 30%, rgba(210, 43, 53, .24), transparent 70%),
    linear-gradient(180deg, rgba(210, 43, 53, .06), transparent 40%),
    linear-gradient(200deg, #170b0f, #08090d);
}
.feature--flip .feature__stage { order: 2; }
.feature__stage { position: relative; display: grid; place-items: center; min-height: 460px; perspective: 1600px; }
.feature__floor { position: absolute; left: 15%; right: 15%; bottom: 2%; height: 50px; border-radius: 50%; filter: blur(12px); }
.feature--blue .feature__floor { background: radial-gradient(ellipse, rgba(31, 139, 255, .4), transparent 70%); }
.feature--red .feature__floor { background: radial-gradient(ellipse, rgba(210, 43, 53, .4), transparent 70%); }
.feature .b3d__front { box-shadow: inset 4px 0 8px rgba(0, 0, 0, .35), 30px 44px 60px -20px rgba(0, 0, 0, .8); }
.feature--flip .b3d { --ry: -24deg; }

.badge {
  display: inline-block; padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1.1rem;
  font-family: var(--f-d); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid;
}
.badge--blue { color: var(--blue-2); border-color: rgba(102, 179, 255, .35); background: rgba(31, 139, 255, .1); }
.badge--red { color: var(--red-2); border-color: rgba(255, 90, 95, .35); background: rgba(210, 43, 53, .1); }
.badge--sun { color: var(--sun); border-color: rgba(242, 168, 75, .35); background: rgba(242, 168, 75, .1); }
.feature__title { font-family: var(--f-d); font-weight: 600; text-transform: uppercase; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; }
.feature--red .feature__title { font-family: var(--f-name); font-weight: 700; letter-spacing: .02em; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.feature__sub { margin: .5rem 0 1.3rem; font-family: var(--f-d); font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.feature__info > p:not(.feature__sub) { color: #b7c0cf; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1.8rem 0; }
.specs div { padding: .8rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--edge); font-size: .9rem; font-weight: 600; }
.specs span { display: block; font-family: var(--f-d); font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.feature__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Coming soon ---------- */
.soon {
  position: relative; margin-top: 3rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(242, 168, 75, .22);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(242, 168, 75, .1), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(31, 139, 255, .1), transparent 70%),
    var(--bg-2);
}
.soon__head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.soon__head .badge { margin-bottom: .9rem; }
.soon__title { font-family: var(--f-d); font-weight: 600; text-transform: uppercase; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; }
.soon__note { margin-top: .7rem; color: var(--muted); }
.soon__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.soon-card {
  display: flex; gap: 1.6rem; align-items: center; padding: 1.5rem; border-radius: var(--r);
  border: 1px solid var(--edge); background: var(--glass); transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.soon-card:hover { transform: translateY(-3px); }
.soon-card--blue:hover { border-color: rgba(102, 179, 255, .35); }
.soon-card--red:hover { border-color: rgba(255, 90, 95, .35); }
.soon-card__cover {
  position: relative; flex-shrink: 0; width: 150px; border-radius: 4px; overflow: hidden;
  box-shadow: inset 4px 0 8px rgba(0, 0, 0, .35), 0 26px 50px -18px rgba(0, 0, 0, .85);
  transition: transform .5s var(--ease);
}
.soon-card__cover img { width: 100%; height: auto; }
.soon-card:hover .soon-card__cover { transform: rotate(-2deg) scale(1.03); }
.soon-card__ribbon {
  position: absolute; top: 18px; right: -34px; width: 140px; padding: .3rem 0; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--sun-2), var(--sun)); color: #1a1206; text-align: center;
  font-family: var(--f-d); font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .7);
}
.soon-card__body { min-width: 0; }
.soon-card__title { font-family: var(--f-d); font-weight: 600; font-size: 1.35rem; line-height: 1.15; text-transform: uppercase; }
.soon-card__sub { margin: .35rem 0 .7rem; font-family: var(--f-d); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); }
.soon-card__text { font-size: .9rem; color: #aab3c2; }
.soon-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1.2rem; }
.soon-card__actions .cta { height: 44px; padding: 0 1.1rem; font-size: .8rem; }
.soon-card__link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-d); font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2);
}
.soon-card__link .icon { transition: transform .3s var(--ease); }
.soon-card__link:hover { color: #fff; }
.soon-card__link:hover .icon { transform: translateX(4px); }
.cta--sun {
  background: linear-gradient(135deg, var(--sun-2), var(--sun) 55%, #c97a1e); color: #1a1206;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 12px 36px -12px rgba(242, 168, 75, .7);
}


/* ---------- Inside: expanding panels ---------- */
.panels { display: flex; gap: .7rem; height: 360px; }
.panel {
  position: relative; flex: 1; min-width: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--edge);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  transition: flex .7s var(--ease), border-color .4s, background .4s;
}
.panel.is-open {
  flex: 4.5; border-color: rgba(102, 179, 255, .3);
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(31, 139, 255, .22), transparent 70%),
    radial-gradient(300px 200px at 0% 100%, rgba(242, 168, 75, .12), transparent 70%),
    var(--bg-3);
}
.panel__n { position: absolute; top: 1.2rem; left: 50%; transform: translateX(-50%); font-family: var(--f-d); font-size: .85rem; color: var(--blue-2); transition: opacity .3s; }
.panel__t {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl; white-space: nowrap;
  font-family: var(--f-d); font-weight: 500; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: #c9d1de;
  transition: opacity .3s;
}
.panel.is-open .panel__n, .panel.is-open .panel__t { opacity: 0; }
.panel__body {
  position: absolute; inset: 0; padding: 2rem 2.2rem; display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none;
  min-width: 340px;
}
.panel.is-open .panel__body { opacity: 1; transform: none; transition-delay: .25s; }
.panel__big { position: absolute; top: 1rem; right: 1.6rem; font-family: var(--f-d); font-weight: 700; font-size: 5.5rem; line-height: 1; color: rgba(255, 255, 255, .05); }
.panel__body h3 { font-family: var(--f-d); font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; color: var(--blue-2); margin-bottom: .7rem; }
.panel__body p { font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.45; max-width: 34rem; }

/* ---------- Journey: pinned horizontal ---------- */
.journey { height: 320vh; }
.journey__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 3rem; }
.journey__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.journey__meter { width: 220px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; flex-shrink: 0; }
.journey__meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--blue), var(--sun)); transform-origin: left; transform: scaleX(0); }
.journey__track {
  display: flex; gap: 1.2rem; width: max-content; will-change: transform;
  padding-left: max(1.5rem, calc((100vw - 1200px) / 2)); padding-right: 6vw;
}
.scene {
  position: relative; width: 340px; min-height: 300px; padding: 1.8rem; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  border: 1px solid var(--edge);
  display: flex; flex-direction: column;
}
.scene::after { content: ""; position: absolute; left: 1.8rem; right: 1.8rem; top: 0; height: 2px; background: var(--blue); opacity: .8; }
.scene--red::after { background: var(--red); }
.scene--sun::after { background: var(--sun); }
.scene__n { font-family: var(--f-d); font-weight: 700; font-size: 3.4rem; line-height: 1; color: rgba(255, 255, 255, .07); margin-bottom: auto; }
.scene__when { margin-top: 2rem; font-family: var(--f-d); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-2); }
.scene--red .scene__when { color: var(--red-2); }
.scene--sun .scene__when { color: var(--sun); }
.scene h3 { font-family: var(--f-d); font-weight: 600; font-size: 1.4rem; text-transform: uppercase; margin: .3rem 0 .5rem; }
.scene p { font-size: .92rem; color: #aab3c2; }

/* ---------- Speaking ---------- */
.talks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.talk {
  padding: 1.8rem 1.6rem; border-radius: var(--r); border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  transition: transform .5s var(--ease), border-color .4s;
}
.talk:hover { transform: translateY(-4px); border-color: rgba(242, 168, 75, .35); }
.talk__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: rgba(242, 168, 75, .1); color: var(--sun); font-size: 1.2rem;
}
.talk:nth-child(2) .talk__icon { background: rgba(31, 139, 255, .12); color: var(--blue-2); }
.talk:nth-child(3) .talk__icon { background: rgba(210, 43, 53, .12); color: var(--red-2); }
.talk h3 { font-family: var(--f-d); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; margin-bottom: .6rem; }
.talk p { font-size: .9rem; color: #aab3c2; }

/* ---------- Contact ---------- */
.contact { padding-top: 3rem; }
.contact__box {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; padding: 3.5rem; border-radius: 28px;
  border: 1px solid var(--edge); overflow: hidden; position: relative; isolation: isolate;
  background:
    radial-gradient(500px 340px at 0% 0%, rgba(31, 139, 255, .18), transparent 70%),
    radial-gradient(500px 340px at 100% 100%, rgba(210, 43, 53, .14), transparent 70%),
    var(--bg-2);
}
.contact__intro > p:not(.label) { color: #b7c0cf; margin-top: 1.1rem; }
.contact__ways { margin-top: 2rem; display: grid; gap: .8rem; }
.contact__ways li { display: flex; align-items: center; gap: .8rem; font-size: .95rem; }
.contact__ways .icon { color: var(--blue-2); }
.contact__ways a:hover { color: var(--blue-2); }
.form { display: grid; gap: .8rem; align-content: start; }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.inp {
  width: 100%; padding: .9rem 1rem; border-radius: 12px;
  font: inherit; font-size: .95rem; color: var(--text);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--edge-2);
  transition: border-color .25s, background .25s;
}
.inp::placeholder { color: #6f7889; }
.inp:focus { outline: none; border-color: var(--blue); background: rgba(31, 139, 255, .06); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8e97a7 50%), linear-gradient(135deg, #8e97a7 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.inp option { background: var(--bg-2); color: var(--text); }
textarea.inp { resize: vertical; }
.form__note { font-size: .88rem; color: var(--blue-2); min-height: 1.2em; }

/* ---------- Footer ---------- */
.foot { padding: 3rem 0 2.5rem; border-top: 1px solid var(--edge); }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.foot__brand { display: flex; align-items: center; gap: .9rem; }
.foot__brand strong { display: block; font-family: var(--f-name); font-weight: 600; letter-spacing: .06em; }
.foot__brand span { font-size: .82rem; color: var(--muted); }
.foot__social { display: flex; gap: .5rem; }
.foot__social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--edge-2); color: var(--muted); transition: color .25s, border-color .25s, background .25s;
}
.foot__social a:hover { color: #fff; border-color: var(--blue); background: rgba(31, 139, 255, .12); }
.foot__copy { width: 100%; font-size: .8rem; color: #5f6878; }

/* ---------- Reveal ---------- */
.up { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.up.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, .island { animation: none; }
  .up { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .island__name { display: none; }
  .talks { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 3rem; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .soon__grid { grid-template-columns: 1fr; }
  .island { left: 1rem; right: 1rem; transform: none; justify-content: space-between; border-radius: 26px; flex-wrap: wrap; }
  @keyframes islandIn { from { opacity: 0; transform: translateY(-40px); } }
  .island__name { display: inline; }
  .island__cta { display: none; }
  .island__burger { display: block; }
  .island__links {
    order: 3; width: 100%; flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .5s var(--ease);
  }
  .island.is-open .island__links { max-height: 420px; padding: .5rem 0 .4rem; }
  .island__links a { padding: .85rem 1rem; border-radius: 12px; font-size: 1rem; }

  .hero { min-height: auto; padding-top: 7.5rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 1rem; }
  .portrait { width: min(320px, 85%); margin: 1.5rem auto 0; }

  .section { padding: 5rem 0; }
  .story { padding: 5rem 0 2rem; }

  .bento { grid-template-columns: 1fr 1fr; }
  .tile--photo { grid-column: 1 / 3; grid-row: auto; min-height: 420px; }
  .tile__img { object-position: 50% 15%; }
  .tile--bio, .tile--quote { grid-column: 1 / 3; }
  .tile--stat, .tile--ring, .tile--made, .tile--books { grid-column: auto; }

  .feature, .feature--flip { grid-template-columns: 1fr; padding: 2.5rem 1.6rem; }
  .feature--flip .feature__stage { order: 0; }
  .feature__stage { min-height: 380px; }
  .b3d--lg { --w: 210px; }

  .panels { flex-direction: column; height: auto; }
  .panel { flex: none; height: 64px; transition: height .6s var(--ease), border-color .4s, background .4s; }
  .panel.is-open { flex: none; height: 230px; }
  .panel__n { top: 50%; left: 1.2rem; transform: translateY(-50%); }
  .panel__t { writing-mode: horizontal-tb; transform: translateY(50%); left: 3.6rem; right: 1rem; bottom: 50%; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; }
  .panel__body { min-width: 0; padding: 1.5rem; }
  .panel__big { font-size: 4rem; }

  .journey { height: auto; }
  .journey__pin { position: static; height: auto; overflow: visible; padding: 5rem 0; }
  .journey__meter { display: none; }
  .journey__track {
    width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
    padding-left: 1.5rem; padding-right: 1.5rem; scrollbar-width: none;
  }
  .journey__track::-webkit-scrollbar { display: none; }
  .scene { flex: 0 0 280px; width: 280px; min-height: 280px; scroll-snap-align: start; }

  .contact__box { grid-template-columns: 1fr; padding: 2.2rem 1.6rem; gap: 2rem; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 2rem); }
  .island { left: .6rem; right: .6rem; }
  .portrait { width: min(280px, 80%); }
  .bento { grid-template-columns: 1fr; }
  .tile--photo, .tile--bio, .tile--quote { grid-column: auto; }
  .tile--quote { flex-direction: column; align-items: flex-start; }
  .talks { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .soon-card { flex-direction: column; align-items: flex-start; }
  .soon-card__cover { width: 140px; }
  .form__two { grid-template-columns: 1fr; }
  .journey__track { padding-left: 1rem; padding-right: 1rem; }
}
