/* ============================================================
   IDK-HOME.CSS — Idakera Studio Homepage Engine
   Proprietary implementation. Zero external dependencies.
   All animations and logic original to Idakera Studio.
   ============================================================ */

/* ========================
   HEADER
======================== */
#idk-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 3rem;
    --idk-header-fade: clamp(56px, 7vw, 96px);
    background: transparent;
    isolation: isolate;
    transition: background 0.5s var(--idk-ease-expo),
                height 0.5s var(--idk-ease-expo);
}

#idk-header.idk-scrolled {
    background: transparent;
}

/* The static foundation keeps controls readable while the shared wave layers
   move independently behind them, fading into whatever section is beneath. */
#idk-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: calc(100% + var(--idk-header-fade));
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(14,14,14,0.96), rgba(14,14,14,0.88) 30%, rgba(14,14,14,0.45) 50%, transparent 80%);
}
.idk-header-shadow {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: calc(100% + var(--idk-header-fade));
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    contain: paint;
    --idk-wave-direction: -1;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
    mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.idk-header-shadow .idk-wave-layer {
    top: -20%; bottom: auto;
    border-radius: 0 0 50% 50%;
    background: var(--idk-bg-dark);
}
.idk-header-shadow .idk-wave-dot {
    top: -10%; bottom: auto;
    background: var(--idk-bg-dark);
}
body.idk-menu-open .idk-header-shadow > * {
    animation-play-state: paused;
    will-change: auto;
}

.idk-logo-wrap a {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    transition: opacity 0.3s ease;
}
.idk-logo-wrap a:hover { opacity: 0.6; }

.idk-logo-main {
    font-family: var(--idk-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--idk-ink);
    letter-spacing: -0.01em;
}
.idk-logo-sub {
    font-family: var(--idk-font-serif);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--idk-ink-muted);
    letter-spacing: 0.05em;
}

.idk-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.idk-nav-center-link {
    font-family: var(--idk-font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--idk-ink-muted);
    transition: color 0.3s;
}
.idk-nav-center-link:hover { color: var(--idk-ink); }

.idk-header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Language switcher */
.idk-lang-switcher {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}
.idk-btn-lang {
    position: relative;
    background: none;
    border: none;
    color: var(--idk-ink-muted);
    font-family: var(--idk-font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s;
    text-transform: uppercase;
}
.idk-btn-lang::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 10%;
    width: 80%; height: 1px;
    background: var(--idk-ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--idk-ease-expo);
}
.idk-btn-lang:hover { color: var(--idk-ink); }
.idk-btn-lang.idk-active {
    color: var(--idk-ink);
    pointer-events: none;
}
.idk-btn-lang.idk-active::after {
    transform: scaleX(1);
    transform-origin: left;
}
.idk-lang-sep {
    color: var(--idk-ink-muted);
    font-size: 0.8rem;
    margin: 0 0.2rem;
    opacity: 0.5;
}

/* Menu trigger button */
.idk-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(26, 26, 26, 0.15);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
    z-index: 0;
}
.idk-menu-trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--idk-ink);
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 0.4s var(--idk-ease-expo);
    z-index: -1;
}
.idk-menu-trigger:hover { border-color: var(--idk-ink); }
.idk-menu-trigger:hover::before { transform: scaleY(1); }
.idk-menu-trigger:hover .idk-menu-label { color: var(--idk-bg); }
.idk-menu-trigger:hover .idk-hamburger span { background: var(--idk-bg); }

.idk-menu-label {
    font-family: var(--idk-font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--idk-ink);
    transition: color 0.3s;
}
.idk-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}
.idk-hamburger span {
    display: block;
    height: 1px;
    width: 100%;
    background: var(--idk-ink);
    transition: all 0.4s var(--idk-ease-expo);
}
body.idk-menu-open .idk-hamburger span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
body.idk-menu-open .idk-hamburger span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

/* ========================
   NAVIGATION OVERLAY
======================== */
.idk-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 850;
    background: var(--idk-bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    padding: 6rem 5vw;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-100%);
    transition: transform 0.8s var(--idk-ease-expo);
}
.idk-nav-overlay.idk-open { transform: translateY(0); }

