/* Melinda Barokah – Teacher Portfolio
   Values are copied 1:1 from reference "Portfolio Guru v4.dc.html".
   Breakpoints replace the reference's JS-computed {{ }} values:
   ≤1100 mobile nav · ≤560 no header CTA · <980 hero stacked · <820 "Why" stacked */

:root {
  --navy: #1e2b47;
  --muted: #5b6477;
  --coral: #e0685c;
  --coral-hover: #cf564a;
  --coral-text: #c9544a;
  --coral-soft: #fde3dc;
  --coral-hover-bg: #fdebe5;
  --sage-bg: #e4efdf;
  --sage-text: #3d6b45;
  --blue: #3f78d1;
  --page-bg: #fdf9f3;
  --hero-bg: #faf2e7;
  --why-bg: #fbf3e9;
  --panel-bg: #fffdf9;
  --photo-empty: #efe6d8;
  --font-heading: 'Andika', sans-serif;
  --font-body: 'Nunito', ui-sans-serif, system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--page-bg); color: var(--navy); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
/* Zero specificity so every component colour wins, like the reference's inline styles did. */
:where(a) { color: inherit; }
:where(a:hover) { color: var(--coral-text); }
::selection { background: var(--coral-soft); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
:where(:focus-visible) { border-radius: 8px; }

.page { background: var(--page-bg); color: var(--navy); line-height: 1.6; overflow-x: clip; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

.doodle { position: absolute; pointer-events: none; }
.svg-defs { position: absolute; }

/* Photos: soft background keeps the frame's shape while a photo is missing. */
.photo-frame { background: var(--photo-empty); }
.photo-frame picture { display: block; width: 100%; height: 100%; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.eyebrow { font-size: 14px; font-weight: 700; color: var(--coral-text); }
.eyebrow-icon,
.eyebrow-green { display: flex; align-items: center; gap: 8px; }
.eyebrow-green { color: var(--sage-text); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,249,0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid #f1e9dd; }
.header-bar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.brand-role { font-size: 12px; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--navy); background: transparent; transition: background .25s; }
.main-nav a[aria-current="true"] { background: var(--coral-soft); }
.main-nav a:hover { background: var(--coral-hover-bg); color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--coral); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; box-shadow: 0 6px 16px rgba(224,104,92,0.28); transition: background .25s, transform .25s; }
.header-cta:hover { background: var(--coral-hover); color: #fff; transform: translateY(-1px); }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid #efe6d8; border-radius: 12px; background: #fff; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); margin: 0 auto; }

/* Overlays the page instead of pushing it: growing the sticky header made the page jump on open/close. */
.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 75px); max-height: calc(100dvh - 75px); overflow-y: auto; display: flex; flex-direction: column; padding: 6px 20px 20px; background: var(--panel-bg); border-top: 1px solid #f1e9dd; box-shadow: 0 16px 24px rgba(30,43,71,0.08); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-size: 16px; font-weight: 700; color: var(--navy); border-bottom: 1px solid #f3ece1; }
.mobile-nav a.mobile-nav-cta { margin-top: 16px; justify-content: center; border-bottom: 0; border-radius: 999px; background: var(--coral); color: #fff; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-bg); border-bottom-left-radius: 50% 56px; overflow: hidden; }
.doodle-hero-leaf { left: 4px; top: 18px; }
.doodle-hero-star { left: 2.4%; top: 40%; }
.doodle-hero-heart { left: 1.8%; top: 62%; }

.hero-row { display: flex; flex-wrap: wrap; align-items: stretch; }
.hero-text { flex: 1 1 500px; min-width: 0; box-sizing: border-box; position: relative; z-index: 1; padding: 44px 36px 60px max(24px, calc((100vw - 1200px) / 2 + 8px)); }
.doodle-plane { right: 48px; top: 40px; }
.doodle-sun { right: 8px; top: 22px; }

.badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--sage-bg); color: var(--sage-text); font-size: 13.5px; font-weight: 700; }
.hero-title { margin: 28px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(40px, 4.5vw, 60px); line-height: 1.08; letter-spacing: -0.01em; color: var(--navy); }
.hero-lead { margin: 20px 0 0; max-width: 520px; font-size: clamp(17px, 1.5vw, 19px); font-weight: 500; line-height: 1.5; color: var(--navy); text-wrap: pretty; }
.hero-sub { margin: 18px 0 0; max-width: 480px; font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 700; transition: background .25s, transform .25s; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(224,104,92,0.28); }
.btn-primary:hover { background: var(--coral-hover); color: #fff; transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--coral); background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--coral-hover-bg); color: var(--navy); transform: translateY(-2px); }

.stats { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 40px; }
.stat { display: flex; align-items: flex-start; gap: 10px; }
.stat-num { font-family: var(--font-heading); font-weight: 700; font-size: 23px; line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

.hero-media { flex: 1.4 1 480px; min-width: 0; position: relative; min-height: 600px; }
.hero-frame { position: absolute; inset: 10px 12px 12px 0; overflow: hidden; border-radius: 0; -webkit-clip-path: url(#heroBlob); clip-path: url(#heroBlob); }
/* "Fokus foto hero" in the CMS. "right" (69%) matches the pan saved in the design reference. */
.hero-frame img { transition: transform .8s ease; }
.hero-frame img.focus-left { object-position: 31% 50%; }
.hero-frame img.focus-right { object-position: 69% 50%; }
.hero-frame img:hover { transform: scale(1.03); }

.tape-note { position: absolute; z-index: 2; pointer-events: none; }
.tape { position: absolute; left: 50%; background: rgba(236,220,196,0.85); }
.tape-text { background: rgba(255,255,255,0.93); box-shadow: 0 10px 24px rgba(30,43,71,0.14); font-family: var(--font-hand); font-weight: 700; line-height: 1.05; color: var(--navy); }
.tape-note-hero { top: 14%; right: 4%; transform: rotate(-8deg); }
.tape-note-hero .tape { top: -10px; width: 64px; height: 18px; margin-left: -32px; transform: rotate(4deg); }
.tape-note-hero .tape-text { padding: 12px 20px 10px; font-size: 25px; }
.doodle-hero-img-heart { right: 3%; top: 38%; z-index: 2; }

/* ---------- About ---------- */
.about { position: relative; padding: 64px 0 72px; }
.doodle-about-leaf { right: 6px; top: 42%; transform: scaleX(-1) rotate(8deg); }
.about-row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; }

.about-photo { flex: 1 1 260px; position: relative; max-width: 360px; }
.doodle-portrait-leaf { left: -14px; top: -18px; z-index: 2; }
.portrait-frame { overflow: hidden; aspect-ratio: 0.96; border-radius: 34px 46px 30px 54px / 42px 30px 50px 36px; transform: rotate(-2.5deg); box-shadow: 0 22px 44px -20px rgba(30,43,71,0.35); }
.portrait-frame img { transition: transform .8s ease; }
.portrait-frame img:hover { transform: scale(1.04); }

.about-text { flex: 1 1 320px; min-width: 0; }
.about-title { margin: 6px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(32px, 3.4vw, 42px); line-height: 1.1; }
.body-text { margin: 20px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.body-text-next { margin-top: 16px; }
.body-text strong { color: var(--navy); }
.btn-soft { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #fde4dd; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 700; transition: background .25s, transform .25s; }
.btn-soft:hover { background: #fbd3c8; color: var(--navy); transform: translateY(-2px); }

.info-card { flex: 1 1 340px; min-width: 0; background: #f4f1ec; border-radius: 24px; padding: 10px 26px; }
.info-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e6e0d6; }
.info-row:last-child { border-bottom: 0; }
.info-icon { flex: 0 0 42px; height: 42px; border-radius: 50%; background: #e4ebf7; display: grid; place-items: center; }
.info-icon-heart { background: #fde6e6; }
.info-body { min-width: 0; }
.info-label { font-size: 14.5px; font-weight: 800; }
.info-value { font-size: 13.5px; color: var(--muted); }
.info-multiline { line-height: 1.5; }

/* ---------- Teaching Philosophy ---------- */
.philosophy { position: relative; padding: 52px 0 60px; background: linear-gradient(100deg, #e2efe8 0%, #edf4ec 42%, #fcf0e8 100%); border-top-left-radius: 50% 44px; border-top-right-radius: 50% 44px; }
.doodle-philo-leaf { left: 10px; bottom: 24px; transform: rotate(-24deg); }
.philo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.philo-title { margin: 6px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.accent { color: var(--coral); }
.philo-quote { margin: 0; max-width: 380px; font-family: var(--font-hand); font-weight: 600; font-size: clamp(21px, 2vw, 25px); line-height: 1.25; color: #2c3a57; text-align: right; }
.philo-quote svg { vertical-align: middle; }

.philo-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.philo-card { background: #fff; border: 1px solid #efe9df; border-radius: 18px; padding: 26px 22px 28px; text-align: center; box-shadow: 0 6px 18px rgba(30,43,71,0.04); transition: transform .3s, box-shadow .3s; }
.philo-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(30,43,71,0.08); }
.philo-card h3 { margin: 12px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: 20px; }
.philo-card p { margin: 8px auto 0; max-width: 230px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Classroom Activities ---------- */
.activities { padding: 56px 0 40px; }
.activities-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.activities-title { margin: 4px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--blue); }
.link-arrow:hover { color: #2a5fb3; }

.gallery { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.gallery figure { margin: 0; }
.gallery-frame { overflow: hidden; border-radius: 10px; aspect-ratio: 6 / 5; }
.gallery-frame img { transition: transform .6s ease; }
.gallery-frame img:hover { transform: scale(1.06); }
.gallery figcaption { padding: 10px 4px 0; }
.gallery-title { font-size: 13.5px; font-weight: 800; }
.gallery-sub { font-size: 12px; color: var(--muted); }

/* ---------- Teaching Approach + Experience ---------- */
.experience { padding: 32px 0 64px; }
.experience-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }

.approach { flex: 1.25 1 520px; min-width: 0; }
.approach-title { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(24px, 2.4vw, 28px); line-height: 1.2; }
.approach-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.approach-card { background: #fff; border: 1px solid #efe7db; border-radius: 16px; padding: 22px 14px 24px; text-align: center; transition: transform .3s, box-shadow .3s; }
.approach-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(30,43,71,0.08); }
.approach-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.approach-icon-coral { background: #ef7b72; }
.approach-icon-blue { background: #4a86e8; }
.approach-icon-green { background: #4caf6a; }
.approach-icon-yellow { background: #f2b33d; }
.approach-card h3 { margin: 14px 0 0; font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.approach-card p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.timeline-card { flex: 1 1 380px; min-width: 0; background: #fffefb; border: 1px solid #f0e9de; border-radius: 20px; padding: 26px 28px 14px; box-shadow: 0 10px 30px rgba(30,43,71,0.04); }
.timeline-title { margin: 0 0 22px; font-family: var(--font-heading); font-weight: 700; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline-item { display: flex; gap: 16px; }
.timeline-year { flex: 0 0 58px; font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--navy); padding-top: 1px; }
.timeline-year-current { color: #2f7a4f; }
.timeline-rail { flex: 0 0 18px; position: relative; }
.timeline-line { position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #e6dfd3; }
.timeline-line-first { top: 12px; }
.timeline-line-last { bottom: auto; height: 6px; }
.timeline-dot { position: absolute; left: 1px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid; }
.timeline-dot-green { border-color: #5aa469; }
.timeline-dot-blue { border-color: #4a86e8; }
.timeline-dot-pink { border-color: #e8668a; }
.timeline-body { flex: 1; min-width: 0; padding-bottom: 22px; }
.timeline-body-last { padding-bottom: 12px; }
.timeline-role { font-size: 15px; font-weight: 800; line-height: 1.3; }
.timeline-desc { margin-top: 3px; font-size: 13.5px; color: var(--muted); }

/* ---------- Why I Teach + Let's Connect ---------- */
.why { position: relative; background: var(--why-bg); }
.why-row { display: flex; flex-wrap: wrap; align-items: stretch; }

.why-media { flex: 1.3 1 460px; min-width: 0; position: relative; min-height: 400px; }
.why-frame { position: absolute; inset: 0; overflow: hidden; border-radius: 0 260px 220px 0 / 0 360px 300px 0; }
.why-frame img { transition: transform .8s ease; }
.why-frame img:hover { transform: scale(1.03); }
.tape-note-why { left: max(20px, calc((100vw - 1200px) / 2)); top: 22px; transform: rotate(-9deg); }
.tape-note-why .tape { top: -9px; width: 56px; height: 16px; margin-left: -28px; transform: rotate(-3deg); }
.tape-note-why .tape-text { padding: 10px 16px 8px; font-size: 21px; }

.why-text { flex: 1.05 1 340px; min-width: 0; box-sizing: border-box; padding: 44px 32px 48px; position: relative; }
.why-title { margin: 4px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; }
.quote-mark { margin-top: 14px; font-family: var(--font-heading); font-weight: 700; font-size: 54px; line-height: 0.5; height: 24px; color: var(--coral); }
.why-quote { margin: 6px 0 0; padding-left: 28px; max-width: 420px; font-size: 15.5px; line-height: 1.7; color: #4c566b; text-wrap: pretty; }
.signature-row { margin-top: 14px; padding-left: 28px; max-width: 420px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.signature { font-family: var(--font-hand); font-weight: 600; font-size: 24px; color: #2c3a57; }
.doodle-signature-heart { transform: rotate(12deg); }

.contact { flex: 1 1 320px; min-width: 0; box-sizing: border-box; position: relative; background: var(--panel-bg); border-top-left-radius: 32px; padding: 44px max(24px, calc((100vw - 1200px) / 2)) 44px 36px; }
.doodle-contact-leaf { right: 10px; top: 16px; }
.doodle-contact-heart { right: max(20px, calc((100vw - 1200px) / 2 - 20px)); top: 46%; }
.contact-title { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: clamp(24px, 2.4vw, 28px); line-height: 1.2; }
.contact-intro { margin: 10px 0 0; max-width: 300px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.contact-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 16px 18px; }
.contact-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.contact-item:hover { color: var(--navy); }
.contact-item-wide { grid-column: 1 / -1; }
.contact-icon { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.contact-icon-email { background: #dff2ef; }
.contact-icon-whatsapp { background: #25a35a; }
.contact-icon-instagram { background: #e1306c; }
.contact-icon-linkedin { background: #0a66c2; }
.contact-text { min-width: 0; }
.contact-label { display: block; font-size: 13.5px; font-weight: 800; }
.contact-value { display: block; font-size: 12.5px; color: var(--muted); }
.contact-value-wrap { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--page-bg); border-top: 1px solid #efe7da; }
.footer-bar { padding: 18px 0 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.footer-brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { text-decoration: none; font-size: 12.5px; color: var(--muted); }
.footer-nav a:hover { color: var(--navy); }
.copyright { font-size: 12px; color: var(--muted); }

/* ---------- 404 page ---------- */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 48px 0; box-sizing: border-box; }
.not-found-action { margin: 28px 0 0; }

/* ---------- Reveal on scroll (js/main.js) ----------
   data-reveal="" fades up; "left" / "right" slide in; "zoom" scales up; "tilt" rotates in.
   --reveal-delay staggers siblings and is set by main.js. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease var(--reveal-delay, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0s); }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal="tilt"] { transform: translateY(28px) rotate(-5deg); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Timeline draws itself: line grows down, then the ring pops in. */
.js .timeline-item[data-reveal] .timeline-line { transform: scaleY(0); transform-origin: top; transition: transform .7s ease calc(var(--reveal-delay, 0s) + .25s); }
.js .timeline-item[data-reveal] .timeline-dot { transform: scale(0); transition: transform .45s cubic-bezier(.34,1.56,.64,1) calc(var(--reveal-delay, 0s) + .15s); }
.js .timeline-item.is-visible .timeline-line,
.js .timeline-item.is-visible .timeline-dot { transform: none; }

/* ---------- Motion (skipped entirely for prefers-reduced-motion) ---------- */
@keyframes rise-in { from { opacity: 0; translate: 0 22px; } }
@keyframes photo-in { from { opacity: 0; scale: 1.08; } }
@keyframes tape-in { from { opacity: 0; translate: 0 -18px; rotate: -10deg; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 5deg; } }
@keyframes twinkle { 0%, 100% { scale: 1; rotate: 0deg; } 50% { scale: 1.25; rotate: 18deg; } }
@keyframes heartbeat { 0%, 60%, 100% { scale: 1; } 15% { scale: 1.18; } 30% { scale: 1; } 45% { scale: 1.12; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes dash-march { to { stroke-dashoffset: -18; } }
@keyframes menu-in { from { opacity: 0; translate: 0 -10px; } }
@keyframes menu-out { to { opacity: 0; translate: 0 -10px; } }
/* Menu links drop in from above: overflowing upwards never creates a scrollbar inside the menu. */
@keyframes menu-item { from { opacity: 0; translate: 0 -8px; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .hero-text > .badge,
  .hero-title,
  .hero-lead,
  .hero-sub,
  .hero-ctas,
  .stats { animation: rise-in .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-title { animation-delay: .08s; }
  .hero-lead { animation-delay: .16s; }
  .hero-sub { animation-delay: .24s; }
  .hero-ctas { animation-delay: .32s; }
  .stats { animation-delay: .4s; }
  .hero-frame img { animation: photo-in 1.2s cubic-bezier(.2,.7,.2,1) both; }
  .tape-note-hero { animation: tape-in .7s cubic-bezier(.34,1.56,.64,1) .55s both; }

  /* Living doodles. Leaves sway around their stem inside the SVG so the doodle's own position/rotation is untouched. */
  .doodle-hero-leaf, .doodle-about-leaf, .doodle-philo-leaf, .doodle-portrait-leaf, .doodle-contact-leaf { overflow: visible; }
  .doodle-hero-leaf path, .doodle-about-leaf path, .doodle-philo-leaf path { transform-box: view-box; transform-origin: 17% 98%; animation: sway 6s ease-in-out infinite; }
  .doodle-about-leaf path { animation-duration: 7s; animation-delay: -2s; }
  .doodle-philo-leaf path { animation-duration: 6.5s; animation-delay: -4s; }
  .doodle-portrait-leaf path { transform-box: view-box; transform-origin: 50% 97%; animation: sway 5s ease-in-out -1s infinite; }
  .doodle-contact-leaf path { transform-box: view-box; transform-origin: 3% 90%; animation: sway 6s ease-in-out -3s infinite; }
  .doodle-hero-star { animation: fade-in .6s .7s both, twinkle 3.2s ease-in-out 1.3s infinite; }
  .doodle-hero-heart, .doodle-hero-img-heart, .doodle-contact-heart, .doodle-signature-heart { animation: heartbeat 2.8s ease-in-out infinite; }
  .doodle-hero-img-heart { animation: fade-in .5s .9s both, heartbeat 2.8s ease-in-out 1.4s infinite; }
  .doodle-contact-heart { animation-delay: -1.2s; }
  .doodle-sun { animation: fade-in .6s .6s both, spin 24s linear infinite; }
  .doodle-plane { animation: fade-in .6s .7s both, float 5s ease-in-out 1.3s infinite; }
  .doodle-plane path:nth-child(3) { animation: dash-march 1.4s linear infinite; }

  /* Hover micro-interactions */
  .btn svg, .btn-soft svg, .link-arrow svg { transition: translate .25s ease; }
  .btn-primary:hover svg, .btn-soft:hover svg, .link-arrow:hover svg { translate: 4px 0; }
  .btn-outline:hover svg { translate: 2px 0; }
  .stat > svg { transition: rotate .4s cubic-bezier(.34,1.56,.64,1), scale .4s cubic-bezier(.34,1.56,.64,1); }
  .stat:hover > svg { rotate: -10deg; scale: 1.15; }
  .philo-card > svg { transition: rotate .45s cubic-bezier(.34,1.56,.64,1), scale .45s cubic-bezier(.34,1.56,.64,1); }
  .philo-card:hover > svg { rotate: -8deg; scale: 1.1; }
  .approach-icon { transition: rotate .45s cubic-bezier(.34,1.56,.64,1), scale .45s cubic-bezier(.34,1.56,.64,1); }
  .approach-card:hover .approach-icon { rotate: -8deg; scale: 1.1; }
  .info-icon { transition: scale .35s cubic-bezier(.34,1.56,.64,1); }
  .info-row:hover .info-icon { scale: 1.12; }
  .contact-icon { transition: translate .3s ease, box-shadow .3s ease; }
  .contact-item:hover .contact-icon { translate: 0 -3px; box-shadow: 0 8px 16px rgba(30,43,71,0.14); }
  .gallery-title { transition: color .25s; }
  .gallery figure:hover .gallery-title { color: var(--coral-text); }

  /* Header and mobile menu */
  .site-header { transition: box-shadow .3s ease; }
  .burger span { transition: translate .25s ease, rotate .25s ease, opacity .2s ease; }
  .mobile-nav:not([hidden]) { animation: menu-in .25s ease both; }
  .mobile-nav.is-closing { animation: menu-out .2s ease both; }
  .mobile-nav:not([hidden]) a { animation: menu-item .35s ease both; }
  .mobile-nav:not([hidden]) a:nth-child(2) { animation-delay: .03s; }
  .mobile-nav:not([hidden]) a:nth-child(3) { animation-delay: .06s; }
  .mobile-nav:not([hidden]) a:nth-child(4) { animation-delay: .09s; }
  .mobile-nav:not([hidden]) a:nth-child(5) { animation-delay: .12s; }
  .mobile-nav:not([hidden]) a:nth-child(6) { animation-delay: .15s; }
  .mobile-nav:not([hidden]) a:nth-child(7) { animation-delay: .18s; }
}

.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(30,43,71,0.07); }
.burger[aria-expanded="true"] span:nth-child(1) { translate: 0 7px; rotate: 45deg; }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { translate: 0 -7px; rotate: -45deg; }

/* ---------- Responsive ---------- */
@media (min-width: 380px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 560px) {
  .philo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .approach-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .philo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}
@media (min-width: 1101px) {
  .mobile-nav { display: none; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}
@media (max-width: 979.98px) {
  .hero-side-doodle { display: none; }
  .hero-media { min-height: 420px; }
  .hero-frame { inset: 0 20px 28px; border-radius: 28px; -webkit-clip-path: none; clip-path: none; }
}
@media (max-width: 819.98px) {
  .why-media { min-height: 380px; }
  .why-frame { inset: 24px 20px 0; border-radius: 28px; }
}

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