/* ===================================================================
   PALANIT — Independent Cybersecurity Studio
   Static site · no build step · plain CSS
   =================================================================== */

:root {
  --ink:   #0a0a0a;
  --paper: #ffffff;
  --lime:  #cdf546;
  --pop:   #ff4326;
  --blue:  #2b51ff;
  --muted: #6b6b6b;

  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; width: 100%; }

.display { font-family: "Anton", "Space Grotesk", sans-serif; text-transform: uppercase; font-weight: 400; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { font-family: "Anton", sans-serif; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; }
.nav__links { display: flex; gap: 28px; list-style: none; }
.nav__links a {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 0;
  background: var(--pop); transition: width .3s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 8px 16px; border-radius: 999px; transition: background .25s ease;
}
.nav__cta:hover { background: var(--pop); }

@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- MARQUEE ---------- */
.marquee-wrap { overflow: hidden; }
.marquee { display: flex; width: max-content; animation: scroll 22s linear infinite; }
.marquee.rev { animation-direction: reverse; }
.marquee.fast { animation-duration: 14s; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.marquee span { padding: 0 16px; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

.marquee--top {
  background: var(--lime); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 8px 0;
}
.marquee--top .marquee {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  align-items: center;
  gap: 16px;
  animation-duration: 80s;
}
.marquee--top .marquee span { padding: 0; white-space: nowrap; }
.marquee--top .m-word { font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }
.marquee--top .m-word--bold {
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.07em;
  -webkit-text-stroke: 1.6px currentColor;
  paint-order: stroke fill;
}
.marquee--top .m-star { font-weight: 700; color: var(--ink); line-height: 1; }

.marquee--divider {
  background: var(--ink); color: var(--paper);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 16px 0;
}
.marquee--divider .marquee { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: clamp(34px, 6vw, 56px); animation-duration: 32s; }
.marquee--divider .star { color: var(--lime); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 56px; overflow: hidden;
}
.hero__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.hero__eyebrow {
  font-family: "Noto Sans JP", "Space Grotesk", sans-serif;
  font-size: 14px; font-weight: 700; color: var(--pop); margin-bottom: 22px; letter-spacing: .04em;
}
.hero__title {
  font-family: "Anton", sans-serif; text-transform: uppercase;
  line-height: .85; font-size: clamp(52px, 13vw, 168px);
}
.hero__title .pop { color: var(--pop); }
.hero__title .blue { color: var(--blue); }
.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
}
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; }
.hero__lead { max-width: 420px; color: #2a2a2a; font-weight: 500; font-size: 17px; line-height: 1.5; }

.btn {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 16px 32px; border-radius: 999px; transition: background .25s ease;
  cursor: pointer;
}
.btn:hover { background: var(--pop); }

/* spinning badge */
.badge { position: absolute; bottom: 32px; right: 24px; width: 112px; height: 112px; }
.badge__ring { width: 100%; height: 100%; animation: spin 9s linear infinite; }
.badge__arrow {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .badge { display: none; } }

/* ---------- SECTION SHELL ---------- */
.section { padding: 96px 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--lime { background: var(--lime); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.tag {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--pop); margin-bottom: 28px;
}
.section--dark .tag { color: var(--lime); }

/* ---------- ABOUT ---------- */
.about__title { font-family: "Anton", sans-serif; text-transform: uppercase; line-height: .95; font-size: clamp(40px, 8vw, 104px); max-width: 14ch; }
.about__title .blue { color: var(--blue); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; max-width: 920px; }
.about__grid p { font-size: clamp(17px, 2vw, 20px); font-weight: 500; line-height: 1.55; }
.about__grid p.muted { color: var(--muted); }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- EXPERTISE ---------- */
.exp { list-style: none; }
.exp__item {
  border-top: 2px solid rgba(255,255,255,.2);
  padding: 32px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
  transition: color .25s ease;
}
.exp__item:last-child { border-bottom: 2px solid rgba(255,255,255,.2); }
.exp__item:hover { color: var(--lime); }
.exp__num { font-family: "Anton", sans-serif; font-size: 26px; color: rgba(255,255,255,.5); width: 56px; }
.exp__name { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: clamp(34px, 6vw, 72px); flex: 1; }
.exp__desc { max-width: 320px; color: rgba(255,255,255,.6); font-weight: 500; transition: color .25s ease; }
.exp__item:hover .exp__desc { color: var(--paper); }

/* ---------- VENTURES ---------- */
.ventures__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 56px; }
.ventures__title { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: clamp(44px, 8vw, 104px); line-height: .9; }
.ventures__all { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; transition: color .2s; }
.ventures__all:hover { color: var(--pop); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { cursor: pointer; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.card:nth-child(even) { margin-top: 48px; }
@media (max-width: 640px) { .card:nth-child(even) { margin-top: 0; } }
.card:hover { transform: translateY(-10px) rotate(-1.5deg); }
.card__thumb {
  aspect-ratio: 4 / 3; border: 2px solid var(--ink); border-radius: 18px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: filter .4s ease;
}
.card:hover .card__thumb { filter: saturate(1.3); }
.card__thumb span { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: clamp(36px, 7vw, 64px); }
.card__thumb--lime { background: var(--lime); }
.card__thumb--pop  { background: var(--pop); }
.card__thumb--pop span { color: var(--paper); }
.card__thumb--blue { background: var(--blue); }
.card__thumb--blue span { color: var(--paper); }
.card__thumb--ink  { background: var(--ink); }
.card__thumb--ink span { color: var(--lime); }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.card__name { font-family: "Anton", sans-serif; font-size: 22px; }
.card__cat { font-size: 13px; font-weight: 700; text-transform: uppercase; color: rgba(10,10,10,.5); white-space: nowrap; }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat__num { font-family: "Anton", sans-serif; font-size: clamp(48px, 9vw, 88px); line-height: 1; }
.stat__label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; color: rgba(10,10,10,.6); }

/* ---------- CONTACT ---------- */
.contact { text-align: center; }
.contact__title { font-family: "Anton", sans-serif; text-transform: uppercase; line-height: .9; font-size: clamp(52px, 11vw, 132px); }
.contact__title .pop { color: var(--pop); }
.contact__lead { max-width: 440px; margin: 28px auto 0; font-weight: 500; font-size: 18px; }
.contact__email {
  display: inline-block; margin-top: 40px;
  background: var(--ink); color: var(--paper);
  font-family: "Anton", sans-serif; text-transform: lowercase;
  font-size: clamp(22px, 4vw, 40px); padding: 18px 40px; border-radius: 999px;
  transition: background .25s ease;
}
.contact__email:hover { background: var(--pop); }
.contact__socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 20px; }
.contact__socials a { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; transition: color .2s; }
.contact__socials a:hover { color: var(--pop); }

/* ---------- FOOTER ---------- */
#contact { padding-bottom: 36px; }
.footer { padding: 20px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer__logo { font-family: "Anton", sans-serif; font-size: 24px; text-transform: uppercase; }
.footer__note { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgba(10,10,10,.5); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .badge__ring { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