.idk-nav-body {
    display: flex;
    gap: 8vw;
    align-items: flex-start;
}
.idk-nav-category {
    font-family: var(--idk-font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2.5rem;
}
.idk-nav-list { list-style: none; }
.idk-nav-list li { overflow: hidden; }

.idk-nav-link {
    display: block;
    font-family: var(--idk-font-serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.1;
    padding: 0.15em 0;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.7s var(--idk-ease-expo),
                opacity 0.7s ease,
                color 0.3s,
                letter-spacing 0.4s ease;
}
.idk-nav-link em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7em;
}
.idk-nav-link .idk-nav-status {
    display: inline-block;
    vertical-align: middle;
    font-size: clamp(0.875rem, 1.7vw, 1.5rem);
    color: rgba(255,255,255,0.6);
}
.idk-nav-overlay.idk-open .idk-nav-link {
    transform: translateY(0);
    opacity: 1;
}
.idk-nav-overlay.idk-open .idk-nav-list li:nth-child(1) .idk-nav-link { transition-delay: 0.15s; }
.idk-nav-overlay.idk-open .idk-nav-list li:nth-child(2) .idk-nav-link { transition-delay: 0.22s; }
.idk-nav-overlay.idk-open .idk-nav-list li:nth-child(3) .idk-nav-link { transition-delay: 0.29s; }
.idk-nav-overlay.idk-open .idk-nav-list li:nth-child(4) .idk-nav-link { transition-delay: 0.36s; }

.idk-nav-link:hover { color: #fff; letter-spacing: 0.03em; }
.idk-link-sealed { color: rgba(255, 255, 255, 0.2) !important; pointer-events: none; }

.idk-nav-list-sm .idk-nav-link { font-size: clamp(1.4rem, 3vw, 2.5rem); }
.idk-nav-col-right { align-self: flex-end; padding-bottom: 1rem; }

.idk-nav-floor {
    margin-top: auto;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-family: var(--idk-font-sans);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

/* ========================
   HERO SECTION
======================== */
.idk-hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--idk-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* [VORTEX — RESERVED FOR FUTURE SECTION] commented out from hero; move to another section when ready

---- PORTAL VORTEX ----
#idk-portal-root {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
}
#idk-portal-vortex {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
#idk-portal-root canvas {
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
    width: 100%; height: 100%;
}
.idk-portal-btn {
    width: 255px; height: 255px;
    background-color: transparent;
    border-radius: 50%;
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    line-height: 255px;
    text-align: center;
    transition: opacity 500ms;
    pointer-events: auto;
}
.idk-portal-btn.idk-released {
    opacity: 0;
    pointer-events: none;
}
.idk-portal-btn:hover span { color: var(--idk-ink); }
.idk-portal-btn:hover span::before,
.idk-portal-btn:hover span::after { background-color: var(--idk-ink); }

.idk-portal-btn span {
    color: var(--idk-ink-muted);
    font-family: var(--idk-font-serif);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    position: relative;
    transition: color 500ms;
}
.idk-portal-btn span::before,
.idk-portal-btn span::after {
    content: '';
    display: inline-block;
    height: 1px; width: 16px;
    margin-bottom: 4px;
    background-color: var(--idk-ink-muted);
    transition: background-color 500ms;
}
.idk-portal-btn span::before { margin-right: 12px; }
.idk-portal-btn span::after  { margin-left: 12px; }

*/

/* ---- FLOATING IMAGE CARDS ---- */
.idk-cards-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}
.idk-card {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 2px;
    transition: transform 0.6s var(--idk-ease-expo);
}
.idk-card img {
    object-fit: cover;
    width: 100%; height: 100%;
    display: block;
    filter: brightness(0.92) contrast(1.05);
}
.idk-card-label {
    position: absolute;
    top: 0.7rem; left: 0.8rem;
    font-family: var(--idk-font-serif);
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
}

.idk-card-1 {
    width: clamp(160px, 18vw, 280px);
    height: clamp(220px, 28vh, 380px);
    left: 4vw; top: 12vh;
    transform: rotate(-6deg) translate(0,0);
}
.idk-card-2 {
    width: clamp(200px, 24vw, 360px);
    height: clamp(260px, 34vh, 460px);
    right: 3vw; top: 8vh;
    transform: rotate(5deg) translate(0,0);
}
.idk-card-3 {
    width: clamp(140px, 15vw, 220px);
    height: clamp(180px, 22vh, 300px);
    left: 20vw; bottom: 22vh;
    transform: rotate(-3deg) translate(0,0);
}
.idk-card-4 {
    width: clamp(170px, 19vw, 280px);
    height: clamp(210px, 26vh, 360px);
    right: 18vw; bottom: 20vh;
    transform: rotate(7deg) translate(0,0);
}
.idk-card-5 {
    width: clamp(120px, 12vw, 190px);
    height: clamp(150px, 18vh, 240px);
    left: 7vw; bottom: 32vh;
    transform: rotate(-9deg) translate(0,0);
}

/* ---- COORDINATES MARKER ---- */
.idk-hero-coords {
    position: absolute;
    top: clamp(4rem, 8vh, 7rem);
    right: clamp(10rem, 14vw, 16rem);
    font-family: var(--idk-font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--idk-ink-muted);
    line-height: 1.7;
    text-align: right;
    opacity: 0;
    animation: idkFadeIn 1s ease 1.2s forwards;
}

/* ---- HERO BOTTOM BAR ---- */
.idk-hero-footer {
    position: absolute;
    bottom: 2.5rem; left: 0; right: 0;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    opacity: 0;
    animation: idkFadeIn 0.8s ease 1.4s forwards;
}
.idk-studio-label {
    font-family: var(--idk-font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--idk-ink-muted);
}
.idk-cta-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--idk-font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--idk-ink);
    transition: gap 0.3s ease, opacity 0.3s;
    pointer-events: all;
}
.idk-cta-link:hover { gap: 1rem; opacity: 0.7; }
.idk-cta-link svg { width: 28px; height: auto; flex-shrink: 0; }

/* Hero keyframes */
@keyframes idkFadeIn {
    to { opacity: 1; }
}

/* ========================
   WAVE DIVIDERS
   (Logic original to Idakera Studio)
======================== */
:root { --idk-wave-overlap: 140px; }
.idk-wave-divider {
    position: relative;
    height: 280px;
    width: 100%;
    margin-top: calc(-1 * var(--idk-wave-overlap));
    margin-bottom: -1px;
    overflow: hidden;
    z-index: 10;
    /* The children are large blurred boxes being transformed every frame. Paint
       containment keeps their repaints inside this box instead of inviting the
       compositor to re-examine the sections either side. Safe because overflow
       is already hidden, so nothing paints outside the border box anyway. */
    contain: paint;
}

.idk-wave-divider::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 140px;
    z-index: 1;
}
.idk-wave-dark {
    background: var(--idk-bg-dark);
    --idk-wave-direction: -1;
}
.idk-wave-dark::after {
    top: 0;
    bottom: auto;
    background: linear-gradient(to bottom, var(--idk-bg) 0%, var(--idk-bg) 10%, transparent 100%);
}
.idk-wave-light { background: var(--idk-bg-dark); }
.idk-wave-light::after {
    background: linear-gradient(to bottom, transparent 0%, var(--idk-bg-section) 90%, var(--idk-bg-section) 100%);
}

.idk-wave-layer {
    position: absolute;
    bottom: -20%;
    height: 80%;
    border-radius: 50% 50% 0 0;
    filter: blur(35px);
    opacity: 1;
    z-index: 2;
    /* mix-blend-mode: normal was a no-op that still forced this element into its
       own blending context, which can cost it compositor promotion. Removed. */
}
.idk-wave-dot {
    position: absolute;
    bottom: -10%;
    border-radius: 50%;
    filter: blur(14px);
    opacity: 0.7;
    z-index: 2;
}

