/* ═══════════════════════════════════════════════════════════
   Anne Goldman Ceramics

   Design philosophy: restraint as reverence.
   Inspired by the concept of Ma — the luminous void
   where meaning lives between elements.
   ═══════════════════════════════════════════════════════════ */

:root {
    --color-bg:          #f6f1eb;
    --color-bg-warm:     #efe8df;
    --color-bg-deep:     #e8dfd4;
    --color-bg-dark:     #2e2a27;
    --color-text:        #2a2523;
    --color-text-soft:   #3d3530;
    --color-text-quiet:  #5e544b;
    --color-text-on-dark:#e0d8cf;
    --color-accent:      #785a3a;
    --color-accent-light:#b89a70;
    --color-line:        #d4c4b0;
    --color-line-faint:  #e2d8cc;

    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body:    'Josefin Sans', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

    --max-width:    44rem;
    --max-wide:     62rem;
    --max-narrow:   36rem;
    --spacing-section: clamp(5rem, 10vh, 8rem);
    --fade-duration: 1s;
    --fade-easing:   cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100%; }
body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.85;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

/* ── Shared ────────────────────────────────────────────── */
.section__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 3rem); }
.section__inner--narrow { max-width: var(--max-narrow); }
.section__inner--wide { max-width: var(--max-wide); }
.section__heading {
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-quiet);
    margin-bottom: 3rem;
    text-align: center;
}

/* ── Fade-in on Scroll ─────────────────────────────────── */
.fade-in { opacity: 1; transform: translateY(0); }
.js-ready .fade-in {
    opacity: 0; transform: translateY(24px);
    transition: opacity 1s var(--fade-easing), transform 1s var(--fade-easing);
}
.js-ready .fade-in.visible { opacity: 1; transform: translateY(0); }
.js-ready .fade-in:nth-child(2) { transition-delay: 0.12s; }
.js-ready .fade-in:nth-child(3) { transition-delay: 0.2s; }
.js-ready .fade-in:nth-child(4) { transition-delay: 0.28s; }

/* ═══════════════════════════════════════════════════════════
   PERSISTENT NAV
   ═══════════════════════════════════════════════════════════ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    gap: 0;
    padding: 1.2rem 1.5rem;
}

.site-nav__home {
    margin-right: auto;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: none;
    border: none !important;
    color: var(--color-text-quiet) !important;
    opacity: 0;
    transition: opacity 0.4s ease, color 0.3s ease;
    pointer-events: none;
}

.site-nav__home.site-nav__home--visible {
    opacity: 1;
    pointer-events: auto;
}

.site-nav__home:hover {
    color: var(--color-accent) !important;
    background: none !important;
}

.site-nav__link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text-quiet);
    padding: 0.4rem 1rem;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.site-nav__link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.site-nav__link:only-child {
    color: var(--color-accent);
    border-color: var(--color-line);
}

.site-nav__link:only-child:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

/* ═══════════════════════════════════════════════════════════
   OPENING — Crossfading Showcase
   ═══════════════════════════════════════════════════════════ */
.opening {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: var(--color-bg);
}

/* ── Slides ── */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem clamp(1.5rem, 5vw, 3rem) 5rem;
    background-color: var(--color-bg);
    opacity: 0;
    z-index: 0;
    visibility: hidden;
    transition: opacity var(--fade-duration) var(--fade-easing),
                visibility 0s linear var(--fade-duration);
}

.slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity var(--fade-duration) var(--fade-easing),
                visibility 0s linear 0s;
}

.slide--exiting {
    opacity: 0;
    visibility: visible;
    z-index: 1;
    transition: opacity var(--fade-duration) var(--fade-easing),
                visibility 0s linear var(--fade-duration);
}

.slide__inner { max-width: 38rem; }

.slide--active .slide__inner {
    animation: slideIn var(--fade-duration) var(--fade-easing) both;
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.97) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Title slide ── */
.opening__prelude {
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-quiet);
    margin-bottom: 1rem;
}

.opening__name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 2.5rem;
}

.opening__line { width: 4rem; height: 1px; background: var(--color-line); margin: 0 auto 2.5rem; }

.opening__quote {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.9;
    color: var(--color-text-soft);
    max-width: 32rem;
    margin: 0 auto;
}
.opening__quote p { margin-bottom: 1.2rem; }
.opening__coda {
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-top: 0.5rem;
    margin-bottom: 0 !important;
}

/* ── Text slides ── */
.slide__inner--text { max-width: 34rem; }

.slide__label {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.1vw, 0.85rem);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-quiet);
    margin-bottom: 2rem;
}

