/* monopole.studio - punk wabi-sabi
   Palette:
     #1A110B Kiln Black
     #2A1F17 Ash Dark
     #BF5B21 Kiln Orange
     #E87730 Ember Glow
     #8B3A1A Iron Red
     #D9CBBE Ash Bone
     #8A6A50 Fired Clay
     #F0E6DA White Ash
     #3D1E0F Char Brown
*/

:root {
    --c-kiln-black: #1A110B;
    --c-ash-dark: #2A1F17;
    --c-kiln-orange: #BF5B21;
    --c-ember-glow: #E87730;
    --c-iron-red: #8B3A1A;
    --c-ash-bone: #D9CBBE;
    --c-fired-clay: #8A6A50;
    --c-white-ash: #F0E6DA;
    --c-char-brown: #3D1E0F;

    --bg-current: var(--c-white-ash);
    --fg-current: var(--c-kiln-black);

    --col-width: min(740px, 55vw);
    --col-pad: 2rem;

    --ease-wabi: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html, body {
    background: var(--c-kiln-black);
    color: var(--c-ash-bone);
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.85;
    overflow-x: hidden;
    cursor: default;
}

body {
    background: var(--bg-current);
    transition: background-color 1.2s var(--ease-wabi);
    position: relative;
    min-height: 100vh;
}

main {
    position: relative;
    z-index: 2;
}

a {
    color: var(--c-kiln-orange);
    text-decoration: none;
    border-bottom: 1px solid var(--c-iron-red);
    transition: color 0.4s var(--ease-wabi), border-color 0.4s var(--ease-wabi);
}

a:hover {
    color: var(--c-ember-glow);
    border-bottom-color: var(--c-ember-glow);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol, dl {
    list-style: none;
}

/* ==================== Watermarks (kanji in flanks) ==================== */
.watermarks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.watermark {
    position: absolute;
    font-family: "Libre Baskerville", "Source Serif 4", serif;
    color: var(--c-kiln-orange);
    opacity: 0.04;
    font-size: clamp(14rem, 28vw, 36rem);
    line-height: 1;
    user-select: none;
    will-change: transform;
}

.wm-left { left: -2vw; }
.wm-right { right: -2vw; }

.wm-1 { top: 4vh; }
.wm-2 { top: 110vh; }
.wm-3 { top: 280vh; }
.wm-4 { top: 480vh; }

/* ==================== Crystalline lattice ==================== */
.lattice {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.6s var(--ease-wabi);
}

.lattice.lattice-active { opacity: 1; }

.lattice line {
    stroke: var(--c-kiln-orange);
    stroke-width: 1;
    opacity: 0.18;
    transition: opacity 0.4s var(--ease-wabi), stroke 0.4s var(--ease-wabi);
}

.lattice line.lattice-near {
    opacity: 0.42;
    stroke: var(--c-ember-glow);
}

.lattice circle {
    fill: var(--c-kiln-orange);
    opacity: 0.22;
    transition: opacity 0.4s var(--ease-wabi);
}

.lattice circle.lattice-near {
    opacity: 0.55;
    fill: var(--c-ember-glow);
}

/* ==================== Ember glow ==================== */
.ember-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    background: radial-gradient(circle at 50% 60%,
        rgba(191, 91, 33, 0.18) 0%,
        rgba(191, 91, 33, 0.08) 30%,
        rgba(0, 0, 0, 0) 65%);
    transition: opacity 1.4s var(--ease-wabi);
}

.ember-glow.ember-on {
    animation: emberPulse 8s var(--ease-wabi) infinite;
}

@keyframes emberPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* ==================== Phase indicator ==================== */
.phase-indicator {
    position: fixed;
    right: 2.4rem;
    bottom: 2.4rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
}

.phase-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--c-kiln-orange);
    background: transparent;
    border-radius: 50%;
    transition: background 0.6s var(--ease-wabi), box-shadow 0.6s var(--ease-wabi);
}

