:root {
  color-scheme: light;
  --ink: #172b36;
  --ink-soft: #465963;
  --paper: #f5f7f8;
  --paper-deep: #e7eef2;
  --surface: #fff;
  --surface-subtle: rgba(255,255,255,.55);
  --header-bg: rgba(245,247,248,.92);
  --footer-bg: #172b36;
  --control-bg: #172b36;
  --control-text: #fff;
  --white: #fff;
  --accent: #006cab;
  --accent-dark: #004b78;
  --sage: #9dc9df;
  --line: rgba(23, 43, 54, .14);
  --shadow: 0 20px 50px rgba(18, 54, 74, .13);
  --component-border: rgba(23,43,54,.11);
  --component-shadow: 0 14px 38px rgba(18,54,74,.08);
  --component-highlight: rgba(255,255,255,.82);
  --scrollbar-track: rgba(23,43,54,.055);
  --scrollbar-thumb: rgba(0,92,139,.58);
  --scrollbar-thumb-hover: rgba(0,108,171,.86);
  --radius: 28px;
  --wrap: min(1180px, calc(100% - 40px));
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eaf3f7;
  --ink-soft: #b6c6ce;
  --paper: #0f1d25;
  --paper-deep: #162a35;
  --surface: #152832;
  --surface-subtle: rgba(29,55,69,.72);
  --header-bg: rgba(15,29,37,.92);
  --footer-bg: #08141b;
  --control-bg: #eaf3f7;
  --control-text: #10232d;
  --accent: #29a3df;
  --accent-dark: #188bc5;
  --sage: #174a64;
  --line: rgba(220,237,246,.15);
  --shadow: 0 22px 55px rgba(0,0,0,.32);
  --component-border: rgba(220,237,246,.13);
  --component-shadow: 0 16px 42px rgba(0,0,0,.2);
  --component-highlight: rgba(255,255,255,.07);
  --scrollbar-track: rgba(255,255,255,.035);
  --scrollbar-thumb: rgba(57,137,174,.58);
  --scrollbar-thumb-hover: rgba(63,170,218,.82);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 112px; }
