/* =====================================================
   Shaked M Hajbi — Personal Site
   Warm editorial design, RTL Hebrew
   ===================================================== */

:root {
  --m1: 32px;
  --m2: 24px;
  --m3: 20px;
  --m4: 16px;
  --m5: 12px;

  --bg: #faf7f2;
  --bg-alt: #f3ede1;
  --bg-dark: #1f1c19;
  --bg-deep: #15130f;

  --text: #2d2a26;
  --text-soft: #5e5953;
  --text-mute: #8a857d;

  --border: #e8e2d8;
  --border-strong: #d6cdb9;

  --accent: #c4694e;
  --accent-deep: #a85638;
  --accent-soft: #e8a487;
  --sage: #5e8b7e;

  --grad-sunset: linear-gradient(110deg,
    #fff3b0 0%,
    #ffd6a5 28%,
    #ffb5a7 62%,
    #e8a487 100%);

  --shadow-soft: 0 1px 2px rgba(31, 28, 25, 0.04), 0 4px 16px rgba(31, 28, 25, 0.04);
  --shadow-card: 0 2px 4px rgba(31, 28, 25, 0.04), 0 12px 32px rgba(31, 28, 25, 0.08);

  --easing: cubic-bezier(0.4, 0.0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ol, ul { list-style: none; padding: 0; margin: 0; }

::selection {
  background: var(--accent-soft);
  color: var(--bg-dark);
}

/* =====================================================
   HEADER (sticky, single-bar)
   ===================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 6001;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--easing), background 0.25s var(--easing);
}

.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 247, 242, 0.94);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name {
  font-size: 15px;
  letter-spacing: -0.005em;
  font-weight: 700;
}

.header-tag {
  margin-right: auto;
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 500;
}

.header-cta { flex-shrink: 0; }

/* =====================================================
   FLOATING SUB-NAV (pill)
   ===================================================== */

.subnav {
  position: sticky;
  top: 70px;
  z-index: 5000;
  padding: 14px 24px 0;
  pointer-events: none;
}

.subnav-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 500;
  pointer-events: auto;
}

.subnav-inner a {
  color: var(--text-soft);
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s var(--easing);
  white-space: nowrap;
}
.subnav-inner a:hover { color: var(--text); }
.subnav-inner a.is-active {
  color: var(--accent);
  font-weight: 700;
}

.subnav-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* =====================================================
   HERO — sunset breathing + asymmetric mark
   ===================================================== */

.hero {
  position: relative;
  min-height: 640px;
  margin: 24px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-alt);
  isolation: isolate;
}

.hero-grad {
  position: absolute;
  inset: -10%;
  background: var(--grad-sunset);
  background-size: 220% 220%;
  animation: breathe 14s ease-in-out infinite;
  filter: saturate(1.05);
  z-index: -2;
}

@keyframes breathe {
  0%, 100% { background-position: 0% 50%; transform: scale(1); }
  50%      { background-position: 100% 50%; transform: scale(1.04); }
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 20% 90%, rgba(255, 255, 255, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 10%, rgba(255, 255, 255, 0.3) 0%, transparent 55%);
}

.hero-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px var(--m1) 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto;
  gap: 64px;
  align-items: center;
}

.hero-text { text-align: right; max-width: 720px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 28, 25, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c8c5b;
  box-shadow: 0 0 0 4px rgba(44, 140, 91, 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(44, 140, 91, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(44, 140, 91, 0); }
}

.hero-title {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--bg-dark);
  margin: 0 0 28px;
  max-width: 18ch;
}
.hero-title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  inset: auto 0 0.05em 0;
  height: 0.18em;
  background: rgba(196, 105, 78, 0.5);
  border-radius: 4px;
  z-index: -1;
}

