/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream: #FFF8EF;
    --warm: #FFE4BD;
    --terracotta: #C96A3A;
    --rust: #A04B24;
    --ink: #2A1F14;
    --muted: #7A6655;
    --sage: #8BAF7C;
    --dusty-rose: #E8A99A;
    --gold: #D4941E;
    --light-sage: #EBF2E6;
}

html { scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* ── NAV ── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 4rem;
    background: rgba(255,248,239,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,106,58,0.12);
    transition: box-shadow 0.3s;
}

.site-nav.scrolled { box-shadow: 0 2px 20px rgba(42,31,20,0.08); }

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.nav-logo span { color: var(--terracotta); font-style: italic; }
.nav-logo img { height: 44px; width: auto; }

.nav-links {
    display: flex; gap: 2.5rem; list-style: none;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s;
}

.nav-links a:hover,
.nav-links .current-menu-item > a { color: var(--terracotta); }

.nav-links .nav-cta > a {
    background: var(--terracotta);
    color: #fff;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    transition: background 0.25s, transform 0.2s;
}

.nav-links .nav-cta > a:hover { background: var(--rust); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    background: var(--terracotta);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.25s, transform 0.2s;
}

.btn-primary:hover { background: var(--rust); transform: translateY(-2px); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.25s, gap 0.25s;
}

.btn-ghost:hover { color: var(--terracotta); gap: 0.75rem; }

/* ── SECTION LABELS & TITLES ── */
.section-label {
    font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--terracotta); font-weight: 500;
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: inline-block; width: 24px; height: 1.5px;
    background: var(--terracotta);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 1.2rem;
}

.section-title em { font-style: italic; color: var(--terracotta); }

.section-inner { max-width: 1300px; margin: 0 auto; padding: 6rem 4rem; }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8rem 4rem 4rem;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%; right: -5%;
    width: 55vw; height: 55vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,228,189,0.6) 0%, rgba(255,248,239,0) 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--terracotta); font-weight: 500;
    margin-bottom: 1.2rem;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block; width: 28px; height: 1.5px;
    background: var(--terracotta);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5.5vw, 5rem);
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.hero-title em { font-style: italic; color: var(--terracotta); }

.hero-desc {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 2.4rem;
    line-height: 1.75;
}

.hero-tools {
    display: flex; gap: 0.6rem; flex-wrap: wrap;
    margin-bottom: 2.8rem;
}

.tool-pill {
    background: var(--warm);
    color: var(--rust);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.04em;
}

.hero-btns { display: flex; gap: 1rem; align-items: center; }

.hero-visual {
    position: relative;
    display: flex; justify-content: center; align-items: center;
}

