/* ============================================================
   3ojo — www.3ojo.com
   Static theme: Dark Classic Blue base, Gold (#FFAA51) & Yellow accents.
   Fonts: Josefin Sans (headings), Prompt (body).
   ============================================================ */

:root {
  --color-base: #0A1828;
  --color-base-raised: #0F2136;
  --color-base-card: #122A42;
  --color-gold: #FFAA51;
  --color-gold-soft: rgba(255, 170, 81, 0.35);
  --color-yellow: #E8D06B;
  --color-yellow-bright: #F5E27A;
  --color-text: #E9EDF2;
  --color-text-dim: #9AA7B5;

  --font-heading: 'Josefin Sans', Arial, Helvetica, sans-serif;
  --font-body: 'Prompt', Arial, Helvetica, sans-serif;

  --max-width: 1120px;
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-base);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle radial glow behind content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(232, 208, 107, 0.06), transparent),
    radial-gradient(ellipse 60% 60% at 15% 85%, rgba(255, 170, 81, 0.05), transparent);
  pointer-events: none;
  z-index: -1;
}

main {
  flex: 1;
}

a {
  color: var(--color-yellow);
  text-decoration: none;
}

a:hover {
  color: var(--color-yellow-bright);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(10, 24, 40, 0.82);
  border-bottom: 1px solid rgba(255, 170, 81, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  line-height: 1;
}

.nav__logo .logo-j {
  position: relative;
  color: var(--color-gold);
}

.nav__logo .logo-dot {
  color: var(--color-yellow);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-yellow);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: var(--color-gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav.is-open .nav__links {
  display: flex;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-gold) 100%);
  color: var(--color-base);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 208, 107, 0.25);
  color: var(--color-base);
}

.btn--ghost {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.btn--ghost:hover {
  background: rgba(255, 170, 81, 0.1);
  color: var(--color-yellow);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 44px;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.hero__title .logo-j {
  position: relative;
  color: var(--color-gold);
}

.hero__pronunciation {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 28px;
}

.hero__tagline {
  font-size: 1.35rem;
  font-weight: 300;
  max-width: 34ch;
  margin-bottom: 16px;
}

.hero__sub {
  color: var(--color-text-dim);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Card fan (hero visual) ---------- */

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.card-fan {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 1200px;
}

/* Each card composes its own transform from these four custom properties,
   so :hover / :focus-visible can grow a card without discarding the fan
   position it was dealt. */
.card-fan__card {
  --fan-x: -50%;
  --fan-y: -50%;
  --fan-rot: 0deg;
  --fan-scale: 1;

  position: absolute;
  top: 50%;
  left: 50%;
  width: min(240px, 55vw);
  aspect-ratio: 2 / 3.4;
  padding: 0;
  border: none;
  background: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 170, 81, 0.35),
    0 0 40px rgba(232, 208, 107, 0.08);
  transform: translate(var(--fan-x), var(--fan-y)) rotate(var(--fan-rot)) scale(var(--fan-scale));
  transition:
    transform 420ms cubic-bezier(0.22, 0.68, 0.28, 1),
    box-shadow 420ms ease;
  animation: fan-in 0.8s ease backwards;
}

.card-fan__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-fan__card:nth-child(1) { --fan-x: -78%; --fan-rot: -14deg; z-index: 1; }
.card-fan__card:nth-child(2) { --fan-x: -50%; --fan-y: -54%; --fan-rot: 2deg; z-index: 2; animation-delay: 0.15s; }
.card-fan__card:nth-child(3) { --fan-x: -22%; --fan-rot: 14deg; z-index: 3; animation-delay: 0.3s; }

/* Lift on hover and keyboard focus. On touch there is no hover, so the tap
   itself triggers it — browsers apply :hover to a tapped button and clear it
   on the next tap elsewhere, which is why these are <button> elements. The
   card keeps its dealt angle; only scale and depth change. */
.card-fan__card:hover,
.card-fan__card:focus-visible {
  --fan-scale: 1.09;
  z-index: 10;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--color-gold),
    0 0 60px rgba(255, 170, 81, 0.22);
}

.card-fan__card:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 4px;
}

.card-fan__cta {
  text-align: center;
}

.card-fan__cta .btn {
  white-space: nowrap;
}

.card-fan__cta-note {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

@keyframes fan-in {
  from {
    opacity: 0;
    transform: translate(-50%, -30%) rotate(0deg) scale(0.9);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section--raised {
  background: var(--color-base-raised);
  border-top: 1px solid rgba(255, 170, 81, 0.12);
  border-bottom: 1px solid rgba(255, 170, 81, 0.12);
}

.section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.section__heading em {
  font-style: normal;
  color: var(--color-yellow);
}

.section__lead {
  color: var(--color-text-dim);
  max-width: 62ch;
  margin-bottom: 48px;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-base-card);
  border: 1px solid rgba(255, 170, 81, 0.18);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
}

.feature-card__glyph {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-yellow);
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-dim);
  font-size: 0.98rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 110px 24px;
}

.cta-band__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-band__text {
  color: var(--color-text-dim);
  max-width: 52ch;
  margin: 0 auto 40px;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 88px 0 56px;
}

.page-hero__eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--color-text-dim);
  max-width: 58ch;
  font-size: 1.1rem;
}

/* ---------- Split layout (portrait + text) ---------- */

