:root {
    --terracotta: #c56f4f;
    --terracotta-dark: #a95b3f;
    --juniper: #4e6f5d;
    --juniper-dark: #355145;
    --taupe: #a08d7e;
    --ivory: #f6f0e7;
    --ivory-2: #eee5d8;
    --graphite: #303433;
    --muted: #6c716f;
    --white: #fffdf9;
    --line: rgba(48, 52, 51, .12);
    --shadow: 0 24px 70px rgba(38, 43, 41, .12);
    --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--graphite);
    background: var(--ivory);
    line-height: 1.65;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.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; }
.skip-link { position: fixed; left: 14px; top: 14px; z-index: 9999; background: var(--graphite); color: white; padding: 10px 14px; border-radius: 10px; transform: translateY(-160%); transition: .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled { background: rgba(246,240,231,.92); box-shadow: 0 12px 40px rgba(0,0,0,.08); backdrop-filter: blur(16px); }
.nav-shell { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: white; }
.site-header.scrolled .brand { color: var(--graphite); }
.brand-mark { width: 44px; height: 44px; border-radius: 50% 50% 46% 54%; display: grid; place-items: center; background: var(--terracotta); color: white; font-family: 'Allura', cursive; font-size: 30px; line-height: 1; box-shadow: 0 7px 20px rgba(0,0,0,.16); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 31px; font-weight: 400; letter-spacing: .4px; }
.brand-copy small { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .23em; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: rgba(255,255,255,.88); text-decoration: none; font-size: 13px; font-weight: 600; padding: 11px 13px; border-radius: 999px; transition: .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { background: rgba(255,255,255,.11); color: white; }
.site-header.scrolled .main-nav a { color: var(--graphite); }
.site-header.scrolled .main-nav a:hover { background: rgba(78,111,93,.1); }
.main-nav .nav-login { background: var(--terracotta); color: white !important; margin-left: 6px; padding-inline: 18px; }
.main-nav .nav-login:hover { background: var(--terracotta-dark); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: rgba(255,255,255,.1); border-radius: 50%; padding: 12px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: white; margin: 5px 0; transition: .25s; }
.site-header.scrolled .nav-toggle span:not(.sr-only) { background: var(--graphite); }

.hero { min-height: 100svh; position: relative; display: grid; align-items: center; overflow: hidden; background: var(--juniper-dark); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,38,32,.83) 0%, rgba(25,38,32,.60) 48%, rgba(25,38,32,.18) 100%), linear-gradient(0deg, rgba(0,0,0,.34), transparent 45%); }
.hero-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to right, black, transparent 70%); }
.hero-content { position: relative; z-index: 3; padding-top: 86px; color: white; max-width: 850px; }
.eyebrow { margin: 0 0 18px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.75); }
.eyebrow.dark { color: var(--juniper); }
.eyebrow.light { color: rgba(255,255,255,.65); }
.hero h1, .section h2, .login-band h2, .legal-shell h1 { margin: 0; line-height: 1.04; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(48px, 7vw, 92px); font-weight: 600; max-width: 1000px; }
.hero h1 span { color: #e9b69e; font-family: 'Allura', cursive; font-weight: 400; font-size: 1.13em; letter-spacing: 0; }
.hero-lead { max-width: 660px; font-size: clamp(17px, 2vw, 22px); color: rgba(255,255,255,.82); margin: 26px 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 13px; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: white; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: white; background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost-dark { border-color: rgba(48,52,51,.25); color: var(--graphite); background: transparent; }
.btn-ivory { background: var(--ivory); color: var(--juniper-dark); }
.btn-small { min-height: 42px; padding-inline: 16px; }
.btn.wide { width: 100%; }
.hero-scroll { position: absolute; right: 34px; bottom: 32px; z-index: 3; color: rgba(255,255,255,.68); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; display: flex; align-items: center; gap: 10px; transform: rotate(90deg) translateX(-100%); transform-origin: right bottom; }
.hero-scroll span { width: 36px; height: 1px; background: rgba(255,255,255,.45); display: block; }

.intro-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.mini-value { padding: 32px 30px 32px 0; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; border-right: 1px solid var(--line); }
.mini-value + .mini-value { padding-left: 30px; }
.mini-value:last-child { border-right: 0; }
.mini-value > span { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(197,111,79,.11); color: var(--terracotta); font-size: 11px; font-weight: 700; }
.mini-value strong { font-size: 14px; }
.mini-value p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.section { padding: 115px 0; position: relative; }
.section h2, .login-band h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 600; }
.split-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.portrait-wrap { position: relative; max-width: 510px; }
.portrait-frame { border-radius: 44% 44% 16px 16px; overflow: hidden; box-shadow: var(--shadow); background: #d9d2c8; }
.portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.signature-card { position: absolute; right: -34px; bottom: 28px; width: 190px; background: var(--white); padding: 20px; border-radius: 18px; box-shadow: var(--shadow); }
.script { font-family: 'Allura', cursive; font-size: 46px; line-height: 1; color: var(--terracotta); }
.signature-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.about { background: var(--ivory); }
.about-copy h2 { margin-bottom: 9px; }
.role { margin: 0 0 28px; color: var(--terracotta); font-weight: 700; }
.lead-copy { font-size: 20px; line-height: 1.6; }
.about-copy > p:not(.eyebrow):not(.role) { color: #555b58; }
.about-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.about-tags span { border: 1px solid rgba(78,111,93,.25); color: var(--juniper-dark); border-radius: 999px; padding: 9px 13px; font-size: 11px; font-weight: 600; }

.services { background: #ece5dc; }
.section-heading { display: grid; grid-template-columns: 1fr .9fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 16px; max-width: 580px; }
.service-groups { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.service-panel { background: rgba(255,253,249,.86); border: 1px solid rgba(48,52,51,.08); border-radius: var(--radius); padding: 34px; box-shadow: 0 16px 45px rgba(64,56,50,.06); transition: transform .28s ease, box-shadow .28s ease; }
.service-panel:hover { transform: translateY(-4px); box-shadow: 0 22px 55px rgba(64,56,50,.1); }
.service-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--juniper); color: white; font-weight: 700; font-size: 20px; }
.service-panel:nth-child(even) .service-icon { background: var(--terracotta); }
.service-panel h3 { margin: 20px 0 18px; font-size: 23px; }
.service-panel ul { list-style: none; padding: 0; margin: 0; }
.service-panel li { padding: 15px 0; border-top: 1px solid var(--line); }
.service-panel li strong { display: block; font-size: 13px; }
.service-panel li span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.text-link { display: inline-flex; gap: 9px; color: var(--terracotta); text-decoration: none; font-weight: 700; font-size: 13px; margin-top: 16px; }

.residents { background: var(--white); }
.resident-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 24px; align-items: start; }
.fault-card, .resident-card, .contact-form { background: var(--ivory); border-radius: var(--radius); padding: 34px; border: 1px solid rgba(48,52,51,.08); }
.fault-card h3, .resident-card h3 { margin: 3px 0 8px; font-size: 26px; }
.fault-card > p, .resident-card > p { color: var(--muted); }
.card-kicker { color: var(--terracotta); text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: 10px; }
.resident-side { display: grid; gap: 24px; }
form { margin-top: 24px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 11px; font-weight: 700; color: #565b59; margin-bottom: 14px; }
input, textarea, select { width: 100%; margin-top: 7px; border: 1px solid rgba(48,52,51,.17); background: var(--white); border-radius: 13px; padding: 13px 14px; outline: none; color: var(--graphite); transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--juniper); box-shadow: 0 0 0 3px rgba(78,111,93,.11); }
textarea { resize: vertical; min-height: 120px; }
.upload-box { border: 1.5px dashed rgba(78,111,93,.32); background: rgba(255,253,249,.7); border-radius: 16px; padding: 18px; cursor: pointer; transition: .2s; }
.upload-box:hover { border-color: var(--juniper); background: var(--white); }
.upload-box input { border: 0; background: transparent; padding: 0; margin-top: 10px; }
.upload-title { display: block; color: var(--graphite); font-size: 12px; margin-bottom: 3px; }
.upload-box > span:last-of-type { font-size: 10px; color: var(--muted); font-weight: 500; }
.file-list { display: flex; flex-wrap: wrap; gap: 7px; margin: -2px 0 14px; }
.file-list span { background: rgba(78,111,93,.1); border-radius: 999px; padding: 6px 9px; font-size: 10px; color: var(--juniper-dark); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 500; line-height: 1.5; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--juniper); }
.check a { color: var(--juniper); }
.form-status { min-height: 22px; font-size: 12px; margin-top: 10px; font-weight: 600; }
.form-status.success { color: var(--juniper-dark); }
.form-status.error { color: #9c3e32; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-list { margin-top: 20px; }
.contact-list > div { padding: 14px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; }
.contact-list span { font-size: 12px; color: var(--muted); }
.contact-list strong { font-size: 11px; color: var(--taupe); text-align: right; }
.small-note { font-size: 11px; line-height: 1.55; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li > span { color: var(--terracotta); font-size: 11px; font-weight: 700; }
.steps strong { font-size: 12px; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

.login-band { position: relative; overflow: hidden; padding: 100px 0; background: var(--juniper-dark); color: white; }
.login-band::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(197,111,79,.14); right: -180px; top: -190px; filter: blur(2px); }
.login-grid { position: relative; display: grid; grid-template-columns: 1fr .8fr; gap: 90px; align-items: center; }
.login-grid > div:first-child p:last-child { color: rgba(255,255,255,.72); max-width: 650px; font-size: 17px; }
.login-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: 32px; backdrop-filter: blur(14px); }
.login-card p { color: rgba(255,255,255,.74); font-size: 13px; }
.login-card small { display: block; margin-top: 13px; color: rgba(255,255,255,.5); line-height: 1.5; }
.secure-badge { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 7px 10px; font-size: 10px; font-weight: 700; }

.contact { background: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); max-width: 470px; font-size: 16px; }
.contact-meta { margin-top: 32px; }
.contact-meta > div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-meta span { color: var(--muted); font-size: 11px; }
.contact-meta strong { font-size: 12px; }
.contact-form { margin: 0; background: var(--white); box-shadow: var(--shadow); }

.site-footer { background: #272b29; color: rgba(255,255,255,.72); padding: 50px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 26px 40px; align-items: center; }
.footer-brand-name { display: inline-flex; align-items: baseline; gap: .18em; color: #e7ad92; line-height: 1; }
.footer-brand-name .brand-name-script { font-size: 46px; }
.footer-brand-name .brand-name-home { font-size: 28px; }
.footer-brand p { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.footer-links a, .footer-links button { color: rgba(255,255,255,.7); background: none; border: 0; padding: 0; font-size: 11px; text-decoration: none; }
.footer-links a:hover, .footer-links button:hover { color: white; }
.footer-meta { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.09); padding-top: 20px; font-size: 10px; color: rgba(255,255,255,.42); }
.footer-creator { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; font-size: 10px; color: rgba(255,255,255,.52); }
.footer-creator img { width: 92px; height: auto; background: rgba(255,255,255,.95); border-radius: 6px; padding: 4px 6px; }
.footer-creator span { display: grid; gap: 2px; }
.footer-creator strong { color: rgba(255,255,255,.78); font-weight: 600; }

.cookie-banner { position: fixed; z-index: 3000; left: 20px; right: 20px; bottom: 20px; max-width: 1120px; margin: 0 auto; background: rgba(255,253,249,.97); border: 1px solid rgba(48,52,51,.12); box-shadow: 0 22px 70px rgba(0,0,0,.2); border-radius: 20px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; backdrop-filter: blur(16px); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { font-size: 13px; }
.cookie-banner p { margin: 4px 0 0; color: var(--muted); font-size: 11px; max-width: 670px; }
.cookie-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions > a { font-size: 11px; color: var(--juniper); }
.cookie-modal { position: fixed; z-index: 3200; inset: 0; background: rgba(20,24,22,.58); display: grid; place-items: center; padding: 20px; }
.cookie-modal[hidden] { display: none; }
.cookie-dialog { position: relative; width: min(560px,100%); background: var(--ivory); border-radius: 24px; padding: 32px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.cookie-dialog h2 { font-size: 35px; margin: 0 0 20px; }
.modal-close { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; font-size: 28px; color: var(--muted); }
.cookie-setting { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.cookie-setting strong { font-size: 12px; }
.cookie-setting p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.cookie-setting > span { font-size: 10px; color: var(--juniper); font-weight: 700; white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.legal-page { min-height: 100vh; background: var(--ivory); }
.legal-shell { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.back-link { display: inline-block; margin-bottom: 55px; text-decoration: none; color: var(--juniper); font-size: 12px; font-weight: 700; }
.legal-shell h1 { font-size: clamp(42px, 7vw, 70px); margin-bottom: 30px; }
.legal-shell h2 { font-size: 20px; margin: 42px 0 12px; }
.legal-shell p { color: #555b58; }
.legal-note { background: rgba(197,111,79,.1); border-left: 3px solid var(--terracotta); border-radius: 10px; padding: 16px 18px; font-size: 12px; line-height: 1.6; }
.legal-version { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 20px; font-size: 11px; }

@media (max-width: 980px) {
    .main-nav { position: fixed; inset: 0; background: rgba(39,43,41,.985); display: grid; align-content: center; justify-items: center; gap: 6px; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .25s ease; }
    .main-nav.open { opacity: 1; pointer-events: auto; transform: none; }
    .main-nav a, .site-header.scrolled .main-nav a { color: white; font-size: 19px; padding: 10px 16px; }
    .nav-toggle { display: block; z-index: 1001; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .site-header.scrolled .nav-toggle[aria-expanded="true"] span:not(.sr-only) { background: white; }
    .split-grid, .login-grid, .contact-grid { grid-template-columns: 1fr; gap: 55px; }
    .portrait-wrap { max-width: 560px; }
    .section-heading { grid-template-columns: 1fr; gap: 20px; }
    .resident-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
    .container, .legal-shell { width: min(100% - 28px, 1180px); }
    .nav-shell { min-height: 74px; }
    .brand-copy strong { font-size: 27px; }
    .brand-mark { width: 40px; height: 40px; }
    .hero-content { padding-top: 72px; }
    .hero h1 { font-size: clamp(44px, 13vw, 68px); }
    .hero-lead { font-size: 16px; }
    .hero-scroll { display: none; }
    .intro-grid { grid-template-columns: 1fr; padding-block: 8px; }
    .mini-value, .mini-value + .mini-value { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .mini-value:last-child { border-bottom: 0; }
    .section { padding: 82px 0; }
    .section h2, .login-band h2 { font-size: 40px; }
    .split-grid { gap: 44px; }
    .signature-card { right: 8px; bottom: 14px; }
    .service-groups { grid-template-columns: 1fr; }
    .service-panel, .fault-card, .resident-card, .contact-form { padding: 24px; border-radius: 22px; }
    .form-row.two { grid-template-columns: 1fr; gap: 0; }
    .login-band { padding: 78px 0; }
    .login-grid { gap: 32px; }
    .contact-grid { gap: 40px; }
    .cookie-banner { grid-template-columns: 1fr; left: 10px; right: 10px; bottom: 10px; }
    .cookie-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero-video { display: block; }
    .reveal { opacity: 1; transform: none; }
}

/* V6: multilingual navigation, compact portrait, resident sub-navigation and supplied hero media */
.main-nav { position: relative; }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown-trigger > span { font-size: 11px; transition: transform .2s ease; }
.nav-submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 230px;
    padding: 9px;
    border-radius: 18px;
    background: rgba(255,253,249,.97);
    border: 1px solid rgba(48,52,51,.09);
    box-shadow: 0 22px 55px rgba(27,34,31,.18);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown:hover .nav-dropdown-trigger > span,
.nav-dropdown:focus-within .nav-dropdown-trigger > span { transform: rotate(180deg); }
.main-nav .nav-submenu a,
.site-header.scrolled .main-nav .nav-submenu a {
    display: block;
    color: var(--graphite);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 11px;
    white-space: nowrap;
}
.main-nav .nav-submenu a:hover,
.main-nav .nav-submenu a:focus-visible,
.site-header.scrolled .main-nav .nav-submenu a:hover { color: var(--juniper-dark); background: rgba(78,111,93,.09); }
.language-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.25); }
.site-header.scrolled .language-switch { border-left-color: rgba(48,52,51,.18); }
.main-nav .language-switch a { min-width: 31px; padding: 8px 7px; text-align: center; font-size: 9px; letter-spacing: .04em; }
.main-nav .language-switch a.active { background: rgba(255,255,255,.17); color: white; }
.site-header.scrolled .main-nav .language-switch a.active { background: rgba(78,111,93,.14); color: var(--juniper-dark); }

.hero-video {
    inset: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    max-width: none;
    filter: blur(4px) saturate(.86) contrast(.96);
    transform: scale(1.045);
}
.hero-overlay {
    background:
        linear-gradient(90deg, rgba(34,46,40,.80) 0%, rgba(34,46,40,.57) 48%, rgba(45,48,42,.20) 100%),
        linear-gradient(0deg, rgba(246,240,231,.16), transparent 46%),
        rgba(246,240,231,.08);
}
.hero-ivory-reveal { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--ivory); opacity: .08; animation: heroIvoryReveal 1.65s cubic-bezier(.22,.7,.2,1) both; }
@keyframes heroIvoryReveal { 0% { opacity: 1; } 55% { opacity: .36; } 100% { opacity: .08; } }
.hero-content, .hero-scroll { z-index: 4; }
.hero-grid { z-index: 3; }

.about-grid { grid-template-columns: minmax(260px,.58fr) minmax(0,1.42fr); gap: 78px; }
.portrait-wrap { max-width: 330px; justify-self: center; }
.portrait-frame { border-radius: 34% 34% 16px 16px; }
.portrait-frame img { aspect-ratio: 3 / 4; object-position: 50% 40%; }
.signature-card { right: -24px; bottom: 20px; width: 162px; padding: 16px; }
.signature-card .script { font-size: 40px; }
.about-copy { max-width: 750px; }

.resident-directory { display: grid; grid-template-columns: .88fr 1.12fr; gap: 24px; align-items: stretch; }
.resident-directory .resident-card { height: 100%; scroll-margin-top: 115px; }
.resident-card a { color: inherit; }
.guide-list { margin-top: 22px; border-top: 1px solid var(--line); }
.guide-list details { border-bottom: 1px solid var(--line); }
.guide-list summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 0; cursor: pointer; font-size: 12px; font-weight: 700; }
.guide-list summary::-webkit-details-marker { display: none; }
.guide-list summary span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(78,111,93,.09); color: var(--juniper); transition: transform .2s ease; flex: 0 0 auto; }
.guide-list details[open] summary span { transform: rotate(45deg); }
.guide-list details p { margin: -3px 38px 16px 0; color: var(--muted); font-size: 11px; }
.resident-login {
    scroll-margin-top: 115px;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 55px;
    align-items: center;
    padding: 42px;
    border-radius: var(--radius);
    background: var(--juniper-dark);
    color: white;
    overflow: hidden;
    position: relative;
}
.resident-login::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -140px; top: -160px; background: rgba(197,111,79,.14); }
.resident-login > * { position: relative; z-index: 1; }
.resident-login h3 { margin: 0 0 10px; font-size: 34px; }
.resident-login-copy > p:last-child { margin: 0; color: rgba(255,255,255,.72); max-width: 620px; }
.resident-login .login-card { padding: 26px; }
.fault-card { scroll-margin-top: 115px; margin-top: 24px; background: var(--ivory); }
.fault-card form { max-width: 900px; }
.contact-meta a { text-decoration: none; }
.contact-meta a:hover, .contact-list a:hover { color: var(--terracotta-dark); }

@media (max-width: 1120px) {
    .main-nav a { padding-inline: 9px; font-size: 11px; }
    .main-nav .nav-login { padding-inline: 13px; }
    .main-nav .language-switch a { padding-inline: 5px; }
}

@media (max-width: 980px) {
    .main-nav { overflow-y: auto; padding: 72px 20px 34px; align-content: start; }
    .nav-dropdown { width: min(360px, 92vw); text-align: center; }
    .nav-dropdown-trigger { justify-content: center; width: 100%; }
    .nav-submenu {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 2px;
        padding: 5px;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.08);
        box-shadow: none;
        backdrop-filter: none;
    }
    .main-nav .nav-submenu a,
    .site-header.scrolled .main-nav .nav-submenu a { color: rgba(255,255,255,.75); font-size: 12px; padding: 7px 10px; }
    .main-nav .nav-submenu a:hover,
    .site-header.scrolled .main-nav .nav-submenu a:hover { color: white; background: rgba(255,255,255,.07); }
    .language-switch { margin: 12px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
    .site-header.scrolled .language-switch { border-left: 0; border-top-color: rgba(255,255,255,.14); }
    .main-nav .language-switch a,
    .site-header.scrolled .main-nav .language-switch a { color: rgba(255,255,255,.85); font-size: 11px; padding: 8px 10px; }
    .site-header.scrolled .main-nav .language-switch a.active { color: white; background: rgba(255,255,255,.12); }
    .about-grid { grid-template-columns: 1fr; gap: 46px; }
    .portrait-wrap { max-width: 300px; }
    .resident-directory, .resident-login { grid-template-columns: 1fr; }
    .resident-login { gap: 28px; }
}

@media (max-width: 720px) {
    .portrait-wrap { max-width: 255px; }
    .signature-card { right: -18px; width: 146px; padding: 14px; }
    .signature-card .script { font-size: 35px; }
    .resident-login { padding: 26px; }
    .resident-login h3 { font-size: 28px; }
    .resident-directory { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-ivory-reveal { animation: none; opacity: .08; }
}

/* V6: animated opening ident */
body.modal-open { overflow: hidden; }

.site-intro {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    background: #000;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    animation: kecskemetHomeIntroExit .72s cubic-bezier(.4,0,.2,1) 3s forwards;
}
.site-intro-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 34px);
    opacity: 0;
    transform: scale(.88);
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    animation: kecskemetHomeLogoIntro 3s cubic-bezier(.22,.61,.36,1) forwards;
}
.site-intro img {
    width: clamp(88px, 10vw, 138px);
    height: auto;
    border-radius: 24px;
}
.intro-brand-name {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
}
.brand-name-script {
    font-family: 'Allura', cursive;
    font-weight: 400;
}
.brand-name-home {
    font-family: 'Montserrat', sans-serif;
    font-variant-caps: normal;
    font-feature-settings: normal;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .18em;
}
.intro-brand-name .brand-name-script { font-size: clamp(42px, 5.2vw, 74px); }
.intro-brand-name .brand-name-home { font-size: clamp(24px, 2.8vw, 39px); margin-top: -.12em; margin-right: .08em; }
.brand-copy .brand-name {
    display: inline-flex;
    align-items: baseline;
    gap: .18em;
    white-space: nowrap;
}
.brand-copy .brand-name-script { font-size: 1em; }
.brand-copy .brand-name-home { font-size: .62em; }
@keyframes kecskemetHomeLogoIntro {
    0%   { opacity: 0; transform: scale(.88); }
    18%  { opacity: 1; transform: scale(.95); }
    72%  { opacity: 1; transform: scale(1.08); }
    100% { opacity: 0; transform: scale(1.18); }
}
@keyframes kecskemetHomeIntroExit {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.brand {
    flex-wrap: nowrap;
    min-width: 0;
}
.brand-logo {
    width: auto;
    height: 52px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 13px;
    transition: opacity .3s ease, transform .3s ease;
}
.brand-copy { min-width: 0; }

.nav-dropdown-trigger { line-height: 1; }
.nav-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transform-origin: 60% 60%;
    transition: transform .2s ease;
}
.nav-dropdown:hover .nav-dropdown-trigger > .nav-chevron,
.nav-dropdown:focus-within .nav-dropdown-trigger > .nav-chevron {
    transform: translateY(2px) rotate(225deg);
}

.service-panel h3 { margin-top: 0; }

.guide-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    border-top: 0;
}
.guide-open {
    min-width: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,253,249,.72);
    color: var(--graphite);
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.guide-open:hover,
.guide-open:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(78,111,93,.30);
    background: var(--white);
}
.guide-arrow {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(78,111,93,.10);
    color: var(--juniper-dark);
    font-size: 13px;
}
.guide-modal {
    position: fixed;
    z-index: 3400;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(20,24,22,.66);
    backdrop-filter: blur(5px);
}
.guide-modal[hidden] { display: none; }
.guide-dialog {
    position: relative;
    width: min(600px, 100%);
    max-height: min(76vh, 720px);
    overflow-y: auto;
    padding: 36px;
    border-radius: 26px;
    background: var(--ivory);
    box-shadow: 0 30px 90px rgba(0,0,0,.32);
}
.guide-dialog h2 {
    margin: 0 42px 18px 0;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.06;
    letter-spacing: -.035em;
}
.guide-modal-text {
    margin: 0;
    color: #555b58;
    font-size: 15px;
    line-height: 1.75;
}

@media (max-width: 980px) {
    .site-header { z-index: 5000; }
    .nav-shell {
        min-height: 76px;
        gap: 12px;
    }
    .brand {
        position: relative;
        z-index: 5002;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 9px;
        max-width: calc(100% - 58px);
    }
    .brand-logo {
        height: 42px;
        width: auto;
    }
    .brand-copy {
        display: flex;
        flex-direction: column;
        justify-content: center;
        white-space: nowrap;
    }
    .brand-copy strong { font-size: 26px; }
    .brand-copy small {
        margin-top: 3px;
        font-size: 7.5px;
        letter-spacing: .16em;
    }
    .nav-toggle {
        position: relative;
        z-index: 5003;
        display: block;
        flex: 0 0 46px;
    }
    .main-nav {
        position: fixed !important;
        inset: 0 !important;
        z-index: 5001;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        overflow-y: auto;
        padding: 96px 18px 32px;
        background: rgba(31,39,35,.985);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }
    .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
    .main-nav > a,
    .site-header.scrolled .main-nav > a {
        width: min(360px, 92vw);
        color: white;
        padding: 10px 16px;
        font-size: 17px;
        text-align: center;
    }
    .main-nav .nav-login {
        margin: 8px 0 0;
    }
    .nav-dropdown {
        width: min(360px, 92vw);
        flex: 0 0 auto;
    }
    .nav-dropdown-trigger {
        width: 100%;
        min-height: 42px;
        justify-content: center;
        font-size: 17px !important;
    }
    .nav-submenu {
        position: static;
        width: 100%;
        min-width: 0;
        margin: 0 0 4px;
        padding: 5px;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        background: rgba(255,255,255,.055);
        border-color: rgba(255,255,255,.08);
        box-shadow: none;
        backdrop-filter: none;
    }
    .main-nav .nav-submenu a,
    .site-header.scrolled .main-nav .nav-submenu a {
        color: rgba(255,255,255,.78);
        font-size: 12px;
        padding: 7px 10px;
    }
    .language-switch {
        margin: 12px 0 0;
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.14);
    }
    .site-header.scrolled .language-switch { border-left: 0; border-top-color: rgba(255,255,255,.14); }
    .main-nav .language-switch a,
    .site-header.scrolled .main-nav .language-switch a {
        color: rgba(255,255,255,.86);
        font-size: 11px;
        padding: 8px 10px;
    }
    .site-header.scrolled .main-nav .language-switch a.active {
        color: white;
        background: rgba(255,255,255,.12);
    }
    .main-nav.open ~ * { pointer-events: none; }
}

@media (max-width: 720px) {
    .nav-shell { min-height: 70px; }
    .brand { gap: 8px; }
    .brand-logo { height: 38px; }
    .brand-copy strong { font-size: 24px; }
    .brand-copy small { font-size: 7px; letter-spacing: .13em; }
    .site-intro-mark { gap: 16px; padding: 0 24px; }
    .site-intro img { width: 82px; }
    .intro-brand-name .brand-name-script { font-size: 42px; }
    .intro-brand-name .brand-name-home { font-size: 24px; }
    .nav-toggle { width: 44px; height: 44px; flex-basis: 44px; }
    .main-nav { padding-top: 84px; }
    .guide-list { grid-template-columns: 1fr; }
    .guide-open { min-height: 60px; }
    .guide-dialog { padding: 28px 24px; border-radius: 22px; }
}

@media (max-width: 380px) {
    .brand-logo { height: 34px; }
    .brand-copy strong { font-size: 22px; }
    .brand-copy small { font-size: 6.4px; letter-spacing: .10em; }
    .site-intro-mark { gap: 12px; }
    .site-intro img { width: 68px; }
    .intro-brand-name .brand-name-script { font-size: 34px; }
    .intro-brand-name .brand-name-home { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    /* The opening ident and hero media are core requested content. Keep them visible,
       while the rest of the page still honours the reduced-motion rules above. */
    .site-intro {
        display: grid;
        animation-duration: .72s !important;
        animation-delay: 3s !important;
        animation-iteration-count: 1 !important;
    }
    .site-intro-mark {
        animation-duration: 3s !important;
        animation-iteration-count: 1 !important;
    }
    .guide-open:hover { transform: none; }
}

/* Whole-day hero news ticker */
.hero-news-ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    min-height: 88px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: stretch;
    color: #fff;
    background: rgba(26,31,29,.92);
    border-top: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
}
.hero-news-ticker[hidden] { display: none; }
.hero-news-label {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 156px;
    padding: 0 28px;
    background: var(--terracotta);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hero-news-viewport { min-width: 0; overflow: hidden; display: flex; align-items: center; }
.hero-news-track {
    --news-duration: 36s;
    --news-start: 100vw;
    --news-end: -100%;
    width: max-content;
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: heroNewsTicker var(--news-duration) linear infinite;
}
.hero-news-group { display: inline-flex; align-items: center; flex: 0 0 auto; }
.hero-news-item { display: inline-flex; align-items: baseline; gap: 18px; padding: 0 36px; font-size: 24px; }
.hero-news-item strong { font-size: 22px; letter-spacing: .04em; text-transform: uppercase; color: #f0baa4; }
.hero-news-item span { color: rgba(255,255,255,.88); }
.hero-news-separator { color: rgba(255,255,255,.35); font-size: 22px; }
@keyframes heroNewsTicker {
    from { transform: translateX(var(--news-start)); }
    to { transform: translateX(var(--news-end)); }
}
.hero-scroll { bottom: 122px; }

@media (max-width: 720px) {
    .hero-news-ticker { min-height: 76px; grid-template-columns: auto minmax(0,1fr); }
    .hero-news-label { min-width: 112px; padding: 0 14px; font-size: 16px; letter-spacing: .13em; }
    .hero-news-item { gap: 14px; padding: 0 24px; font-size: 20px; }
    .hero-news-item strong { font-size: 18px; }
    .hero-news-separator { font-size: 18px; }
    .hero-scroll { bottom: 106px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-news-track { animation: none; transform: none; }
    .hero-news-viewport { overflow-x: auto; scrollbar-width: none; }
    .hero-news-viewport::-webkit-scrollbar { display: none; }
}

.legal-creator.footer-creator { margin-top: 28px; color: var(--muted); }
.legal-creator.footer-creator strong { color: var(--graphite); }
