/* ═══════════════════════════════════════════
   ASRAT ORGANISATION — standalone brand page
   Editorial · oversized display type · single gold accent
   Self-contained: does not depend on style.css
   ═══════════════════════════════════════════ */

:root {
    --a-ink: #171310;
    --a-ink-soft: #4a4239;
    --a-paper: #FBF8F1;
    --a-cream: #F1EADB;
    --a-cream-2: #E8DFCC;
    --a-gold: #B8860B;
    --a-gold-bright: #D4A017;
    --a-green: #1A7A2E;
    --a-line: rgba(23, 19, 16, 0.14);

    --a-display: 'Bodoni Moda', 'Noto Serif Ethiopic', Georgia, serif;
    --a-body: 'Source Sans 3', 'Noto Sans Ethiopic', -apple-system, BlinkMacSystemFont, sans-serif;
    --a-ethiopic: 'Noto Serif Ethiopic', 'Noto Sans Ethiopic', serif;
    --a-ethiopic-display: 'Abyssinica SIL', 'Noto Serif Ethiopic', serif;

    --a-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --a-topbar-h: 64px;
}

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

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

body.asrat-page {
    font-family: var(--a-body);
    background: var(--a-paper);
    color: var(--a-ink);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.asrat-container { width: min(90%, 1080px); margin: 0 auto; }

/* ═══════════ TOP BAR ═══════════ */
.asrat-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--a-topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.1rem, 4vw, 3rem);
    color: #fff;
    transition: background 0.4s var(--a-ease), color 0.4s var(--a-ease), box-shadow 0.4s var(--a-ease);
}
.asrat-topbar.scrolled {
    background: rgba(251, 248, 241, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--a-ink);
    box-shadow: 0 1px 0 var(--a-line);
}

.asrat-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--a-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: opacity 0.25s;
}
.asrat-back:hover { opacity: 0.65; }
.asrat-back-arrow { transition: transform 0.25s var(--a-ease); }
.asrat-back:hover .asrat-back-arrow { transform: translateX(-4px); }

/* Language switch */
.asrat-lang { display: inline-flex; gap: 2px; }
.lang-opt {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    font-family: var(--a-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 6px 9px;
    cursor: pointer;
    transition: opacity 0.2s, color 0.2s;
}
.lang-opt:hover { opacity: 1; }
.lang-opt.active { opacity: 1; color: var(--a-gold-bright); }
.asrat-topbar.scrolled .lang-opt.active { color: var(--a-gold); }

/* ═══════════ HERO ═══════════ */
.asrat-hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0d0b09;
    overflow: hidden;
}

.asrat-hero-slides { position: absolute; inset: 0; z-index: 0; }

.asrat-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1;
    transform: scale(1.06);
    animation: aSlideOpacity 42s infinite cubic-bezier(0.45, 0, 0.2, 1),
               aSlideZ 42s infinite step-end;
    will-change: opacity, transform;
}
.asrat-slide-1 { background-image: url('../assets/images/gondar-sunset.jpg');        animation-delay: 0s; }
.asrat-slide-2 { background-image: url('../assets/images/hero-lalibela.jpg');        animation-delay: -35s; }
.asrat-slide-3 { background-image: url('../assets/images/asrat-farming-fields.jpg'); animation-delay: -28s; }
.asrat-slide-4 { background-image: url('../assets/images/asrat-classroom.jpg');      animation-delay: -21s; }
.asrat-slide-5 { background-image: url('../assets/images/asrat-coffee-drying.jpg');  animation-delay: -14s; }
.asrat-slide-6 { background-image: url('../assets/images/asrat-lab-dark.jpg');       animation-delay: -7s; }

