/* =========================================================
   The Growth Codex — personal brand site
   Palette: royal blue (#0040A0) from the brand logo on light blue-white
   ========================================================= */

:root {
    --ink: #0b1f3a;
    --ink-2: #10294d;
    --ink-soft: #1d3a63;
    --royal: #0040a0;
    --royal-bright: #2e6cc4;
    --royal-deep: #002e78;
    --royal-soft: #8fb4e6;
    --ivory: #f4f6fb;
    --ivory-2: #e9eef7;
    --paper: #ffffff;
    --muted: #56657e;
    --line: rgba(11, 31, 58, 0.12);
    --line-light: rgba(244, 246, 251, 0.16);

    --shadow-sm: 0 4px 18px rgba(11, 31, 58, 0.08);
    --shadow-md: 0 18px 45px rgba(11, 31, 58, 0.14);
    --shadow-lg: 0 40px 90px rgba(11, 31, 58, 0.22);

    --radius: 20px;
    --radius-sm: 12px;
    --container: 1180px;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body::before {
    content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
    opacity: .035; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--royal-deep);
    margin: 0 0 1rem;
}
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 68px); text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.grad {
    background: linear-gradient(100deg, var(--royal-bright), var(--royal) 40%, var(--royal-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--ivory);
    padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
    padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--royal-bright), var(--royal) 55%, var(--royal-deep));
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(201, 164, 92, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(201, 164, 92, 0.45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); transform: translateY(-3px); }
.btn-sm { padding: 11px 20px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
    color: var(--royal-deep); margin-top: 6px;
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    padding: 16px 0; transition: all .4s var(--ease);
}
.site-header.scrolled {
    padding: 10px 0;
    background: rgba(246, 242, 233, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.brand-text em { color: var(--royal-deep); font-style: italic; }
.brand-logo {
    width: 40px; height: 40px; object-fit: contain; flex: none;
    border-radius: 10px; background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.94rem; font-weight: 500; color: var(--ink-soft); position: relative; }
.nav a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--royal); transition: width .3s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { color: var(--ink) !important; }
.nav-toggle {
    display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
    background: rgba(255,255,255,.5); cursor: pointer; padding: 0; place-items: center; gap: 5px;
    flex-direction: column;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(130px, 17vw, 210px) 0 0; overflow: hidden; }
.hero-glow {
    position: absolute; top: -220px; right: -180px; width: 720px; height: 720px; z-index: 0;
    background: radial-gradient(circle, rgba(0,64,160,.30), transparent 62%);
    filter: blur(10px); pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(40px, 6vw, 80px);
    align-items: center; padding-bottom: clamp(50px, 7vw, 90px);
}
.hero h1 { margin: 12px 0 22px; }
.hero .lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero-stats { list-style: none; display: flex; gap: clamp(22px, 4vw, 46px); padding: 0; margin: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.hero-stats li + li { padding-left: clamp(22px, 4vw, 46px); border-left: 1px solid var(--line); }

.hero-visual { position: relative; }
.portrait-frame {
    position: relative; border-radius: 28px; overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,64,160,.4);
    background: var(--ink-2);
    aspect-ratio: 4 / 4.7;
    min-height: 470px;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: center 22%; }
.hero-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.slide.active { opacity: 1; }
/* First slide stays in flow so the frame always has height,
   even if aspect-ratio is not supported by the browser. */
.slide:first-child { position: static; opacity: 1; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: center 22%; }
.slide:nth-child(3) img { object-position: center 10%; }
.slide-nav { position: absolute; z-index: 4; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.slide-btn {
    pointer-events: auto; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: rgba(11,31,58,.5); color: var(--ivory);
    border: 1px solid rgba(244,246,251,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: opacity .3s, background .3s, transform .3s var(--ease);
    opacity: 0;
}
.portrait-frame:hover .slide-btn { opacity: 1; }
.slide-btn:hover { background: var(--royal); transform: scale(1.08); }
.slide-btn svg { width: 20px; height: 20px; }
.slide-dots { position: absolute; z-index: 4; left: 0; right: 0; bottom: 118px; display: flex; justify-content: center; gap: 10px; }
.slide-dots button {
    padding: 0; border: 0; background: transparent; cursor: pointer;
    width: 26px; height: 14px; display: grid; place-items: center;
}
.slide-dots button::before {
    content: ""; display: block; width: 26px; height: 3px; border-radius: 3px;
    background: rgba(244,246,251,.35); transition: background .3s, width .35s var(--ease);
}
.slide-dots button.active::before { background: var(--ivory); width: 34px; }
.slide-dots button:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; border-radius: 3px; }
.slide-btn:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.portrait-shade {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(190deg, rgba(8,20,45,.22) 0%, rgba(8,20,45,.04) 38%, rgba(8,20,45,.78) 100%);
}
.portrait-plaque {
    position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 3;
    border-radius: 14px; padding: 16px 20px;
    background: rgba(8,20,45,.58); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(246,242,233,.16); color: var(--ivory);
    box-shadow: 0 22px 40px rgba(8,20,45,.35);
}
.plaque-rule { display: block; width: 34px; height: 2px; background: var(--royal); margin-bottom: 12px; }
.portrait-plaque strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; line-height: 1.1; }
.portrait-plaque small { color: rgba(246,242,233,.78); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; }
.portrait-badge {
    position: absolute; top: 20px; right: 20px; z-index: 3;
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(246,242,233,.94); color: var(--ink);
    border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(8px);
    padding: 8px 15px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #2f8a5f; box-shadow: 0 0 0 4px rgba(47,138,95,.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(47,138,95,.22); } 50% { box-shadow: 0 0 0 9px rgba(47,138,95,0); } }

.marquee {
    position: relative; z-index: 2; overflow: hidden; padding: 16px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, var(--ivory), var(--ivory-2), var(--ivory));
}
.marquee-track { display: flex; gap: 44px; width: max-content; animation: scroll 42s linear infinite; }
.marquee-track span {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink-soft);
    text-transform: uppercase; letter-spacing: .14em; opacity: .4;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { background: var(--paper); }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.collage { position: relative; padding: 34px 0 0; }
.collage-main {
    height: 500px; border-radius: 24px; position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg); margin: 0; background: var(--ink-2);
}
.collage-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.collage-main:hover img { transform: scale(1.04); }
.collage-cap {
    position: absolute; left: 18px; top: 18px; z-index: 3; margin: 0;
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--ivory); font-size: 0.78rem; letter-spacing: .05em;
    background: rgba(8,20,45,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(246,242,233,.2);
    padding: 8px 14px; border-radius: 999px;
}
.collage-cap span { color: var(--royal-bright); font-weight: 700; }
.collage-inset {
    position: absolute; right: -20px; top: 0; z-index: 2; width: 46%; margin: 0;
    border-radius: 16px; overflow: hidden; border: 5px solid var(--paper);
    box-shadow: var(--shadow-md); transform: rotate(3deg);
    transition: transform .5s var(--ease);
}
.collage-inset:hover { transform: rotate(0deg) translateY(-4px); }
.collage-inset img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.collage-tag {
    position: absolute; left: -22px; bottom: 34px; z-index: 3;
    background: var(--paper); border-radius: 16px; padding: 18px 24px;
    box-shadow: var(--shadow-md); border-left: 4px solid var(--royal);
}
.collage-tag span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--royal-deep); font-weight: 600; }
.collage-tag strong { font-family: var(--font-display); font-size: 1.3rem; }
.check-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg, var(--royal-bright), var(--royal-deep));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- Expertise ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
    position: relative; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 36px 34px; overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--royal-bright), var(--royal-deep));
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(0,64,160,.5); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(0,64,160,.22), rgba(0,64,160,.05));
    border: 1px solid rgba(0,64,160,.3); color: var(--royal-deep); margin-bottom: 22px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 20px; }