/* Draw light-to-dark transitions from the top instead of flipping their
   whole compositing surface. A negative parent scale plus hidden backfaces
   on animated blur layers can clip the blur into rectangles in Firefox.
   Mirrored anchors and drift preserve the same soft contour and motion. */
.idk-wave-dark .idk-wave-layer {
    top: -20%;
    bottom: auto;
    border-radius: 0 0 50% 50%;
}
.idk-wave-dark .idk-wave-dot {
    top: -10%;
    bottom: auto;
}

/* The hero meets a dark section, so blend its artwork directly into black.
   Overlap the last 140px of the scene instead of inserting a cream band. */
#idk-hero + .idk-wave-divider {
    margin-top: calc(-1 * var(--idk-wave-overlap));
    background: transparent;
    --idk-wave-direction: 1;
}
#idk-hero + .idk-wave-divider::after {
    top: 0;
    bottom: auto;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(14,14,14,0.35) 20%, rgba(14,14,14,0.8) 38%, var(--idk-bg-dark) 50%, var(--idk-bg-dark));
}
#idk-hero + .idk-wave-divider .idk-wave-layer {
    top: auto;
    bottom: -20%;
    border-radius: 50% 50% 0 0;
    background: var(--idk-bg-dark);
}
#idk-hero + .idk-wave-divider .idk-wave-dot {
    top: auto;
    bottom: -10%;
    background: var(--idk-bg-dark);
}

/* ---- Frame budget -------------------------------------------------------
   Each divider animates eight blurred boxes forever, and the page carries
   three dividers: 24 elements, roughly 4.4 megapixels of blur — about five
   viewports — re-rasterised on every frame, whether on screen or not. With no
   layer promotion, a blurred box whose scaleY is changing is re-blurred at a
   new geometry each frame on the main thread, which is what reads as flicker
   rather than drift.

   idkInitWaveDividers() in idk-home.js toggles these two classes from an
   IntersectionObserver. Without JS neither class is ever set and the waves
   behave exactly as before, so this is an enhancement, not a dependency.

   will-change is scoped to `.idk-wave-live` deliberately: it is a hint with a
   real memory cost, and a permanent one on 24 elements is how you trade jank
   for a different kind of jank.                                            */
.idk-wave-live .idk-wave-layer { will-change: transform; }
.idk-wave-live .idk-wave-dot   { will-change: transform, opacity; }

.idk-wave-idle .idk-wave-layer,
.idk-wave-idle .idk-wave-dot,
.idk-wave-suspended .idk-wave-layer,
.idk-wave-suspended .idk-wave-dot { animation-play-state: paused; }

.idk-wl-1 {
    width: 45%; left: -5%;
    animation: idkWaveFloat 9s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite alternate;
}
.idk-wl-2 {
    width: 35%; left: 20%;
    animation: idkWaveFloat 13s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite alternate-reverse;
}
.idk-wl-3 {
    width: 45%; left: 40%;
    animation: idkWaveFloat 11s cubic-bezier(0.4, 0.0, 0.2, 1) infinite alternate;
}
.idk-wl-4 {
    width: 40%; left: 75%;
    animation: idkWaveFloat 14s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite alternate-reverse;
}

.idk-wd-1 {
    width: 12%; height: 50%; left: 8%;
    animation: idkDotDrift 7s ease-in-out infinite alternate;
}
.idk-wd-2 {
    width: 8%; height: 40%; left: 32%;
    animation: idkDotDrift 11s ease-in-out infinite alternate-reverse;
}
.idk-wd-3 {
    width: 15%; height: 60%; left: 58%;
    animation: idkDotDrift 9s ease-in-out infinite alternate;
}
.idk-wd-4 {
    width: 10%; height: 35%; left: 82%;
    animation: idkDotDrift 12s ease-in-out infinite alternate-reverse;
}

.idk-wave-dark .idk-wave-layer,
.idk-wave-dark .idk-wave-dot { background: var(--idk-bg); }

.idk-wave-light .idk-wave-layer,
.idk-wave-light .idk-wave-dot { background: var(--idk-bg-section); }

@keyframes idkWaveFloat {
    0%   { transform: translateY(calc(15px * var(--idk-wave-direction, 1))) scaleY(1.1); }
    50%  { transform: translateY(calc(-30px * var(--idk-wave-direction, 1))) scaleY(0.9); }
    100% { transform: translateY(calc(10px * var(--idk-wave-direction, 1))) scaleY(1.05); }
}
@keyframes idkDotDrift {
    0%   { transform: translateY(calc(20px * var(--idk-wave-direction, 1))) translateX(0) scale(0.8); opacity: 0; }
    30%  { opacity: 0.4; }
    60%  { transform: translateY(calc(-40px * var(--idk-wave-direction, 1))) translateX(10px) scale(1.1); opacity: 0.6; }
    100% { transform: translateY(calc(-80px * var(--idk-wave-direction, 1))) translateX(25px) scale(0.9); opacity: 0; }
}

/* ========================
   ABOUT SECTION
======================== */
.idk-section-about {
    position: relative;
    background: var(--idk-bg-dark);
    color: var(--idk-cream);
    overflow: hidden;
    /* Reserve the divider's fixed overlap even on short/tablet viewports,
       so its higher paint layer never covers the statistics or their labels. */
    padding: 10vh 5vw max(14vh, calc(var(--idk-wave-overlap) + 3rem));
}
.idk-about-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.idk-about-tag {
    font-family: var(--idk-font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 4rem;
}
.idk-about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6vw;
    align-items: center;
}
.idk-section-h2 {
    font-family: var(--idk-font-serif);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--idk-cream);
    margin-bottom: 2rem;
}
.idk-section-h2 em { font-style: italic; font-weight: 300; }

