/* ============================================================
   Mexicana — restaurant template
   Design tokens
   ============================================================ */
:root {
    --cream: #f1eee8;
    --dark: #302e29;
    --white: #ffffff;
    --ink: #000000;
    --line: rgba(0, 0, 0, 0.18);
    --line-soft: rgba(0, 0, 0, 0.1);
    --serif: "Cormorant", Georgia, "Times New Roman", serif;
    --sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --container: 1180px;
    --wide: 1354px;
    --gutter: clamp(18px, 3vw, 43px);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --nav-h: 76px;
}

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100%;
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.2;
}

p { margin: 0 0 10px; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

input, textarea, select { font-family: inherit; font-size: 16px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ============================================================
   Layout helpers
   ============================================================ */
.section {
    position: relative;
    padding: clamp(56px, 7vw, 100px) 0;
    overflow: hidden;
}

.section--cream { background: var(--cream); }
.section--flush { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.wrap {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.wrap--wide { max-width: var(--wide); }
.wrap--narrow { max-width: 760px; }
.wrap--form { max-width: 560px; }

.center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Typography
   ============================================================ */
.h1 {
    font-size: clamp(36px, 4.5vw, 64px);
    line-height: 1.4;
    font-weight: 500;
}

.h2 {
    font-size: clamp(28px, 3.3vw, 48px);
    line-height: 1.2;
    font-weight: 400;
}

.h3 {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
}

.label {
    display: inline-block;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.text { font-size: 18px; line-height: 1.5; font-weight: 300; }
.text--lead { font-size: 20px; line-height: 1.45; }
.text--small { font-size: 15px; line-height: 1.5; }
.text--muted { color: rgba(0, 0, 0, 0.66); }
.text--light { color: rgba(255, 255, 255, 0.82); }

.measure { max-width: 500px; }
.measure--narrow { max-width: 430px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.rule-v {
    display: block;
    width: 1px;
    height: 16px;
    margin: 14px auto 0;
    background: rgba(0, 0, 0, 0.35);
}

.stroke-line {
    display: inline-block;
    width: clamp(18px, 2.4vw, 30px);
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    opacity: 0.85;
}

.heading-stroked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.6vw, 18px);
    text-align: center;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}

.link-arrow:hover { border-color: currentColor; gap: 14px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.03em;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover { background: var(--ink); color: var(--white); }
.btn:disabled { opacity: 0.55; cursor: progress; }

.btn--light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--dark); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 80;
    background: var(--white);
    padding: 22px var(--gutter) 18px;
}

.nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    max-width: var(--wide);
    margin: 0 auto;
}

.nav__group {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 44px);
}

.nav__group--end { justify-content: flex-end; }

.nav__link {
    position: relative;
    padding: 6px 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    justify-self: center;
}

.logo__stroke {
    display: block;
    width: 30px;
    height: 1px;
    background: var(--ink);
}

.logo__word {
    font-family: var(--serif);
    font-style: italic;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav__toggle {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
}

.nav__toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.2s linear;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__panel {
    position: fixed;
    top: 68px; left: 0; right: 0;
    z-index: 79;
    display: none;
    background: var(--white);
    border-top: 1px solid var(--line-soft);
    padding: 10px 0 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.nav__panel.is-open { opacity: 1; visibility: visible; transform: none; }

.nav__panel-link {
    display: block;
    padding: 14px var(--gutter);
    font-size: 18px;
    font-weight: 400;
}

.nav__panel-link.is-active { text-decoration: underline; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    background: var(--cream);
    padding-top: clamp(118px, 14vw, 190px);
    padding-bottom: 0;
    overflow: hidden;
}

.hero--plain { padding-bottom: clamp(40px, 5vw, 70px); }

.hero__head { text-align: center; }

.hero__title {
    max-width: 470px;
    margin: 0 auto;
    text-align: center;
}

.hero__title--wide { max-width: 560px; }

.hero__media {
    width: 94%;
    max-width: var(--wide);
    margin: clamp(26px, 4vw, 54px) auto 0;
    overflow: hidden;
}

.hero__media img {
    width: 100%;
    height: clamp(230px, 38vw, 540px);
    object-fit: cover;
}

.hero__media--short img { height: clamp(200px, 30vw, 420px); }

.scroll-cue {
    display: block;
    width: 1px;
    height: 30px;
    margin: 24px auto 0;
    position: relative;
    background: rgba(0, 0, 0, 0.4);
}

.scroll-cue::after {
    content: "";
    position: absolute;
    left: -3px;
    bottom: 0;
    width: 7px;
    height: 7px;
    border-right: 1px solid rgba(0, 0, 0, 0.55);
    border-bottom: 1px solid rgba(0, 0, 0, 0.55);
    transform: rotate(-45deg);
}

/* ============================================================
   Decorative arcs
   ============================================================ */
.arcs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.arcs::before,
.arcs::after {
    content: "";
    position: absolute;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
}

.arcs::before {
    width: 620px;
    height: 620px;
    top: -320px;
    left: -300px;
}

.arcs::after {
    width: 460px;
    height: 460px;
    bottom: -230px;
    right: -230px;
}

.arcs--flip::before { top: auto; bottom: -320px; left: auto; right: -300px; }
.arcs--flip::after { top: -230px; bottom: auto; right: auto; left: -230px; }

.section > .wrap { position: relative; z-index: 1; }

/* ============================================================
   About split
   ============================================================ */
.about-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 70px);
    align-items: center;
}

.about-split__media {
    margin-left: calc(var(--gutter) * -1);
    overflow: hidden;
}

.about-split__media img {
    width: 100%;
    height: clamp(300px, 34vw, 450px);
    object-fit: cover;
}

.about-split__body .label { margin-bottom: 18px; }
.about-split__body .h2 { margin-bottom: 20px; }
.about-split__body p { margin-bottom: 16px; }

/* ============================================================
   Team slider
   ============================================================ */
.team__head { max-width: 620px; margin: 0 auto; text-align: center; }
.team__head .label { margin-bottom: 16px; }

.team__stage {
    position: relative;
    margin-top: clamp(28px, 4vw, 54px);
    padding: 0 clamp(0px, 4vw, 60px);
}

.team__viewport { overflow: hidden; }

.team__track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s var(--ease);
    will-change: transform;
}

