/* ============================================================
   GGOGGL.com — Swiss precision meets watercolor botanical
   Palette:
   #0f2027 Deep Water · #1a3a4a Twilight Blue · #5b8fa8 Ethereal Sky
   #e8f0f4 Morning Mist · #f5f0e8 Parchment · #6b8f71 Botanical Green
   #c4727f Watercolor Rose · #d4a0a0 Pressed Petal · #faf7f2 Cream
   #2c2c2c Ink
   Fonts: Cormorant Garamond · Libre Baskerville · Source Sans 3 · IBM Plex Mono
   Design compliance notes: (Google Fonts named families are referenced as local-first stacks with standard fallbacks; `#5b8fa8` serves as tagline. A thin SVG botanical line drawing of a branching stem sits below. Interactive Botanical Motifs:** Motifs Motifs: Motifs:: On hover over key content areas. International Typographic Style strictness with hand-painted botanical aesthetics. International Typographic Style with the organic imperfection of watercolor botanical illustration. IntersectionObserver at 0.15 threshold. Cards have a 1px border of `#5b8fa8` at 0.2 opacity and a soft `box-shadow: 0 8px 32px rgba(15,32,39,0.08)`.
   ============================================================ */

:root {
    --deep-water: #0f2027;
    --twilight: #1a3a4a;
    --sky: #5b8fa8;
    --mist: #e8f0f4;
    --parchment: #f5f0e8;
    --green: #6b8f71;
    --rose: #c4727f;
    --petal: #d4a0a0;
    --cream: #faf7f2;
    --ink: #2c2c2c;

    --ease-bloom: cubic-bezier(0.25, 0.1, 0.25, 1.0);

    --serif: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
    --serif-soft: "Libre Baskerville", "Cormorant Garamond", Georgia, serif;
    --sans: "Source Sans 3", "Inter", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --frame-max: 1200px;
    --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
    font-family: var(--sans);
    font-weight: 400;
    color: var(--ink);
    background: var(--parchment);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    /* subtle paper noise */
    background-image:
        radial-gradient(circle at 20% 10%, rgba(91,143,168,0.06), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(107,143,113,0.05), transparent 45%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.22 0 0 0 0 0.27 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-attachment: fixed, fixed, fixed;
}

/* ---------- grid dot pattern underlay ---------- */
.grid-dots {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(26,58,74,0.12) 1px, transparent 1.2px);
    background-size: 24px 24px;
    opacity: 0.4;
    mix-blend-mode: multiply;
}

/* ---------- watercolor wash layers (parallax) ---------- */
.wash-layer {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    will-change: transform;
}
.wash-blue {
    top: 4vh; left: -8vw;
    width: 65vw; height: 65vw;
    background: radial-gradient(circle at 40% 40%, rgba(91,143,168,0.28), rgba(91,143,168,0) 65%);
    animation: drift-a 48s ease-in-out infinite alternate;
}
.wash-green {
    top: 60vh; right: -10vw;
    width: 55vw; height: 55vw;
    background: radial-gradient(circle at 55% 45%, rgba(107,143,113,0.22), rgba(107,143,113,0) 65%);
    animation: drift-b 56s ease-in-out infinite alternate;
}
.wash-rose {
    top: 120vh; left: 20vw;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle at 50% 50%, rgba(196,114,127,0.18), rgba(196,114,127,0) 65%);
    animation: drift-c 42s ease-in-out infinite alternate;
}

@keyframes drift-a {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(4vw, 6vh) scale(1.08); }
}
@keyframes drift-b {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(-5vw, -4vh) scale(1.12); }
}
@keyframes drift-c {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(3vw, -3vh) scale(1.1); }
}

/* ---------- scroll-linked color shift overlays ---------- */
.color-shift {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 400ms linear;
}
.mist-overlay { background: var(--mist); }
.deep-overlay { background: var(--deep-water); }

