/* REMOVE ASTRA BOXED LAYOUT */
.ast-container,
.site-content,
.content-area,
.entry-content,
.site-main,
.ast-plain-container,
#primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* remove page top gap */
.entry-header,
.page-header {                                                                                                                                                                   
    display:none !important;
}

/* your page wrapper */
.societies-page{
    width:100%;
    overflow:hidden;
}


:root {
    --bg: #f6f3ee;
    --bg-2: #ece7df;
    --surface: #ffffff;
    --ink: #1f1d1a;
    --ink-2: #4a463f;
    --muted: #8a8478;
    --line: #e3ddd2;
    --accent: #6b6357;
    --accent-2: #b8a98f;
    --accent-3: #d4c5a8;
    --shadow-1: 0 1px 2px rgba(31, 29, 26, .06), 0 8px 24px rgba(31, 29, 26, .06);
    --shadow-2: 0 30px 60px -20px rgba(31, 29, 26, .28), 0 18px 36px -18px rgba(31, 29, 26, .18);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

/* ---------- Animated background ---------- */
.bg-anim {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 20% 10%, rgba(216, 207, 189, .55), transparent 60%),
        radial-gradient(50% 50% at 90% 20%, rgba(212, 197, 168, .55), transparent 60%),
        radial-gradient(70% 50% at 60% 80%, rgba(232, 224, 206, .65), transparent 60%),
        radial-gradient(40% 40% at 10% 80%, rgba(184, 169, 143, .40), transparent 60%),
        var(--bg);
    background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%, auto;
    animation: bgShift 24s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        background-position: 0% 0%, 100% 0%, 60% 100%, 0% 100%, 0 0;
    }

    50% {
        background-position: 30% 20%, 70% 30%, 40% 70%, 20% 80%, 0 0;
    }

    100% {
        background-position: 60% 40%, 40% 60%, 20% 40%, 40% 60%, 0 0;
    }
}

/* Cursor-follow ambient glow */
.cursor-glow {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 169, 143, .30), transparent 60%);
    pointer-events: none;
    z-index: -1;
    transform: translate3d(-50%, -50%, 0);
    transition: transform .2s ease-out;
    filter: blur(20px);
    mix-blend-mode: multiply;
}

/* Soft grain overlay */
.grain {
    position: fixed;
    inset: -50%;
    z-index: -1;
    pointer-events: none;
    opacity: .05;
    background-image: radial-gradient(rgba(0, 0, 0, .5) 1px, transparent 1px);
    background-size: 3px 3px;
    animation: grainShift 8s steps(8) infinite;
}

@keyframes grainShift {
    0% {
        transform: translate(0, 0)
    }

    25% {
        transform: translate(-2%, 1%)
    }

    50% {
        transform: translate(1%, -2%)
    }

    75% {
        transform: translate(-1%, 2%)
    }

    100% {
        transform: translate(0, 0)
    }
}

/* ---------- Layout ---------- */
.container{
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:0 40px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    background: rgba(246, 243, 238, .78);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    animation: slideDown .8s .2s cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes slideDown {
    to {
        transform: none
    }
}

.site-header .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.brand {
    font-family: "Fraunces", serif;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--ink);
    font-size: 18px
}

.brand small {
    display: block;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase
}

.nav a {
    color: var(--ink-2);
    text-decoration: none;
    margin-left: 22px;
    font-size: 14px;
    position: relative;
    transition: color .25s;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.nav a:hover {
    color: var(--ink)
}

.nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left center
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 110px 0 64px;
    perspective: 1400px;
}

.hero h1 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: clamp(40px, 6.4vw, 76px);
    line-height: 1.05;
    color: var(--ink);
    margin: 0 0 18px;
    letter-spacing: -.02em;
    transform-style: preserve-3d;
}

.hero h1 .word {
    display: inline-block;
    white-space: nowrap;
    margin-right: .18em
}

.hero h1 .ch {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-90deg);
    transform-origin: 50% 100%;
    animation: chIn .9s var(--d) cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes chIn {
    to {
        opacity: 1;
        transform: none
    }
}

.hero h1 .accent {
    font-style: italic;
}

.hero h1 .accent .ch {
    background: linear-gradient(90deg, #7a6f5e, #b8a98f, #7a6f5e);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: chIn .9s var(--d) cubic-bezier(.2, .7, .2, 1) forwards, shine 6s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 0% 0
    }

    100% {
        background-position: 200% 0
    }
}

.hero p.lede {
    max-width: 680px;
    font-size: 18px;
    color: var(--ink-2);
    margin: 0 0 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .9s 1.4s cubic-bezier(.2, .7, .2, 1) forwards;
    text-align: justify;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: none
    }
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-1);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .8s .9s cubic-bezier(.2, .7, .2, 1) forwards;
}

.hero .eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(184, 169, 143, .6)
    }

    50% {
        box-shadow: 0 0 0 8px rgba(184, 169, 143, 0)
    }
}