.team__slide {
    flex: 0 0 calc((100% - 48px) / 3);
    text-align: center;
}

.team__name {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
}

.team__role {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.66);
}

.team__slide .rule-v { margin: 10px auto 16px; height: 12px; }

.team__slide img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.team__caption {
    margin: 14px 0 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.72);
}

.team__arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    opacity: 0.62;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.team__arrow:hover { opacity: 1; }
.team__arrow--prev { left: 0; }
.team__arrow--next { right: 0; }
.team__arrow--prev:hover { transform: translate(-3px, -50%); }
.team__arrow--next:hover { transform: translate(3px, -50%); }

.team__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }

.team__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.team__dot.is-active { background: var(--ink); transform: scale(1.25); }

/* ============================================================
   Signature (menu highlight)
   ============================================================ */
.signature__head { text-align: center; }
.signature__head .label { margin-bottom: 14px; }

.signature__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(24px, 4vw, 60px);
    align-items: center;
    margin-top: clamp(24px, 4vw, 46px);
}

.signature__quotes { display: grid; gap: clamp(18px, 2.4vw, 28px); }

.quote__name {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
}

.quote__text {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-style: italic;
    font-size: 21px;
    line-height: 1.25;
}

.signature__media { justify-self: center; width: 100%; max-width: 520px; }

.signature__media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.signature__foot {
    max-width: 520px;
    margin: clamp(20px, 3vw, 34px) auto 0;
    text-align: center;
}

/* ============================================================
   Blog
   ============================================================ */
.teaser__head { max-width: 700px; }
.teaser__head .label { margin-bottom: 16px; }
.teaser__head .h2 { max-width: 560px; }

.teaser__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    margin: clamp(26px, 3.6vw, 44px) 0 clamp(22px, 3vw, 34px);
}

.teaser__item { display: block; overflow: hidden; }

.teaser__item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.teaser__item:hover img { transform: scale(1.04); }

.featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    margin-top: clamp(18px, 2.6vw, 30px);
}

.featured__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.featured__date {
    display: block;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.68);
    margin-bottom: 14px;
}

.featured__title { margin-bottom: 16px; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3.4vw, 40px) clamp(20px, 4vw, 56px);
    margin-top: clamp(20px, 3vw, 32px);
}

.post-card { display: block; }

.post-card__media { overflow: hidden; }

.post-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.post-card:hover .post-card__media img { transform: scale(1.04); }

.post-card__body {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    margin-top: 14px;
    align-items: start;
}

.post-card__date {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.68);
    white-space: nowrap;
}

.post-card__title {
    font-family: var(--serif);
    font-size: clamp(19px, 1.7vw, 23px);
    font-weight: 500;
    line-height: 1.2;
}

/* ============================================================
   Article
   ============================================================ */
.article {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 60px);
    align-items: start;
}

.article__meta {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    font-size: 14px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.62);
}

.article__body > * { max-width: 680px; }
.article__body p { margin-bottom: 20px; font-size: 18px; line-height: 1.65; }
.article__body h2 { margin: 34px 0 14px; font-size: clamp(24px, 2.4vw, 32px); }
.article__body ul { margin: 0 0 22px; padding-left: 20px; }
.article__body li { margin-bottom: 8px; font-size: 17px; line-height: 1.6; }
.article__lead { font-size: 21px; line-height: 1.55; font-family: var(--serif); }