.slide__prose {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 400;
    line-height: 2;
    color: var(--color-text-soft);
    margin-bottom: 1.5rem;
}
.slide__prose:last-child { margin-bottom: 0; }
.slide__prose--accent { font-weight: 400; color: var(--color-accent); font-style: normal; }
.slide__prose--quiet { color: var(--color-text-quiet); font-style: italic; }
.slide__prose--large { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

/* ── Piece slides ── */
.slide__inner--piece { max-width: 36rem; }

.slide__images {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    margin-bottom: 1.8rem;
}

.slide__img {
    max-height: 45vh;
    max-width: 55%;
    border-radius: 2px;
    box-shadow: 0 8px 40px rgba(46, 42, 39, 0.1);
    object-fit: contain;
}

.slide__tex {
    max-height: 25vh;
    max-width: 22%;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(46, 42, 39, 0.08);
    object-fit: contain;
    opacity: 0.85;
}

.slide__img--tall {
    max-height: 55vh;
    max-width: 50%;
}

.slide__title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 300;
    color: var(--color-text);
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.slide__desc {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-text-soft);
}

/* ── Progress bar ── */
.progress {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(200px, 40vw);
    height: 2px;
    background: var(--color-line-faint);
    border-radius: 1px;
    cursor: pointer;
    z-index: 10;
    overflow: hidden;
    transition: opacity 0.4s ease;
}

.progress:hover { opacity: 0.7; }

.progress__fill {
    height: 100%;
    width: 0;
    background: var(--color-accent);
    border-radius: 1px;
}

.progress__fill--running {
    width: 100%;
    animation: progressFill linear both;
}

@keyframes progressFill {
    from { width: 0; }
    to   { width: 100%; }
}

/* ── Section arrows ── */
/* ── Section arrows — always at the bottom ── */
.section-arrow {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    text-decoration: none;
    color: var(--color-accent);
    opacity: 0.45;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    z-index: 10;
    padding: 0.5rem;
}

.section-arrow svg {
    width: 24px;
    height: 14px;
}

.section-arrow:hover {
    opacity: 0.85;
    transform: translateX(-50%) translateY(3px);
}

.section-arrow--light {
    color: var(--color-accent-light);
    opacity: 0.4;
}

.section-arrow--light:hover {
    opacity: 0.8;
}

/* Pulse on opening only */
.opening > .section-arrow {
    opacity: 0.5;
    animation: arrowPulse 2.5s ease-in-out infinite;
}

.opening > .section-arrow:hover {
    animation: none;
    opacity: 0.9;
    transform: translateX(-50%) translateY(3px);
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 0.65; }
}

/* ═══════════════════════════════════════════════════════════
   THE JOURNEY
   ═══════════════════════════════════════════════════════════ */
.journey {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0 2rem;
    background-color: var(--color-bg-warm);
    position: relative;
    overflow: hidden;
}

.journey__text {
    max-width: var(--max-narrow);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.journey__text p {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 400; line-height: 1.9;
    color: var(--color-text-soft);
    margin-bottom: 1.5rem; text-align: center;
}

.journey__text p:last-child {
    font-weight: 400; color: var(--color-accent);
    letter-spacing: 0.04em; margin-top: 3rem; margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   THE WORK (technique)
   ═══════════════════════════════════════════════════════════ */
.work {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-section) 0 2rem;
    position: relative;
}

.work__intro, .work__nature {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 400; line-height: 2;
    color: var(--color-text-soft);
    text-align: center;
    max-width: var(--max-narrow); margin: 0 auto;
}
.work__nature { font-style: italic; color: var(--color-text-quiet); }
.work__divider { width: 2rem; height: 1px; background: var(--color-line); margin: 3rem auto; }

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
/* ── Gallery pages — one piece per viewport ── */
.gallery-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem clamp(1.5rem, 5vw, 3rem) 3rem;
    background-color: var(--color-bg-warm);
}

.gallery-page--alt {
    background-color: var(--color-bg);
}

.piece { text-align: center; }

.piece__images {
    display: flex; justify-content: center; align-items: flex-end;
    gap: clamp(1rem, 3vw, 2rem); margin-bottom: 2.5rem;
}

.piece__img {
    max-width: min(400px, 60%); border-radius: 2px;
    box-shadow: 0 4px 24px rgba(46, 42, 39, 0.08);
}

.piece__detail {
    max-width: min(180px, 28%); border-radius: 2px;
    box-shadow: 0 4px 24px rgba(46, 42, 39, 0.08);
    opacity: 0.9; transition: opacity 0.4s ease;
}
.piece__detail:hover { opacity: 1; }

.piece__text { max-width: 32rem; margin: 0 auto; padding: 0 1.5rem; }

.piece__name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300; letter-spacing: 0.03em;
    color: var(--color-text); margin-bottom: 0.75rem;
}

.piece__desc {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 400; font-style: italic;
    line-height: 1.9; color: var(--color-text-soft); margin-bottom: 0.5rem;
}

.piece__dim {
    font-family: var(--font-body);
    font-size: 0.75rem; font-weight: 400;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--color-text-quiet); margin-top: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════
   VESSELS
   ═══════════════════════════════════════════════════════════ */
.vessels {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-section) 0 3rem;
    background-color: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    position: relative;
}
.vessels .section__heading { color: rgba(216, 207, 197, 0.5); }