.hero .scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-top: 32px;
    opacity: 0;
    animation: fadeUp .8s 1.8s cubic-bezier(.2, .7, .2, 1) forwards;
}

.scroll-hint .line {
    display: inline-block;
    width: 1px;
    height: 36px;
    background: var(--accent-2);
    position: relative;
    overflow: hidden;
}

.scroll-hint .line::after {
    content: "";
    position: absolute;
    left: 0;
    top: -100%;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent, var(--ink));
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        top: -50%
    }

    100% {
        top: 120%
    }
}

/* Floating 3D shapes */
.scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    perspective: 1100px;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 30%;
    background: linear-gradient(140deg, #d8cfbd, #bdb29a);
    box-shadow: var(--shadow-2);
    opacity: .55;
    transform-style: preserve-3d;
    animation: float 14s ease-in-out infinite;
    will-change: transform;
}

.shape.s1 {
    width: 260px;
    height: 260px;
    left: -80px;
    top: 30px;
    animation-delay: -2s
}

.shape.s2 {
    width: 170px;
    height: 170px;
    right: 6%;
    top: 90px;
    border-radius: 24px;
    background: linear-gradient(140deg, #efe9dd, #cdc1a8);
    animation-delay: -6s
}

.shape.s3 {
    width: 130px;
    height: 130px;
    right: 18%;
    top: 280px;
    border-radius: 50%;
    background: linear-gradient(140deg, #bdb29a, #8a8478);
    opacity: .35;
    animation-delay: -10s
}

.shape.s4 {
    width: 80px;
    height: 80px;
    left: 30%;
    top: 340px;
    border-radius: 14px;
    background: linear-gradient(140deg, #e8dfc9, #b8a98f);
    opacity: .45;
    animation-delay: -3s;
    animation-duration: 11s
}

.shape.s5 {
    width: 50px;
    height: 50px;
    left: 55%;
    top: 140px;
    border-radius: 50%;
    background: linear-gradient(140deg, #a39780, #6b6357);
    opacity: .4;
    animation-delay: -7s;
    animation-duration: 9s
}

.shape.s6 {
    width: 200px;
    height: 200px;
    left: 8%;
    bottom: -40px;
    border-radius: 40%;
    background: linear-gradient(140deg, #f0e9d9, #c8baa0);
    opacity: .4;
    animation-delay: -12s;
    animation-duration: 18s
}

@keyframes float {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateX(8deg) rotateY(-6deg) rotate(0deg)
    }

    33% {
        transform: translate3d(14px, -22px, 40px) rotateX(-6deg) rotateY(8deg) rotate(4deg)
    }

    66% {
        transform: translate3d(-12px, 16px, 20px) rotateX(4deg) rotateY(-10deg) rotate(-3deg)
    }
}

/* ---------- Section title ---------- */
.section-title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 64px 0 24px;
}

.section-title h2 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 34px);
    margin: 0;
    letter-spacing: -.01em;
}

.section-title .rule {
    flex: 1;
    height: 1px;
    background: var(--line);
    position: relative;
    overflow: hidden
}

.section-title .rule::after {
    content: "";
    position: absolute;
    left: -30%;
    top: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
    animation: sweep 3.5s ease-in-out infinite;
}

@keyframes sweep {
    0% {
        left: -30%
    }

    100% {
        left: 130%
    }
}

/* ---------- Marquee ---------- */
.marquee {
    margin: 24px 0 8px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: linear-gradient(180deg, #fbf8f1, #f0eadc);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee .track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    font-family: "Fraunces", serif;
    font-weight: 600;
    color: var(--accent);
    font-size: 22px;
    letter-spacing: .02em;
}

.marquee .track .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    align-self: center
}

@keyframes marquee {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* ---------- Society section ---------- */
.society {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 56px 0;
    border-top: 1px solid var(--line);
    position: relative;
}

.society:first-of-type {
    border-top: 0
}

.society.reverse {
    grid-template-columns: 1fr 1.05fr
}

.society.reverse .media {
    order: 2
}

.society.reverse .copy {
    order: 1
}

.society::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 0;
    height: 1px;
    background: var(--accent-2);
    transition: width 1.2s cubic-bezier(.2, .7, .2, 1);
    transform: translateX(-50%);
}

.society.in::before {
    width: 80%
}

.copy .kicker {
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy .kicker .num {
    font-family: "Fraunces", serif;
    font-weight: 600;
    color: var(--ink);
    font-style: italic;
    font-size: 18px;
    letter-spacing: 0;
    display: inline-block;
}

.society.in .copy .kicker .num {
    animation: numIn .9s cubic-bezier(.2, .7, .2, 1) both
}

@keyframes numIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(.7) rotate(-12deg)
    }

    100% {
        opacity: 1;
        transform: none
    }
}

