:root {
  --bg: #060709;
  --bg-alt: #0c1016;
  --panel: rgba(15, 18, 25, 0.8);
  --panel-strong: rgba(21, 25, 34, 0.96);
  --panel-soft: rgba(17, 21, 29, 0.72);
  --text: #f5f0e8;
  --muted: #ada397;
  --line: rgba(226, 210, 185, 0.14);
  --gold: #d8b98a;
  --gold-strong: #f1ce9a;
  --ice: #9db4d0;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.24);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100% - 2rem));
  --transition: 220ms ease;
  --section-space: clamp(4.75rem, 8vw, 6.65rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top right, rgba(216, 185, 138, 0.14), transparent 22rem),
    radial-gradient(circle at left 20%, rgba(157, 180, 208, 0.12), transparent 24rem),
    linear-gradient(180deg, #050608 0%, #080b10 38%, #0c1016 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
}

input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(241, 206, 154, 0.22);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid rgba(241, 206, 154, 0.58);
  outline-offset: 3px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 160px 160px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 88%);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
}

.section[id] {
  scroll-margin-top: 6.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(6, 7, 9, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.navbar {
  min-height: 5.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(241, 206, 154, 0.95), rgba(157, 180, 208, 0.86));
  color: #111318;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-menu a {
  color: var(--muted);
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--gold-strong);
  background: rgba(255, 255, 255, 0.04);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--gold-strong);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.33rem auto;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.hero {
  padding-top: 3.35rem;
}

.hero-stage {
  position: relative;
  min-height: min(86vh, 860px);
  overflow: hidden;
  isolation: isolate;
  border-radius: calc(var(--radius-xl) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: #050608;
}

.hero-stage-image {
  width: 100%;
  height: 100%;
  min-height: min(86vh, 860px);
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.08);
  transform: scale(1.015);
}

.hero-stage-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.84) 0%, rgba(5, 6, 8, 0.48) 40%, rgba(5, 6, 8, 0.14) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.1) 0%, rgba(5, 6, 8, 0.68) 100%);
}

.hero-stage-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.78rem;
  padding: clamp(1.5rem, 3.5vw, 3.2rem);
  max-width: min(760px, 100%);
  isolation: isolate;
}

.hero-stage-content::before {
  content: "";
  position: absolute;
  left: clamp(1rem, 2vw, 1.45rem);
  bottom: clamp(1rem, 2vw, 1.45rem);
  width: min(42rem, calc(100% - 2rem));
  height: clamp(23rem, 56%, 34rem);
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.12) 0%, rgba(8, 10, 14, 0.48) 38%, rgba(8, 10, 14, 0.88) 100%);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-stage-content > * {
  position: relative;
  z-index: 1;
}

.hero-stage-lead {
  max-width: 34rem;
  margin: 0;
  color: rgba(245, 240, 232, 0.86);
  font-size: 1.02rem;
  line-height: 1.82;
}

.hero-layout,
.about-layout,
.contact-layout,
.project-showcase,
.stat-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
}

