/* Jolinkomo — site styles */
:root {
  --black: #0B0B0F;
  --ink-2: #111117;
  --ink-3: #18181F;
  --line: #24242D;
  --white: #F4F4F0;
  --muted: #9A9AA3;
  --orange: #FF8A00;
  --orange-2: #FFA733;
  --radius: 14px;
  --wrap: 1180px;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
::selection { background: var(--orange); color: var(--black); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--orange); }
.muted { color: var(--muted); }
.label { font: 500 13px/1 var(--mono); color: var(--orange); letter-spacing: 0.02em; margin-bottom: 18px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--black); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--orange);
  background: var(--orange); color: var(--black);
  font: 600 15px/1 var(--sans); cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--orange-2); transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255,138,0,.6); }
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink-3); border-color: #3a3a45; box-shadow: none; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,15,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 26px; color: var(--white); }
.brand__name { font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 56px; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -80px;
  background: radial-gradient(circle, rgba(255,138,0,.18), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--mono); color: var(--muted);
  border: 1px solid var(--line); background: rgba(17,17,23,.6);
  padding: 9px 14px; border-radius: 999px; margin-bottom: 32px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255,138,0,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,138,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,0,0); } }
.hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 700; letter-spacing: -0.045em; }
.lede { margin-top: 28px; max-width: 560px; font-size: 19px; color: #C9C9CF; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__art { justify-self: end; width: 100%; max-width: 420px; }
.hero__art .draw { width: 100%; height: auto; overflow: visible; }
.draw__path {
  fill: none; stroke: var(--white); stroke-width: 44; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(.65,0,.35,1) .2s forwards;
}
.draw__dot { fill: var(--orange); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .5s ease 2.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }

.stack {
  list-style: none; padding: 0; margin: 80px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font: 400 14px/1 var(--mono); color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 28px;
}
.stack li::before { content: "/ "; color: var(--orange); }

/* Sections */
.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--ink-2); }
.section h2 { font-size: clamp(36px, 5vw, 60px); }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head .muted { margin-top: 18px; font-size: 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover { border-color: rgba(255,138,0,.55); background: var(--ink-3); transform: translateY(-3px); }
.card--wide { grid-column: span 2; grid-row: span 1; }
.card__idx { font: 500 13px/1 var(--mono); color: var(--orange); }
.card h3 { font-size: 24px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 16px; }
.tags { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font: 400 12.5px/1 var(--mono); color: #C9C9CF;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; background: rgba(11,11,15,.5);
}

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.about__body > p { font-size: 20px; color: #C9C9CF; }
.principles { margin: 40px 0 0; display: grid; gap: 0; }
.principles > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.principles dt { font-weight: 600; }
.principles dt span { color: var(--orange); margin-right: 6px; }
.principles dd { margin: 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.contact__cta { margin-top: 36px; }
.contact__intro .muted { margin-top: 20px; font-size: 18px; max-width: 380px; }
.contact__meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact__meta li { display: grid; gap: 4px; font-size: 18px; }
.contact__meta .label { margin: 0; color: var(--muted); }
.contact__meta a { border-bottom: 1px solid var(--orange); justify-self: start; transition: color .2s; }
.contact__meta a:hover { color: var(--orange); }


/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand .brand__mark { width: 22px; height: 19px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--white); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero__art { justify-self: start; max-width: 220px; order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .principles > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 24px 16px 28px; background: var(--black); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .hero { padding: 56px 0 40px; }
  .hide-sm { display: none; }
  .hero__inner { gap: 32px; }
  .hero__art { max-width: 120px; justify-self: center; }
  .lede { font-size: 17px; }
  .stack { margin-top: 56px; }
  .section { padding: 80px 0; }
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .draw__path { stroke-dashoffset: 0; }
  .draw__dot { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* 404 */
.notfound { min-height: 100vh; display: flex; align-items: center; border-top: 0; }
.notfound .muted { margin: 18px 0 32px; font-size: 18px; }