.hero-sub {
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.7;
  color: var(--text);
  max-width: 58ch;
  margin: 0 0 16px;
  font-weight: 500;
}
.hero-sub-soft {
  color: var(--text-soft);
  font-weight: 400;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-mark {
  width: clamp(140px, 18vw, 220px);
  flex-shrink: 0;
  opacity: 0.85;
}
.hero-mark svg { width: 100%; height: auto; }

.hero-name {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.hero-name-sep { opacity: 0.4; }

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 100px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: all 0.2s var(--easing);
  white-space: nowrap;
}

.btn-primary {
  background: var(--bg-dark);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(196, 105, 78, 0.3);
}

.btn-ghost {
  background: rgba(31, 28, 25, 0.06);
  color: var(--bg-dark);
  border: 1px solid rgba(31, 28, 25, 0.12);
}
.btn-ghost:hover {
  background: rgba(31, 28, 25, 0.12);
  border-color: rgba(31, 28, 25, 0.22);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 30px; font-size: 15px; }

.btn-arrow {
  display: inline-block;
  font-size: 16px;
  transition: transform 0.2s var(--easing);
}
.btn:hover .btn-arrow { transform: translateX(-4px); }

/* =====================================================
   SECTIONS — common
   ===================================================== */

.section { padding: 112px 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--m1);
}
.container-narrow { max-width: 820px; }

.section-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head-left {
  text-align: right;
  margin-left: 0;
  margin-right: 0;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bg-dark);
  margin: 0 0 var(--m4);
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0 0 12px;
}
.section-sub:last-child { margin-bottom: 0; }
.section-sub-mute {
  font-size: 14px;
  color: var(--text-mute);
  font-weight: 500;
}

/* =====================================================
   ABOUT (עליי) — large editorial paragraph
   ===================================================== */

.section-about { padding: 112px 0 96px; }
.section-about .section-title { text-align: right; }

.about-text {
  margin-top: 32px;
  border-right: 3px solid var(--accent);
  padding-right: 28px;
}
.about-lead {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--bg-dark);
  margin: 0 0 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.about-lead strong {
  font-weight: 800;
}
.about-text p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 20px;
  font-weight: 400;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong {
  color: var(--bg-dark);
  font-weight: 700;
}

/* =====================================================
   איך אני עובד — numbered editorial list
   ===================================================== */

.section-how { background: var(--bg); }

.numbered-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.numbered-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 40px 8px;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.25s var(--easing);
}
.numbered-item:hover {
  background: rgba(196, 105, 78, 0.04);
}

.numbered-num {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 900;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  letter-spacing: -0.04em;
  font-feature-settings: "tnum" 1;
}

.numbered-body h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--bg-dark);
  margin: 0 0 12px;
}
.numbered-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
  max-width: 64ch;
}

/* =====================================================
   מה שמבדיל אותי — feature grid (icons)
   ===================================================== */

.section-different { background: var(--bg-alt); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 32px;
  transition: transform 0.25s var(--easing), box-shadow 0.25s var(--easing), border-color 0.25s var(--easing);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-top-color: var(--accent-deep);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(196, 105, 78, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--bg-dark);
  margin: 0 0 12px;
}

.feature p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
}

/* =====================================================
   PROJECTS
   ===================================================== */

.section-projects { background: var(--bg); padding: 112px 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--easing), transform 0.25s var(--easing), box-shadow 0.25s var(--easing);
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--easing);
  z-index: 2;
}
.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.project-card:hover::before { transform: scaleX(1); }

