:root {
  --bg: #050608;
  --bg-alt: #0b0d12;
  --surface: #11141c;
  --surface-soft: #181b24;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #f7f7f7;
  --text-soft: #a5a9b6;
  --accent: #7f5af0;
  --accent-soft: rgba(127, 90, 240, 0.18);
  --accent-2: #ffb347;
  --danger: #ff5c7a;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.4);
  --transition-fast: 180ms ease-out;
  --transition-med: 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #02040a 45%, #020308 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* Layout */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #141826, #060712 60%, #04040a 100%);
}

.section-header {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", serif;
  font-size: clamp(1.9rem, 2.3vw, 2.3rem);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 4, 10, 0.94), rgba(2, 4, 10, 0.75), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 28% 72% 68% 32% / 34% 31% 69% 66%;
  background: radial-gradient(circle at 25% 15%, #fff, #ffb347 18%, #ff4d97 40%, #7f5af0 100%);
  box-shadow: 0 0 22px rgba(127, 90, 240, 0.8);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #e5e7f5;
}

.nav {
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.32rem 0;
  transition: color var(--transition-fast);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width var(--transition-med);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: #ffffff;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 60%;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7f5;
  transition: transform var(--transition-med), opacity var(--transition-fast);
}

.nav-toggle span + span {
  margin-top: 4px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* Hero */

.hero {
  padding-top: 5.75rem;
  padding-bottom: 5.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-text h1 {
  font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", serif;
  font-size: clamp(2.4rem, 3vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
  color: var(--accent-2);
}

.hero-subtitle {
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-med), color var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med), transform 140ms ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #c056ff);
  color: #050608;
  box-shadow: 0 14px 36px rgba(127, 90, 240, 0.55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(127, 90, 240, 0.7);
}

.btn.secondary {
  background: rgba(14, 16, 26, 0.98);
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-subtle);
}

.btn.secondary:hover {
  background: #171925;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7f5;
  backdrop-filter: blur(10px);
}

.btn.ghost:hover {
  background: rgba(23, 25, 35, 0.96);
}

.btn.full-width {
  width: 100%;
}

.hero-highlight {
  position: relative;
}

.hero-photo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1.2fr 0.9fr;
  gap: 0.8rem;
}

