/* ===== About1 Section — hero =====
   TWEAK EVERYTHING HERE: the CSS variables below control the name title, subtitle,
   padding, the line above the name, and the bottom video vignette. */
.about1-section {
    --hero-title-size: 3.5rem;       /* "DANIEL SIERRA" font size */
    --hero-subtitle-size: 1.15rem;   /* subtitle font size */
    --hero-padding: 150px 80px;            /* space from the bottom-left corner */
    --hero-max-width: 800px;         /* wrap width of the name block (subtitle) */
    --hero-line-thickness: 3px;      /* thickness of the line above the name */
    --hero-line-width: min(700px, 100%);  /* length of the line (shrinks to fit on narrow screens) */
    --hero-line-color-a: var(--color-text);   /* left color of the line gradient */
    --hero-line-color-b: var(--color-text);  /* right color of the line gradient */
    --hero-line-gap: 24px;           /* gap between the line and the title */
    --hero-title-gap: 12px;          /* gap between the title and the subtitle */
    --hero-vignette-height: 42vh;    /* how tall the bottom black fade is */
    --hero-vignette-strength: 1.00;  /* darkness at the very bottom (0 = none, 1 = solid black) */

    position: relative;
    height: 100vh;    /* fallback for browsers without dvh */
    height: 100dvh;   /* mobile-safe: fills the VISIBLE viewport, excluding the phone's browser UI,
                         so the bottom-pinned title never hides behind Safari/Chrome's toolbar */
    background: var(--color-background);
    color: var(--color-text);
    overflow: hidden;
}

.about1-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Soft black fade rising from the bottom so the name reads over the video */
.about1-vignette {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--hero-vignette-height);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top,
        color-mix(in srgb, var(--color-background) calc(var(--hero-vignette-strength) * 100%), transparent) 0%,
        transparent 100%);
}

/* Name block, pinned bottom-left */
.about1-hero {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: var(--hero-padding);
    max-width: var(--hero-max-width);
}

.about1-hero-line {
    width: var(--hero-line-width);
    height: var(--hero-line-thickness);
    margin: 0 0 var(--hero-line-gap);
    border: none;
    /* Smooth two-color gradient from --hero-line-color-a to -b */
    background: linear-gradient(to right, var(--hero-line-color-a), var(--hero-line-color-b));
}

.about1-hero-title {
    margin: 0;
    color: var(--color-text);
    font-size: var(--hero-title-size);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.03em;
}

.about1-hero-subtitle {
    margin: var(--hero-title-gap) 0 0;
    color: var(--color-text);
    font-size: var(--hero-subtitle-size);
    font-weight: 400;
    line-height: 1.4;
}

/* ===== About2 Section — full-screen two-column intro. ===== */
.about2-section {
    --about2-min-height: 100dvh;  /* full screen — dvh excludes the mobile browser UI (grows if taller) */
    --about2-col-gap: 200px;       /* space between the two text columns */
    --about2-max-width: 1300px;   /* overall content width */
    --about2-vignette-height: 42vh;  /* height of the bottom fade to the background color */

    position: relative;
    min-height: 100vh;    /* fallback for browsers without dvh */
    min-height: var(--about2-min-height);
    display: flex;
    align-items: center;
    background: var(--color-background);
    color: var(--color-text);
    padding: 20px 20px;
}

/* Bottom vignette: fades the background image up into the background color */
.about2-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--about2-vignette-height);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, var(--color-background) 0%, transparent 100%);
}

.about2-columns {
    position: relative;
    z-index: 2;   /* keep the columns above the bottom vignette */
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--about2-col-gap);
    width: 100%;
    max-width: var(--about2-max-width);
    margin: 0 auto;
}

/* Each column gets a translucent backing (background color @ 40%) so text stays
   readable over the photo. Tweak the 40% to change the opacity. */
.about2-col {
    background: color-mix(in srgb, var(--color-background) 70%, transparent);
    padding: 32px;
}

.about2-heading {
    margin: 0 0 1.2rem;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.about2-col p {
    color: var(--color-text);
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 1.2em;
}

.about2-col ul {
    margin: 0 0 1.2em;
    padding-left: 1.2em;
}

.about2-col li {
    color: var(--color-text);
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 0.4em;
}

/* Responsive */
@media (max-width: 768px) {
    .about1-section {
        --hero-title-size: 1.9rem;
        --hero-subtitle-size: 1rem;
        --hero-padding: 32px;
    }

    .about2-columns {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}
