/* Café das Beiras — design system */
:root {
    --blue-950: #032947;
    --blue-900: #073f73;
    --blue-800: #0a518d;
    --blue-100: #dce9f2;
    --ink: #172431;
    --muted: #5c6770;
    --ivory: #f6f1e8;
    --paper: #fffdf8;
    --white: #ffffff;
    --gold: #c9a46a;
    --line: rgba(7, 63, 115, 0.2);
    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
    --font-body: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
    --container: 1280px;
    --gutter: clamp(1.25rem, 4vw, 4.5rem);
    --section-space: clamp(5.5rem, 10vw, 10rem);
    --radius-sm: 0.25rem;
    --radius-round: 999px;
    --shadow-soft: 0 1.5rem 4rem rgba(3, 41, 71, 0.12);
    --transition: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    font: inherit;
}

:focus-visible {
    outline: 3px solid #e0ad59;
    outline-offset: 4px;
}

::selection {
    color: var(--white);
    background: var(--blue-800);
}

h1,
h2,
h3,
p,
figure,
blockquote {
    margin-top: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

h1 em,
h2 em {
    font-weight: 400;
}

h3 {
    font-weight: 600;
    line-height: 1.25;
}

.container {
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-space);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
    color: var(--blue-900);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 2.25rem;
    height: 1px;
    background: currentColor;
    content: "";
}

.eyebrow--light {
    color: var(--white);
}

.eyebrow--gold {
    color: #ebce9f;
}

.button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.45rem;
    border: 1px solid var(--blue-900);
    border-radius: var(--radius-round);
    color: var(--white);
    background: var(--blue-900);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.button:hover {
    border-color: var(--blue-950);
    background: var(--blue-950);
    transform: translateY(-2px);
}

.button--light {
    border-color: var(--white);
    color: var(--blue-950);
    background: var(--white);
}

.button--light:hover {
    border-color: var(--ivory);
    color: var(--blue-950);
    background: var(--ivory);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding-block: 0.35rem;
    border-bottom: 1px solid currentColor;
    color: var(--blue-900);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    transition: gap var(--transition), opacity var(--transition);
}

.text-link:hover {
    gap: 1rem;
    opacity: 0.76;
}

.text-link--light {
    color: var(--white);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: var(--blue-950);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header */
.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    color: var(--white);
    transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-header.is-solid {
    color: var(--ink);
    background: rgba(255, 253, 248, 0.97);
    box-shadow: 0 1px 0 rgba(3, 41, 71, 0.1);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    width: min(calc(100% - (var(--gutter) * 2)), 1440px);
    height: 6.8rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-inline: auto;
    transition: height var(--transition);
}

.is-solid .header-inner {
    height: 5.2rem;
}

.brand {
    position: relative;
    z-index: 102;
    display: block;
    width: 5.35rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--ivory);
    box-shadow: 0 0.35rem 1.5rem rgba(3, 41, 71, 0.12);
    overflow: hidden;
    transition: width var(--transition), transform var(--transition);
}

.brand:hover {
    transform: rotate(-2deg);
}

.is-solid .brand {
    width: 4.2rem;
}

.brand img {
    width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2.4rem);
}