.hero-photo {
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.hero-photo-1 {
  grid-row: 1 / span 2;
  background-image: linear-gradient(135deg, #1d2238, #7f5af0);
}

.hero-photo-2 {
  background-image: linear-gradient(135deg, #101b2f, #ff5c7a);
}

.hero-photo-3 {
  background-image: linear-gradient(135deg, #0f172a, #ffb347);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 55%);
  mix-blend-mode: screen;
}

.hero-stats {
  position: absolute;
  bottom: -1.2rem;
  right: 0.2rem;
  display: flex;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at top left, rgba(127, 90, 240, 0.3), rgba(8, 11, 24, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-subtle);
}

.hero-stats div {
  min-width: 95px;
}

.stat-number {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* Photography */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.filter-btn {
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 20, 0.9);
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-med), border-color var(--transition-med), color var(--transition-med), box-shadow var(--transition-med), transform 120ms ease-out;
}

.filter-btn.active {
  background: var(--accent-soft);
  color: #fdfcff;
  border-color: rgba(127, 90, 240, 0.7);
  box-shadow: 0 0 0 1px rgba(127, 90, 240, 0.28);
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.add-photo-btn {
  margin-left: auto;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
}

.add-photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  backdrop-filter: blur(24px);
}

.add-photo-modal.open {
  display: flex;
}

.add-photo-inner {
  position: relative;
  width: min(420px, 100% - 2rem);
  background: radial-gradient(circle at top left, rgba(127, 90, 240, 0.12), #0a0d18);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.add-photo-inner h3 {
  margin: 0 0 1.2rem;
  font-size: 1.1rem;
}

.add-photo-form .field {
  margin-bottom: 1rem;
}

.add-photo-form .field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.add-photo-form .file-trigger {
  display: inline-block;
  margin-right: 0.5rem;
}

.add-photo-form .file-name {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.add-photo-form select,
.add-photo-form input[type="text"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  outline: none;
}

.add-photo-form select:focus,
.add-photo-form input[type="text"]:focus {
  border-color: var(--accent);
}

.add-photo-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
  justify-content: flex-end;
}

.add-photo-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-photo-close:hover {
  background: rgba(15, 23, 42, 0.98);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.photo-card {
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
}

.photo-card:hover::after {
  opacity: 1;
}

.photo-thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.photo-meta {
  padding: 0.9rem 1rem 1rem;
}

.photo-meta h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.photo-meta p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.gradient-1 {
  background: radial-gradient(circle at 15% 20%, #fff, #ffb347 10%, #ff4d97 24%, #7f5af0 65%, #13162b 100%);
}

.gradient-2 {
  background: radial-gradient(circle at 12% 10%, #ecfeff, #22c55e 18%, #0ea5e9 34%, #1d4ed8 70%, #020617 100%);
}

.gradient-3 {
  background: radial-gradient(circle at 18% 15%, #fde68a, #f97316 20%, #db2777 42%, #7c3aed 76%, #020617 100%);
}

.gradient-4 {
  background: radial-gradient(circle at 10% 10%, #e5e7eb, #f97316 16%, #ea580c 30%, #4b5563 60%, #020617 100%);
}

.gradient-5 {
  background: radial-gradient(circle at 16% 12%, #eff6ff, #38bdf8 22%, #0ea5e9 42%, #1d4ed8 70%, #020617 100%);
}

.gradient-6 {
  background: radial-gradient(circle at 12% 16%, #fef9c3, #fb7185 22%, #e11d48 42%, #6d28d9 72%, #020617 100%);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.load-more-btn {
  min-width: 140px;
}

/* Articles */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.article-card {
  background: radial-gradient(circle at top left, rgba(127, 90, 240, 0.12), #050712);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.35rem 1.3rem 1.25rem;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.22);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.tag {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.dot {
  opacity: 0.6;
}

.article-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.article-card p {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.article-link {
  font-size: 0.84rem;
  text-decoration: none;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.article-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width var(--transition-med);
}

.article-link:hover::after {
  width: 100%;
}

/* Resume */

.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.resume-column {
  background: rgba(8, 10, 20, 0.98);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-subtle);
}

.resume-heading {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  color: var(--text-soft);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.5);
}

.timeline li {
  position: relative;
  padding-left: 1.1rem;
  padding-bottom: 1.2rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -5px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fff, var(--accent) 40%, #0b1022 100%);
  box-shadow: 0 0 0 4px rgba(127, 90, 240, 0.22);
}

.timeline-content h4 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
}

.timeline-meta {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.timeline-content p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.skill-chips span {
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.78rem;
  color: #e5e7f5;
}

.resume-download {
  margin-top: 1.4rem;
}

.resume-download .hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.4rem;
}

.contact-form {
  background: rgba(8, 10, 20, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-subtle);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  margin-bottom: 0.95rem;
}

.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0.6rem 0.7rem;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-med), box-shadow var(--transition-med), background var(--transition-fast);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(127, 90, 240, 0.45);
  background: rgba(15, 23, 42, 0.98);
}

.form-hint {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.contact-info {
  padding-top: 0.4rem;
}

.contact-info h3 {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
}

.contact-info p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.social-list a {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  text-decoration: none;
  transition: background var(--transition-med), transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.social-list a:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.99);
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.9);
}

.social-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.social-handle {
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(24px);
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: min(960px, 100% - 3rem);
  width: 100%;
  background: radial-gradient(circle at top left, rgba(127, 90, 240, 0.16), #020617);
  border-radius: 18px;
  padding: 1.2rem 1.1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.92);
}

.lightbox-image {
  border-radius: 14px;
  height: clamp(260px, 60vh, 520px);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.lightbox-caption {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.lightbox-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-med), transform var(--transition-med), box-shadow var(--transition-med);
}

.lightbox-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.4rem 0 1.6rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.8), #020617 60%);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-note {
  opacity: 0.8;
}

/* Utilities */

.hint {
  color: var(--text-soft);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr);
  }

  .hero-highlight {
    order: -1;
    margin-bottom: 2.3rem;
  }

  .hero-stats {
    right: 0.8rem;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0.7rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-list {
    position: absolute;
    top: 110%;
    right: 0;
    background: rgba(11, 15, 30, 0.98);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 0.6rem;
    flex-direction: column;
    align-items: stretch;
    min-width: 190px;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .nav-list.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-list li {
    padding: 0.15rem 0.1rem;
  }

  .nav-list a {
    width: 100%;
    padding: 0.4rem 0.5rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-thumb {
    height: 200px;
  }

  .articles-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

