/* Nord Controls — site styles */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --ink: #0f1a2a;
  --ink-soft: #4a5a70;
  --line: #dde4ee;
  --brand: #0a4fd6;
  --brand-ink: #ffffff;
  --brand-soft: #e7efff;
  --dark: #0b1320;
  --dark-2: #111c2e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 26, 42, .06), 0 8px 24px rgba(15, 26, 42, .08);
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 19, 32, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: #c9d4e5; text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.nav a.btn { background: var(--brand); color: #fff; margin-left: 6px; }
.nav a.btn:hover { background: #0d5cf5; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--dark); padding: 8px 16px 16px; border-bottom: 1px solid rgba(255,255,255,.08); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.btn { margin: 6px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 15px; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #0d5cf5; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--dark) url("../img/hero.webp") center / cover no-repeat; min-height: min(78vh, 640px); display: grid; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,14,26,.92) 0%, rgba(8,14,26,.72) 45%, rgba(8,14,26,.35) 100%); }
.hero .container { position: relative; padding: 80px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8fb3ff; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: .02em; margin-bottom: 12px; }
.hero .tagline { font-size: clamp(18px, 2.4vw, 24px); font-style: italic; color: #dbe5f5; margin-bottom: 18px; }
.hero .lead { max-width: 560px; color: #b9c6da; font-size: 17px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding: 0; list-style: none; }
.hero-tags li { font-size: 13px; color: #cfe0ff; border: 1px solid rgba(143,179,255,.35); border-radius: 999px; padding: 4px 12px; background: rgba(10,79,214,.18); }

/* Sections */
section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--ink-soft); font-size: 17px; }
.section-dark .section-head p { color: #a9b7cc; }

/* Gallery carousel */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.slide button { all: unset; cursor: zoom-in; display: block; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.slide button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.carousel-btn:hover { background: #fff; color: var(--brand); }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn.prev { left: -12px; }
.carousel-btn.next { right: -12px; }
.carousel-meta { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; color: var(--ink-soft); font-size: 14px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; padding: 4px 2px 8px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 auto; width: 96px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--dark-2); opacity: .65; transition: opacity .15s, border-color .15s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; border-color: var(--brand); }
@media (max-width: 700px) { .carousel-btn { display: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5,9,16,.94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 56px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.post:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,26,42,.14); }
.post-media { position: relative; aspect-ratio: 16/9; background: var(--dark-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.post-media .play svg { width: 22px; height: 22px; margin-left: 3px; color: var(--ink); }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 18px; }
.post-body p { color: var(--ink-soft); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-link { margin-top: auto; font-weight: 600; color: var(--brand); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.post-link svg { width: 16px; height: 16px; flex: none; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.project { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 140px 1fr; box-shadow: var(--shadow); }
.project img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; background: var(--dark-2); }
.project-body { padding: 18px 20px; }
.project h3 { font-size: 17px; margin-bottom: 6px; }
.project p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.badge.region { background: #eef1f5; color: #3b4a60; }
.badge.ongoing { background: #fff3d6; color: #8a5a00; }
@media (max-width: 420px) { .project { grid-template-columns: 1fr; } .project img { aspect-ratio: 16/9; min-height: 0; } }

/* Testimonials */
.testimonials { columns: 3 300px; column-gap: 22px; }
.quote { break-inside: avoid; margin: 0 0 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 16px; font-size: 15.5px; color: #24324a; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 44px; line-height: .8; color: var(--brand); font-family: Georgia, serif; margin-bottom: 4px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.quote .who { font-weight: 700; font-size: 15px; line-height: 1.3; }
.quote .where { font-size: 13px; color: var(--ink-soft); }
.stars { color: #f5a524; letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }

/* Expertise */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.logo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; place-items: center; aspect-ratio: 1; box-shadow: var(--shadow); }
.logo-card img { max-height: 120px; width: auto; }
.skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 34px auto 0; padding: 0; list-style: none; }
.skills li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #2b3a52; }

/* CTA */
.cta { text-align: center; background: linear-gradient(135deg, #0a4fd6, #0a2f7a); color: #fff; }
.cta h2 { font-size: clamp(26px, 4vw, 38px); }
.cta p { color: #d3e0ff; max-width: 560px; margin: 0 auto 26px; font-size: 17px; }
.cta .btn-primary { background: #fff; color: var(--brand); }
.cta .btn-primary:hover { background: #eaf1ff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.form-frame { width: 100%; height: 900px; border: 0; display: block; }
.info-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list .label { font-size: 13px; color: var(--ink-soft); }
.info-list a { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.info-list a:hover { color: var(--brand); }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); display: block; background: var(--bg-alt); }
.page-hero { background: var(--dark); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); }
.page-hero p { color: #b9c6da; font-size: 17px; max-width: 620px; margin: 0; }

/* Consent-gated embeds */
.embed { position: relative; display: grid; place-items: center; background: var(--bg-alt); overflow: hidden; }
.embed.map { height: 320px; }
.embed.form-frame { height: auto; min-height: 340px; border-radius: 10px; }
.embed.form-frame.loaded { height: 900px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-placeholder { text-align: center; padding: 24px; max-width: 420px; color: var(--ink-soft); font-size: 15px; }
.embed-placeholder strong { color: var(--ink); }
.embed-placeholder .btn { margin: 4px 0 10px; }
.embed-alt { font-size: 14px; margin: 0; }

/* Contact form */
.contact-form { margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #24324a; }
.field label span, .check span span { color: #c0392b; }
.field input, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid #cdd6e3; border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,79,214,.15); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field-err { display: block; color: #b42318; font-size: 13px; min-height: 0; margin-top: 4px; }
.field-err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #2b3a52; margin: 6px 0 4px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.form-actions .btn[disabled] { opacity: .7; cursor: wait; }
.form-note { font-size: 13px; color: var(--ink-soft); }
.form-status { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.form-status.ok { display: block; background: #e3f6ea; color: #17703a; }
.form-status.err { display: block; background: #fef3f2; color: #b42318; }

/* Cookie banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent-inner { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(15,26,42,.25); padding: 20px 22px; max-width: 920px; width: 100%; display: flex; gap: 20px; align-items: center; }
.consent h2 { font-size: 17px; margin-bottom: 6px; }
.consent p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.consent-actions { display: flex; gap: 10px; flex: none; }
.consent-actions .btn { min-width: 112px; }
@media (max-width: 720px) { .consent-inner { flex-direction: column; align-items: stretch; } .consent-actions .btn { flex: 1; } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #d6e0f0; cursor: pointer; }
.linklike:hover { color: #fff; text-decoration: underline; }
.prose { max-width: 780px; }
.prose h2 { font-size: 22px; margin-top: 34px; }
.prose p, .prose li { color: #2b3a52; }
.prose ul { padding-left: 22px; margin: 0 0 1em; }

/* Footer */
.site-footer { background: var(--dark); color: #a9b7cc; padding: 48px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer a { color: #d6e0f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 8px; }
.social svg { width: 20px; height: 20px; }