.project-preview {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.project-preview[data-tone="warm"]     { background-color: #fef0d4; }
.project-preview[data-tone="peach"]    { background-color: #f5d6c0; }
.project-preview[data-tone="lavender"] { background-color: #e8dcec; }

.project-content {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.project-type {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.project-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.project-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
}

.project-solves {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}
.solves-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: block;
  margin-bottom: 6px;
}
.project-solves p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.project-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-actions .btn { flex: 0 1 auto; }

/* =====================================================
   LEARNING (free Claude resource)
   ===================================================== */

.section-learning {
  background: var(--bg-alt);
  padding: 88px 0;
}

.learning-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 56px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.learning-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(196, 105, 78, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.learning-icon svg { width: 28px; height: 28px; }

.learning-card .eyebrow { margin-bottom: 0; }

.learning-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--bg-dark);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 24ch;
}

.learning-text {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0;
}

.learning-cta { margin-top: 12px; }

.learning-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 24px;
  background: rgba(196, 105, 78, 0.08);
  border: 1px solid rgba(196, 105, 78, 0.22);
  border-radius: 100px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.learning-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 105, 78, 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* =====================================================
   PRINCIPLE — full-bleed dark
   ===================================================== */

.section-principle {
  background: var(--bg-dark);
  color: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-principle::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 105, 78, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.section-principle::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 164, 135, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.section-principle .container { position: relative; z-index: 1; }
.section-principle .eyebrow { color: var(--accent-soft); }

.principle-title {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--bg);
}
.principle-title em {
  font-style: normal;
  color: var(--accent-soft);
  display: inline-block;
}

.principle-text {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(250, 247, 242, 0.78);
  margin: 0 0 16px;
}
.principle-text-bold {
  font-size: 26px;
  font-weight: 700;
  color: var(--bg);
  margin-top: 24px;
  letter-spacing: -0.01em;
}

/* =====================================================
   CONTACT
   ===================================================== */

.section-contact { padding: 112px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}
.contact-text { text-align: right; padding-top: 8px; }
.contact-text .section-title { font-size: clamp(36px, 4vw, 52px); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s var(--easing);
}
.contact-list li a:hover {
  border-color: var(--accent);
  background: rgba(196, 105, 78, 0.04);
  transform: translateX(-4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(196, 105, 78, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contact-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-arrow {
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s var(--easing);
}
.contact-list li a:hover .contact-arrow { transform: translateX(-4px); }

.contact-final { text-align: center; }

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  background: var(--bg-deep);
  color: var(--bg);
  padding: 56px 0 32px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bg);
}
.footer-brand svg { width: 36px; height: 36px; flex-shrink: 0; color: var(--accent-soft); }
.footer-brand strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.footer-brand span {
  display: block;
  font-size: 12px;
  color: rgba(250, 247, 242, 0.6);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.footer-links a {
  color: rgba(250, 247, 242, 0.78);
  transition: color 0.2s var(--easing);
}
.footer-links a:hover { color: var(--accent-soft); }

.footer-meta {
  text-align: left;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.55);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-meta a {
  color: rgba(250, 247, 242, 0.78);
  transition: color 0.2s var(--easing);
}
.footer-meta a:hover { color: var(--accent-soft); }

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--easing), transform 0.85s var(--easing);
}

.numbered-item.reveal {
  transform: translateX(-32px);
}

.feature.reveal,
.contact-list li.reveal {
  transform: translateY(28px);
}

.is-revealed {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-grad { animation: none; }
  .hero-eyebrow-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  .hero-inner { gap: 40px; padding: 80px var(--m1) 72px; }
  .hero-mark { width: 160px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid > :nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - 12px); justify-self: center; }
}

@media (max-width: 900px) {
  .header-inner { padding: 12px 16px; gap: 12px; }
  .header-tag { display: none; }

  .subnav { top: 60px; padding: 10px 16px 0; overflow: hidden; }
  .subnav-inner {
    padding: 8px 16px;
    gap: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 100px;
  }
  .subnav-inner::-webkit-scrollbar { display: none; }
  .subnav-inner a { white-space: nowrap; }

  .hero { margin: 16px; min-height: 540px; border-radius: 20px; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 24px 80px;
    gap: 32px;
  }
  .hero-mark {
    width: 160px;
    margin: 0 auto;
    order: -1;
  }
  .hero-name { bottom: 20px; font-size: 11px; gap: 10px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .numbered-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 28px 4px;
  }

  .features-grid { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .project-content { padding: 24px 22px 26px; }
  .learning-card { padding: 44px 28px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer-brand { justify-content: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .footer-meta { text-align: center; align-items: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 40px; }
  .about-text p { font-size: 18px; }
  .principle-title { font-size: 32px; }
  .contact-list li a { padding: 18px 20px; gap: 14px; }
  .contact-value { font-size: 14px; }
}
