:root {
  --wine: #8d211c;
  --wine-dark: #641713;
  --wine-soft: #f3e7e5;
  --ink: #242321;
  --muted: #6d6964;
  --paper: #f7f5f1;
  --white: #fff;
  --line: #ded9d2;
  --accent: #a6332d;
  --shadow: 0 22px 70px rgba(51, 35, 31, .11);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  overflow-x: clip;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #d45c52; outline-offset: 4px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-150%); background: #fff; padding: 10px 14px; }
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--wine); font-size: .78rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.4rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.45rem, 2.2vw, 2.1rem); }
p { margin: 0 0 1em; }
.lead { max-width: 740px; color: #56514b; font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 11px 19px; border: 1px solid transparent; border-radius: 999px; background: var(--wine); color: #fff; font-size: .88rem; font-weight: 750; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { background: var(--wine-dark); transform: translateY(-2px); }
.button--ghost { border-color: rgba(255,255,255,.45); background: transparent; }
.button--light { background: #fff; color: var(--wine); }
.button--danger { border-color: var(--wine); background: transparent; color: var(--wine); }
.button--danger:hover { background: var(--wine); color: #fff; }
.button--secondary { border-color: #cfc7c0; background: #fff; color: #514c47; }
.button--secondary:hover { border-color: #9d938b; background: #f4f0ec; color: var(--ink); }
.button--utility { min-width: 124px; min-height: 44px; padding: 9px 18px; font-size: .8rem; letter-spacing: .025em; box-shadow: 0 8px 22px rgba(100,23,19,.12); }
.header-action { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions .header-action { margin-left: 0; }
.button:disabled { cursor: not-allowed; opacity: .52; transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(54,42,39,.08); background: rgba(247,245,241,.92); backdrop-filter: blur(16px); }
.nav-shell { display: flex; align-items: center; min-height: 102px; }
.brand { display: inline-flex; align-items: center; width: 86px; flex: none; }
.brand img { width: 72px; height: 76px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); margin-left: auto; }
.site-nav a { position: relative; color: #403c38; font-size: .92rem; text-decoration: none; }
.site-nav a:not(.button)::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--wine); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav .button { color: #fff; }
.site-nav .button::after { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 5px 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle span { display: block; width: 28px; height: 2px; margin: 6px 0; background: currentColor; transition: .25s; }

.hero { position: relative; min-height: min(820px, calc(100vh - 102px)); display: grid; align-items: end; overflow: hidden; color: #fff; background: #302d2b; }
.hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,23,21,.76) 0%, rgba(24,23,21,.34) 50%, rgba(24,23,21,.08) 100%); content: ""; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1) contrast(1.06); }
.hero__content { position: relative; z-index: 1; max-width: 980px; padding-block: clamp(80px, 14vh, 150px); }
.hero h1 span { display: block; color: #e7ada8; font-size: .42em; letter-spacing: -.025em; }
.hero__quote { max-width: 570px; margin: 30px 0 34px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 28px 0 0; padding: 0; color: rgba(255,255,255,.78); font-size: .75rem; font-weight: 750; letter-spacing: .08em; list-style: none; text-transform: uppercase; }
.hero__proof li { position: relative; padding-left: 16px; }
.hero__proof li::before { position: absolute; top: .65em; left: 0; width: 7px; border-top: 2px solid #e7ada8; content: ""; }
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { padding: 18px 32px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.marquee b { color: var(--wine); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding-block: clamp(80px, 11vw, 150px); }
.section--white { background: #fff; }
.section--wine { color: #fff; background: var(--wine); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 56px; }
.section-head .lead { justify-self: end; }
.expertise-grid { display: grid; gap: 18px; }
.expertise-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); min-height: 430px; overflow: hidden; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.expertise-card:nth-child(even) .expertise-card__media { order: 2; }
.expertise-card__media { overflow: hidden; }
.expertise-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.expertise-card:hover img { transform: scale(1.035); }
.expertise-card__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: clamp(34px, 4.5vw, 58px); }
.expertise-card__body > div { flex: 0 0 auto; width: 100%; }
.expertise-card__body h3 { max-width: 14ch; margin: 7px 0 13px; font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.02; }
.expertise-card__body p { color: var(--muted); }
.expertise-card__body > .button { flex: 0 0 auto; margin-top: 0; }
.number { color: var(--wine); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 60px; background: rgba(255,255,255,.24); }
.principle { padding: clamp(28px, 4vw, 48px); background: var(--wine); }
.principle h3 { margin: 20px 0 12px; }
.principle p { color: rgba(255,255,255,.78); }
.quote-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; align-items: start; }
.quote-mark { color: var(--wine); font-family: Georgia, serif; font-size: 11rem; line-height: .65; }
blockquote { margin: 0; }
blockquote p { font-family: Georgia, serif; font-size: clamp(1.7rem, 3.3vw, 3.5rem); line-height: 1.18; letter-spacing: -.025em; }
blockquote footer { margin-top: 28px; color: var(--muted); }
.testimonials-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: clamp(54px, 7vw, 90px); }
.testimonials-head h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.testimonial-controls { display: flex; align-items: center; gap: 12px; flex: none; }
.testimonial-controls button { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--wine); background: #fff; font-size: 1.3rem; cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.testimonial-controls button:hover { color: #fff; background: var(--wine); transform: translateY(-2px); }
.testimonial-controls--single { visibility: hidden; }
.testimonial-status { min-width: 46px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-align: center; }
.testimonial-slides { display: grid; }
.testimonial-slide { grid-area: 1 / 1; align-self: start; opacity: 0; transform: translateX(28px); visibility: hidden; transition: opacity .65s ease, transform .65s ease, visibility .65s; }
.testimonial-slide.is-active { opacity: 1; transform: translateX(0); visibility: visible; }
.testimonials-section.is-paused .testimonial-status::after { margin-left: 5px; content: "· Pause"; letter-spacing: 0; }

.page-hero { padding: clamp(90px, 13vw, 170px) 0 80px; background: #fff; }
.page-hero h1 { max-width: 970px; }
.page-hero .lead { margin-top: 28px; }
.page-hero__copy > .button { margin-top: 28px; }
.page-hero--visual { padding-block: clamp(72px, 9vw, 120px); }
.page-hero__layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr); align-items: center; gap: clamp(40px, 7vw, 92px); }
.page-hero__media { aspect-ratio: 16 / 9; margin: 0; overflow: hidden; border-radius: var(--radius); background: #d9d3cc; box-shadow: var(--shadow); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.content-grid { display: grid; grid-template-columns: minmax(120px, .24fr) minmax(0, 1.76fr); gap: clamp(32px, 5vw, 68px); }
.sticky-label { position: sticky; top: 140px; align-self: start; color: var(--wine); font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.content-list { display: grid; gap: 70px; }
.content-item { padding-top: 28px; border-top: 1px solid var(--line); }
.content-item h2, .content-item h3 { margin-bottom: 20px; }
.content-item p { max-width: 760px; color: #5f5a55; }
.industry-item { display: grid; grid-template-columns: minmax(250px, .58fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 48px); }
.industry-item__media { aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border-radius: 14px; background: #ddd8d1; }
.industry-item__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(.95); opacity: .94; transition: filter .35s ease, opacity .35s ease, transform .55s ease; }
.industry-item:hover .industry-item__media img { filter: saturate(.85) contrast(.98); opacity: 1; transform: scale(1.02); }
.industry-item__body { min-width: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.tag { padding: 7px 12px; border-radius: 999px; background: var(--wine-soft); color: var(--wine-dark); font-size: .78rem; font-weight: 700; }
.services-hero { padding-bottom: clamp(64px, 8vw, 100px); }
.service-jump-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 42px; }
.service-jump-nav a { display: flex; align-items: center; gap: 9px; min-height: 56px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: #4d4843; font-size: .76rem; font-weight: 750; line-height: 1.3; text-decoration: none; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.service-jump-nav a:hover { border-color: var(--wine); background: var(--wine); color: #fff; transform: translateY(-2px); }
.service-jump-nav span { color: var(--wine); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; }
.service-jump-nav a:hover span { color: #f0b9b4; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 14px 40px rgba(48,35,31,.08); }
.team-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #d8d6d2; filter: saturate(.74) contrast(.98); }
.team-card__placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 1/1; background: linear-gradient(145deg, #a7a49d, #77756f); color: rgba(255,255,255,.92); font-family: Georgia, serif; font-size: clamp(3.2rem, 8vw, 6rem); letter-spacing: -.04em; }
.team-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.team-card__body p { margin: 7px 0 0; color: var(--muted); font-size: .92rem; }
.team-card__name-link { display: inline-flex; align-items: baseline; gap: 7px; color: inherit; text-decoration: none; }
.team-card__name-link span { color: var(--wine); font-family: Arial, sans-serif; font-size: .7em; transition: transform .2s ease; }
.team-card__name-link:hover span { transform: translate(2px,-2px); }
.team-card__linkedin { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--wine-dark); font-size: .76rem; font-weight: 750; text-decoration: none; }
.team-card__linkedin > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; color: #fff; background: #0a66c2; font-family: Arial, sans-serif; font-size: .72rem; letter-spacing: -.03em; }
.team-card__linkedin:hover { color: #0a66c2; }
.service-reference { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: start; padding: clamp(32px, 5vw, 62px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.service-reference__mark { color: var(--wine); font-family: Georgia, serif; font-size: clamp(5rem, 9vw, 9rem); line-height: .7; }
.service-reference blockquote p { font-size: clamp(1.55rem, 3vw, 2.65rem); }

.service-hero .page-hero__copy > .button { margin-top: 28px; }
.service-hero--ki .page-hero__copy { min-width: 0; }
.service-hero--ki h1 { max-width: 8.5ch; font-size: clamp(3rem, 6vw, 5.3rem); line-height: 1; }
.service-hero--leadership .page-hero__copy { min-width: 0; }
.service-hero--leadership h1 { max-width: 9.5ch; font-size: clamp(3rem, 5.6vw, 5.1rem); line-height: 1; }
.service-hero--diagnostics .page-hero__copy { min-width: 0; }
.service-hero--diagnostics h1 { max-width: 9ch; font-size: clamp(2.85rem, 5vw, 4.8rem); line-height: 1; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .76rem; }
.breadcrumbs a { color: var(--wine-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.breadcrumbs span[aria-current="page"] { color: var(--muted); }
.service-detail-grid { display: grid; grid-template-columns: minmax(230px, .55fr) minmax(0, 1.45fr); align-items: start; gap: clamp(42px, 8vw, 110px); }
.service-facts { position: sticky; top: 140px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.service-facts dl { display: grid; gap: 22px; margin: 24px 0 0; }
.service-facts dl > div { padding-top: 18px; border-top: 1px solid var(--line); }
.service-facts dt { margin-bottom: 6px; color: var(--wine); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.service-facts dd { margin: 0; color: #5f5a55; font-size: .92rem; line-height: 1.55; }
.service-detail-copy { display: grid; gap: 64px; }
.service-detail-copy section { padding-top: 28px; border-top: 1px solid var(--line); }
.service-detail-copy section:first-child { padding-top: 0; border-top: 0; }
.service-detail-copy h2 { margin-bottom: 22px; }
.service-detail-copy p { max-width: 780px; color: #5f5a55; }
.check-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; color: #5f5a55; }
.check-list li::before { position: absolute; top: 12px; left: 0; width: 14px; height: 0; border-top: 2px solid var(--wine); content: ""; }

.portal-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 102px); }
.portal-intro { display: flex; flex-direction: column; justify-content: flex-end; min-height: 650px; padding: clamp(45px, 7vw, 100px); color: #fff; background: linear-gradient(145deg, rgba(34,31,29,.2), rgba(34,31,29,.86)), url('../images/hero.avif') center/cover; }
.portal-intro h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.portal-panel { display: grid; align-content: center; justify-items: center; gap: 28px; padding: 50px 24px; background: #fff; }
.auth-card { width: min(100%, 470px); }
.auth-card h2 { margin-bottom: 15px; }
.auth-card > p { color: var(--muted); }
.portal-review { display: grid; grid-template-columns: 44px minmax(0, 1fr); width: min(100%, 470px); gap: 17px; padding: 22px; border: 1px solid #e4d8d1; border-radius: 18px; background: linear-gradient(145deg, #fcf8f5, #f6efea); box-shadow: 0 14px 38px rgba(55,38,33,.07); }
.portal-review__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); font-size: 1.2rem; }
.portal-review .eyebrow { margin-bottom: 7px; }
.portal-review h3 { font-size: 1.35rem; line-height: 1.15; }
.portal-review p:not(.eyebrow) { margin: 10px 0 17px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.portal-review .button { min-height: 42px; padding: 10px 16px; font-size: .72rem; }
.portal-review small { display: block; margin-top: 11px; color: #837b75; font-size: .7rem; line-height: 1.4; }
.form-stack { display: grid; gap: 18px; margin-top: 36px; }
label { display: grid; gap: 7px; color: #4c4844; font-size: .84rem; font-weight: 700; }
input, textarea { width: 100%; padding: 14px 15px; border: 1px solid #cdc7bf; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 145px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--wine); outline: 2px solid rgba(141,33,28,.12); }
.password-field { position: relative; display: block; width: 100%; }
.password-field input { padding-right: 94px; }
.password-toggle { position: absolute; top: 50%; right: 5px; z-index: 2; min-width: 82px; min-height: 40px; padding: 6px 9px; border: 0; border-radius: 999px; background: var(--wine-soft); color: var(--wine-dark); font-size: .72rem; font-weight: 750; line-height: 1.2; cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { background: #ead5d2; }
.password-toggle:focus-visible { outline: 3px solid #d45c52; outline-offset: 2px; }
.form-message { min-height: 24px; color: var(--wine); font-size: .9rem; }
.session-timeout-warning { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; width: min(calc(100% - 40px), 390px); gap: 8px; padding: 20px; border: 1px solid #dfc9c5; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(55,38,33,.22); }
.session-timeout-warning strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.session-timeout-warning span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.session-timeout-warning .button { width: fit-content; margin-top: 4px; }
.dashboard { width: 100%; }
.dashboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.dashboard-head > .button { flex: none; margin-top: 6px; }
.admin-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; }
.admin-tab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 74px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #4d4843; font: inherit; font-size: .78rem; font-weight: 750; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.admin-tab:hover { border-color: #c5b7ae; transform: translateY(-2px); }
.admin-tab[aria-selected="true"] { border-color: var(--wine); background: var(--wine); color: #fff; box-shadow: 0 10px 28px rgba(100,23,19,.17); }
.admin-tab-number { color: var(--wine); font-size: .66rem; letter-spacing: .08em; }
.admin-tab[aria-selected="true"] .admin-tab-number { color: #efc5c1; }
.admin-tab-count { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 6px; border-radius: 999px; background: var(--wine-soft); color: var(--wine-dark); font-size: .68rem; }
.admin-tab[aria-selected="true"] .admin-tab-count { background: rgba(255,255,255,.18); color: #fff; }
.admin-workspace { min-height: 520px; }
.admin-panel { padding: clamp(24px, 5vw, 52px); border: 1px solid #e5ddd6; border-radius: 22px; background: linear-gradient(145deg, #fff, #fcf9f6); box-shadow: 0 18px 54px rgba(55,38,33,.08); }
.admin-panel-head { max-width: 760px; margin-bottom: 32px; }
.admin-panel-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.admin-panel-head > p:last-child { max-width: 680px; margin: 14px 0 0; color: var(--muted); }
.admin-form { max-width: 660px; margin-top: 0; }
.admin-list { max-width: 900px; }
.document-list { display: grid; gap: 12px; }
.document-card { display: flex; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.document-card--pdf { position: relative; overflow: hidden; padding: 22px 22px 22px 26px; border-color: #e7ded8; background: linear-gradient(135deg, #fff 0%, #fbf7f4 100%); box-shadow: 0 12px 32px rgba(67,42,36,.07); }
.document-card--pdf::before { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--wine); content: ""; }
.document-icon { display: grid; place-items: center; width: 52px; height: 60px; flex: none; border-radius: 10px 10px 10px 4px; background: linear-gradient(145deg, var(--wine), var(--wine-dark)); color: #fff; box-shadow: 0 8px 18px rgba(100,23,19,.2); font-size: .7rem; font-weight: 850; letter-spacing: .08em; }
.document-meta { flex: 1; }
.document-meta strong { display: block; margin-bottom: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 600; }
.document-meta span { display: block; color: var(--muted); font-size: .82rem; }
.document-meta .document-date { margin-top: 2px; color: #918b85; font-size: .74rem; }
.document-meta .document-security { width: fit-content; margin-top: 8px; padding: 4px 8px; border-radius: 999px; background: #e7f2ea; color: #336443; font-size: .7rem; font-weight: 750; }
.document-meta .document-security.is-missing { background: #f8e9e5; color: var(--wine-dark); }
.document-actions { display: grid; grid-template-columns: repeat(2, minmax(108px, 1fr)); gap: 8px; }
.document-actions .button { min-height: 42px; padding: 8px 15px; font-size: .74rem; }
.document-card--editing { display: block; }
.document-password-form { display: grid; grid-template-columns: 1fr minmax(200px, .8fr); align-items: end; gap: 14px; width: 100%; }
.document-password-form > div:first-child span { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.document-password-form input { padding: 11px 12px; }
.document-password-form small, .form-stack label small { color: var(--muted); font-weight: 500; line-height: 1.45; }
.document-password-actions { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 8px; }
.document-password-form .form-message { grid-column: 1 / -1; margin: 0; }
.admin-hint { margin: 12px 0 20px; color: var(--muted); font-size: .86rem; }
.auth-text-button { justify-self: center; padding: 3px 0; border: 0; color: var(--wine); background: transparent; font: inherit; font-size: .86rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.auth-text-button:hover { color: var(--wine-dark); }
.auth-card .form-stack small { margin-top: -5px; color: var(--muted); font-size: .78rem; }
.login-help { margin: -3px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.login-help a { color: var(--wine); font-weight: 750; text-underline-offset: 3px; }
.customer-card { display: grid; gap: 14px; padding: 17px; border-color: #e4dcd5; background: linear-gradient(145deg, #fff, #faf6f2); }
.customer-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.customer-avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--wine-soft); color: var(--wine-dark); font-size: .78rem; font-weight: 850; letter-spacing: .04em; }
.customer-copy { min-width: 0; }
.customer-copy strong { display: block; overflow: hidden; font-size: 1rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.customer-copy span { display: block; margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: .78rem; }
.customer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.customer-card .button { min-height: 40px; padding: 8px 10px; font-size: .72rem; }
.customer-card--editing { padding: 18px; }
.customer-edit-form { display: grid; gap: 14px; }
.customer-edit-form input { padding: 11px 12px; }
.customer-edit-form small { color: var(--muted); font-weight: 500; }
.customer-edit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.customer-edit-form .form-message { margin: 0; }
.portal-document { align-items: center; }
.portal-document .document-meta { min-width: 150px; }
.document-download-form { display: grid; grid-template-columns: minmax(190px, 240px) minmax(145px, auto); align-items: end; gap: 10px; }
.document-download-form input { padding: 11px 12px; }
.document-download-form .button { min-width: 145px; min-height: 44px; padding-inline: 18px; }
.document-download-form .form-message { grid-column: 1 / -1; min-height: 0; margin: 0; font-size: .78rem; }
[hidden] { display: none !important; }

.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9vw; }
.contact-details { margin-top: 34px; color: rgba(255,255,255,.8); }
.contact-details a { color: #fff; text-underline-offset: 4px; }
.contact-map-card { width: min(100%, 470px); height: 260px; margin-top: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: #e9e3dc; box-shadow: 0 18px 44px rgba(42,18,16,.15); }
.contact-map-card iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-map-preview { position: relative; display: flex; height: 100%; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 22px; color: var(--ink); background-color: #ece7e1; background-image: linear-gradient(35deg, transparent 45%, rgba(159,148,137,.42) 46%, rgba(159,148,137,.42) 49%, transparent 50%), linear-gradient(145deg, transparent 35%, rgba(255,255,255,.9) 36%, rgba(255,255,255,.9) 41%, transparent 42%), linear-gradient(90deg, transparent 24%, rgba(183,174,165,.45) 25%, rgba(183,174,165,.45) 27%, transparent 28%, transparent 68%, rgba(183,174,165,.38) 69%, rgba(183,174,165,.38) 71%, transparent 72%); background-size: 180px 150px, 220px 180px, 190px 100%; }
.contact-map-preview::after { position: absolute; inset: auto 0 0; height: 75%; background: linear-gradient(180deg, transparent, rgba(255,255,255,.96) 73%); content: ""; }
.contact-map-pin { position: absolute; top: 38px; left: 56%; z-index: 1; width: 42px; height: 42px; border-radius: 50% 50% 50% 0; background: var(--wine); box-shadow: 0 10px 24px rgba(101,24,20,.28); transform: rotate(-45deg); }
.contact-map-pin span { position: absolute; top: 12px; left: 12px; width: 18px; height: 18px; border: 4px solid #fff; border-radius: 50%; }
.contact-map-copy, .contact-map-actions, .contact-map-preview small { position: relative; z-index: 1; }
.contact-map-copy { display: grid; gap: 2px; }
.contact-map-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.contact-map-copy span { color: var(--muted); font-size: .8rem; }
.contact-map-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.contact-map-actions .button { min-height: 40px; padding: 9px 15px; color: #fff; background: var(--wine); font-size: .7rem; }
.contact-map-actions > a { color: var(--wine-dark); font-size: .76rem; font-weight: 750; text-underline-offset: 4px; }
.contact-map-preview small { margin-top: 9px; color: #7d756e; font-size: .62rem; }
.review-invite { width: min(100%, 470px); margin-top: 30px; padding: 25px 26px; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: rgba(255,255,255,.08); }
.review-invite .eyebrow { margin-bottom: 10px; color: #f0b9b4; }
.review-invite p:not(.eyebrow) { margin-bottom: 18px; color: rgba(255,255,255,.82); }
.review-invite .button { font-size: .75rem; }
.review-invite small { display: block; margin-top: 12px; color: rgba(255,255,255,.68); font-size: .67rem; line-height: 1.45; }
.review-invite + .contact-map-card { margin-top: 20px; }
.contact .form-stack { margin-top: 0; }
.contact .form-stack > label:not(.checkbox):not(.honeypot) { color: #fff; }
.contact input, .contact textarea { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.08); color: #fff; }
.contact input::placeholder, .contact textarea::placeholder { color: rgba(255,255,255,.65); }
.section--wine#kontakt { padding-block: clamp(72px, 8vw, 105px); }
.section--wine#kontakt .contact { gap: clamp(48px, 6vw, 84px); }
.section--wine#kontakt .form-stack { gap: 15px; }
.section--wine#kontakt textarea { min-height: 120px; }
.checkbox { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.8); font-weight: 400; }
.checkbox input { width: auto; margin-top: 5px; }
.honeypot { position: absolute; left: -10000px; }
.site-footer { padding: 34px 0; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.72); background: var(--wine-dark); font-size: .82rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a[href="/admin/"] { opacity: .58; font-size: .75rem; }
.footer-links a { text-underline-offset: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--wine-dark); font-size: .84rem; font-weight: 750; text-underline-offset: 4px; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.legal-hero { padding-bottom: clamp(56px, 7vw, 82px); }
.legal-content { gap: 48px; }
.legal-content .content-item { scroll-margin-top: 130px; }
.legal-content .content-item h2 { max-width: 760px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.legal-content .content-item p { max-width: 820px; }
.legal-content a { color: var(--wine-dark); text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 900px) {
  .nav-shell { min-height: 82px; }
  .brand img { width: 60px; height: 63px; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; top: 82px; right: 0; left: 0; height: calc(100dvh - 82px); display: flex; flex-direction: column; align-items: flex-start; gap: 0; overflow-y: auto; padding: 38px 20px; background: var(--paper); transform: translateX(100%); transition: transform .3s; }
  .site-nav.is-open { transform: translateX(0); }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-facts { position: static; }
  .site-nav a { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line); font-family: Georgia, serif; font-size: 1.55rem; }
  .site-nav .button { width: auto; margin-top: 24px; padding-inline: 22px; font-family: inherit; font-size: .88rem; }
  .hero { min-height: calc(100svh - 82px); }
  .section-head, .quote-section, .content-grid, .contact, .portal-layout, .page-hero__layout { grid-template-columns: 1fr; }
  .page-hero__media { width: 100%; }
  .section-head .lead { justify-self: start; }
  .expertise-card { grid-template-columns: 1fr; }
  .expertise-card:nth-child(even) .expertise-card__media { order: 0; }
  .expertise-card { min-height: 0; }
  .expertise-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .expertise-card__body { min-height: 0; padding: 38px; }
  .principles { grid-template-columns: 1fr; }
  .sticky-label { position: static; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-intro { min-height: 420px; }
  .document-password-form { grid-template-columns: 1fr; }
  .document-password-form > * { grid-column: 1; }
  .admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-jump-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero::after { background: linear-gradient(180deg, rgba(24,23,21,.18), rgba(24,23,21,.86)); }
  .hero__image { object-position: 57% center; }
  .hero__content { padding-block: 70px; }
  .hero h1 { font-size: clamp(3.25rem, 17vw, 5rem); }
  .section { padding-block: 78px; }
  .section-head { margin-bottom: 38px; }
  .expertise-card__media { min-height: 0; aspect-ratio: 4 / 3; }
  .expertise-card__body { min-height: 0; padding: 30px 24px 34px; }
  .expertise-card__body h3 { max-width: none; font-size: clamp(1.85rem, 9vw, 2.35rem); }
  .expertise-card__body { gap: 24px; }
  .expertise-card__body > .button { width: 100%; margin-top: 0; text-align: center; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-map-card { height: 270px; }
  .contact-map-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .portal-panel { padding: 42px 14px; }
  .portal-review { grid-template-columns: 1fr; padding: 20px; }
  .portal-review__mark { width: 40px; height: 40px; }
  .industry-item { grid-template-columns: 1fr; gap: 22px; }
  .industry-item__media { width: min(100%, 420px); }
  .service-reference { grid-template-columns: 1fr; gap: 12px; }
  .service-reference__mark { font-size: 6rem; }
  .page-hero { padding-top: 72px; }
  .quote-mark { font-size: 7rem; }
  .testimonials-head { align-items: flex-start; flex-direction: column; margin-bottom: 42px; }
  .testimonial-controls { align-self: flex-end; }
  .footer-row, .document-card { align-items: flex-start; flex-direction: column; }
  .dashboard-head { align-items: flex-start; gap: 14px; }
  .dashboard-head > .button { min-width: 108px; margin-top: 3px; }
  .document-actions { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-download-form { width: 100%; grid-template-columns: 1fr; }
  .document-download-form > * { grid-column: 1; width: 100%; }
  .admin-tab { min-height: 66px; padding: 11px; font-size: .72rem; }
  .admin-panel { padding: 24px 18px; border-radius: 17px; }
  .header-actions { gap: 7px; }
  .header-actions .button--utility { min-width: 0; min-height: 42px; padding: 8px 13px; font-size: .72rem; }
  input, textarea, select { font-size: 16px; }
  .password-toggle { min-height: 44px; }
  .service-jump-nav { grid-template-columns: 1fr; margin-top: 32px; }
  .service-jump-nav a { min-height: 52px; }
}