.eyebrow,
.card-label,
.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.eyebrow,
.card-label {
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero h1,
.section-heading h2,
.vision-card h2,
.page-hero h1 {
  margin: 0;
  line-height: 0.96;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(3.8rem, 8vw, 6.9rem);
  max-width: 12ch;
}

.hero .hero-name {
  max-width: none;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  line-height: 0.94;
  text-wrap: balance;
  max-width: 10.75ch;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.hero .official-name {
  margin: 0;
  max-width: none;
  text-align: left;
  color: rgba(245, 240, 232, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  max-width: 18rem;
}

.identity-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.3rem;
  max-width: 40rem;
}

.identity-tab {
  grid-column: span 2;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.identity-tab:nth-child(4),
.identity-tab:nth-child(5) {
  grid-column: span 3;
}

.identity-tab:hover,
.identity-tab:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(241, 206, 154, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  color: var(--gold-strong);
}

.identity-tab.active {
  border-color: rgba(241, 206, 154, 0.42);
  background: linear-gradient(180deg, rgba(241, 206, 154, 0.16), rgba(241, 206, 154, 0.09));
  color: var(--gold-strong);
  box-shadow: inset 0 0 0 1px rgba(241, 206, 154, 0.08), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.identity-preview {
  margin-top: 0.55rem;
  padding: 1rem 1.08rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(10, 12, 17, 0.58), rgba(10, 12, 17, 0.74));
  backdrop-filter: blur(18px);
  max-width: 38rem;
  box-shadow: var(--shadow-soft);
}

.identity-preview-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.identity-preview-copy {
  margin: 0;
  color: rgba(245, 240, 232, 0.84);
  line-height: 1.8;
}

.identity-preview-link {
  margin-top: 0.75rem;
}

.hero h1 span {
  display: block;
  color: var(--ice);
}

.hero-lead,
.panel p,
.project-card p,
.timeline-content p,
.thought-card strong,
.social-card span,
.footer-shell p,
.reading-content p,
.page-intro {
  color: var(--muted);
  line-height: 1.82;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.meta-card,
.panel,
.project-card,
.stat-card,
.thought-card,
.social-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 22, 30, 0.84), rgba(11, 14, 20, 0.94));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.meta-card {
  padding: 1rem;
  border-radius: var(--radius-md);
}

.meta-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.button:hover,
.button:focus-visible,
.thought-card:hover,
.thought-card:focus-visible,
.social-card:hover,
.social-card:focus-visible,
.project-card:hover,
.project-card:focus-visible,
.stat-card:hover,
.panel:hover {
  transform: translateY(-4px);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold-strong), #ba9871);
  color: #111318;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.button-secondary {
  border-color: rgba(241, 206, 154, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

.portrait-shell {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.8rem 1.2rem 1.2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(26, 29, 37, 0.92), rgba(10, 12, 17, 0.94));
  box-shadow: var(--shadow);
}

.portrait-shell::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(241, 206, 154, 0.08);
  pointer-events: none;
}

.portrait {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  object-fit: contain;
  filter: grayscale(100%) contrast(1.08);
}

.gallery-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(216, 185, 138, 0.1), transparent 14rem),
    linear-gradient(180deg, rgba(18, 22, 30, 0.94), rgba(10, 12, 17, 0.96));
  box-shadow: var(--shadow);
}

.gallery-stage {
  position: relative;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.gallery-viewport.is-dragging {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  transition: transform 700ms ease;
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 16 / 10;
  display: grid;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 10, 13, 0.78);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: rgba(18, 22, 30, 0.92);
  border-color: rgba(241, 206, 154, 0.22);
  color: var(--gold-strong);
}

.gallery-arrow-prev {
  left: 1rem;
}

.gallery-arrow-next {
  right: 1rem;
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.gallery-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: width var(--transition), background var(--transition), transform var(--transition);
}

.gallery-dot:hover,
.gallery-dot:focus-visible {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.32);
}

.gallery-dot.active {
  width: 2rem;
  background: var(--gold-strong);
}

.portrait-badge {
  position: absolute;
  top: -0.9rem;
  left: 1.3rem;
  z-index: 1;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(8, 10, 13, 0.92);
  border: 1px solid rgba(241, 206, 154, 0.18);
}

.portrait-badge span,
.vision-card p,
.thought-card span,
.social-card strong {
  display: block;
}

.portrait-badge span {
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.vision-card {
  position: static;
  width: 100%;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(8, 10, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vision-card h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

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

.stat-card,
.panel,
.project-card {
  padding: clamp(1.45rem, 2vw, 1.9rem);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.stat-card span,
.thought-card span {
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.stat-card strong,
.project-card h3,
.timeline-content h3,
.section-heading h2,
.page-hero h1 {
  display: block;
  margin: 0.55rem 0 0.9rem;
}

.section-shell {
  display: grid;
  gap: clamp(2rem, 3vw, 2.85rem);
}

.section-heading {
  display: grid;
  gap: 0.5rem;
  max-width: 46rem;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.identity-section-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.6rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  max-width: 17ch;
  text-wrap: balance;
}

.about-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.panel-accent {
  background: radial-gradient(circle at top right, rgba(216, 185, 138, 0.12), transparent 12rem), var(--panel-strong);
}

.identity-section-grid .panel h3 {
  margin-top: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--text);
  transition: color var(--transition);
}

.project-showcase {
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.35rem;
}

.project-feature {
  background: radial-gradient(circle at top right, rgba(216, 185, 138, 0.13), transparent 14rem), linear-gradient(180deg, rgba(21, 25, 34, 0.98), rgba(14, 17, 23, 0.96));
}

.project-topline,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.project-topline {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pill,
.project-tags span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
}

.project-year {
  color: var(--ice);
}

.timeline {
  display: grid;
  gap: 1.2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.timeline-line {
  position: relative;
  display: block;
  margin-inline: auto;
  width: 2px;
  background: linear-gradient(180deg, rgba(241, 206, 154, 0.7), rgba(157, 180, 208, 0.2));
}

.timeline-line::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(216, 185, 138, 0.1);
}

.timeline-content {
  border-radius: var(--radius-lg);
}

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

.thought-card {
  padding: 1.55rem;
  min-height: 220px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.thought-card strong {
  margin-top: 0.9rem;
  font-size: 1.2rem;
  color: var(--text);
}

.contact-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 1.8rem 2rem;
}

.contact-copy {
  display: grid;
  gap: 0.5rem;
}

.contact-copy .eyebrow {
  margin-bottom: 0;
}

.contact-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  max-width: 16ch;
}

.contact-copy p {
  margin: 0;
  max-width: 34rem;
}

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

.social-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition), border-color var(--transition);
}

.social-card i {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-strong);
}