.copy h3 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    color: var(--ink);
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.12;
    margin: 0 0 8px;
    letter-spacing: -.01em;
    transform-origin: left center;
}

.copy .tagline {
    font-style: italic;
    color: var(--accent);
    margin: 0 0 22px
}

.copy p {
    margin: 0 0 14px;
    font-size: 17px
}

/* Stagger inside copy */
.society .copy>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}

.society.in .copy>* {
    opacity: 1;
    transform: none
}

.society.in .copy>*:nth-child(1) {
    transition-delay: .05s
}

.society.in .copy>*:nth-child(2) {
    transition-delay: .18s
}

.society.in .copy>*:nth-child(3) {
    transition-delay: .30s
}

.society.in .copy>*:nth-child(4) {
    transition-delay: .42s
}

.society.in .copy>*:nth-child(5) {
    transition-delay: .54s
}

.society.in .copy>*:nth-child(6) {
    transition-delay: .66s
}

/* ---------- 3D Media Card ---------- */
.media {
    perspective: 1400px
}

.tilt-wrap {
    /* outer wrapper handles slow idle float; inner handles mouse tilt */
    animation: idleFloat 7s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes idleFloat {

    0%,
    100% {
        transform: translateY(0) rotateZ(0)
    }

    50% {
        transform: translateY(-10px) rotateZ(.4deg)
    }
}

.tilt {
    position: relative;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    transform-style: preserve-3d;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
    will-change: transform;
    overflow: hidden;
    isolation: isolate;
}

.tilt::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 70%);
    transform: translateX(-60%);
    transition: transform .8s ease;
    mix-blend-mode: screen;
    opacity: .7;
    z-index: 3;
}

.tilt:hover::before {
    transform: translateX(60%)
}

/* glow that follows cursor inside the card */
.tilt::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), transparent 40%);
    opacity: 0;
    transition: opacity .25s;
    z-index: 2;
}

.tilt:hover::after {
    opacity: 1
}

.tilt .frame {
    aspect-ratio: 4/3;
    background: var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.tilt .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(40px) scale(1);
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
    animation: kenburns 18s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: translateZ(40px) scale(1) translate(0, 0)
    }

    100% {
        transform: translateZ(40px) scale(1.08) translate(-1.5%, -1%)
    }
}

.tilt:hover .frame img {
    transform: translateZ(60px) scale(1.05)
}

.tilt[data-kind="logo"] .frame {
    background: radial-gradient(circle at 30% 20%, #ffffff 0%, #f1ece1 65%, #e5dccb 100%);
}

.tilt[data-kind="logo"] .frame img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(31, 29, 26, .18));
    transform: translateZ(60px) scale(1);
    animation: logoFloat 6s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    0% {
        transform: translateZ(60px) translateY(0) rotate(0deg) scale(1)
    }

    100% {
        transform: translateZ(80px) translateY(-6px) rotate(1.4deg) scale(1.02)
    }
}

.tilt .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-2);
    padding: 6px 10px;
    border-radius: 999px;
    transform: translateZ(70px);
    z-index: 4;
}

.tilt .logo-chip {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-1);
    transform: translateZ(80px);
    overflow: hidden;
    z-index: 4;
    animation: chipBob 4s ease-in-out infinite alternate;
}

@keyframes chipBob {
    0% {
        transform: translateZ(80px) translateY(0)
    }

    100% {
        transform: translateZ(95px) translateY(-4px)
    }
}

.tilt .logo-chip img {
    width: 80%;
    height: 80%;
    object-fit: contain
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
    transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
    transform-origin: center top;
}

.reveal.in {
    opacity: 1;
    transform: none
}

/* ---------- Stats strip ---------- */
.stats {
    margin: 80px 0 24px;
    padding: 32px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fbf8f1, #efe9dd);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at var(--mx, 50%) var(--my, 50%), rgba(184, 169, 143, .18), transparent 60%);
    pointer-events: none;
    transition: background-position .2s;
}

.stat {
    position: relative;
    z-index: 1
}

.stat .n {
    font-family: "Fraunces", serif;
    font-weight: 700;
    color: var(--ink);
    font-size: 40px;
    line-height: 1
}

.stat .l {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: 6px
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.site-footer .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px
}

/* Animated divider */
.svg-divider {
    display: block;
    margin: 0 auto;
    width: 120px;
    height: 24px;
    color: var(--accent-2)
}

.svg-divider path {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw 2.5s ease-in-out infinite alternate;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {

    .society,
    .society.reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 0
    }

    .society.reverse .media {
        order: 0
    }

    .society.reverse .copy {
        order: 0
    }

    .stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .nav {
        display: none
    }

    .cursor-glow {
        display: none
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }

    .reveal,
    .society .copy>* {
        opacity: 1 !important;
        transform: none !important
    }

    .hero h1 .ch {
        opacity: 1 !important;
        transform: none !important
    }
}