.idk-about-copy p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
    max-width: 480px;
    margin-bottom: 1.2rem;
}
.idk-text-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--idk-font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.3s;
}
.idk-text-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 1px;
    background: rgba(255,255,255,0.7);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.4s var(--idk-ease-expo);
}
.idk-text-link:hover { color: #fff; }
.idk-text-link:hover::after { transform: scaleX(1); }

.idk-about-media {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.idk-img-frame {
    position: relative;
    height: clamp(260px, 40vh, 480px);
    overflow: hidden;
    border-radius: 2px;
}
.idk-img-frame img {
    object-fit: cover;
    height: 100%; width: 100%;
    filter: brightness(0.85) sepia(0.1);
    transition: transform 0.8s var(--idk-ease-expo);
}
.idk-img-frame:hover img { transform: scale(1.04); }
.idk-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,14,14,0.6) 0%, transparent 50%);
}
.idk-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 3rem);
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.idk-stat-num {
    display: block;
    font-family: var(--idk-font-serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 300;
    color: var(--idk-cream);
    line-height: 1;
}
.idk-stat-tag {
    display: block;
    font-family: var(--idk-font-sans);
    font-size: 0.75rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin-top: 0.5rem;
    overflow-wrap: anywhere;
}
.idk-ghost-word {
    position: absolute;
    bottom: -4vh; left: 50%;
    transform: translateX(-50%);
    font-family: var(--idk-font-serif);
    font-size: clamp(8rem, 22vw, 22rem);
    font-weight: 700;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.04);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* ========================
   FEATURE SECTION
======================== */
.idk-section-feature {
    background: var(--idk-bg-section);
    padding: 10vh 5vw;
}
.idk-feature-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    align-items: center;
}
.idk-img-stack {
    position: relative;
    height: clamp(340px, 55vh, 600px);
}
.idk-img-bg {
    position: absolute;
    top: 0; left: 0;
    width: 80%; height: 90%;
    object-fit: cover;
    border-radius: 2px;
    filter: brightness(0.8);
    transform: rotate(-3deg) translate(-2%, 5%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.idk-img-fg {
    position: absolute;
    bottom: 0; right: 0;
    width: 75%; height: 85%;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.15);
    transform: rotate(2deg);
}
.idk-eyebrow {
    font-family: var(--idk-font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--idk-ink-muted);
    margin-bottom: 1.5rem;
}
.idk-feature-h2 {
    font-family: var(--idk-font-serif);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--idk-ink);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.idk-feature-h2 em { font-style: italic; font-weight: 300; }
.idk-feature-body {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--idk-ink-muted);
    max-width: 400px;
    margin-bottom: 2.5rem;
}

/* Rising-fill primary button */
.idk-btn-main {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 0.9rem 2.2rem;
    background: var(--idk-ink);
    color: var(--idk-cream);
    font-family: var(--idk-font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 400;
    line-height: 1.6;
    border-radius: 2px;
    transition: color 0.4s var(--idk-ease-expo),
                transform 0.4s var(--idk-ease-expo);
    border: 1px solid var(--idk-ink);
    z-index: 0;
}
.idk-btn-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--idk-cream);
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 0.45s var(--idk-ease-expo);
    z-index: -1;
}
.idk-btn-main:hover::before { transform: scaleY(1); }
.idk-btn-main:hover { color: var(--idk-ink); transform: translateY(-2px); }

/* ========================
   MARQUEE STRIP
======================== */
.idk-marquee {
    overflow: hidden;
    background: var(--idk-ink);
    padding: 1.2rem 0;
    white-space: nowrap;
}
.idk-marquee-belt {
    display: inline-flex;
    animation: idkMarqueeRun 30s linear infinite;
}
.idk-marquee-belt span {
    font-family: var(--idk-font-serif);
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-style: italic;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.03em;
    flex-shrink: 0;
}
@keyframes idkMarqueeRun {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ========================
   CONTACT SECTION
======================== */
.idk-section-contact {
    position: relative;
    background: var(--idk-bg);
    padding: 12vh 5vw 22vh;
    overflow: hidden;
}
.idk-contact-ghost {
    position: absolute;
    bottom: -6vh; left: 50%;
    transform: translateX(-50%);
    font-family: var(--idk-font-serif);
    font-size: clamp(6rem, 20vw, 20rem);
    font-weight: 700;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1px rgba(26,26,26,0.05);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}
.idk-contact-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}
.idk-contact-label {
    font-family: var(--idk-font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: var(--idk-ink-muted);
    margin-bottom: 1.5rem;
}
.idk-contact-h2 {
    font-family: var(--idk-font-serif);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--idk-ink);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.idk-contact-sub {
    font-size: 0.9rem;
    color: var(--idk-ink-muted);
    margin-bottom: 4rem;
}
.idk-contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid rgba(26,26,26,0.12);
}
.idk-form-field {
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(26,26,26,0.12);
    border-right: 1px solid rgba(26,26,26,0.08);
    padding-right: 2rem;
}
.idk-form-field:nth-child(3) {
    padding-left: 2rem;
    padding-right: 0;
    border-right: none;
}
.idk-field-full {
    grid-column: 1 / -1;
    border-right: none;
    padding-right: 0;
    padding-left: 0;
}
.idk-form-field label {
    display: block;
    font-family: var(--idk-font-sans);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--idk-ink-muted);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.idk-form-field input,
.idk-form-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--idk-font-serif);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--idk-ink);
    caret-color: var(--idk-ink);
    line-height: 1.4;
}
.idk-form-field input::placeholder,
.idk-form-field textarea::placeholder { color: rgba(26,26,26,0.25); }
.idk-form-field textarea { resize: none; height: 100px; }

.idk-submit-wrap {
    grid-column: 1 / -1;
    padding: 2rem 0 0;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 20;
}

/* Rising-fill send button */
.idk-btn-send {
    background: none;
    border: 1px solid rgba(26,26,26,0.2);
    font-family: var(--idk-font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--idk-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    transition: color 0.4s var(--idk-ease-expo),
                gap 0.4s var(--idk-ease-expo);
    border-radius: 2px;
    z-index: 0;
}
.idk-btn-send::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--idk-ink);
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 0.45s var(--idk-ease-expo);
    z-index: -1;
}
.idk-btn-send:hover::before { transform: scaleY(1); }
.idk-btn-send:hover { color: var(--idk-cream); gap: 1rem; }
.idk-btn-send:disabled { cursor: wait; opacity: 0.6; }