.phase-dot.phase-active {
    background: var(--c-kiln-orange);
    box-shadow: 0 0 0 0 rgba(232, 119, 48, 0.6);
    animation: phasePulse 2.4s var(--ease-wabi) infinite;
}

@keyframes phasePulse {
    0% { box-shadow: 0 0 0 0 rgba(232, 119, 48, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(232, 119, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 119, 48, 0); }
}

/* ==================== Scenes (sections) ==================== */
.scene {
    position: relative;
    width: 100%;
    padding: 18vh var(--col-pad) 22vh;
    z-index: 2;
}

.scene-opening,
.scene-exit {
    min-height: 100vh;
    background: var(--c-white-ash);
    color: var(--c-kiln-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-descent,
.scene-fire {
    background: var(--c-kiln-black);
    color: var(--c-ash-bone);
    min-height: 100vh;
}

.scene-making {
    background: var(--c-ash-dark);
    color: var(--c-ash-bone);
    min-height: 110vh;
}

.scene-cooling {
    background: var(--c-ash-dark);
    color: var(--c-ash-bone);
    min-height: 90vh;
}

.scene-cooling + .scene-cooling {
    background: var(--c-fired-clay);
    color: var(--c-white-ash);
}

/* Fractured sections - off-center displacement + subtle rotation */
.fractured {
    --fracture-amount: 8vw;
}

.fractured-left {
    transform: translateX(calc(var(--fracture-amount) * -1)) rotate(-0.3deg);
}

.fractured-right {
    transform: translateX(var(--fracture-amount)) rotate(0.3deg);
}

@media (max-width: 760px) {
    .fractured-left,
    .fractured-right {
        transform: none;
    }
}

/* ==================== Content column (centered spine) ==================== */
.content-column {
    width: var(--col-width);
    max-width: 740px;
    margin: 0 auto;
    position: relative;
}

.opening-frame {
    width: min(820px, 88vw);
    text-align: center;
    margin: 0 auto;
}

@media (max-width: 760px) {
    :root { --col-width: 88vw; }
}

/* ==================== Typography ==================== */
.eyebrow,
.caption,
.work-meta,
.method-step,
.contact-list dt {
    font-family: "DM Mono", "Courier New", monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-fired-clay);
}

.eyebrow {
    margin-bottom: 1.6rem;
    display: inline-block;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--c-iron-red);
}

.eyebrow-orange {
    color: var(--c-kiln-orange);
    border-bottom-color: var(--c-kiln-orange);
}

.eyebrow-fade {
    color: var(--c-fired-clay);
    border-bottom-color: var(--c-fired-clay);
    opacity: 0.8;
}

.display-italic,
.display-italic-fade {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 1.8rem;
    color: var(--c-ash-bone);
}

.display-italic {
    font-size: clamp(2.4rem, 5.2vw, 5.6rem);
}

.display-italic-fade {
    font-size: clamp(2rem, 4.4vw, 4.4rem);
    color: var(--c-ash-bone);
    opacity: 0.92;
}

.scene-cooling + .scene-cooling .display-italic-fade {
    color: var(--c-white-ash);
}

.manifesto {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(2.2rem, 4.8vw, 4.8rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--c-kiln-black);
    margin: 1.8rem 0;
}

.manifesto-exit {
    color: var(--c-kiln-black);
}

.opening-sub {
    font-family: "DM Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-iron-red);
    margin-top: 4rem;
}

.caption-opening,
.caption-exit {
    color: var(--c-iron-red);
    margin-bottom: 4rem;
}

.caption-exit {
    margin-top: 4rem;
    margin-bottom: 0;
}

.body-text {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 300;
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--c-ash-bone);
    margin-bottom: 1.4rem;
}

.body-fade {
    color: var(--c-ash-bone);
    opacity: 0.85;
}

.scene-cooling + .scene-cooling .body-fade {
    color: var(--c-white-ash);
}