.social-card span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.writer-links {
  display: grid;
  gap: 0.85rem;
}

.writer-link {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.writer-link:hover,
.writer-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(241, 206, 154, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.writer-link i {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-strong);
}

.writer-link span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.writer-link strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.98rem;
}

.comments-shell,
.comments-stack,
.comments-feed {
  display: grid;
  gap: 1rem;
}

.admin-comments-head,
.admin-comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.admin-comments-head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.comments-note,
.comment-status,
.comment-reply p,
.comment-empty p,
.admin-comment-message,
.admin-comment-meta span,
.admin-comment-empty p {
  color: var(--muted);
  line-height: 1.7;
}

.comments-note {
  margin: 0.9rem 0 0;
  font-size: 0.84rem;
}

.admin-comment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.comments-shell {
  max-width: 900px;
  margin: 0 auto;
  gap: 1.2rem;
}

.comment-form {
  display: grid;
  gap: 0.95rem;
}

.comment-field {
  display: grid;
  gap: 0.45rem;
}

.comment-field label,
.admin-field span {
  color: var(--text);
}

.comment-field input,
.comment-field textarea,
.admin-reply-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}

.comment-field input:focus,
.comment-field textarea:focus,
.admin-reply-input:focus {
  outline: none;
  border-color: rgba(216, 185, 138, 0.26);
  background: rgba(255, 255, 255, 0.04);
}

.comment-field textarea,
.admin-reply-input {
  min-height: 7.5rem;
  resize: vertical;
}

.comment-status,
.admin-comment-message {
  margin: 0;
}

.comment-status {
  min-height: 1.25rem;
  margin-top: 0.55rem;
}

.comment-status.is-error {
  color: #ffb4a8;
}

.comments-list,
.admin-comments-list {
  display: grid;
  gap: 1rem;
}

.comment-card,
.comment-empty,
.admin-comment-item,
.admin-comment-empty {
  padding: 1.15rem 1.2rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 21, 29, 0.74), rgba(12, 15, 21, 0.86));
  box-shadow: var(--shadow-soft);
}

.admin-comment-meta strong,
.comment-empty strong,
.admin-comment-empty strong {
  display: block;
}