.main-nav a {
    position: relative;
    padding-block: 0.5rem;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.main-nav a:not(.nav-contact)::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-contact {
    min-width: 7.5rem;
    padding: 0.75rem 1.2rem !important;
    border: 1px solid currentColor;
    border-radius: var(--radius-round);
    text-align: center;
    transition: color var(--transition), background var(--transition);
}

.nav-contact:hover {
    color: var(--blue-950);
    background: var(--white);
}

.is-solid .nav-contact:hover {
    color: var(--white);
    background: var(--blue-900);
}

.menu-toggle {
    position: relative;
    z-index: 102;
    display: none;
    min-width: 3.25rem;
    min-height: 3.25rem;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.menu-toggle__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.menu-toggle__lines {
    display: grid;
    width: 1.7rem;
    gap: 0.4rem;
}

.menu-toggle__lines i {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform var(--transition);
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    min-height: min(96svh, 67rem);
    align-items: flex-end;
    color: var(--white);
    background: var(--blue-950);
    isolation: isolate;
    overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media {
    z-index: -3;
}

.hero-media img {
    object-fit: cover;
    object-position: center 46%;
    animation: hero-scale 18s ease-out both;
}

.hero-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(3, 28, 49, 0.84) 0%, rgba(3, 32, 55, 0.52) 42%, rgba(3, 32, 55, 0.08) 72%),
        linear-gradient(0deg, rgba(3, 32, 55, 0.38) 0%, transparent 45%);
}

.hero-content {
    width: min(calc(100% - (var(--gutter) * 2)), 1440px);
    margin-inline: auto;
    padding: 10.5rem 0 clamp(5rem, 9vh, 7.5rem);
}

.hero-content h1 {
    max-width: 10ch;
    margin-bottom: 1.8rem;
    font-size: clamp(4rem, 8vw, 8.8rem);
    text-shadow: 0 0.1em 0.5em rgba(3, 28, 49, 0.2);
}

.hero-content h1 em {
    color: #f1d8af;
}

.hero-summary {
    margin-bottom: 2.1rem;
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.11em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-side-note {
    position: absolute;
    right: 2.2rem;
    bottom: 5.8rem;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

@keyframes hero-scale {
    from { transform: scale(1.025); }
    to { transform: scale(1.08); }
}

.heritage-strip {
    display: grid;
    grid-template-columns: 1fr minmax(2rem, 8rem) auto minmax(2rem, 8rem) 1fr;
    align-items: center;
    gap: clamp(0.75rem, 2.5vw, 2rem);
    padding: 1.8rem var(--gutter);
    color: var(--blue-900);
    background: var(--ivory);
    text-align: center;
}

.heritage-strip p,
.heritage-strip strong {
    margin: 0;
    font-size: clamp(0.62rem, 1.1vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.heritage-strip span {
    height: 1px;
    background: var(--line);
}

.heritage-strip strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
}

/* Fabrico próprio */
.craft-section {
    position: relative;
    background: var(--paper);
    overflow: hidden;
}

.craft-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.craft-copy {
    position: relative;
    z-index: 2;
    grid-column: 1 / span 6;
    padding-block: 3rem;
}

.craft-copy h2,
.section-heading h2,
.space-heading h2 {
    margin-bottom: 2rem;
    color: var(--blue-950);
    font-size: clamp(3.2rem, 6.3vw, 7rem);
}

.craft-copy h2 em,
.section-heading h2 em,
.space-heading h2 em {
    color: var(--blue-800);
}

.craft-copy > p:not(.eyebrow) {
    max-width: 34rem;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.craft-image {
    position: relative;
    z-index: 1;
    grid-column: 8 / -1;
    margin: 0;
}

.craft-image::before {
    position: absolute;
    z-index: -1;
    top: -1.3rem;
    right: -1.3rem;
    bottom: 3rem;
    left: 3rem;
    border: 1px solid var(--line);
    content: "";
}

.craft-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 52%;
}

.craft-image figcaption,
.pastry-editorial figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    color: var(--blue-900);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.year-mark {
    position: absolute;
    z-index: 0;
    right: 35%;
    bottom: -1rem;
    color: rgba(7, 63, 115, 0.045);
    font-family: var(--font-display);
    font-size: clamp(12rem, 25vw, 28rem);
    letter-spacing: -0.1em;
    line-height: 0.55;
    pointer-events: none;
}

/* Padaria */
.bread-section {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
    min-height: 50rem;
    padding: 0;
    color: var(--white);
    background: var(--blue-900);
}

.bread-photo {
    position: relative;
    min-height: 50rem;
    overflow: hidden;
}

.bread-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
}

.photo-label {
    position: absolute;
    right: 1.75rem;
    bottom: 1.75rem;
    padding: 0.75rem 1rem;
    color: var(--blue-950);
    background: var(--ivory);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.bread-copy {
    display: flex;
    max-width: 43rem;
    flex-direction: column;
    justify-content: center;
    padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 6vw, 7rem);
}

.bread-copy .eyebrow {
    color: #dbe9f4;
}

.bread-copy h2 {
    margin-bottom: 2rem;
    font-size: clamp(3.2rem, 5.3vw, 6.4rem);
}

.bread-copy h2 em {
    color: #efd7b0;
}

.bread-copy > p {
    max-width: 31rem;
    margin-bottom: 2.8rem;
    color: rgba(255, 255, 255, 0.78);
}

.product-group {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.product-group:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.23);
}

.product-group h3 {
    margin-bottom: 0.45rem;
    color: #f3d9ad;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
}

.product-group p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Pastelaria */
.pastry-section {
    background: var(--ivory);
}

.section-heading--wide {
    display: grid;
    grid-template-columns: 0.8fr 2.2fr;
    align-items: start;
    margin-bottom: clamp(3rem, 7vw, 6.5rem);
}

.section-heading--wide .eyebrow {
    margin-top: 1rem;
}

.section-heading--wide h2 {
    margin-bottom: 0;
}

.pastry-editorial {
    display: grid;
    grid-template-columns: 1.25fr 0.72fr 0.8fr;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 3.5rem);
}

.pastry-editorial figure {
    margin: 0;
}

.pastry-editorial__large img {
    width: 100%;
    aspect-ratio: 1 / 1.16;
    object-fit: cover;
    object-position: center;
}

.pastry-editorial__small {
    align-self: end;
    padding-bottom: 2rem;
}

.pastry-editorial__small img {
    width: 100%;
    aspect-ratio: 1 / 1.23;
    object-fit: cover;
    object-position: center;
}

.pastry-list {
    padding-block: 2rem;
}

.pastry-list__number {
    margin-bottom: 4rem;
    color: var(--blue-900);
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
}

.pastry-list h3 {
    margin-bottom: 0.55rem;
    color: var(--blue-900);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    font-weight: 400;
}

.pastry-list p:not(.pastry-list__number) {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.pastry-list hr {
    height: 1px;
    margin: 2rem 0;
    border: 0;
    background: var(--line);
}

/* Bolos personalizados */
.cakes-section {
    position: relative;
    display: flex;
    min-height: min(88svh, 60rem);
    align-items: center;
    color: var(--white);
    background: var(--blue-950);
    isolation: isolate;
    overflow: hidden;
}

.cakes-background,
.cakes-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cakes-background {
    z-index: -2;
    object-fit: cover;
    object-position: center 46%;
}

.cakes-overlay {
    z-index: -1;
    background: linear-gradient(90deg, rgba(3, 30, 52, 0.9) 0%, rgba(3, 32, 55, 0.65) 45%, rgba(3, 32, 55, 0.12) 78%);
}

.cakes-copy {
    width: min(calc(100% - (var(--gutter) * 2)), 1440px);
    margin-inline: auto;
    padding-block: 7rem;
}

.cakes-copy h2 {
    max-width: 11ch;
    margin-bottom: 2rem;
    font-size: clamp(3.4rem, 6.7vw, 7.8rem);
}

.cakes-copy h2 em {
    color: #f0d4a7;
}

.cakes-copy > p:not(.eyebrow) {
    max-width: 37rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
}

/* Épocas */
.seasonal-section {
    color: var(--white);
    background: var(--blue-950);
}

.seasonal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: clamp(2rem, 5vw, 6rem);
}

.seasonal-heading h2 {
    margin-bottom: 2rem;
    font-size: clamp(3.8rem, 6vw, 7rem);
}

.seasonal-heading h2 em {
    color: #eed3a4;
}

.seasonal-heading > p:last-child {
    max-width: 26rem;
    color: rgba(255, 255, 255, 0.7);
}

.season-block {
    position: relative;
    padding: 4rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.season-number {
    position: absolute;
    top: 1rem;
    right: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
}

.season-label {
    margin-bottom: 0.65rem;
    color: #eacb96;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.season-block h3 {
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3.3rem);
    font-weight: 400;
}

.season-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.season-block li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    text-transform: capitalize;
}