/* Contact form result messages */
.idk-contact-form[hidden],
.idk-form-error[hidden],
.idk-form-success[hidden] { display: none; }
.idk-form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.idk-form-error {
    grid-column: 1 / -1;
    margin-top: 1.2rem;
    font-family: var(--idk-font-sans);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #8a2f1f;
    text-align: right;
}
.idk-form-error a { color: inherit; }
.idk-form-success {
    border-top: 1px solid rgba(26,26,26,0.12);
    border-bottom: 1px solid rgba(26,26,26,0.12);
    padding: 3rem 0;
    outline: none;
    animation: idk-form-success-in 0.8s var(--idk-ease-expo) both;
}
.idk-form-success-title {
    font-family: var(--idk-font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 300;
    color: var(--idk-ink);
    margin-bottom: 0.8rem;
}
.idk-form-success-text {
    font-family: var(--idk-font-sans);
    font-size: 0.9rem;
    color: var(--idk-ink-muted);
}
@keyframes idk-form-success-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .idk-form-success { animation: none; }
}

/* ========================
   FOOTER
======================== */
#idk-footer {
    background: var(--idk-bg-dark);
    padding: 4rem 5vw;
}
.idk-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.idk-footer-brand {
    font-family: var(--idk-font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    display: flex;
    gap: 0.3em;
    align-items: baseline;
}
.idk-footer-sub {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
}
.idk-footer-nav { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.idk-footer-nav a {
    font-family: var(--idk-font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35);
    transition: color 0.3s;
}
.idk-footer-nav a:hover { color: rgba(255,255,255,0.8); }
.idk-footer-copy {
    font-family: var(--idk-font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.2);
}

/* ========================
   SCROLL-TO-TOP BUTTON
======================== */
.idk-scroll-top {
    position: fixed;
    bottom: 2.5rem; right: 2.5rem;
    width: 48px; height: 48px;
    border: 1px solid var(--idk-ink);
    border-radius: 50%;
    background: rgba(240,235,227,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s var(--idk-ease-expo),
                transform 0.5s var(--idk-ease-expo),
                visibility 0.5s,
                background 0.3s ease,
                border-color 0.3s ease;
    z-index: 999;
}
.idk-scroll-top.idk-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.idk-scroll-top:hover { background: var(--idk-ink); border-color: var(--idk-ink); }
.idk-scroll-top svg {
    width: 18px; height: 18px;
    stroke: var(--idk-ink);
    transition: stroke 0.3s ease, transform 0.3s var(--idk-ease-snappy);
}
.idk-scroll-top:hover svg { stroke: var(--idk-cream); transform: translateY(-2px); }
.idk-scroll-top.idk-btn-inv {
    border-color: var(--idk-cream);
    background: rgba(14,14,14,0.4);
}
.idk-scroll-top.idk-btn-inv svg { stroke: var(--idk-cream); }
.idk-scroll-top.idk-btn-inv:hover { background: var(--idk-cream); border-color: var(--idk-cream); }
.idk-scroll-top.idk-btn-inv:hover svg { stroke: var(--idk-bg-dark); }

/* ========================
   CURSOR TRAIL CANVAS
======================== */
#idk-trail-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 900px) {
    .idk-about-grid,
    .idk-feature-layout { grid-template-columns: 1fr; }
    .idk-hero-coords { display: none; }
    .idk-card-3, .idk-card-5 { display: none; }
    .idk-section-h2 { font-size: clamp(2rem, 6vw, 3rem); }
    .idk-contact-form { grid-template-columns: 1fr; }
    .idk-form-field { border-right: none; padding-right: 0; }
    .idk-form-field:nth-child(3) { padding-left: 0; }

}

/* ---- FULL-SCREEN MENU ON PHONES ----
   The two nav columns sat side-by-side and the huge desktop link sizes
   pushed buttons past the screen edge with no way to scroll to them.
   Stack the columns, size type for a phone, and make the overlay itself
   scrollable as a safety net for short landscape viewports. */
@media (max-width: 700px) {
    .idk-nav-overlay {
        justify-content: flex-start;
        padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 7vw
                 calc(2rem + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .idk-nav-body {
        flex-direction: column;
        gap: 2.6rem;
    }

    .idk-nav-col-right {
        align-self: flex-start;
        padding-bottom: 0;
    }

    .idk-nav-category { margin-bottom: 1.2rem; }

    .idk-nav-link {
        font-size: clamp(1.9rem, 8.5vw, 2.6rem);
        padding: 0.18em 0; /* comfortable tap targets */
    }

    .idk-nav-list-sm .idk-nav-link {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
    }

    .idk-nav-floor {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        flex-direction: column;
        gap: 0.4rem;
    }
}

@media (max-width: 600px) {
    #idk-header {
        padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem 1rem;
    }
    /* The centered "Experience" link collides with logo + controls on
       narrow screens; the menu overlay carries the same destination. */
    .idk-nav-center { display: none; }
    .idk-hero-footer { padding: 0 1.5rem calc(env(safe-area-inset-bottom, 0px)); }
    .idk-card-1, .idk-card-4 { width: 40vw; height: 50vw; }
    .idk-card-2 { width: 45vw; height: 55vw; }
    .idk-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- TOUCH DEVICES: static hero layers ----
   JS skips per-frame parallax on touch; also drop the 20+ composited
   will-change promotions that exhausted iOS GPU memory. */
@media (hover: none), (pointer: coarse) {
    .idk-pw-layer { will-change: auto; }
}

/* NOTE: the responsive contain→cover override lives AFTER the base
   `.idk-pw-layer > img` rule (search "RESPONSIVE FIT"). It must come later
   in the cascade or the base `object-fit:contain` (equal specificity) wins
   and the override silently does nothing — which is exactly what happened
   when this block lived here, above the base rule. */

/* ================================================================
   IDK PARALLAX WORLD — Cinematic Hero Environment
   Depth-parallax diorama. All design original to Idakera Studio.
   ================================================================ */

/* ---- Hero: match page bg-dark so any exposed layer edge is invisible ---- */
#idk-hero {
    background: #0e0e0e;
    height: 100vh;
    height: 100svh; /* safe viewport height — avoids mobile browser chrome */
}

/* ---- Portal canvas clip — calibrated to ring inner hole.
   Ring SVG (800×447): outer ≈214px from centre, inner ≈160px.
   Displayed at height:44vmin → inner = 44vmin×(160/447) ≈ 15.73vmin.
   Clip slightly larger (16vmin) so canvas fills up to ring edge.   ---- */
#idk-portal-root canvas,
#idk-portal-canvas {
    clip-path: circle(13.5vmin at 50% 50%);
    opacity: 0.90;
    -webkit-mask-image: radial-gradient(
        circle at 50% 50%,
        black 0,
        black 8.8vmin,
        rgba(0,0,0,0.72) 11.3vmin,
        transparent 13.8vmin
    );
    mask-image: radial-gradient(
        circle at 50% 50%,
        black 0,
        black 8.8vmin,
        rgba(0,0,0,0.72) 11.3vmin,
        transparent 13.8vmin
    );
}
/* Portal button scaled to fit inside the 16vmin clip window */
.idk-portal-btn {
    width:  160px;
    height: 160px;
    line-height: 160px;
}

/* ---- Header: cream controls over the shadow in both scroll states ---- */
#idk-header .idk-logo-main            { color: rgba(240,235,227,0.92); }
#idk-header .idk-logo-sub             { color: rgba(240,235,227,0.5);  }
#idk-header .idk-nav-center-link      { color: rgba(240,235,227,0.55); }
#idk-header .idk-nav-center-link:hover{ color: rgba(240,235,227,0.92); }
#idk-header .idk-menu-label           { color: rgba(240,235,227,0.92); }
#idk-header .idk-menu-trigger         { border-color: rgba(240,235,227,0.25); }
#idk-header .idk-menu-trigger:hover   { border-color: rgba(240,235,227,0.65); }
#idk-header .idk-hamburger span       { background: rgba(240,235,227,0.9); }
#idk-header .idk-btn-lang             { color: rgba(240,235,227,0.5); }
#idk-header .idk-btn-lang.idk-active  { color: rgba(240,235,227,0.9); }
#idk-header .idk-btn-lang::after      { background: rgba(240,235,227,0.85); }
#idk-header .idk-lang-sep             { color: rgba(240,235,227,0.3); }
/* hover fill on dark: invert to dark ink fill */
#idk-header .idk-menu-trigger::before { background: rgba(240,235,227,0.9); }
#idk-header .idk-menu-trigger:hover .idk-menu-label { color: var(--idk-ink); }
#idk-header .idk-menu-trigger:hover .idk-hamburger span { background: var(--idk-ink); }

/* ---- Portal button: cream text on dark night scene ---- */
.idk-portal-btn span              { color: rgba(240,235,227,0.62); }
.idk-portal-btn span::before,
.idk-portal-btn span::after       { background-color: rgba(240,235,227,0.62); }
.idk-portal-btn:hover span        { color: rgba(240,235,227,1); }
.idk-portal-btn:hover span::before,
.idk-portal-btn:hover span::after { background-color: rgba(240,235,227,1); }

/* ---- Hero UI text: cream ---- */
.idk-hero-section .idk-studio-label  { color: rgba(240,235,227,0.45); }
.idk-hero-section .idk-cta-link      { color: rgba(240,235,227,0.88); }
.idk-hero-section .idk-hero-coords p { color: rgba(240,235,227,0.42); }

/* ================================================================
   PARALLAX HERO WORLD  —  rebuilt 2026-06-15
   Every layer is a full-frame SVG extracted from hero_composition.svg
   (viewBox 0 0 1180.02 673.92). Each layer already contains its art at
   the correct absolute position, so layers simply stack at full frame.
   object-fit:contain shows the WHOLE composition (nothing cropped) so
   every asset stays visible and exactly where the reference places it.
   Depth = paint order (z-index) + JS parallax (wrapper) + idle motion.
   Source of truth: img/hero/svg/SVG/hero_composition.svg
   ================================================================ */
#idk-parallax-world {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #0e0e0e;      /* matches page bg-dark — exposed layer edges blend in */
}
/* ---- Gentle radial focus vignette — above all layers, below portal/UI ---- */
#idk-parallax-world::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 400;
    pointer-events: none;
    background: radial-gradient(
        ellipse 64% 74% at 50% 52%,
        transparent 32%,
        rgba(14,14,14,0.10) 64%,
        rgba(14,14,14,0.40) 100%
    );
}

