/* ============================================
   COUNTER- CLT — SITE STYLESHEET
   ============================================
   Structure, tokens and layout live in base.css (imported below).
   All media queries live in responsive.css (linked after this file).

   This file holds only what is specific to Counter- CLT:
     - the font files and token overrides
     - the hero gallery slider
     - the full-screen menu overlay
     - the logo concept explorer
   ============================================ */

@import url("base.css");

/* ---------- FONTS ---------- */
@font-face {
    font-family: "Pitch-Sans";
    src: url("../fonts/pitch-sans-medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Tiempos";
    src: url("../fonts/tiempos-headline-semibold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TiemposText";
    src: url("../fonts/tiempos-headline-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manic";
    src: url("../fonts/MANIC.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AugureTrial-Medium";
    src: url("../fonts/AugureTrial-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ---------- SITE DESIGN TOKENS ---------- */
/* Overrides base.css defaults. Light-theme values are inherited from base. */
:root {
    --accentColor: #246996;

    --font-sans:    "Pitch-Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: "Tiempos", Georgia, serif;
    --font-text:    "TiemposText", Georgia, serif;

    /* Handwritten voice, used by the letter notes and hero hint */
    --font-hand:    "Manic", "Tiempos", Georgia, serif;
}

/* ---------- BRAND MARK EXTRAS ---------- */
.michelin_star {
    width: 25px;
    margin-top: 8px;
}

.michelin_star_path {
    fill: var(--fg);
    transition: fill var(--theme-fade);
}

/* ---------- HERO GALLERY SLIDER ---------- */
.gallery-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.gallery-row {
    display: flex;
    gap: 0;
    will-change: transform;
    flex-shrink: 0;
}

.gallery-img {
    flex: 0 0 auto;
    height: 100vh;
    overflow: hidden;
}

.gallery-img img {
    height: 100%;
    width: auto;
    object-fit: cover;
    min-width: 300px;
}

/* ---------- FULL SCREEN MENU OVERLAY ---------- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.menu-overlay.is-open {
    visibility: visible;
}

.menu-overlay-inner {
    display: grid;
    grid-template-columns: 70% 30%;
    grid-template-rows: auto 1fr auto;
    padding: 20px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-top: 12px;
}

/* Grid cells */
.menu-cell-top-left {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    padding-left: 80px;
    opacity: 0;
}

.menu-cell-content {
    grid-column: 1;
    grid-row: 2;
    overflow-y: auto;
    padding-right: 40px;
    padding-top: 0;
    opacity: 0;
    display: flex;
}

.menu-cell-reserve {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-rows: 50vh auto;
    padding-left: 16px;
    opacity: 0;
}

.menu-reserve-spacer {
    /* empty top row — matches clip-path visible height */
}

.menu-reserve-links {
    display: flex;
    flex-direction: column;
}

.menu-cell-bottom-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
    opacity: 0;
}

/* Partners */
.menu-partners-label {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.2em;
    opacity: 0.35;
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-partners-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.menu-partner-text {
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--fg);
    opacity: 0.55;
    text-decoration: none;
}

/* Reserve links */
.menu-reserve-link {
    font-size: clamp(24px, 3vw, 36px);
    color: var(--fg);
    opacity: 1;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.menu-reserve-link.smaller {
    font-size: clamp(16px, 1.5vw, 24px);
    opacity: 1;
}

/* Custom circle cursor for reserve link */
.reserve-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border: 1px solid var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-110%, -110%);
    border-radius: 50%;
    transition: opacity 0.2s ease;
    background: var(--bg);
}

.reserve-cursor.is-visible {
    opacity: 1;
}

.reserve-cursor-label {
    font-family: inherit;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--fg);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
}

/* Tab navigation */
.menu-tab-btn {
    background: none;
    border: none;
    color: transparent;
    -webkit-text-stroke: 1px var(--fg);
    text-stroke: 1px var(--fg);
    font-family: var(--font-display);
    font-size: clamp(32px, 8vw, 90px);
    font-weight: 300;
    cursor: pointer;
    opacity: 0.4;
    padding: 0;
}

.menu-tab-btn.is-active {
    color: var(--fg);
    -webkit-text-stroke: 0px transparent;
    text-stroke: 0px transparent;
    opacity: 1;
}

.menu-tab-sep {
    font-size: 11px;
    color: var(--fg);
    opacity: 0.2;
}

/* Tab panels */
.menu-tab-panel {
    display: none;
    opacity: 0;
}

.menu-tab-panel.is-active {
    display: block;
}

.menu-section {
    margin-bottom: 40px;
}

.menu-section:last-child {
    margin-bottom: 0;
}

/* Sub-tab layout within each main panel */
.panel-subtab-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0 40px;
    height: 100%;
}

.panel-subtab-nav {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--fg-20);
    padding-right: 24px;
    padding-top: 4px;
    justify-content: center;
    min-width: max-content;
}

.panel-subtab-btn {
    background: none;
    border: none;
    color: var(--fg);
    font-family: inherit;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
    text-align: left;
    cursor: pointer;
    opacity: 0.3;
    letter-spacing: -.01em;
    padding: 5px 0;
}

.panel-subtab-btn.is-active {
    opacity: 1;
}

.panel-subtab-btn.is-active::after {
    content: " —";
    opacity: 0.5;
}

.panel-subtab-content {
    position: relative;
    padding-top: 4px;
    display: flex;
    align-items: center;
}

.panel-subtab-pane {
    display: none;
    opacity: 0;
}

.panel-subtab-pane.is-active {
    display: block;
    opacity: 1;
}

.panel-heading {
    font-size: clamp(13px, 1.6vw, 16px);
    font-weight: 400;
    letter-spacing: 0.25em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.panel-divider {
    width: 40px;
    height: 1px;
    background-color: var(--fg);
    margin-bottom: 32px;
    opacity: 0.4;
}

.panel-text {
    font-size: clamp(14px, 1.3vw, 18px);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 1;
    text-transform: none;
}

.panel-text:last-child {
    margin-bottom: 0;
}

.panel-text a {
    border-bottom: 1px solid var(--fg-30);
    padding-bottom: 2px;
}

.panel-text-small {
    font-size: clamp(11px, 1.1vw, 12px);
    opacity: 0.5;
}

.panel-text-label {
    font-size: clamp(11px, 1.1vw, 13px);
    font-style: italic;
    opacity: 0.5;
    margin-bottom: 24px;
}

.panel-text-italic {
    font-style: italic;
    opacity: 0.6;
    margin-top: 24px;
}

.panel-philosophy {
    font-size: clamp(12px, 1.3vw, 15px);
    font-weight: 300;
    line-height: 2.2;
    letter-spacing: 0.06em;
    opacity: 0.6;
    text-transform: uppercase;
    max-width: 420px;
}

/* Team inside panel */
.panel-team-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.panel-team-member {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-team-name {
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 400;
    letter-spacing: 0.15em;
}

.panel-team-title {
    font-size: clamp(11px, 1.1vw, 12px);
    font-weight: 300;
    opacity: 0.5;
    letter-spacing: 0.08em;
    text-transform: none;
}

/* Pillars inside panel */
.panel-pillar {
    margin-bottom: 28px;
}

.panel-pillar:last-child {
    margin-bottom: 0;
}

.panel-pillar-name {
    font-size: clamp(12px, 1.3vw, 14px);
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

/* Partners inside panel */
.panel-partners-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-partner-link {
    font-size: clamp(13px, 1.3vw, 15px);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px solid var(--fg-20);
    padding-bottom: 4px;
    display: inline-block;
    align-self: flex-start;
}

.concept-1 {
    max-height: 200px;
}

.current-logo {
    max-height: 156px;
}

/* ---------- DEFINITION (hero overlay) ---------- */
.definition-phonetic {
    opacity: 0;
    transform: translateY(20px);
    /* Single grid cell everything shares, so the logos stack for the crossfade
       while the container still sizes itself to their natural height */
    display: grid;
    align-items: center;
    /* Containing block for the rotate prompt */
    position: relative;
}

/* ---------- ROTATE PROMPT (phone, portrait only) ---------- */
.rotate-prompt {
    display: none;
}

.rotate-prompt img {
    /* Source art is black, so it needs inverting on the dark background only */
    filter: invert(1);
    transition: filter var(--theme-fade);
}

body.theme-light .rotate-prompt img {
    filter: invert(0);
}

.definition-logo {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    will-change: opacity;
    /* The overlay is pointer-events: none, so only the visible logo opts back in */
    pointer-events: none;
}

.definition-logo.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Inlined logo art: shapes carry no fill of their own, so the theme drives them */
svg.definition-logo {
    color: var(--fg);
}

svg.definition-logo path,
svg.definition-logo polygon {
    fill: currentColor;
    transition: fill var(--theme-fade);
}

/* ---------- LETTER HOVER ---------- */
.logo-letter {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(.2, .7, .3, 1);
}

/* Everything recedes, the hovered letter comes forward */
svg.definition-logo.has-hover .logo-letter {
    opacity: 0.18;
}

svg.definition-logo.has-hover .logo-letter.is-hovered {
    opacity: 1;
    transform: scale(1.14);
}

/* ---------- GUIDELINE LAYER ---------- */
/* Construction marks sitting over the letters; revealed by letters that opt in
   via data-guides. Keeps its own red fill rather than following the theme. */
.logo-guidelines {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.brand-mark {
    pointer-events: all;
    z-index: 130;
}

svg.definition-logo.guides-on .logo-guidelines {
    opacity: 0.7;
}

/* ---------- LETTER NOTE ---------- */
.letter-note {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    max-width: 300px;
    font-family: var(--font-hand);
    font-size: clamp(16px, 1.5vw, 21px);
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--fg);
    text-align: left;
    text-wrap: balance;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* JS writes translate() + the tilt; opacity alone is transitioned so the
       note never visibly slides between letters */
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
    will-change: transform;
}

.letter-note.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s linear 0s;
}

/* ---------- LETTER SKETCH (bottom-right reference art) ---------- */
.letter-sketch {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 150;
    width: clamp(130px, 15vw, 220px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.letter-sketch.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.letter-sketch img {
    width: 100%;
    height: auto;
    display: block;
    /* Source art is black, so it needs inverting on the dark background only */
    filter: invert(1);
    transition: filter var(--theme-fade);
}

body.theme-light .letter-sketch img {
    filter: invert(0);
}

/* ---------- LOGO SLIDER CONTROLS ---------- */
.logo-slider-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 4px;
}

.logo-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 6px 2px;
    cursor: pointer;
    color: var(--fg);
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.65;
    transition: opacity 0.3s ease;
}

.logo-nav-btn:hover,
.logo-nav-btn:focus-visible {
    opacity: 1;
}

.logo-nav-btn[disabled] {
    opacity: 0.25;
    cursor: default;
}

.logo-nav-arrow {
    width: 24px;
    height: 12px;
    display: block;
    transition: transform 0.3s ease;
}

.logo-nav-btn[data-logo-dir="-1"]:hover .logo-nav-arrow {
    transform: translateX(-4px);
}

.logo-nav-btn[data-logo-dir="1"]:hover .logo-nav-arrow {
    transform: translateX(4px);
}

.logo-slider-count {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--fg);
    opacity: 0.5;
    font-variant-numeric: tabular-nums;
}

/* Logo-only keeps the arrows but collapses their wording. Animating max-width
   as well as opacity lets the arrows draw together instead of leaving a gap. */
.logo-nav-label,
.logo-slider-count {
    display: inline-block;
    max-width: 12em;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.35s ease, max-width 0.45s ease;
}

body.logo-only .logo-nav-label,
body.logo-only .logo-slider-count {
    opacity: 0;
    max-width: 0;
}

/* ---------- PILL SWITCHERS (background + view) ---------- */
/* Both toggles share one look; only their active-state rules differ */
.bg-switcher,
.view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 6px 2px;
    cursor: pointer;
    color: var(--fg);
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bg-switcher-label,
.view-switcher-label {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

/* The label for the theme you're currently in reads at full strength */
.bg-switcher .bg-switcher-label:first-of-type {
    opacity: 1;
}

body.theme-light .bg-switcher .bg-switcher-label:first-of-type {
    opacity: 0.4;
}

body.theme-light .bg-switcher .bg-switcher-label:last-of-type {
    opacity: 1;
}

.bg-switcher-track,
.view-switcher-track {
    position: relative;
    width: 34px;
    height: 16px;
    border: 1px solid var(--fg-30);
    border-radius: 999px;
    transition: border-color 0.3s ease;
    flex: 0 0 auto;
}

.bg-switcher-thumb,
.view-switcher-thumb {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--fg);
    transition: transform 0.4s cubic-bezier(.85, 0, .15, 1), background-color var(--theme-fade);
}

body.theme-light .bg-switcher-thumb {
    transform: translateX(16px);
}

.bg-switcher:hover .bg-switcher-track,
.view-switcher:hover .view-switcher-track {
    border-color: var(--fg-70);
}

/* ---------- VIEW SWITCHER (Logo Only <-> Everything) ---------- */
/* Defaults to Everything, so the thumb starts on the right */
.view-switcher .view-switcher-label:last-of-type {
    opacity: 1;
}

.view-switcher-thumb {
    transform: translateX(16px);
}

body.logo-only .view-switcher-thumb {
    transform: translateX(0);
}

body.logo-only .view-switcher .view-switcher-label:last-of-type {
    opacity: 0.4;
}

body.logo-only .view-switcher .view-switcher-label:first-of-type {
    opacity: 1;
}

.logo_Option_number {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg);
}

.definition-text {
    font-size: clamp(12px, 1.2vw, 16px);
    /* Each logo picks its own voice via data-text-font; serif is the default */
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    max-width: 800px;
    color: var(--fg);
    /* Reserve the tallest copy's height up front. The overlay is a centred
       column, so a change in line count here would otherwise shove the logo. */
    min-height: 4.8em;
    margin-top: 24px;
}

.definition-text.is-sans {
    font-family: var(--font-sans);
}

/* Pointer wording by default; the mobile query swaps in the touch wording */
.hint-touch {
    display: none;
}

.definition-hint {
    font-family: "Manic", var(--font-sans), sans-serif;
    font-size: clamp(16px, 1.4vw, 20px);
    letter-spacing: 0.02em;
    color: var(--fg);
    opacity: 0;
    /* Always occupies its line so toggling it never moves the logo */
    visibility: hidden;
}

/* ---------- GSAP initial states ---------- */
.hero-definition-overlay .definition-text {
    opacity: 0;
}

/* ---------- INDEX LANDING: LOGOS VIEW TILES ---------- */
.landing-tiles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(48px, 9vw, 120px);
    flex-wrap: wrap;
    pointer-events: auto;
}