/* Pull quotes - Fraunces 600 with wonk */
.pull-quote {
    font-family: "Fraunces", "Libre Baskerville", Georgia, serif;
    font-weight: 600;
    font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 1.32;
    color: var(--c-kiln-orange);
    border-left: 3px solid var(--c-kiln-orange);
    padding: 0.4rem 0 0.4rem 1.6rem;
    margin: 2.4rem 0;
}

/* ==================== Method list ==================== */
.method-list {
    margin-top: 2rem;
    border-top: 1px solid var(--c-iron-red);
}

.method-list li {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.2rem;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(139, 58, 26, 0.4);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.04rem;
    color: var(--c-ash-bone);
}

.method-step {
    color: var(--c-kiln-orange);
}

/* ==================== Contact / studio list ==================== */
.contact-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.8rem 1.6rem;
}

.contact-list dt {
    color: var(--c-char-brown);
    padding-top: 0.2rem;
}

.contact-list dd {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.04rem;
    color: var(--c-white-ash);
}

.link-orange {
    color: var(--c-kiln-orange);
    border-bottom: 1px solid var(--c-kiln-orange);
}

.link-orange:hover {
    color: var(--c-ember-glow);
    border-bottom-color: var(--c-ember-glow);
}

/* ==================== Works grid ==================== */
.works-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
}

@media (max-width: 760px) {
    .works-grid { grid-template-columns: 1fr; }
}

.work-item {
    position: relative;
}

.work-item-offset {
    transform: translateY(2.4rem) rotate(0.4deg);
}

.work-thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 130%;
    background: var(--c-kiln-black);
    overflow: hidden;
    margin-bottom: 1rem;
    transform: rotate(-0.6deg);
    border: 1px solid var(--c-char-brown);
}

.work-meta {
    margin-bottom: 0.4rem;
}

.work-title {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.25;
    color: var(--c-ash-bone);
    margin-bottom: 0.4rem;
}

.work-desc {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 0.95rem;
    color: var(--c-fired-clay);
    line-height: 1.6;
}

/* ==================== Duotone images (CSS-generated textures) ==================== */
.duotone-bg {
    position: absolute;
    inset: -10vh -10vw;
    z-index: -1;
    overflow: hidden;
    opacity: 0.4;
    pointer-events: none;
}

.duotone-image,
.duotone-overlay {
    position: absolute;
    inset: 0;
}

.duotone-image {
    filter: grayscale(100%) contrast(1.3);
}

