/* ============================================================
   ITSO Systems — Main Stylesheet
   Brand: #ee4036 red / dark / white / light grey
   ============================================================ */

/* === RESET & CUSTOM PROPERTIES === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand colours — from ITSO Brand Guide */
    --red:          #ef4136;
    --red-dark:     #cc2f25;
    --red-faint:    rgba(239, 65, 54, 0.06);

    /* Brand grey — #9d9fa2 */
    --brand-grey:   #9d9fa2;

    /* Neutrals */
    --ink:          #111111;
    --ink-2:        #1e1e22;
    --grey:         #5a5a5a;
    --grey-light:   #9d9fa2;
    --border:       #e6e6e7;
    --off-white:    #f7f7f7;
    --white:        #ffffff;

    /* Typography — Brand Guide specifies Bebas Neue (headers) + Today Shop Regular (body) */
    --font-display: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --nav-h:        80px;
    --max-w:        1200px;
    --pad-x:        40px;
    --section-v:    128px;

    /* Easing */
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: var(--font); }

/* === UTILITIES === */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.text-red { color: var(--red); }

/* Section labelling */
.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400; /* Bebas Neue is always bold by design */
    line-height: 1.0;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 22px;
}

.section-sub {
    font-size: 17px;
    color: var(--grey);
    line-height: 1.75;
    max-width: 560px;
}

.section-head {
    margin-bottom: 72px;
}

.section-head.center {
    text-align: center;
}
.section-head.center .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s var(--ease-out), box-shadow 0.22s;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid transparent;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-red {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-red:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    box-shadow: 0 8px 24px rgba(239, 65, 54, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--off-white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-full {
    width: 100%;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 900;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    gap: 36px;
}

.nav-logo img {
    height: 41px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    transition: color 0.2s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--red);
    transition: width 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-cta-secondary {
    background: transparent !important;
    color: var(--ink) !important;
    border-color: var(--border) !important;
}
.nav-cta-secondary:hover {
    background: var(--off-white) !important;
    border-color: var(--grey-light) !important;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
}

.nav-cta {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 9px 22px;
    background: var(--red);
    color: var(--white);
    border: 1.5px solid var(--red);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 24px var(--pad-x) 32px;
    z-index: 899;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s var(--ease-out);
    pointer-events: none;
}
.mobile-nav.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--red); }
.mobile-nav .mobile-cta {
    border-bottom: none;
    margin-top: 8px;
    color: var(--red);
    font-weight: 700;
}


/* ============================================================
   HERO
   ============================================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
    background: var(--white);
}

/* Background layers (parallax targets) */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.layer-dots {
    background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}

.layer-grid {
    background-image:
        linear-gradient(rgba(239,65,54,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(239,65,54,0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: 50px 50px;
}

.layer-glow {
    background:
        radial-gradient(ellipse 60% 60% at 80% 40%, rgba(239,65,54,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 15% 75%, rgba(239,65,54,0.04) 0%, transparent 70%);
}

/* Hero layout */
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 80px var(--pad-x);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}


.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(64px, 8.5vw, 120px);
    font-weight: 400; /* Bebas Neue weight is built in */
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 28px;
    overflow: hidden;
}
.hero-headline span {
    display: block;
}
.hero-red {
    color: var(--red);
}

.hero-body {
    font-size: 18px;
    color: var(--grey);
    line-height: 1.72;
    max-width: 520px;
    margin-bottom: 44px;
}

.hero-tags {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
}

.hero-tag-group {
    display: inline-flex;
    align-items: center;
}

.hero-tag-div {
    color: var(--red);
    font-weight: 300;
    font-size: 16px;
    line-height: 1;
    padding: 0 10px;
    user-select: none;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Geometric visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-shell {
    width: clamp(460px, 36vw, 520px);
    max-width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(clamp(-76px, -5.4vw, -52px));
}

.geo {
    position: relative;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.geo-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid;
}
.r1 {
    width: 47.62%; height: 47.62%;
    border-color: rgba(239,65,54,0.2);
    animation: spinCW 18s linear infinite;
}
.r2 {
    width: 76.19%; height: 76.19%;
    border-color: rgba(239,65,54,0.1);
    animation: spinCCW 28s linear infinite;
}
.r3 {
    width: 100%; height: 100%;
    border-color: rgba(239,65,54,0.06);
    animation: spinCW 40s linear infinite;
}

@keyframes spinCW {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spinCCW {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

.geo-cross {
    position: absolute;
    top: 50%; left: 50%;
    background: rgba(239,65,54,0.12);
}
.ch {
    width: 100%; height: 1px;
    transform: translate(-50%, -50%);
}
.cv {
    width: 1px; height: 100%;
    transform: translate(-50%, -50%);
}

.geo-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 36%;
}
.geo-logo img {
    width: 100%;
    display: block;
}

/* Animated nodes */
.geo-node {
    position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--red);
}

.n1 { top: 26.19%; left: 50%; transform: translateX(-50%); animation: nodeP 2.2s ease-in-out infinite; }
.n2 { top: 50%; right: 26.19%; transform: translateY(-50%); animation: nodeP 2.8s ease-in-out infinite 0.6s; }
.n3 { bottom: 26.19%; left: 50%; transform: translateX(-50%); animation: nodeP 2.2s ease-in-out infinite 1.1s; }
.n4 { top: 50%; left: 26.19%; transform: translateY(-50%); animation: nodeP 2.8s ease-in-out infinite 0.3s; }

@keyframes nodeP {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,65,54,0.4); }
    50%       { opacity: 0.6; box-shadow: 0 0 0 8px rgba(239,65,54,0); }
}

/* Scroll cue */
.scroll-indicator {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.scroll-bar {
    width: 1px; height: 52px;
    background: linear-gradient(to bottom, var(--red), transparent);
    transform-origin: top;
    animation: scrollAnim 1.8s ease-in-out infinite;
}
@keyframes scrollAnim {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
.scroll-indicator span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--grey-light);
}


/* ============================================================
   STATS BAR
   ============================================================ */
#stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 0;
}

