/* ================================
   SANTOS ARMADA — About Page
   Colonial Wall Aesthetic
================================ */

.about-page {
    background-color: #b5793a;
    color: #2a1f14;
}

/* --- Texture overlay for the warm wall feel --- */
.about-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
}

.about-page .navbar {
    background-color: rgba(74, 50, 25, 0.95);
    border-bottom: 0.5px solid rgba(42, 31, 20, 0.3);
}

/* This page has no top banner, only the bottom one — override the
   shared body.has-site-banners padding-top/navbar-offset from
   style.css (needs body.about-page to out-specificity it so other
   pages using that banner, like index.html, are untouched). */
body.about-page.has-site-banners {
    padding-top: 0;
}

body.about-page.has-site-banners .navbar {
    top: 0;
}

/* Underline the active nav link, same pattern as the OLA pages'
   Audiolibros link and globe.html's Space and Time link — style.css
   has no underline/active mechanism at all, so it's added here,
   scoped to this page only. */
.about-page .nav-links a {
    position: relative;
}

.about-page .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.about-page .nav-links a:hover::after,
.about-page .nav-links a.active::after {
    transform: scaleX(1);
}

.about-page .nav-links a.active {
    color: var(--gold);
}

/* --- About Hero --- */
.about-hero {
    padding: 80px 48px;
    position: relative;
    z-index: 2;
}

.about-hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-portrait {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 4px;
    border: 3px solid #2a1f14;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.7);
    animation: portraitGrow 1.2s ease-out forwards;
}

@keyframes portraitGrow {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.about-portrait-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.about-name {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-align: center;
}

.about-name-effect {
    display: inline-flex;
}

.about-name .char {
    display: inline-block;
    white-space: pre;
    will-change: transform, opacity, background;
}

.about-hero-text {
    flex: 1;
}

.about-label {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2a1f14;
    margin-bottom: 16px;
    border-bottom: 2px solid #2a1f14;
    display: inline-block;
    padding-bottom: 6px;
}

.about-intro,
.about-body {
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.8;
    color: #2a1f14;
    margin-bottom: 18px;
}

/* --- Full Width Images --- */
.about-fullwidth-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1448 / 1086;
    z-index: 2;
}

.about-fullwidth {
    width: 100%;
    height: auto;
    display: block;
    max-height: 900px;
    object-fit: contain;
    background-color: #2a1f14;
}

.about-img-caption {
    position: absolute;
    bottom: 24px;
    left: 48px;
    font-family: var(--font-title);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f0e8d8;
    background-color: rgba(20, 14, 8, 0.7);
    padding: 10px 20px;
    border-radius: 2px;
}

/* --- About Sections --- */
.about-section {
    padding: 70px 48px;
    position: relative;
    z-index: 2;
}

.about-section-inner {
    max-width: 760px;
    margin: 0 auto;
}

.about-final {
    padding-bottom: 100px;
}

.about-final .about-body em {
    font-size: 22px;
    color: #2a1f14;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .about-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .about-portrait {
        width: 200px;
        height: 200px;
    }

    .about-name {
        font-size: 18px;
    }

    .about-hero {
        padding: 50px 24px;
    }

    .about-section {
        padding: 50px 24px;
    }

    .about-img-caption {
        left: 24px;
        font-size: 11px;
    }

    .about-fullwidth {
        max-height: 400px;
    }

    .about-intro,
    .about-body {
        font-size: 17px;
    }
}
@media (max-width: 768px) {
    .about-final-wrap .about-fullwidth {
        max-height: none;
    }
}
.about-link {
    color: #2a1f14;
    text-decoration: underline;
    text-decoration-color: rgba(42, 31, 20, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.about-link:hover {
    text-decoration-color: #2a1f14;
}

#about-portal-canvas {
    position: absolute;
    left: 14.8%;
    top: 39.44%;
    width: 70.32%;
    height: 53.99%;
    overflow: hidden;
    pointer-events: none;
}

#about-portal-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* The big painted sun/star in the doorway art (upper right, distinct
   from the ringed planet the vortex canvas orbits) gets a soft pulsing
   glow so it reads as alive rather than static -- two real RGBA cutouts
   (a tight hot core + a wider ambient bloom), baked from a radial
   gradient centered on the star's actual pixel position (found via
   color-threshold + connected-component analysis on the source photo,
   same technique used throughout the site), layered with
   mix-blend-mode:screen so it only ever brightens, never flattens the
   painted rings/rays already there. */
