/* Personal-brand bridge: OneNew's bright private-AI surfaces meet ActPass's
   dark governance palette, with editorial type reserved for Aki's voice. */
:root {
  --ink: #0f172b;
  --night: #020817;
  --night-soft: #081326;
  --paper: #f7f9fc;
  --paper-bright: #ffffff;
  --cyan: #06b6d4;
  --violet: #895cd6;
  --purple: #6d5dfc;
  --accent-soft: #aeb8ff;
  --muted: #667085;
  --line: rgba(15, 23, 43, 0.12);
  --white-line: rgba(255, 255, 255, 0.16);
  --card-shadow: 0 18px 50px rgba(15, 23, 43, 0.08);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Iowan Old Style, Palatino Linotype, "Book Antiqua", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--paper-bright);
  border-radius: 0.35rem;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- header ---------- */

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.25rem, 6vw, 7rem);
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(2, 8, 23, 0.9), rgba(2, 8, 23, 0.5));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.96rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.wordmark-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.5rem);
}

nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
}

nav a:hover { color: #fff; }

nav .nav-cta {
  padding: 0.6rem 1rem;
  color: #fff;
  background: rgba(109, 93, 252, 0.16);
  border: 1px solid rgba(174, 184, 255, 0.42);
  border-radius: 999px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 720px;
  padding: clamp(9rem, 14vw, 11rem) clamp(1.25rem, 6vw, 7rem) clamp(4rem, 7vw, 6rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  column-gap: clamp(2rem, 6vw, 7rem);
  color: #f8fafc;
  background:
    radial-gradient(circle at 82% 30%, rgba(137, 92, 214, 0.24), transparent 34%),
    radial-gradient(circle at 66% 76%, rgba(6, 182, 212, 0.15), transparent 34%),
    linear-gradient(135deg, var(--night) 0%, var(--night-soft) 58%, #11162d 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent, black 48%);
}

.hero > * { position: relative; z-index: 2; }
.hero > :not(.hero-portrait):not(.hero-meta) { grid-column: 1; }

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--purple);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.4rem 0.72rem;
  color: #c5ccff;
  background: rgba(109, 93, 252, 0.12);
  border: 1px solid rgba(174, 184, 255, 0.24);
  border-radius: 999px;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.75rem;
  font-family: var(--sans);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 em {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.hero-lede {
  max-width: 62ch;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-meta {
  display: grid;
  max-width: 1240px;
  margin: 3.5rem 0 0;
  padding-top: 1.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--white-line);
  grid-column: 1 / -1;
}

.hero-meta dt {
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta dd { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 0.84rem; }
.hero-meta a { text-underline-offset: 0.2em; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(2, 8, 23, 0.16);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover { box-shadow: 0 14px 34px rgba(2, 8, 23, 0.24); transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.button-primary:hover { background: linear-gradient(90deg, #089bb7, #7650c5); }

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.42);
}

/* ---------- sections ---------- */

.section { padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 6vw, 7rem); }
.section-light { background: var(--paper); }
.section-bright { background: var(--paper-bright); }

.section-dark {
  color: #f8fafc;
  background:
    radial-gradient(circle at 74% 10%, rgba(137, 92, 214, 0.17), transparent 28%),
    radial-gradient(circle at 14% 88%, rgba(6, 182, 212, 0.08), transparent 30%),
    var(--night);
}

.section-heading {
  display: grid;
  max-width: 1240px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 3rem;
}

.section-heading h2 {
  max-width: 18ch;
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-heading > p { max-width: 52ch; margin: 0; color: var(--muted); line-height: 1.8; }
.section-dark .section-heading > p { color: rgba(255, 255, 255, 0.62); }

/* ---------- card grids ---------- */

.grid {
  display: grid;
  max-width: 1240px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--card-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.card:hover {
  box-shadow: 0 24px 64px rgba(15, 23, 43, 0.12);
  transform: translateY(-3px);
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--white-line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.card p { color: var(--muted); }
.section-dark .card p { color: rgba(255, 255, 255, 0.6); }
.card > :last-child { margin-top: auto; margin-bottom: 0; }

.chip {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5d45bf;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-dark .chip { color: #aeb8ff; border-color: var(--white-line); }

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover { color: var(--purple); }
.section-dark .text-link:hover { color: #aeb8ff; }

.note {
  display: flex;
  max-width: 1240px;
  align-items: center;
  gap: 0.8rem;
  margin: 2.5rem auto 0;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.section-dark .note {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--white-line);
}

.note p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.section-dark .note p { color: rgba(255, 255, 255, 0.6); }

.status-dot {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(109, 93, 252, 0.12);
}

/* ---------- about ---------- */

.about {
  display: grid;
  max-width: 1240px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.about-lede {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.4;
}

.about-body p:not(.about-lede) { max-width: 60ch; color: rgba(255, 255, 255, 0.62); }

.elsewhere { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--white-line); }

.elsewhere li { border-bottom: 1px solid var(--white-line); }

.elsewhere a {
  display: flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  text-decoration: none;
}

.elsewhere a:hover { color: #aeb8ff; }
.elsewhere span { color: rgba(255, 255, 255, 0.4); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- contact + footer ---------- */

.contact {
  padding: clamp(4.5rem, 8vw, 8rem) 1.25rem;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.18), transparent 34%),
    radial-gradient(circle at 85% 78%, rgba(137, 92, 214, 0.2), transparent 32%),
    linear-gradient(135deg, #eefbfe, #f2efff);
}

.contact .eyebrow { color: #5d45bf; }

.contact h2 {
  max-width: 16ch;
  margin: 0 auto 1rem;
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1;
}

.contact > p:not(.eyebrow) { max-width: 55ch; margin: 0 auto 2rem; color: #475467; }
.contact .button-primary { color: #fff; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.contact .button-primary:hover { background: linear-gradient(90deg, #089bb7, #7650c5); }

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem clamp(1.25rem, 6vw, 7rem);
  color: rgba(255, 255, 255, 0.47);
  background: var(--night);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

footer p { margin: 0; }
footer a { color: rgba(255, 255, 255, 0.68); }

:focus-visible { outline: 3px solid #67e8f9; outline-offset: 4px; }

@media (max-width: 980px) {
  .hero {
    display: flex;
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    padding-top: 8.5rem;
  }

  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .hero-portrait { order: 3; }
  .hero-lede { order: 4; }
  .hero-actions { order: 5; }
  .hero-meta { order: 6; width: 100%; }
}

@media (max-width: 860px) {
  nav a:not(.nav-cta) { display: none; }
  .hero-meta { grid-template-columns: 1fr; }
  .section-heading, .about { grid-template-columns: 1fr; }
  .section-heading { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- hero portrait ---------- */

.hero-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 3px;
  align-self: center;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-radius: 1.6rem;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.44), 0 0 56px rgba(109, 93, 252, 0.16);
  grid-column: 2;
  grid-row: 1 / 5;
  justify-self: end;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: calc(1.6rem - 3px);
  filter: saturate(0.94) contrast(1.02);
}

.hero-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: calc(1.6rem - 3px);
  background: linear-gradient(160deg, rgba(2, 8, 23, 0) 52%, rgba(2, 8, 23, 0.3) 100%);
}

@media (max-width: 980px) {
  .hero-portrait {
    width: min(100%, 340px);
    margin: 0.25rem 0 2rem;
    align-self: flex-start;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
  }
}

@media (max-width: 480px) {
  .hero-portrait { width: min(100%, 300px); }
}