.landing-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

.landing-tile-logo {
    width: auto;
    max-width: 260px;
    max-height: 130px;
}

.landing-tile-title {
    font-size: clamp(32px, 6vw, 56px);
    letter-spacing: 0.02em;
    color: var(--fg);
}

.font-augure {
    font-family: "AugureTrial-Medium", var(--font-display), Georgia, serif;
}

.landing-tile-sub {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg);
    opacity: 0.5;
}

/* ---------- INDEX LANDING: FOOTER LABEL ---------- */
.landing-footer-label {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg);
    opacity: 0.65;
    padding-bottom: 4px;
}

/* ---------- INDEX LANDING: WEBSITES VIEW ---------- */
/* Scoped to .is-index so it never touches counter.html / okeyo.html, which
   still run the original Logo Only <-> Everything toggle */
body.is-index .hero-definition-overlay {
    transition: opacity 0.5s ease, visibility 0s linear 0s;
}

.section-websites {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

body.is-index.showing-websites .section-websites {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease, visibility 0s linear 0s;
}

body.is-index.showing-websites .hero-definition-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

/* Principles row — grows in above the hierarchy piece, pushing it down via a
   real max-height reveal (not just an overlay fade) */
.website-principles {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, margin-bottom 0.6s ease, opacity 0.5s ease;
}

body.is-index.showing-websites .website-principles {
    max-height: 200px;
    margin-bottom: 10px;
    opacity: 1;
}

.website-principle {
    flex: 1;
    font-family: var(--font-hand);
    font-size: clamp(15px, 1.6vw, 20px);
    line-height: 1.35;
    color: var(--fg);
    text-align: center;
}

.website-principle-movement {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Design Hierarchy — clicking the visual grows it, moves it toward the left
   and swaps in the numbered wireframe, with a text panel filling the space
   that opens up beside it. The centred flex row does the "move left" for
   free: while the detail panel is collapsed the row's only real content is
   the image, so justify-content: center reads as the image being centred;
   once the detail panel gains width, centring the combined row leaves the
   image sitting left of centre. */
.website-hierarchy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    /* Fades in after the principles row has grown in above it */
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.is-index.showing-websites .website-hierarchy {
    opacity: 1;
    transition: opacity 0.5s ease 0.45s;
}

.website-hierarchy.is-expanded {
    gap: 48px;
    align-items: center;
}

.website-visual {
    /* Reset <button> defaults — this used to be a plain div */
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 680px;
    flex-shrink: 0;
    margin-bottom: -13px;
    transition: max-width 0.6s ease;
}

.website-hierarchy.is-expanded .website-visual {
    max-width: 980px;
}

.website-visual-image {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
}

.website-hierarchy-detail {
    width: 0;
    max-height: 40vh;
    opacity: 0;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: left;
    /* Closing: fade out first, then collapse the width — the CSS transition
       used for a change is always the target state's, so this timing is
       what governs when the panel closes */
    transition: opacity 0.25s ease, width 0.6s ease 0.25s;
}

.website-hierarchy.is-expanded .website-hierarchy-detail {
    width: min(420px, 90vw);
    opacity: 1;
    /* Opening: width settles first, opacity only starts once it's done, so
       the text never fades in mid-reflow (no scrollbar flicker) */
    transition: width 0.6s ease, opacity 0.3s ease 0.6s;
}

.website-hierarchy-heading {
    display: block;
    font-family: var(--font-hand);
    font-size: clamp(24px, 2.6vw, 34px);
    letter-spacing: 0.02em;
    color: var(--fg);
    margin-bottom: 20px;
}

/* Stepper: only the active section renders */
.website-hierarchy-section {
    display: none;
}

.website-hierarchy-section.is-active {
    display: block;
}

.website-hierarchy-title {
    display: block;
    font-family: var(--font-hand);
    font-size: clamp(17px, 1.8vw, 21px);
    letter-spacing: 0.02em;
    color: var(--fg);
    margin-bottom: 6px;
}

.website-hierarchy-text {
    font-family: var(--font-text);
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.5;
    color: var(--fg-70);
}

/* ---------- CORE ELEMENTS NAV (arrows + numbered dots) ---------- */
.website-hierarchy-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--fg-20);
}

