:root {
  --background: #ffffff;
  --foreground: #111a2b;
  --card: #ffffff;
  --card-foreground: #111a2b;
  --popover: #ffffff;
  --popover-foreground: #111a2b;
  --primary: #145fe9;
  --primary-foreground: #ffffff;
  --secondary: #edf4ff;
  --secondary-foreground: #081a39;
  --muted: #f3f6fa;
  --muted-foreground: #5d687a;
  --accent: #e6efff;
  --accent-foreground: #081a39;
  --destructive: #c81e2b;
  --border: #dce3ed;
  --input: #cdd7e4;
  --ring: #3c82ff;
  --radius: 0.25rem;
  --navy: #081a39;
  --navy-2: #10284f;
  --blue: #145fe9;
  --blue-light: #3c82ff;
  --ice: #edf4ff;
  --ink: #111a2b;
  --subtle: #5d687a;
  --line: #dce3ed;
  --max: 1200px;
  --shadow: 0 24px 70px rgba(6, 21, 48, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 132px); }
.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; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 4px; }

.siteHeader { position: absolute; inset: 0 0 auto; z-index: 20; color: white; border-bottom: 1px solid rgba(255,255,255,.2); }
.solidHeader { position: relative; background: var(--navy); }
.navWrap { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; line-height: 1; }
.brandMark { display: flex; align-items: center; gap: 2px; font-size: 2rem; letter-spacing: -.12em; }
.brandMark strong:last-child, .brandMark b { color: var(--blue-light); }
.brandMark b { margin-inline: 3px 5px; font-size: 1.5rem; }
.brandCopy { display: grid; gap: 5px; padding-left: 12px; border-left: 1px solid currentColor; }
.brandCopy b { font-size: .91rem; letter-spacing: .08em; }
.brandCopy small { font-size: .56rem; letter-spacing: .15em; opacity: .72; }
.desktopNav { display: flex; align-items: center; gap: 32px; font-size: .92rem; font-weight: 700; }
.desktopNav > a { position: relative; }
.desktopNav > a:not(.navCta)::after { content: ""; position: absolute; inset: auto 0 -7px; height: 2px; background: var(--blue-light); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.desktopNav > a:hover::after, .desktopNav > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.navCta { padding: 11px 18px; border: 1px solid rgba(255,255,255,.5); }
.mobileNav { display: none; }

.hero { position: relative; min-height: min(880px, 100svh); display: flex; align-items: center; overflow: hidden; background: var(--navy); color: white; }
.heroImage, .heroShade, .heroGrid { position: absolute; inset: 0; height: 100%; }
.heroImage { object-fit: cover; object-position: center; }
.heroShade { background: linear-gradient(90deg, rgba(5,18,43,.98) 0%, rgba(5,18,43,.88) 42%, rgba(5,18,43,.23) 75%, rgba(5,18,43,.2) 100%), linear-gradient(0deg, rgba(6,19,41,.62), transparent 55%); }
.heroGrid { opacity: .11; background-image: linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px); background-size: 96px 96px; mask-image: linear-gradient(to right, black, transparent 70%); }
.heroContent { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 150px; }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 11px; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 850; }
.eyebrow span { width: 32px; height: 3px; background: var(--blue-light); }
.eyebrowDark { color: var(--blue); }
.hero h1, .subHero h1, .section h2 { margin: 0; line-height: .98; letter-spacing: -.045em; }
.hero h1 { max-width: 860px; font-size: clamp(3.5rem, 8vw, 7.4rem); font-weight: 780; }
.hero h1 em, .subHero h1 em { color: var(--blue-light); font-style: normal; }
.heroIntro { max-width: 680px; margin: 30px 0 0; color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.heroActions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 24px; border: 1px solid transparent; font-weight: 800; transition: transform .2s ease, background .2s ease, border .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.buttonPrimary, .brandButton { background: var(--blue) !important; color: white !important; border-radius: 0 !important; box-shadow: 0 14px 35px rgba(20,95,233,.25); }
.buttonPrimary:hover, .brandButton:hover { background: #0d50ca !important; }
.buttonGhost { color: white; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.05); backdrop-filter: blur(6px); }
.heroFacts { position: absolute; z-index: 3; inset: auto 0 0; height: 102px; display: flex; align-items: center; border-top: 1px solid rgba(255,255,255,.22); }
.heroFacts > div { height: 100%; min-width: 190px; padding-right: 34px; margin-right: 34px; display: flex; align-items: center; gap: 12px; border-right: 1px solid rgba(255,255,255,.2); }
.heroFacts strong { color: var(--blue-light); font-size: 1.1rem; letter-spacing: .08em; }
.heroFacts span { font-size: .78rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .11em; color: rgba(255,255,255,.72); }

.intro { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; align-items: center; position: relative; }
.introGraphic img { width: min(100%, 340px); height: auto; display: block; }
.sectionKicker, .sectionLabel { color: var(--blue); font-size: .76rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.introCopy h2, .sectionHead h2, .process h2, .contact h2 { font-size: clamp(2.55rem, 5vw, 5rem); }
.introCopy p { max-width: 820px; color: var(--subtle); font-size: clamp(1.08rem, 1.7vw, 1.4rem); }
.introLine { position: absolute; bottom: 0; left: 24px; right: 24px; height: 1px; background: var(--line); }

.services { background: #f5f7fa; }
.sectionHead { display: grid; grid-template-columns: 1.6fr .7fr; gap: 50px; align-items: end; margin-bottom: 48px; }
.sectionHead > p, .sectionAside > p { color: var(--subtle); margin: 0 0 4px; }
.serviceGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.serviceCard { position: relative; min-height: 500px; overflow: hidden; color: white; background: var(--navy); isolation: isolate; }
.serviceCardWide { grid-column: 1 / -1; min-height: 540px; }
.serviceCard > img { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.serviceCard:hover > img { transform: scale(1.035); }
.serviceOverlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,18,41,.96), rgba(6,18,41,.04) 72%); }
.serviceNumber { position: absolute; top: 26px; right: 28px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.52); font-size: .75rem; font-weight: 800; }
.serviceContent { position: absolute; inset: auto 30px 30px; max-width: 720px; }
.serviceContent h3 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.05; }
.serviceContent p { margin: 0; max-width: 650px; color: rgba(255,255,255,.75); }
.serviceContent ul { margin: 20px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; list-style: none; }
.serviceContent li { padding: 7px 10px; border: 1px solid rgba(255,255,255,.3); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }

