/* ============================================================
   LOGO BOX DRAW
   ============================================================ */
@keyframes si-box-draw {
    to { stroke-dashoffset: 0; }
}

/* Reveal from top: clip-path slides up */
@keyframes si-reveal-down {
    from { clip-path: inset(0 0 100% 0); }
    to   { clip-path: inset(0 0 0% 0); }
}

@keyframes si-orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes si-hero-fade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes si-scroll-line {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 1; }
}

/* ============================================================
   HOME HERO
   ============================================================ */
.si-scope.si-home-hero {
    position: relative;
    min-height: 100vh;
    background: #0D0D0F !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.si-home-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.si-home-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.15;
    animation: si-orb-drift 16s ease-in-out infinite;
}

.si-home-hero__orb--left {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #D4A853 0%, transparent 70%);
    top: -150px; left: -180px;
    animation-delay: 0s;
}

.si-home-hero__orb--right {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #D4A853 0%, transparent 70%);
    bottom: -100px; right: -120px;
    animation-delay: -8s;
    opacity: 0.08;
}

.si-home-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* ============================================================
   HERO LOGO ANIMATION
   ============================================================ */
.si-hero-logo-wrap {
    width: min(200px, 55vw);
    height: min(200px, 55vw);
}

.si-hero-logo {
    width: 100%;
    height: 100%;
    color: #D4A853;
    overflow: hidden;
}

/* 1. Box outline draws in */
.si-logo-box {
    animation: si-box-draw 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

/* 2. S curve reveals top-to-bottom */
.si-logo-s {
    clip-path: inset(0 0 100% 0);
    animation: si-reveal-down 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.95s forwards;
}

/* 3. Bridge reveals */
.si-logo-bridge {
    clip-path: inset(0 0 100% 0);
    animation: si-reveal-down 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

/* 4. Bars reveal staggered left to right */
.si-logo-bar {
    clip-path: inset(0 0 100% 0);
    animation: si-reveal-down 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.si-logo-bar:nth-child(4) { animation-delay: 1.25s; }
.si-logo-bar:nth-child(5) { animation-delay: 1.35s; }
.si-logo-bar:nth-child(6) { animation-delay: 1.45s; }
.si-logo-bar:nth-child(7) { animation-delay: 1.55s; }
.si-logo-bar:nth-child(8) { animation-delay: 1.65s; }

/* ============================================================
   HERO TEXT
   ============================================================ */
/* ============================================================
   HERO NAME
   ============================================================ */
.si-home-hero__name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    color: #F0EDE6;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1;
    opacity: 0;
    animation: si-hero-fade 0.8s cubic-bezier(0.16,1,0.3,1) 1.7s forwards;
}

.si-home-hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: #9B978E !important;
    margin: 0 !important;
    max-width: 440px;
    line-height: 1.7;
    opacity: 0;
    animation: si-hero-fade 0.8s cubic-bezier(0.16,1,0.3,1) 1.9s forwards;
}

/* ============================================================
   SPLIT IDENTITY PANELS
   ============================================================ */
.si-home-hero__split {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
    z-index: 1;
}

.si-home-hero__half {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5rem;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1);
}

.si-home-hero.is-split .si-home-hero__half {
    opacity: 1;
}

.si-home-hero__half--left {
    background: linear-gradient(to right, rgba(212,168,83,0.07) 0%, transparent 100%);
    transition-delay: 0s;
}

.si-home-hero__half--right {
    background: linear-gradient(to left, rgba(212,168,83,0.04) 0%, transparent 100%);
    transition-delay: 0.25s;
}

.si-home-hero__half-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #D4A853;
    opacity: 0.5;
}

/* ============================================================
   LOGO — hide on home page, show in nav overlay
   ============================================================ */
.home .si-site-header__logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.si-home-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: si-hero-fade 0.8s cubic-bezier(0.16,1,0.3,1) 2.1s forwards;
}