html, * { scrollbar-width: auto; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }
*::-webkit-scrollbar { width: 16px; height: 16px; }
*::-webkit-scrollbar-track { background: var(--scrollbar-track); }
*::-webkit-scrollbar-thumb { min-height: 72px; border: 2px solid transparent; border-radius: 100px; background: var(--scrollbar-thumb); background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
*::-webkit-scrollbar-button, *::-webkit-scrollbar-button:single-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: var(--scrollbar-track); }
body { margin: 0; padding-top: 96px; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.65; transition: color .25s ease, background-color .25s ease; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.15rem, 4vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
p { margin: 0 0 1.2em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { --wave-color: var(--paper); position: relative; padding: clamp(78px, 10vw, 140px) 0; background: var(--wave-color); }
.section-sm { padding: clamp(52px, 7vw, 90px) 0; }
.section-alt { --wave-color: var(--paper-deep); }

main > section:not(:first-child)::before,
.site-footer::before {
  position: absolute;
  z-index: 4;
  top: -110px;
  left: 0;
  width: 100%;
  height: 112px;
  background: var(--wave-color, var(--paper));
  content: "";
  pointer-events: none;
  transform-origin: center bottom;
  animation: waveBreathe 8s ease-in-out infinite alternate;
  will-change: transform;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 70C240 25 480 105 720 66s480-41 720 4v50H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 70C240 25 480 105 720 66s480-41 720 4v50H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

main > section:not(:first-child)::after,
.site-footer::after {
  position: absolute;
  z-index: 3;
  top: -100px;
  left: 0;
  width: 100%;
  height: 102px;
  background: var(--wave-color, var(--paper));
  content: "";
  opacity: .48;
  pointer-events: none;
  transform-origin: center bottom;
  animation: waveBreatheSecondary 10.5s ease-in-out infinite alternate-reverse;
  will-change: transform;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 76C210 38 430 92 650 58s470-20 790 18v44H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 76C210 38 430 92 650 58s470-20 790 18v44H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.wave-layer-third {
  position: absolute;
  z-index: 2;
  top: -90px;
  left: 0;
  display: block;
  width: 100%;
  height: 92px;
  background: var(--wave-color, var(--paper));
  opacity: .28;
  pointer-events: none;
  transform-origin: center bottom;
  animation: waveBreatheThird 13s ease-in-out infinite alternate;
  will-change: transform;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 82C170 46 400 64 590 42s470 38 850 40v38H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 82C170 46 400 64 590 42s470 38 850 40v38H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.eyebrow { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; color: var(--accent-dark); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { width: 34px; height: 2px; content: ""; background: currentColor; }
.eyebrow.light { color: #b9ddf0; }
.lead { max-width: 720px; color: var(--ink-soft); font-size: clamp(1.08rem, 1.6vw, 1.32rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 60px; align-items: end; margin-bottom: clamp(40px, 6vw, 76px); }
.section-head p { color: var(--ink-soft); }
.button { display: inline-flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 18px; padding: 7px 8px 7px 20px; border: 1px solid rgba(0,108,171,.7); border-radius: 16px; background: linear-gradient(135deg, #087dbd, #005f98); color: var(--white); box-shadow: 0 10px 26px rgba(0,108,171,.2); font-size: .84rem; font-weight: 800; letter-spacing: .04em; transition: .25s ease; }
.button::after { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: rgba(255,255,255,.18); content: "↗"; font-size: 1.05rem; transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .25s ease; }
.button:hover { border-color: #005783; background: linear-gradient(135deg, #006ead, #004d7d); transform: translateY(-2px); }
.button:hover::after { background: rgba(255,255,255,.28); transform: translate(2px, -2px) rotate(6deg); }
.button-outline { border-color: var(--line); background: var(--surface-subtle); color: var(--ink); box-shadow: 0 8px 24px rgba(18,54,74,.08); backdrop-filter: blur(12px); }
.button-outline::after { background: var(--accent); color: white; }
.button-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.button-light { border-color: rgba(255,255,255,.85); background: var(--white); color: #172b36; box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.button-light::after { background: var(--accent); color: white; }
.button-light:hover { border-color: #e2eef5; background: #eef6fa; color: #172b36; }
.text-link { display: inline-flex; gap: 12px; align-items: center; border-bottom: 1px solid currentColor; font-weight: 700; }
.text-link.light { color: var(--white); }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 16px; background: var(--control-bg); color: var(--control-text); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Motion & visual polish */
.scroll-progress { position: fixed; z-index: 2200; top: 0; right: 0; left: 0; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--accent), #5dc7f1); box-shadow: 0 0 14px rgba(41,163,223,.55); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.button { position: relative; overflow: hidden; isolation: isolate; }
.button::before { position: absolute; z-index: -1; top: -50%; left: -35%; width: 28%; height: 200%; content: ""; background: rgba(255,255,255,.28); transform: rotate(18deg) translateX(-220%); transition: transform .55s ease; }
.button:hover::before { transform: rotate(18deg) translateX(620%); }
.button.is-magnetic { --mag-x: 0px; --mag-y: 0px; transform: translate3d(var(--mag-x), var(--mag-y), 0); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background-color .25s ease; }
.button.is-magnetic:hover { transform: translate3d(var(--mag-x), calc(var(--mag-y) - 3px), 0) scale(1.025); box-shadow: 0 14px 34px rgba(0,108,171,.3); }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.eyebrow::before { transform-origin: left; animation: lineGrow .75s cubic-bezier(.2,.8,.2,1) both; }
.service-card, .project-card, .value-card, .news-card, .contact-form { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease, background-color .25s ease; }
.service-card:hover, .project-card:hover, .value-card:hover, .news-card:hover { transform: translateY(-8px); box-shadow: 0 24px 52px rgba(18,54,74,.16); }
html[data-theme="dark"] .service-card:hover, html[data-theme="dark"] .project-card:hover, html[data-theme="dark"] .value-card:hover, html[data-theme="dark"] .news-card:hover { box-shadow: 0 24px 58px rgba(0,0,0,.38); }
.value-card:hover { border-color: rgba(0,108,171,.4); }
.image-frame { overflow: visible; }
.image-frame img { transition: transform .75s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.image-frame:hover img { transform: scale(1.018); filter: saturate(1.05); }
.js [data-reveal] { opacity: 0; filter: blur(5px); transform: translate3d(0, 34px, 0); transition: opacity .75s ease var(--reveal-delay, 0ms), transform .85s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms), filter .75s ease var(--reveal-delay, 0ms); will-change: opacity, transform; }
.js [data-reveal="left"] { transform: translate3d(-42px, 0, 0); }
.js [data-reveal="scale"] { transform: translate3d(0, 22px, 0) scale(.95); }
.js [data-reveal="fade"] { filter: none; transform: none; transition-duration: .5s; }
.js [data-reveal].is-visible { opacity: 1; filter: none; transform: none; }
.has-ripple { position: relative; overflow: hidden; isolation: isolate; }
.interaction-ripple { position: absolute; z-index: 4; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.52); pointer-events: none; transform: translate(-50%, -50%) scale(0); animation: rippleOut .65s ease-out forwards; }
.is-tilt { position: relative; overflow: hidden; transform-style: preserve-3d; --tilt-x: 0deg; --tilt-y: 0deg; --glow-x: 50%; --glow-y: 50%; }
.is-tilt::before { position: absolute; z-index: 3; inset: 0; border-radius: inherit; content: ""; background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(87,194,238,.2), transparent 36%); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.is-tilt:hover::before { opacity: 1; }
.is-tilt:hover, .js [data-reveal].is-visible.is-tilt:hover { transform: translateY(-9px) perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.process-step, .contact-item { transition: transform .28s ease, border-color .28s ease, background-color .28s ease, padding-left .28s ease; }
.process-step:hover { border-color: var(--accent); border-radius: 18px; background: var(--surface-subtle); transform: translateY(-5px); }
.process-step::before { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.process-step:hover::before { box-shadow: 0 0 0 7px rgba(0,108,171,.13); transform: scale(1.12) rotate(-6deg); }
.contact-item:hover { padding-left: 9px; border-color: var(--accent); }
.contact-item a { transition: color .2s ease; }
.contact-item:hover a { color: var(--accent); }

@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes heroCopyIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroVisualIn { from { opacity: 0; transform: translateX(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes floatBadge { 0%, 100% { transform: translateY(0) rotate(5deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes rippleOut { 0% { opacity: .8; transform: translate(-50%, -50%) scale(0); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(18); } }
@keyframes waveBreathe { from { transform: scaleY(.97); } to { transform: scaleY(1.03); } }
@keyframes waveBreatheSecondary { from { transform: scaleY(.94); } to { transform: scaleY(1.055); } }
@keyframes waveBreatheThird { from { transform: scaleY(.9); } to { transform: scaleY(1.08); } }
@keyframes titleWrite { 0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(.12em); } 8% { opacity: 1; } 100% { opacity: 1; clip-path: inset(0); transform: none; } }
@keyframes inkStroke { from { opacity: 0; transform: scaleX(0) rotate(-1deg); } to { opacity: .7; transform: scaleX(1) rotate(-1deg); } }

/* Header */
.site-header { position: fixed; z-index: 1000; inset: 0 0 auto; width: 100%; border-bottom: 1px solid transparent; background: var(--header-bg); backdrop-filter: blur(18px); transition: .2s ease; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 25px rgba(18,54,74,.06); }
.header-inner { display: flex; min-height: 96px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 68px; height: 68px; object-fit: contain; }
html[data-theme="dark"] .brand img { padding: 2px; border-radius: 8px; background: white; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: Georgia, serif; font-size: 1.22rem; font-weight: 500; }
.brand small { margin-top: 6px; color: var(--accent-dark); font-size: .68rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.main-nav, .main-nav ul { display: flex; align-items: center; gap: 25px; }
.main-nav ul { margin: 0; padding: 0; list-style: none; }
.main-nav li a { position: relative; display: inline-block; padding: 14px 0; font-size: .83rem; font-weight: 750; transition: color .2s ease, transform .2s ease; }
.main-nav li a::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 2px; content: ""; background: var(--accent); transform: scaleX(0); transition: .2s ease; }
.main-nav li a:hover::after, .main-nav li a.active::after { transform: scaleX(1); }
.main-nav li a:hover { color: var(--accent); transform: translateY(-2px); }
.nav-call { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 6px 7px 6px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--control-bg); color: var(--control-text); box-shadow: 0 8px 22px rgba(18,54,74,.12); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.nav-call::after { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: var(--accent); color: white; content: "↗"; font-size: .9rem; transition: transform .22s ease, background-color .22s ease; }
.nav-call:hover::after { background: #1189c5; transform: translate(2px, -2px); }
.nav-call.is-magnetic { --mag-x: 0px; --mag-y: 0px; transform: translate3d(var(--mag-x), var(--mag-y), 0); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.nav-call.is-magnetic:hover { transform: translate3d(var(--mag-x), calc(var(--mag-y) - 2px), 0) scale(1.035); box-shadow: 0 12px 28px rgba(0,108,171,.22); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.theme-toggle { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: .2s ease; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px) rotate(12deg) scale(1.07); box-shadow: 0 10px 24px rgba(0,108,171,.18); }
.theme-icon { font-size: 1.15rem; line-height: 1; }
.theme-icon-moon { display: none; font-size: 1.35rem; }
html[data-theme="dark"] .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: inline; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 12px; border: 0; border-radius: 50%; background: var(--control-bg); }
.menu-toggle:hover { transform: scale(1.06); box-shadow: 0 10px 24px rgba(0,108,171,.2); }
.menu-toggle > span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 4px auto; background: var(--control-text); transition: .2s; }

/* Home hero */
.home-hero { position: relative; isolation: isolate; overflow: hidden; padding: 44px 0 84px; }
.home-hero::before { position: absolute; z-index: -1; top: 12%; right: -8%; width: min(46vw, 660px); aspect-ratio: 1; border-radius: 50%; content: ""; background: radial-gradient(circle, rgba(0,119,181,.24), rgba(0,108,171,0) 68%); filter: blur(8px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 56px; align-items: center; }
.home-hero h1 { max-width: 730px; }
.home-hero h1 em { color: var(--accent); font-weight: inherit; }
.hero-title em { display: block; }
.hero-title-line { display: block; width: max-content; max-width: 100%; opacity: 0; clip-path: inset(0 100% 0 0); animation: titleWrite .68s steps(12, end) both; }
.hero-title > .hero-title-line:nth-child(1) { animation-delay: .12s; }
.hero-title > .hero-title-line:nth-child(2) { animation-delay: .29s; }
.hero-title > .hero-title-line:nth-child(3) { animation-delay: .46s; }
.hero-title > .hero-title-line:nth-child(4) { animation-delay: .63s; }
.hero-title em .hero-title-line:nth-child(1) { animation-delay: .8s; }
.hero-title em .hero-title-line:nth-child(2) { animation-delay: .97s; }
.hero-title-finish { position: relative; }
.hero-title-finish::after { position: absolute; right: 1%; bottom: .02em; left: 2%; height: .055em; border-radius: 100%; background: currentColor; content: ""; opacity: 0; transform: scaleX(0) rotate(-1deg); transform-origin: left center; animation: inkStroke .65s cubic-bezier(.2,.8,.2,1) 1.58s forwards; }
.hero-copy .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { display: flex; gap: 12px; align-items: center; margin-top: 38px; color: var(--ink-soft); font-size: .86rem; }
.hero-note::before { width: 42px; height: 1px; content: ""; background: var(--ink-soft); }
.hero-copy > * { animation: heroCopyIn .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy > .hero-title { animation: none; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: 1.45s; }
.hero-copy > :nth-child(4) { animation-delay: 1.6s; }
.hero-copy > :nth-child(5) { animation-delay: 1.75s; }
.hero-visual { position: relative; min-height: 650px; animation: heroVisualIn 1s cubic-bezier(.2,.8,.2,1) .12s both; }
.hero-visual > img { width: 100%; height: 650px; border-radius: 160px 24px 24px 24px; object-fit: cover; box-shadow: var(--shadow); transform: translate3d(0, calc(var(--parallax-y, 0px) * .35), 0) scale(1.025); transition: box-shadow .35s ease; will-change: transform; }
.hero-badge { position: absolute; right: -22px; bottom: 44px; display: grid; width: 154px; height: 154px; place-content: center; border: 10px solid var(--paper); border-radius: 50%; background: var(--accent); color: var(--white); text-align: center; animation: floatBadge 4.5s ease-in-out infinite; }
.hero-badge strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1; }
.hero-badge span { max-width: 88px; margin-top: 7px; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Cards & editorial layouts */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-subtle); }
.value-card .number { display: block; margin-bottom: 34px; color: var(--accent); font-family: Georgia, serif; font-size: 2.2rem; }
.value-card p { margin: 14px 0 0; color: var(--ink-soft); }
.image-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 110px); align-items: center; }
.image-copy.reverse .image-frame { order: 2; }
.image-frame { position: relative; }
.image-frame img { width: 100%; min-height: 540px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.image-frame::after { position: absolute; z-index: -1; right: -22px; bottom: -22px; width: 62%; height: 62%; content: ""; border-radius: var(--radius); background: var(--sage); opacity: .45; }
.copy-block h2 { margin-bottom: 28px; }
.copy-block p { color: var(--ink-soft); }
.check-list { display: grid; gap: 13px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { display: grid; flex: 0 0 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--accent); color: white; content: "✓"; font-size: .72rem; font-weight: 900; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 30px rgba(18,54,74,.09); }
.service-card img { width: 100%; height: 230px; object-fit: cover; transition: transform .45s ease; }
.service-card:hover img { transform: scale(1.04); }
.service-card-content { padding: 28px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); font-size: .95rem; }
.service-card a { color: var(--accent-dark); font-weight: 800; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: process; }
.process-step { position: relative; padding: 32px 30px 10px; border-top: 1px solid var(--line); counter-increment: process; }
.process-step::before { position: absolute; top: -16px; left: 30px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--accent); color: white; content: counter(process, decimal-leading-zero); font-size: .68rem; font-weight: 800; }
.process-step p { color: var(--ink-soft); font-size: .94rem; }

/* Internal pages */
.page-hero { position: relative; min-height: 510px; display: grid; align-items: end; overflow: hidden; background: var(--footer-bg); color: white; }
.page-hero-image, .page-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero-image { object-fit: cover; opacity: .58; transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.07); will-change: transform; }
.page-hero-shade { background: linear-gradient(90deg, rgba(18,28,22,.88), rgba(18,28,22,.15)), linear-gradient(0deg, rgba(18,28,22,.52), transparent 60%); }
.page-hero-content { position: relative; z-index: 1; padding-block: 95px 80px; }
.page-hero-content > * { animation: heroCopyIn .8s cubic-bezier(.2,.8,.2,1) both; }
.page-hero-content > :nth-child(2) { animation-delay: .09s; }
.page-hero-content > :nth-child(3) { animation-delay: .18s; }
.page-hero h1 { max-width: 900px; font-size: clamp(3.2rem, 7vw, 6.2rem); }
.page-hero-content > p:last-child { max-width: 700px; margin-top: 24px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.timeline { display: grid; max-width: 900px; margin: 55px auto 0; }
.timeline-row { display: grid; grid-template-columns: 130px 1fr; gap: 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.timeline-row strong { color: var(--accent-dark); font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.timeline-row p { margin: 0; color: var(--ink-soft); }
.service-detail { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 60px; padding: 50px 0; border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: 0; }
.service-detail img { width: 100%; height: 310px; border-radius: 20px; object-fit: cover; }
.service-detail p { color: var(--ink-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { padding: 7px 12px; border: 1px solid var(--line); border-radius: 100px; font-size: .78rem; font-weight: 750; }

/* Gallery */
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 38px; }
.filter-button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-subtle); color: var(--ink); cursor: pointer; font-size: .78rem; font-weight: 800; transition: transform .2s ease, color .2s ease, background-color .2s ease, border-color .2s ease; }
.filter-button.active, .filter-button:hover { border-color: var(--accent); background: var(--accent); color: white; }
.filter-button:hover { transform: translateY(-2px) scale(1.025); box-shadow: 0 8px 20px rgba(0,108,171,.18); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { position: relative; overflow: hidden; min-height: 390px; padding: 0; border: 0; border-radius: var(--radius); background: #102b38; color: white; box-shadow: 0 16px 38px rgba(18,54,74,.14); cursor: pointer; isolation: isolate; text-align: left; }
.project-card[hidden] { display: none; }
.project-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.project-card-image { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.project-card-image::before { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(180deg, rgba(8,29,39,.04) 22%, rgba(8,29,39,.34) 58%, rgba(8,29,39,.94) 100%); transition: background .35s ease; }
.project-card-image::after { position: absolute; z-index: 2; top: 18px; right: 18px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.42); border-radius: 100px; background: rgba(8,29,39,.38); color: white; content: "Galerie  ↗"; backdrop-filter: blur(10px); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; transition: transform .3s cubic-bezier(.2,.8,.2,1), background-color .3s ease, border-color .3s ease; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .35s ease; }
.project-card:hover img { filter: saturate(1.08); transform: scale(1.065); }
.project-card:hover .project-card-image::before { background: linear-gradient(180deg, rgba(8,29,39,.12) 18%, rgba(8,29,39,.38) 55%, rgba(8,29,39,.96) 100%); }
.project-card:hover .project-card-image::after { border-color: var(--accent); background: var(--accent); transform: translate(-3px, 3px); }
.project-card-copy { position: relative; z-index: 2; display: flex; min-height: 390px; flex-direction: column; justify-content: flex-end; padding: 30px 28px; }
.project-card-copy small { display: block; margin-bottom: 8px; color: #b9e3f6; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-shadow: 0 1px 12px rgba(0,0,0,.3); text-transform: uppercase; }
.project-card-copy strong { display: block; max-width: 92%; color: white; font-family: Georgia, serif; font-size: clamp(1.45rem, 2vw, 1.85rem); font-weight: 500; line-height: 1.12; text-shadow: 0 2px 18px rgba(0,0,0,.38); }
.gallery-dialog { width: min(1160px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); }
.gallery-dialog::backdrop { background: rgba(14,20,16,.82); backdrop-filter: blur(6px); }
.dialog-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 25px; border-bottom: 1px solid var(--line); background: var(--header-bg); }
.dialog-head h2 { font-size: 1.7rem; }
.dialog-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--control-bg); color: var(--control-text); cursor: pointer; font-size: 1.4rem; }
.dialog-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }
.dialog-gallery a { display: block; overflow: hidden; min-height: 260px; border-radius: 14px; background: var(--paper-deep); }
.dialog-gallery img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

/* News, contact, legal */
.news-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.news-card { padding: clamp(30px, 5vw, 55px); border-radius: var(--radius); background: var(--surface); }
.news-card.featured { background: var(--footer-bg); color: white; }
.news-card h2, .news-card h3 { margin-bottom: 20px; }
.news-card p { color: var(--ink-soft); }
.news-card.featured p { color: rgba(255,255,255,.76); }
.archive-list { margin-top: 45px; border-top: 1px solid var(--line); }
.archive-item { display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.archive-item time { color: var(--accent-dark); font-weight: 800; }
.archive-item p { margin: 8px 0 0; color: var(--ink-soft); }
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(45px, 8vw, 110px); align-items: start; }
.contact-list { display: grid; gap: 22px; margin-top: 38px; }
.contact-item { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.contact-item small { display: block; margin-bottom: 6px; color: var(--accent-dark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-item a { font-family: Georgia, serif; font-size: 1.25rem; }
.contact-form { padding: clamp(28px, 5vw, 52px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.form-heading .eyebrow { margin-bottom: 12px; }
.form-heading h2 { font-size: clamp(2rem, 4vw, 3rem); }
.form-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 11px; border: 1px solid rgba(0,108,171,.18); border-radius: 100px; background: rgba(0,108,171,.07); color: var(--accent-dark); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.form-badge > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,108,171,.11); }
.form-intro { max-width: 610px; margin: 0 0 30px; color: var(--ink-soft); font-size: .94rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 19px; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: .78rem; font-weight: 800; }
.field label > span { color: var(--accent-dark); font-size: .57rem; font-weight: 850; letter-spacing: .08em; }
.field label > .optional { color: var(--ink-soft); }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border: 1px solid rgba(23,43,54,.22); border-radius: 12px; background: var(--paper); color: var(--ink); }
.field select { min-height: 57px; padding-right: 48px; appearance: none; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap:not(.custom-select-ready)::after { position: absolute; top: 50%; right: 19px; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); content: ""; pointer-events: none; transform: translateY(-70%) rotate(45deg); }
.select-trigger { display: none; width: 100%; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 15px 9px 10px; border: 1px solid rgba(23,43,54,.22); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.custom-select-ready .native-select { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); opacity: 0; pointer-events: none; }
.custom-select-ready .select-trigger { display: flex; }
.select-trigger:hover { border-color: rgba(0,108,171,.6); }
.select-wrap.is-open .select-trigger { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,108,171,.14), 0 10px 24px rgba(18,54,74,.09); }
.select-chevron { flex: 0 0 10px; width: 10px; height: 10px; margin-right: 3px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-3px) rotate(45deg); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.select-wrap.is-open .select-chevron { transform: translateY(3px) rotate(225deg); }
.select-value { display: flex; min-width: 0; align-items: center; gap: 11px; }
.select-value > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-value img, .select-option img { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--component-border); border-radius: 10px; background: var(--surface); box-shadow: 0 5px 14px rgba(18,54,74,.12); object-fit: cover; }
.select-value img[hidden] { display: none; }
.select-menu { position: absolute; z-index: 80; top: calc(100% + 9px); right: 0; left: auto; display: grid; width: min(370px, calc(100vw - 48px)); min-width: 100%; gap: 4px; max-height: 390px; padding: 8px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 22px 55px rgba(18,54,74,.2); animation: selectMenuIn .2s cubic-bezier(.2,.8,.2,1) both; }
.select-menu[hidden] { display: none; }
.select-option { display: flex; width: 100%; align-items: center; justify-content: flex-start; gap: 12px; padding: 8px 10px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); cursor: pointer; font-size: .86rem; text-align: left; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.select-option > span { line-height: 1.3; }
.select-option:hover, .select-option:focus-visible { outline: none; background: var(--paper-deep); transform: translateX(2px); }
.select-option[aria-selected="true"] { background: var(--accent); color: white; font-weight: 750; }
.select-option[aria-selected="true"]::after { margin-left: auto; content: "✓"; font-weight: 900; }
@keyframes selectMenuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.field input { min-height: 64px; }
.field textarea { min-height: 190px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink-soft) 72%, transparent); }
.field input:focus, .field textarea:focus, .field select:focus, .select-trigger:focus-visible { outline: 3px solid rgba(0,108,171,.18); border-color: var(--accent); }
.form-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; align-items: center; margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-note { margin: 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.6; }
.form-note a { color: var(--accent-dark); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.form-message { margin-bottom: 22px; padding: 14px 16px; border-radius: 12px; background: #e5f1e8; color: #194c28; }
.form-message.error { background: #fae7e3; color: #7b241c; }
html[data-theme="dark"] .form-message { background: #163e2a; color: #bce8c8; }
html[data-theme="dark"] .form-message.error { background: #4a2524; color: #ffd0ca; }
.legal { max-width: 860px; }
.legal h2 { margin: 56px 0 18px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.legal h3 { margin: 32px 0 10px; font-size: 1.35rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--accent-dark); text-decoration: underline; }
.legal address { font-style: normal; }

/* CTA & footer */
.cta-strip { --wave-color: var(--accent-dark); position: relative; padding: clamp(65px, 8vw, 100px) 0; background: var(--wave-color); color: white; }
.cta-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: center; }
.cta-grid h2 { max-width: 800px; }
.cta-grid p:last-child { max-width: 700px; margin: 22px 0 0; color: rgba(255,255,255,.75); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.site-footer { --wave-color: var(--footer-bg); position: relative; padding: 72px 0 25px; background: var(--footer-bg); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr .7fr; gap: 45px; padding-bottom: 60px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 74px; height: 74px; filter: brightness(0) invert(1); object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.footer-brand span, .site-footer address { color: rgba(255,255,255,.62); font-style: normal; }
.site-footer h2 { margin-bottom: 16px; color: #9bcfe9; font-family: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-footer > .footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer a { margin-bottom: 6px; color: rgba(255,255,255,.76); }
.site-footer a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.5); font-size: .77rem; }
.legal-creator a { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 13px; overflow: hidden; padding: 12px 14px 12px 12px; border: 1px solid var(--component-border); border-radius: 16px; background: linear-gradient(135deg, var(--component-highlight), transparent 60%), var(--surface); box-shadow: var(--component-shadow); transition: border-color .3s ease, box-shadow .3s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.legal-creator a::before { position: absolute; z-index: 0; top: -80%; bottom: -80%; left: -55%; width: 34%; content: ""; background: linear-gradient(90deg, transparent, rgba(255,255,255,.66), transparent); pointer-events: none; transform: rotate(14deg) translateX(-170%); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.legal-creator a::after { position: relative; z-index: 1; display: grid; width: 28px; height: 28px; margin-left: 3px; place-items: center; border-radius: 9px; background: rgba(0,108,171,.09); color: var(--accent); content: "↗"; font-size: .85rem; transition: color .25s ease, background-color .25s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.legal-creator a > * { position: relative; z-index: 1; }
.legal-creator img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; box-shadow: 0 5px 14px rgba(18,54,74,.12); transition: filter .3s ease, transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.legal-creator span { line-height: 1.35; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.legal-creator strong { transition: color .25s ease; }
.legal-creator small { color: var(--ink-soft); transition: color .25s ease; }
.legal-creator a:is(:hover, :focus-visible) { border-color: rgba(0,108,171,.42); box-shadow: 0 18px 38px rgba(18,54,74,.16); transform: translateY(-4px); }
.legal-creator a:is(:hover, :focus-visible)::before { transform: rotate(14deg) translateX(590%); }
.legal-creator a:is(:hover, :focus-visible)::after { background: var(--accent); color: white; transform: translate(2px,-2px) rotate(4deg); }
.legal-creator a:is(:hover, :focus-visible) img { filter: saturate(1.12); box-shadow: 0 9px 20px rgba(0,108,171,.22); transform: rotate(-6deg) scale(1.08); }
.legal-creator a:is(:hover, :focus-visible) span { transform: translateX(2px); }
.legal-creator a:is(:hover, :focus-visible) strong { color: var(--accent-dark); }
.legal-creator a:focus-visible { outline: 3px solid rgba(41,163,223,.34); outline-offset: 4px; }
.back-to-top { position: fixed; z-index: 900; right: 20px; bottom: 20px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--accent); color: white; cursor: pointer; box-shadow: 0 8px 20px rgba(18,54,74,.25); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top.visible:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 14px 30px rgba(0,108,171,.32); }

/* 404 page */
.error-panel { position: relative; display: grid; grid-template-columns: minmax(180px, .55fr) 1.45fr; gap: clamp(28px, 6vw, 80px); align-items: center; overflow: hidden; padding: clamp(32px, 6vw, 72px); border: 1px solid var(--component-border); border-radius: 30px; background: radial-gradient(circle at 8% 18%, rgba(41,163,223,.18), transparent 32%), var(--surface); box-shadow: var(--component-shadow); }
.error-panel::after { position: absolute; right: -95px; bottom: -125px; width: 300px; height: 300px; border: 1px solid rgba(0,108,171,.12); border-radius: 50%; content: ""; box-shadow: 0 0 0 34px rgba(0,108,171,.035), 0 0 0 68px rgba(0,108,171,.025); pointer-events: none; }
.error-number { position: relative; z-index: 1; color: var(--accent); font-family: Georgia, serif; font-size: clamp(6rem, 15vw, 12rem); font-weight: 500; letter-spacing: -.08em; line-height: .8; text-shadow: 0 14px 36px rgba(0,108,171,.18); }
.error-copy { position: relative; z-index: 1; max-width: 650px; }
.error-copy h2 { margin-bottom: 18px; }
.error-copy > p:not(.eyebrow) { max-width: 590px; color: var(--ink-soft); font-size: 1.08rem; }
.error-actions { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; margin-top: 30px; }
.error-actions .button { margin: 0; }

@media (max-width: 760px) {
  .error-panel { grid-template-columns: 1fr; gap: 24px; padding: 34px 24px; border-radius: 24px; }
  .error-number { font-size: clamp(5.5rem, 30vw, 8rem); }
  .error-actions { align-items: flex-start; flex-direction: column; }
}

/* Unified component design */
.value-card,
.service-card,
.process-step,
.news-card,
.contact-item,
.contact-form,
.archive-item,
.service-detail {
  border: 1px solid var(--component-border);
  background: linear-gradient(145deg, var(--component-highlight), transparent 48%), var(--surface);
  box-shadow: var(--component-shadow);
}

.value-card { position: relative; overflow: hidden; padding: 32px; }
.value-card::after { position: absolute; right: -35px; bottom: -55px; width: 145px; height: 145px; border-radius: 50%; content: ""; background: radial-gradient(circle, rgba(41,163,223,.17), transparent 68%); transition: transform .4s ease; }
.value-card:hover::after { transform: scale(1.22); }
.value-card .number { display: inline-grid; width: 44px; height: 44px; margin-bottom: 30px; place-items: center; border: 1px solid rgba(0,108,171,.22); border-radius: 14px; background: rgba(0,108,171,.09); font-family: inherit; font-size: .76rem; font-weight: 850; letter-spacing: .08em; }

.service-card { padding: 8px; border-radius: calc(var(--radius) + 2px); }
.service-card img { height: 240px; border-radius: calc(var(--radius) - 7px); }
.service-card-content { padding: 25px 20px 20px; }
.service-card-content p { min-height: 4.55em; }
.service-card-content > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; }
.service-card-content > a::after { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: rgba(0,108,171,.1); content: "↗"; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.service-card:hover .service-card-content > a::after { background: var(--accent); color: white; transform: translate(2px,-2px); }

.process-grid { gap: 16px; }
.process-step { min-height: 245px; padding: 75px 25px 24px; border-radius: 22px; }
.process-step::before { top: 23px; left: 24px; width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 8px 18px rgba(0,108,171,.2); }
.process-step:hover { border-color: rgba(0,108,171,.4); border-radius: 22px; background: linear-gradient(145deg, var(--component-highlight), rgba(0,108,171,.05)), var(--surface); }

.service-detail { gap: 45px; align-items: center; margin-bottom: 18px; padding: 22px; border-radius: 25px; }
.service-detail:first-child { border-top: 1px solid var(--component-border); }
.service-detail img { height: 285px; border-radius: 17px; box-shadow: 0 10px 26px rgba(18,54,74,.1); transition: filter .35s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.service-detail:hover img { filter: saturate(1.06); transform: scale(1.012); }
.service-detail > div { padding-right: 22px; }
.tag { border-color: rgba(0,108,171,.18); background: rgba(0,108,171,.07); color: var(--ink); }

.filter-bar { gap: 8px; padding: 7px; border: 1px solid var(--component-border); border-radius: 17px; background: var(--surface-subtle); box-shadow: 0 8px 28px rgba(18,54,74,.06); }
.filter-button { padding: 9px 14px; border-color: transparent; border-radius: 11px; background: transparent; }
.filter-button.active { box-shadow: 0 7px 18px rgba(0,108,171,.22); }

.news-card { position: relative; overflow: hidden; }
.news-card:not(.featured)::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; content: ""; background: linear-gradient(90deg, var(--accent), #5dc7f1); }
.news-card.featured { border-color: rgba(255,255,255,.1); background: radial-gradient(circle at 92% 8%, rgba(41,163,223,.24), transparent 34%), var(--footer-bg); }
.archive-list { display: grid; gap: 12px; border-top: 0; }
.archive-item { grid-template-columns: 120px 1fr; padding: 24px 26px; border-radius: 18px; }
.archive-item time { display: inline-flex; width: max-content; height: 30px; align-items: center; padding: 0 11px; border-radius: 100px; background: rgba(0,108,171,.09); font-size: .74rem; }

.contact-list { gap: 12px; }
.contact-item { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 16px; align-items: center; padding: 17px 19px; border-radius: 16px; }
.contact-item:hover { padding-left: 19px; border-color: rgba(0,108,171,.4); background: linear-gradient(145deg, var(--component-highlight), rgba(0,108,171,.05)), var(--surface); transform: translateX(4px); }
.contact-item > div { min-width: 0; }
.contact-icon { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(0,108,171,.17); border-radius: 15px; background: linear-gradient(145deg, rgba(41,163,223,.16), rgba(0,108,171,.06)); color: var(--accent); box-shadow: inset 0 1px 0 var(--component-highlight), 0 8px 20px rgba(18,54,74,.08); transition: color .25s ease, background-color .25s ease, transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.contact-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-item:hover .contact-icon { background: var(--accent); color: white; box-shadow: 0 10px 24px rgba(0,108,171,.22); transform: rotate(-4deg) scale(1.05); }
.contact-item a { overflow-wrap: anywhere; }
.contact-form { border-radius: 30px; }
.field label { justify-content: flex-start; margin-bottom: 10px; color: var(--ink); font-size: .71rem; letter-spacing: .07em; text-transform: uppercase; transition: color .2s ease, transform .2s ease; }
.field label::before { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); content: ""; box-shadow: 0 0 0 4px rgba(0,108,171,.1); transition: box-shadow .2s ease, transform .2s ease; }
.field label > span { margin-left: auto; padding: 4px 7px; border: 1px solid rgba(0,108,171,.14); border-radius: 100px; background: rgba(0,108,171,.07); color: var(--accent-dark); line-height: 1; }
.field label > .optional { border-color: var(--component-border); background: var(--paper-deep); color: var(--ink-soft); }
.field:focus-within label { color: var(--accent-dark); transform: translateX(2px); }
.field:focus-within label::before { box-shadow: 0 0 0 6px rgba(0,108,171,.14); transform: scale(1.12); }
.field input, .field textarea, .field select, .select-trigger { border-color: var(--component-border); background: var(--paper); box-shadow: inset 0 1px 0 var(--component-highlight); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.field input:hover, .field textarea:hover, .field select:hover, .select-trigger:hover { border-color: rgba(0,108,171,.38); }
.field input:focus, .field textarea:focus, .field select:focus, .select-trigger:focus-visible { box-shadow: 0 0 0 4px rgba(0,108,171,.12); }

.gallery-dialog { border: 1px solid var(--component-border); box-shadow: 0 35px 90px rgba(0,0,0,.35); }
.dialog-close { display: grid; place-items: center; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.dialog-close:hover { background: var(--accent); color: white; transform: rotate(6deg) scale(1.06); }
.dialog-gallery a { border: 1px solid var(--component-border); transition: transform .25s ease, box-shadow .25s ease; }
.dialog-gallery a:hover { box-shadow: 0 12px 28px rgba(18,54,74,.16); transform: translateY(-3px); }
.dialog-gallery img { transition: transform .45s ease; }
.dialog-gallery a:hover img { transform: scale(1.025); }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; z-index: 1100; inset: 96px 0 auto; display: block; width: 100%; max-height: calc(100vh - 96px); padding: 26px 20px 36px; overflow: auto; border-top: 1px solid var(--line); background: var(--paper); visibility: hidden; pointer-events: none; transform: translateX(100%); transition: transform .25s ease, visibility .25s; }
  .main-nav.open { visibility: visible; pointer-events: auto; transform: none; }
  .main-nav ul { display: block; }
  .main-nav li a { display: block; padding: 13px 4px; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
  .main-nav li a::after { display: none; }
  .nav-call { display: inline-flex; margin-top: 20px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .service-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 35px 0; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-intro { max-width: 760px; }
  .contact-list { max-width: 760px; }
}

@media (max-width: 760px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  html { scroll-padding-top: 96px; }
  body { padding-top: 82px; font-size: 16px; }
  .header-inner { min-height: 82px; }
  .brand img { width: 54px; height: 54px; }
  .brand strong { font-size: 1.05rem; }
  .brand small { font-size: .58rem; }
  .main-nav { inset-block-start: 82px; max-height: calc(100vh - 82px); }
  .home-hero { padding-top: 28px; }
  .hero-grid, .section-head, .image-copy, .service-detail, .news-grid, .contact-layout, .cta-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 480px; }
  .hero-visual > img { height: 480px; border-radius: 95px 20px 20px; }
  .hero-badge { right: -5px; bottom: 22px; width: 125px; height: 125px; border-width: 7px; }
  .values-grid, .service-grid, .projects-grid { grid-template-columns: 1fr; }
  .section-head { gap: 20px; }
  .image-copy.reverse .image-frame { order: initial; }
  .image-frame img { min-height: 400px; }
  .page-hero { min-height: 440px; }
  .timeline-row { grid-template-columns: 90px 1fr; gap: 20px; }
  .service-detail { gap: 20px; padding: 14px; }
  .service-detail img { height: 260px; }
  .service-detail > div { padding: 6px 8px 10px; }
  .service-card-content p { min-height: 0; }
  .process-step { min-height: 220px; }
  .contact-form { border-radius: 24px; }
  .dialog-gallery { grid-template-columns: 1fr; }
  .dialog-gallery a, .dialog-gallery img { min-height: 220px; }
  .archive-item { grid-template-columns: 1fr; gap: 8px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-heading { display: block; }
  .form-badge { margin-top: 16px; }
  .form-intro { margin-bottom: 25px; }
  .form-footer { grid-template-columns: 1fr; gap: 18px; }
  .form-footer .button { width: 100%; }
  .field textarea { min-height: 170px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  main > section:not(:first-child)::before, .site-footer::before { top: -78px; height: 80px; animation-duration: 9.5s; }
  main > section:not(:first-child)::after, .site-footer::after { top: -69px; height: 71px; opacity: .38; animation-duration: 12s; }
  .wave-layer-third { top: -60px; height: 62px; opacity: .2; animation-duration: 15s; }
}

@media (max-width: 460px) {
  .brand span { display: none; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-grid > div:last-child { grid-column: auto; }
  main > section:not(:first-child)::before, .site-footer::before { top: -66px; height: 68px; }
  main > section:not(:first-child)::after, .site-footer::after { top: -57px; height: 59px; }
  .wave-layer-third { top: -48px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  main > section:not(:first-child)::before, main > section:not(:first-child)::after, .site-footer::before, .site-footer::after, .wave-layer-third { animation: none !important; transform: none !important; }
}
