/* ============================================
   علی رئیسی | نینجای تنها — Enhanced Style
   ============================================ */

:root {
  --ink: #182a33;
  --dark: #14242f;
  --dark2: #1b3140;
  --cream: #f2f3ee;
  --white: #fafbf8;
  --muted: #63727a;
  --coral: #ef7761;
  --coral-light: #f4a189;
  --coral-dark: #d35a44;
  --line: #d2dbd9;
  --blue: #2e5d72;
  --font: Vazirmatn, Tahoma, sans-serif;
  --glow: rgba(239, 119, 97, 0.35);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--coral), var(--coral-dark)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--coral); }

/* ===== Skip Link ===== */
.skip-link {
  position: fixed; top: 8px; right: 8px;
  background: white; color: black; padding: 8px;
  z-index: 99; transform: translateY(-180%);
  transition: transform .3s;
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 3px solid #f7937b; outline-offset: 4px; }

/* ===== Background Decoration ===== */
.bg-decoration {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}
.bg-orb-1 { width: 500px; height: 500px; background: var(--coral); top: -150px; right: -100px; }
.bg-orb-2 { width: 400px; height: 400px; background: var(--blue); bottom: 10%; left: -120px; animation-delay: -7s; }
.bg-orb-3 { width: 300px; height: 300px; background: #bfdea7; top: 50%; right: 30%; animation-delay: -14s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ===== Header ===== */
.header {
  background: rgba(20, 36, 47, 0.85);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  color: #fff;
  border-bottom: 1px solid #ffffff20;
  position: sticky; top: 0; z-index: 50;
  transition: all .35s ease;
}
.header-scrolled {
  background: rgba(20, 36, 47, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.nav {
  height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  transition: height .35s ease;
}
.header-scrolled .nav { height: 72px; }

.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; line-height: 1.25; white-space: nowrap;
}
.brand small {
  display: block; font-size: 9px; letter-spacing: 2px; font-weight: 600; opacity: .6; margin-top: 5px;
}
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--coral); border-radius: 50%;
  color: var(--coral); font-size: 25px;
  transition: all .4s ease;
  position: relative;
}
.brand:hover .brand-mark {
  transform: rotate(360deg);
  box-shadow: 0 0 20px var(--glow);
  background: rgba(239, 119, 97, 0.1);
}

.nav-links {
  display: flex; gap: 34px; align-items: center; font-size: 13px; font-weight: 600;
}
.nav-links > a:not(.nav-support) { color: #e6ebea; position: relative; transition: color .3s; }
.nav-links > a:not(.nav-support)::after {
  content: ''; position: absolute; bottom: -4px; right: 0; width: 0; height: 2px;
  background: var(--coral); border-radius: 2px; transition: width .3s ease;
}
.nav-links > a:not(.nav-support):hover { color: var(--coral); }
.nav-links > a:not(.nav-support):hover::after { width: 100%; }

.nav-support {
  border: 1px solid #8e999d; border-radius: 4px; padding: 9px 16px;
  transition: all .3s ease;
}
.nav-support:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,193,7,0.3); }
.nav-support span { margin-right: 8px; color: var(--coral); }

.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  background: var(--dark);
  color: #fafbf8;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(239,119,97,0.12), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(46,93,114,0.18), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 62px; padding-block: 60px 48px;
  position: relative; z-index: 1;
}
.hero-copy { padding-block: 15px; }