/* História */
.history-section {
    background: var(--paper);
}

.history-grid {
    display: grid;
    grid-template-columns: minmax(19rem, 0.86fr) 1.14fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 9rem);
}

.history-image {
    position: relative;
    margin: 0;
    padding: 0 0 2rem 2rem;
}

.history-image::before {
    position: absolute;
    z-index: 0;
    top: 2rem;
    right: 2rem;
    bottom: 0;
    left: 0;
    border: 1px solid var(--line);
    content: "";
}

.history-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    box-shadow: var(--shadow-soft);
}

.history-copy {
    position: relative;
}

.history-year {
    margin: 0 0 -0.25em;
    color: rgba(7, 63, 115, 0.09);
    font-family: var(--font-display);
    font-size: clamp(7rem, 15vw, 13rem);
    letter-spacing: -0.08em;
    line-height: 0.75;
}

.history-copy h2 {
    position: relative;
    margin-bottom: 2rem;
    color: var(--blue-950);
    font-size: clamp(3.1rem, 5.7vw, 6.4rem);
}

.history-copy h2 em {
    color: var(--blue-800);
}

.history-copy > p:not(.eyebrow, .history-year) {
    max-width: 36rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.history-copy blockquote {
    margin: 2.6rem 0 0;
    padding: 1.2rem 0 0 1.5rem;
    border-top: 1px solid var(--line);
    border-left: 3px solid var(--blue-900);
    color: var(--blue-900);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-style: italic;
}

/* Espaço */
.space-section {
    padding-top: 0;
    background: var(--paper);
}

.space-heading {
    display: grid;
    grid-template-columns: 1.45fr 0.55fr;
    align-items: end;
    gap: 3rem;
    margin-bottom: clamp(3rem, 6vw, 6rem);
    padding-top: var(--section-space);
    border-top: 1px solid var(--line);
}

.space-heading h2 {
    margin-bottom: 0;
}

.space-heading > p {
    max-width: 25rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
}

.space-gallery {
    display: grid;
    grid-template-columns: 1.5fr 0.72fr;
    align-items: start;
    gap: clamp(1rem, 3vw, 3.5rem);
}

.space-gallery figure {
    margin: 0;
}

.space-gallery img {
    width: 100%;
    object-fit: cover;
}

.space-gallery__wide img {
    aspect-ratio: 4 / 3;
    object-position: center;
}

.space-gallery__detail {
    padding-top: 5rem;
}

.space-gallery__detail img {
    aspect-ratio: 3 / 4;
    object-position: center;
}

.space-gallery figcaption {
    padding-top: 1.2rem;
    color: var(--blue-900);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
}

/* Plataformas externas */
.social-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.social-callout {
    min-height: 31rem;
    padding: clamp(4rem, 7vw, 7rem) var(--gutter);
}

.social-callout h2 {
    margin-bottom: 2.4rem;
    font-size: clamp(2.8rem, 4.3vw, 5.2rem);
}

.social-callout--google {
    color: var(--blue-950);
    background: var(--ivory);
}

.social-callout--google h2 em {
    color: var(--blue-800);
}

.social-callout--facebook {
    color: var(--white);
    background: var(--blue-800);
}

.social-callout--facebook h2 em {
    color: #f1d7ab;
}

/* Contactos */
.contact-section {
    background: var(--paper);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.82fr 0.93fr;
    align-items: start;
    gap: clamp(2rem, 5vw, 6rem);
}

.contact-heading h2 {
    margin-bottom: 1.4rem;
    color: var(--blue-950);
    font-size: clamp(4rem, 7vw, 8rem);
}

.contact-heading > p:last-child {
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-style: italic;
}

.contact-address,
.contact-links {
    padding-top: 1rem;
}

.contact-address h3 {
    margin-bottom: 1rem;
    color: var(--blue-900);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
}

.contact-address address {
    margin-bottom: 2rem;
    color: var(--muted);
    font-style: normal;
}

.contact-links > a {
    display: flex;
    flex-direction: column;
    padding: 1.15rem 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.contact-links > a:last-of-type {
    border-bottom: 1px solid var(--line);
}

.contact-links > a:hover strong {
    color: var(--blue-800);
}

.contact-links span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-links strong {
    color: var(--blue-950);
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 2.7vw, 2.5rem);
    font-weight: 400;
    transition: color var(--transition);
}

.contact-links__email {
    overflow-wrap: anywhere;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.contact-links > p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.72rem;
}

/* Footer */
.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: var(--blue-950);
}

