/* miris.studio v2 — zen single-column scroll */

:root {
    --warm-sand: #F5F0E8;
    --deep-indigo: #2A2850;
    --soft-sage: #A8B8A0;
    --warm-blush: #D8B0A0;
    --ink-dark: #1A1A28;
    --muted-stone: #8A8880;
    --accent-coral: #C88070;

    --font-headline: 'Caveat', cursive;
    --font-body: 'Cormorant Garamond', serif;
    --font-accent: 'Josefin Sans', sans-serif;

    --column-width: 680px;
    --section-gap: 12vh;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--warm-sand);
    color: var(--ink-dark);
    font-family: var(--font-body);
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.85;
    overflow-x: hidden;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 clamp(20px, 5vw, 40px);
    position: relative;
}

.hero-inner {
    max-width: var(--column-width);
    margin: 0 auto;
    width: 100%;
    padding-top: 30vh;
    text-align: center;
    position: relative;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-accent);
    font-weight: 300;
    font-size: clamp(11px, 0.8vw, 13px);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted-stone);
    margin-bottom: 1.4em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1100ms ease 200ms, transform 1100ms ease 200ms;
}

.logotype {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(40px, 7vw, 78px);
    color: var(--ink-dark);
    line-height: 1.1;
    letter-spacing: 0.005em;
    margin-bottom: 0.4em;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1200ms ease, transform 1200ms ease;
}

.hero-tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    color: var(--muted-stone);
    font-size: clamp(15px, 1.1vw, 18px);
    margin-bottom: 4em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1100ms ease 600ms, transform 1100ms ease 600ms;
}

.hero-image-frame {
    position: relative;
    width: 70%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms ease 800ms, transform 800ms ease 800ms;
}

.hero-image {
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
    background: var(--muted-stone);
}

.hero-photograph {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.6) contrast(0.95);
}

.geo-accent {
    position: absolute;
    width: 90px;
    height: 90px;
    opacity: 0.32;
    pointer-events: none;
    animation: rotateSlow 60s linear infinite;
}

.geo-accent--top-left {
    top: -30px;
    left: -30px;
}

.geo-accent--bottom-right {
    bottom: -30px;
    right: -30px;
    animation-direction: reverse;
    animation-duration: 80s;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scroll-cue {
    position: absolute;
    bottom: 4vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 1200ms ease 1400ms;
}

.scroll-cue-label {
    font-family: var(--font-accent);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted-stone);
}

.scroll-cue-line {
    display: block;
    width: 1px;
    height: 36px;
    background: var(--muted-stone);
    opacity: 0.6;
    animation: cueDrift 2400ms ease-in-out infinite;
    transform-origin: top center;
}

@keyframes cueDrift {
    0%   { transform: scaleY(0.4); opacity: 0.3; }
    50%  { transform: scaleY(1);   opacity: 0.7; }
    100% { transform: scaleY(0.4); opacity: 0.3; }
}

/* loaded state */
body.is-loaded .hero-eyebrow,
body.is-loaded .logotype,
body.is-loaded .hero-tagline,
body.is-loaded .hero-image-frame,
body.is-loaded .scroll-cue {
    opacity: 1;
    transform: translateY(0);
}

body.is-loaded .scroll-cue {
    opacity: 0.85;
}

/* ---------- Divider ---------- */

.divider {
    display: flex;
    justify-content: center;
    margin: 6vh auto;
    max-width: var(--column-width);
    padding: 0 clamp(20px, 5vw, 40px);
}

.divider-shape {
    width: 56px;
    height: 56px;
    opacity: 0.32;
    animation: dividerRotate 30s linear infinite;
}

.divider:nth-of-type(even) .divider-shape {
    animation-direction: reverse;
    animation-duration: 42s;
}

@keyframes dividerRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---------- Sections ---------- */

.section {
    max-width: var(--column-width);
    margin: 0 auto var(--section-gap);
    padding: 0 clamp(20px, 5vw, 40px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

.section-label {
    display: block;
    font-family: var(--font-accent);
    font-weight: 300;
    font-size: clamp(11px, 0.8vw, 13px);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-coral);
    margin-bottom: 1.6em;
}

.section-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    color: var(--deep-indigo);
    line-height: 1.15;
    margin-bottom: 1em;
    letter-spacing: 0.005em;
}

.section-body {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.85;
    color: var(--ink-dark);
    margin-bottom: 1.6em;
}

