/* =====================================================================
 * Gongoozled — Foggy Canal Theatre
 * A holding page in ink-teal, parchment, and aged brass.
 * ===================================================================== */

:root {
    --ink:           #0c2228;
    --ink-soft:      #143038;
    --ink-deep:      #07181c;
    --parchment:     #f0e6d2;
    --parchment-2:   #e8dcbf;
    --brass:         #c89b4a;
    --brass-dim:     #8b6a30;
    --brass-bright:  #e1b96a;
    --oxblood:       #7a2e23;
    --fog:           rgba(240, 230, 210, 0.07);

    --font-display:   'Italiana', 'Times New Roman', serif;
    --font-marcellus: 'Marcellus SC', 'Times New Roman', serif;
    --font-body:      'Spectral', Georgia, 'Times New Roman', serif;
}

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

html {
    background: var(--ink);
    color: var(--parchment);
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.65;
    font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.18rem);
    color: var(--parchment);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--brass); color: var(--ink); }

/* ---- RIBAND (wide canal-boats band at top) ------------------------ */

.riband {
    position: relative;
    width: 100%;
    height: clamp(180px, 28vw, 360px);
    overflow: hidden;
    background: var(--ink-deep);
    isolation: isolate;
}

.riband__photo,
.riband__photo img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.riband__photo img {
    object-fit: cover;
    object-position: center 62%;
    filter: saturate(0.88) contrast(1.04) brightness(0.94);
}

.riband__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            rgba(7, 24, 28, 0.10) 0%,
            rgba(7, 24, 28, 0.05) 30%,
            rgba(7, 24, 28, 0.55) 80%,
            var(--ink) 100%),
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(200, 155, 74, 0.06), transparent 65%);
    mix-blend-mode: normal;
}

/* ---- HERO ---------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 60vh;
    min-height: 60dvh;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 80% 60% at 50% 15%, rgba(200, 155, 74, 0.10), transparent 60%),
        radial-gradient(ellipse 120% 90% at 50% 100%, var(--ink-deep), var(--ink) 70%),
        var(--ink);
    padding: clamp(2rem, 8vw, 6rem) 1.5rem;
}

.fog {
    position: absolute;
    inset: -15%;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 1;
    filter: blur(20px);
}
.fog--a {
    background: radial-gradient(ellipse 40% 25% at 30% 60%, var(--fog), transparent 70%);
    animation: drift 32s ease-in-out infinite alternate;
    opacity: 0.7;
}
.fog--b {
    background: radial-gradient(ellipse 50% 30% at 70% 40%, var(--fog), transparent 70%);
    animation: drift 42s ease-in-out infinite alternate-reverse;
    opacity: 0.8;
}
.fog--c {
    background: radial-gradient(ellipse 35% 22% at 55% 80%, var(--fog), transparent 70%);
    animation: drift 26s ease-in-out infinite alternate;
    opacity: 0.55;
}

@keyframes drift {
    from { transform: translate3d(-5%, 3%, 0) scale(1); }
    to   { transform: translate3d(5%, -3%, 0) scale(1.08); }
}

.boat {
    position: absolute;
    bottom: 6%;
    right: -3%;
    width: clamp(220px, 28vw, 360px);
    height: auto;
    color: var(--ink-soft);
    opacity: 0.55;
    z-index: 0;
    animation: bob 7s ease-in-out infinite;
    filter: blur(0.3px);
}
@keyframes bob {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(0, -6px) rotate(-0.4deg); }
}

.hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 60rem;
}

.hero__eyebrow {
    font-family: var(--font-marcellus);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: var(--brass);
    margin: 0 0 2.8rem;
    opacity: 0;
    animation: fade-in 1.2s ease-out 0.2s forwards;
}

.wordmark {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3.2rem, 13.5vw, 9rem);
    line-height: 0.95;
    letter-spacing: 0.04em;
    color: var(--parchment);
    margin: 0;
    text-shadow:
        0 0 30px rgba(200, 155, 74, 0.10),
        0 0 80px rgba(12, 34, 40, 0.6);
}

.wordmark__letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.3em);
    filter: blur(10px);
    animation: emerge 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    animation-delay: calc(0.25s + var(--i) * 0.085s);
    will-change: opacity, transform, filter;
}

@keyframes emerge {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.wordmark__tm {
    font-family: var(--font-body);
    font-size: 0.18em;
    font-weight: 400;
    font-style: normal;
    vertical-align: 1.5em;
    letter-spacing: 0.12em;
    color: var(--brass);
    margin-left: 0.18em;
    opacity: 0;
    animation: fade-in 1s ease-out 1.5s forwards;
}

.ornament {
    width: clamp(160px, 28vw, 240px);
    height: auto;
    margin: 2rem auto 1.8rem;
    color: var(--brass);
    opacity: 0;
    animation: fade-in 1.2s ease-out 1.7s forwards;
}

.hero__lede {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem);
    line-height: 1.45;
    max-width: 32ch;
    margin: 0 auto 1.6rem;
    color: var(--parchment);
    opacity: 0;
    animation: fade-in 1.2s ease-out 1.9s forwards;
}

.hero__support {
    font-family: var(--font-marcellus);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--brass-dim);
    margin: 0;
    opacity: 0;
    animation: fade-in 1.2s ease-out 2.1s forwards;
}

@keyframes fade-in { to { opacity: 1; } }

/* ---- SECTION TITLE ------------------------------------------------- */

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
    line-height: 1.1;
    text-align: center;
    margin: 0 0 3.2rem;
    color: var(--ink);
    letter-spacing: 0.01em;
}
.section-title--light { color: var(--parchment); }
.section-title__small {
    display: block;
    font-family: var(--font-marcellus);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* ---- PROSE --------------------------------------------------------- */

.prose {
    background: var(--parchment);
    color: var(--ink);
    padding: clamp(4.5rem, 10vw, 8rem) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.prose::before, .prose::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brass), transparent);
    transform: translateX(-50%);
}
.prose::before { top: 2.8rem; }
.prose::after  { bottom: 2.8rem; }