.stats-label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--grey-light);
    margin-bottom: 44px;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 56px;
    text-align: center;
}

.stat-num-wrap {
    display: flex;
    align-items: baseline;
    gap: 3px;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ink);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--red);
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-light);
    white-space: nowrap;
}

/* Live stat tile — shows "—" until API responds */
.stat-live {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ink);
    line-height: 1;
}

.stat-divider {
    width: 1px;
    height: 64px;
    background: var(--border);
    flex-shrink: 0;
}


/* ============================================================
   SERVICES
   ============================================================ */
#services {
    padding: var(--section-v) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 80px;
}

.svc {
    position: relative;
    padding-top: 10px;
}

/* Top accent line on hover */
.svc::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: width 0.4s var(--ease-out);
}
.svc:hover::before { width: 40px; }

.svc-icon {
    color: var(--red);
    margin-bottom: 22px;
}

.svc h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.svc p {
    font-size: 14.5px;
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 54ch;
}

.svc-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.svc-link span {
    transition: transform 0.25s var(--ease-out);
    display: inline-block;
}
.svc-link:hover { opacity: 0.75; }
.svc-link:hover span { transform: translateX(4px); }


/* ============================================================
   SERVICES (Four Pillars) — navigated to as #about
   ============================================================ */
#about {
    padding: var(--section-v) 0;
}

/* ============================================================
   ABOUT — Five sub-sections
   ============================================================ */
#itso-about {
    background: var(--off-white);
}

/* Shared sub-section spacing */
.about-intro,
.about-board,
.about-members,
.about-pillars {
    padding: 80px 0;
}
.about-intro { padding-top: var(--section-v); }
.about-pillars { padding-bottom: var(--section-v); }

/* ── 1. Mission & Vision ── */
.ai-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
}

.ai-heading {
    font-family: var(--font-display);
    font-size: clamp(56px, 7vw, 96px);
    line-height: 0.92;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-top: 12px;
}

.ai-content-col {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 4px;
}

.ai-statement-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}

.ai-statement p {
    font-size: 17px;
    line-height: 1.78;
    color: var(--grey);
    max-width: 580px;
}

/* ── 2. Principles (compact, inside ai-content-col) ── */
.ap-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 10px 32px;
}

.ap-compact-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 16px;
    color: var(--grey);
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
    padding: 8px 10px 10px;
    margin: 0 -10px;
    cursor: default;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ap-compact-item:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.ap-compact-item span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--red);
    flex-shrink: 0;
    transition: color 0.2s;
}
.ap-compact-item:hover span { color: rgba(255,255,255,0.7); }

/* ── 3. Board of Directors ── */
.ab-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
}

.ab-heading {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    line-height: 0.92;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-top: 12px;
}

.ab-members { display: flex; flex-direction: column; }

.ab-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.ab-member-main {
    display: flex;
    align-items: center;
    gap: 20px;
    transform-origin: left center;
    transition: transform 0.24s var(--ease-out), opacity 0.24s ease;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.ab-photo-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.ab-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: transform 0.35s ease;
}

.ab-photo-wrap:hover .ab-photo {
    transform: scale(1.5);
}

.ab-name { flex: 1; }
.ab-member:first-child { border-top: 1px solid var(--border); }