/* ---- Uniform full-frame layer ---- */
.idk-pw-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
    /* overflow: visible intentionally — clipping is handled by #idk-parallax-world */
}
.idk-pw-layer > img {
    /* BLEED IS BAKED INTO THE BOX, NOT A TRANSFORM.
       Earlier this used `transform: scale(1.20)` for the overscan, but every
       idle animation (boy, girl, fox, owl, butterflies, fog, and fireflies) sets its
       own `transform` via @keyframes, which REPLACES the scale — so animated
       layers lost all bleed and their edges slid into view on parallax.
       Sizing the box to 120% with a −10% offset gives the same ~10%-per-side
       overscan, immune to the animation transforms (which only nudge ≤1.2 %).
       Geometrically equivalent to the old scale(1.20) for static layers. */
    position: absolute;
    left: -10%;
    width:  120%;
    /* WIDE WINDOWS: `contain` fits the art to the box height, so above ~1.9:1
       (e.g. a 1920 x 940 browser viewport) the art overhung the sides by only
       ~28 px and the front layers' parallax (up to ~54 px) slid their edges
       into view. The box grows taller just enough that the art always spans
       at least 110% of the width (5% per side); below ~1.9:1 this is 120% as
       before, so the composition is unchanged there. idk-home.js also clamps
       each layer's travel to the real overhang. */
    --idk-pw-box-h: max(120%, calc(110vw / 1.751));
    top: calc((100% - var(--idk-pw-box-h)) / 2);
    height: var(--idk-pw-box-h);
    /* FIT = CONTAIN → shows the WHOLE diorama exactly like the reference render.
       The art is a 1180×674 (≈7:4, 1.75:1) landscape frame. On a viewport that
       is WIDER than 7:4 (every normal desktop window), `contain` fits the art to
       the box HEIGHT, so the 120% box makes the art overhang the viewport on all
       four sides — full composition visible, no letterbox bands, and ≥~8%/side
       bleed that the parallax travel (≤ ~89px H / ~67px V) never reaches. This is
       the reference look. (Switching to `cover` over-zoomed and cropped the
       diorama — that was the broken viewport.) For viewports NARROWER than 7:4
       (portrait tablet/phone) `contain` would instead leave vertical letterbox
       bands the parallax could expose, so the responsive override below flips
       those to `cover`. All layers share the identical fit, so they stay aligned. */
    object-fit: contain;
    object-position: center;
    display: block;
    max-width: none;
    transform-origin: center center;
}
/* RESPONSIVE FIT — must stay AFTER the base rule so it wins the cascade.
   Only viewports narrower than the art's 7:4 aspect need `cover`; wider ones
   keep `contain` (the reference composition). */