.hierarchy-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--fg);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.hierarchy-nav-arrow:hover,
.hierarchy-nav-arrow:focus-visible {
    opacity: 1;
}

.hierarchy-nav-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hierarchy-nav-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: none;
    font-family: var(--font-hand);
    font-size: 14px;
    color: var(--fg);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.hierarchy-nav-number:hover {
    opacity: 0.85;
}

.hierarchy-nav-number.is-active {
    opacity: 1;
    border-color: var(--fg);
}

/* De-emphasise the boxes/connector below while the detail panel is open,
   without collapsing their layout space */
#landing-websites.is-hierarchy-open .website-connector,
#landing-websites.is-hierarchy-open .website-link-grid {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* The sketch has a fixed white background regardless of site theme, so the
   label uses a fixed dark tone (not --fg) to stay legible in dark mode too */
.website-visual-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-hand);
    font-size: clamp(15px, 1.6vw, 20px);
    letter-spacing: 0.03em;
    color: rgba(10, 10, 10, 0.8);
    background: rgba(244, 241, 234, 0.85);
    padding: 4px 12px;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* The numbered wireframe has its own callouts, so the plain label steps
   aside once the panel is expanded */
.website-hierarchy.is-expanded .website-visual-label {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

/* Hierarchy connector — a trunk from the visual down to a bar spanning the
   outer two boxes, with a stem into every box. Pure CSS, no SVG/JS geometry:
   --box-w is shared with .website-link-grid so the bar always lands exactly
   on the outer boxes' centres at any viewport width. */
.website-connector {
    --box-w: clamp(120px, 16vw, 180px);
    position: relative;
    width: 100%;
    max-width: 620px;
    height: 56px;
}

.website-connector::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 50%;
    background: var(--fg-30);
}