.si-home-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #5C5A54;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    animation: si-hero-fade 0.6s ease 2.5s forwards;
}

.si-home-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #D4A853, transparent);
    animation: si-scroll-line 2s ease-in-out 2.5s infinite;
}

/* ============================================================
   HEADER - hamburger only
   ============================================================ */
.si-scope.si-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    background: transparent !important;
    border: none;
}

/* Header inner: fixed 64px height, horizontal padding only — no vertical
   padding so the 44px toggle fits without overflow, and both elements
   sit on a shared vertical centre line. */
.si-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 1.25rem;
    gap: 1rem;
    max-width: none;
    margin: 0;
}

.si-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(13,13,15,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.2s, border-color 0.2s;
    z-index: 1001;
    position: relative;
}

.si-nav-toggle:hover {
    background: rgba(30,30,34,0.9);
    border-color: rgba(212,168,83,0.3);
}

.si-nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #9B978E;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
    transform-origin: center;
}

.si-nav-toggle[aria-expanded="true"] span {
    background: #F0EDE6;
}

.si-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.si-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.si-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Full-screen overlay nav */
.si-nav {
    position: fixed;
    inset: 0;
    background: rgba(13,13,15,0.97) !important;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 999;
}

.si-nav.is-open {
    opacity: 1;
    pointer-events: auto;
}

.si-nav__inner {
    text-align: center;
}

.si-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.si-nav__link {
    display: block;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: #5C5A54;
    text-decoration: none;
    padding: 0.3rem 1rem;
    transition: color 0.2s ease;
    line-height: 1.2;
}

.si-nav__link:hover {
    color: #F0EDE6;
}

.si-nav__link--cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: #D4A853;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    border: 1px solid rgba(212,168,83,0.35);
    border-radius: 100px;
    padding: 0.6rem 2rem;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.si-nav__link--cta:hover {
    background: rgba(212,168,83,0.1);
    color: #E8C675;
}

body {
    padding-top: 0 !important;
}

/* ============================================================
   MARQUEE
   ============================================================ */
@keyframes si-marquee {
    from { transform: translateX( 0 ); }
    to   { transform: translateX( -50% ); }
}

.si-scope.si-marquee {
    background: #111113 !important;
    border-top: 1px solid #2A2A2E;
    border-bottom: 1px solid #2A2A2E;
    padding: 0.875rem 0;
    overflow: hidden;
    /* Fade edges */
    -webkit-mask-image: linear-gradient( to right, transparent 0%, black 8%, black 92%, transparent 100% );
    mask-image: linear-gradient( to right, transparent 0%, black 8%, black 92%, transparent 100% );
}

/* JS wraps both tracks in this element */
.si-marquee-inner {
    display: flex;
    width: max-content;
    animation: si-marquee 30s linear infinite;
}

.si-scope.si-marquee:hover .si-marquee-inner {
    animation-play-state: paused;
}

.si-marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 1.5rem;
}

.si-marquee-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #D4A853;
    opacity: 0.75;
    flex-shrink: 0;
}

.si-marquee-sep {
    color: #5C5A54;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .si-marquee-inner { animation: none; }
}

/* ============================================================
   DUAL SHOWCASE
   ============================================================ */
.si-scope.si-dual-showcase {
    padding: 6rem 2rem;
    background: #0D0D0F !important;
}

.si-dual-showcase__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .si-dual-showcase__inner { grid-template-columns: 1fr; }
}

.si-dual-showcase__card {
    background: #161619 !important;
    border: 1px solid #2A2A2E;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
}

.si-dual-showcase__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.si-dual-showcase__thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.si-dual-showcase__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.si-dual-showcase__card:hover .si-dual-showcase__thumb img {
    transform: scale(1.05);
}

.si-dual-showcase__thumb--composition {
    background: radial-gradient(ellipse at 50% 100%, rgba(212,168,83,0.2) 0%, transparent 70%) !important;
}