.about-portal-star-glow,
.about-portal-star-core {
    position: absolute;
    mix-blend-mode: screen;
    pointer-events: none;
}
.about-portal-star-glow {
    left: 48.48%;
    top: 31.95%;
    width: 34.94%;
    height: 27.89%;
    background-image: url(Images/about-portal-star-glow.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: about-star-pulse 3.4s ease-in-out infinite;
}
.about-portal-star-core {
    left: 55.79%;
    top: 37.73%;
    width: 20.32%;
    height: 16.26%;
    background-image: url(Images/about-portal-star-core.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: about-star-pulse 3.4s ease-in-out infinite;
    animation-delay: -0.4s;
}

@keyframes about-star-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1);    }
    50%      { opacity: 1;   transform: scale(1.08); }
}

/* 5 smaller standout stars elsewhere in the doorway art -- found the
   same way as the big one (color-threshold + brightness-peak search on
   the source photo, cross-checked visually against marked crops to
   rule out the decorative lantern silhouettes and the "milky way"
   band's own texture, which both false-positive on a naive brightness
   scan).

   First pass used the same round radial-gradient glow as the big star,
   but at this small size a round glow reads as a blob sitting on top
   of the star instead of the star itself lighting up -- it swallowed
   the actual painted sparkle/cross shape. Rebuilt each one as a real
   cutout of that star's own true pixels (a tight brightness-threshold
   mask of just its rays, connected-component-filtered to the blob
   touching its exact center so it can't pick up a neighboring speck),
   brightened, screen-blended on top of itself. Since the highlight is
   shaped exactly like the star, the sparkle/cross shape stays intact
   -- it just lights up, rather than growing an orb.

   Each star also gets its own hand-built keyframe (irregular stops,
   not an even sine breathe) and its own cycle duration, so they flicker
   like real atmospheric scintillation -- asynchronous and uneven --
   instead of five lights breathing in unison. */
.about-portal-sparkle {
    position: absolute;
    width: 4.991%;
    height: 3.994%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    mix-blend-mode: screen;
    pointer-events: none;
}

.about-portal-sparkle-1 {
    left: 21.301%; top: 47.860%;
    background-image: url(Images/about-portal-mini-sparkle-1.png);
    animation: about-twinkle-a 2.6s ease-in-out infinite;
}
.about-portal-sparkle-2 {
    left: 39.216%; top: 55.563%;
    background-image: url(Images/about-portal-mini-sparkle-2.png);
    animation: about-twinkle-b 3.4s ease-in-out infinite;
}
.about-portal-sparkle-3 {
    left: 50.980%; top: 47.076%;
    background-image: url(Images/about-portal-mini-sparkle-3.png);
    animation: about-twinkle-c 2.1s ease-in-out infinite;
}
.about-portal-sparkle-4 {
    left: 45.098%; top: 44.365%;
    background-image: url(Images/about-portal-mini-sparkle-4.png);
    animation: about-twinkle-d 3.9s ease-in-out infinite;
}
.about-portal-sparkle-5 {
    left: 41.711%; top: 74.750%;
    background-image: url(Images/about-portal-mini-sparkle-5.png);
    animation: about-twinkle-e 2.8s ease-in-out infinite;
}