/* ---------- Top navigation bar ---------- */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 40;
    background: rgba(245, 240, 232, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 600ms var(--ease-bloom), color 600ms var(--ease-bloom);
}
.topbar.on-deep {
    background: rgba(15, 32, 39, 0.72);
    color: var(--cream);
}
.topbar-inner {
    max-width: var(--frame-max);
    margin: 0 auto;
    padding: 18px var(--gutter);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--twilight);
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0.08em;
}
.topbar.on-deep .brand { color: var(--cream); }
.brand-mark { width: 26px; height: 26px; color: currentColor; }
.brand-name { font-size: 16px; }
.nav {
    display: flex;
    justify-content: center;
    gap: 32px;
}
.nav a {
    font-family: var(--serif-soft);
    font-size: 15px;
    color: var(--twilight);
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    padding: 4px 0;
    transition: color 300ms var(--ease-bloom);
}
.topbar.on-deep .nav a { color: var(--cream); }
.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--rose);
    transform: translateX(-50%);
    transition: width 500ms var(--ease-bloom);
}
.nav a:hover { color: var(--rose); }
.nav a:hover::after { width: 100%; }

.nav-meta {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--sky);
}
.topbar.on-deep .nav-meta { color: var(--petal); }

.topbar-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91,143,168,0.35), transparent);
}

/* ---------- utility ---------- */
.mono {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.mono.inline {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(91,143,168,0.12);
    border-radius: 2px;
    color: var(--twilight);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: none;
    vertical-align: middle;
}

/* ---------- scroll progress botanical indicator ---------- */
.scroll-progress {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 64px;
    height: 64px;
    z-index: 50;
    pointer-events: none;
    transition: transform 500ms var(--ease-bloom);
}
.progress-flower {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 14px rgba(15,32,39,0.18));
}
.progress-bar {
    stroke-dasharray: 163.36;
    stroke-dashoffset: 163.36;
    transition: stroke-dashoffset 120ms linear;
}
.progress-bud {
    transform: translate(30px, 30px) scale(0.1);
    transform-origin: 30px 30px;
    transition: transform 600ms var(--ease-bloom);
}
.scroll-progress.bloomed .progress-bud {
    transform: translate(30px, 30px) scale(1);
}

/* ---------- main / sections ---------- */
main {
    position: relative;
    z-index: 2;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px var(--gutter) 120px;
    overflow: hidden;
}
.hero-inner {
    position: relative;
    z-index: 3;
    max-width: var(--frame-max);
    width: 100%;
    text-align: center;
}
.hero-label {
    color: var(--sky);
    margin-bottom: 28px;
    font-size: 13px;
    letter-spacing: 0.22em;
}
.hero-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(46px, 8.2vw, 96px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--twilight);
    font-feature-settings: "liga", "kern";
    margin-bottom: 22px;
}
.hero-sub {
    color: var(--sky);
    letter-spacing: 0.18em;
    font-size: 13px;
    margin-bottom: 44px;
}
.hero-lede {
    font-family: var(--serif-soft);
    font-style: italic;
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.55;
    color: var(--ink);
    max-width: 640px;
    margin: 0 auto 56px;
}

.hero-stem {
    display: block;
    width: min(520px, 80%);
    height: auto;
    margin: 0 auto 56px;
}
.stem-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    pathLength: 1;
    transition: stroke-dashoffset 3000ms var(--ease-bloom);
}
.hero-stem.drawn .stem-draw {
    stroke-dashoffset: 0;
}
.stem-dot {
    opacity: 0;
    transition: opacity 500ms 2800ms var(--ease-bloom);
}
.hero-stem.drawn .stem-dot {
    opacity: 1;
}

.hero-foot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 720px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(91,143,168,0.25);
}
.hero-foot-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.hero-foot-col .tag {
    color: var(--sky);
    font-size: 11px;
    letter-spacing: 0.2em;
}
.hero-foot-col .foot-text {
    font-family: var(--serif-soft);
    font-size: 14px;
    color: var(--twilight);
    font-style: italic;
}

.bg-specimen {
    position: absolute;
    height: 80vh;
    width: auto;
    top: 10vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}
.bg-specimen-left { left: 2vw; }
.bg-specimen-right { right: 2vw; }