.split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.portrait-placeholder {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  border: 1px dashed var(--color-gold-soft);
  background:
    linear-gradient(160deg, rgba(255, 170, 81, 0.08), rgba(232, 208, 107, 0.04)),
    var(--color-base-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-text-dim);
  font-family: var(--font-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}

.portrait-placeholder::before {
  content: '◉';
  font-size: 3rem;
  color: var(--color-gold);
  opacity: 0.6;
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--color-yellow);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--color-text-dim);
  margin-bottom: 16px;
}

.prose strong {
  color: var(--color-text);
  font-weight: 500;
}

/* ---------- Story blocks (About 3ojo) ---------- */

.story-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 170, 81, 0.12);
}

.story-step:last-child {
  border-bottom: none;
}

.story-step__num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.story-step h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.story-step p {
  color: var(--color-text-dim);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 170, 81, 0.18);
  padding: 48px 0;
  margin-top: auto;
}

.site-footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.site-footer__logo .logo-j {
  color: var(--color-gold);
}

.site-footer__nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-footer__nav a {
  font-size: 0.9rem;
  color: var(--color-text-dim);
}

.site-footer__nav a:hover {
  color: var(--color-yellow);
}

.site-footer__meta {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  width: 100%;
  border-top: 1px solid rgba(255, 170, 81, 0.12);
  padding-top: 24px;
  margin-top: 8px;
}

/* ---------- Insights list ---------- */

.insights-status {
  color: var(--color-text-dim);
  font-size: 0.95rem;
}

.insights-status[hidden] {
  display: none;
}

.insight-list {
  display: grid;
  gap: 48px;
}

.insight-card {
  display: grid;
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 170, 81, 0.18);
  animation: insight-in 0.6s ease backwards;
}

.insight-card:first-child {
  padding-top: 0;
  border-top: none;
}

.insight-card:nth-child(2) { animation-delay: 0.08s; }
.insight-card:nth-child(3) { animation-delay: 0.16s; }
.insight-card:nth-child(n + 4) { animation-delay: 0.24s; }

@keyframes insight-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (min-width: 760px) {
  .insight-card {
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
}

/* Media tile: the card art is contained, never cropped. */
.insight-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 170, 81, 0.18);
  background:
    linear-gradient(160deg, rgba(255, 170, 81, 0.08), rgba(232, 208, 107, 0.03)),
    var(--color-base-card);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

@media (max-width: 759px) {
  .insight-card__media {
    max-width: 240px;
  }
}

.insight-card__media:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px);
}

.insight-card__img {
  max-height: 100%;
  width: auto;
  border-radius: 8px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 170, 81, 0.35);
}

.insight-card__placeholder {
  color: var(--color-text-dim);
  font-family: var(--font-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.8rem;
  text-align: center;
}

.insight-card__body {
  display: grid;
  gap: 10px;
  align-content: start;
}

.insight-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.insight-card__title {
  max-width: 26ch;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}

.insight-card__title a {
  color: var(--color-text);
  transition: color 0.2s ease;
}

.insight-card__title a:hover {
  color: var(--color-yellow);
}

.insight-card__excerpt {
  color: var(--color-text-dim);
  font-size: 0.98rem;
  max-width: 68ch;
}

.insight-card__more {
  justify-self: start;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-top: 6px;
}

.insight-card__more:hover {
  color: var(--color-yellow-bright);
}

/* ---------- Single insight article ---------- */

.insight-back {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.insight-back a {
  color: var(--color-text-dim);
}

.insight-back a:hover {
  color: var(--color-yellow);
}

.insight-head {
  max-width: 700px;
  margin-bottom: 8px;
}

.insight-head h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 8px;
}

.insight-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 460px;
  margin: 40px 0;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 170, 81, 0.18);
  background:
    linear-gradient(160deg, rgba(255, 170, 81, 0.08), rgba(232, 208, 107, 0.03)),
    var(--color-base-card);
}

.insight-hero img {
  max-height: 380px;
  width: auto;
  border-radius: 10px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 170, 81, 0.35);
}

.insight-hero--placeholder {
  aspect-ratio: 3 / 4;
  border-style: dashed;
  border-color: var(--color-gold-soft);
  color: var(--color-text-dim);
  font-family: var(--font-heading);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-align: center;
}

.insight-body {
  max-width: 68ch;
}

.insight-body p {
  color: var(--color-text-dim);
  margin-bottom: 20px;
}

.insight-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-yellow);
  margin: 40px 0 12px;
}

.insight-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

.insight-body strong {
  color: var(--color-text);
  font-weight: 500;
}

.insight-body ul,
.insight-body ol {
  color: var(--color-text-dim);
  margin: 0 0 20px 22px;
}

.insight-body li {
  margin-bottom: 8px;
}

.insight-body blockquote {
  border-left: 2px solid var(--color-gold);
  padding-left: 20px;
  margin: 28px 0;
  color: var(--color-text);
  font-size: 1.15rem;
  font-weight: 300;
}

.insight-foot {
  max-width: 68ch;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 170, 81, 0.18);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .insight-card {
    animation: none !important;
  }
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Keep the fan's layout transform — only the motion is dropped. */
  .card-fan__card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero__visual {
    order: -1;
  }

  .card-fan {
    height: 400px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .portrait-placeholder {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 24, 40, 0.97);
    border-bottom: 1px solid rgba(255, 170, 81, 0.2);
    padding: 8px 24px 16px;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 14px 0;
  }

  .nav__toggle {
    display: block;
  }

  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero {
    padding-top: 56px;
  }

  .section {
    padding: 64px 0;
  }
}
