/* Hero: full-bleed video, dimmed, text on top */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 88vh;
    min-height: 88svh;
    background: #1d1813;
    color: #fff;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 50%;
    filter: sepia(0.4) saturate(0.55) contrast(1.02) brightness(0.86);
}
.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(28, 22, 15, 0.78) 0%,
            rgba(28, 22, 15, 0.5) 50%,
            rgba(28, 22, 15, 0.28) 100%
        ),
        linear-gradient(
            180deg,
            rgba(28, 22, 15, 0.4) 0%,
            rgba(28, 22, 15, 0) 32%,
            rgba(28, 22, 15, 0.42) 100%
        );
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    /* A flex item with auto side margins does not stretch, so force the full
       container width to line up with the header. */
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 48px;
    row-gap: 40px;
    padding-top: 168px;
    padding-bottom: clamp(56px, 9vh, 104px);
}
.hero .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}
.hero h1 {
    color: #fff;
    margin-bottom: 26px;
}
.hero h1 em {
    color: #efe6d6;
}
.hero .subtitle {
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 0;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    padding-bottom: 8px;
}
.hero .link {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.75);
}
.hero .link:hover {
    color: #efe6d6;
}
.hero .ticker {
    position: relative;
    z-index: 1;
}
.hero .fade-in {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .delay-2 {
    animation-delay: 0.12s;
}
.hero .delay-3 {
    animation-delay: 0.24s;
}
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* Ticker with practice areas */
.ticker {
    overflow: hidden;
    background: var(--beige);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
}
.ticker-track {
    display: flex;
    gap: 44px;
    white-space: nowrap;
    width: max-content;
    animation: ticker 36s linear infinite;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.ticker-track i {
    font-style: normal;
    color: var(--khaki);
}
@keyframes ticker {
    to {
        transform: translateX(-50%);
    }
}

/* Sections */
.section {
    padding: clamp(80px, 10vw, 132px) 0;
}
.section-alt {
    background: var(--beige);
}
.section-deep {
    background: var(--beige-deep);
}
.section-border {
    border-top: 1px solid var(--line);
}
.section h2 {
    margin-bottom: 24px;
}
.section .subtitle {
    margin-bottom: 24px;
}
.section p + p {
    margin-top: 18px;
}
.section .link {
    display: inline-block;
    margin-top: 30px;
}
.centered {
    text-align: center;
}
.centered h2,
.centered .subtitle,
.centered p {
    margin-left: auto;
    margin-right: auto;
}
.centered .lead {
    max-width: 52ch;
}
.centered .subtitle {
    max-width: 32ch;
}

/* History: full-bleed video behind centered text */
.history {
    position: relative;
    overflow: hidden;
    background: #8c8478;
    color: #fff;
    padding: clamp(129px, 17.2vw, 226px) 0;
}
.history-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    filter: saturate(0.4) brightness(0.72) contrast(0.9);
}
.history-shade {
    position: absolute;
    inset: 0;
    background: rgba(108, 98, 86, 0.62);
    pointer-events: none;
}
.history .container {
    position: relative;
    z-index: 1;
}
.history h2,
.history p {
    color: #fff;
}
.history .subtitle {
    color: rgba(255, 255, 255, 0.86);
}
.history .lead {
    color: rgba(255, 255, 255, 0.92);
}

/* Media frames (images in the content sections) */
.media {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--beige);
}
.media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-square {
    aspect-ratio: 1 / 1;
}
/* Grows the frame 10% past its grid column, keeping the right edge aligned */
.media-grow {
    width: 110%;
    margin-left: -10%;
}
.media-portrait {
    aspect-ratio: 4 / 5;
}
.media-portrait img {
    object-position: 50% 30%;
}
#advisory .advisory-image {
    width: 100%;
    aspect-ratio: 650 / 508;
    border-radius: 22px;
}

#advisory .advisory-image img {
    object-fit: contain;
}
#advisory .grid {
    align-items: center;
}

/* Image placeholders: clearly marked */
.placeholder {
    position: relative;
    border-radius: var(--radius);
    background: linear-gradient(165deg, #ece5d9 0%, #f5f0e8 52%, #e7dfd2 100%);
    aspect-ratio: 4/5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder::after {
    content: "";
    position: absolute;
    left: -15%;
    right: -15%;
    bottom: -48%;
    height: 86%;
    border-radius: 50%;
    background: radial-gradient(
        closest-side,
        rgba(255, 255, 255, 0.7),
        transparent 72%
    );
    pointer-events: none;
}
.placeholder-wide {
    aspect-ratio: 3/2;
}
.placeholder-wide span::after {
    content: "3:2";
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 64px;
}
.steps > div {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px 32px;
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}
.steps > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(60, 55, 40, 0.07);
}
.step-number {
    font-family: var(--serif);
    font-style: italic;
    color: var(--khaki);
    font-size: 34px;
    line-height: 1;
    margin-bottom: 22px;
}
.steps h3 {
    margin-bottom: 10px;
}
.steps p {
    color: var(--text-muted);
    font-size: 15.5px;
}

/* Advisory areas */
.areas {
    list-style: none;
    margin-top: 40px;
    max-width: 440px;
}
.areas li {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.2;
}
.areas li:last-child {
    border-bottom: 1px solid var(--line);
}

/* Tools: two cards */
.tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 64px;
}
.tools > div {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(30px, 3.6vw, 52px);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}
.tools > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(60, 55, 40, 0.07);
}
.tools h3 {
    margin-bottom: 14px;
}
.tools p {
    margin-bottom: 28px;
    color: var(--text-muted);
    font-size: 15.5px;
}

/* Three columns */
.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 56px;
}
.three-col > div {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}
.three-col h3 {
    font-size: 22px;
    margin-bottom: 10px;
}
.three-col p {
    color: var(--text-muted);
    font-size: 15.5px;
}

/* Contact */
.contact-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.contact-actions a.link {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 900px) {
    .media-left {
        order: 1;
    }
    .steps,
    .three-col,
    .tools {
        grid-template-columns: 1fr;
    }
    .three-col {
        gap: 32px;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        align-items: end;
        padding-top: 132px;
        padding-bottom: 48px;
    }
    .hero h1 {
        max-width: none;
    }
    .hero-shade {
        background: linear-gradient(
            180deg,
            rgba(28, 22, 15, 0.5) 0%,
            rgba(28, 22, 15, 0.3) 40%,
            rgba(28, 22, 15, 0.72) 100%
        );
    }
    .history {
        padding: 118px 0;
    }
    .media-grow {
        width: 100%;
        margin-left: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero .fade-in {
        animation: none;
    }
    .ticker-track {
        animation: none;
    }
}