@media (max-aspect-ratio: 7/4) {
    .idk-pw-layer > img {
        object-fit: cover;
        object-position: 50% 42%;
    }
}

/* ---- Depth stack (back -> front), tuned to the reference render ----
   Environment framing (plants/path/near-trees) sits behind the cast.
   Creatures (characters, owl, every butterfly) are lifted ABOVE the
   foliage so none get swallowed — the master SVG buried owl + bf6/bf7
   behind the path/trees, which is why they looked "missing". ---- */
#idk-pw-01         { z-index:  10; }  /* sky                       */
#idk-pw-02         { z-index:  20; }  /* clouds                    */
#idk-pw-03         { z-index:  30; }  /* mountains                 */
#idk-pw-04         { z-index:  40; }  /* rocky hills               */
#idk-pw-06         { z-index:  50; }  /* village                   */
#idk-pw-05         { z-index:  60; }  /* fog / mist                */
#idk-pw-11         { z-index:  70; }  /* plant bank (behind cast)  */
#idk-pw-07         { z-index:  80; }  /* path                      */
#idk-pw-10         { z-index:  90; }  /* near trees (frame)        */
#idk-pw-09         { z-index: 100; }  /* girl                      */
#idk-pw-08         { z-index: 110; }  /* boy                       */
#idk-pw-owl        { z-index: 100; }  /* owl — lifted above canopy */
#idk-pw-butterfly3 { z-index: 130; }  /* butterflies — all above   */
#idk-pw-butterfly6 { z-index: 132; }  /* the foliage so every one  */
#idk-pw-butterfly7 { z-index: 134; }  /* is visible                */
#idk-pw-butterfly5 { z-index: 136; }
#idk-pw-butterfly2 { z-index: 138; }
#idk-pw-butterfly1 { z-index: 140; }
#idk-pw-butterfly4 { z-index: 142; }
#idk-pw-13         { z-index: 150; }  /* blurred leaves (front frame) */
#idk-pw-fox        { z-index: 160; }  /* fox (front, bottom-right) */
#idk-pw-14         { z-index: 140; }  /* fireflies / golden dust   */

/* ================================================================
   COMPANION POSITION KNOBS  (optional per-companion fine-tuning)
   Every companion is already its own full-frame layer with its art
   at the reference position. To nudge or resize ONE companion without
   editing its SVG, change its translate()/scale() below — the parallax
   engine reads this var and composes it with the pointer motion.
     • translate(x%, y%) : x/y are % of the viewport  (+x right, +y down)
     • scale(n)          : resize (scales around frame centre)
     • (0%,0%) scale(1)  : exact master position (default, no change)
   Edit, save, then hard-refresh (Ctrl+Shift+R) — read once at load.
   ================================================================ */
#idk-pw-fox        { --idk-pw-base-transform: translate(0%, 0%) scale(1); }
#idk-pw-owl        { --idk-pw-base-transform: translate(0%, 0%) scale(1); }
#idk-pw-butterfly1 { --idk-pw-base-transform: translate(0%, 0%) scale(1); }
#idk-pw-butterfly2 { --idk-pw-base-transform: translate(0%, 0%) scale(1); }
#idk-pw-butterfly3 { --idk-pw-base-transform: translate(0%, 0%) scale(1); }
#idk-pw-butterfly4 { --idk-pw-base-transform: translate(0%, 0%) scale(1); }
#idk-pw-butterfly5 { --idk-pw-base-transform: translate(0%, 0%) scale(1); }
#idk-pw-butterfly6 { --idk-pw-base-transform: translate(0%, 0%) scale(1); }
#idk-pw-butterfly7 { --idk-pw-base-transform: translate(0%, 0%) scale(1); }

/* ================================================================
   IDLE MOTION  (on inner <img>; JS parallax moves the wrapper div)
   Values are % of the layer box so they scale with the viewport.
   ================================================================ */
#idk-pw-05 > img { animation: idkFogDrift 16s ease-in-out infinite alternate; }
@keyframes idkFogDrift {
    0%   { opacity: 0.82; transform: translateX(-1%) scale(1.015); }
    100% { opacity: 1.00; transform: translateX( 1%) scale(1.000); }
}

#idk-pw-08 > img {                      /* Forest Boy: breathe, pivot at feet */
    transform-origin: 36% 96%;
    animation: idkBreathing 5s ease-in-out infinite;
}
@keyframes idkBreathing {
    0%, 100% { transform: scaleY(1.000); }
    50%      { transform: scaleY(1.010); }
}

