@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@200;400;600;700&family=Inter:wght@400&display=swap');

:root {
    --body-bg: #ECECEC;
    --block-bg: #FFFEF6;
    --grey: #C0C0C0;
    --black: #1E1E1E;
    --yellow: #FEA000;
    --red: #FC4C00;
    --purple: #69349A;
    --blue: #0150B5;
    --green: #095C38;
    --radius: 20px;
    --gap: 80px;
    --block-padding: 3.125rem; /* 50px */
    --shell-x: 79px;
    --content-max-width: 80rem;
    --content-shell-width: min(var(--content-max-width), calc(100vw - (var(--shell-x) * 2)));
    --header-main-width: calc(var(--content-shell-width) - var(--frame-cell-size) - 1px);
    --desktop-stage-aspect: 1.6; /* 16:10, close to 13-inch MacBook feel */
    --desktop-stage-vpad: 5rem;  /* breathing room for top/bottom chrome */
    --frame-cell-size: 72px;
    --frame-cell-gap: 1px;
    --strategy-header-gap: 16px;
    --strategy-sticky-top: 73px;
    --strategy-header-sticky-height: 260px;
    --strategy-card-clearance: 8px;
    --strategy-card-top: calc(var(--strategy-header-sticky-height));
    --strategy-scroll-depth: 1200px;
    --strategy-scroll-pause: 180px;
    --line-reveal-image: url(../assets/Hero-bg.png);
    --line-reveal-overlay: rgba(255, 254, 246, 0.58);
    --tools-sequence-depth: 1040;
    --tools-pin-depth: 520;
    --works-step-lock-ms: 900;
    --tools-overlay-header-height: clamp(190px, 30vh, 320px);
    --works-content-height: calc(100% - var(--frame-cell-size) - clamp(240px, 34vh, 360px));
    --fs-hero-title: 1.88rem;
    --fs-body-lg: 1rem;
    --fs-section-title: 2.5rem;
    --fs-section-body: 1.25rem;
    --fs-tools-title: 2.5rem;
    --fs-tools-subtitle: 1.375rem;
    --fs-card-title: 1.375rem;
    --hero-logo-size: 30.25rem;   /* 484px */
    --hero-circle-size: 15.125rem;/* 242px */
}

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

body {
    font-family: 'Geist Mono', monospace;
    background: var(--body-bg);
    color: var(--black);
    min-height: 100vh;
}