.website-connector::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(var(--box-w) / 2);
    right: calc(var(--box-w) / 2);
    height: 1px;
    background: var(--fg-30);
}

.website-link-grid {
    --box-w: clamp(120px, 16vw, 180px);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    max-width: 620px;
}

.website-link-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--box-w);
    height: clamp(80px, 10vw, 110px);
    padding: 12px;
    background-image: url("../images/site-box.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg);
    text-align: center;
    transition: opacity 0.3s ease;
}

/* Stem up from each box to meet the connector bar */
.website-link-box::before {
    content: "";
    position: absolute;
    top: -28px;
    left: 50%;
    width: 1px;
    height: 28px;
    background: var(--fg-30);
}

.website-link-box:hover {
    opacity: 0.85;
}

.website-link-box-logo {
    max-width: 100%;
    max-height: 60%;
    width: auto;
    height: auto;
    transition: opacity 0.3s ease;
}

.website-link-box-title {
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: 0.02em;
    text-transform: none;
    transition: opacity 0.3s ease;
}

.website-link-box:hover .website-link-box-logo,
.website-link-box:hover .website-link-box-title {
    opacity: 0;
}

/* Hover message — crossfades in as the logo/title fades out */
.website-link-box-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-family: var(--font-hand);
    font-size: clamp(13px, 1.5vw, 17px);
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--fg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.website-link-box:hover .website-link-box-hover {
    opacity: 1;
}