#idk-pw-09 > img {                      /* Girl Spirit: gentle float */
    transform-origin: 54% 90%;
    animation: idkSpiritFloat 6s ease-in-out infinite;
}
@keyframes idkSpiritFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-0.7%); }
}

#idk-pw-fox > img { animation: idkFoxIdle 5.5s ease-in-out infinite; }
@keyframes idkFoxIdle {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0.2%, -0.5%, 0); }
}

#idk-pw-owl > img { animation: idkOwlBob 4s ease-in-out infinite; }
@keyframes idkOwlBob {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -0.5%, 0); }
}

#idk-pw-butterfly1 > img, #idk-pw-butterfly2 > img, #idk-pw-butterfly3 > img,
#idk-pw-butterfly4 > img, #idk-pw-butterfly5 > img, #idk-pw-butterfly6 > img,
#idk-pw-butterfly7 > img { animation: idkButterflyFlutter 2.4s ease-in-out infinite; }
@keyframes idkButterflyFlutter {
    0%, 100% { transform: translate3d(0, 0, 0); }
    30%      { transform: translate3d(-0.5%, -1.1%, 0); }
    70%      { transform: translate3d( 0.4%, -0.5%, 0); }
}
#idk-pw-butterfly2 > img { animation-delay: 0.4s; animation-duration: 1.9s; }
#idk-pw-butterfly3 > img { animation-delay: 0.7s; animation-duration: 2.6s; }
#idk-pw-butterfly4 > img { animation-delay: 1.0s; animation-duration: 2.0s; }
#idk-pw-butterfly5 > img { animation-delay: 0.3s; animation-duration: 2.2s; }
#idk-pw-butterfly6 > img { animation-delay: 0.9s; animation-duration: 2.5s; }
#idk-pw-butterfly7 > img { animation-delay: 1.5s; animation-duration: 2.1s; }

#idk-pw-14 > img { animation: idkFireflyPulse 8s ease-in-out infinite; }
@keyframes idkFireflyPulse {
    0%, 100% { opacity: 0.90; transform: translateY( 0)    scale(1.000); }
    33%      { opacity: 1.00; transform: translateY(-1.2%) scale(1.015); }
    66%      { opacity: 0.74; transform: translateY( 0.6%) scale(0.990); }
}

/* ================================================================
   PREFERS-REDUCED-MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    #idk-pw-05 > img,
    #idk-pw-08 > img,
    #idk-pw-09 > img,
    #idk-pw-14 > img,
    #idk-pw-fox > img,
    #idk-pw-owl > img,
    [id^="idk-pw-butterfly"] > img { animation: none !important; }

    /* The wave dividers were missing from this block. They are the heaviest
       continuous motion on the page, so a reader who has asked the OS for less
       motion was still getting all of it. Held at the resting frame. */
    .idk-wave-layer,
    .idk-wave-dot { animation: none !important; }
}


/* ================================================================
   MOBILE — compact portal button
   ================================================================ */
@media (max-width: 600px) {
    .idk-portal-btn { width: 92px; height: 92px; line-height: 92px; }
    .idk-portal-btn span { font-size: 0.8rem; letter-spacing: 0.1em; }
    .idk-portal-btn span::before,
    .idk-portal-btn span::after { width: 10px; }
}

/* ================================================================
   HERO SIZING — full viewport
   ================================================================ */
#idk-hero,
.idk-hero-section {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
}

/* Phones animate cropped raster sprites on one canvas. The poster covers
   loading, reduced motion and no-JS; large mouse screens keep the SVG scene. */
#idk-parallax-world .idk-pw-layer { display: none; }
.idk-home-layers #idk-parallax-world .idk-pw-layer { display: block; }
/* Layers decode one by one; reveal them together (see index.html). */
.idk-home-layers #idk-parallax-world:not(.idk-layers-ready) .idk-pw-layer { visibility: hidden; }
.idk-home-layers .idk-hero-mobile { display: none; }
.idk-hero-canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.idk-home-canvas .idk-hero-canvas { display: block; }
.idk-home-canvas .idk-hero-mobile { display: none; }
.idk-hero-mobile {
    position: absolute;
    left: -10%; top: -10%; width: 120%; height: 120%;
    max-width: none; object-fit: contain; object-position: center;
}
@media (max-aspect-ratio: 7/4) {
    .idk-hero-mobile { object-fit: cover; object-position: 50% 42%; }
}
@media (max-width: 900px), (hover: none), (pointer: coarse) {
    /* 100dvh used to resize and rerasterize the whole scene whenever Safari's
       toolbar moved during a swipe. Keep the initial small viewport instead. */
    #idk-hero, .idk-hero-section {
        height: calc(100 * var(--idk-vh));
        min-height: calc(100 * var(--idk-vh));
    }
    .idk-hero-section { touch-action: pan-y pinch-zoom; }
    .idk-pw-layer, .idk-pw-layer > img { animation: none !important; will-change: auto; }
    html { background: #0e0e0e; scroll-behavior: auto; overscroll-behavior-y: none; }
    /* Header and divider shadows inherit the desktop layers, blur, masks and
       animation unchanged. Keep the bounded hero canvas to limit memory. */
    .idk-scroll-top {
        backdrop-filter: none; -webkit-backdrop-filter: none;
        background: #e8e2d8;
    }
    .idk-scroll-top.idk-btn-inv { background: #0e0e0e; }
    .idk-img-frame img, .idk-img-bg, .idk-img-fg { filter: none; }
    [data-idk-reveal] { will-change: auto; }
    .idk-split-link .idk-char { will-change: auto; }
}
.idk-marquee-idle .idk-marquee-belt, .idk-wave-suspended .idk-marquee-belt { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .idk-marquee-belt { animation: none !important; }
    [data-idk-reveal] { opacity: 1; transform: none; }
}
#idk-parallax-world {
    height: 100%;
    min-height: inherit;
}
/* [VORTEX — RESERVED FOR FUTURE SECTION] restore when vortex is transplanted
#idk-portal-root,
#idk-portal-vortex {
    height: 100%;
    min-height: inherit;
}
*/