.section-body em {
    font-style: italic;
    color: var(--deep-indigo);
}

/* ---------- Photograph section ---------- */

.photo-card {
    margin-top: 1em;
}

.photo-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    filter: saturate(0.55) contrast(0.92);
    margin-bottom: 1.6em;
}

.photo-caption {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.7;
    color: var(--muted-stone);
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

/* ---------- Practices ---------- */

.practice-list {
    list-style: none;
    margin-top: 0.8em;
}

.practice-item {
    display: flex;
    gap: 1.4em;
    padding: 1.1em 0;
    border-bottom: 1px solid rgba(42, 40, 80, 0.12);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.practice-item:last-child {
    border-bottom: none;
}

.section.is-visible .practice-item {
    opacity: 1;
    transform: translateY(0);
}

.section.is-visible .practice-item:nth-child(1) { transition-delay: 100ms; }
.section.is-visible .practice-item:nth-child(2) { transition-delay: 240ms; }
.section.is-visible .practice-item:nth-child(3) { transition-delay: 380ms; }
.section.is-visible .practice-item:nth-child(4) { transition-delay: 520ms; }

.practice-marker {
    flex: 0 0 auto;
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    color: var(--accent-coral);
    padding-top: 0.32em;
    min-width: 2.4em;
}

.practice-text {
    flex: 1;
    font-family: var(--font-body);
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.75;
    color: var(--ink-dark);
}

/* ---------- Progress ---------- */

.progress-entry {
    margin-bottom: 2.4em;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.section.is-visible .progress-entry {
    opacity: 1;
    transform: translateY(0);
}

.section.is-visible .progress-entry:nth-child(2) { transition-delay: 120ms; }
.section.is-visible .progress-entry:nth-child(3) { transition-delay: 280ms; }
.section.is-visible .progress-entry:nth-child(4) { transition-delay: 440ms; }

.progress-name {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 30px);
    color: var(--deep-indigo);
    line-height: 1.2;
    margin-bottom: 0.3em;
}

.progress-name em {
    font-style: normal;
    color: var(--accent-coral);
}

.progress-line {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(15px, 1.1vw, 17px);
    color: var(--muted-stone);
    line-height: 1.7;
    padding-left: 1.4em;
    border-left: 1px solid rgba(42, 40, 80, 0.18);
}

/* ---------- Visit / Contact ---------- */

.contact-line {
    display: flex;
    gap: 1.4em;
    align-items: baseline;
    padding: 0.7em 0;
    border-bottom: 1px solid rgba(42, 40, 80, 0.12);
}

.contact-line:last-of-type {
    border-bottom: none;
}

.contact-label {
    flex: 0 0 auto;
    font-family: var(--font-accent);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted-stone);
    min-width: 6em;
}

.contact-value {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.1vw, 17px);
    color: var(--ink-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 320ms ease, border-color 320ms ease;
}

a.contact-value:hover {
    color: var(--accent-coral);
    border-bottom-color: var(--accent-coral);
}

.closing-mark {
    margin-top: 3em;
    text-align: right;
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(20px, 2vw, 26px);
    color: var(--deep-indigo);
    opacity: 0.85;
}

/* ---------- Foot ---------- */

.foot {
    max-width: var(--column-width);
    margin: 8vh auto 6vh;
    padding: 2em clamp(20px, 5vw, 40px) 0;
    border-top: 1px solid rgba(42, 40, 80, 0.16);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-accent);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted-stone);
}

.foot-mark {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: normal;
    text-transform: none;
    color: var(--deep-indigo);
    opacity: 0.85;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .hero-inner { padding-top: 22vh; }
    .hero-image-frame { width: 88%; }
    .geo-accent { width: 60px; height: 60px; }
    .geo-accent--top-left { top: -20px; left: -20px; }
    .geo-accent--bottom-right { bottom: -20px; right: -20px; }
    .contact-line { flex-direction: column; gap: 0.4em; }
    .contact-label { min-width: 0; }
    .practice-item { gap: 1em; }
}

@media (prefers-reduced-motion: reduce) {
    .geo-accent,
    .divider-shape,
    .scroll-cue-line {
        animation: none;
    }
    .section,
    .hero-eyebrow,
    .logotype,
    .hero-tagline,
    .hero-image-frame,
    .scroll-cue,
    .practice-item,
    .progress-entry {
        transition: none;
    }
}