@keyframes about-twinkle-a {
    0%   { opacity: 0.25; }
    9%   { opacity: 0.9;  }
    17%  { opacity: 0.35; }
    33%  { opacity: 1;    }
    41%  { opacity: 0.3;  }
    60%  { opacity: 0.75; }
    71%  { opacity: 0.25; }
    88%  { opacity: 0.85; }
    100% { opacity: 0.25; }
}
@keyframes about-twinkle-b {
    0%   { opacity: 0.3;  }
    14%  { opacity: 0.35; }
    22%  { opacity: 1;    }
    36%  { opacity: 0.3;  }
    50%  { opacity: 0.6;  }
    64%  { opacity: 0.9;  }
    77%  { opacity: 0.3;  }
    100% { opacity: 0.3;  }
}
@keyframes about-twinkle-c {
    0%   { opacity: 0.35; }
    12%  { opacity: 1;    }
    24%  { opacity: 0.3;  }
    45%  { opacity: 0.3;  }
    58%  { opacity: 0.8;  }
    73%  { opacity: 0.35; }
    90%  { opacity: 0.95; }
    100% { opacity: 0.35; }
}
@keyframes about-twinkle-d {
    0%   { opacity: 0.3;  }
    18%  { opacity: 0.85; }
    29%  { opacity: 0.3;  }
    31%  { opacity: 0.3;  }
    47%  { opacity: 1;    }
    55%  { opacity: 0.35; }
    80%  { opacity: 0.7;  }
    100% { opacity: 0.3;  }
}
@keyframes about-twinkle-e {
    0%   { opacity: 0.4;  }
    10%  { opacity: 0.4;  }
    20%  { opacity: 1;    }
    30%  { opacity: 0.35; }
    52%  { opacity: 0.9;  }
    63%  { opacity: 0.3;  }
    85%  { opacity: 0.75; }
    100% { opacity: 0.4;  }
}

/* Santos Armada emblem eyes (the crest between "Santos" and "Armada"
   in the doorway sign) -- same "Terminator eyes" glow-then-beam-flash
   treatment as .archives-eye on the main page's Archives card, just
   recolored white/cream instead of red and repositioned/resized for
   this much smaller face. Position measured with a Python/PIL
   brightness-threshold + connected-component scan of the source photo
   (Images/about-portal.jpg), then corrected against the LIVE rendered
   page: each eye is actually two separate white lobes (split by a dark
   line through the middle), and the first full-image scan's blob
   centroid landed on the upper lobe only, pulling the glow noticeably
   above the eye. Re-measured by drawing the rendered <img> to a canvas
   at its on-screen size and comparing the scanned blob centers directly
   against the glow div's own getBoundingClientRect() in the same
   viewport coordinates, which showed the glow sitting ~5.5px (0.83% of
   the image height) too high; the top values below include that
   correction. Shares the archives-eye-glow / archives-beam-flash
   keyframes since only color lives in this class, not the keyframes. */
.portal-emblem-eyes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.portal-emblem-eye {
    position: absolute;
    width: 1.7%;
    height: 1.35%;
    margin-left: -0.85%;
    margin-top: -0.675%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, #ffffff 0%, #fff8ea 32%, #d9c9a8 68%, transparent 85%);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 6px rgba(255, 250, 230, 0.75));
    animation: archives-eye-glow 2.5s ease-in-out infinite;
}

.portal-emblem-eye-left { left: 47.93%; top: 19.07%; }
.portal-emblem-eye-right { left: 51.53%; top: 19.07%; animation-delay: 0.05s; }

.portal-emblem-eye::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -9000%;
    width: 1px;
    height: 19000%;
    margin-left: -0.5px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 250, 235, 0.9) 42%, #fff 50%, rgba(255, 250, 235, 0.9) 58%, transparent 100%);
    filter: drop-shadow(0 0 3px rgba(255, 250, 235, 0.85)) drop-shadow(0 0 9px rgba(255, 240, 210, 0.55));
    transform: scaleY(0);
    transform-origin: center;
    opacity: 0;
    animation: archives-beam-flash 2.5s ease-in-out infinite;
}

