:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #070707;
  --muted: #5f5f66;
  --line: #e7e7eb;
  --accent: #2f6bff;
  --font-body: "Inter", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background:
    linear-gradient(to right, rgba(231, 231, 235, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(231, 231, 235, 0.45) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.container {
  width: min(1160px, 90%);
  margin: 0 auto;
}

.avatar-shell {
  width: 128px;
  height: 128px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(7, 7, 7, 0.08);
  overflow: hidden;
}

.avatar-sprite {
  position: absolute;
  inset: 0;
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0;
  transition: opacity 220ms ease;
}

.avatar-sprite.is-visible {
  opacity: 1;
}

.avatar-badge {
  display: none;
}

.avatar-slot {
  display: inline-block;
}

.avatar-slot .avatar-shell {
  box-shadow: none;
}

.avatar-slot-hero .avatar-shell {
  width: 240px;
  height: 240px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(47, 107, 255, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f7f7fa 100%);
  box-shadow: 0 24px 56px rgba(7, 7, 7, 0.1);
}

.avatar-slot-hero .avatar-sprite {
  width: 240px;
  height: 240px;
}

.avatar-slot-inline .avatar-shell {
  width: 112px;
  height: 112px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7fa 100%);
}

.avatar-slot-inline .avatar-sprite {
  width: 112px;
  height: 112px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.03rem;
  transition: color 160ms ease;
}

.nav-email-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 1.03rem;
  padding: 0;
  cursor: pointer;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-email-btn:hover {
  color: var(--text);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mode-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.mode-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown > summary {
  list-style: none;
}

.lang-dropdown > summary::-webkit-details-marker {
  display: none;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 130px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 0.35rem;
  display: none;
  box-shadow: 0 14px 28px rgba(7, 7, 7, 0.12);
  z-index: 20;
}

.lang-dropdown[open] .lang-dropdown-menu {
  display: grid;
  gap: 0.2rem;
}

.lang-option {
  border: 0;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.lang-option:hover,
.lang-option.is-active {
  background: color-mix(in srgb, var(--accent) 12%, #ffffff 88%);
}


.spa-view {
  display: none;
}

.spa-view.is-active {
  display: block;
}

.nav-links a.is-active,
.logo.is-active {
  color: var(--text);
}
.hero {
  padding: 8rem 0 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy-wrap {
  text-align: left;
}

.hero-art {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.hero-notes {
  width: min(360px, 100%);
  display: grid;
  gap: 0.7rem;
}

.hero-note {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: #fbfbfc;
}

.hero-note span {
  display: block;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: #808088;
  font-weight: 700;
}

.hero-note strong {
  font-size: 0.95rem;
  line-height: 1.45;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

h1 {
  margin: 0.9rem 0 0;
  font-size: clamp(3rem, 10vw, 8.1rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 900;
}

h1.is-typing {
  position: relative;
}

h1.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.12em;
  vertical-align: -0.04em;
  background: var(--text);
  animation: blink-caret 850ms steps(1, end) infinite;
}

.hero-name-tag {
  margin: 0.55rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #4f4f58;
}

.hero-bio {
  margin: 0.7rem 0 0;
  width: min(640px, 100%);
  color: #34343d;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

.hero-blurb {
  width: min(640px, 100%);
  margin: 1.4rem 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.persona-switch {
  margin-top: 1.6rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.persona-pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.persona-pill:hover,
.persona-pill.is-active {
  border-color: #d5ddff;
  color: var(--text);
  background: #f7f9ff;
}

.marquee-wrap {
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 2.2rem;
  padding: 0.95rem 0;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track span {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.signal-strip {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.85rem;
}

.signal-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(4px);
}

.signal-card span {
  display: block;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 700;
  color: #7d7d86;
}

.signal-card strong {
  font-size: 0.95rem;
  line-height: 1.45;
}

.section {
  padding: 5.2rem 0;
}

.section h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  font-weight: 900;
}

.section-intro {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-intro p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.7;
}

.projects-top {
  margin-bottom: 1.3rem;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  text-align: center;
}

.projects-top-avatar {
  width: 112px;
  height: 112px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7fa 100%);
  image-rendering: pixelated;
}

.projects-typed-lead {
  margin: 0;
  max-width: 62ch;
  color: #3f4452;
  line-height: 1.7;
  font-size: 1.02rem;
}

.projects-typed-lead.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.12em;
  vertical-align: -0.05em;
  background: var(--text);
  animation: blink-caret 850ms steps(1, end) infinite;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, #fff 4%) 0%, color-mix(in srgb, var(--surface) 92%, #fff 8%) 100%);
  transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.project-card:hover {
  border-color: #cfd8ff;
  box-shadow: 0 0 0 1px #dce4ff, 0 0 34px rgba(47, 107, 255, 0.13);
  transform: translateY(-2px);
}

.project-card-featured {
  border-color: #d6deff;
  background:
    radial-gradient(circle at 85% 10%, rgba(47, 107, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.98) 100%);
}

.project-section {
  --project-tone: #2f6bff;
  --project-tone-soft: rgba(47, 107, 255, 0.14);
  transition: background 280ms ease, border-color 280ms ease;
}

.project-section[data-tone="jarvis"] {
  --project-tone: #2f6bff;
  --project-tone-soft: rgba(47, 107, 255, 0.14);
}

.project-section[data-tone="factory"] {
  --project-tone: #ff6a3d;
  --project-tone-soft: rgba(255, 106, 61, 0.14);
}

.project-section[data-tone="dashboard"] {
  --project-tone: #8a57ff;
  --project-tone-soft: rgba(138, 87, 255, 0.14);
}

.project-section[data-tone="research"] {
  --project-tone: #0f8f6f;
  --project-tone-soft: rgba(15, 143, 111, 0.14);
}

.card-tag {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.project-card h3 {
  margin: 0.5rem 0 0.45rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.project-subtitle {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: #4f5f95;
  font-weight: 700;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-summary {
  margin-top: 0.45rem;
}

.project-hook {
  margin-top: 0.4rem;
  font-size: 1rem;
  color: #484a55;
}

.project-trigger {
  margin-top: 0.9rem;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 800;
  cursor: pointer;
}

.project-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 240ms ease, opacity 180ms ease, margin-top 180ms ease;
}

.project-card.is-open {
  border-color: color-mix(in srgb, var(--project-tone) 30%, #d8dbe5);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--project-tone) 18%, #f0f1f5);
}

.project-card.is-open .project-detail {
  max-height: 420px;
  opacity: 1;
  margin-top: 0.9rem;
}

.timeline-section {
  --timeline-tone: #2f6bff;
  --timeline-tone-soft: rgba(47, 107, 255, 0.14);
  padding: 1.2rem;
  border: 1px solid #dbe2ff;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, var(--timeline-tone-soft), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 254, 0.98) 100%);
  transition: background 300ms ease, border-color 300ms ease;
}

.timeline-section[data-tone="pge"] {
  --timeline-tone: #2f6bff;
  --timeline-tone-soft: rgba(47, 107, 255, 0.14);
  border-color: #dbe2ff;
}

.timeline-section[data-tone="ibm"] {
  --timeline-tone: #5c39ff;
  --timeline-tone-soft: rgba(92, 57, 255, 0.14);
  border-color: #ded5ff;
}

.timeline-section[data-tone="dicks"] {
  --timeline-tone: #ff6a3d;
  --timeline-tone-soft: rgba(255, 106, 61, 0.14);
  border-color: #ffd9cd;
}

.timeline-section[data-tone="store"] {
  --timeline-tone: #0f8f6f;
  --timeline-tone-soft: rgba(15, 143, 111, 0.14);
  border-color: #cdebe2;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding-left: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--timeline-tone);
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, #fff 6%);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 1.22rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: var(--timeline-tone);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.9);
}

.timeline-item.is-open {
  border-color: color-mix(in srgb, var(--timeline-tone) 30%, #d8dbe5);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--timeline-tone) 18%, #f0f1f5);
}

.timeline-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 1rem 1rem 0.92rem;
  display: grid;
  gap: 0.2rem;
  cursor: pointer;
}

.timeline-role {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text);
}

.timeline-company {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.timeline-date {
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: color-mix(in srgb, var(--timeline-tone) 62%, #6c7280);
  font-weight: 700;
}

.timeline-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1rem;
  transition: max-height 240ms ease, opacity 200ms ease, padding 200ms ease;
}

.timeline-item.is-open .timeline-detail {
  max-height: 320px;
  opacity: 1;
  padding: 0 1rem 1rem;
}

.education-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.92);
}

.education-card h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.education-meta {
  margin: 0.45rem 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  color: #6f7584;
  font-weight: 700;
}

.detail-meta {
  margin-top: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #767680;
  font-weight: 700;
}

.about-copy {
  max-width: 60ch;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.about-education {
  margin-top: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  background: color-mix(in srgb, var(--surface) 94%, #fff 6%);
}

.about-work-block {
  margin-top: 1.8rem;
}

.about-work-block .work-subtitle {
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  letter-spacing: -0.01em;
}

.education-label {
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: #7b7b84;
  font-weight: 700;
}

.about-education h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.education-date {
  margin: 0.45rem 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #6f7584;
}

.education-majors {
  display: grid;
  gap: 0.45rem;
}

.education-majors p {
  margin: 0;
  border: 1px solid #e6e8ef;
  border-radius: 12px;
  padding: 0.58rem 0.72rem;
  background: #fafafe;
  color: #4f535f;
  font-size: 0.94rem;
  line-height: 1.4;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  background: rgba(251, 251, 252, 0.92);
}

.mini-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: #7f7f86;
  font-weight: 700;
}

.mini-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.photo-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.photo-top {
  margin-bottom: 1.3rem;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  text-align: center;
}

.photo-top-avatar {
  width: 112px;
  height: 112px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7fa 100%);
  image-rendering: pixelated;
}

.photography-typed-lead {
  margin: 0;
  max-width: 62ch;
  color: #3f4452;
  line-height: 1.7;
  font-size: 1.02rem;
}

.photography-typed-lead.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.12em;
  vertical-align: -0.05em;
  background: var(--text);
  animation: blink-caret 850ms steps(1, end) infinite;
}

.photo-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 90%, #fff 10%);
  text-align: left;
  padding: 1.35rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.photo-card[data-photo-category="film"] {
  --photo-tone: rgba(255, 134, 77, 0.22);
  --photo-border: #ffbf9e;
}

.photo-card[data-photo-category="graduation"] {
  --photo-tone: rgba(47, 107, 255, 0.2);
  --photo-border: #b7c9ff;
}

.photo-card[data-photo-category="gig"] {
  --photo-tone: rgba(255, 78, 139, 0.2);
  --photo-border: #ffc2da;
}

.photo-card[data-photo-category="shenanigans"] {
  --photo-tone: rgba(36, 169, 129, 0.2);
  --photo-border: #b4ead7;
}

.photo-card h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.photo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 42ch;
}

.photo-card-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
  transform: scale(1.03);
  pointer-events: none;
}

.photo-card-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.82) 12%,
    rgba(255, 255, 255, 0.28) 46%,
    rgba(255, 255, 255, 0.1) 100%
  );
}

.photo-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f4f6;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--photo-border, #d6d9e4);
  box-shadow: 0 20px 40px rgba(7, 7, 7, 0.09);
  background: linear-gradient(to bottom, var(--photo-tone, rgba(47, 107, 255, 0.12)), rgba(255, 255, 255, 0.92));
}

.photo-card.is-active {
  border-color: var(--photo-border, #d6d9e4);
  background: linear-gradient(to bottom, var(--photo-tone, rgba(47, 107, 255, 0.12)), rgba(255, 255, 255, 0.92));
}

.photo-card:hover .photo-card-preview {
  opacity: 1;
  transform: scale(1);
}

.photo-cta {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
}

.photo-cta-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-underline-offset: 0.12em;
  transition: text-decoration-color 180ms ease;
}

.photo-cta-link:hover {
  text-decoration-color: var(--text);
}

.photo-cta-link.secondary {
  display: block;
  margin-top: 1rem;
  width: fit-content;
  font-size: 1.05rem;
  color: #4f535f;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.photo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 11, 0.84);
  backdrop-filter: blur(4px);
}

.photo-modal-content {
  position: relative;
  width: min(1200px, 94vw);
  height: min(88vh, 820px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.photo-modal-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
  padding: 0.75rem;
}

.photo-modal-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: none;
  transition: opacity 220ms ease;
}

.photo-modal-stage img.is-visible {
  opacity: 1;
}

.photo-modal-nav {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 14, 18, 0.55);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.2rem;
}

.photo-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-130%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(14, 14, 18, 0.55);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.photo-modal-counter {
  position: absolute;
  bottom: -2.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.2rem 0 2.2rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
}

.social-links a {
  color: var(--text);
  font-size: clamp(1.3rem, 2.6vw, 2.3rem);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.12em;
  transition: text-decoration-color 160ms ease;
}

.social-links a:hover {
  text-decoration-color: var(--text);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes blink-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (min-width: 840px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero-art {
    justify-items: end;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-card-featured {
    grid-column: span 2;
  }

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

  .photo-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.7rem 0;
  }

  .logo {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .avatar-slot-hero .avatar-shell,
  .avatar-slot-hero .avatar-sprite {
    width: 176px;
    height: 176px;
  }

  .avatar-slot-inline .avatar-shell,
  .avatar-slot-inline .avatar-sprite {
    width: 88px;
    height: 88px;
  }

  .nav-links {
    gap: 0.62rem;
    font-size: 0.92rem;
    white-space: nowrap;
    min-width: max-content;
  }

  .nav-right {
    width: 100%;
    gap: 0.55rem;
    justify-content: space-between;
  }

  .nav-right nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-right nav::-webkit-scrollbar {
    display: none;
  }

  .header-controls {
    gap: 0.35rem;
  }

  .mode-toggle {
    padding: 0.33rem 0.56rem;
    font-size: 0.84rem;
  }

  .marquee-track {
    animation: none;
    transform: none;
  }

  .hero {
    padding-top: 6.6rem;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section {
    padding: 4rem 0;
  }

  .photo-modal-content {
    width: 96vw;
    height: 82vh;
    grid-template-columns: 1fr;
  }

  .photo-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .photo-modal-nav.prev {
    left: 0.4rem;
  }

  .photo-modal-nav.next {
    right: 0.4rem;
  }
}