.card-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.card-tags li {
    font-size: 0.76rem; font-weight: 600; color: var(--ink-soft);
    background: var(--ivory-2); padding: 6px 13px; border-radius: 999px;
}

/* ---------- Books ---------- */
.books { background: linear-gradient(180deg, var(--ink), var(--ink-2)); color: var(--ivory); overflow: hidden; }
.books-glow { position: absolute; top: -160px; left: -120px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(0,64,160,.26), transparent 62%); pointer-events: none; }
.books .eyebrow { color: var(--royal); }
.books .section-sub { color: rgba(246,242,233,.72); }
.books .section-sub strong { color: var(--royal-bright); }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; z-index: 2; }
.book {
    background: rgba(246,242,233,.05); border: 1px solid var(--line-light);
    border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.book:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(0,64,160,.55); }
.book-cover {
    aspect-ratio: 3 / 4; padding: 26px 24px; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden; background-position: center; background-size: cover;
}
.book-cover::before, .book-cover::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.book-cover::before { background: linear-gradient(180deg, rgba(7,18,38,.55) 0%, rgba(7,18,38,.15) 48%, rgba(7,18,38,.85) 100%); }
.book-cover::after { background: linear-gradient(0deg, rgba(7,18,38,.35), transparent 55%); }
.book-cover span {
    font-size: 0.66rem; text-transform: uppercase; letter-spacing: .28em; opacity: .9;
    position: relative; z-index: 2; color: var(--ivory);
}
.book-cover strong {
    font-family: var(--font-display); font-size: 1.65rem; line-height: 1.08;
    position: relative; z-index: 2; color: var(--ivory);
    border-left: 3px solid var(--royal-bright); padding-left: 14px;
}
.cover-1 { background-image: url("../img/cover-1.jpg"); }
.cover-2 { background-image: url("../img/cover-2.jpg"); }
.cover-3 { background-image: url("../img/cover-3.jpg"); }
.cover-4 { background-image: url("../img/cover-4.jpg"); }
.cover-5 { background-image: url("../img/cover-5.jpg"); }
.cover-6 { background-image: url("../img/cover-6.jpg"); }
.book-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.book-body h3 { color: var(--ivory); font-size: 1.3rem; margin-bottom: .35em; }
.book-body p { color: rgba(246,242,233,.68); font-size: 0.92rem; flex: 1; }
.btn-book {
    align-self: flex-start; margin-top: 6px; background: transparent; color: var(--royal-bright);
    border: 1px solid rgba(0,64,160,.55); padding: 11px 22px; font-size: 0.86rem;
}
.btn-book:hover { background: linear-gradient(135deg, var(--royal-bright), var(--royal-deep)); color: var(--ink); border-color: transparent; transform: translateY(-3px); }
.books-cta { position: relative; z-index: 2; margin-top: 54px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.books-cta p { color: rgba(246,242,233,.72); margin: 0; }

/* ---------- Process ---------- */
.process { background: var(--paper); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step {
    position: relative; padding: 34px 26px; border-radius: var(--radius);
    background: var(--ivory); border: 1px solid var(--line);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); background: var(--paper); }
.step-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: transparent; -webkit-background-clip: text; background-clip: text; background: linear-gradient(135deg, var(--royal-bright), var(--royal-deep)); display: block; line-height: 1; }
.step h3 { margin: 14px 0 .35em; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--ivory-2); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
    margin: 0; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 34px 32px; position: relative;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.quote:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.quote::before { content: "\201C"; position: absolute; top: 8px; right: 26px; font-family: var(--font-display); font-size: 5.5rem; color: rgba(0,64,160,.28); line-height: 1; }