.portal-emblem-eye-right::before { animation-delay: 0.05s; }

/* Single horizontal streak across both eyes, on top of the two vertical
   beams -- same idea as archives-beam-flash (a scaleY bar spanning well
   past the card, clipped by the wrapper's overflow:hidden) just rotated
   90deg into a scaleX bar, and only ONE of them (not one per eye) since
   it's meant to read as a single flash slicing across the whole emblem
   rather than two separate beams. Sits at the same top:% as the eyes
   (both are the same y already) so it cuts right through the pupils.

   First version anchored the -9000%/19000% span directly to the whole
   image width, instead of to a small local box the way the vertical
   beams anchor to their own tiny eye element. That put the gradient's
   fade zones tens of image-widths outside the visible frame, so instead
   of a beam with a soft glow/falloff like the vertical ones, the visible
   slice was just its flat, hard-edged solid-white middle -- same color,
   very different "size"/character. Fixed by giving it its own small
   anchor box (matching the eye box's 1.35% dimension exactly) centered
   between the two eyes, so the percentages resolve at the same scale and
   the falloff reads the same as the vertical beams. */
.portal-emblem-hstreak-anchor {
    position: absolute;
    width: 1.35%;
    height: 1.35%;
    left: 49.73%;
    top: 19.07%;
    margin-left: -0.675%;
    margin-top: -0.675%;
}

.portal-emblem-hstreak-anchor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -9000%;
    width: 19000%;
    height: 1px;
    margin-top: -0.5px;
    background: linear-gradient(to right, transparent 0%, rgba(255, 250, 235, 0.9) 42%, #fff 50%, rgba(255, 250, 235, 0.9) 58%, transparent 100%);
    filter: drop-shadow(0 0 3px rgba(255, 250, 235, 0.85)) drop-shadow(0 0 9px rgba(255, 240, 210, 0.55));
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0;
    animation: portal-hstreak-flash 2.5s ease-in-out infinite;
}

@keyframes portal-hstreak-flash {
    0%, 34% { opacity: 0; transform: scaleX(0); }
    37%     { opacity: 1; transform: scaleX(1); }
    40%     { opacity: 1; transform: scaleX(1); }
    46%     { opacity: 0; transform: scaleX(1); }
    100%    { opacity: 0; transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .portal-emblem-eye {
        animation: none;
        opacity: 0.85;
    }
    .portal-emblem-eye::before {
        animation: none;
        opacity: 0;
    }
    .portal-emblem-hstreak-anchor::before {
        animation: none;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-portal-star-glow,
    .about-portal-star-core,
    .about-portal-sparkle {
        animation: none;
        opacity: 0.85;
    }
}

/* ===== POR QUÉ SANTOS ARMADA — side-by-side on desktop ===== */
.about-final-wrap {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-final-wrap .about-fullwidth-img {
    aspect-ratio: auto;
    height: auto;
    flex: 1 1 50%;
    margin: 0;
}

.about-final-wrap .about-section {
    flex: 1 1 50%;
}

@media (max-width: 800px) {
    .about-final-wrap {
        flex-direction: column;
    }
}

/* --- Footer link hover states --- */
.footer-links a{
    transition: color 0.2s ease;
}
.footer-links a:hover{
    color:#000;
    text-decoration:underline;
}

.footer-logo-link{
    transition: color 0.2s ease;
}
.footer-logo-link .footer-title{
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.footer-logo-link:hover .footer-title{
    color:#000;
    text-decoration:underline;
}

.footer-logo{
    transition: filter 0.2s ease;
}
.footer-logo-link:hover .footer-logo{
    filter: brightness(0);
}

/* --- Nav logo hover state (matches footer hover) --- */
.about-page .nav-title{
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.about-page .nav-logo:hover .nav-title{
    color:#000;
    text-decoration:underline;
}

.about-page .nav-crest{
    transition: filter 0.2s ease;
}
.about-page .nav-logo:hover .nav-crest{
    filter: brightness(0);
}