/* ja1code — personal brand landing
   Ported from the Claude Design composition (ja1code.dc.html). */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0b0510;
  --ink: #f4efe9;
  --pink: #ff2d9b;
  --cyan: #2bd1ff;
  --violet: #9b6bff;
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  -webkit-font-smoothing: antialiased;
}

@keyframes ja1pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes ja1rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- stage ---- */
.stage {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(130% 90% at 50% 8%, transparent 40%, rgba(6, 3, 10, 0.55) 100%);
}

/* ---- card ---- */
.card-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  animation: ja1rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Widen into a two-column layout on roomy viewports. */
@media (min-width: 860px) {
  .card-wrap {
    max-width: 980px;
  }
}

.card {
  background: rgba(12, 7, 18, 0.52);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  border: 1px solid rgba(244, 239, 233, 0.14);
  border-radius: 30px;
  padding: 38px 34px 30px;
  max-width: 100%;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---- layout grid ---- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-width: 0;
}

.col {
  min-width: 0;
}

@media (min-width: 860px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 44px;
    align-items: start;
  }


  /* The right column starts a fresh section, so drop the top border/pad
     that reads as a divider in the single-column stack. */
  .col--cv .section--flush {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  /* Vertically align the CV eyebrow with the wordmark baseline area. */
  .col--cv {
    padding-top: 8px;
  }
}

/* ---- wordmark ---- */
.wordmark {
  margin: 0;
  /* inline-block + right padding stops WebKit's background-clip:text from
     cropping the final glyph's right edge (the "e"). */
  display: inline-block;
  max-width: 100%;
  padding-right: 0.14em;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(46px, 12vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  background: linear-gradient(96deg, #ffffff 8%, var(--pink) 42%, var(--violet) 62%, var(--cyan) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* In the two-column layout the column is ~half the card, so the 78px
   wordmark overflows it and background-clip:text crops the final "e".
   Scale it to the column. (Must come AFTER the base rule to win the
   cascade at equal specificity.) */
@media (min-width: 860px) {
  .wordmark {
    font-size: clamp(44px, 4.6vw, 64px);
  }
}

.tagline {
  margin: 16px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 233, 0.9);
}

.tagline .sep {
  color: rgba(244, 239, 233, 0.4);
}

.blurb {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(244, 239, 233, 0.68);
  max-width: 44ch;
  overflow-wrap: break-word;
}

/* ---- links ---- */
.links {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(244, 239, 233, 0.13);
  background: rgba(244, 239, 233, 0.04);
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 45, 155, 0.55);
  background: rgba(255, 45, 155, 0.08);
}

.link__tag {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink);
  background: rgba(244, 239, 233, 0.07);
  border: 1px solid rgba(244, 239, 233, 0.12);
}

.link__body {
  min-width: 0;
  flex: 1;
}

.link__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
}

.link__handle {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(244, 239, 233, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link__arrow {
  color: rgba(244, 239, 233, 0.4);
  font-size: 15px;
}

/* ---- section shell ---- */
.section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 239, 233, 0.12);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.5);
}

.mono-muted {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(244, 239, 233, 0.42);
}

/* ---- experience ---- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.job__years {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--cyan);
  padding-top: 2px;
  white-space: nowrap;
}

.job__body {
  min-width: 0;
}

.job__role {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
}

.job__company {
  color: rgba(244, 239, 233, 0.45);
  font-weight: 400;
}

.job__note {
  font-size: 13px;
  color: rgba(244, 239, 233, 0.6);
  line-height: 1.5;
  margin-top: 3px;
  overflow-wrap: break-word;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.skill {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 233, 0.14);
  color: rgba(244, 239, 233, 0.75);
}

.edu {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(244, 239, 233, 0.42);
  margin-top: 12px;
}

/* ---- newsletter ---- */
.newsletter__copy {
  margin: 8px 0 14px;
  font-size: 14.5px;
  color: rgba(244, 239, 233, 0.72);
  line-height: 1.5;
}

.newsletter__form {
  display: flex;
  gap: 9px;
}

.newsletter__input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid rgba(244, 239, 233, 0.16);
  background: rgba(11, 5, 16, 0.5);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  outline: none;
}

.newsletter__input:focus {
  border-color: rgba(43, 209, 255, 0.6);
}

.newsletter__submit {
  flex: none;
  padding: 0 18px;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  color: var(--bg);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  background: var(--ink);
  transition: transform 0.15s ease;
}

.newsletter__submit:hover {
  transform: translateY(-2px);
}

.newsletter__done {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(43, 209, 255, 0.4);
  background: rgba(43, 209, 255, 0.09);
  font-size: 14px;
  color: var(--ink);
}

.newsletter__done span {
  font-size: 16px;
}

.hidden {
  display: none !important;
}

/* ---- footer ---- */
.footer {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(244, 239, 233, 0.42);
}

.footer a {
  color: rgba(244, 239, 233, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 239, 233, 0.2);
}

/* ---- mobile ---- */
@media (max-width: 560px) {
  .stage {
    padding: 28px 14px;
  }

  .card {
    padding: 28px 22px 24px;
    border-radius: 24px;
  }

  /* One link per row — two columns is too tight on a phone. */
  .links {
    grid-template-columns: 1fr;
  }

  .blurb {
    font-size: 15px;
  }
}