@keyframes aSlideOpacity {
    0%      { opacity: 1; transform: scale(1.06); }
    13%     { opacity: 1; transform: scale(1.0); }
    16.66%  { opacity: 0; transform: scale(0.99); }
    16.7%   { opacity: 1; transform: scale(1.06); }
    100%    { opacity: 1; transform: scale(1.06); }
}
@keyframes aSlideZ {
    0%      { z-index: 10; }
    16.66%  { z-index: 1; }
    83.33%  { z-index: 2; }
    100%    { z-index: 2; }
}

.asrat-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(180deg, rgba(13,11,9,0.55) 0%, rgba(13,11,9,0.28) 30%, rgba(13,11,9,0.5) 70%, rgba(13,11,9,0.82) 100%);
}

.asrat-hero-inner {
    position: relative;
    z-index: 4;
    padding: 0 4%;
}

/* Staggered hero load-in */
@keyframes aWordReveal {
    0%   { opacity: 0; clip-path: inset(0 0 100% 0); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes aFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes aFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.asrat-wordmark {
    font-family: var(--a-display);
    font-weight: 900;
    font-size: clamp(4.5rem, 27vw, 23rem);
    line-height: 0.82;
    letter-spacing: -0.015em;
    color: rgba(255, 255, 255, 0.07);
    -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.96);
    text-stroke: 2.5px rgba(255, 255, 255, 0.96);
    text-shadow: 0 4px 34px rgba(0, 0, 0, 0.5);
    animation: aWordReveal 1.25s var(--a-ease) 0.15s both;
}

.asrat-word-sub {
    font-family: var(--a-body);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    font-size: clamp(0.8rem, 2.4vw, 1.5rem);
    color: rgba(255,255,255,0.92);
    margin-top: clamp(0.6rem, 1.5vw, 1.1rem);
    animation: aFadeUp 0.9s var(--a-ease) 0.75s both;
}

.asrat-word-am {
    font-family: var(--a-body);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.9vw, 1.25rem);
    color: rgba(255,255,255,0.62);
    letter-spacing: 0.16em;
    text-transform: none;
    margin-top: 1.1rem;
    animation: aFadeIn 1s var(--a-ease) 1s both;
}

/* Amharic logo lockup — Ethiopic wordmark sized to match ASRAT */
html[lang="am"] .asrat-wordmark {
    font-family: var(--a-ethiopic-display);
    font-weight: 400;
    font-size: clamp(3.7rem, 23vw, 20rem);
    letter-spacing: 0.01em;
    line-height: 1.0;
    text-shadow: 0 6px 44px rgba(0,0,0,0.42);
}
html[lang="am"] .asrat-word-sub {
    letter-spacing: 0.32em;
    padding-left: 0.32em;
}
html[lang="am"] .asrat-footer-mark {
    font-family: var(--a-ethiopic-display);
    font-weight: 400;
    font-size: clamp(3rem, 17vw, 11rem);
    letter-spacing: 0.02em;
    line-height: 1.05;
}

/* Scroll cue */
.asrat-scroll {
    position: absolute;
    bottom: clamp(1.5rem, 4vh, 2.6rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.85);
    animation: aFadeIn 1s var(--a-ease) 1.25s both;
}
.asrat-scroll-label {
    font-family: var(--a-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    padding-left: 0.24em;
}
.asrat-scroll-arrow { animation: aBounce 2.2s ease-in-out infinite; }
@keyframes aBounce {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50%      { transform: translateY(7px); opacity: 1; }
}

/* ═══════════ INTRO / LETTER ═══════════ */
.asrat-intro {
    padding: clamp(5rem, 13vh, 9.5rem) 0 clamp(3rem, 7vh, 5rem);
    background: var(--a-paper);
    position: relative;
    overflow: hidden;
}
.asrat-intro > .asrat-container { position: relative; z-index: 1; }

.asrat-eyebrow {
    font-family: var(--a-body);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--a-gold);
    margin-bottom: 1.4rem;
}

