/* ==========================================================================
   FARHAD BILLAH — GHIBLI-INSPIRED PORTFOLIO STYLES
   Theme: Studio Ghibli Forest Sanctuary & Whimsical Craftsmanship
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --ink: #30483e;
  --green: #557563;
  --sage: #a8bea7;
  --cream: #f8f1df;
  --paper: #fffaf0;
  --yellow: #e8c96d;
  --orange: #d99061;
  --pink: #dfad9f;
  --blue: #aac6c7;
  --line: #d7cdb7;

  --font-heading: "Fraunces", serif;
  --font-body: "DM Sans", sans-serif;
  --radius-lg: 24px;
  --radius-pill: 30px;
}

/* --------------------------------------------------------------------------
   1. Base & Reset
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Tactile Ghibli Parchment Paper Texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

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

p {
  text-align: justify;
}

/* --------------------------------------------------------------------------
   2. Navigation Header
   -------------------------------------------------------------------------- */
.nav {
  height: 76px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 241, 223, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  color: var(--ink);
}

.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.logo-leaf {
  font-size: 26px;
  color: var(--green);
}

nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
  font-weight: 500;
}

nav a {
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--orange);
}

.tiny-button {
  border: 1px solid var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s ease;
  color: inherit;
}

.tiny-button:hover {
  background: var(--ink);
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Hero Section — Immersive Full-Bleed Redesign
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- 3a. Backdrop layers --- */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop-img {
  position: absolute;
  inset: 0;
  background-image: url('Image/Web/square.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  animation: hero-backdrop-drift 25s ease-in-out infinite alternate;
}

@keyframes hero-backdrop-drift {
  0% {
    transform: scale(1.0) translate(0, 0);
  }

  100% {
    transform: scale(1.06) translate(-1%, -1%);
  }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(20, 28, 22, 0.82) 0%, rgba(20, 28, 22, 0.45) 40%, transparent 70%),
    linear-gradient(to top, rgba(248, 241, 223, 0.95) 0%, rgba(248, 241, 223, 0.4) 12%, transparent 35%),
    linear-gradient(to right, rgba(20, 28, 22, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* --- 3b. Floating particles --- */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  opacity: 0;
  animation: particle-float linear infinite;
}

.p1 {
  left: 8%;
  font-size: 14px;
  color: #e8c96d;
  animation-duration: 9s;
  animation-delay: 0s;
  top: 15%;
}

.p2 {
  left: 22%;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  animation-duration: 7s;
  animation-delay: 1.2s;
  top: 40%;
}

.p3 {
  left: 45%;
  font-size: 16px;
  color: #dfad9f;
  animation-duration: 11s;
  animation-delay: 2.5s;
  top: 25%;
}

.p4 {
  left: 65%;
  font-size: 20px;
  animation-duration: 13s;
  animation-delay: 0.8s;
  top: 55%;
}

.p5 {
  left: 78%;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  animation-duration: 8s;
  animation-delay: 3s;
  top: 30%;
}

.p6 {
  left: 90%;
  font-size: 12px;
  color: #e8c96d;
  animation-duration: 10s;
  animation-delay: 1.8s;
  top: 60%;
}

.p7 {
  left: 35%;
  font-size: 18px;
  animation-duration: 14s;
  animation-delay: 4s;
  top: 70%;
}

.p8 {
  left: 55%;
  font-size: 13px;
  color: #aac6c7;
  animation-duration: 9s;
  animation-delay: 0.5s;
  top: 20%;
}

.p9 {
  left: 12%;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.35);
  animation-duration: 6s;
  animation-delay: 2s;
  top: 65%;
}

.p10 {
  left: 82%;
  font-size: 16px;
  animation-duration: 12s;
  animation-delay: 3.5s;
  top: 45%;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg);
  }

  15% {
    opacity: 0.7;
  }

  85% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
    transform: translateY(-120px) translateX(30px) rotate(180deg);
  }
}

/* --- 3c. Hero content overlay --- */
.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 6vw 80px;
  gap: 4vw;
}