.hero-kicker {
  font-size: 13px; color: #bacac9;
  display: flex; gap: 10px; align-items: center;
  opacity: 0; animation: fadeInUp .8s ease .2s forwards;
}
.kicker-line {
  width: 35px; height: 1px; background: var(--coral);
  animation: lineGrow .8s ease .3s both;
}
@keyframes lineGrow { from { width: 0; } to { width: 35px; } }

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  font-size: clamp(55px, 6.2vw, 91px);
  line-height: 1.22; letter-spacing: -3px;
  margin: 35px 0 26px; font-weight: 900;
  opacity: 0; animation: fadeInUp .8s ease .3s forwards;
}
.hero-highlight {
  color: #c4d3d1;
  background: linear-gradient(120deg, #c4d3d1, var(--coral-light), #c4d3d1);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s linear infinite;
}
@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-desc {
  color: #c8d2d0; max-width: 490px; font-size: 17px; line-height: 2.2;
  opacity: 0; animation: fadeInUp .8s ease .4s forwards;
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px;
  opacity: 0; animation: fadeInUp .8s ease .5s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Buttons ===== */
.button {
  display: inline-flex; gap: 24px; align-items: center; justify-content: center;
  min-height: 51px; padding: 11px 19px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.button::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%); transition: transform .6s;
}
.button:hover { transform: translateY(-3px) scale(1.02); }
.button:hover::before { transform: translateX(100%); }

.button-light { background: #f2f3ee; color: var(--dark); box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
.button-light:hover { background: #fff; box-shadow: 0 8px 30px rgba(255,255,255,0.25); }

.button-outline {
  border: 1px solid #859494; color: #fff;
  background: rgba(255,255,255,0.03);
}
.button-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--coral); box-shadow: 0 0 20px rgba(239,119,97,0.2); }

.button-dark { background: var(--dark); color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.button-dark:hover { background: var(--dark2); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.hero-note {
  display: flex; align-items: center; gap: 12px;
  color: #acbbb9; font-size: 11px; line-height: 1.7; margin-top: 52px;
  opacity: 0; animation: fadeInUp .8s ease .6s forwards;
}
.hero-note b { font-size: 9px; letter-spacing: 1.7px; }
.note-icon {
  display: grid; place-items: center; width: 37px; height: 37px;
  border: 1px solid #57676a; border-radius: 50%; font-size: 20px; color: var(--coral);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,119,97,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(239,119,97,0); }
}

/* ===== Hero Art ===== */
.hero-art {
  position: relative; aspect-ratio: 1; max-width: 530px; width: 100%; justify-self: end;
  opacity: 0; animation: fadeInUp 1s ease .4s forwards;
}
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 5px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.hero-art::before {
  content: ''; position: absolute; inset: -12px 12px 12px -12px;
  border: 1px solid #82918a; pointer-events: none;
  animation: borderGlow 4s ease-in-out infinite;
}
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(239,119,97,0.05); }
  50% { box-shadow: 0 0 40px rgba(239,119,97,0.15); }
}
.hero-art::after {
  content: ''; position: absolute; inset: 0; border-radius: 5px;
  background: linear-gradient(135deg, transparent 70%, rgba(239,119,97,0.15));
  pointer-events: none;
}

.image-label {
  position: absolute; bottom: 23px; right: 24px;
  background: #eff1e9; color: #1b3035;
  padding: 12px 18px; min-width: 145px; font-size: 15px; font-weight: 800;
  box-shadow: 0 7px 30px #0003;
  backdrop-filter: blur(8px);
  animation: slideUpLabel .8s ease .8s both;
}
@keyframes slideUpLabel { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.image-label small { display: block; font-size: 8px; letter-spacing: 1.1px; color: #657678; }

.image-index {
  position: absolute; top: 16px; left: 19px; color: #fff; font-size: 11px; direction: ltr;
}

.hero-bottom {
  border-top: 1px solid #ffffff24; display: flex; justify-content: space-between;
  padding-block: 18px; color: #9eb0af; font-size: 12px;
  position: relative; z-index: 1;
}
.hero-bottom a { color: #e2e9e7; transition: color .3s; }
.hero-bottom a:hover { color: var(--coral); }

/* ===== Intro Section ===== */
.intro-section { padding: 115px 0 120px; position: relative; z-index: 1; }
.intro-grid { display: grid; grid-template-columns: 150px 1fr 170px; gap: 48px; }
.section-index { color: #688183; font-size: 12px; }
.section-index span {
  font-size: 40px; line-height: 1; display: block; color: var(--coral); font-weight: 800;
}
.section-index p { margin-top: 15px; }

.intro-content h2, .section-heading h2, .contact-grid h2 {
  font-size: clamp(38px, 4vw, 60px); line-height: 1.45; letter-spacing: -1.5px; margin-bottom: 25px;
}
.intro-content p { color: #53676c; max-width: 600px; font-size: 16px; line-height: 2.25; }

.text-link {
  display: inline-block; border-bottom: 1px solid var(--ink); padding-bottom: 6px;
  font-weight: 700; font-size: 14px; margin-top: 12px;
  transition: all .3s ease;
}
.text-link:hover { color: var(--coral); border-color: var(--coral); transform: translateX(-6px); }
.text-link span { margin-right: 12px; color: #d86c57; transition: transform .3s; }
.text-link:hover span { transform: translate(-4px, -4px); }

.intro-side { text-align: center; align-self: center; color: #728481; font-size: 12px; }
.orbit {
  width: 125px; height: 125px; border: 1px solid #9aada9; border-radius: 50%;
  display: grid; place-items: center; margin: 15px auto; position: relative;
  animation: spin 15s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.orbit::before { content: ''; position: absolute; inset: 12px; border: 1px dashed #a2b3ae; border-radius: 50%; }
.orbit b { font-size: 50px; color: #dd806d; font-weight: 400; animation: spin 15s linear infinite reverse; }
.orbit i {
  position: absolute; top: 13px; right: 9px;
  width: 12px; height: 12px; border-radius: 50%; background: #d3735d;
  box-shadow: 0 0 10px rgba(211,115,93,0.5);
}

/* ===== Projects Section ===== */
.projects-section { padding: 100px 0; background: #e3e9e6; position: relative; z-index: 1; }
.section-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 45px;
}
.section-number { font-size: 12px; font-weight: 700; color: #657a78; display: block; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.period { color: var(--coral); }
.section-heading > p { max-width: 350px; color: #677878; font-size: 14px; margin: 0; }

.project-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.project {
  background: var(--white); overflow: hidden; display: flex; min-width: 0;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.project-feature { grid-column: 1 / -1; min-height: 365px; }
.project-details { padding: 30px; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.project-top { width: 100%; display: flex; justify-content: space-between; color: #7d8b88; font-size: 11px; font-weight: 700; }

.project-details h3 {
  font-size: clamp(29px, 3vw, 44px); line-height: 1.12; text-align: left;
  letter-spacing: -1.5px; margin: 32px 0 18px;
  transition: color .3s;
}
.project:hover .project-details h3 { color: var(--coral-dark); }

.project-details p { color: #647574; font-size: 14px; line-height: 2; max-width: 350px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; direction: ltr; }
.tags span {
  font-size: 10px; padding: 4px 8px; border: 1px solid #d6dfdc; color: #66817e;
  border-radius: 4px; transition: all .3s;
}
.project:hover .tags span { border-color: var(--coral); color: var(--coral-dark); background: rgba(239,119,97,0.05); }

.project-link {
  border-bottom: 1px solid #80908b; margin-top: 24px; padding-bottom: 4px;
  font-size: 13px; font-weight: 700; transition: all .3s;
}
.project-link:hover { border-color: var(--coral); color: var(--coral-dark); }
.project-link span { color: #d87360; margin-right: 5px; transition: transform .3s; }
.project-link:hover span { transform: translate(-4px, -4px); }

.project-graphic {
  width: 53%; background: #203e49; color: #d6e4dc; padding: 24px;
  display: flex; flex-direction: column; justify-content: center;
}
.graphic-code {
  background-color: #1c3541;
  background-image: linear-gradient(135deg, #1c3541, #385966);
  position: relative;
}
.graphic-code::before {
  content: ''; position: absolute; inset: 0;
  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: 24px 24px;
  pointer-events: none;
}

.code-top { display: flex; direction: ltr; gap: 5px; align-items: center; margin-bottom: 20px; }
.code-top i { width: 7px; height: 7px; border-radius: 50%; background: #f58a74; transition: transform .3s; }
.code-top i:nth-child(2) { background: #dbb57b; }
.code-top i:nth-child(3) { background: #98bcb0; }
.graphic-code:hover .code-top i:nth-child(1) { transform: translateY(-4px); }
.graphic-code:hover .code-top i:nth-child(2) { transform: translateY(-4px); transition-delay: .1s; }
.graphic-code:hover .code-top i:nth-child(3) { transform: translateY(-4px); transition-delay: .2s; }
.code-top span { color: #9db1ae; font: 11px monospace; margin-left: 10px; }

.graphic-code pre {
  white-space: pre-wrap; word-break: break-word; direction: ltr; text-align: left;
  font: clamp(12px, 1.3vw, 15px) / 2 monospace; position: relative; z-index: 1;
}
.graphic-code pre span { color: #f4a189; }
.graphic-code pre em { color: #bfdea7; font-style: normal; }

.graphic-caption { font-size: 11px; color: #abc1be; margin-top: 30px; }

.project-secondary, .project-mini { min-height: 300px; }

.rex-graphic, .mini-glyph {
  display: flex; align-items: center; justify-content: center; position: relative;
  min-width: 37%; overflow: hidden;
}
.rex-graphic { direction: ltr; gap: 5px; flex-wrap: wrap; align-content: center; background: #bdcfc7; color: #365b57; }
.rex-graphic::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(239,119,97,0.1), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.project-secondary:hover .rex-graphic::before { opacity: 1; }

.rex-letter { font-weight: 900; font-size: clamp(36px, 5vw, 62px); letter-spacing: -5px; transition: transform .4s; }
.project-secondary:hover .rex-letter { transform: scale(1.1); }
.rex-letter span { color: #ee7a64; }
.rex-bracket { font: 60px monospace; color: #72948b; }
.rex-graphic small { width: 100%; text-align: center; font: 9px monospace; letter-spacing: 1px; }

.mini-glyph {
  font: bold 100px / 1 Georgia; background: #ecbfaa; color: #536b66;
  transition: background .4s;
}
.project-mini:hover .mini-glyph { background: #e8b094; }
.mini-glyph span { color: #fff; }

/* ===== Skills Section ===== */
.skills-section { padding: 110px 0; position: relative; z-index: 1; }
.skill-list { border-top: 1px solid var(--line); }
.skill-list > div {
  display: grid; grid-template-columns: 60px 1fr 1.2fr; align-items: center;
  gap: 20px; border-bottom: 1px solid var(--line); padding: 25px 0;
  transition: background .3s, padding-inline .3s;
  position: relative;
}
.skill-list > div::before {
  content: ''; position: absolute; right: 0; top: 0; height: 100%; width: 4px;
  background: linear-gradient(var(--coral), var(--coral-dark));
  transform: scaleY(0); transform-origin: top; transition: transform .4s;
}
.skill-list > div:hover { background: rgba(239,119,97,0.04); padding-inline: 12px; }
.skill-list > div:hover::before { transform: scaleY(1); }

.skill-list > div > span { color: #d17460; font-size: 12px; }
.skill-list h3 { margin: 0; font-size: 20px; }
.skill-list p { margin: 0; text-align: left; color: #70827d; font-size: 13px; }

/* ===== Contact Section ===== */
.contact-section {
  background: #1d3c48; color: white; padding: 110px 0; position: relative; overflow: hidden;
}
.contact-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(239,119,97,0.08), transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(46,93,114,0.15), transparent 50%);
  pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; position: relative; z-index: 1; }
.contact-grid .section-number { color: #a2bdb8; }
.contact-grid p { color: #c4d4d0; max-width: 390px; line-height: 2; margin-bottom: 28px; }

.contact-list { border-top: 1px solid #ffffff42; }
.contact-list a {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #ffffff42; padding: 18px 0; font-weight: 700;
  transition: all .3s; position: relative;
}
.contact-list a::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 0; height: 2px;
  background: var(--coral); transition: width .4s ease;
}
.contact-list a:hover { color: #ffad98; padding-right: 12px; }
.contact-list a:hover::after { width: 100%; }
.contact-list small { display: block; color: #abc1bb; font-size: 11px; font-weight: 400; text-align: right; }
.contact-list b { font-size: 21px; font-weight: 400; color: #e59a84; transition: transform .3s; }
.contact-list a:hover b { transform: translate(-4px, -4px); }

/* ===== Support Section ===== */
.support-section {
  background: #ebbdab; position: relative; overflow: hidden;
}
.support-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,193,7,0.18), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(0,188,212,0.14), transparent 50%);
  pointer-events: none;
}
.support-inner {
  display: flex; align-items: center; gap: 24px; padding-block: 40px;
  position: relative; z-index: 1;
}
.coffee {
  font-size: 35px; display: inline-block;
  animation: coffeeBounce 2s ease-in-out infinite;
}
@keyframes coffeeBounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(-5deg); }
}
.support-inner h2 { font-size: 22px; margin: 0 0 5px; }
.support-inner p { font-size: 13px; color: #5f625d; margin: 0; }
.support-inner .button { margin-right: auto; }

/* ===== Footer ===== */
.footer { background: #f5f6f1; position: relative; z-index: 1; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 34px; font-size: 12px;
}
.footer-brand { color: var(--dark); }
.footer-inner p { color: #82908a; margin: 0; }
.footer-inner > a:last-child { font-weight: 700; transition: color .3s; }
.footer-inner > a:last-child:hover { color: var(--coral); }
.footer .brand-mark { border-color: #d97c6c; color: #be6e5e; }

/* ===== Scroll Reveal ===== */
[data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .container { width: min(100% - 40px, 1200px); }
  .nav-links { gap: 16px; }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: clamp(47px, 7vw, 70px); }
  .intro-grid { grid-template-columns: 100px 1fr; gap: 30px; }
  .intro-side { display: none; }
  .contact-grid { gap: 50px; }
  .project-graphic { width: 48%; }
  .rex-graphic, .mini-glyph { min-width: 32%; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 36px); }
  .nav { height: 74px; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 6px;
    border: 1px solid #6c8083; background: none; border-radius: 4px; padding: 12px; cursor: pointer;
  }
  .menu-toggle span { width: 21px; height: 2px; background: #fff; transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg) translate(4px, -5px); }
  .nav-links {
    display: none; position: absolute; top: 74px; right: 0; left: 0;
    background: #1a3039; padding: 20px; align-items: stretch; gap: 0; flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; animation: slideDown .3s ease; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
  .nav-links a { padding: 13px !important; }
  .nav-support { margin-top: 8px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; padding: 38px 0; gap: 36px; }
  .hero h1 { font-size: clamp(48px, 12vw, 70px); margin: 25px 0 20px; letter-spacing: -2px; }
  .hero-desc { font-size: 15px; }
  .hero-note { margin-top: 30px; }
  .hero-art { max-width: none; justify-self: stretch; }
  .hero-art::before { inset: -8px 8px 8px -8px; }
  .hero-bottom { font-size: 10px; gap: 10px; }
  .intro-section, .projects-section, .skills-section, .contact-section { padding: 75px 0; }
  .intro-grid { display: block; }
  .section-index { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
  .section-index span { font-size: 25px; }
  .section-index p { margin: 0; }
  .intro-content h2, .section-heading h2, .contact-grid h2 { font-size: 38px; }
  .intro-content p { font-size: 15px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .project-list { grid-template-columns: 1fr; }
  .project-feature { grid-column: auto; flex-direction: column; }
  .project-graphic { width: 100%; min-height: 230px; }
  .project-details { padding: 24px; }
  .project-details h3 { margin-top: 25px; }
  .project-secondary, .project-mini { min-height: 270px; }
  .skill-list > div { grid-template-columns: 35px 1fr; gap: 10px; padding: 20px 0; }
  .skill-list h3 { font-size: 17px; }
  .skill-list p { grid-column: 2; text-align: right; font-size: 12px; overflow-wrap: anywhere; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .support-inner { align-items: flex-start; flex-wrap: wrap; }
  .support-inner .button { margin-right: 0; }
  .support-inner > div { flex: 1; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner p { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  .project-secondary, .project-mini { flex-direction: column; }
  .rex-graphic, .mini-glyph { min-height: 145px; min-width: 0; width: 100%; }
  .project-secondary .project-details, .project-mini .project-details { min-height: 260px; }
}