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

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-900: #171717;
  --primary: #008446;
  --primary-dark: #006835;
  --primary-light: rgba(0, 132, 70, 0.1);
  --accent: #00a854;
  --success: #00c853;
  --danger: #a11a1a;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --text-primary: var(--black);
  --text-secondary: var(--gray-600);
  --border-color: var(--gray-200);
  --nav-bg: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] {
  --bg-primary: var(--gray-900);
  --bg-secondary: #0a0a0a;
  --text-primary: var(--white);
  --text-secondary: var(--gray-400);
  --border-color: #2a2a2a;
  --nav-bg: rgba(23, 23, 23, 0.8);
  --gray-100: #1a1a1a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

::selection {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

nav .logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.1px;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-right: auto;
}

nav a,
nav button.link-button {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0;
  background: none;
  border: none;
  padding: 0;
}

nav a:hover,
nav button.link-button:hover {
  color: var(--text-primary);
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s;
  margin-right: auto;
}

.back-link:hover {
  color: var(--text-primary);
}

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

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.lang-selector button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
  text-transform: uppercase;
}

.lang-selector button:hover,
.lang-selector button.active {
  color: var(--text-primary);
}

.lang-selector button.active {
  font-weight: 600;
}

.lang-separator {
  color: var(--border-color);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--text-primary);
}

.theme-icon {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  transition: stroke 0.2s;
}

.theme-toggle:hover .theme-icon {
  stroke: var(--text-primary);
}

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10rem 3rem 8rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
  max-width: 900px;
}

body[data-page="home"] .hero h1 {
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -1.1px;
}

.hero .subtitle {
  font-size: clamp(1.0625rem, 2.25vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 28px;
  font-weight: 400;
  margin-bottom: 2.75rem;
  letter-spacing: 0;
  transition: color 0.3s ease;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 3rem;
  transition: color 0.3s ease;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: color 0.3s ease;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  position: relative;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2px;
}

.links a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem 6rem;
}

main > section,
.content section {
  margin-bottom: 7rem;
  scroll-margin-top: 100px;
}

section h2.section-kicker,
.section-kicker,
main > section > h2,
.content-section-kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  transition: color 0.3s ease;
}

.projects-grid {
  display: grid;
  gap: 5rem;
}

.project {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border-color);
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.project:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-link:hover .project-image,
.gallery-trigger:hover img {
  transform: scale(1.02);
}

.project-link:hover .project-image-wrapper {
  opacity: 0.9;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 120px;
  height: fit-content;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.5;
  font-weight: 400;
  transition: color 0.3s ease;
}

.project-type {
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0;
  line-height: 1.5;
  font-weight: 400;
  transition: color 0.3s ease;
}

.project-image-wrapper,
.featured-image-wrapper,
.image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.featured-image-wrapper {
  aspect-ratio: 16 / 9;
}

.project-hero-image {
  width: 100%;
}

.project-image,
.featured-image img,
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-content h3 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.875rem;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.project:hover .project-content h3 {
  color: var(--primary);
}

.project-content p,
.about-content p,
.content p,
.content li,
.panel p,
.auth-card p,
.empty-state p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0;
  transition: color 0.3s ease;
}

.project-content p {
  margin-bottom: 1.5rem;
}

.project-tags,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 400;
  transition: color 0.3s ease;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
}

.service {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.service:last-child {
  border-bottom: none;
}

.service h3,
.section-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.service p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.about-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-content {
  max-width: 700px;
}

.profile-wrapper {
  display: block;
}

.profile-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Experience Timeline ────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  max-width: 700px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  transition: border-color 0.3s ease;
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-meta {
  padding-top: 0.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.timeline-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  color: var(--text-tertiary, var(--text-secondary));
  white-space: nowrap;
  transition: color 0.3s ease;
}

.timeline-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-green, #16a34a);
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--accent-green, #16a34a);
  border-radius: 4px;
}