/* ============== LAYOUT WRAPPER ============== */
.hero-wrapper{
    position: relative;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
    padding: 48px 0 0;
    width: var(--content-shell-width);
    max-width: var(--content-shell-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    background-image: url(../assets/Hero-bg.png);
    background-size: cover; 
    background-attachment: fixed;
}

#heroBgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: block;
    pointer-events: none;
}
.site-wrapper {
    position: relative;
    z-index: 1;
    padding: 1px 0 0;
    max-width: 100vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.floating-site-header-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 160;
    background: linear-gradient(120deg, #d9571f, #3a79bc, #26888f, #4e3767, #d9571f);
    background-size: 300% 300%;
    animation: floatingHeaderGradient 18s ease-in-out infinite;
    height: calc(var(--frame-cell-size) + 1px);
    padding-bottom: 1px;
    transform: translateY(calc(-1 * var(--frame-cell-size) - 8px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.36s ease, opacity 0.28s ease;
}

.floating-site-header-shell.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.floating-site-header {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        var(--frame-cell-size)
        minmax(0, var(--header-main-width))
        minmax(0, 1fr);
    height: var(--frame-cell-size);
    gap: 1px;
    margin: 0;
}

.floating-cell {
    background: var(--block-bg);
}

@keyframes floatingHeaderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating-header-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.floating-header-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.floating-header-logo-mask {
    display: none;
    width: 120px;
    height: 25px;
    background: linear-gradient(120deg, #d9571f, #3a79bc, #26888f, #4e3767, #d9571f);
    background-size: 300% 300%;
    animation: floatingHeaderGradient 18s ease-in-out infinite;
    -webkit-mask-image: url("../assets/organi-logo.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("../assets/organi-logo.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.floating-orb-cell {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--frame-cell-size);
    height: 100%;
    flex: 0 0 var(--frame-cell-size);
    border: 0;
    padding: 0;
    cursor: pointer;
}

.floating-header-orb-dot {
    width: clamp(10px, 50%, 40px);
    height: clamp(10px, 50%, 40px);
    border-radius: 50%;
    background: rgb(255, 255, 255);
    display: block;
}

.floating-nav {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 20px;
    height: 100%;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    font-size: 12px;
    line-height: 1;
}

.lang-item {
    color: var(--black);
    text-decoration: none;
    opacity: 0.75;
    font-weight: 400;
}

.lang-item.is-active {
    opacity: 1;
    font-weight: 700;
}

.lang-item:not(.is-active):hover {
    opacity: 1;
}

.lang-sep {
    opacity: 0.5;
}

.floating-nav-item {
    border: 0;
    background: transparent;
    font-family: 'Geist Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    color: var(--black);
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.floating-nav-item.is-active {
    font-weight: 700;
}

.floating-nav-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: var(--black);
    border-radius: 999px;
    width: 0;
    left: 0;
    transform: translateX(0);
}

.section-frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--content-shell-width)) minmax(0, 1fr);
    grid-template-rows: var(--frame-cell-size) minmax(0, 1fr) var(--frame-cell-size);
    gap: var(--frame-cell-gap);
}

.strategy-frame {
    background-image: linear-gradient(var(--line-reveal-overlay), var(--line-reveal-overlay)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.strategy-frame .frame-cell.top-left,
.strategy-frame .frame-cell.top,
.strategy-frame .frame-cell.top-right {
    position: relative;
    z-index: 45;
}

.strategy-frame .frame-cell.bottom-left,
.strategy-frame .frame-cell.bottom,
.strategy-frame .frame-cell.bottom-right {
    position: relative;
}

.strategy-frame .frame-cell.top-left::after,
.strategy-frame .frame-cell.top-right::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    pointer-events: none;
    z-index: 46;
    background-image: linear-gradient(var(--line-reveal-overlay), var(--line-reveal-overlay)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.strategy-frame .frame-cell.bottom-left::before,
.strategy-frame .frame-cell.bottom::before,
.strategy-frame .frame-cell.bottom-right::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    pointer-events: none;
    z-index: 46;
    background-image: linear-gradient(var(--line-reveal-overlay), var(--line-reveal-overlay)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.tools-frame {
    background-image: linear-gradient(var(--line-reveal-overlay), var(--line-reveal-overlay)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: calc(-1 * var(--gap));
}

.tools-frame .section-frame-main {
    display: flex;
    min-height: 0;
    height: calc(100vh - (var(--frame-cell-size) * 2) - 1px);
}

.section-frame-main {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

.frame-cell {
    background: var(--block-bg);
}

.frame-cell.top-left,
.frame-cell.top,
.frame-cell.top-right,
.frame-cell.bottom-left,
.frame-cell.bottom,
.frame-cell.bottom-right {
    position: relative;
    overflow: hidden;
}

.frame-cell.top-left::after,
.frame-cell.top::after,
.frame-cell.top-right::after,
.frame-cell.bottom-left::after,
.frame-cell.bottom::after,
.frame-cell.bottom-right::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(30, 30, 30, 0.5) 1px,
        rgba(30, 30, 30, 0.5) 2px,
        rgb(255, 249, 234) 2px,
        rgba(255, 255, 255, 1) 9px
    );
    opacity: 0.2;
}

.frame-cell.top-left { grid-column: 1; grid-row: 1; }
.frame-cell.top { grid-column: 2; grid-row: 1; }
.frame-cell.top-right { grid-column: 3; grid-row: 1; }
.frame-cell.right { grid-column: 3; grid-row: 2; }
.frame-cell.bottom-right { grid-column: 3; grid-row: 3; }
.frame-cell.bottom { grid-column: 2; grid-row: 3; }
.frame-cell.bottom-left { grid-column: 1; grid-row: 3; }
.frame-cell.left { grid-column: 1; grid-row: 2; }

/* ============== HERO ============== */
.hero {
    position: relative;
    z-index: 1;
    border: var(--body-bg) 0.5px solid;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;   
    align-items: stretch;
    border-bottom: 0;
}

.hero-top {
    display: flex;
    align-items: stretch;
    flex: 1;
}

.hero-heading {
    flex: 1;
    min-width: 300px;
    min-height: 50vh;
    border-right: var(--body-bg) 0.5px solid;
    padding: 36px 36px;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

.hero-heading h1 {
    color: var(--block-bg);
    font-size: var(--fs-hero-title);
    font-weight: 700;
    line-height: 1.2;
    align-self: center;
}

.hero-cycling-text {
    display: inline;
    position: relative;
    white-space: nowrap;
}

.hero-cycling-text::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--block-bg);
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: blinkCursor 0.7s steps(1) infinite;
}

@keyframes blinkCursor {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-animated-logo {
    display: flex;
    visibility: visible;
    width: var(--hero-logo-size);
    height: auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-animated-logo .circle {
    width: var(--hero-circle-size);
    height: var(--hero-circle-size);
    background: var(--block-bg);
    border-radius: 50%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.hero-bottom {
    display: flex;
    align-items: center;
    justify-content: stretch;
    border-top: 0.5px solid var(--block-bg);
    flex-wrap: wrap;
}

.hero-logo-frame {
    flex: 1;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: calc(var(--block-padding) + 0.75rem) var(--block-padding);
}

.hero-text {
    flex: 1;
    min-width: 280px;
    flex-grow: 2;
    padding: 64px 48px;
    border-left: var(--block-bg) 0.5px solid;
}

.hero-text p {
    color: var(--block-bg);
    font-size: var(--fs-body-lg);
    font-weight: 200;
    line-height: 1.5;
}

.hero-text strong {
    font-weight: 700;
}

/* ============== SECTION COMMON ============== */
.section {
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.section-header {
    padding: var(--block-padding);
    background: var(--block-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap);
    text-align: center;
    border-bottom: transparent 1px solid;
}

.section-header h2 {
    font-size: var(--fs-section-title);
    font-weight: 600;
}

.section-header p {
    font-size: var(--fs-section-body);
    font-weight: 200;
}

.section-header strong {
    font-weight: 700;
}

/* ============== STRATEGY ============== */
.strategy {
    background-image: linear-gradient(var(--line-reveal-overlay), var(--line-reveal-overlay)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: visible;
}

.strategy .section-header {
    border-bottom: 0;
    margin-bottom: 0;
    padding: 80px 50px;
    min-height: var(--strategy-header-sticky-height);
    gap: var(--strategy-header-gap);
    position: sticky;
    top: var(--strategy-sticky-top);
    z-index: 30;
    overflow: visible;
}

.strategy .section-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    pointer-events: none;
    z-index: 40;
    background-image: linear-gradient(var(--line-reveal-overlay), var(--line-reveal-overlay)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.strategy .section-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    pointer-events: none;
    z-index: 41;
    background-image: linear-gradient(var(--line-reveal-overlay), var(--line-reveal-overlay)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: transparent;
    align-items: stretch;
    position: relative;
    z-index: 20;
    overflow: visible;
}

.strategy-card {
    background: var(--block-bg);
    padding: 0;
    display: block;
    position: relative;
    overflow: visible;
    min-height: calc(var(--strategy-scroll-depth) + var(--strategy-scroll-pause) + 25vw);
}

.strategy-card-panel {
    background: var(--block-bg);
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: var(--strategy-card-top);
    z-index: 25;
}

.strategy-card-panel > * {
    opacity: 0;
}

.strategy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.strategy-card-header h3 {
    font-size: 30px;
    font-weight: 700;
}

.strategy-card p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.strategy-card p strong {
    font-weight: 700;
}

.color-yellow { color: var(--yellow); }
.color-red { color: var(--red); }
.color-purple { color: var(--purple); }
.color-blue { color: var(--blue); }

.strategy-footer {
    margin-top: 1px;
    padding: 60px 50px;
    background: var(--block-bg);
    text-align: center;
    border-top: 0;
}

.strategy-footer p {
    font-size: 22px;
    font-weight: 200;
}

.strategy-footer a {
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

/* ============== TOOLS ============== */
.tools {
    background-image: linear-gradient(var(--line-reveal-overlay), var(--line-reveal-overlay)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: block;
    min-height: 100%;
    height: 100%;
}

.tools-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: var(--tools-overlay-header-height);
    z-index: 8;
    gap: 1px;
    background: transparent;
}

.tools-header-content {
    grid-column: 1 / span 2;
    height: 100%;
    background: linear-gradient(120deg, rgb(217, 87, 31), rgb(58, 121, 188), rgb(38, 136, 143), rgb(78, 55, 103), rgb(217, 87, 31)) 0% 0% / 300% 300%;
    animation: floatingHeaderGradient 18s ease-in-out infinite;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 0 5px 0;
}

.tools-header-content-inner {
    background: var(--block-bg);
    width:  calc(100% + 0.5px);
    height: calc(100% - 0.5px);
    margin-right: 0.5px;
    margin-bottom: 0.5px;
    padding: var(--block-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--gap);
    border-right: #8a6aac 0.5px solid;
    border-radius: 0 0 5px 0;
}

.tools-header-content h2 {
    font-size: var(--fs-tools-title);
    font-weight: 600;
    padding-bottom: 0.5rem;
}

.tools-header-content p {
    font-size: var(--fs-tools-subtitle);
    font-weight: 200;
    line-height: 1.5;
}

.tools-grid {
    display: block;
    overflow: hidden;
    position: relative;
    background: transparent;
    height: 100%;
    min-height: 0;
}

.tools-grid-track {
    position: relative;
    display: flex;
    gap: 1px;
    width: max-content;
    height: 100%;
    will-change: transform;
    align-items: stretch;
}

.tools-grid-track .tools-card {
    width: calc((var(--content-shell-width) - 2px) / 3);
    flex: 0 0 auto;
    height: 100%;
}

.tools-card-placeholder .tools-card-inner {
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: var(--block-bg);
    opacity: 1;
    position: absolute;
    overflow: hidden;
}

.tools-card-placeholder .tools-card-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(30, 30, 30, 0.5) 1px,
        rgba(30, 30, 30, 0.5) 2px,
        rgb(255, 249, 234) 2px,
        rgba(255, 255, 255, 1) 9px
    );
    opacity: 0.2;
}

.tools-card.is-real {
    background: transparent;
}

.tools-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.tools-card-inner {
    background: var(--block-bg);
    padding: var(--block-padding);
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 0;
    z-index: 1;
}

.tools-card-logo {
    position: relative;
    width: 100%;
    min-height: 46%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 10px 0 4px;
    pointer-events: none;
    opacity: 0;
    transform: none;
}

.tools-card-logo img {
    width: clamp(120px, 68%, 260px);
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.tools-card-logo-wrap {
    min-height: 46%;
    display: flex;
    align-items: center;
}

.tools-card-copy-wrap {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 44%;
}

.tools-card .card-inactive,
.tools-card .card-active {
    margin-top: 0;
    align-self: flex-start;
}

.tools-card-copy-wrap > p {
    margin-top: auto;
    align-self: stretch;
}

.tools-card h3 {
    font-size: var(--fs-card-title);
    font-weight: 600;
    margin-bottom: 6px;
}

.tools-card .subtitle {
    font-size: clamp(0.875rem, 1.15vw, 1.125rem);
    font-weight: 400;
    color: var(--grey);
    margin-bottom: 0.625rem;
}

.tools-card p {
    font-size: clamp(1rem, 1.2vw, 1.375rem);
    font-weight: 200;
    line-height: 1.5;
}

.tools-card p strong {
    font-weight: 700;
    display: inline;
    white-space: normal;
}

.tools-card .card-active {
    border-left: 0;
}

.tools-card .card-inactive {
    border-left: 0;
}

.tools-line {
    display: block;
}

/* ============== WORKS ============== */
.works {
    background-image: linear-gradient(var(--line-reveal-overlay), var(--line-reveal-overlay)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: calc(100vh - var(--frame-cell-size) - 1px);
    height: calc(100vh - var(--frame-cell-size) - 1px);
    position: relative;
    display: flex;
    flex-direction: column;
}

.works .section-header {
    padding: 80px 50px;
    margin-bottom: 1px;
    position: relative;
    top: auto;
    z-index: 6;
}

.works-frame {
    background-image: linear-gradient(var(--line-reveal-overlay), var(--line-reveal-overlay)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: calc(-1 * var(--gap));
    height: 100vh;
    min-height: 100vh;
}

.works-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: stretch;
    gap: 1px;
    background: transparent;
    flex: 1 1 auto;
    height: var(--works-content-height);
    min-height: 0;
}

.works-frame .section-frame-main {
    min-height: 0;
}

.works-frame .section-frame-main .works {
    min-height: 100%;
    height: 100%;
}

.works-tabs {
    display: flex;
    flex-direction: column; 
    gap: 1px;
    background: transparent;
    box-shadow: inset -20px 1px 400px 10px #bfbfbf99;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.works-tab {
    background: var(--block-bg);
    padding: 20px 42px;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    cursor: pointer;
    transition: flex-grow 0.72s cubic-bezier(0.5, 0, 0.2, 1),
                opacity 0.64s ease,
                border-left-color 0.64s ease,
                background-color 0.64s ease;
    position: relative;
    border-left: 0;
}

.works-tab.active {
    flex-grow: 2;
    background: var(--block-bg);
}

.works-tab.faded {
    background: var(--block-bg);
}

.works-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    pointer-events: none;
    z-index: 2;
}

.works-tab.active::before {
    background-image: var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.works-tab.faded::before {
    background-image: linear-gradient(rgba(255, 254, 246, 0.96), rgba(255, 254, 246, 0.95)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.works-tab.active .tab-header,
.works-tab.active .tab-description,
.works-tab.active h4,
.works-tab.active .tag {
    opacity: 1;
    color: var(--black);
}

.works-tab.faded .tab-header,
.works-tab.faded .tab-description,
.works-tab.faded h4,
.works-tab.faded .tag {
    opacity: 0.42;
}

.works-tab.active .tab-header,
.works-tab.active .tab-description,
.works-tab.active h4,
.works-tab.active .tag {
    opacity: 1 !important;
}

.works-tab.faded .tab-header,
.works-tab.faded .tab-description,
.works-tab.faded h4,
.works-tab.faded .tag {
    opacity: 0.42 !important;
}

.tab-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-header h4 {
    flex: 1;
    font-size: clamp(1.125rem, 1.5vw, 1.875rem);
    font-weight: 600;
}

.tag {
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid;
    font-size: clamp(0.625rem, 0.75vw, 0.9rem);
    font-weight: 200;
    white-space: nowrap;
}

.tag-green { border-color: var(--green); color: var(--green); }
.tag-red { border-color: var(--red); color: var(--red); }
.tag-yellow { border-color: var(--yellow); color: var(--yellow); }

.tab-description {
    font-size: clamp(0.8rem, 0.9vw, 1.125rem);
    font-weight: 200;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    transform: translateX(0);
    overflow: hidden;
    transition: max-height 0.58s ease,
                opacity 0.46s ease,
                transform 0.46s ease,
                margin-top 0.46s ease;
    transition-delay: 0s;
}

.works-tab.active .tab-description {
    margin-top: clamp(0.4rem, 0.55vw, 0.75rem);
    max-height: clamp(72px, 16vh, 130px);
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.05s;
}

.works-preview {
    background: var(--block-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 100%;
    aspect-ratio: auto;
    min-height: 0;
    overflow: hidden;
}

.works-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    scroll-behavior: smooth;
    overflow-y: hidden;
    overflow-x: visible;
    opacity: 0;
    transition: opacity 0.52s ease;
}

.works-preview iframe.loaded { opacity: 1; }
.works-preview iframe.fading-out { opacity: 0; }

/* ============== FOOTER ============== */
.footer {
    background-image: linear-gradient(rgba(255, 254, 246, 0), rgba(255, 254, 246, 0)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100%;
    min-height: 0;
}

.footer-frame {
    background-image: linear-gradient(rgba(255, 254, 246, 0), rgba(255, 254, 246, 0)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: calc(-1 * var(--gap));
    padding-top: 0;
    min-height: 100vh;
    height: 100vh;
    position: sticky;
    top: 0;
}

.footer-inner {
    display: flex;
    flex-direction: row;
    gap: 1px;
    background: transparent;
    height: 100%;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: transparent;
    flex: 2;
    aspect-ratio: auto;
    min-height: 0;
}

.footer-right {
    background: transparent;
    flex: 1;
    min-height: 0;
}

/* -------- Testimonials -------- */
.footer-testimonials {
    background: var(--block-bg);
    border-radius: 0;
    outline: 0;
    outline-offset: 0;
    overflow: hidden;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.footer-testimonials-track {
    position: relative;
    min-height: 0;
    flex: 1;
}

.footer-testimonials-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 40px var(--block-padding);
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.footer-testimonials-content.active-slide {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.footer-testimonials-content.slide-out {
    opacity: 0;
    transform: translateX(-40px);
}

.footer-testimonials-picture {
    width: 22%;
    flex-shrink: 0;
}

.footer-testimonials-picture img {
    width: 100%;
    height: auto;
    max-width: clamp(7.5rem, 8vw, 12rem);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.footer-testimonials-text {
    width: 75%;
    display: flex;
    text-align: left;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.75rem, 1.2vw, 1.5rem);
}

.footer-testimonials-text-main {
    font-size: clamp(0.875rem, 1vw, 1.25rem);
    font-weight: 200;
    line-height: 1.5;
    color: var(--black);
}

.footer-testimonials-text-main .bold { font-weight: 700; }
.footer-testimonials-text-main .light { font-weight: 200; font-style: italic; }

.footer-testimonials-text-name {
    margin-top: clamp(0.625rem, 1vw, 1.25rem);
    font-size: clamp(0.8125rem, 0.92vw, 1.125rem);
    font-weight: 600;
    color: var(--black);
}

.footer-testimonials-paging {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center;
    padding: 6px 10px 24px 10px;
    border-radius: 0;
    outline: 0;
    outline-offset: 0;
}

.page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-image: linear-gradient(var(--line-reveal-overlay), var(--line-reveal-overlay)), var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    outline: 1px solid rgba(255, 254, 246, 0.65);
    outline-offset: -1px;
    display: block;
    cursor: pointer;
    transition: background 0.3s ease, outline-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}
.page-dot:hover {
    outline-color: rgba(14, 140, 114, 0.8);
    opacity: 0.95;
}
.page-dot.active {
    background-image: var(--line-reveal-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    outline-color: rgba(255, 254, 246, 0.98);
    opacity: 1;
}

/* -------- Organi CTA -------- */
.footer-organi {
    border-radius: 0;
    overflow: hidden;
    outline: 0;
    outline-offset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    padding: 0 var(--block-padding);
    background: transparent;
    height: auto;
    min-height: 0;
    flex: 1;
}

.footer-organi-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.footer-organi-logo-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.footer-organi-subtitle {
    text-align: center;
    color: var(--block-bg);
    font-size: clamp(0.95rem, 1.15vw, 1.45rem);
    font-weight: 300;
}

/* -------- Contact -------- */
.contact {
    background: var(--block-bg);
    border-radius: 0;
    outline: 0;
    outline-offset: 0;
    overflow: hidden;
    padding: var(--block-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
}

.contact-header {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.6vw, 2rem);
}

.contact-heading {
    font-size: clamp(1.75rem, 2.4vw, 3rem);
    font-weight: 600;
    color: var(--black);
}

.contact-text {
    font-size: clamp(0.95rem, 1.05vw, 1.35rem);
    font-weight: 200;
    color: var(--black);
    line-height: 1.5;
}

.contact-form {
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--grey);
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--grey);
}

.contact-form-field {
    background: white;
    padding: clamp(0.75rem, 1vw, 1.25rem);
    min-height: clamp(3rem, 3.8vw, 4rem);
    margin-bottom: 0;
    border: 0;
}

.contact-form-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: 'Geist Mono', monospace;
    font-size: clamp(0.95rem, 1vw, 1.25rem);
    font-weight: 200;
    color: var(--black);
}

.contact-form-input::placeholder {
    color: var(--grey);
}

.contact-form-field-message {
    min-height: clamp(10rem, 16vh, 16rem);
    display: flex;
    align-items: flex-start;
}

.contact-form-textarea {
    min-height: clamp(8rem, 12vh, 13rem);
    resize: vertical;
}

.contact-form-placeholder {
    font-size: clamp(0.95rem, 1vw, 1.25rem);
    font-weight: 200;
    color: var(--grey);
}

.contact-form-button {
    background: var(--green);
    min-height: clamp(3rem, 3.8vw, 4rem);
    padding: clamp(0.75rem, 1vw, 1.25rem);
    border: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.contact-form-button span {
    font-size: clamp(1rem, 1.1vw, 1.4rem);
    font-weight: 700;
    color: var(--block-bg);
}

.contact-link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-link p {
    font-size: clamp(0.8125rem, 0.9vw, 1.1rem);
    font-weight: 200;
    color: var(--black);
}

.contact-link a {
    font-weight: 200;
    color: var(--blue);
    text-decoration: none;
}

.contact-link a:hover { text-decoration: underline; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1200px) {
    :root {
        --frame-cell-size: 44px;
        --shell-x: 32px;
        --strategy-sticky-top: 45px;
        --strategy-header-sticky-height: 230px;
        --fs-hero-title: 2.5rem;
        --fs-body-lg: 1rem;
        --fs-section-title: 2rem;
        --fs-section-body: 1.0625rem;
        --fs-tools-title: 2rem;
        --fs-tools-subtitle: 1rem;
        --fs-card-title: 1.125rem;
        --mobile-panel-pad: 1.25rem;
    }
    .strategy-grid { grid-template-columns: repeat(2, 1fr); }
    .strategy-card {
        min-height: auto;
    }
    .strategy-card-panel {
        position: relative;
        top: auto;
    }
    .tools-header {
        position: relative;
        width: 100%;
    }
    .tools-grid-track {
        width: 100%;
        transform: none !important;
    }
    .tools-grid-track .tools-card {
        width: calc((100% - 2px) / 3);
    }
    .works-content { grid-template-columns: 1fr; }
    .hero-top { flex-direction: column; text-align: center; }
    .hero-heading h1 { max-width: 100%; }
    .hero-bottom { flex-direction: column; text-align: center; }
    .hero-logo-frame { width: 100%; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-testimonials-content { flex-direction: column; text-align: center; }
    .footer-testimonials-picture { margin-bottom: 20px; }
}

/* Larger screens: scale layout by viewport height, preserving desktop stage ratio */
@media (min-width: 1400px) {
    html {
        font-size: clamp(18px, 1.8vh, 24px);
    }
    :root {
        --shell-x: clamp(4.9375rem, 8vh, 7.25rem);      /* 79px -> 116px */
        --frame-cell-size: clamp(4.5rem, 7.6vh, 6.5rem);/* 72px -> 104px */
        --gap: clamp(5rem, 8.4vh, 7.25rem);             /* 80px -> 116px */
        --block-padding: clamp(3.125rem, 4.2vh, 4.75rem);
        --fs-hero-title: clamp(2.25rem, 4vh, 4rem);
        --fs-body-lg: clamp(1.125rem, 2.1vh, 1.45rem);
        --fs-section-title: clamp(2.5rem, 4.5vh, 3.6rem);
        --fs-section-body: clamp(1.25rem, 2.4vh, 1.7rem);
        --fs-tools-title: clamp(2.5rem, 4.5vh, 3.6rem);
        --fs-tools-subtitle: clamp(1rem, 2vh, 1.9rem);
        --fs-card-title: clamp(1.375rem, 2.5vh, 1.8rem);
        --hero-logo-size: clamp(30.25rem, 42vh, 40rem);
        --hero-circle-size: clamp(14rem, 19vh, 21rem);
        --strategy-scroll-depth: clamp(1200px, 165vh, 1900px);
        --strategy-scroll-pause: clamp(180px, 24vh, 360px);
        --tools-sequence-depth: clamp(1040px, 140vh, 1700px);
        --tools-pin-depth: clamp(520px, 78vh, 980px);
        --content-shell-width: min(
            calc(100vw - (var(--shell-x) * 2)),
            calc((100vh - var(--desktop-stage-vpad)) * var(--desktop-stage-aspect))
        );
        --strategy-header-sticky-height: clamp(16.25rem, 30vh, 23rem);
        --tools-overlay-header-height: clamp(10rem, 25vh, 21rem);
        --works-content-height: calc(100% - var(--frame-cell-size) - clamp(15rem, 34vh, 24rem));
    }

    .floating-nav-item {
        font-size: clamp(0.8125rem, 1.45vh, 1rem);
    }

    .lang-switch {
        font-size: clamp(0.75rem, 1.25vh, 0.9375rem);
    }

    .hero-heading,
    .hero-text {
        padding: clamp(3rem, 6vh, 5rem);
    }

    .strategy .section-header {
        padding: clamp(3rem, 5vh, 5rem) clamp(2.5rem, 4.4vh, 4rem);
    }

    .strategy-card-panel {
        padding: clamp(2rem, 3.8vh, 3.5rem);
    }

    .tools-header-content-inner {
        gap: clamp(2rem, 4vh, 4.75rem);
    }
}

@media (max-width: 768px) {
    :root {
        --shell-x: 16px;
        --strategy-sticky-top: 0px;
        --strategy-header-sticky-height: 0px;
        --content-max-width: 100vw;
        --gap: 24px;
        --block-padding: 1.25rem;
        --fs-hero-title: 1.75rem;
        --fs-body-lg: 0.92rem;
        --fs-section-title: 1.75rem;
        --fs-section-body: 1rem;
        --fs-tools-title: 1.75rem;
        --fs-tools-subtitle: 1rem;
        --fs-card-title: 1.125rem;
    }
    .section-frame {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 0;
        min-height: auto;
        height: auto;
    }
    .section-frame-main {
        grid-column: 1;
        grid-row: 1;
        min-height: auto;
        height: auto;
    }
    .frame-cell {
        display: none;
    }
    .floating-site-header-shell {
        display: none;
    }
    .strategy-frame,
    .tools-frame,
    .works-frame,
    .footer-frame {
        position: relative;
        top: auto;
        min-height: auto;
        height: auto;
    }
    .tools-frame .section-frame-main,
    .works-frame .section-frame-main {
        display: block;
        height: auto;
        min-height: auto;
    }
    .hero-wrapper,
    .site-wrapper {
        gap: var(--gap);
    }
    .site-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding-left: var(--mobile-panel-pad);
        padding-right: var(--mobile-panel-pad);
        background: var(--block-bg);
        border-left: 0.5px solid var(--grey);
        border-right: 0.5px solid var(--grey);
    }
    .hero-wrapper {
        padding-top: 24px;
        padding-left: var(--mobile-panel-pad);
        padding-right: var(--mobile-panel-pad);
    }
    .hero-heading {
        padding: 1.1rem 1.1rem;
        min-width: 0;
    }
    .hero-text {
        padding: 8rem 1.1rem;
        min-width: 0;
    }
    .hero-logo-frame {
        padding: calc((var(--block-padding) + 0.75rem) * 2) calc(var(--block-padding) * 2);
        border-bottom: 0.5px solid var(--block-bg);
    }
    .hero-logo-frame img {
        height: 25px;
        width: auto;
    }
    .strategy .section-header,
    .strategy-card-panel,
    .works .section-header,
    .footer-frame {
        position: static;
        top: auto;
    }
    .strategy-card {
        min-height: auto;
        height: auto;
    }
    .tools-header {
        position: relative;
        height: auto;
        grid-template-columns: 1fr;
    }
    .tools {
        min-height: auto;
        height: auto;
    }
    .tools-header-content {
        grid-column: auto;
    }
    .tools-header-content-inner {
        width: 100%;
        height: auto;
        margin: 0;
    }
    .strategy-grid { grid-template-columns: 1fr; }
    .tools-grid {
        overflow: visible;
        height: auto;
    }
    .tools-grid-track {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1px;
        height: auto;
        max-width: 100%;
        transform: none !important;
        will-change: auto;
    }
    .tools-card-placeholder {
        display: none;
    }
    .tools-grid-track .tools-card {
        width: 100%;
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
    }
    .tools-card-inner {
        position: relative;
        inset: auto;
        min-height: 380px;
        padding: var(--mobile-panel-pad);
    }
    .tools-card-logo {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    .tools-card-logo img {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    .tools-card-copy-wrap {
        min-height: auto;
        gap: 0.75rem;
    }
    .strategy-card-panel {
        aspect-ratio: auto;
        min-height: 320px;
        padding: var(--mobile-panel-pad);
    }
    .strategy-card-panel,
    .strategy-card-panel > *,
    .strategy-card-header,
    .strategy-card p {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    .hero-animated-logo { width: 300px; height: 300px; }
    .hero-animated-logo .circle { width: 160px; height: 160px; }
    .hero-animated-logo {
        display: none !important;
        visibility: hidden !important;
    }
    .works,
    .works-frame,
    .works-content {
        min-height: auto;
        height: auto;
    }
    .works-tabs {
        min-height: auto;
    }
    .works .section-header,
    .works-tab,
    .contact,
    .footer-organi,
    .footer-testimonials-content {
        padding-left: var(--mobile-panel-pad);
        padding-right: var(--mobile-panel-pad);
    }
    .works-preview {
        min-height: 320px;
    }
    .footer,
    .footer-frame,
    .footer-inner,
    .footer-left,
    .footer-right {
        min-height: auto;
        height: auto;
    }
    .footer-inner {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }
    .footer-left {
        display: contents;
    }
    .footer-testimonials,
    .footer-right,
    .footer-organi {
        width: 100%;
    }
    .footer-testimonials {
        order: 1;
    }
    .footer-right {
        order: 2;
    }
    .footer-organi {
        order: 3;
    }
    .footer-testimonials { min-height: auto; }
    .footer-testimonials-track {
        position: static;
        min-height: auto;
        flex: 0 0 auto;
    }
    .footer-testimonials-content {
        position: relative;
        inset: auto;
        min-height: auto;
        height: auto;
        padding-top: 30px;
        padding-bottom: 30px;
        opacity: 1;
        transform: none;
    }
    .footer-testimonials-content:not(.active-slide) {
        display: none;
    }
    .footer-testimonials-picture {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .footer-testimonials-text {
        width: 100%;
    }
    .footer-organi {
        min-height: auto;
        padding: 112px 30px;
    }
    .footer-organi-content {
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .footer-organi-logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .footer-organi-logo-img {
        width: 30%;
        max-width: 30%;
        height: auto;
        margin: 0 auto;
    }
    .footer-organi-subtitle { font-size: 11px; }
    .contact { min-height: auto; }
    .contact-heading { font-size: 28px; }
    .contact-text { font-size: 18px; }
    .contact-form-placeholder { font-size: 18px; }
    .contact-form-button span { font-size: 18px; }
    .footer-testimonials-text-main { font-size: 18px; }
    .footer-testimonials-text-name { font-size: 16px; }
}

@media (min-width: 769px) {
    .tools-header-content p {
        font-size: clamp(1rem, 1.05vw, 1.2rem);
    }

    .tools-card p {
        font-size: clamp(0.9rem, 0.95vw, 1.1rem);
    }
}
