/* tosutosu.net — hand-written stylesheet (2026 redesign)
   Replaces the original Carrd export. Structure: tokens, base, layout,
   components, sections, utilities, responsive. */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-raised: #141414;
  --bg-card: #151515;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f4f4f2;
  --text-dim: #ababab;
  --text-dimmer: #7a7a7a;
  --accent: #bed754;
  --accent-dim: #7f9a2e;
  --accent-soft: rgba(190, 215, 84, 0.12);
  --shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --radius-sm: 6px;
  --max-w: clamp(1120px, 78vw, 1440px);
  --font-head: 'Raleway', sans-serif;
  --font-body: 'Source Sans Pro', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-blur: blur(10px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #0a0a0a;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Pill (nav CTA / badges) ---------- */
.glass-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.glass-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head--wide {
  max-width: 820px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 84px;
}

section:last-of-type {
  border-bottom: none;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom-color: var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.nav-cta {
  margin-left: 6px;
  padding: 9px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
}

.nav-links a.nav-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav-open .nav-toggle span {
  background: transparent;
}

.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/bg.jpg') center / cover no-repeat;
  filter: saturate(0.85) brightness(0.55);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.78) 55%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 48px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  margin-bottom: 12px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-role {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero p.lede {
  max-width: 620px;
  font-size: 1.15rem;
  color: #dcdcdc;
  margin-bottom: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: var(--text-dim);
  font-size: 0.98rem;
}

.hero-meta a {
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.hero-meta a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Dedicated Studio Kero redirect panel — solid, poster-like, stands out from the photo */
.hero-kero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--accent);
  transition: transform 0.2s var(--ease);
}

.hero-kero:hover {
  transform: translateY(-3px);
}

.hero-kero-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.25;
  color: #101010;
  margin-bottom: 14px;
}

.hero-kero-desc {
  color: rgba(16, 16, 16, 0.7);
  font-size: 0.95rem;
  margin-bottom: 26px;
}

.hero-kero-cta {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: #101010;
  border-bottom: 2px solid rgba(16, 16, 16, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.hero-kero:hover .hero-kero-cta {
  border-color: #101010;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 56px;
  align-items: start;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
}

.profile-mark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
}

.profile-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
}

.profile-role {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.profile-facts {
  width: 100%;
  text-align: left;
}

.about-copy p {
  color: var(--text-dim);
  margin-bottom: 18px;
  font-size: 1.03rem;
}

.about-copy strong {
  color: var(--text);
  font-weight: 700;
}

.about-copy a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.about-copy a:hover {
  border-color: var(--accent);
}

.skillset {
  margin-top: 72px;
}

.skillset > h3 {
  font-size: 1.5rem;
  margin-bottom: 32px;
}

.skill-section {
  margin-bottom: 40px;
}

.skill-section:last-child {
  margin-bottom: 0;
}

.skill-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 18px;
}

.skill-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Bento grid: 4 base columns, cards opt into wider/fuller spans */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.2s;
}

.skill-card:hover {
  border-color: var(--border-strong);
}

.skill-card--wide {
  grid-column: span 2;
}

.skill-card--full {
  grid-column: 1 / -1;
}

.skill-card--accent {
  background: var(--accent-soft);
  border-color: rgba(190, 215, 84, 0.3);
}

.skill-card--accent h4 {
  color: var(--accent);
}

.skill-card h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}

.skill-card ul li {
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 4px 0;
}

.skill-card ul.two-col {
  column-count: 2;
  column-gap: 32px;
}

.skill-card ul.two-col li {
  break-inside: avoid;
}

/* Languages: plain key/value rows */
.kv-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.kv-list li:last-child {
  border-bottom: none;
}

.kv-list li span:first-child {
  color: var(--text);
}

.kv-list .lvl {
  color: var(--text-dimmer);
  font-size: 0.85rem;
}

/* Tools & software: plain text lines */
.tool-group p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

.tool-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}

.tool-groups .tool-group h5 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dimmer);
  margin-bottom: 10px;
}

/* ---------- Contact ---------- */
.contact-list {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

.contact-row:hover {
  color: var(--accent);
  padding-left: 10px;
}

.contact-row .label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.contact-row--accent .label {
  color: var(--accent);
}

.contact-row .value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  word-break: break-word;
}

.contact-row:hover .value {
  color: var(--accent);
}

.contact-row .value--icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  color: var(--text-dimmer);
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .brand {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.site-footer .brand img {
  width: 22px;
  height: 22px;
}

.back-to-top {
  color: var(--text-dimmer);
  font-weight: 600;
  transition: color 0.2s;
}

.back-to-top:hover {
  color: var(--accent);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 1440px) {
  .hero-inner {
    grid-template-columns: 1fr minmax(300px, 380px);
    gap: 72px;
  }

  .hero p.lede {
    max-width: 680px;
    font-size: 1.25rem;
  }

  section {
    padding: 128px 0;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-kero {
    max-width: 360px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 320px;
    margin-inline: auto; /* card was hugging the left edge instead of centering in the single column */
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card--wide,
  .skill-card--full {
    grid-column: 1 / -1;
  }

  .tool-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-card ul.two-col {
    column-count: 1;
  }

  .tool-groups {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    /* Solid, not translucent: a semi-transparent background on this stacked
       fixed-position panel doesn't composite fully opaque on real devices —
       the hero text behind bleeds through and makes the links/CTA unreadable. */
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px;
    transform: translateY(-8px);
    /* Fading the whole panel via opacity faded its background too, so for
       part of the 0.25s transition the page behind (hero text, etc.) showed
       through and the links/CTA looked broken. Visibility snaps the panel
       fully opaque as soon as it starts sliding in; only the slide itself
       animates. */
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .nav-open .nav-links {
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: transform 0.25s var(--ease);
  }

  .nav-links a {
    padding: 14px 6px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a.nav-cta {
    margin: 14px 0 4px;
    justify-content: center;
    /* Re-declare the full pill border rather than just cancelling
       border-bottom: that only meant to drop the row-separator line
       inherited from ".nav-links a", but it also overrode (and removed)
       .glass-pill's own bottom border, leaving the pill open on that edge. */
    border: 1px solid var(--border-strong);
  }
}