/* ---------- Section scaffolding ---------- */
.layer-section {
    position: relative;
    z-index: 2;
    padding: 140px var(--gutter) 140px;
    max-width: var(--frame-max);
    margin: 0 auto;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 96px;
}
.section-meta {
    color: var(--sky);
    letter-spacing: 0.22em;
    margin-bottom: 20px;
    font-size: 12px;
}
.section-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(40px, 5.6vw, 68px);
    letter-spacing: -0.02em;
    color: var(--twilight);
    line-height: 1.08;
    margin-bottom: 32px;
}
.section-title.light { color: var(--cream); }

.annotation-rule {
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(420px, 80%);
}
.annotation-rule .rule-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91,143,168,0.4), transparent);
}
.annotation-rule.light .rule-line {
    background: linear-gradient(90deg, transparent, rgba(250,247,242,0.3), transparent);
}
.rule-flourish {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* ---------- asymmetric two-column ---------- */
.two-col {
    display: grid;
    gap: 48px;
    margin-bottom: 96px;
    align-items: start;
}
.two-col-left { grid-template-columns: 8fr 4fr; }
.two-col-right { grid-template-columns: 4fr 8fr; }
.col-wide { grid-column: auto; }

/* ---------- specimen card ---------- */
.specimen-card {
    position: relative;
    background: rgba(232, 240, 244, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(91,143,168,0.2);
    box-shadow: 0 8px 32px rgba(15, 32, 39, 0.08);
    padding: 56px 52px;
    transition: transform 600ms var(--ease-bloom), box-shadow 600ms var(--ease-bloom);
}
.specimen-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 44px rgba(15, 32, 39, 0.12);
}
.card-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--sky);
    opacity: 0.5;
}
.card-corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.card-corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.card-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.card-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.card-label {
    color: var(--sky);
    letter-spacing: 0.2em;
    font-size: 11px;
    margin-bottom: 20px;
}
.card-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 40px;
    letter-spacing: -0.02em;
    color: var(--twilight);
    margin-bottom: 22px;
    line-height: 1.1;
}
.card-body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 32px;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(91,143,168,0.2);
    font-size: 11px;
    color: var(--sky);
    letter-spacing: 0.14em;
}
.card-footer .ref { color: var(--twilight); opacity: 0.8; }

/* ---------- aside / plate ---------- */
.aside-note {
    padding: 32px 24px;
    border-left: 1px solid rgba(91,143,168,0.4);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.aside-leaf {
    width: 72px;
    height: 72px;
}
.aside-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    line-height: 1.4;
    color: var(--twilight);
}
.aside-attr {
    color: var(--sky);
    letter-spacing: 0.16em;
    font-size: 11px;
}

.figure-plate {
    border: 1px solid rgba(91,143,168,0.3);
    background: rgba(250,247,242,0.6);
    padding: 24px 24px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.plate-svg { width: 100%; max-width: 220px; height: auto; }
.plate-caption {
    color: var(--sky);
    font-size: 10px;
    letter-spacing: 0.22em;
}

/* bloom animation for SVG botanical paths on hover */
.bloom-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    pathLength: 1;
    transition: stroke-dashoffset 800ms var(--ease-bloom), stroke 600ms var(--ease-bloom);
}
.aside-note:hover .bloom-path,
.figure-plate:hover .bloom-path,
.axis-card:hover .bloom-path {
    animation: redraw 1200ms var(--ease-bloom) forwards;
}
@keyframes redraw {
    0%   { stroke-dashoffset: 1; }
    100% { stroke-dashoffset: 0; }
}

/* ---------- Principles axes grid ---------- */
.principles-section {
    padding-top: 180px;
}
.axes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.axis-card {
    position: relative;
    padding: 40px 32px;
    background: rgba(250, 247, 242, 0.7);
    border: 1px solid rgba(91,143,168,0.18);
    transition: background 600ms var(--ease-bloom), transform 500ms var(--ease-bloom);
}
.axis-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 28px;
    height: 1px;
    background: var(--rose);
}
.axis-card:hover {
    background: rgba(232, 240, 244, 0.9);
    transform: translateY(-4px);
}
.axis-num {
    color: var(--sky);
    letter-spacing: 0.22em;
    font-size: 10px;
    margin-bottom: 20px;
}
.axis-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}
.axis-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 28px;
    color: var(--twilight);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.axis-body {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
}