.admin-comment-meta span {
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

.comment-message {
  margin: 0;
  color: var(--text);
  line-height: 1.85;
  white-space: pre-line;
}

.comment-author-line {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.comment-reply {
  margin-top: 0.9rem;
  margin-left: 0.9rem;
  padding-left: 0.95rem;
  border-left: 1px solid rgba(216, 185, 138, 0.22);
}

.comment-reply-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--ice);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.comments-panel {
  padding: 1.4rem;
  background:
    radial-gradient(circle at top right, rgba(216, 185, 138, 0.08), transparent 12rem),
    linear-gradient(180deg, rgba(18, 22, 30, 0.9), rgba(11, 14, 20, 0.95));
}

.site-footer {
  padding: 0 0 5.5rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-shell a {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.footer-shell a:hover,
.footer-shell a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(241, 206, 154, 0.24);
  color: var(--gold-strong);
}

.footer-shell .back-link {
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.floating-ai {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(241, 206, 154, 0.95), rgba(157, 180, 208, 0.95));
  color: #111318;
  font-weight: 700;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.floating-ai-image {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(17, 19, 24, 0.2);
  background: #0c1016;
}

.floating-ai-text {
  white-space: nowrap;
}

.assistant-shell {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 130;
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 1rem);
  display: grid;
  gap: 0.9rem;
  width: min(460px, calc(100vw - 2rem));
  padding: 1rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(216, 185, 138, 0.12), transparent 12rem),
    linear-gradient(180deg, rgba(14, 17, 24, 0.98), rgba(8, 10, 14, 0.97));
  box-shadow: var(--shadow);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.assistant-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.assistant-heading {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.assistant-heading-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.assistant-heading-image {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.assistant-header h2,
.assistant-answer h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
}

.assistant-header .eyebrow {
  margin: 0 0 0.2rem;
}

.assistant-header h2 {
  font-size: 2rem;
}

.assistant-status {
  margin: 0;
  color: rgba(245, 240, 232, 0.72);
  font-size: 0.8rem;
  line-height: 1.65;
}

.assistant-close {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.assistant-intro,
.assistant-answer p {
  color: var(--muted);
  line-height: 1.7;
}

.assistant-intro {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.assistant-answer a {
  color: var(--gold-strong);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.assistant-form {
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.1rem 0 0.15rem;
  background: linear-gradient(180deg, rgba(14, 17, 24, 0.98), rgba(14, 17, 24, 0.86) 76%, rgba(14, 17, 24, 0));
}

.assistant-input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.assistant-input {
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}

.assistant-input:focus {
  outline: none;
  border-color: rgba(241, 206, 154, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.assistant-submit {
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(241, 206, 154, 0.95), rgba(195, 157, 108, 0.95));
  color: #111318;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition);
}

.assistant-submit:hover,
.assistant-submit:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.assistant-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.assistant-conversation {
  display: grid;
  gap: 0.75rem;
}

.assistant-question-card,
.assistant-answer {
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.assistant-question-card {
  background: rgba(255, 255, 255, 0.03);
}

.assistant-question-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.assistant-suggestions {
  margin: 0;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.assistant-more {
  margin: 0;
}

.assistant-questions {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.assistant-question {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  line-height: 1.55;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.assistant-question:hover,
.assistant-question:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(241, 206, 154, 0.36);
}

.assistant-question.active {
  background: rgba(241, 206, 154, 0.12);
  border-color: rgba(241, 206, 154, 0.3);
  color: var(--gold-strong);
}

.assistant-answer {
  background:
    linear-gradient(180deg, rgba(241, 206, 154, 0.07), rgba(255, 255, 255, 0.02));
}

.assistant-answer.is-fallback {
  border-color: rgba(157, 180, 208, 0.18);
  background:
    linear-gradient(180deg, rgba(157, 180, 208, 0.08), rgba(255, 255, 255, 0.02));
}

.assistant-answer h3 {
  font-size: 1.5rem;
  line-height: 1.05;
}

.assistant-answer p {
  margin: 0.45rem 0 0;
}

.assistant-answer-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.admin-page {
  padding: 6rem 0 4rem;
}

.admin-main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.admin-card {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 22, 0.94);
  box-shadow: var(--shadow);
}

.admin-card h1,
.admin-card h2 {
  margin-top: 0;
  font-family: "Cormorant Garamond", serif;
}

.admin-layout {
  display: grid;
  gap: 1.2rem;
}

.admin-hidden {
  display: none;
}

.admin-fields {
  display: grid;
  gap: 1rem;
}

.admin-field {
  display: grid;
  gap: 0.45rem;
}

.admin-field label {
  color: var(--text);
}

.admin-field input,
.admin-json {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.9rem 1rem;
}

.admin-json {
  min-height: 65vh;
  resize: vertical;
  font-family: "Consolas", "Courier New", monospace;
  line-height: 1.6;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
}

.admin-divider {
  height: 1px;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.08);
}

.admin-comments-panel {
  display: grid;
  gap: 1rem;
}

.admin-comment-item {
  display: grid;
  gap: 1rem;
}

.admin-comment-message {
  white-space: pre-line;
}

.admin-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-comment-badge.is-pending {
  background: rgba(157, 180, 208, 0.12);
  border: 1px solid rgba(157, 180, 208, 0.22);
  color: var(--ice);
}

.admin-comment-badge.is-approved {
  background: rgba(216, 185, 138, 0.12);
  border: 1px solid rgba(216, 185, 138, 0.22);
  color: var(--gold-strong);
}

.admin-comment-badge.is-rejected {
  background: rgba(255, 123, 123, 0.12);
  border: 1px solid rgba(255, 123, 123, 0.2);
  color: #ffb4a8;
}

.admin-note,
.admin-status {
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  position: relative;
  padding: 7.5rem 0 3.35rem;
}

.page-hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
}

.page-intro {
  max-width: 47rem;
  margin-top: 1.3rem;
  font-size: 1.04rem;
}

.reading-shell {
  display: grid;
  gap: 1.5rem;
}

.reading-content {
  max-width: 860px;
  padding: clamp(1.65rem, 3vw, 2.35rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(216, 185, 138, 0.08), transparent 14rem),
    rgba(13, 16, 22, 0.92);
  box-shadow: var(--shadow);
}

.reading-content h2 {
  margin-top: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-strong);
}

.panel p + p,
.reading-content p + p {
  margin-top: 1rem;
}

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

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

.section-spotlight .panel,
.section-spotlight .timeline-content {
  border-color: rgba(241, 206, 154, 0.26);
  box-shadow: 0 0 0 1px rgba(241, 206, 154, 0.06), var(--shadow);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 240ms;
}

@media (max-width: 1024px) {
  .hero-layout,
  .about-layout,
  .identity-section-grid,
  .project-showcase,
  .thought-grid,
  .contact-layout,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-stage,
  .hero-stage-image {
    min-height: 72vh;
  }

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

@media (max-width: 760px) {
  .section {
    padding: 4.15rem 0;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-stage,
  .hero-stage-image {
    min-height: 860px;
    min-height: max(100svh, 860px);
  }

  .hero-stage-image {
    object-position: 74% top;
  }

  .hero-stage-overlay {
    background:
      linear-gradient(180deg, rgba(5, 6, 8, 0.06) 0%, rgba(5, 6, 8, 0.2) 32%, rgba(5, 6, 8, 0.74) 78%, rgba(5, 6, 8, 0.94) 100%);
  }

  .hero-stage-content {
    max-width: none;
    justify-content: flex-end;
    gap: 0.82rem;
    padding: 1.15rem;
  }

  .hero-stage-content::before {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    width: auto;
    height: min(33rem, 58%);
  }

  .hero-stage-lead {
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .hero .eyebrow {
    margin-bottom: 0.5rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .button {
    min-height: 3rem;
    padding: 0.82rem 1.15rem;
  }

  .identity-preview {
    background: rgba(10, 12, 17, 0.58);
    padding: 0.9rem 0.95rem;
  }

  .identity-preview-copy {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    top: 5rem;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: rgba(8, 10, 13, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-menu.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
  }

  .admin-comments-head,
  .admin-comment-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1,
  .section-heading h2,
  .page-hero h1 {
    max-width: none;
  }

  .identity-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: 100%;
  }

  .identity-tab {
    grid-column: span 2;
    padding: 0.62rem 0.56rem;
    font-size: 0.7rem;
    letter-spacing: 0.01em;
  }

  .identity-tab:nth-child(4),
  .identity-tab:nth-child(5) {
    grid-column: span 3;
  }

  .timeline-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .gallery-arrow {
    width: 2.75rem;
    height: 2.75rem;
  }

  .gallery-arrow-prev {
    left: 0.7rem;
  }

  .gallery-arrow-next {
    right: 0.7rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .floating-ai {
    right: 0.9rem;
    bottom: 0.9rem;
    padding-inline: 1rem;
  }

  .assistant-shell {
    right: 0.9rem;
    bottom: 0.9rem;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-stage,
  .hero-stage-image {
    min-height: 940px;
    min-height: max(112svh, 940px);
  }

  .hero-stage-image {
    object-position: 76% top;
  }

  .hero-stage-content {
    padding: 1rem;
    gap: 0.65rem;
  }

  .hero .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .hero .hero-name {
    font-size: clamp(1.78rem, 8.2vw, 2.18rem);
    letter-spacing: 0.03em;
    max-width: 10.5ch;
  }

  .hero .official-name {
    font-size: 0.73rem;
    letter-spacing: 0.065em;
  }

  .hero-stage-lead {
    font-size: 0.94rem;
    line-height: 1.66;
  }

  .identity-tabs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .identity-tabs::-webkit-scrollbar {
    display: none;
  }

  .identity-tab {
    flex: 0 0 auto;
    grid-column: auto;
    padding: 0.56rem 0.6rem;
    font-size: 0.66rem;
    border-radius: 0.9rem;
    scroll-snap-align: start;
  }

  .identity-preview {
    padding: 0.8rem 0.85rem;
  }

  .identity-preview-label {
    margin-bottom: 0.35rem;
  }

  .identity-preview-copy {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .assistant-input-shell {
    grid-template-columns: 1fr;
  }

  .gallery-panel {
    padding: 0.8rem;
  }

  .gallery-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .gallery-slide,
  .gallery-slide img {
    aspect-ratio: 4 / 5;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .reading-content {
    padding: 1.5rem;
  }
}

@media (max-width: 420px) {
  .hero-stage,
  .hero-stage-image {
    min-height: 1000px;
    min-height: max(118svh, 1000px);
  }

  .hero-stage-image {
    object-position: 78% top;
  }

  .identity-tabs {
    display: flex;
  }

  .identity-tab,
  .identity-tab:nth-child(4),
  .identity-tab:nth-child(5) {
    grid-column: auto;
  }

  .hero .hero-name {
    font-size: 1.62rem;
  }

  .hero-stage-lead {
    font-size: 0.91rem;
  }

  .identity-tab {
    padding: 0.5rem 0.46rem;
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