.si-dual-showcase__thumb--learning_design {
    background: radial-gradient(ellipse at 50% 100%, rgba(126,200,155,0.15) 0%, transparent 70%) !important;
}

.si-dual-showcase__thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22,22,25,0.8) 0%, transparent 60%);
}

.si-dual-showcase__body { padding: 1.75rem; }

.si-dual-showcase__label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D4A853;
    border: 1px solid rgba(212,168,83,0.35);
    border-radius: 4px;
    padding: 0.25em 0.6em;
    margin-bottom: 0.75rem;
}

.si-dual-showcase__title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.5rem;
    color: #F0EDE6 !important;
    margin: 0 0 0.6rem;
}

.si-dual-showcase__excerpt {
    font-size: 0.9rem;
    color: #9B978E !important;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.si-scope.si-testimonials {
    padding: 6rem 2rem;
    background: #111113 !important;
    text-align: center;
}

.si-testimonials__inner { max-width: 720px; margin: 0 auto; }

.si-testimonials__track {
    position: relative;
    min-height: 180px;
}

.si-testimonial-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.si-testimonial-item.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.si-testimonial-item__quote {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #F0EDE6 !important;
    line-height: 1.5;
}

.si-testimonial-item__cite {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D4A853;
}

.si-testimonials__dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.si-testimonials__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #2A2A2E;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.si-testimonials__dot.is-active {
    background: #D4A853;
    transform: scale(1.4);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.si-scope.si-cta-band {
    padding: 5rem 2rem;
    background: #161619 !important;
    border-top: 1px solid #2A2A2E;
    text-align: center;
}

.si-cta-band__inner { max-width: 640px; margin: 0 auto; }

.si-cta-band__heading {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #F0EDE6 !important;
    margin: 0 0 1rem;
}

.si-cta-band__sub {
    color: #9B978E !important;
    margin: 0 0 2rem;
    font-size: 1.05rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.si-reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1),
                transform 0.85s cubic-bezier(0.16,1,0.3,1);
    will-change: transform, opacity;
}
.si-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Directional variants */
.si-reveal--left  { transform: translateX(-48px); }
.si-reveal--right { transform: translateX(48px);  }
.si-reveal--left.is-visible,
.si-reveal--right.is-visible { transform: translateX(0); }

.si-reveal--scale { transform: scale(0.93); }
.si-reveal--scale.is-visible { transform: scale(1); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.si-scope.si-site-footer {
    background: #0D0D0F !important;
    border-top: 1px solid #2A2A2E;
    padding: 3rem 2rem;
}

.si-site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.si-site-footer__brand { display: flex; flex-direction: column; gap: 0.25rem; }

.si-site-footer__name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.25rem;
    color: #F0EDE6;
}

.si-site-footer__roles {
    font-size: 0.75rem;
    color: #5C5A54;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.si-site-footer__nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.si-site-footer__nav a {
    font-size: 0.875rem;
    color: #9B978E;
    text-decoration: none;
    transition: color 0.2s;
}

.si-site-footer__nav a:hover { color: #D4A853; }

.si-site-footer__copy {
    font-size: 0.75rem;
    color: #5C5A54;
    margin: 0;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .si-logo-box,
    .si-logo-s,
    .si-logo-bridge,
    .si-logo-bar,
    .si-home-hero__name,
    .si-home-hero__tagline,
    .si-home-hero__actions,
    .si-home-hero__scroll,
    .si-home-hero__orb { animation: none; opacity: 1; clip-path: none; stroke-dashoffset: 0; }
    .si-home-hero__half { opacity: 1; transition: none; }
    .si-reveal,
    .si-reveal--left,
    .si-reveal--right,
    .si-reveal--scale { opacity: 1; transform: none; transition: none; }
    .si-home-hero__bg,
    .si-home-hero__inner,
    .si-home-hero__split { transform: none !important; opacity: 1 !important; }
    .si-scroll-progress { display: none; }
}
