:root {
  --bg: #0e1318;
  --bg-2: #141b22;
  --panel: #1a222b;
  --panel-2: #212b35;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f4;
  --muted: #a3adb8;
  --dim: #77828e;
  --accent: #f28a1e;
  --accent-hover: #ff9c37;
  --accent-ink: #14100b;
  --light: #f3f4f6;
  --light-2: #ffffff;
  --ink: #12171d;
  --ink-muted: #56606b;
  --ink-line: #dfe3e8;
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
html { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02; margin: 0 0 0.5em; }
h1 { --fs: clamp(2.6rem, 6vw, 4.6rem); }
h2 { --fs: clamp(2rem, 3.6vw, 2.9rem); }
h3 { --fs: 1.35rem; letter-spacing: 0.03em; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.86rem; font-weight: 600; color: var(--muted); display: flex; gap: 0.7em; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.eyebrow .sep { color: var(--dim); }
.accent { color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.65em; font-family: var(--body); font-weight: 600; font-size: 0.95rem; padding: 0.95em 1.5em; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 19, 24, 0.94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand .bear { width: 54px; height: auto; }
.brand .words { display: flex; flex-direction: column; gap: 5px; }
.brand .wordmark { width: 128px; height: auto; }
.brand .sub { font-family: var(--head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.42em; color: var(--muted); line-height: 1; }
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 10px 14px; font-size: 0.93rem; font-weight: 500; color: #d9dee3; border-radius: var(--radius); transition: color 0.2s; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a[aria-current="page"] { color: #fff; }
.main-nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.dropdown { position: absolute; top: 100%; left: -12px; min-width: 280px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.18s; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); }
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 12px; font-size: 0.9rem; color: #cfd5db; border-radius: 3px; }
.dropdown a:hover { background: var(--panel-2); color: #fff; }
.langs { display: flex; gap: 2px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.langs a { padding: 6px 8px; color: var(--muted); }
.langs a:hover { color: #fff; }
.langs a[aria-current="true"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { padding: 0.75em 1.2em; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: #fff; border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; background: var(--bg); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0 0 0 38%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(14, 19, 24, 0.82) 22%, rgba(14, 19, 24, 0.2) 60%, rgba(14, 19, 24, 0.05) 100%), linear-gradient(0deg, rgba(14, 19, 24, 0.6), transparent 35%); }
.hero-inner { position: relative; padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 6vw, 72px); max-width: 800px; }
.hero h1 { max-width: 11.5em; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: 1.15rem; color: #d6dbe0; max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.badges { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(40px, 6vw, 64px); }
.badge { display: flex; align-items: center; gap: 12px; padding: 4px 20px 4px 0; margin-right: 20px; border-right: 1px solid var(--line-strong); }
.badge:last-child { border-right: 0; }
.badge svg { width: 34px; height: 34px; color: #fff; flex-shrink: 0; }
.badge b { display: block; font-family: var(--head); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; line-height: 1.1; }
.badge span { font-size: 0.82rem; color: var(--muted); }
.irata-mark { font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; border: 2px solid #fff; border-radius: 50%; width: 52px; height: 36px; display: grid; place-items: center; flex-shrink: 0; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 19, 24, 0.96) 0%, rgba(14, 19, 24, 0.85) 40%, rgba(14, 19, 24, 0.35) 100%); }
.page-hero .wrap { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.page-hero .inner { max-width: 720px; }
.page-hero .lead { font-size: 1.12rem; color: #d3d9de; max-width: 38em; }
.page-hero .hero-actions { margin-top: 1.8rem; }
.page-hero.plain { background: var(--bg-2); }
.crumbs { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--dim); }
.crumbs a:hover { color: #fff; }

/* Stats */
.stats { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 34px 0 34px 0; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--line-strong); }
.stat b { display: block; font-family: var(--head); font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; margin-bottom: 8px; }
.stat span { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.86rem; color: var(--muted); }

/* Partners strip */
.partners { background: var(--light); color: var(--ink); padding: 34px 0; }
.partners h2 { font-size: 0.86rem; letter-spacing: 0.18em; color: var(--ink-muted); margin-bottom: 18px; font-weight: 600; text-align: center; }
.partner-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; }
.partner { height: 44px; display: flex; align-items: center; }
.partner img { max-height: 40px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: 0.72; transition: 0.2s; }
.partner:hover img { filter: none; opacity: 1; }
.partner .wm { font-family: var(--head); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; color: #5a636d; white-space: nowrap; }

/* Sections */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.tight { padding: clamp(48px, 6vw, 72px) 0; }
.section.dark2 { background: var(--bg-2); }
.section.light { background: var(--light); color: var(--ink); }
.section.white { background: #fff; color: var(--ink); }
.section.light .muted, .section.white .muted { color: var(--ink-muted); }
.muted { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.split-head h2 { margin-bottom: 0.35em; }
.split-head p { margin-bottom: 1.6rem; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { font-size: 1.08rem; }

/* Image cards */
.cards { display: grid; gap: 16px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.img-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--panel); aspect-ratio: 3 / 3.4; border: 1px solid var(--line); }
.img-card.wide { aspect-ratio: 16 / 10; }
.img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.img-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 18, 0.95) 0%, rgba(10, 14, 18, 0.35) 45%, transparent 70%); }
.img-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 1; }
.img-card h3 { margin: 0 0 10px; --fs: clamp(1.05rem, 1.35vw, 1.3rem); }
.img-card.wide h3 { --fs: 1.5rem; }
.img-card .arrow { width: 22px; height: 22px; color: #fff; transition: transform 0.2s, color 0.2s; }
.img-card:hover img { transform: scale(1.05); }
.img-card:hover .arrow { transform: translateX(5px); color: var(--accent); }
.img-card p { font-size: 0.9rem; color: #c5ccd3; margin: 0 0 10px; }

/* Project cards */
.proj { background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink-line); display: flex; flex-direction: column; }
.section:not(.light):not(.white) .proj { border-color: transparent; }
.proj .ph { aspect-ratio: 16 / 10; overflow: hidden; }
.proj .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.proj:hover .ph img { transform: scale(1.04); }
.proj .body { padding: 18px 18px 20px; }
.proj h3 { --fs: 1.12rem; margin-bottom: 12px; }
.proj dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.86rem; }
.proj dt { color: var(--ink-muted); }
.proj dd { margin: 0; color: var(--ink); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button { font: inherit; font-size: 0.88rem; font-weight: 600; background: #fff; border: 1px solid var(--ink-line); color: var(--ink); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.proj[hidden] { display: none; }

/* Why / quote style cards */
.why-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.why-card .num { font-family: var(--head); font-weight: 700; color: var(--accent); font-size: 1.1rem; letter-spacing: 0.06em; display: block; margin-bottom: 14px; }
.why-card h3 { --fs: 1.25rem; margin-bottom: 10px; }
.why-card p { color: #c2c9d0; font-size: 0.95rem; margin: 0; }

/* Process */
.process { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; position: relative; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; position: relative; }
.step .ico { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.step .ico svg { width: 22px; height: 22px; }
.step .n { font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: var(--accent); line-height: 1; display: block; margin: 2px 0 8px; }
.step h3 { --fs: 1.08rem; margin-bottom: 6px; letter-spacing: 0.06em; }
.step p { font-size: 0.9rem; margin: 0; }
.section.light .step p, .section.white .step p { color: var(--ink-muted); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team-card { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.team-card img { width: 100%; height: 100%; object-fit: cover; }
.team-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 18, 0.92), transparent 55%); }
.team-card .cap { position: absolute; left: 18px; bottom: 16px; z-index: 1; }
.team-card b { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; }
.team-card span { font-size: 0.84rem; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.section.light .faq, .section.white .faq { border-color: var(--ink-line); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.section.light .faq details, .section.white .faq details { border-color: var(--ink-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--head); font-size: 1.6rem; line-height: 1; color: var(--accent); transition: transform 0.2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; max-width: 64em; color: var(--muted); }
.section.light .faq .a, .section.white .faq .a { color: var(--ink-muted); }

/* Prose & detail layout */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { font-size: 1.05rem; }
.prose p { color: #cfd5db; }
.section.light .prose p, .section.white .prose p { color: #333b44; }
.side-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 28px; }
.side-card h3 { --fs: 1.4rem; }
.side-card p { color: var(--muted); font-size: 0.95rem; }
.side-card .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.side-card .contact-lines { margin-top: 10px; font-size: 0.92rem; display: grid; gap: 6px; }
.side-card .contact-lines a:hover { color: var(--accent); }
.side-links { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.side-links h4 { font-size: 0.86rem; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 10px; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 0.93rem; border-bottom: 1px solid var(--line); }
.side-links a:hover { color: var(--accent); }
.side-links svg { width: 14px; height: 14px; }

.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.item { background: #fff; padding: 26px 24px; }
.item .k { font-family: var(--head); font-weight: 700; color: var(--accent); font-size: 1rem; display: block; margin-bottom: 10px; letter-spacing: 0.05em; }
.item h3 { --fs: 1.15rem; margin-bottom: 8px; color: var(--ink); }
.item p { margin: 0; color: var(--ink-muted); font-size: 0.94rem; }

.media-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.media-split .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.media-split .ph img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.check-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.check-list b { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.08rem; margin-bottom: 2px; }
.check-list span { color: var(--muted); font-size: 0.95rem; }

/* Service grid on hub */
.svc-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.svc-card:hover { border-color: rgba(242, 138, 30, 0.6); transform: translateY(-2px); }
.svc-card .ph { aspect-ratio: 16 / 9; overflow: hidden; }
.svc-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.svc-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { --fs: 1.25rem; }
.svc-card p { color: var(--muted); font-size: 0.93rem; flex: 1; }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.level { background: #fff; border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 28px; }
.level b { font-family: var(--head); font-size: 2rem; text-transform: uppercase; display: block; color: var(--ink); margin-bottom: 8px; }
.level b span { color: var(--accent); }
.level p { color: var(--ink-muted); margin: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); }
.cta-band .bg { position: absolute; inset: 0; opacity: 0.28; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .wrap { position: relative; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 16em; margin-bottom: 0.3em; }
.cta-band p { color: #cdd3d9; max-width: 40em; margin: 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-card h2 { --fs: 1.5rem; }
.info-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.info-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.info-list svg { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.info-list a:hover { color: var(--accent); }
.info-list small { display: block; color: var(--muted); font-size: 0.8rem; }
.next-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--muted); font-size: 0.94rem; }
.next-steps li::before { content: "0" counter(s); font-family: var(--head); font-weight: 700; color: var(--accent); }

/* Quote form */
.quote-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.quote-form .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .lbl { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--accent); margin-left: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field input[type="date"], .field input[type="time"], .field input[type="datetime-local"], .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #f7f8fa; border: 1px solid #cfd5dc; border-radius: var(--radius); padding: 12px 14px; width: 100%; min-height: 48px; transition: border-color 0.15s, background 0.15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field [aria-invalid="true"] { border-color: #c4361b; }
.field .help { font-size: 0.8rem; color: var(--ink-muted); }
.field .err { font-size: 0.82rem; color: #c4361b; min-height: 0; margin: 0; }
.field .err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: #333b44; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.choice-group { display: flex; flex-direction: column; gap: 8px; }
.other-input { margin-top: 8px; }
.file-drop { border: 1.5px dashed #b9c1ca; border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px; background: #f7f8fa; cursor: pointer; flex-wrap: wrap; }
.file-drop:hover { border-color: var(--ink); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop .fbtn { background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius); font-weight: 600; font-size: 0.88rem; }
.file-drop .flist { font-size: 0.86rem; color: var(--ink-muted); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-error { color: #c4361b; font-weight: 600; margin: 16px 0 0; }
.form-error:empty { display: none; }
.form-skel { display: grid; gap: 16px; }
.form-skel span { display: block; height: 48px; border-radius: var(--radius); background: linear-gradient(90deg, #eef0f3, #f7f8fa, #eef0f3); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
.form-done { text-align: center; padding: 40px 10px; }
.form-done svg { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 16px; }
.form-done h3 { color: var(--ink); font-size: 1.8rem; }
.form-done p { color: var(--ink-muted); white-space: pre-line; }

/* Footer */
.site-footer { background: #0a0e12; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); max-width: 26em; }
.site-footer h4 { font-size: 0.86rem; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfd5db; }
.site-footer a:hover { color: var(--accent); }
.foot-contact { display: grid; gap: 6px; margin-top: 14px; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 0.84rem; }
.foot-bottom .langs a { color: var(--dim); }

/* Reveal */
.reveal { opacity: 0; transition: opacity 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Mobile nav panel */
.mobile-panel { display: none; }

/* Responsive */
@media (max-width: 1100px) {
  .main-nav, .header-inner > .langs, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); z-index: 49; overflow-y: auto; padding: 20px var(--gutter) 40px; transform: translateX(100%); transition: transform 0.25s ease; border-top: 1px solid var(--line); visibility: hidden; }
  .mobile-panel.open { transform: none; visibility: visible; }
  .mobile-panel a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 500; }
  .mobile-panel .sub a { padding-left: 16px; font-size: 0.95rem; color: var(--muted); }
  .mobile-panel .langs { margin: 22px 0; }
  .mobile-panel .langs a { border: 0; padding: 8px 12px 8px 0; }
  .mobile-panel .btn { width: 100%; justify-content: center; margin-top: 10px; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .side-card { position: static; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3)::before { display: none; }
  .cards-3, .team-grid, .levels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .process { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; }
  .items { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .media-split { grid-template-columns: minmax(0, 1fr); }
  .hero-media { inset: 0; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(14, 19, 24, 0.82) 45%, rgba(14, 19, 24, 0.55) 100%); }
  .badge { border-right: 0; margin-bottom: 12px; }
}
@media (max-width: 600px) {
  :root { --header-h: 66px; }
  body { font-size: 15.5px; }
  h1 { --fs: clamp(2.1rem, 9.5vw, 2.6rem); }
  .brand .bear { width: 44px; }
  .brand .wordmark { width: 108px; }
  .cards-4, .cards-3, .cards-2, .team-grid, .levels, .items, .process { grid-template-columns: minmax(0, 1fr); }
  .img-card { aspect-ratio: 16 / 11; }
  .quote-form .grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .partner-row { gap: 14px 28px; }
  .partner .wm { font-size: 1.05rem; }
  .cta-band .actions, .cta-band .actions .btn { width: 100%; justify-content: center; }
}
.partner { height: 56px; }
.partner img[src$=".svg"] { height: 40px; max-height: none; }
.partner img.tall { height: 54px; }
.partner img[src*="mgt.svg"] { filter: grayscale(1) contrast(1.6) brightness(0.8); }
.partner:hover img[src*="mgt.svg"] { filter: none; }

/* Headings: no hyphenation; long words shrink the heading to fit its box (--fit = longest word length) */
:where(div, section, article, header, aside, li, a, form, figure):has(> h1, > h2, > h3) { container-type: inline-size; }
h1, h2, h3 { font-size: min(var(--fs, 1.35rem), calc(100cqi / (var(--fit, 1) * 0.8))); }
.cta-band .wrap > div:first-child { flex: 1 1 420px; min-width: 0; }
@media (min-width: 601px) {
  .split .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split .cards-4 .img-card { aspect-ratio: 4 / 3; }
}

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery .g-item { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery .g-item:hover img { transform: scale(1.04); }
@media (max-width: 1100px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* Three stats; muted photos */
.stats .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat:nth-child(3)::before { display: block; }
.img-card img, .svc-card .ph img, .proj .ph img, .media-split .ph img, .team-card img, .gallery .g-item img, .hero-media img, .page-hero .bg img, .cta-band .bg img { filter: grayscale(0.45) brightness(0.8) contrast(1.05); }
.img-card img, .svc-card .ph img, .proj .ph img, .gallery .g-item img { transition: transform 0.6s ease, filter 0.4s ease; }
.img-card:hover img, .svc-card:hover .ph img, .proj:hover .ph img, .gallery .g-item:hover img { filter: grayscale(0.15) brightness(0.92) contrast(1.05); }
.svc-card .ph, .proj .ph, .media-split .ph, .gallery .g-item { position: relative; }
.svc-card .ph::after, .proj .ph::after, .media-split .ph::after, .gallery .g-item::after { content: ""; position: absolute; inset: 0; background: rgba(20, 27, 34, 0.18); pointer-events: none; }

/* Stats on phones */
.stat { padding-left: 8px; padding-right: 8px; }
@media (max-width: 600px) {
  .stat { padding-top: 26px; padding-bottom: 26px; }
  .stat b { font-size: 2rem; }
  .stat span { display: block; font-size: 0.7rem; letter-spacing: 0.06em; line-height: 1.35; }
}