.vessels__intro {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    font-weight: 400; font-style: italic; line-height: 1.9;
    color: rgba(224, 216, 207, 0.75);
    text-align: center; max-width: var(--max-narrow);
    margin: 0 auto 4rem;
}

.vessels__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem); margin-bottom: 3rem;
}

.vessel { text-align: center; }
.vessel__img {
    width: 100%; border-radius: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    transition: transform 0.5s var(--fade-easing);
}
.vessel:hover .vessel__img { transform: scale(1.02); }

.vessel__name {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 400; color: var(--color-text-on-dark);
    letter-spacing: 0.03em; margin-bottom: 0.3rem;
}
.vessel__variant {
    font-family: var(--font-body);
    font-size: 0.75rem; font-weight: 400;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(224, 216, 207, 0.55);
}

.vessels__textures {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem); margin-top: 2rem;
}
.vessels__tex {
    width: 100%; border-radius: 2px;
    opacity: 0.7; transition: opacity 0.4s ease;
}
.vessels__tex:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   THE CREATION
   ═══════════════════════════════════════════════════════════ */
.creation {
    padding: var(--spacing-section) 0 3rem;
    background-color: var(--color-bg);
    position: relative;
}

.creation__intro {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 400; line-height: 2;
    color: var(--color-text-soft);
    text-align: center;
    max-width: var(--max-narrow);
    margin: 0 auto 3rem;
}

.creation__steps {
    max-width: var(--max-narrow);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.creation__step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-line-faint);
}

.creation__step:last-child { border-bottom: none; }

.creation__number {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 300;
    color: var(--color-line);
    line-height: 1;
    min-width: 2rem;
    text-align: center;
    padding-top: 0.2rem;
}

.creation__name {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.creation__desc {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text-soft);
}

/* ═══════════════════════════════════════════════════════════
   RESUME
   ═══════════════════════════════════════════════════════════ */
.resume {
    padding: var(--spacing-section) 0 3rem;
    background-color: var(--color-bg-warm);
    position: relative;
}

.resume__section {
    max-width: var(--max-narrow);
    margin: 0 auto 2.5rem;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.resume__section:last-child { margin-bottom: 0; }

.resume__label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-quiet);
    margin-bottom: 0.8rem;
}

.resume__text {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text-soft);
    margin-bottom: 0.5rem;
}

.resume__text:last-child { margin-bottom: 0; }

.resume__text--italic { font-style: italic; }

.resume__list {
    list-style: none;
}

.resume__list li {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-soft);
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.resume__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 4px;
    height: 1px;
    background: var(--color-line);
}

/* ═══════════════════════════════════════════════════════════
   PHILOSOPHY
   ═══════════════════════════════════════════════════════════ */
.philosophy {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-section) 0 2rem;
    background-color: var(--color-bg-warm);
    text-align: center;
    position: relative;
}
.philosophy__mark { color: var(--color-line); margin-bottom: 3rem; }
.philosophy__mark svg { display: inline-block; }
.philosophy__text {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 400; line-height: 2.1;
    color: var(--color-text-soft); margin-bottom: 2rem;
}
.philosophy__text:last-child { font-weight: 400; color: var(--color-accent); margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-section) 0 2rem;
    background-color: var(--color-bg-deep);
    text-align: center;
    position: relative;
}

.contact__text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 400;
    line-height: 2;
    color: var(--color-text-soft);
    margin-bottom: 2.5rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact__link {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--color-accent);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact__link:hover {
    border-bottom-color: var(--color-accent);
}

.contact__note {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-quiet);
    margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   CLOSING
   ═══════════════════════════════════════════════════════════ */
.closing { padding: var(--spacing-section) 0 4rem; text-align: center; }
.closing__text {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 400; color: var(--color-text-quiet);
    letter-spacing: 0.02em; margin-bottom: 2rem;
}
.closing__line { width: 2rem; height: 1px; background: var(--color-line); margin: 0 auto 2rem; }
.closing__copyright {
    font-family: var(--font-body);
    font-size: 0.75rem; font-weight: 400;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-quiet);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .vessels__grid, .vessels__textures {
        grid-template-columns: 1fr; max-width: 280px;
        margin-left: auto; margin-right: auto;
    }
    .vessels__grid { gap: 3rem; }
    .slide__img { max-height: 40vh; }
}

@media (max-width: 640px) {
    .collections__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .piece__images { flex-direction: column; align-items: center; }
    .piece__img { max-width: 85%; }
    .piece__detail { max-width: 50%; }
}

@media (max-width: 400px) {
    .opening__name { font-size: 2.5rem; }
}

/* ── Print ── */
@media print {
    .fade-in, .js-ready .fade-in { opacity: 1 !important; transform: none !important; }
    .opening { height: auto; position: static; }
    .slide { position: static; opacity: 1 !important; visibility: visible !important; }
    .slide:not([data-slide="0"]) { display: none; }
    section { padding: 2rem 0 !important; break-inside: avoid; }
    .vessels { background-color: #fff; color: var(--color-text); }
    .progress, .scroll-down { display: none; }
}