/* ============================================================
   Menu tabs
   ============================================================ */
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(8px, 2vw, 0px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: clamp(22px, 3vw, 36px);
}

.tab {
    position: relative;
    padding: clamp(12px, 1.6vw, 18px) clamp(12px, 2.6vw, 34px);
    font-family: var(--serif);
    font-size: clamp(16px, 1.6vw, 21px);
    font-weight: 500;
    color: rgba(0, 0, 0, 0.55);
    transition: color 0.25s var(--ease);
}

.tab::after {
    content: "";
    position: absolute;
    left: clamp(12px, 2.6vw, 34px);
    right: clamp(12px, 2.6vw, 34px);
    bottom: -1px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.tab::before {
    content: "";
    position: absolute;
    left: clamp(12px, 2.6vw, 34px);
    right: clamp(12px, 2.6vw, 34px);
    top: -1px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after,
.tab.is-active::before { transform: scaleX(1); }

.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fade-in 0.4s var(--ease); }

@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.menu-group { margin-top: clamp(34px, 4.4vw, 60px); }

.menu-group__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(16px, 2.2vw, 26px);
}

.menu-group__title {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.menu-group__head .rule-v { margin: 0; height: 20px; }

.menu-group__body {
    display: grid;
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr);
    gap: clamp(20px, 4vw, 60px);
    align-items: start;
}

.menu-group__media img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.menu-group__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.6vw, 30px) clamp(24px, 4vw, 70px);
}

.dish { display: grid; grid-template-columns: minmax(0, auto) 1fr auto; align-items: baseline; }

.dish__main { display: contents; }

.dish__name {
    margin: 0;
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.2;
}

.dish__dots {
    margin: 0 10px;
    height: 0;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.45);
    transform: translateY(-4px);
}

.dish__price {
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    white-space: nowrap;
}

.dish__desc {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(0, 0, 0, 0.62);
    max-width: 320px;
}

/* ============================================================
   Speciality banner
   ============================================================ */
.speciality { text-align: center; }
.speciality__head { margin-bottom: 6px; }
.speciality__price {
    display: inline-block;
    margin: 10px 0 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 24px;
}

.speciality__dots { display: grid; gap: 4px; justify-items: center; margin: 10px 0 22px; }

.speciality__dots span {
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
}

.speciality__media {
    width: 94%;
    max-width: var(--wide);
    margin: 0 auto;
    overflow: hidden;
}

.speciality__media img {
    width: 100%;
    height: clamp(240px, 34vw, 480px);
    object-fit: cover;
}

/* ============================================================
   Reservation form
   ============================================================ */
.reservation__head { text-align: center; }
.reservation__head .label { margin-bottom: 16px; }

.form {
    display: grid;
    gap: 16px;
    margin: clamp(24px, 3.4vw, 38px) auto 0;
    text-align: left;
}

.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.field { display: block; }

.field > label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.3;
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: var(--white);
    color: var(--ink);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
    transition: border-color 0.25s var(--ease);
}

.field textarea { min-height: 160px; resize: vertical; }

.field input:focus,
.field textarea:focus { border-color: rgba(0, 0, 0, 0.55); outline: none; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #a4342a; }

.field__error {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #a4342a;
}

.form__actions { display: flex; justify-content: center; padding-top: 4px; }

.form__notice {
    margin: 0;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.45;
    border: 1px solid transparent;
}

.form__notice[hidden] { display: none; }
.form__notice--success { border-color: rgba(0, 0, 0, 0.25); background: rgba(255, 255, 255, 0.7); }
.form__notice--error { border-color: #a4342a; color: #7d2419; background: rgba(255, 255, 255, 0.75); }

.form__hint { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(0, 0, 0, 0.6); }

/* ============================================================
   Contact blocks
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(30px, 5vw, 80px);
    align-items: start;
}

.contact-list { display: grid; gap: 22px; margin-top: 26px; }

.contact-list__item {
    display: grid;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.contact-list__label { font-size: 13px; font-weight: 700; line-height: 1.2; }
.contact-list__value { font-size: 16px; line-height: 1.5; font-weight: 300; }

/* ============================================================
   Timeline
   ============================================================ */
.timeline { position: relative; margin-top: clamp(30px, 5vw, 64px); }

.timeline__spine {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1px;
    border-left: 1px dashed rgba(0, 0, 0, 0.25);
}

.timeline__entry {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: center;
    padding: clamp(24px, 4vw, 48px) 0;
}

.timeline__year {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1;
}

.timeline__year::after {
    content: "";
    display: block;
    width: clamp(30px, 5vw, 90px);
    height: 0;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.4);
}

.timeline__card { justify-self: start; max-width: 430px; }
.timeline__card .label { margin-bottom: 12px; }

.timeline__card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin-bottom: 14px;
}