.ab-name {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: 0.02em;
    color: var(--ink);
    line-height: 1;
}

.ab-role {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── 4. Member Associations ── */
.about-members .section-tag { margin-bottom: 56px; }

.am-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.am-assoc {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.am-abbr {
    font-family: var(--font-display);
    font-size: clamp(64px, 8vw, 108px);
    letter-spacing: 0.02em;
    color: var(--red);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 1;
}

.am-abbr-logo {
    font-size: 0;
    margin-bottom: 20px;
    width: 100%;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-abbr-logo img {
    height: 112px;
    width: auto;
    max-width: min(100%, 440px);
    object-fit: contain;
    object-position: center;
    display: block;
    opacity: 1;
    filter: none;
}

.am-abbr-logo-brrea img {
    transform: translateY(8px);
}

.am-fullname {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: 0.02em;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 20px;
}

.am-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--grey);
    transition: color 0.2s;
}
.am-link::after { content: '↗'; font-size: 12px; transition: transform 0.2s var(--ease-out); }
.am-link:hover { color: var(--red); }
.am-link:hover::after { transform: translate(2px, -2px); }

/* ── Site Preview (inline) ── */
.am-site-preview {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.07);
    margin-bottom: 20px;
}
.sp-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #efefef;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sp-dots { display: flex; gap: 5px; }
.sp-dot { width: 10px; height: 10px; border-radius: 50%; }
.sp-dot-red    { background: #ff5f57; }
.sp-dot-yellow { background: #febc2e; }
.sp-dot-green  { background: #28c840; }
.sp-url {
    flex: 1;
    font-size: 11px;
    color: #555;
    font-family: monospace;
    background: #e2e2e2;
    border-radius: 4px;
    padding: 3px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sp-viewport {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fff;
}
@media (min-width: 861px) {
    .sp-viewport { height: 280px; }
}
.sp-viewport iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    transform-origin: top left;
    pointer-events: none;
    border: none;
}
.sp-viewport::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(255,255,255,0.5) 100%);
    pointer-events: none;
}

/* ── 5. Four Pillars ── */
.apil-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
}

.apil-heading {
    font-family: var(--font-display);
    font-size: clamp(52px, 6.5vw, 88px);
    line-height: 0.92;
    letter-spacing: 0.01em;
    color: var(--ink);
    position: sticky;
    top: calc(var(--nav-h) + 40px);
}

.apil-items { display: flex; flex-direction: column; }

.apil-item {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.apil-item:first-child { border-top: 1px solid var(--border); }

.apil-item-head {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
}

.apil-num {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 88px;
    line-height: 1;
    color: var(--ink);
    opacity: 0.04;
    letter-spacing: 0.02em;
    pointer-events: none;
    user-select: none;
}

.apil-name {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.8vw, 52px);
    letter-spacing: 0.02em;
    color: var(--ink);
    line-height: 1;
    transition: color 0.25s;
}
.apil-item:hover .apil-name { color: var(--red); }

.apil-body {
    font-size: 15px;
    line-height: 1.78;
    color: var(--grey);
    max-width: 500px;
}

/* ── About responsive ── */
@media (max-width: 1024px) {
    .ai-grid, .ab-grid, .apil-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
    .apil-heading { position: static; }
}

@media (max-width: 860px) {
    .ai-grid, .ab-grid, .apil-grid { grid-template-columns: 1fr; gap: 40px; }
    .am-grid { grid-template-columns: 1fr; gap: 48px; }
    .apil-heading { position: static; }
}

@media (max-width: 768px) {
    .about-intro, .about-principles, .about-board,
    .about-members, .about-pillars { padding: 64px 0; }
    .ap-name { font-size: clamp(22px, 6vw, 36px); }
    .am-abbr { font-size: clamp(48px, 14vw, 80px); }
    .ab-member { flex-direction: column; align-items: flex-start; gap: 6px; }
}


/* ============================================================
   WHY ITSO
   ============================================================ */
#access {
    padding: var(--section-v) 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.why-item {
    padding-top: 28px;
    border-top: 2px solid var(--border);
    transition: border-color 0.3s;
}
.why-item:hover { border-color: var(--red); }

.why-num {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--red);
    margin-bottom: 18px;
}

.why-item h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.why-item p {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.7;
}


/* ── Subscriber cards ────────────────────────────────────── */
.sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.sub-card {
    padding: 44px 40px;
    border: 1px solid var(--border);
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.sub-card:hover { border-color: transparent; box-shadow: 0 12px 40px rgba(0,0,0,0.07); }
.sub-card:hover::before { transform: scaleX(1); }

.sub-card-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
}

.sub-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.sub-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(239,65,54,0.08);
    padding: 4px 10px;
    flex-shrink: 0;
}