/* Index-only default: Logos label starts active (left), unlike the shared
   Logo Only <-> Everything toggle which defaults to its right-hand label */
body.is-index .view-switcher .view-switcher-label:first-of-type {
    opacity: 1;
}

body.is-index .view-switcher .view-switcher-label:last-of-type {
    opacity: 0.4;
}

body.is-index .view-switcher-thumb {
    transform: translateX(0);
}

body.is-index.showing-websites .view-switcher-thumb {
    transform: translateX(16px);
}

body.is-index.showing-websites .view-switcher .view-switcher-label:first-of-type {
    opacity: 0.4;
}

body.is-index.showing-websites .view-switcher .view-switcher-label:last-of-type {
    opacity: 1;
}
.main-content {
    mix-blend-mode: darken;
}
/* ---------- OKEYO CHARACTERISTICS (okeyo.html) ---------- */
.okeyo-characteristics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    font-family: var(--font-hand);
    color: var(--fg);
}

.okeyo-characteristics-label {
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: 0.02em;
}

.okeyo-characteristics-columns {
    display: flex;
    gap: clamp(40px, 8vw, 100px);
    flex-wrap: wrap;
    justify-content: center;
}

.okeyo-characteristics-col {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.okeyo-characteristics-col li {
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.2;
}

.okeyo-characteristics-footer {
    font-size: clamp(24px, 3vw, 34px);
    text-align: center;
}