.stars { color: var(--royal); letter-spacing: 3px; margin-bottom: 14px; font-size: 0.95rem; }
.quote blockquote { margin: 0 0 22px; font-family: var(--font-display); font-size: 1.32rem; line-height: 1.45; color: var(--ink); }
.quote figcaption { display: flex; flex-direction: column; }
.quote figcaption strong { font-size: 0.95rem; }
.quote figcaption span { color: var(--muted); font-size: 0.82rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--ivory), var(--ivory-2)); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-copy h2 { margin-bottom: .4em; }
.contact-copy > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.contact-list a:hover { color: var(--royal-deep); }
.ci { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--royal-deep); }
.ci svg { width: 21px; height: 21px; }
.contact-form {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    width: 100%; font-family: inherit; font-size: 0.96rem; color: var(--ink);
    padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--ivory); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--royal); background: var(--paper);
    box-shadow: 0 0 0 4px rgba(0,64,160,.16);
}
.form-note { margin: 14px 0 0; font-size: 0.88rem; font-weight: 500; min-height: 1.2em; }
.form-note.ok { color: #1f7a4d; }
.form-note.err { color: #b23b3b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,242,233,.72); padding: 64px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer-brand .brand { color: var(--ivory); margin-bottom: 16px; }
.footer-brand p { max-width: 340px; font-size: 0.92rem; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a:hover, .footer-social a:hover { color: var(--royal-bright); }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-social a {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
    border: 1px solid var(--line-light); font-size: 0.85rem; font-weight: 600;
}
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 0.84rem; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 900;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25d366; color: #fff;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.4);
    transition: transform .3s var(--ease), box-shadow .3s;
    isolation: isolate;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366;
    z-index: -1; animation: wa-pulse 2.6s ease-out infinite;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 20px 42px rgba(37, 211, 102, 0.5); }
.whatsapp-float:hover::after { animation: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 70% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .95s var(--ease), transform .95s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (hover: none) {
    .slide-btn { opacity: 1; width: 38px; height: 38px; }
    .slide-dots { bottom: 104px; }
}

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 460px; margin: 0 auto; order: -1; }
    .portrait-frame { min-height: 430px; }
    .split { grid-template-columns: 1fr; }
    .collage-main { height: 380px; }
    .book-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px);
        background: var(--ivory); flex-direction: column; align-items: flex-start; justify-content: center;
        padding: 40px; gap: 26px; transform: translateX(105%); transition: transform .45s var(--ease);
        box-shadow: var(--shadow-lg); z-index: 99;
    }
    .nav.open { transform: translateX(0); }
    .nav a { font-size: 1.15rem; }
    .nav-cta { width: 100%; justify-content: center; }
    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .cards { grid-template-columns: 1fr; }
    .quotes { grid-template-columns: 1fr; }
    .contact-inner { grid-template-columns: 1fr; }
    .book-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .steps { grid-template-columns: 1fr; }
    .collage-inset { right: 6px; top: -18px; }
    .collage-tag { left: 12px; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .hero-stats li + li { padding-left: 20px; }
    .footer-inner { grid-template-columns: 1fr; }
    .header-inner { gap: 12px; }
    .brand { font-size: 1.25rem; }
}