/* CSS-generated "ceramic surface" textures via radial/conic gradients */
.dt-img-1 {
    background:
        radial-gradient(ellipse at 30% 40%, #555 0%, #222 30%, #000 70%),
        radial-gradient(circle at 70% 60%, #444 0%, #111 50%);
    background-blend-mode: overlay;
}

.dt-img-2 {
    background:
        radial-gradient(circle at 50% 30%, #666 0%, #222 60%),
        repeating-radial-gradient(circle at 50% 50%, #333 0px, #222 4px, #111 8px);
}

.dt-img-3 {
    background:
        radial-gradient(ellipse at 40% 60%, #555 0%, #1a1a1a 70%),
        repeating-linear-gradient(45deg, #333 0px, #222 6px, #111 12px);
    background-blend-mode: multiply;
}

.dt-img-4 {
    background:
        radial-gradient(circle at 60% 40%, #777 0%, #333 30%, #0a0a0a 80%),
        repeating-conic-gradient(from 0deg at 50% 50%, #222 0deg, #111 8deg);
    background-blend-mode: overlay;
}

.dt-img-5 {
    background:
        radial-gradient(ellipse at 50% 50%, #555 0%, #222 50%, #000 90%),
        repeating-linear-gradient(0deg, #2a2a2a 0px, #1a1a1a 3px, #111 6px);
}

.duotone-overlay {
    background: var(--c-kiln-orange);
    mix-blend-mode: multiply;
    opacity: 0.85;
}

/* Inset duotone in fractured Descent section */
.duotone-bg .duotone-image {
    width: 100%;
    height: 100%;
}

/* ==================== Fracture lines (between scenes) ==================== */
.fracture-line {
    position: relative;
    width: min(94vw, 1200px);
    height: 12px;
    margin: 0 auto;
    z-index: 3;
}

.fracture-line svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--c-char-brown);
    stroke-width: 1.6;
    opacity: 0.55;
}

.fracture-line svg path {
    stroke-linecap: round;
}

.fracture-dense {
    height: 14px;
}

.fracture-dense svg {
    stroke: var(--c-iron-red);
    opacity: 0.7;
    stroke-width: 2;
}

/* Crystal spikes growing from fracture line */
.crystal-spike {
    position: absolute;
    width: 1px;
    background: var(--c-kiln-orange);
    opacity: 0;
    transform-origin: bottom center;
    transition: opacity 0.8s var(--ease-wabi), transform 0.8s var(--ease-wabi);
}

.fracture-line.fracture-visible .crystal-spike {
    opacity: 0.5;
    transform: scaleY(1);
}

.cs-1 { left: 18%; bottom: 6px; height: 22px; transform: rotate(28deg) scaleY(0.7); }
.cs-2 { left: 36%; bottom: 6px; height: 38px; transform: rotate(-12deg) scaleY(0.7); }
.cs-3 { left: 58%; bottom: 6px; height: 26px; transform: rotate(45deg) scaleY(0.7); }
.cs-4 { left: 72%; bottom: 6px; height: 50px; transform: rotate(-30deg) scaleY(0.7); }
.cs-5 { left: 86%; bottom: 6px; height: 30px; transform: rotate(15deg) scaleY(0.7); }

.fracture-line.fracture-visible .cs-1 { transform: rotate(28deg) scaleY(1); }
.fracture-line.fracture-visible .cs-2 { transform: rotate(-12deg) scaleY(1); }
.fracture-line.fracture-visible .cs-3 { transform: rotate(45deg) scaleY(1); }
.fracture-line.fracture-visible .cs-4 { transform: rotate(-30deg) scaleY(1); }
.fracture-line.fracture-visible .cs-5 { transform: rotate(15deg) scaleY(1); }

/* ==================== Reveal animation (sole vocabulary: fade-reveal) ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.1s var(--ease-wabi), transform 1.1s var(--ease-wabi);
    will-change: opacity, transform;
}

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

/* When the column itself is the .reveal target, its children also stagger lightly */
.content-column.reveal.is-visible > * {
    animation: childReveal 1.2s var(--ease-wabi) both;
}

.content-column.reveal.is-visible > *:nth-child(1) { animation-delay: 0ms; }
.content-column.reveal.is-visible > *:nth-child(2) { animation-delay: 150ms; }
.content-column.reveal.is-visible > *:nth-child(3) { animation-delay: 300ms; }
.content-column.reveal.is-visible > *:nth-child(4) { animation-delay: 450ms; }
.content-column.reveal.is-visible > *:nth-child(5) { animation-delay: 600ms; }
.content-column.reveal.is-visible > *:nth-child(6) { animation-delay: 750ms; }
.content-column.reveal.is-visible > *:nth-child(7) { animation-delay: 900ms; }
.content-column.reveal.is-visible > *:nth-child(8) { animation-delay: 1050ms; }

@keyframes childReveal {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* No rounded corners anywhere; no shadows */
* {
    border-radius: 0;
    box-shadow: none;
}

/* The phase indicator dots are the sole exception (circles by definition) */
.phase-dot { border-radius: 50%; }

/* ==================== Responsive tweaks ==================== */
@media (max-width: 760px) {
    .scene { padding: 12vh 1.2rem 16vh; }
    .phase-indicator { right: 1rem; bottom: 1rem; }
    .watermark { font-size: clamp(10rem, 32vw, 18rem); }
    .contact-list { grid-template-columns: 1fr; gap: 0.2rem 0; }
    .contact-list dd { margin-bottom: 0.8rem; }
}