.hero-blob {
    width: min(480px, 90%);
    height: min(520px, 90vw);
    border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
    background: linear-gradient(145deg, var(--warm) 0%, #f5c8a0 60%, #e8b080 100%);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    animation: blobMorph 9s ease-in-out infinite;
}

@keyframes blobMorph {
    0%, 100% { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
    33%       { border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%; }
    66%       { border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%; }
}

.hero-blob-img {
    width: 88%;
    filter: drop-shadow(0 12px 32px rgba(42,31,20,0.18));
    z-index: 1;
}

.floating-tag {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    box-shadow: 0 8px 24px rgba(42,31,20,0.12);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink);
    display: flex; align-items: center; gap: 0.5rem;
    white-space: nowrap;
}

.floating-tag.tag1 { top: 12%; right: -5%; animation: floatTag 3s ease-in-out infinite; }
.floating-tag.tag2 { bottom: 22%; left: -8%; animation: floatTag 3s 1.2s ease-in-out infinite; }
.floating-tag.tag3 { bottom: 8%; right: 5%; animation: floatTag 3s 0.6s ease-in-out infinite; }

.tag-dot { width: 8px; height: 8px; border-radius: 50%; }
.tag-dot.green { background: var(--sage); }
.tag-dot.rose  { background: var(--dusty-rose); }
.tag-dot.gold  { background: var(--gold); }

@keyframes floatTag {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* ── BOOKS ── */
.section-books { background: var(--cream); }

.section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 3.5rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.book-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(42,31,20,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(42,31,20,0.14);
}

.book-card:nth-child(2) { margin-top: 2rem; }

.book-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.book-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.book-card:hover .book-thumb img { transform: scale(1.06); }

.book-thumb-fill {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    transition: transform 0.4s;
}

.book-card:hover .book-thumb-fill { transform: scale(1.06); }

.book-fill-1 { background: linear-gradient(135deg, #a8d8b0 0%, #6bb882 100%); }
.book-fill-2 { background: linear-gradient(135deg, #fad580 0%, #f0a840 100%); }
.book-fill-3 { background: linear-gradient(135deg, #b8d4f0 0%, #7aaad8 100%); }

.book-info { padding: 1.4rem 1.5rem 1.6rem; }

.book-tag {
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--terracotta); margin-bottom: 0.4rem;
}

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; color: var(--ink); margin-bottom: 0.5rem;
}

.book-title a { color: inherit; }
.book-title a:hover { color: var(--terracotta); }
.book-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.6; }

/* ── ABOUT ── */
.section-about {
    background: var(--warm);
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
    padding: 8rem 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem; align-items: center;
    max-width: 1200px; margin: 0 auto;
}

.about-photo-wrap { position: relative; }

.about-photo-bg {
    width: 100%; padding-bottom: 115%;
    border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
    background: linear-gradient(160deg, #e8b080 0%, var(--terracotta) 100%);
    position: relative; overflow: hidden;
}

.about-decoration {
    position: absolute; top: -16px; right: -16px;
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 2px dashed var(--terracotta);
    opacity: 0.35;
}

.about-stat-card {
    position: absolute; bottom: -20px; left: -20px;
    background: #fff; border-radius: 16px;
    padding: 1rem 1.4rem;
    box-shadow: 0 12px 32px rgba(42,31,20,0.12);
    text-align: center;
}

.about-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; color: var(--terracotta); line-height: 1;
}

.about-stat-label { font-size: 0.76rem; color: var(--muted); margin-top: 0.2rem; }

.about-content p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.05rem; }

.values-list { list-style: none; margin: 1.8rem 0 2.4rem; display: flex; flex-direction: column; gap: 0.85rem; }

.values-list li { display: flex; align-items: center; gap: 0.9rem; font-size: 0.95rem; color: var(--ink); }

.val-icon {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(201,106,58,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}

/* ── SKILLS ── */
.section-skills {
    background: var(--ink);
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
    padding: 8rem 4rem;
    color: #fff;
}

.skills-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.6fr;
    gap: 5rem; align-items: center;
}

.section-skills .section-label { color: var(--dusty-rose); }
.section-skills .section-label::before { background: var(--dusty-rose); }
.section-skills .section-title { color: #fff; }
.section-skills .section-title em { color: var(--dusty-rose); }

.skills-desc { color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 2rem; font-size: 1rem; }

.skill-bars { display: flex; flex-direction: column; gap: 1.4rem; }

.skill-row { display: flex; flex-direction: column; gap: 0.5rem; }

.skill-top {
    display: flex; justify-content: space-between;
    font-size: 0.88rem; color: rgba(255,255,255,0.85);
}

.skill-pct { color: var(--dusty-rose); font-weight: 500; }

.skill-track { height: 5px; background: rgba(255,255,255,0.08); border-radius: 50px; overflow: hidden; }

.skill-fill {
    height: 100%; border-radius: 50px;
    background: linear-gradient(90deg, var(--dusty-rose), var(--gold));
    width: 0; transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── PORTFOLIO ── */
.section-portfolio { padding: 6rem 0; }

.illus-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 3rem;
}

.illus-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.4rem;
}

.illus-cell {
    border-radius: 16px; overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.3s;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
    position: relative;
}

.illus-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.illus-cell:hover { transform: scale(1.03); }
.illus-cell.span2 { grid-row: span 2; aspect-ratio: unset; min-height: 360px; font-size: 6rem; }
.illus-cell.tall  { aspect-ratio: 0.85; }

.ic1 { background: linear-gradient(145deg, #fde4c8, #f0b080); }
.ic2 { background: linear-gradient(145deg, #c8e4d4, #7dbf9b); }
.ic3 { background: linear-gradient(145deg, #d4e0f5, #8faee0); }
.ic4 { background: linear-gradient(145deg, #f5d4e0, #e08fa0); }
.ic5 { background: linear-gradient(145deg, #e0f0d4, #a0cc7a); }

.illus-overlay {
    position: absolute; inset: 0;
    background: rgba(42,31,20,0);
    transition: background 0.3s;
    display: flex; align-items: flex-end;
    padding: 1.2rem;
}

.illus-cell:hover .illus-overlay { background: rgba(42,31,20,0.4); }

.illus-label {
    color: #fff; font-size: 0.85rem; font-weight: 500;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
    position: relative; z-index: 1;
}

.illus-cell:hover .illus-label { opacity: 1; transform: translateY(0); }

/* ── PROCESS ── */
.section-process {
    background: var(--light-sage);
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
    padding: 8rem 4rem;
}

.process-inner { max-width: 1100px; margin: 0 auto; }

.process-header { text-align: center; margin-bottom: 4rem; }
.process-header .section-label { justify-content: center; }

.process-steps {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem; position: relative;
}

.process-steps::before {
    content: '';
    position: absolute; top: 36px; left: 15%; right: 15%;
    height: 1px; background: rgba(139,175,124,0.5); z-index: 0;
}

.process-step { text-align: center; position: relative; z-index: 1; }

.step-num {
    width: 72px; height: 72px; border-radius: 50%;
    background: #fff; border: 1.5px solid var(--sage);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem; font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(139,175,124,0.2);
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem; color: var(--ink); margin-bottom: 0.5rem;
}

.step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ── CONTACT ── */
.section-contact {
    padding: 7rem 4rem;
    max-width: 900px; margin: 0 auto; text-align: center;
}

.section-contact .section-label { justify-content: center; }
.section-contact .section-title { font-size: clamp(2.2rem, 4vw, 3.4rem); }

.contact-desc {
    color: var(--muted); font-size: 1.05rem;
    max-width: 560px; margin: 0 auto 2.8rem;
}

.contact-links { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }

.contact-link {
    display: flex; align-items: center; gap: 0.55rem;
    color: var(--ink); font-size: 0.95rem; font-weight: 400;
    padding: 0.75rem 1.6rem;
    border: 1px solid rgba(42,31,20,0.18);
    border-radius: 50px;
    transition: all 0.25s;
    background: #fff;
}

.contact-link:hover {
    background: var(--terracotta); color: #fff;
    border-color: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201,106,58,0.25);
}

.contact-link svg { width: 18px; height: 18px; }

/* ── FOOTER ── */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 2.5rem 4rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.site-footer a { color: var(--dusty-rose); }

.footer-bottom {
    display: flex; justify-content: center; align-items: center; gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: rgba(255,255,255,0.4); font-size: 0.78rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--dusty-rose); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SINGLE TEMPLATES ── */
.entry-header { padding: 8rem 4rem 3rem; max-width: 900px; margin: 0 auto; }
.entry-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.5rem); color: var(--ink); margin-bottom: 1rem; }
.entry-content { max-width: 900px; margin: 0 auto; padding: 0 4rem 6rem; font-size: 1.05rem; color: var(--muted); line-height: 1.8; }
.entry-content h2, .entry-content h3 { font-family: 'Playfair Display', serif; color: var(--ink); margin: 2rem 0 1rem; }
.entry-content p { margin-bottom: 1.2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .books-grid { grid-template-columns: repeat(2, 1fr); }
    .book-card:nth-child(2) { margin-top: 0; }
    .book-card:nth-child(3) { display: none; }
    .skills-inner { grid-template-columns: 1fr; gap: 3rem; }
    .illus-grid { grid-template-columns: 1fr 1fr; }
    .illus-cell.span2 { grid-row: span 1; min-height: 200px; }
}

@media (max-width: 768px) {
    .site-nav { padding: 1.2rem 1.5rem; }
    .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,248,239,0.98); padding: 1rem 0; border-bottom: 1px solid rgba(201,106,58,0.12); }
    .nav-links.open { display: flex; }
    .nav-links li { border-bottom: 1px solid rgba(201,106,58,0.08); }
    .nav-links a { display: block; padding: 0.85rem 2rem; }
    .nav-toggle { display: flex; }

    .hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; gap: 2.5rem; }
    .hero-visual { order: -1; }
    .hero-blob { width: 280px; height: 300px; }
    .floating-tag { display: none; }
    .hero-title { font-size: 2.4rem; }

    .section-about { clip-path: none; padding: 4rem 1.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

    .section-books .section-inner { padding: 4rem 1.5rem; }
    .books-grid { grid-template-columns: 1fr; }
    .book-card:nth-child(3) { display: block; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }

    .section-skills { clip-path: none; padding: 4rem 1.5rem; }

    .section-portfolio .section-inner { padding: 4rem 1.5rem; }
    .illus-grid { grid-template-columns: 1fr 1fr; }
    .illus-header { flex-direction: column; align-items: flex-start; gap: 1rem; }

    .section-process { clip-path: none; padding: 4rem 1.5rem; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before { display: none; }

    .section-contact { padding: 4rem 1.5rem; }

    .entry-header, .entry-content { padding-left: 1.5rem; padding-right: 1.5rem; }
}