/* --- 3d. Hero copy (left column) --- */
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

/* Availability status indicator */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.05);
  }
}

.status-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* Farhad Avatar Pill Badge */
.hand-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px 15px 5px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  width: fit-content;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hand-label:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.14);
}

.hero-avatar-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  font: 700 clamp(52px, 6.5vw, 96px) / 0.92 var(--font-heading);
  letter-spacing: -0.05em;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero h1 em {
  font-weight: 500;
  color: var(--yellow);
  font-style: italic;
  text-shadow: 0 0 40px rgba(232, 201, 109, 0.3);
}

.section-title h2 em,
.contact h2 em {
  font-weight: 500;
  color: var(--orange);
  font-style: italic;
}

.hero-copy>p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  margin: 24px 0;
  line-height: 1.75;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Call to Action Buttons */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button:hover {
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.button:hover .btn-icon {
  transform: translateX(3px);
}

.dark {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dark:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  background: #f8f1df;
}

.light {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}

.light:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* --- 3e. Hero metrics / social proof --- */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  width: fit-content;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.metric strong {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.metric span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
}

/* --- 3f. Hero visual (right column) --- */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  z-index: 2;
}

/* Floating avatar card */
.hero-avatar-card {
  position: relative;
  background: rgba(255, 250, 240, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  animation: hero-card-float 5s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.hero-avatar-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@keyframes hero-card-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.avatar-glow {
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(232, 201, 109, 0.15) 0%, transparent 70%);
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.avatar-frame {
  width: 220px;
  height: auto;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.avatar-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.hero-avatar-card:hover .avatar-img {
  transform: scale(1.06);
}

.avatar-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.avatar-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.avatar-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.avatar-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Hero Totoro Companion
   -------------------------------------------------------------------------- */
.hero-totoro-area {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  position: relative;
  width: fit-content;
}

.totoro-figure {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.totoro-figure:hover {
  transform: translateY(-6px) scale(1.03);
}

.totoro-figure:hover .ears i:first-child {
  transform: rotate(-32deg) translateY(-2px);
}

.totoro-figure:hover .ears i:last-child {
  transform: rotate(32deg) translateY(-2px);
}

.leaf-hat {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(-12deg);
  font-size: 22px;
  z-index: 6;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.totoro-figure:hover .leaf-hat {
  transform: translateX(-50%) rotate(18deg) scale(1.18);
}

/* Totoro Creature Anatomical Elements */
.creature {
  width: 80px;
  height: 90px;
  border-radius: 48% 48% 42% 42%;
  background: rgba(125, 145, 132, 0.85);
  position: relative;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
}

.ears {
  position: absolute;
  top: -22px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.ears i {
  display: block;
  width: 20px;
  height: 30px;
  background: rgba(125, 145, 132, 0.85);
  transform: rotate(-20deg);
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.ears i+i {
  transform: rotate(20deg);
}

.eyes {
  position: absolute;
  top: 30px;
  left: 22px;
  display: flex;
  gap: 22px;
}

.eyes b {
  width: 7px;
  height: 10px;
  background: #1a2e24;
  border-radius: 50%;
  display: block;
}

.nose {
  position: absolute;
  top: 44px;
  left: 37px;
  width: 6px;
  height: 6px;
  background: #1a2e24;
  border-radius: 50%;
}

.belly {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 8px;
  color: rgba(239, 230, 203, 0.8);
  letter-spacing: 2px;
}

.totoro-shadow {
  width: 74px;
  height: 10px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  margin: 5px auto 0;
  filter: blur(3px);
}

.totoro-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.totoro-bubble {
  background: rgba(255, 250, 240, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  user-select: none;
}

.totoro-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 7px solid rgba(255, 250, 240, 0.15);
}

.totoro-bubble::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid rgba(255, 255, 255, 0.12);
  z-index: -1;
}

.bubble-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.bubble-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.totoro-garden {
  font-size: 13px;
  letter-spacing: 6px;
  opacity: 0.6;
  padding-left: 6px;
}

/* --- 3g. Scroll indicator --- */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.scroll-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scroll-bob 2s ease-in-out infinite;
}

@keyframes scroll-bob {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }

  50% {
    transform: scaleY(0.6);
    opacity: 0.2;
  }
}

/* --------------------------------------------------------------------------
   5. Ambient Decorations (clouds, sparkles)
   -------------------------------------------------------------------------- */
.cloud {
  position: fixed;
  color: #fff;
  opacity: 0.5;
  font-size: 100px;
  z-index: -1;
  pointer-events: none;
}

.cloud1 {
  left: 2%;
  top: 10%;
}

.cloud2 {
  right: 4%;
  top: 4%;
  font-size: 70px;
}

.sparkles {
  position: absolute;
  top: 100px;
  right: 35%;
  color: #bf9d58;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   6. Section Dividers (Ghibli Leaf & Sparkle Separators)
   -------------------------------------------------------------------------- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 35px 8vw;
  background: transparent;
}

.section-divider>span {
  font-size: 22px;
  color: var(--green);
  opacity: 0.7;
  animation: divider-float 3.5s ease-in-out infinite;
}

.section-divider>span:nth-child(3) {
  font-size: 14px;
  color: var(--orange);
  opacity: 0.55;
  animation-delay: 0.4s;
}

.section-divider>span:nth-child(1) {
  animation-delay: 0s;
}

.section-divider>span:nth-child(5) {
  animation-delay: 0.8s;
}

.divider-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   7. Common Section Headings
   -------------------------------------------------------------------------- */
.section-title span {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--orange);
  font-weight: 800;
}

.section-title h2 {
  font: 600 clamp(42px, 5vw, 70px) / 1.02 var(--font-heading);
  margin: 20px 0;
  letter-spacing: -0.04em;
}

/* --------------------------------------------------------------------------
   8. Section 01: About (Paper Section)
   -------------------------------------------------------------------------- */
.paper-section {
  padding: 110px 10vw;
  position: relative;
  display: grid;
  grid-template-columns: 36% 60%;
  gap: 4%;
  align-items: center;
  border-top: 1px solid var(--line);
}

.paper-section .section-title,
.about-content {
  padding: 36px 40px;
}

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

.about-content p {
  color: #6c776f;
  text-align: justify;
}

.about-content .big {
  font: 500 27px / 1.35 var(--font-heading);
  color: var(--ink);
  text-align: justify;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.skills span {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 20px;
  background: #f6edda;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
}

.skills span:hover {
  transform: translateY(-2px);
  background: #edd8bc;
}

/* --------------------------------------------------------------------------
   9. Section 02: Work & Projects Grid
   -------------------------------------------------------------------------- */
.work-section {
  padding: 125px 7vw;
  position: relative;
}

.work-section .section-title,
.work-intro,
.projects {
  position: relative;
  z-index: 1;
}

.work-section .section-title h2 {
  color: var(--ink);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.7);
}

.work-intro {
  max-width: 480px;
  margin: -25px 0 35px 38%;
  color: #3d4f44;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

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

.project {
  padding: 21px;
  display: flex;
  flex-direction: column;
}

.project:hover {
  transform: none;
  box-shadow: none;
}

/* Playful Postcard Angles */
.p2 {
  transform: rotate(1deg);
}

.p3 {
  transform: rotate(-1deg);
}

.p5 {
  transform: rotate(0.7deg);
}

.p7 {
  transform: rotate(-0.6deg);
}

.stamp {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #3d5245;
  font-weight: 800;
}

.project-art {
  display: none;
}

.chat-art {
  background: #e8d6a0;
  color: #607b66;
  font-size: 25px;
}

.paper-art {
  background: #d9c4a6;
  color: #806348;
}

.book-art {
  background: #d8a6a0;
  color: #fff;
}

.flower-art {
  background: #b9ced0;
  color: #557a79;
}

.video-art {
  background: #a9c2a7;
  color: #fff;
}

.voice-art {
  background: #ead29b;
  color: #806c4b;
}

.fit-art {
  background: #c7b5c6;
  color: #fff;
}

.data-art {
  background: #b9c6d5;
  color: #567085;
}

.project h3 {
  font: 600 25px / 1.1 var(--font-heading);
  margin: 0 0 8px;
  color: var(--ink);
}

.project p {
  font-size: 12px;
  color: #4a5a50;
  margin: 0 0 18px;
  flex-grow: 1;
}

.project small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   10. Section 03: Experience / Journey Timeline
   -------------------------------------------------------------------------- */
.experience {
  padding: 125px 12vw;
  position: relative;
  display: grid;
  grid-template-columns: 38% 62%;
}

.path {
  position: relative;
  padding-left: 45px;
}

.path-line {
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #c9bea7;
}

.path article {
  display: block;
  margin-bottom: 48px;
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -38px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(85, 117, 99, 0.15);
  z-index: 2;
}

.date-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 6px;
  background: rgba(217, 144, 97, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
}

.path h3 {
  font: 600 23px var(--font-heading);
  margin: 5px 0;
}

.path p {
  color: #6e786f;
  font-size: 13px;
  margin: 8px 0;
}

/* --------------------------------------------------------------------------
   11. Section 04: Research Section
   -------------------------------------------------------------------------- */
.research-section {
  padding: 125px 12vw;
  display: grid;
  grid-template-columns: 38% 62%;
}

.papers article {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  transition: transform 0.25s ease;
}

.papers article:hover {
  transform: translateX(6px);
}

.papers span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--orange);
  font-weight: 800;
}

.papers h3 {
  font: 600 25px / 1.25 var(--font-heading);
  margin: 9px 0 0;
}

/* --------------------------------------------------------------------------
   12. Education, Languages & Achievements Cards
   -------------------------------------------------------------------------- */
.education {
  padding: 90px 8vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.edu-card {
  padding: 30px;
}

.edu-card:hover {
  transform: none;
  box-shadow: none;
}

.edu-card span {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--orange);
  font-weight: 800;
}

.edu-card h2 {
  font: 600 30px var(--font-heading);
  margin: 12px 0;
}

.edu-card p {
  font-size: 13px;
  color: #6c786f;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   13. Contact Banner & Footer
   -------------------------------------------------------------------------- */
.contact {
  margin: 0;
  border-radius: 0;
  padding: 125px 12vw;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact>span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d9e6d2;
  font-weight: 700;
}

.contact h2 {
  font: 600 clamp(45px, 6vw, 78px) / 1.02 var(--font-heading);
  margin: 22px 0;
}

.contact p {
  color: #d7e0d8;
  font-size: 16px;
  text-align: center;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-buttons a {
  background: #f8efd9;
  color: var(--ink);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 160px;
}

.contact-buttons a:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-cloud {
  position: absolute;
  left: 4%;
  top: 8%;
  font-size: 90px;
  opacity: 0.1;
  pointer-events: none;
}

.contact-star {
  position: absolute;
  right: 6%;
  bottom: 2%;
  font-size: 150px;
  opacity: 0.1;
  pointer-events: none;
}

footer {
  padding: 0 7vw 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #778077;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   14. Animations & Keyframes
   -------------------------------------------------------------------------- */
@keyframes hero-float {

  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }

  50% {
    transform: rotate(-1.5deg) translateY(-8px);
  }
}

@keyframes divider-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* --------------------------------------------------------------------------
   15. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 100px 6vw 100px;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-copy>p {
    text-align: center;
  }

  .hero-status {
    margin-left: auto;
    margin-right: auto;
  }

  .actions {
    justify-content: center;
  }

  .hero-metrics {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    display: none;
  }

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

  .paper-section,
  .experience,
  .research-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 650px) {
  .nav {
    padding: 0 5vw;
  }

  .nav nav,
  .tiny-button {
    display: none;
  }

  .hero {
    padding: 0;
    min-height: auto;
  }

  .hero-content {
    padding: 80px 6vw 100px;
  }

  .hero-scroll {
    display: none;
  }

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

  .work-intro {
    margin: 0 0 30px;
  }

  .paper-section,
  .experience,
  .research-section {
    padding-left: 8vw;
    padding-right: 8vw;
  }

  .education {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .contact {
    margin-inline: 0;
    padding: 80px 8vw;
  }

  footer {
    padding-inline: 7vw;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}


/* ==========================================================================
   16. LAYOUT & READABILITY FIXES
   Text colours, page background colours and copy are unchanged.
   Each illustrated section now shows its artwork as a full, uncropped banner
   across the top; the content sits below on a calm base, so nothing is
   drawn over busy artwork.
   ========================================================================== */

/* --- Shared banner system ------------------------------------------------ */
.paper-section,
.work-section,
.experience,
.research-section,
.education {
  --ratio: 3;
  --bh: max(150px, calc(min(100vw, 1700px) / var(--ratio)));
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--bh) - 30px);
}

.paper-section::before,
.work-section::before,
.experience::before,
.research-section::before,
.education::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bh);
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%);
  mask-image: linear-gradient(#000 62%, transparent 100%);
}

.paper-section {
  --ratio: 3.06;
}

.work-section {
  --ratio: 2.97;
}

.experience {
  --ratio: 3.16;
}

.research-section {
  --ratio: 3.3;
}

.education {
  --ratio: 4.5;
}

.paper-section::before {
  background-image: url('Image/Web/01.jpg');
}

.work-section::before {
  background-image: url('Image/Web/02.png');
}

.experience::before {
  background-image: url('Image/Web/03.jpg');
}

.research-section::before {
  background-image: url('Image/Web/04.png');
}

.education::before {
  background-image: url('Image/Web/05.jpg');
}

/* Calm base under the dark artwork so light text always has contrast */
.experience {
  background-color: #1f2c38;
}

.research-section {
  background-color: #2a2f3a;
}

.education {
  background-color: #2b2a30;
}

/* Bottom padding for the sections (top padding is set by the banner) */
.paper-section,
.work-section,
.experience,
.research-section,
.education {
  padding-bottom: 60px;
}

/* --- 01 About ------------------------------------------------------------ */
.paper-section {
  align-items: start;
}

.paper-section .section-title,
.about-content {
  padding: 20px 0;
}

.paper-section .section-title h2,
.paper-section .section-title span,
.paper-section .section-title h2 em,
.about-content p,
.about-content .big {
  text-shadow: none;
}

.about-content p {
  color: #3a4e42;
}

.about-content .big {
  color: var(--ink);
}

.about-content .skills span {
  color: var(--ink);
  background: rgba(255, 250, 235, 0.85);
  border-color: rgba(48, 72, 62, 0.25);
  font-size: 12px;
}

/* --- 02 Work ------------------------------------------------------------- */
.work-section .section-title h2 {
  text-shadow: none;
}

.work-intro {
  margin: 0 0 40px;
  max-width: 560px;
  text-shadow: none;
}

.project {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 22px rgba(48, 72, 62, 0.08);
  min-width: 0;
}

.stamp {
  font-size: 10px;
  margin-bottom: 10px;
}

.project h3 {
  font-size: clamp(20px, 1.9vw, 25px);
  overflow-wrap: anywhere;
}

.project p {
  font-size: 13px;
}

.project small {
  font-size: 10px;
}

/* --- 03 Experience (dark) ----------------------------------------------- */
.experience .section-title span,
.experience .section-title h2,
.experience .section-title h2 em,
.experience .path h3,
.experience .path p,
.experience .path .timeline-marker,
.research-section .section-title span,
.research-section .section-title h2,
.research-section .section-title h2 em,
.research-section .papers span,
.research-section .papers h3,
.education .edu-card span,
.education .edu-card h2,
.education .edu-card p {
  text-shadow: none;
}

.experience .section-title span,
.research-section .section-title span,
.research-section .papers span,
.education .edu-card span {
  color: var(--orange);
}

.experience .section-title h2,
.research-section .section-title h2 {
  color: #fff8f0;
}

.experience .section-title h2 em,
.research-section .section-title h2 em {
  color: var(--orange);
}

.experience .path h3,
.research-section .papers h3 {
  color: #fff8ec;
}

.experience .path p {
  color: #e8d8c0;
  font-size: 14px;
}

.experience .path-line {
  background: rgba(255, 255, 255, 0.35);
}

.experience .path .timeline-marker {
  background: rgba(85, 117, 99, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* --- 04 Research (dark) -------------------------------------------------- */
.research-section .papers article {
  border-top-color: rgba(255, 255, 255, 0.25);
}

.research-section .papers span {
  font-size: 10px;
}

.research-section .papers h3 {
  font-size: clamp(19px, 1.9vw, 25px);
}

.papers article:first-child {
  border-top: 0;
  padding-top: 0;
}

/* --- 05 Education (dark) ------------------------------------------------- */
.education {
  align-items: stretch;
}

.edu-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.education .edu-card h2 {
  color: #fff8ec;
  font-size: clamp(24px, 2.4vw, 30px);
}

.education .edu-card p {
  color: #e8d8c0;
  font-size: 14px;
}

.edu-card span {
  font-size: 10px;
}

/* --- 06 Contact ---------------------------------------------------------- */
.contact {
  background-image: url('Image/Web/06.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #28282e;
  isolation: isolate;
}

.contact::before {
  /* scrim keeps the light text readable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(20, 20, 28, 0.55), rgba(20, 20, 28, 0.72));
  pointer-events: none;
}

.contact>span {
  font-size: 11px;
}

.contact-buttons a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* --- Hero / nav polish --------------------------------------------------- */
.sparkles {
  pointer-events: none;
  z-index: 1;
}

.hero-totoro-area {
  max-width: 100%;
}

.totoro-note {
  min-width: 0;
}

.nav nav a,
.tiny-button {
  padding-block: 6px;
}

a:focus-visible,
.button:focus-visible,
.totoro-figure:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* --- Tablet ≤1000px ------------------------------------------------------ */
@media (max-width: 1000px) {
  .hero {
    min-height: auto;
  }

  .hero-vignette {
    background:
      radial-gradient(ellipse at center, rgba(20, 28, 22, 0.6) 0%, rgba(20, 28, 22, 0.35) 50%, transparent 80%),
      linear-gradient(to top, rgba(248, 241, 223, 0.95) 0%, rgba(248, 241, 223, 0.3) 15%, transparent 40%);
  }

  .paper-section,
  .experience,
  .research-section {
    padding-left: 7vw;
    padding-right: 7vw;
    gap: 16px;
  }

  .work-section {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .education {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .work-intro {
    margin: 0 0 30px;
  }

  .papers article:first-child {
    border-top: 1px solid rgba(255, 255, 255, .25);
    padding-top: 26px;
  }

  .contact {
    padding: 80px 8vw;
  }
}

/* --- Phone ≤650px -------------------------------------------------------- */
@media (max-width: 650px) {
  .nav {
    height: auto;
    flex-wrap: wrap;
    row-gap: 2px;
    padding: 10px 5vw 8px;
  }

  .nav nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
  }

  .nav nav a {
    padding: 6px 4px;
  }

  .tiny-button {
    display: none;
  }

  .logo {
    font-size: 18px;
  }

  .sparkles {
    display: none;
  }

  .hero {
    padding: 0;
  }

  .hero-copy {
    padding: 32px 6vw 28px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 48px);
    /* smaller so each line fits cleanly */
  }

  .hero-copy>p {
    font-size: 16px;
  }

  .actions .button {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero-totoro-area {
    gap: 16px;
    flex-wrap: nowrap;
  }

  .creature {
    width: 78px;
    height: 90px;
  }

  .eyes {
    top: 30px;
    left: 22px;
    gap: 21px;
  }

  .nose {
    top: 44px;
    left: 36px;
  }

  .totoro-shadow {
    width: 72px;
  }

  .hero-particles {
    display: none;
  }

  .section-title h2 {
    font-size: clamp(36px, 11vw, 48px);
    margin: 12px 0;
  }

  .paper-section,
  .experience,
  .research-section {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .work-section {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .education {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .about-content .big {
    font-size: 21px;
  }

  .projects {
    gap: 14px;
  }

  .project {
    padding: 20px;
  }

  .path {
    padding-left: 32px;
  }

  .path-line {
    left: 10px;
  }

  .timeline-marker {
    left: -29px;
  }

  .path article {
    margin-bottom: 34px;
  }

  .path h3 {
    font-size: 20px;
  }

  .edu-card {
    padding: 24px;
  }

  .contact {
    margin: 0;
    border-radius: 0;
    padding: 80px 6vw;
  }

  .contact h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .contact-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 100%;
  }

  .contact-buttons a {
    min-width: unset;
    width: 100%;
    padding: 12px 8px;
    font-size: 12px;
    text-align: center;
  }

  .contact-buttons a:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }

  footer {
    line-height: 1.5;
  }
}

/* --- Ultra-wide: keep content from stretching ---------------------------- */
@media (min-width: 1700px) {

  .paper-section,
  .work-section,
  .experience,
  .research-section,
  .education {
    padding-left: max(10vw, calc((100vw - 1400px) / 2));
    padding-right: max(10vw, calc((100vw - 1400px) / 2));
  }
}

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

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

/* --- Refinements after visual review ------------------------------------ */

.paper-section {
  grid-template-columns: 40% 56%;
  gap: 4%;
}

.research-section {
  grid-template-columns: 42% 58%;
  column-gap: 4vw;
}

.research-section .section-title h2 {
  font-size: clamp(38px, 4.4vw, 62px);
}

@media (max-width: 1000px) {

  .paper-section,
  .experience,
  .research-section {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MUSIC TOGGLE BUTTON
   ========================================================================== */
@keyframes music-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(168, 190, 167, 0.7);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(168, 190, 167, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(168, 190, 167, 0);
  }
}

@keyframes music-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.music-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px 10px 13px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: rgba(248, 241, 223, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
}

.music-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
}

.music-btn:active {
  transform: scale(0.96);
}

/* Pulsing ring when music is PLAYING */
.music-btn.playing {
  animation: music-pulse 2s ease-out infinite;
  background: rgba(200, 220, 200, 0.95);
}

.music-btn .music-icon {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* Spin the note icon while music plays */
.music-btn.playing .music-icon {
  animation: music-spin 3.5s linear infinite;
}

.music-btn .music-label {
  opacity: 0.75;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Muted state */
.music-btn.muted .music-icon {
  animation: none;
}

/* ==========================================================================
   MOBILE BANNER FIX  (≤768 px)
   Desktop images used on all screens.
   cover fills the banner fully — no empty gap below the image.
   ========================================================================== */
/* Hidden on desktop — shown only inside the 768px block below */
.about-mobile-img,
.work-mobile-img,
.exp-mobile-img,
.res-mobile-img,
.edu-mobile-img {
  display: none;
}

@media (max-width: 768px) {

  /* Hero — swap backdrop for mobile-optimised image */
  .hero-backdrop-img {
    background-image: url('Image/Mobile/00 Mobile.jpg');
    background-position: center center;
  }

  .hero-vignette {
    background:
      radial-gradient(ellipse at center, rgba(20, 28, 22, 0.65) 0%, rgba(20, 28, 22, 0.4) 50%, transparent 80%),
      linear-gradient(to top, rgba(248, 241, 223, 0.95) 0%, rgba(248, 241, 223, 0.35) 18%, transparent 45%);
  }

  /* Centre the greeting label on mobile */
  .hero-copy {
    align-items: center;
    text-align: center;
  }

  /* Unified section spacing — same top & bottom on mobile for all sections */
  .paper-section,
  .work-section,
  .experience,
  .research-section,
  .education {
    --ratio: 1.8;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .paper-section::before,
  .work-section::before,
  .experience::before,
  .research-section::before,
  .education::before {
    background-size: cover;
    /* fill banner, no gap */
    background-position: center top;
    /* keep the top of the image visible */
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(#000 80%, transparent 100%);
    mask-image: linear-gradient(#000 80%, transparent 100%);
  }

  /* Remove 01.jpg banner from mobile — hide the reserved space entirely */
  .paper-section::before {
    background-image: none;
    display: none;
    /* collapse the banner height — no empty gap */
  }

  /* About section: flex column, tight layout */
  .paper-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px 6vw;
    /* same top & bottom as all other sections */
    border-top: none;
  }

  /* Remove inner padding from children */
  .paper-section .section-title,
  .paper-section .about-content {
    padding: 0;
  }

  /* Tighten h2 margin inside about section on mobile */
  .paper-section .section-title h2 {
    margin: 6px 0;
    text-align: center;
  }

  /* Section divider — reduce large padding on mobile */
  .section-divider {
    padding: 16px 8vw;
  }

  /* Order: 1 — image first */
  .about-mobile-img {
    display: block !important;
    order: 1;
    width: 100%;
    text-align: center;
    margin: 0;
  }

  .about-mobile-img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 3px solid var(--sage);
    box-shadow: 0 8px 28px rgba(85, 117, 99, 0.22), 0 2px 8px rgba(48, 72, 62, 0.12);
    object-fit: cover;
    display: block;
  }

  /* Order: 2 — section title (01 / heading) below the image */
  .paper-section .section-title {
    order: 2;
  }

  /* Order: 3 — text content last */
  .paper-section .about-content {
    order: 3;
  }

  /* ── Work section — remove 02.png banner, show mobile image ── */
  .work-section::before {
    background-image: none;
    display: none;
  }

  .work-section {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  /* Order: 1 — work mobile image first */
  .work-mobile-img {
    display: block !important;
    order: 1;
    width: 100%;
    text-align: center;
    margin: 0 0 1.4rem 0;
  }

  .work-mobile-img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 3px solid var(--sage);
    box-shadow: 0 8px 28px rgba(85, 117, 99, 0.22), 0 2px 8px rgba(48, 72, 62, 0.12);
    object-fit: cover;
    display: block;
  }

  /* Order: 2 — section title */
  .work-section .section-title {
    order: 2;
    width: 100%;
  }

  /* Order: 3 — intro text */
  .work-section .work-intro {
    order: 3;
    width: 100%;
  }

  /* Order: 4 — project cards */
  .work-section .projects {
    order: 4;
    width: 100%;
  }

  /* ── Shared mobile image style (reused by exp / res / edu) ── */
  .exp-mobile-img img,
  .res-mobile-img img,
  .edu-mobile-img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 3px solid var(--sage);
    box-shadow: 0 8px 28px rgba(85, 117, 99, 0.22), 0 2px 8px rgba(48, 72, 62, 0.12);
    object-fit: cover;
    display: block;
  }

  /* ── Experience section (03) ── */
  .experience::before {
    background-image: none;
    display: none;
  }

  .experience {
    display: flex;
    flex-direction: column;
  }

  .exp-mobile-img {
    display: block !important;
    order: 1;
    width: 100%;
    margin: 0 0 1.4rem 0;
  }

  .experience .section-title {
    order: 2;
    width: 100%;
  }

  .experience .path {
    order: 3;
    width: 100%;
  }

  /* ── Research section (04) ── */
  .research-section::before {
    background-image: none;
    display: none;
  }

  .research-section {
    display: flex;
    flex-direction: column;
  }

  .res-mobile-img {
    display: block !important;
    order: 1;
    width: 100%;
    margin: 0 0 1.4rem 0;
  }

  .research-section .section-title {
    order: 2;
    width: 100%;
  }

  .research-section .papers {
    order: 3;
    width: 100%;
  }

  /* ── Education section (05) ── */
  .education::before {
    background-image: none;
    display: none;
  }

  .education {
    display: flex;
    flex-direction: column;
  }

  .edu-mobile-img {
    display: block !important;
    order: 1;
    width: 100%;
    margin: 0 0 1.4rem 0;
  }

  .education .edu-card {
    order: 2;
    width: 100%;
  }
}