.footer-main {
    display: grid;
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    grid-template-columns: 1.15fr repeat(3, 0.7fr);
    gap: clamp(2rem, 5vw, 5rem);
    margin-inline: auto;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.footer-brand img {
    width: 6.4rem;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 1.4rem;
    border-radius: 50%;
    object-fit: contain;
}

.footer-brand p {
    margin: 0;
    color: #efd5a9;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.35;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h2 {
    margin-bottom: 1.3rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-column address {
    margin-bottom: 1rem;
    font-style: normal;
}

.footer-column a {
    margin-bottom: 0.6rem;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.footer-column a:hover,
.footer-legal a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-legal .footer-complaints-link {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.legal-content .button + .button {
    margin-left: 0.65rem;
}

.footer-legal {
    display: flex;
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-inline: auto;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.72rem;
}

.footer-legal > span {
    color: #e6c794;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-legal nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem 1.4rem;
}

.footer-legal a {
    text-decoration: none;
}

.footer-bottom {
    background: #02233d;
}

.footer-bottom__inner {
    display: flex;
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-inline: auto;
    padding-block: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
}

.footer-bottom__inner p {
    margin: 0;
}

.footer-bottom__inner a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-bottom__inner a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    z-index: 90;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    display: inline-flex;
    min-height: 3.35rem;
    align-items: center;
    gap: 0.6rem;
    padding: 0.48rem 1rem 0.48rem 0.48rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-round);
    color: var(--white);
    background: #176b50;
    box-shadow: 0 0.8rem 2rem rgba(3, 41, 71, 0.18);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}

.whatsapp-float:hover {
    background: #10563f;
    transform: translateY(-2px);
}

.whatsapp-float span {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 800;
}

.whatsapp-float b {
    font-weight: 700;
}

/* Páginas legais */
.legal-page {
    background: var(--paper);
}

.legal-hero {
    padding: 12rem 0 6rem;
    color: var(--white);
    background: var(--blue-900);
}

.legal-hero h1 {
    max-width: 14ch;
    margin-bottom: 1.8rem;
    font-size: clamp(3.2rem, 6vw, 6.5rem);
}

.legal-hero__inner > p:last-child {
    max-width: 46rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.legal-layout {
    display: grid;
    grid-template-columns: 14rem minmax(0, 46rem);
    justify-content: space-between;
    gap: clamp(3rem, 8vw, 9rem);
    padding-block: clamp(4rem, 8vw, 8rem);
}

.legal-nav {
    position: sticky;
    top: 7rem;
    align-self: start;
}

.legal-nav > p {
    margin-bottom: 1rem;
    color: var(--blue-900);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-nav nav {
    display: flex;
    flex-direction: column;
}

.legal-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
}

.legal-nav a[aria-current="page"] {
    color: var(--blue-900);
    font-weight: 700;
}

.legal-content {
    min-width: 0;
}

.legal-updated {
    margin-bottom: 3rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.legal-content section {
    padding: 0 0 2.5rem;
}

.legal-content section + section {
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.legal-content h2 {
    margin-bottom: 1.25rem;
    color: var(--blue-950);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.legal-content p {
    color: #47535d;
}

.legal-content .button {
    margin-top: 0.5rem;
}

/* Erro 404 */
.error-page {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 8rem var(--gutter) 4rem;
    color: var(--white);
    background: var(--blue-950);
    text-align: center;
}

.error-page__inner {
    max-width: 46rem;
}

.error-page__code {
    margin: 0;
    color: rgba(255, 255, 255, 0.12);
    font-family: var(--font-display);
    font-size: clamp(8rem, 22vw, 18rem);
    line-height: 0.7;
}

.error-page h1 {
    margin: 1rem 0 1.5rem;
    font-size: clamp(3rem, 7vw, 6rem);
}

.error-page p:not(.error-page__code) {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Reveal progressivo */
.reveal {
    opacity: 1;
    transform: none;
}

.has-reveal .reveal {
    opacity: 0;
    transform: translateY(1.6rem);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.has-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1100px) {
    .craft-copy {
        grid-column: 1 / span 7;
    }

    .craft-image {
        grid-column: 8 / -1;
    }

    .year-mark {
        right: 27%;
    }

    .bread-section {
        grid-template-columns: 1fr 1fr;
    }

    .bread-copy {
        padding-inline: clamp(2rem, 4vw, 4rem);
    }

    .pastry-editorial {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .pastry-editorial__small {
        display: none;
    }

    .seasonal-grid {
        grid-template-columns: 1fr 0.65fr 0.65fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr 0.8fr 0.8fr;
        gap: 3rem;
    }
}

@media (max-width: 920px) {
    body.nav-open::before {
        position: fixed;
        z-index: 99;
        inset: 0;
        min-height: 100dvh;
        background: #f6f1e8;
        content: "";
    }

    .header-inner,
    .is-solid .header-inner {
        height: 5.25rem;
    }

    .brand,
    .is-solid .brand {
        width: 4.15rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        z-index: 101;
        inset: 0;
        display: flex;
        min-height: 100dvh;
        visibility: hidden;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.1rem;
        padding: 7rem var(--gutter) 4rem;
        color: var(--blue-950);
        background: #f6f1e8;
        opacity: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateY(-1rem);
        transition: opacity var(--transition), transform var(--transition), visibility 0s linear var(--transition);
    }

    .main-nav::before {
        position: absolute;
        right: var(--gutter);
        bottom: 2rem;
        color: rgba(7, 63, 115, 0.12);
        content: "1958";
        font-family: var(--font-display);
        font-size: 7rem;
        line-height: 1;
    }

    .nav-open .main-nav {
        visibility: visible;
        background: #f6f1e8;
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }

    .nav-open .site-header {
        color: var(--blue-950);
        background: #f6f1e8;
        box-shadow: none;
    }

    .main-nav a {
        width: min(100%, 28rem);
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--line);
        font-family: var(--font-display);
        font-size: clamp(1.8rem, 6vw, 3.2rem);
        font-weight: 400;
        letter-spacing: -0.02em;
        text-transform: none;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav .nav-contact {
        min-width: 0;
        padding: 0.65rem 0 !important;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        text-align: left;
    }

    .nav-open .menu-toggle__lines i:first-child {
        transform: translateY(0.2rem) rotate(45deg);
    }

    .nav-open .menu-toggle__lines i:last-child {
        transform: translateY(-0.2rem) rotate(-45deg);
    }

    .hero {
        min-height: 88svh;
    }

    .hero-content {
        padding-top: 9rem;
    }

    .hero-side-note {
        display: none;
    }

    .craft-grid {
        grid-template-columns: 1fr 0.85fr;
    }

    .craft-copy,
    .craft-image {
        grid-column: auto;
    }

    .year-mark {
        right: 32%;
        font-size: 15rem;
    }

    .bread-section {
        grid-template-columns: 0.9fr 1.1fr;
    }

    .seasonal-grid {
        grid-template-columns: 1fr 1fr;
    }

    .seasonal-heading {
        grid-column: 1 / -1;
        max-width: 44rem;
    }

    .history-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 3rem;
    }

    .space-heading {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .social-callout {
        min-height: 28rem;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-heading {
        grid-column: 1 / -1;
    }

    .footer-main {
        grid-template-columns: 1.25fr repeat(2, 1fr);
    }

    .footer-column:last-child {
        grid-column: 2;
    }
}

@media (max-width: 760px) {
    :root {
        --gutter: clamp(1.15rem, 5vw, 2rem);
        --section-space: clamp(4.5rem, 18vw, 7rem);
    }

    html {
        scroll-padding-top: 5.5rem;
    }

    .hero {
        min-height: max(42rem, 88svh);
    }

    .hero-media img {
        object-position: center 48%;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(3, 28, 49, 0.88) 0%, rgba(3, 32, 55, 0.35) 70%, rgba(3, 32, 55, 0.42) 100%);
    }

    .hero-content {
        padding-bottom: 4rem;
    }

    .hero-content h1 {
        font-size: clamp(3.6rem, 18vw, 6.6rem);
    }

    .hero-summary {
        max-width: 27rem;
        line-height: 1.8;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.1rem;
    }

    .heritage-strip {
        grid-template-columns: 1fr auto 1fr;
        padding-block: 1.35rem;
    }

    .heritage-strip span {
        display: none;
    }

    .heritage-strip p,
    .heritage-strip strong {
        letter-spacing: 0.1em;
    }

    .craft-grid,
    .bread-section,
    .history-grid,
    .space-gallery,
    .social-band,
    .contact-grid,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .craft-copy {
        padding-block: 0;
    }

    .craft-copy h2,
    .section-heading h2,
    .space-heading h2 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .craft-image {
        width: min(88%, 31rem);
        margin: 1rem 0 0 auto;
    }

    .year-mark {
        top: 42%;
        right: auto;
        bottom: auto;
        left: -0.4rem;
        font-size: 13rem;
    }

    .bread-photo {
        min-height: 34rem;
    }

    .bread-copy {
        max-width: none;
        padding: var(--section-space) var(--gutter);
    }

    .bread-copy h2 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .section-heading--wide {
        display: block;
    }

    .section-heading--wide .eyebrow {
        margin-top: 0;
    }

    .pastry-editorial {
        grid-template-columns: 1fr;
    }

    .pastry-editorial__large {
        width: 88%;
    }

    .pastry-list {
        width: 88%;
        margin-left: auto;
    }

    .pastry-list__number {
        margin-bottom: 2rem;
    }

    .cakes-section {
        min-height: 46rem;
        align-items: flex-end;
    }

    .cakes-background {
        object-position: center 35%;
    }

    .cakes-overlay {
        background: linear-gradient(0deg, rgba(3, 30, 52, 0.95) 0%, rgba(3, 32, 55, 0.65) 60%, rgba(3, 32, 55, 0.08) 100%);
    }

    .cakes-copy {
        padding-bottom: 4rem;
    }

    .cakes-copy h2 {
        font-size: clamp(3rem, 14vw, 5.5rem);
    }

    .seasonal-grid {
        grid-template-columns: 1fr;
    }

    .seasonal-heading {
        grid-column: auto;
    }

    .seasonal-heading h2 {
        font-size: clamp(3.3rem, 15vw, 5.5rem);
    }

    .history-grid {
        gap: 4.5rem;
    }

    .history-image {
        width: min(90%, 32rem);
        padding-left: 1rem;
    }

    .history-copy h2 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .space-gallery {
        gap: 2.2rem;
    }

    .space-gallery__detail {
        width: 78%;
        margin-left: auto !important;
        padding-top: 0;
    }

    .social-callout {
        min-height: auto;
        padding-block: 5rem;
    }

    .contact-heading {
        grid-column: auto;
    }

    .contact-address,
    .contact-links {
        padding-top: 0;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-legal {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-legal nav {
        justify-content: flex-start;
    }

    .footer-bottom__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }

    .legal-hero {
        padding: 9.5rem 0 4.5rem;
    }

    .legal-layout {
        gap: 3rem;
    }

    .legal-nav {
        position: static;
    }

    .legal-nav nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .button {
        width: 100%;
        max-width: 23rem;
    }

    .hero-content h1 {
        font-size: clamp(3.5rem, 18.5vw, 5.4rem);
    }

    .heritage-strip p {
        max-width: 9ch;
        justify-self: center;
    }

    .craft-image,
    .pastry-editorial__large,
    .pastry-list {
        width: 94%;
    }

    .bread-photo {
        min-height: 29rem;
    }

    .cakes-copy > p:not(.eyebrow) {
        font-size: 0.94rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-column {
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.13);
    }

    .whatsapp-float {
        width: auto;
        max-width: calc(100vw - 2rem);
        padding: 0.48rem 0.8rem 0.48rem 0.48rem;
    }

    .whatsapp-float b {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        clip: auto;
        white-space: normal;
        overflow: visible;
    }

    .legal-nav nav {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .has-reveal .reveal {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .site-header,
    .whatsapp-float,
    .site-footer,
    .legal-nav {
        display: none !important;
    }

    .legal-hero {
        padding: 2rem 0;
        color: var(--ink);
        background: transparent;
    }

    .legal-layout {
        display: block;
        padding-block: 2rem;
    }
}

/* Galeria */
.gallery-hero {
    padding: 12rem 0 6rem;
    color: var(--white);
    background: linear-gradient(120deg, var(--blue-950), var(--blue-800));
}

.gallery-hero__inner {
    max-width: 72rem;
}

.gallery-hero h1 {
    max-width: 11ch;
    margin-bottom: 1.8rem;
    font-size: clamp(3.4rem, 7vw, 7rem);
}

.gallery-hero > p,
.gallery-hero__inner > p:last-child {
    max-width: 42rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.gallery-section {
    background: var(--paper);
}

.gallery-section__heading {
    max-width: 50rem;
    margin-bottom: clamp(3rem, 7vw, 6rem);
}

.gallery-section__heading h2 {
    margin-bottom: 0;
    color: var(--blue-950);
    font-size: clamp(3.2rem, 6vw, 6.5rem);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-bottom: 2rem;
    margin-bottom: clamp(3rem, 7vw, 6rem);
    border-bottom: 1px solid var(--line);
}

.gallery-filters button {
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-round);
    color: var(--blue-900);
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.gallery-filters button:hover,
.gallery-filters button.is-active {
    border-color: var(--blue-900);
    color: var(--white);
    background: var(--blue-900);
}

.gallery-group + .gallery-group {
    padding-top: clamp(4rem, 9vw, 8rem);
    margin-top: clamp(4rem, 9vw, 8rem);
    border-top: 1px solid var(--line);
}

.gallery-group__heading {
    display: grid;
    grid-template-columns: 1fr minmax(15rem, 0.6fr);
    align-items: end;
    gap: 2rem;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.gallery-group__heading .eyebrow {
    margin-bottom: 1.1rem;
}

.gallery-group__heading h3 {
    margin: 0;
    color: var(--blue-950);
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 5vw, 5.3rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.94;
}

.gallery-group__heading > p {
    margin: 0;
    color: var(--muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.6rem);
}

.gallery-photo {
    position: relative;
    display: block;
    min-height: 15rem;
    overflow: hidden;
    color: var(--white);
    background: var(--blue-100);
}

.gallery-photo--1 { grid-column: span 7; grid-row: span 2; min-height: 34rem; }
.gallery-photo--2 { grid-column: span 5; min-height: 16rem; }
.gallery-photo--3 { grid-column: span 5; min-height: 16rem; }
.gallery-photo--4 { grid-column: span 5; min-height: 22rem; }
.gallery-photo--5 { grid-column: span 7; min-height: 22rem; }

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-photo::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 41, 71, 0.55), transparent 55%);
    content: "";
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-photo span {
    position: absolute;
    z-index: 1;
    right: 1rem;
    bottom: 0.8rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    opacity: 0;
    text-transform: uppercase;
    transition: opacity var(--transition);
}

.gallery-photo:hover img { transform: scale(1.04); }
.gallery-photo:hover::after, .gallery-photo:hover span { opacity: 1; }

.gallery-empty {
    max-width: 42rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px dashed var(--line);
    color: var(--muted);
    background: var(--ivory);
}

.gallery-empty p { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; }

@media (max-width: 760px) {
    .gallery-hero { padding: 9.5rem 0 4.5rem; }
    .gallery-group__heading { grid-template-columns: 1fr; gap: 1rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .gallery-photo--1,
    .gallery-photo--2,
    .gallery-photo--3,
    .gallery-photo--4,
    .gallery-photo--5 { grid-column: auto; grid-row: auto; min-height: 14rem; }
    .gallery-photo--1 { grid-column: 1 / -1; min-height: 25rem; }
}

@media (max-width: 480px) {
    .gallery-filters { flex-wrap: nowrap; margin-right: calc(var(--gutter) * -1); margin-left: calc(var(--gutter) * -1); padding: 0 var(--gutter) 1.5rem; overflow-x: auto; }
    .gallery-filters button { flex: 0 0 auto; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-photo--1,
    .gallery-photo--2,
    .gallery-photo--3,
    .gallery-photo--4,
    .gallery-photo--5 { grid-column: auto; min-height: 22rem; }
}

/* Fotografias recentes na homepage */
.home-gallery {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    overflow: hidden;
    color: var(--white);
    background: var(--blue-950);
}

.home-gallery__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(2.4rem, 5vw, 4.2rem);
}

.home-gallery__heading h2 {
    max-width: 12ch;
    margin-bottom: 0;
    font-size: clamp(3.1rem, 5.5vw, 6rem);
}

.home-gallery__heading h2 em {
    color: #ebce9f;
}

.home-gallery__rail {
    width: 100%;
    overflow: hidden;
}

.home-gallery__track {
    display: flex;
    width: max-content;
}

.home-gallery__track--moving {
    animation: home-gallery-drift 52s linear infinite;
}

.home-gallery__rail:hover .home-gallery__track--moving,
.home-gallery__rail:focus-within .home-gallery__track--moving {
    animation-play-state: paused;
}

.home-gallery__set {
    display: flex;
    gap: clamp(0.8rem, 1.8vw, 1.5rem);
    padding-right: clamp(0.8rem, 1.8vw, 1.5rem);
}

.home-gallery__photo {
    position: relative;
    display: block;
    width: clamp(15rem, 22vw, 24rem);
    height: clamp(18rem, 29vw, 32rem);
    flex: 0 0 auto;
    overflow: hidden;
    color: var(--white);
    background: var(--blue-800);
}

.home-gallery__photo--2,
.home-gallery__photo--4 {
    width: clamp(13rem, 18vw, 20rem);
    height: clamp(18rem, 24vw, 27rem);
    margin-top: clamp(1.5rem, 4vw, 4rem);
}

.home-gallery__photo--3 {
    width: clamp(17rem, 25vw, 27rem);
    height: clamp(18rem, 25vw, 28rem);
    margin-top: clamp(0.8rem, 2vw, 2rem);
}

.home-gallery__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-gallery__photo::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 27, 48, 0.75), transparent 55%);
    content: "";
    opacity: 0.7;
    transition: opacity var(--transition);
}

.home-gallery__photo span {
    position: absolute;
    z-index: 1;
    right: 1rem;
    bottom: 0.85rem;
    left: 1rem;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

a.home-gallery__photo:hover img,
a.home-gallery__photo:focus-visible img {
    transform: scale(1.05);
}

a.home-gallery__photo:hover::after,
a.home-gallery__photo:focus-visible::after {
    opacity: 1;
}

@keyframes home-gallery-drift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Lightbox */
body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    width: min(calc(100% - 2rem), 96rem);
    max-width: none;
    max-height: calc(100svh - 2rem);
    padding: 0;
    border: 0;
    margin: auto;
    color: var(--white);
    background: transparent;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(1, 18, 31, 0.94);
    backdrop-filter: blur(7px);
}

.lightbox__frame {
    position: relative;
    display: grid;
    min-height: min(42rem, calc(100svh - 2rem));
    place-items: center;
    padding: 3.6rem clamp(3rem, 7vw, 6rem) 3rem;
}

.lightbox__figure {
    display: grid;
    max-width: 100%;
    max-height: calc(100svh - 7rem);
    margin: 0;
    place-items: center;
    touch-action: pan-y;
}

.lightbox__figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100svh - 10rem);
    object-fit: contain;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}

.lightbox__figure figcaption {
    width: min(100%, 62rem);
    padding-top: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    text-align: center;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 1;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    color: var(--white);
    background: rgba(3, 41, 71, 0.45);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), transform var(--transition), opacity var(--transition);
}

.lightbox__close {
    top: 0;
    right: 0;
    font-size: 1.7rem;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--previous { left: 0; }
.lightbox__nav--next { right: 0; }

.lightbox__close:hover,
.lightbox__nav:hover {
    color: var(--blue-950);
    background: var(--white);
}

.lightbox__nav:disabled {
    cursor: default;
    opacity: 0.35;
}

.lightbox__counter {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
}

@media (max-width: 760px) {
    .home-gallery__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.5rem;
    }

    .home-gallery__rail {
        padding: 0 var(--gutter) 0;
        margin-left: calc(var(--gutter) * -1);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
    }

    .home-gallery__track--moving {
        animation: none;
    }

    .home-gallery__set[aria-hidden="true"] {
        display: none;
    }

    .home-gallery__photo,
    .home-gallery__photo--2,
    .home-gallery__photo--3,
    .home-gallery__photo--4 {
        width: min(74vw, 22rem);
        height: min(104vw, 30rem);
        margin-top: 0;
        scroll-snap-align: start;
    }

    .lightbox {
        width: calc(100% - 1rem);
        max-height: calc(100svh - 1rem);
    }

    .lightbox__frame {
        min-height: calc(100svh - 1rem);
        padding: 4.5rem 0.2rem 4.5rem;
    }

    .lightbox__figure img {
        max-height: calc(100svh - 11rem);
    }

    .lightbox__close { top: 0.45rem; right: 0.45rem; }
    .lightbox__nav { top: auto; bottom: 0.25rem; transform: none; }
    .lightbox__nav--previous { left: 32%; }
    .lightbox__nav--next { right: 32%; }
    .lightbox__counter { bottom: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-gallery__track--moving { animation: none; }
}