.timeline__card p { font-size: 15px; line-height: 1.55; color: rgba(0, 0, 0, 0.72); }

.timeline__present { text-align: center; padding-top: clamp(20px, 4vw, 40px); }

.timeline__present h3 {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(24px, 2.6vw, 32px);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

/* ============================================================
   Testimonials column (about)
   ============================================================ */
.testimonials { display: grid; gap: 0; }

.testimonial {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    align-items: center;
}

.testimonial:first-child { border-top: 0; }

.testimonial__name {
    margin: 0;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
}

.testimonial__quote {
    margin: 0 0 4px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    line-height: 1.25;
}

.stars { display: flex; gap: 3px; color: rgba(0, 0, 0, 0.72); }
.stars svg { width: 13px; height: 13px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--white); padding-top: clamp(24px, 3vw, 44px); }

.footer__panel {
    width: 94%;
    max-width: var(--wide);
    margin: 0 auto;
    background: var(--dark);
    color: var(--white);
    padding: clamp(34px, 5vw, 64px) clamp(20px, 4vw, 56px) 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(26px, 5vw, 80px);
}

.footer__brand {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
}

.footer__text {
    margin: 0;
    max-width: 320px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.footer__head {
    margin: 28px 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.footer__line { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.footer__line span { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

.socials { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.socials a {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.25s var(--ease);
}

.socials a:hover { color: #fff; }
.socials svg { width: 14px; height: 14px; }

.subscribe { margin-top: 20px; }
.subscribe__row { display: flex; max-width: 360px; }

.subscribe__row input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 300;
}

.subscribe__row input::placeholder { color: rgba(255, 255, 255, 0.55); }
.subscribe__row input:focus { outline: none; border-color: #fff; }

.subscribe__row .btn {
    flex: 0 0 auto;
    padding: 9px 18px;
    border-left: 0;
    font-size: 14px;
}

.subscribe .form__hint { margin-top: 10px; color: rgba(255, 255, 255, 0.65); }

.subscribe__status {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.subscribe__status[hidden] { display: none; }
.subscribe__status--error { color: #f3b6ab; }

.footer__bottom {
    margin-top: clamp(30px, 4vw, 52px);
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Reveal motion
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(18px); }

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.hero__head [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.hero__head [data-reveal]:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .team__slide { flex: 0 0 calc((100% - 24px) / 2); }
    .menu-group__body { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); }
    .article { grid-template-columns: minmax(0, 1fr); }
    .article__meta { position: static; }
}

@media (max-width: 900px) {
    .nav { padding: 15px var(--gutter) 13px; }
    .nav__inner { grid-template-columns: 1fr auto; }
    .nav__group { display: none; }
    .logo { justify-self: start; gap: 10px; }
    .logo__word { font-size: 26px; }
    .logo__stroke { width: 22px; }
    .nav__toggle { display: flex; }
    .nav__panel { display: block; }
    .hero { padding-top: clamp(96px, 22vw, 130px); }
    .about-split { grid-template-columns: minmax(0, 1fr); }
    .about-split__media { margin-left: 0; }
    .about-split__body { order: -1; }
    .signature__grid { grid-template-columns: minmax(0, 1fr); }
    .signature__quotes { order: 2; }
    .signature__media { order: 1; max-width: 380px; }
    .quote__text { font-size: 19px; }
    .featured { grid-template-columns: minmax(0, 1fr); }
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .menu-group__body { grid-template-columns: minmax(0, 1fr); }
    .menu-group__media { max-width: 320px; }
    .timeline__spine { left: 8px; }
    .timeline__entry { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-left: 30px; }
    .timeline__year { justify-self: start; }
    .timeline__year::after { display: none; }
    .timeline__card { justify-self: start; }
    .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
    .teaser__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .teaser__item img { aspect-ratio: 16 / 10; }
    .post-grid { grid-template-columns: minmax(0, 1fr); }
    .menu-group__list { grid-template-columns: minmax(0, 1fr); }
    .form__row { grid-template-columns: minmax(0, 1fr); }
    .team__slide { flex: 0 0 100%; }
    .team__stage { padding: 0; }
    .team__arrow { top: auto; bottom: -52px; }
    .team__arrow--prev { left: 30%; }
    .team__arrow--next { right: 30%; }
    .team__dots { margin-top: 22px; }
    .post-card__body { grid-template-columns: 74px minmax(0, 1fr); gap: 14px; }
    .testimonial { grid-template-columns: 78px minmax(0, 1fr); }
    .h1 { line-height: 1.35; }
    .hero__title { max-width: 340px; }
    .subscribe__row { max-width: none; }
}