.process { background: white; }
.processLayout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 120px); align-items: start; }
.processSticky { position: sticky; top: 40px; }
.processSticky img, .processFigure img { height: 280px; margin-top: 42px; object-fit: cover; box-shadow: var(--shadow); }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 74px 1fr; gap: 25px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--blue); font-weight: 850; letter-spacing: .1em; }
.steps h3 { margin: 0 0 7px; font-size: 1.45rem; }
.steps p { margin: 0; color: var(--subtle); }

.latest { background: var(--navy); color: white; }
.latest .sectionHead > p, .latest .sectionAside > p { color: rgba(255,255,255,.65); }
.sectionAside { display: grid; gap: 18px; }
.textArrow { color: var(--blue-light); font-weight: 850; }
.projectGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 310px; gap: 14px; }
.projectGridCompact { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; }
.projectTile { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; text-align: left; color: white; background: #10284f; }
.projectTile img { height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.projectTile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,17,40,.9), transparent 58%); }
.projectTile > span { position: absolute; z-index: 2; inset: auto 22px 18px; display: grid; }
.projectTile b { font-size: 1rem; }
.projectTile small { color: rgba(255,255,255,.7); font-size: .76rem; }
.projectTile:hover img, .projectTile:focus-visible img { transform: scale(1.04); filter: saturate(1.08); }
.projectGrid:not(.projectGridCompact) .tile1, .projectGrid:not(.projectGridCompact) .tile6 { grid-row: span 2; }
.projectGrid:not(.projectGridCompact) .tile4 { grid-column: span 2; }
.galleryState { min-height: 220px; padding: 40px; display: grid; place-content: center; gap: 6px; text-align: center; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); background: rgba(255,255,255,.04); }
.galleryState strong { color: white; font-size: 1.1rem; }
.galleryPage .galleryState { color: var(--subtle); border-color: var(--line); background: #f7f9fc; }
.galleryPage .galleryState strong { color: var(--ink); }
.galleryError { color: #ffd1d5 !important; }
.imageDialog { width: min(94vw, 1080px) !important; max-width: 1080px !important; max-height: 90vh; padding: 0 !important; gap: 0 !important; overflow: hidden; border: 0 !important; border-radius: 0 !important; background: #07152f !important; color: white !important; }
.imageDialog img { max-height: 80vh; object-fit: contain; }
.imageDialog > p { margin: 0; padding: 16px 20px 20px; }

.contact { position: relative; overflow: hidden; background: #0c234a; color: white; }
.contactBg { position: absolute; inset: 0; opacity: .18; background: repeating-linear-gradient(135deg, transparent 0 42px, rgba(60,130,255,.45) 43px 44px); mask-image: linear-gradient(90deg, transparent, black); }
.contactGrid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(50px, 8vw, 100px); align-items: center; }
.contactLead { max-width: 650px; margin: 28px 0 34px; color: rgba(255,255,255,.72); font-size: 1.1rem; }
.contactCard { position: relative; padding: 14px; background: white; color: var(--ink); box-shadow: var(--shadow); font-style: normal; display: grid; gap: 6px; }
.contactCard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--blue) 0 55%, var(--navy) 55%); }
.cardCorner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--blue); pointer-events: none; }
.cardCorner.tl { top: 11px; left: 6px; border-right: 0; border-bottom: 0; }
.cardCorner.tr { top: 11px; right: 6px; border-left: 0; border-bottom: 0; }
.cardCorner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.cardCorner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.contactRow { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: center; padding: 20px 18px; color: inherit; text-decoration: none; background: #f6f8fb; border: 1px solid var(--line); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.contactCard > .contactRow:first-of-type { margin-top: 10px; }
a.contactRow:hover, a.contactRow:focus-visible { background: white; border-color: var(--blue); transform: translateX(4px); }
a.contactRow:hover .contactArrow { color: var(--blue); transform: translate(2px, -2px); }
.contactIcon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: white; box-shadow: 0 0 0 5px rgba(20,95,233,.12); }
.contactIcon svg { width: 24px; height: 24px; }
.contactBody { display: grid; gap: 2px; min-width: 0; }
.contactBody small { margin-bottom: 4px; color: var(--blue); font-weight: 850; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; }
.contactBody a, .contactValue { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 10px; white-space: nowrap; margin: 0; color: inherit; text-decoration: none; font-size: clamp(1.1rem, 1.8vw, 1.32rem); font-weight: 750; line-height: 1.35; }
.contactValue { white-space: normal; }
.contactBody a:hover { color: var(--blue); }
.contactHint { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); padding: 2px 7px; border: 1px solid var(--line); }
.contactSub { color: var(--subtle); font-size: .86rem; }
.contactArrow { font-size: 1.4rem; font-weight: 850; color: var(--subtle); transition: color .2s ease, transform .2s ease; }
.contactFoot { display: flex; align-items: center; gap: 10px; padding: 14px 18px 8px; font-size: .84rem; color: var(--subtle); }
.contactDot { width: 9px; height: 9px; border-radius: 50%; background: #1c8b54; box-shadow: 0 0 0 4px rgba(28,139,84,.18); }
.textLink { margin-top: 11px; color: var(--blue); font-size: .88rem; font-weight: 800; }

.subHero { padding: 105px 0 90px; background: var(--navy); color: white; position: relative; overflow: hidden; }
.subHero::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 84px 84px; mask-image: linear-gradient(to right, black, transparent 82%); }
.subHero .shell { position: relative; }
.subHero h1 { font-size: clamp(3.2rem, 7vw, 6.4rem); }
.subHero p:last-child { max-width: 680px; margin: 26px 0 0; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.galleryPage { background: white; }
.uploadManager { display: grid; grid-template-columns: 1fr auto; gap: 26px 40px; align-items: center; margin-bottom: 52px; padding: 30px; border: 1px solid var(--line); background: #f6f8fb; }
.uploadManager h2 { margin: 5px 0 6px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.uploadManager p { margin: 0; color: var(--subtle); }
.uploadPanel { grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid var(--line); }
.loginForm { max-width: 560px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.uploadForm { display: grid; gap: 18px; max-width: 720px; }
.uploadFormHead { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.uploadFormHead div { display: grid; }
.uploadFormHead span { color: var(--subtle); font-size: .84rem; }
.uploadForm label, .loginForm label { display: grid; gap: 7px; font-weight: 750; font-size: .9rem; }
.uploadForm input, .loginForm input { min-height: 48px; border-radius: 0; background: white; }
.fileInput { padding-block: 8px !important; }
.uploadPreview { max-height: 420px; object-fit: contain; background: var(--navy); }
.uploadNote { font-size: .8rem; line-height: 1.55; }
.formStatus { margin-top: 16px !important; padding: 12px 14px; color: #0f5132 !important; background: #e8f7ef; border-left: 4px solid #1c8b54; }
.formError { color: #842029 !important; background: #fcebed; border-color: #c81e2b; }
.uploadInput { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--input); border-radius: 0; background: white; color: var(--ink); }
.uploadInput:focus { border-color: var(--blue); outline: 3px solid rgba(60,130,255,.18); }
.uploadToggle { border: 0; }
.logoutForm { margin-top: 18px; }
.textButton { padding: 0; color: var(--blue); border: 0; background: transparent; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.isHidden { display: none !important; }
.setupWarning { margin: -24px 0 38px; padding: 16px 18px; color: #6a3d00; background: #fff4d6; border-left: 4px solid #e39a00; }
.setupWarning code { font-size: .9em; }
.galleryLightbox { width: min(94vw, 1080px); max-width: 1080px; max-height: 90vh; padding: 0; overflow: visible; color: white; border: 0; background: #07152f; box-shadow: var(--shadow); }
.galleryLightbox::backdrop { background: rgba(2, 9, 22, .82); backdrop-filter: blur(4px); }
.galleryLightbox img { max-height: 80vh; object-fit: contain; }
.galleryLightbox p { margin: 0; padding: 16px 20px 20px; }
.lightboxClose { position: absolute; z-index: 2; top: -16px; right: -16px; width: 42px; height: 42px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: var(--navy); font-size: 1.8rem; line-height: 1; }

.legalMain { background: #f5f7fa; padding: 88px 0 120px; }
.legalArticle { max-width: 880px; padding: clamp(30px, 5vw, 68px); background: white; box-shadow: 0 20px 60px rgba(6,21,48,.08); }
.legalArticle > h1 { margin: 4px 0 52px; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -.05em; }
.legalArticle section { padding: 30px 0; border-top: 1px solid var(--line); }
.legalArticle h2 { margin: 0 0 14px; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; }
.legalArticle p { margin: 0 0 14px; color: var(--subtle); }
.legalArticle a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legalDate { margin-top: 34px !important; font-size: .82rem; }

.siteFooter { background: #06142e; color: white; padding: 48px 0 32px; }
.footerTop { display: flex; align-items: center; justify-content: space-between; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.16); }
.footerLinks { display: flex; gap: 30px; font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.75); }
.footerBottom { display: flex; flex-wrap: wrap; gap: 18px 28px; padding-top: 25px; color: rgba(255,255,255,.5); font-size: .76rem; }
.footerBottom p { margin: 0; }
.footerBottom a:hover { color: white; }
.mobileContact { display: none; }

@media (max-width: 950px) {
  .projectGridCompact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .navWrap { height: 76px; }
  .desktopNav { display: none; }
  .mobileNav { display: block; position: relative; }
  .mobileNav summary { width: 44px; height: 44px; display: grid; align-content: center; justify-content: center; gap: 5px; cursor: pointer; list-style: none; }
  .mobileNav summary::-webkit-details-marker { display: none; }
  .mobileNav summary span { width: 28px; height: 2px; background: currentColor; }
  .mobileNav nav { position: absolute; top: 55px; right: 0; width: min(310px, calc(100vw - 32px)); display: grid; padding: 18px; background: var(--navy); border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow); }
  .mobileNav nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 750; }
  .mobileNav nav a:last-child { border: 0; }
  .hero { min-height: 820px; align-items: flex-start; }
  .heroContent { padding-top: 175px; padding-bottom: 130px; }
  .heroShade { background: linear-gradient(0deg, rgba(5,18,43,.96) 0%, rgba(5,18,43,.7) 72%, rgba(5,18,43,.52) 100%); }
  .hero h1 { font-size: clamp(3.35rem, 15vw, 5.5rem); }
  .heroFacts { height: 84px; }
  .heroFacts > div { min-width: 0; flex: 1; padding-right: 10px; margin-right: 10px; gap: 5px; }
  .heroFacts strong { font-size: .82rem; }
  .heroFacts span { font-size: .56rem; }
  .intro, .sectionHead, .processLayout, .contactGrid { grid-template-columns: 1fr; }
  .intro { gap: 16px; }
  .sectionHead { gap: 24px; align-items: start; }
  .serviceGrid { grid-template-columns: 1fr; }
  .serviceCardWide { grid-column: auto; }
  .serviceCard, .serviceCardWide { min-height: 460px; }
  .processSticky { position: static; }
  .projectGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 280px; }
  .projectGrid:not(.projectGridCompact) .tile1, .projectGrid:not(.projectGridCompact) .tile6 { grid-row: auto; }
  .projectGrid:not(.projectGridCompact) .tile4 { grid-column: auto; }
  .contactCard { padding: 10px; }
  .contactRow { grid-template-columns: 46px 1fr auto; gap: 14px; padding: 16px 14px; }
  .contactIcon { width: 46px; height: 46px; }
  .footerTop { align-items: flex-start; gap: 30px; }
  .footerLinks { flex-direction: column; gap: 10px; }
  .mobileContact { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 7px; border: 1px solid rgba(255,255,255,.18); background: rgba(6,20,46,.95); backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgba(0,0,0,.26); }
  .mobileContact a { min-height: 46px; display: grid; place-items: center; font-size: .86rem; font-weight: 800; color: white; border: 1px solid rgba(255,255,255,.3); }
  .mobileContact a:first-child { background: var(--blue); border-color: var(--blue); }
  .siteFooter { padding-bottom: 104px; }
  .uploadManager { grid-template-columns: 1fr; }
  .uploadPanel { grid-column: auto; }
}

@media (max-width: 560px) {
  .brandCopy { display: none; }
  .heroContent { padding-top: 150px; padding-bottom: 120px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .heroIntro { font-size: 1rem; }
  .heroActions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .heroFacts > div:nth-child(2) { display: none; }
  .introCopy h2, .sectionHead h2, .process h2, .contact h2 { font-size: clamp(2.3rem, 12vw, 3.3rem); }
  .serviceContent { inset: auto 20px 22px; }
  .projectGrid, .projectGridCompact { grid-template-columns: 1fr; grid-auto-rows: 310px; }
  .footerTop { flex-direction: column; }
  .footerLinks { flex-direction: row; flex-wrap: wrap; }
  .uploadManager { padding: 22px; }
  .loginForm { grid-template-columns: 1fr; }
  .uploadFormHead { flex-direction: column; }
  .legalMain { padding-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Admin-Bereich */
.adminGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 30px; }
.adminGrid figure { margin: 0; position: relative; background: #f6f8fb; border: 1px solid var(--line); }
.adminGrid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.adminGrid figcaption { padding: 8px 10px; font-size: .82rem; color: var(--subtle); min-height: 34px; }
.adminGrid form { position: absolute; top: 8px; right: 8px; }
.adminGrid button { min-height: 0; padding: 6px 10px; background: rgba(10,20,40,.8); color: white; border: 0; cursor: pointer; font-weight: 800; }
.adminGrid button:hover { background: #b3261e; }
.adminHead { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.adminHead h2 { margin: 0; }

/* Kennzeichnung KI-generierter Symbolbilder (Art. 50 KI-Verordnung) */
.aiBadge { position: absolute; z-index: 5; left: 10px; bottom: 10px; padding: 2px 6px; font-size: .52rem; font-weight: 600; letter-spacing: .04em; text-transform: none; color: rgba(255,255,255,.7); background: rgba(8,26,57,.55); border: 0; backdrop-filter: blur(3px); pointer-events: auto; line-height: 1.4; }
.aiBadgeHero { left: auto; right: 16px; bottom: 110px; }
.serviceCard .aiBadge { left: 12px; right: auto; top: 12px; bottom: auto; }
.processFigure { position: relative; margin: 0; }
.processFigure img { display: block; width: 100%; }
.aiNote { font-size: .8rem; color: rgba(255,255,255,.55); }
@media (max-width: 720px) { .aiBadgeHero { right: 16px; bottom: 96px; } }

/* ===== Mobile-Feinschliff ===== */
html, body { overflow-x: clip; }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: manual; }

@media (max-width: 560px) {
  /* Hero: kompakter, Überschrift passt in die Breite */
  .hero { min-height: 0; }
  .heroContent { padding-top: 120px; padding-bottom: 130px; }
  .hero h1 { font-size: clamp(2.6rem, 12.5vw, 3.6rem); }
  .heroActions { margin-top: 26px; }
  .aiBadgeHero { bottom: 96px; right: 12px; }
  .heroFacts { height: 74px; }
  .heroFacts > div { gap: 6px; }
  .heroFacts strong { font-size: .8rem; }
  .heroFacts span { font-size: .58rem; }

  /* Abschnittsüberschriften */
  .introCopy h2, .sectionHead h2, .process h2, .contact h2 { font-size: clamp(2rem, 10.5vw, 2.9rem); }
  .section { padding-block: 60px; }

  /* Intro-Grafik kleiner und zentriert */
  .intro { gap: 8px; }
  .introGraphic img { width: min(72%, 240px); margin: 0 auto 6px; }
  .introCopy p { font-size: 1.02rem; }

  /* Leistungskarten */
  .serviceCard, .serviceCardWide { min-height: 400px; }
  .serviceCard .aiBadge { top: 10px; left: 10px; font-size: .5rem; padding: 2px 5px; }

  /* Kontaktkarte: passt in die Breite, Nummern dürfen umbrechen */
  .contactGrid { gap: 32px; }
  .contactCard { padding: 8px; gap: 6px; }
  .contactRow { grid-template-columns: 42px 1fr auto; gap: 12px; padding: 14px 12px; }
  .contactIcon { width: 42px; height: 42px; box-shadow: 0 0 0 4px rgba(20,95,233,.12); }
  .contactIcon svg { width: 20px; height: 20px; }
  .contactBody a, .contactValue { font-size: 1.05rem; white-space: normal; flex-wrap: wrap; gap: 6px 8px; }
  .contactHint { font-size: .62rem; padding: 1px 6px; }
  .contactSub { font-size: .8rem; }
  .contactArrow { font-size: 1.2rem; }
  .contactFoot { padding: 12px 12px 6px; font-size: .78rem; }
  a.contactRow:hover, a.contactRow:focus-visible { transform: none; }

  /* Galerie-Leerzustand */
  .galleryState { padding: 28px 20px; min-height: 0; }

  /* Footer: aufgeräumt */
  .footerTop { gap: 22px; padding-bottom: 28px; }
  .footerLinks { gap: 8px 22px; }
  .footerBottom { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; padding-top: 20px; }
  .footerBottom p, .aiNote { flex-basis: 100%; }
  .footerBottom a { font-weight: 700; color: rgba(255,255,255,.75); }
  .aiNote { margin-top: 6px; }

  /* Rechtsseiten und Admin */
  .legalArticle { padding: 24px 18px; }
  .legalArticle > h1 { font-size: clamp(2.4rem, 12vw, 3rem); margin-bottom: 32px; }
  .subHero { padding: 70px 0 56px; }
  .subHero h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .adminGrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 2.45rem; }
  .heroFacts > div:nth-child(3) span { display: none; }
}
