/* =====================================================================
   holos.works — wabi-sabi imperfect ceramic / mid-century craftsmanship
   Palette derived entirely from natural materials (walnut, terracotta,
   sage, oak, brass). No synthetic blues, no neon, no cold tones.
   ===================================================================== */

:root {
    --canvas-warm: #f0e8da;
    --highlight: #faf4ea;
    --ink-warm: #2a2420;
    --shadow-umber: #4a3e34;
    --clay: #c47a5a;
    --stone-sage: #8a9a7a;
    --wood-oak: #b8943a;
    --brass: #9a8a5a;

    --ease-deliberate: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --shadow-tight: 0 2px 4px rgba(42, 36, 32, 0.15);
    --shadow-diffuse: 0 12px 32px rgba(42, 36, 32, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f0e8da;
    color: #2a2420;
    font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Hide the inline-svg defs from layout */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ------------------------------------------------------------
   Texture-first: full-viewport feTurbulence grain overlay
   ------------------------------------------------------------ */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 320px 320px;
}

.page {
    position: relative;
    z-index: 2;
}

/* ------------------------------------------------------------
   Shared section structure
   ------------------------------------------------------------ */
.section-head {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.section-head-quiet {
    margin-bottom: 8vh;
}

.section-label {
    display: inline-block;
    font-family: "Karla", "Nunito Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9a8a5a;
    margin-bottom: 1.4rem;
}

.section-title {
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.05;
    margin: 0 0 4rem 0;
    color: #2a2420;
    letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   Section 1 — Hero: debossed "works"
   ------------------------------------------------------------ */
.hero {
    min-height: 100vh;
    width: 100%;
    background-color: #f0e8da;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 8vh clamp(1.5rem, 5vw, 4rem) 18vh;
    position: relative;
}

.hero-eyebrow {
    font-family: "Karla", "Nunito Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4a3e34;
    margin-bottom: clamp(8vh, 22vh, 28vh);
    opacity: 0.75;
}

/* Debossed type: light highlight + dark shadow against canvas */
.hero-title {
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    font-size: clamp(7rem, 28vw, 24rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    margin: 0;
    color: #f0e8da;
    text-shadow:
        1px 1px 0px #faf4ea,
        -1px -1px 0px #4a3e34,
        2px 2px 1px rgba(250, 244, 234, 0.7),
        -2px -2px 1px rgba(74, 62, 52, 0.6);
    user-select: none;
}

.hero-meta {
    margin-top: clamp(4vh, 8vh, 12vh);
    font-family: "Karla", "Nunito Sans", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4a3e34;
    opacity: 0.6;
}

/* ------------------------------------------------------------
   Section 2 — Process Grid (Bento)
   ------------------------------------------------------------ */
.process {
    padding: 14vh clamp(1.5rem, 5vw, 4rem) 18vh;
    background-color: #f0e8da;
}

.process .section-head {
    padding: 0;
    max-width: 80rem;
}

.bento-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: minmax(280px, auto) minmax(220px, auto);
    gap: 16px;
}

.bento-cell {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding: 2rem;
    box-shadow: var(--shadow-tight), var(--shadow-diffuse);
    transition: transform 0.4s var(--ease-deliberate),
                box-shadow 0.4s var(--ease-deliberate);
}

.bento-cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(42, 36, 32, 0.18),
                0 18px 40px rgba(42, 36, 32, 0.12);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 1;
    background-color: #faf4ea;
    color: #2a2420;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
}

.bento-large .cell-body {
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 1.2rem 0 0 0;
    color: #4a3e34;
    max-width: 38rem;
}

.cell-label {
    display: inline-block;
    font-family: "Karla", "Nunito Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9a8a5a;
}

.cell-figure {
    position: absolute;
    top: 1.4rem;
    right: 1.6rem;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.4rem;
    color: #2a2420;
    opacity: 0.65;
    letter-spacing: 0.05em;
}

.cell-mark {
    font-family: "Karla", "Nunito Sans", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9a8a5a;
    margin-top: 1.4rem;
    opacity: 0.85;
}

/* Material textures for small bento cells, all CSS gradients */

/* Wood grain — repeating diagonal stripes in varied browns */
.cell-wood {
    background-color: #b8943a;
    background-image:
        repeating-linear-gradient(
            12deg,
            rgba(42, 36, 32, 0.18) 0px,
            rgba(42, 36, 32, 0.18) 1px,
            transparent 1px,
            transparent 6px
        ),
        repeating-linear-gradient(
            12deg,
            rgba(74, 62, 52, 0.10) 0px,
            rgba(74, 62, 52, 0.10) 2px,
            transparent 2px,
            transparent 13px
        ),
        linear-gradient(135deg, #b8943a 0%, #9a7a30 50%, #b8943a 100%);
    color: #2a2420;
}

/* Stone — speckled radial gradients */
.cell-stone {
    background-color: #4a3e34;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(250, 244, 234, 0.18) 0px, rgba(250, 244, 234, 0.18) 2px, transparent 3px),
        radial-gradient(circle at 70% 60%, rgba(250, 244, 234, 0.12) 0px, rgba(250, 244, 234, 0.12) 1.5px, transparent 2.5px),
        radial-gradient(circle at 40% 80%, rgba(42, 36, 32, 0.35) 0px, rgba(42, 36, 32, 0.35) 2px, transparent 3px),
        radial-gradient(circle at 85% 25%, rgba(42, 36, 32, 0.22) 0px, rgba(42, 36, 32, 0.22) 1.5px, transparent 2.5px),
        radial-gradient(circle at 10% 70%, rgba(250, 244, 234, 0.08) 0px, rgba(250, 244, 234, 0.08) 2px, transparent 3px),
        linear-gradient(160deg, #5a4e44 0%, #4a3e34 70%, #3a2e24 100%);
    background-size: 80px 80px, 60px 60px, 70px 70px, 90px 90px, 100px 100px, auto;
    color: #faf4ea;
}

/* Clay — smooth warm gradient */
.cell-clay {
    background-color: #c47a5a;
    background-image:
        radial-gradient(ellipse at 30% 30%, rgba(250, 244, 234, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 75%, rgba(74, 62, 52, 0.30) 0%, transparent 60%),
        linear-gradient(135deg, #d68b6a 0%, #c47a5a 50%, #a86040 100%);
    color: #faf4ea;
}

/* Brass — soft burnished metallic warmth */
.cell-brass {
    background-color: #9a8a5a;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(250, 244, 234, 0.08) 0px,
            rgba(250, 244, 234, 0.08) 1px,
            transparent 1px,
            transparent 4px
        ),
        radial-gradient(ellipse at 25% 30%, rgba(250, 244, 234, 0.20) 0%, transparent 60%),
        linear-gradient(135deg, #b09c64 0%, #9a8a5a 50%, #7a6a3e 100%);
    color: #2a2420;
}

/* Sage linen — woven texture */
.cell-sage {
    background-color: #8a9a7a;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(42, 36, 32, 0.10) 0px,
            rgba(42, 36, 32, 0.10) 1px,
            transparent 1px,
            transparent 5px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(250, 244, 234, 0.12) 0px,
            rgba(250, 244, 234, 0.12) 1px,
            transparent 1px,
            transparent 5px
        ),
        linear-gradient(135deg, #9aaa86 0%, #8a9a7a 50%, #6a7a5a 100%);
    color: #2a2420;
}

/* ------------------------------------------------------------
   Section 3 — Principles
   ------------------------------------------------------------ */
.principles {
    padding: 16vh clamp(1.5rem, 5vw, 4rem) 18vh;
    background-color: #faf4ea;
}

.principles .section-head-quiet {
    padding: 0;
    max-width: 80rem;
}

.principle-stack {
    max-width: 64rem;
    margin: 0 auto;
}

.principle {
    padding: 18vh 0;
}

.principle:first-child {
    padding-top: 4vh;
}

.principle:last-child {
    padding-bottom: 4vh;
}

.principle-statement {
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.0;
    margin: 0 0 1.4rem 0;
    color: #2a2420;
    letter-spacing: -0.015em;
    text-align: left;
}

.principle-body {
    margin: 0 0 0 4em;
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4a3e34;
}

/* ------------------------------------------------------------
   Section 4 — Material Palette (warm dark background)
   ------------------------------------------------------------ */
.palette {
    padding: 16vh clamp(1.5rem, 5vw, 4rem) 18vh;
    background-color: #2a2420;
    color: #faf4ea;
}

.palette-head {
    max-width: 80rem;
    margin: 0 auto 6vh auto;
}

.palette-label {
    color: #b8943a;
}

.palette-title {
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin: 0;
    color: #faf4ea;
    letter-spacing: -0.01em;
}

.swatch-row {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: clamp(2rem, 5vw, 4rem);
    padding-top: 4vh;
}

.swatch {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.swatch-disc {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: var(--shadow-tight), var(--shadow-diffuse);
    transition: transform 0.5s var(--ease-deliberate);
    position: relative;
    overflow: hidden;
}

.swatch-disc::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.18;
    mix-blend-mode: multiply;
}

.swatch:hover .swatch-disc {
    transform: rotate(15deg);
}

.swatch-walnut .swatch-disc {
    background-color: #2a2420;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(250, 244, 234, 0.10) 0%, transparent 55%);
}

.swatch-clay .swatch-disc {
    background-color: #c47a5a;
    background-image:
        radial-gradient(circle at 35% 35%, rgba(250, 244, 234, 0.18) 0%, transparent 55%);
}

.swatch-stone .swatch-disc {
    background-color: #8a9a7a;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(250, 244, 234, 0.18) 0%, transparent 55%);
}

.swatch-oak .swatch-disc {
    background-color: #b8943a;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(250, 244, 234, 0.18) 0%, transparent 55%);
}

.swatch-brass .swatch-disc {
    background-color: #9a8a5a;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(250, 244, 234, 0.18) 0%, transparent 55%);
}

.swatch-cream .swatch-disc {
    background-color: #f0e8da;
    background-image:
        radial-gradient(circle at 70% 70%, rgba(74, 62, 52, 0.10) 0%, transparent 55%);
}

.swatch-caption {
    font-family: "Karla", "Nunito Sans", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #f0e8da;
    opacity: 0.78;
    text-align: center;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   Section 5 — Colophon
   ------------------------------------------------------------ */
.colophon {
    padding: 14vh clamp(1.5rem, 5vw, 4rem);
    background-color: #f0e8da;
    text-align: left;
    max-width: 80rem;
    margin: 0 auto;
}

.colophon-mark {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #2a2420;
    letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   Scroll-progress indicator
   ------------------------------------------------------------ */
.scroll-indicator {
    position: fixed;
    right: clamp(1rem, 3vw, 2.5rem);
    bottom: clamp(1rem, 3vw, 2.5rem);
    z-index: 50;
    width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    pointer-events: none;
}

.scroll-indicator-fill {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #2a2420;
    background: conic-gradient(#c47a5a 0deg, transparent 0deg);
    background-color: #f0e8da;
    box-shadow: var(--shadow-tight);
    transition: background 0.2s linear;
}

.scroll-indicator-label {
    font-family: "Karla", "Nunito Sans", sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2a2420;
    opacity: 0.7;
}

/* ------------------------------------------------------------
   Reveal-on-scroll (slow, deliberate)
   ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s var(--ease-deliberate),
                transform 0.8s var(--ease-deliberate);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-large {
        grid-column: span 1;
    }

    .bento-cell {
        min-height: 200px;
    }

    .principle-body {
        margin-left: 1.5em;
    }

    .swatch-row {
        gap: 2rem;
        justify-content: center;
    }

    .swatch-disc {
        width: 80px;
        height: 80px;
    }

    .hero-title {
        font-size: clamp(5rem, 32vw, 12rem);
    }
}
