/* Refinements for the 1908 editorial identity. */
:root {
    --gold: #dfbe73;
    --gold-soft: #e5cc99;
    --olive: #435442;
    --olive-dark: #344332;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}
body { -webkit-font-smoothing: antialiased; }
::selection { background: #dfbe73; color: #151510; }
section[id] { scroll-margin-top: 90px; }
:where(a, button, input, textarea):focus-visible {
    outline: 3px solid #b98937;
    outline-offset: 5px;
}
.button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 58px;
    padding: 17px 26px;
    gap: 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .1px;
    text-transform: none;
    line-height: 1.4;
    transition: transform .3s var(--ease-out), box-shadow .3s ease, background .3s ease;
}
.button::after {
    content: "↗";
    font-size: 22px;
    font-weight: 400;
    transition: transform .3s var(--ease-out);
}
.button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 25%, #ffffff40 50%, transparent 75%);
    transform: translateX(-130%);
    transition: transform .65s ease;
}
.button-gold { box-shadow: 0 8px 28px #00000018; }
.button-dark { background: var(--olive-dark); }
.button:active { transform: translateY(0) scale(.98); }
.button:disabled { cursor: default; opacity: .7; }
.text-link, .coffee-editorial-copy a {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 48px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: .1px;
    transition: color .25s ease, border-color .25s ease;
}
.text-link::after, .coffee-editorial-copy a::after {
    content: "↗";
    font-size: 21px;
    transition: transform .3s var(--ease-out);
}
.hero .text-link {
    padding: 14px 24px;
    border: 1px solid #ffffff65;
    border-radius: 999px;
    background: #ffffff09;
    backdrop-filter: blur(8px);
}
.header {
    background: linear-gradient(#05080565, transparent);
}
.header.scrolled {
    background: #f2efe8ed;
    box-shadow: 0 6px 30px #15151008;
}
.desktop-nav { gap: clamp(14px, 2vw, 30px); font-size: 11px; letter-spacing: .5px; }
.desktop-nav a { padding: 12px 0; }
.desktop-nav a::after { bottom: 4px; height: 2px; border-radius: 2px; }
.desktop-nav a.is-current::after { width: 100%; }
.desktop-nav a[href="#samples"] {
    padding: 12px 18px;
    border: 1px solid currentColor;
    border-radius: 999px;
}
.desktop-nav a[href="#samples"]::after { display: none; }
.language-switch {
    padding: 4px;
    gap: 2px;
    border: 1px solid #88888840;
    border-radius: 999px;
}
.language-switch > span { display: none; }
.lang-btn { min-width: 38px; min-height: 34px; padding: 8px; border-radius: 999px; opacity: .75; }
.lang-btn.active { background: var(--gold-soft); color: var(--black); }
.lang-btn.active::after { display: none; }
.hero { min-height: 760px; }
.hero-content { padding-bottom: clamp(64px, 9vh, 100px); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: #e5cc99;
    font-size: 11px;
    letter-spacing: 2.2px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero h1 {
    max-width: 1000px;
    font-size: clamp(58px, 7.6vw, 112px);
    line-height: 1.04;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.hero-description { max-width: 530px; margin-top: 26px; font-size: 17px; color: #ffffffd9; line-height: 1.8; }
.hero-buttons { margin-top: 32px; gap: 16px; flex-wrap: wrap; }
.hero-content > * { animation: heroEnter 1s var(--ease-out) both; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-content > :nth-child(4) { animation-delay: .36s; }
@keyframes heroEnter {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}
.section-label { font-size: 11px; letter-spacing: 2.2px; }
.manifesto-title { color: var(--olive-dark); line-height: 1.02; letter-spacing: -.045em; }
:is(.origins-header, .coffees-header, .projects-header, .cinematic-content, .samples-copy, .statement-copy) h2,
.origin-story-copy h3 { line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.manifesto-text { gap: 24px 32px; }
.manifesto-text p, .origin-body p { font-size: 16px; line-height: 1.85; }
.editorial-image { border-radius: 18px; }
.cinematic-image { border-radius: 0; }
.origins { background: #e9dfcb; }
.coffee-editorial { min-width: 0; }
.coffee-editorial-copy { padding: 28px 6px; }
.coffee-editorial-copy > p { color: #ffffffb8; line-height: 1.7; }
.coffee-tags span { padding: 9px 14px; font-size: 11px; letter-spacing: .5px; background: #ffffff05; }
.coffee-score { background: #e5cc99ee; backdrop-filter: blur(8px); }
.samples-copy { background: linear-gradient(145deg, #435442, #26372c); }
.samples-copy h2 { font-size: clamp(48px, 5.2vw, 76px); }
.samples-copy p { font-size: 17px; line-height: 1.85; color: #ffffffe0; }
.contact-form { gap: 28px; }
.form-group { min-width: 0; }
.form-group label { font-size: 11px; letter-spacing: 1px; color: var(--olive-dark); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #43544233;
    border-radius: 12px;
    background: #ffffff55;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group :is(input, textarea):focus {
    border-color: var(--olive);
    background: #ffffffb3;
    box-shadow: 0 0 0 4px #4354420c;
}
.contact-form .button { grid-column: 1 / -1; justify-self: start; }
.reveal { transform: translateY(30px); transition-duration: .8s; transition-delay: var(--reveal-delay, 0ms); }
.project-row { gap: 12px; }
.project-row strong { color: var(--olive-dark); }
.menu-button span { transition: transform .3s ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
body.menu-open .header { color: white; background: #151510; }
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 1100;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}
@media (hover: hover) {
    .button:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #00000020; }
    .button:hover::before { transform: translateX(130%); }
    .button:hover::after, .text-link:hover::after, .coffee-editorial-copy a:hover::after { transform: translate(3px, -3px); }
    .hero .text-link:hover { background: #ffffff1a; border-color: #ffffffaa; }
}
@media (max-width: 1050px) {
    .coffees-header, .projects-header { grid-template-columns: 1fr 2fr; gap: 24px; }
}
@media (max-width: 760px) {
    section[id] { scroll-margin-top: 78px; }
    .hero { height: auto; min-height: max(700px, 100svh); }
    .hero-content { padding: 128px 6vw 64px; }
    .hero h1 { font-size: clamp(44px, 12.5vw, 76px); }
    .eyebrow { font-size: 10px; letter-spacing: 1.4px; }
    .hero-description { font-size: 15px; }
    .hero-buttons { align-items: stretch; gap: 12px; }
    .hero-buttons :is(.button, .text-link) { justify-content: space-between; width: 100%; }
    .button { font-size: 14px; padding-inline: 22px; }
    .manifesto-title { font-size: clamp(52px, 14vw, 78px); }
    .coffees-header, .projects-header { display: block; margin-bottom: 45px; }
    .coffees-header h2, .projects-header h2 { margin-top: 24px; font-size: clamp(44px, 12vw, 74px); }
    .origin-story-image { min-height: 360px; height: 110vw; }
    .coffee-editorial-image { height: 110vw; min-height: 360px; max-height: 580px; }
    .samples-copy, .contact-form { padding: 72px 6vw; }
    .samples-copy h2 { font-size: clamp(48px, 13vw, 78px); }
    .contact-form { gap: 24px 16px; }
    .project-row { grid-template-columns: 28px minmax(0, 1fr) 22px; }
    .project-row h3 { font-size: clamp(24px, 6.5vw, 36px); line-height: 1.2; }
    .footer-bottom { gap: 20px; flex-wrap: wrap; }
}
@media (max-width: 420px) {
    .contact-form { grid-template-columns: 1fr; }
    .statement-copy h2 { font-size: 15vw; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .statement-logo { transform: translate(-50%, -50%) !important; }
}