.asrat-lead {
    font-family: var(--a-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-wrap: balance;
    max-width: 16ch;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.asrat-letter { max-width: 66ch; }
.asrat-letter p {
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    line-height: 1.95;
    color: var(--a-ink-soft);
    margin-bottom: 1.6rem;
}
.asrat-letter p:last-child { margin-bottom: 0; }

.asrat-drop::first-letter {
    font-family: var(--a-display);
    font-weight: 900;
    float: left;
    font-size: 4.4em;
    line-height: 0.72;
    padding: 0.06em 0.12em 0 0;
    color: var(--a-ink);
}

/* ═══════════ PILLARS ═══════════ */
.asrat-pillars { background: var(--a-paper); }

.asrat-pillar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-top: 1px solid var(--a-line);
}
.asrat-pillar:nth-child(even) { flex-direction: row-reverse; }

.asrat-pillar-media {
    flex: 1 1 46%;
    min-height: clamp(300px, 46vw, 520px);
    background-size: cover;
    background-position: center;
}

.asrat-pillar-body {
    flex: 1 1 54%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
    background: var(--a-paper);
}
.asrat-pillar:nth-child(even) .asrat-pillar-body { background: var(--a-cream); }

.asrat-pillar-content {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 44ch;
}
/* Even rows: push the whole text block against the right-hand image while
   every line keeps one clean left start */
.asrat-pillar:nth-child(even) .asrat-pillar-content { margin-left: auto; }

.asrat-pillar-num {
    font-family: var(--a-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1;
    color: var(--a-gold);
}
.asrat-pillar-title {
    font-family: var(--a-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.asrat-pillar-text {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.8;
    color: var(--a-ink-soft);
    max-width: 44ch;
}

/* ═══════════ CLOSING ═══════════ */
.asrat-close {
    padding: clamp(5rem, 12vh, 9rem) 0;
    background: var(--a-cream);
    border-top: 1px solid var(--a-line);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.asrat-close > .asrat-container { position: relative; z-index: 1; }
.asrat-close-text {
    font-family: var(--a-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.4rem, 3.2vw, 2.4rem);
    line-height: 1.4;
    max-width: 22ch;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
    text-wrap: balance;
    color: var(--a-ink);
}
.asrat-signoff-line {
    font-size: 0.95rem;
    color: var(--a-ink-soft);
    margin-bottom: 0.3rem;
}
.asrat-signoff-name {
    font-family: var(--a-display);
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

/* ═══════════ FOOTER ═══════════ */
.asrat-footer {
    background: var(--a-ink);
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: clamp(3.5rem, 9vh, 6rem) 1.5rem clamp(2.5rem, 6vh, 4rem);
    overflow: hidden;
    position: relative;
}
.asrat-footer > * { position: relative; z-index: 1; }
.asrat-footer-mark {
    font-family: var(--a-display);
    font-weight: 900;
    font-size: clamp(3.5rem, 20vw, 13rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.08);
    margin-bottom: 1.5rem;
    user-select: none;
}
.asrat-footer-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--a-gold-bright);
    transition: opacity 0.25s;
}
.asrat-footer-back:hover { opacity: 0.7; }
.asrat-footer-back:hover .asrat-back-arrow { transform: translateX(-4px); }
.asrat-footer-copy {
    margin-top: 1.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
}

/* ═══════════ GRADIENT GLOW HIGHLIGHTS ═══════════ */
/* Heavily-blurred brand-colored radial glows. Each fade stays in-hue
   (alpha -> 0) so the spread ends cleanly instead of greying at the edge. */
.asrat-intro::before, .asrat-intro::after,
.asrat-close::before, .asrat-close::after,
.asrat-footer::before {
    content: '';
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
    will-change: transform;
}
/* Dominant yellow — under the heading */
.asrat-intro::before {
    width: min(54vw, 560px);
    top: 5%; left: 4%;
    background: radial-gradient(circle, rgba(212,160,23,0.46), rgba(212,160,23,0) 72%);
}
/* Green — pushed well below the yellow so they barely overlap, kept subtle */
.asrat-intro::after {
    width: min(36vw, 380px);
    top: 62%; left: 7%;
    background: radial-gradient(circle, rgba(26,122,46,0.16), rgba(26,122,46,0) 72%);
}
/* Second yellow — low on the right, bleeding toward the next section */
.asrat-glow-2 {
    position: absolute;
    z-index: 0;
    width: min(46vw, 480px);
    aspect-ratio: 1;
    top: 64%; right: -8%;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    will-change: transform;
    background: radial-gradient(circle, rgba(212,160,23,0.40), rgba(212,160,23,0) 72%);
    animation: aFloatB 20s ease-in-out infinite;
}

/* Intro + pillars share one continuous glow plane — no clip at the seam.
   The pillars background is transparent so the yellow above bleeds through,
   and the first card's text panel is transparent so the red reads behind it. */
.asrat-intro { overflow-x: clip; overflow-y: visible; }
.asrat-pillars { position: relative; overflow-x: clip; overflow-y: visible; background: transparent; }
.asrat-pillar { position: relative; z-index: 1; }
.asrat-pillar:first-of-type .asrat-pillar-body { background: transparent; }
.asrat-pillars::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: -150px; right: -9%;
    width: min(38vw, 400px);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    will-change: transform;
    background: radial-gradient(circle, rgba(198,40,40,0.18), rgba(198,40,40,0) 72%);
    animation: aFloatA 21s ease-in-out infinite;
}
.asrat-close::before {
    width: min(56vw, 580px);
    top: -20%; left: 6%;
    background: radial-gradient(circle, rgba(212,160,23,0.26), rgba(212,160,23,0) 72%);
}
.asrat-close::after {
    width: min(50vw, 500px);
    bottom: -22%; right: 4%;
    background: radial-gradient(circle, rgba(192,80,40,0.18), rgba(192,80,40,0) 72%);
}
.asrat-footer::before {
    width: min(64vw, 640px);
    top: 50%; left: 15%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
    background: radial-gradient(circle, rgba(212,160,23,0.24), rgba(212,160,23,0) 70%);
}

/* Slow, organic drift — each glow floats on its own cycle */
.asrat-intro::before  { animation: aFloatA 19s ease-in-out infinite; }
.asrat-intro::after   { animation: aFloatB 24s ease-in-out infinite; }
.asrat-close::before  { animation: aFloatB 21s ease-in-out infinite; }
.asrat-close::after   { animation: aFloatA 26s ease-in-out infinite; }
.asrat-footer::before { animation: aFloatFooter 11s ease-in-out infinite; }

@keyframes aFloatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(5%, 7%) scale(1.1); }
}
@keyframes aFloatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-6%, -5%) scale(1.08); }
}
@keyframes aFloatFooter {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-8%, -64%) scale(1.12); }
}

/* ═══════════ REVEAL ═══════════ */
.reveal-up {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.9s var(--a-ease), transform 1s var(--a-ease);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 760px) {
    .asrat-pillar,
    .asrat-pillar:nth-child(even) { flex-direction: column; }
    .asrat-pillar-media { flex-basis: auto; min-height: 240px; }
    .asrat-pillar:nth-child(even) .asrat-pillar-content { margin-left: 0; }
    .asrat-word-sub { letter-spacing: 0.38em; padding-left: 0.38em; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .asrat-slide { animation: none; opacity: 0; transform: scale(1); }
    .asrat-slide-1 { opacity: 1; z-index: 2; }
    .asrat-scroll-arrow { animation: none; }
    .asrat-wordmark, .asrat-word-sub, .asrat-word-am { animation: none; opacity: 1; clip-path: none; transform: none; }
    .asrat-scroll { animation: none; opacity: 1; }
    .asrat-intro::before, .asrat-intro::after, .asrat-glow-2, .asrat-pillars::before,
    .asrat-close::before, .asrat-close::after,
    .asrat-footer::before { animation: none; }
    .reveal-up { transition: none; }
}