.prose__inner,
.prose > p {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.prose__lead {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 1.6rem;
}

.dropcap {
    float: left;
    font-family: var(--font-display);
    font-size: 4.6em;
    line-height: 0.82;
    margin: 0.06em 0.12em 0 0;
    color: var(--brass);
}

.prose p { margin: 0 auto 1.2rem; text-align: left; }
.prose p:last-child { margin-bottom: 0; }

.prose__aside {
    font-style: italic;
    color: var(--brass-dim);
    letter-spacing: 0.04em;
    margin-top: 2rem !important;
    text-align: center !important;
}

/* ---- ACTS ---------------------------------------------------------- */

.acts {
    background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 30%, var(--ink) 100%);
    color: var(--parchment);
    padding: clamp(4.5rem, 10vw, 8rem) 1.5rem;
}

.acts__list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 78rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
}

@media (min-width: 720px) {
    .acts__list { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}
@media (min-width: 1100px) {
    .acts__list { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
}

.act {
    position: relative;
    background: linear-gradient(170deg, rgba(240, 230, 210, 0.045), rgba(240, 230, 210, 0.015));
    border: 1px solid rgba(200, 155, 74, 0.35);
    padding: 2.6rem 1.6rem 2.2rem;
    text-align: center;
    transition: transform 0.45s ease, border-color 0.45s ease, background 0.45s ease;
}
.act::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(200, 155, 74, 0.14);
    pointer-events: none;
}
.act:hover {
    transform: translateY(-4px);
    border-color: var(--brass);
    background: linear-gradient(170deg, rgba(200, 155, 74, 0.08), rgba(240, 230, 210, 0.02));
}

.act__icon {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.4rem;
    color: var(--brass);
}

.act__num {
    font-family: var(--font-marcellus);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--brass);
    margin: 0 0 0.6rem;
}

.act__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--parchment);
}

.act__body {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(240, 230, 210, 0.78);
    margin: 0;
}

/* ---- TOWPATH ------------------------------------------------------- */

.towpath {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 11vw, 8rem) 1.5rem clamp(5rem, 12vw, 9rem);
    background:
        radial-gradient(ellipse 60% 70% at 50% 18%, rgba(200, 155, 74, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 90% 60% at 50% 50%, var(--ink-soft) 0%, var(--ink) 70%, var(--ink-deep) 100%);
    text-align: center;
    color: var(--parchment);
}

.spotlight {
    position: absolute;
    top: -20%;
    left: 50%;
    width: 90vw;
    max-width: 1000px;
    height: 140%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 30% 50% at 50% 0%, rgba(240, 230, 210, 0.08), transparent 65%);
    pointer-events: none;
    animation: shine 9s ease-in-out infinite alternate;
}
@keyframes shine {
    from { opacity: 0.55; }
    to   { opacity: 1; }
}

/* The canal scene — photo centerpiece */

.canal {
    position: relative;
    z-index: 2;
    margin: 0 auto 3.2rem;
    max-width: 38rem;
    padding: 0 1rem;
}

.canal__photo {
    display: block;
    position: relative;
}

.canal__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    filter: saturate(0.92) contrast(1.04);
    box-shadow:
        0 0 0 1px rgba(200, 155, 74, 0.35),
        0 0 0 8px rgba(200, 155, 74, 0.06),
        0 30px 70px -10px rgba(7, 24, 28, 0.8),
        0 6px 24px -4px rgba(7, 24, 28, 0.6);
}

/* Fallback SVG (hidden unless onerror swaps it in) */
.canal__scene {
    width: 100%;
    height: auto;
    color: var(--brass);
    filter: drop-shadow(0 1px 0 rgba(7, 24, 28, 0.4));
}