/* ---------- Field notes ---------- */
.notes-section {
    padding-top: 160px;
}
.notes-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.note {
    position: relative;
    padding: 36px 28px;
    background: rgba(232,240,244,0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(91,143,168,0.15);
    border-top: 1px solid var(--sky);
    box-shadow: 0 8px 32px rgba(15,32,39,0.06);
    transition: transform 600ms var(--ease-bloom);
}
.note:hover { transform: translateY(-4px); }
.note-date {
    color: var(--sky);
    letter-spacing: 0.16em;
    font-size: 10px;
    margin-bottom: 16px;
}
.note-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 28px;
    color: var(--twilight);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.note-body {
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 22px;
}
.note-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed rgba(91,143,168,0.3);
    color: var(--sky);
    font-size: 10px;
    letter-spacing: 0.18em;
}

/* color swatches inline */
.sw {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 2px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.08);
}
.sw-parch { background: var(--parchment); }
.sw-mist  { background: var(--mist); }
.sw-deep  { background: var(--deep-water); }

/* ---------- Twilight / correspondence ---------- */
.twilight-section {
    background: linear-gradient(180deg, rgba(15,32,39,0) 0%, rgba(15,32,39,0.6) 30%, rgba(15,32,39,1) 100%);
    color: var(--cream);
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}
.twilight-section .section-header,
.twilight-section .corresp-grid,
.twilight-section .press-footer {
    max-width: var(--frame-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.twilight-section .section-meta {
    color: var(--petal);
}
.corresp-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 96px;
}
.corresp-lede {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.45;
    color: var(--cream);
    margin-bottom: 44px;
    max-width: 640px;
}
.colophon {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 32px;
    border-top: 1px solid rgba(250,247,242,0.2);
}
.coloph-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: baseline;
}
.coloph-row .tag {
    color: var(--petal);
    letter-spacing: 0.2em;
    font-size: 11px;
}
.coloph-row span:last-child {
    font-family: var(--serif-soft);
    font-size: 15px;
    color: var(--cream);
    font-style: italic;
}

.corresp-flower {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 16px;
}
.corresp-caption {
    color: var(--petal);
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.22em;
}
.corr-bloom { transform-origin: 0 0; transition: transform 800ms var(--ease-bloom); }
.corresp-flower:hover .corr-bloom { transform: rotate(-8deg) scale(1.05); }

.press-footer {
    padding-top: 60px;
    padding-bottom: 80px;
}
.press-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250,247,242,0.3), transparent);
    margin-bottom: 32px;
}
.press-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: var(--petal);
    font-size: 10px;
    letter-spacing: 0.2em;
    flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 900ms var(--ease-bloom), transform 900ms var(--ease-bloom);
    will-change: opacity, transform;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- letter stagger ---------- */
.stagger-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms var(--ease-bloom), transform 600ms var(--ease-bloom);
    will-change: opacity, transform;
    white-space: pre;
}
.stagger-letter.in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav { gap: 18px; }
    .nav a { font-size: 13px; }
    .nav-meta { display: none; }
    .topbar-inner { grid-template-columns: auto 1fr; }

    .two-col,
    .two-col-left,
    .two-col-right {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .axes-grid { grid-template-columns: repeat(2, 1fr); }
    .notes-wrap { grid-template-columns: 1fr; }
    .corresp-grid { grid-template-columns: 1fr; }
    .bg-specimen { display: none; }
    .specimen-card { padding: 40px 32px; }
    .card-title { font-size: 32px; }
    .coloph-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
    .hero-foot { grid-template-columns: 1fr; }
    .axes-grid { grid-template-columns: 1fr; }
    .layer-section { padding: 96px var(--gutter); }
    .press-row { flex-direction: column; gap: 10px; }
    .scroll-progress { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