.sub-desc {
    font-size: 14.5px;
    color: var(--grey);
    line-height: 1.72;
    margin-bottom: 24px;
}

.sub-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-list li {
    font-size: 13.5px;
    color: var(--grey);
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
}

.sub-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    opacity: 0.7;
}


.access-feed-head {
    padding-top: var(--section-v);
}





/* ============================================================
   FOLDER / DIGEST SHARED COMPONENTS
   ============================================================ */
.folder-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.01em;
    word-break: break-word;
}

.folder-icon {
    width: 16px;
    height: 12px;
    flex-shrink: 0;
    border: 2px solid var(--red);
    border-radius: 2px;
    position: relative;
    margin-top: 3px;
}

.folder-icon::before {
    content: '';
    position: absolute;
    left: 1px;
    top: -6px;
    width: 8px;
    height: 6px;
    border: 2px solid var(--red);
    border-bottom: none;
    border-radius: 2px 2px 0 0;
    background: #fff;
}

.folder-meta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-light);
    white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: var(--ink-2);
    color: var(--white);
    padding: 72px 0 48px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 28px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    text-align: center;
    gap: 16px;
}

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.footer-social a {
    color: rgba(255,255,255,0.35);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.footer-social a:hover { color: #fff; }

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.72;
    max-width: 280px;
}

.footer-trademark {
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    line-height: 1.65;
    text-align: center;
}

.footer-col h4 {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col li,
.footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
}
.footer-contact-item a {
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
    transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

body.modal-open {
    overflow: hidden;
}

.legal-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(10, 10, 12, 0.68);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.legal-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.legal-modal {
    width: min(1080px, 100%);
    max-height: min(88vh, 920px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.28s var(--ease-out);
}

.legal-modal-backdrop.is-open .legal-modal {
    transform: translateY(0);
}

.legal-modal-header,
.legal-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--off-white);
}

.legal-modal-header {
    border-bottom: 1px solid var(--border);
}

.legal-modal-header-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-modal-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
}

.legal-modal-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
}

.legal-modal-close {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.legal-modal-close:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.legal-modal-body {
    padding: 0 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.legal-modal-frame-wrap {
    flex: 1;
    min-height: 0;
    border: 1px solid var(--border);
    background: #d8d8d8;
}

.legal-modal-frame {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    border: 0;
    background: var(--white);
}

.legal-modal-note {
    font-size: 13px;
    color: var(--grey);
}

.legal-modal-footer {
    border-top: 1px solid var(--border);
    justify-content: flex-end;
    flex-wrap: wrap;
}


/* ============================================================
   SCROLL REVEAL (no-GSAP fallback)
   ============================================================ */
.js-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js-reveal.in-view {
    opacity: 1;
    transform: none;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    :root { --pad-x: 32px; }

    .services-grid { gap: 48px 56px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .sub-grid { gap: 24px; }
    .hero-inner { gap: 56px; }
}

@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual { display: none; }
    .hero-eyebrow { justify-content: center; }
    .hero-body { margin-left: auto; margin-right: auto; max-width: 100%; }
    .hero-ctas { justify-content: center; }
    .hero-tags { flex-direction: column; align-items: center; gap: 6px; }
    .hero-tag-sep { display: none; }
    .hero-tag-group { justify-content: center; }

    .about-grid { grid-template-columns: 1fr; }
    .about-visual-col { display: none; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; gap: 48px; }

    .legal-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .legal-modal {
        width: 100%;
        max-height: 94svh;
        border-bottom: 0;
    }

    .legal-modal-header,
    .legal-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .legal-modal-body {
        padding: 0 20px 16px;
    }

    .legal-modal-footer {
        justify-content: stretch;
    }

    .legal-modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --pad-x: 24px;
        --section-v: 80px;
    }

    .nav-links, .nav-buttons { display: none; }
    .nav-toggle { display: flex; }

    .hero-headline { font-size: clamp(44px, 13vw, 120px); }
    .hero-inner { padding: 56px var(--pad-x); }

    .services-grid { grid-template-columns: 1fr; gap: 48px; }
    .why-grid { grid-template-columns: 1fr; }
    .sub-grid { grid-template-columns: 1fr; }
    .sub-card { padding: 32px 28px; }

    .ab-member { flex-direction: row; align-items: center; }
    .ab-member-main { gap: 14px; }

    .stats-row { gap: 32px; flex-direction: column; }
    .stat { padding: 0; }
    .stat-divider { width: 48px; height: 1px; }

    #cta-band .container { flex-direction: column; text-align: center; }
    .cta-actions { justify-content: center; }

    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
    :root { --pad-x: 20px; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}