.canal__scene .figure {
    opacity: 0;
    transform: translateY(8px);
    animation: gawp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.canal__scene .figure:nth-of-type(1)  { animation-delay: 0.30s; }
.canal__scene .figure:nth-of-type(2)  { animation-delay: 0.40s; }
.canal__scene .figure:nth-of-type(3)  { animation-delay: 0.50s; }
.canal__scene .figure:nth-of-type(4)  { animation-delay: 0.60s; }
.canal__scene .figure:nth-of-type(5)  { animation-delay: 0.70s; }
.canal__scene .figure:nth-of-type(6)  { animation-delay: 0.80s; }
.canal__scene .figure:nth-of-type(7)  { animation-delay: 0.90s; }
.canal__scene .figure:nth-of-type(8)  { animation-delay: 1.00s; }
.canal__scene .figure:nth-of-type(9)  { animation-delay: 1.10s; }
.canal__scene .figure:nth-of-type(10) { animation-delay: 1.20s; }
.canal__scene .figure:nth-of-type(11) { animation-delay: 1.30s; }

@keyframes gawp {
    to { opacity: 1; transform: translateY(0); }
}

.canal__water path {
    animation: ripple 8s ease-in-out infinite alternate;
}
.canal__water path:nth-of-type(2) { animation-duration: 11s; }
.canal__water path:nth-of-type(3) { animation-duration: 9s;  }
.canal__water path:nth-of-type(4) { animation-duration: 13s; }

@keyframes ripple {
    from { transform: translateX(-12px); }
    to   { transform: translateX(12px); }
}

/* Question + caption */

.towpath__quote {
    margin: 0 auto;
    max-width: 30ch;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.8rem);
    line-height: 1.18;
    color: var(--parchment);
    position: relative;
    z-index: 2;
}
.towpath__quote .stanza {
    opacity: 0;
    transform: translateY(8px);
    animation: gawp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.towpath__quote .stanza:nth-child(1) { animation-delay: 0.20s; }
.towpath__quote .stanza:nth-child(2) { animation-delay: 0.55s; }
.towpath__quote .stanza:nth-child(3) { animation-delay: 0.90s; }
.towpath__quote .stanza + .stanza { margin-top: 1.6rem; }
.towpath__quote p { margin: 0; }
.towpath__quote em {
    display: block;
    color: var(--brass-bright);
    font-style: italic;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85em;
    margin-top: 0.15em;
    letter-spacing: 0.01em;
}

.towpath__caption {
    margin-top: 2.6rem;
    font-family: var(--font-marcellus);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: var(--brass-dim);
    position: relative;
    z-index: 2;
}

/* ---- CONTACT ------------------------------------------------------- */

.contact {
    background: var(--parchment);
    color: var(--ink);
    padding: clamp(4.5rem, 10vw, 7rem) 1.5rem;
    text-align: center;
    position: relative;
}
.contact::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 2.8rem;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brass), transparent);
    transform: translateX(-50%);
}

.contact__body {
    max-width: 38ch;
    margin: 0 auto 1.8rem;
    font-size: 1.05rem;
}

.contact__email {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 1rem + 2.6vw, 2.4rem);
    margin: 0;
}
.contact__email a {
    color: var(--oxblood);
    text-decoration: none;
    border-bottom: 1px solid rgba(122, 46, 35, 0.3);
    padding-bottom: 0.08em;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.contact__email a:hover {
    border-color: var(--oxblood);
    color: #5b2017;
}

/* ---- FOOTER -------------------------------------------------------- */

.foot {
    background: var(--ink-deep);
    color: var(--parchment-2);
    padding: 3.2rem 1.5rem 2.6rem;
    text-align: center;
    border-top: 1px solid rgba(200, 155, 74, 0.18);
    font-size: 0.82rem;
}

.foot__wordmark {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--brass);
    margin: 0 0 0.9rem;
    letter-spacing: 0.05em;
}
.foot__wordmark sup {
    font-family: var(--font-body);
    font-size: 0.42em;
    margin-left: 0.18em;
    vertical-align: 0.9em;
    color: var(--brass-dim);
    letter-spacing: 0.1em;
}

.foot__legal {
    max-width: 56ch;
    margin: 0 auto 0.7rem;
    color: rgba(240, 230, 210, 0.55);
    line-height: 1.6;
}
.foot__legal sup {
    font-size: 0.65em;
    margin: 0 0.05em;
    vertical-align: 0.6em;
    letter-spacing: 0.05em;
}

.foot__year {
    color: rgba(240, 230, 210, 0.35);
    margin: 0;
    font-family: var(--font-marcellus);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.foot a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 155, 74, 0.25);
    padding-bottom: 0.05em;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.foot a:hover {
    color: var(--brass);
    border-color: var(--brass);
}

/* ---- GRAIN OVERLAY ------------------------------------------------- */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95   0 0 0 0 0.9   0 0 0 0 0.82   0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.5'/></svg>");
    opacity: 0.055;
    mix-blend-mode: overlay;
}

/* ---- REDUCED MOTION ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .wordmark__letter,
    .hero__eyebrow,
    .wordmark__tm,
    .ornament,
    .hero__lede,
    .hero__support {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