.timeline-role {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.timeline-company {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  transition: color 0.3s ease;
}

/* ── Skills Grid ────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
  max-width: 700px;
}

.skill-group h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-list li {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
  transition: color 0.3s ease;
}

footer,
.site-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s ease;
}

footer p,
.site-footer p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.project-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.meta-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.featured-image {
  max-width: 1400px;
  margin: 0 auto 6rem;
  padding: 0 3rem;
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3rem 6rem;
}

.content h2 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  margin-top: 2rem;
  color: var(--text-primary);
}

.content ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.highlight-box {
  background: var(--bg-secondary);
  border-left: 2px solid var(--text-primary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.highlight-box p {
  margin-bottom: 0;
}

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

.image-grid-single {
  margin: 3rem 0;
}

.image-caption {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  text-align: center;
}

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

.result-item {
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.result-number {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.result-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.listing-page-intro {
  padding-top: 10rem;
}

.filter-bar,
.table-wrap,
.panel,
.auth-card,
.contact-card,
.empty-state {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.filter-bar,
.panel,
.table-wrap,
.contact-card,
.auth-card,
.empty-state {
  padding: 2rem;
}

.filter-grid,
.form-grid,
.admin-form__grid,
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  padding: 0.9rem 1rem;
  min-height: 48px;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.button,
.button-secondary,
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: auto;
  padding: 0 0 2px;
  text-decoration: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.button {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.button-danger {
  color: var(--danger);
  border-bottom-color: rgba(161, 26, 26, 0.3);
}

.button:hover,
.button-secondary:hover,
.button-danger:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.button-danger:hover {
  color: var(--danger);
  border-bottom-color: var(--danger);
}

.button[disabled],
.button-secondary[disabled],
.button-danger[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.button-row,
.admin-toolbar,
.image-actions,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.inline-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.help-text,
.status-message,
.pagination__info,
.muted {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.status-message.is-success {
  color: var(--success);
}

.status-message.is-error {
  color: var(--danger);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.auth-layout,
.admin-layout {
  padding: 8rem 1.5rem 4rem;
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
}

.admin-shell {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

.admin-sidebar {
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: fit-content;
}

.admin-content {
  display: grid;
  gap: 2rem;
}

.stats-grid,
.admin-cards,
.visual-list,
.project-grid {
  display: grid;
  gap: 1.5rem;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  border-bottom: 1px solid var(--border-color);
  padding: 0 0 1.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.stat-value {
  font-size: 2rem;
  margin-top: 0.75rem;
}

.dropzone {
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  padding: 1.25rem 0;
  cursor: pointer;
}

.dropzone.is-active {
  background: var(--bg-secondary);
}

.visual-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.visual-card:first-child {
  border-top: 1px solid var(--border-color);
}

.admin-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.button-row .button,
.button-row .button-secondary,
.button-row .button-danger,
.image-actions .button,
.image-actions .button-secondary,
.image-actions .button-danger {
  min-height: auto;
}

.button-secondary input[type="checkbox"] {
  accent-color: var(--primary);
  margin-right: 0.4rem;
}

.visual-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.repeater-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.repeater-stack {
  display: grid;
  gap: 2rem;
}

.repeater-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.repeater-card {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.repeater-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__dialog {
  width: min(100%, 1100px);
}

.lightbox__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.lightbox__stage img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #000000;
}

.lightbox__caption {
  margin-top: 0.75rem;
  color: #ffffff;
  font-size: 0.9375rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-trigger {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.gallery-trigger img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border-color);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-trigger span {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.admin-notice {
  padding: 0.875rem 1.25rem;
  border-left: 3px solid;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.admin-notice--warning {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.07);
  color: var(--text-primary);
}

.admin-notice--error {
  border-color: var(--danger);
  background: rgba(161, 26, 26, 0.07);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* ── About page ─────────────────────────────────────────────────────────────── */

body[data-page="about"] .hero {
  padding-bottom: 4rem;
}

body[data-page="about"] .hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
}

/* Profile intro layout */
.about-intro {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  flex-shrink: 0;
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-bio {
  font-size: 1.0625rem;
  color: var(--text-primary);
  line-height: 1.75;
  max-width: 560px;
  transition: color 0.3s ease;
}

/* Gallery photos */
.about-intro-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.about-intro-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.about-intro-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Timeline content area */
.timeline-content {
  position: relative;
}

/* Experience with side banner */
.timeline-body {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 2rem;
  align-items: start;
}

.timeline-side-banner {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

/* Skills inline */
.skill-items {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

/* Embed cards (podcast / video) */
.embed-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem 2rem 1.75rem;
  background: var(--bg-secondary);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.embed-card__header {
  margin-bottom: 1.5rem;
}

.embed-card__header h2 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.embed-card__header p {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.podcast-embed iframe {
  width: 100%;
  height: 152px;
  border: none;
  display: block;
  border-radius: 12px;
}

.media-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.media-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Admin helpers */
.timeline-banner {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.about-banner-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
}

@media (max-width: 1024px) {
  nav .container,
  .hero,
  main,
  footer,
  .featured-image {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .project,
  .about-layout,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .project-info {
    position: static;
    flex-direction: row;
    gap: 1rem;
  }

  .projects-grid {
    gap: 4rem;
  }

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

  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  nav .container {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
  }

  nav .logo {
    font-size: 0.9375rem;
  }

  nav ul {
    gap: 1.5rem;
    order: 3;
    width: 100%;
    margin-top: 0.625rem;
    margin-right: 0;
    margin-left: 0;
    padding-top: 0.625rem;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
  }

  nav a,
  nav button.link-button {
    font-size: 0.875rem;
  }

  .back-link {
    order: 3;
    width: 100%;
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--border-color);
  }

  .nav-controls {
    order: 2;
    gap: 0.625rem;
  }

  .theme-toggle {
    width: 28px;
    height: 28px;
  }

  .theme-icon {
    width: 14px;
    height: 14px;
  }

  .lang-selector,
  .lang-selector button {
    font-size: 0.75rem;
  }

  .hero,
  .featured-image,
  .content,
  footer,
  main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero {
    padding-top: 9rem;
  }

  body[data-page="home"] .hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.2rem);
    line-height: 1.08;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  main > section,
  .content section {
    margin-bottom: 5rem;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }

  .project-content p,
  .about-content p,
  .content p,
  .content li {
    font-size: 0.9375rem;
  }

  .about-layout,
  .about-intro,
  .image-grid,
  .gallery-grid,
  .results-grid,
  .contact-layout,
  .filter-grid,
  .form-grid,
  .admin-form__grid,
  .visual-card,
  .timeline-body {
    grid-template-columns: 1fr;
  }

  .about-photo-wrap {
    max-width: 140px;
  }

  .timeline-side-banner {
    aspect-ratio: 16 / 9;
    max-width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .timeline-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }

  footer,
  .site-footer {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  nav .container {
    padding: 0.875rem 1rem;
  }

  nav .logo {
    font-size: 0.875rem;
  }

  nav ul {
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  nav a,
  nav button.link-button {
    font-size: 0.8125rem;
  }

  .nav-controls {
    gap: 0.5rem;
  }

  .hero {
    padding-top: 8.5rem;
  }

  .links {
    flex-direction: column;
    gap: 1rem;
  }

  .project-info {
    flex-direction: column;
    gap: 0.375rem;
  }

  .project-content h3 {
    font-size: 1.375rem;
  }
}
