@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ink: #12241f;
  --forest: #143c34;
  --forest-deep: #0c2b25;
  --teal: #2d6d61;
  --gold: #c7a66a;
  --stone: #f2eee6;
  --paper: #fbfaf7;
  --white: #fff;
  --muted: #64716c;
  --line: rgba(18, 36, 31, .15);
  --shadow: 0 24px 70px rgba(12, 43, 37, .12);
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', sans-serif; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -60px; background: white; color: var(--ink); padding: 10px 14px; border-radius: 4px; }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 86px; color: white; transition: background .3s ease, box-shadow .3s ease; }
.site-header.scrolled { background: rgba(12, 43, 37, .96); box-shadow: 0 8px 30px rgba(0,0,0,.12); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.brand-mark { width: 44px; height: 36px; fill: none; stroke: var(--gold); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.brand span { display: grid; gap: 4px; }
.brand strong { font: 700 20px/1 'Manrope'; letter-spacing: .24em; }
.brand small { font-size: 8px; letter-spacing: .38em; opacity: .72; }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
nav > a:not(.nav-cta) { opacity: .82; }
nav > a:hover { opacity: 1; }
.nav-cta { padding: 10px 16px; border: 1px solid rgba(255,255,255,.42); border-radius: 99px; }
.language-switcher { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.32); border-radius: 99px; }
.language-switcher button { min-width: 31px; height: 28px; padding: 0 7px; color: rgba(255,255,255,.66); background: transparent; border: 0; border-radius: 99px; font: 600 10px/1 'Manrope', sans-serif; letter-spacing: .08em; cursor: pointer; }
.language-switcher button:hover { color: white; }
.language-switcher button[aria-pressed="true"] { color: var(--forest-deep); background: var(--gold); }
.menu-toggle { display: none; background: none; color: white; border: 0; width: 42px; height: 42px; padding: 10px; }
.menu-toggle span { display: block; height: 1px; background: currentColor; margin: 7px 0; }

.hero { min-height: max(850px, 100svh); height: auto; color: white; position: relative; display: flex; align-items: stretch; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background: url('https://images.pexels.com/photos/19174567/pexels-photo-19174567/free-photo-of-view-of-kotor-from-the-bay-montenegro.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,24,20,.88) 0%, rgba(5,24,20,.56) 49%, rgba(5,24,20,.12) 82%), linear-gradient(0deg, rgba(5,24,20,.9), transparent 52%); }
.hero-content { position: relative; z-index: 1; min-height: max(850px, 100svh); padding: 180px 0 54px; display: flex; flex-direction: column; justify-content: flex-end; }
.eyebrow { margin: 0 0 22px; color: #d7c08f; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow.dark { color: var(--teal); }
h1, h2, h3 { margin: 0; font-family: 'Manrope', sans-serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 860px; font-size: clamp(52px, 7.2vw, 94px); font-weight: 500; }
h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 500; }
h3 { font-size: 24px; font-weight: 600; }
.hero-copy { max-width: 720px; margin: 30px 0 34px; font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 3px; font-weight: 600; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--forest-deep); background: var(--gold); }
.button-ghost { color: white; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.button-light { background: white; color: var(--forest-deep); }
.hero-proof { margin-top: 86px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.24); display: grid; grid-template-columns: repeat(3, 1fr); max-width: 860px; }
.hero-proof div { display: grid; gap: 5px; padding-right: 26px; }
.hero-proof strong { font: 600 15px 'Manrope'; }
.hero-proof span { color: rgba(255,255,255,.64); font-size: 13px; }
.photo-credit { position: absolute; right: 22px; bottom: 18px; z-index: 2; color: rgba(255,255,255,.56); font-size: 10px; }

section { position: relative; }
.intro { padding: 140px 0 120px; }
.split-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 110px; }
.section-heading h2 { max-width: 700px; }
.intro-copy p { margin: 0 0 24px; color: var(--muted); font-size: 17px; }
.intro-copy .lead, .lead { color: var(--ink); font-size: 21px; line-height: 1.6; }
.text-link { display: inline-flex; gap: 12px; margin-top: 14px; color: var(--teal); font-weight: 600; }
.about-visual { position: relative; height: clamp(380px, 43vw, 560px); margin-top: 90px; overflow: hidden; box-shadow: var(--shadow); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.about-visual figcaption { position: absolute; right: 18px; bottom: 14px; padding: 5px 9px; color: rgba(255,255,255,.78); background: rgba(12,43,37,.68); font-size: 10px; backdrop-filter: blur(8px); }
.principles-grid { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 30px 25px 0 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 25px; }
.principle:last-child { border-right: 0; }
.principle > span, .service-number { color: var(--gold); font: 600 12px 'Manrope'; letter-spacing: .12em; }
.principle h3 { margin: 24px 0 14px; font-size: 20px; }
.principle p { color: var(--muted); font-size: 14px; }

.services { padding: 130px 0; color: white; background: var(--forest-deep); }
.section-heading.wide { display: grid; grid-template-columns: 1.4fr .7fr; gap: 80px; align-items: end; margin-bottom: 68px; }
.section-heading.wide > p { margin: 0; color: currentColor; opacity: .65; font-size: 17px; }
.service-showcases { display: grid; gap: 1px; margin-bottom: 1px; background: rgba(255,255,255,.12); }
.service-showcase { min-height: 390px; display: grid; grid-template-columns: 1.18fr .82fr; background: var(--forest-deep); overflow: hidden; }
.service-showcase-reverse { grid-template-columns: .82fr 1.18fr; }
.service-showcase-reverse img { order: 2; }
.service-showcase img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.service-showcase:first-child img { object-position: center 52%; }
.service-showcase-copy { padding: 54px 48px; align-self: center; }
.service-showcase-copy h3 { margin: 28px 0 18px; font-size: 29px; }
.service-showcase-copy p, .service-showcase-copy li { color: rgba(255,255,255,.64); font-size: 15px; }
.service-showcase-copy ul { padding-left: 18px; margin-top: 24px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.12); }
.service-card { min-height: 330px; padding: 36px; background: var(--forest-deep); }
.service-card h3 { margin: 38px 0 18px; font-size: 25px; }
.service-card p, .service-card li { color: rgba(255,255,255,.64); font-size: 15px; }
.service-card ul { padding-left: 18px; margin-top: 24px; }
.service-partnership-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.service-partnership-image { min-height: 330px; margin: 0; overflow: hidden; }
.service-partnership-image img { display: block; width: 100%; height: 100%; min-height: 330px; object-fit: contain; object-position: center; filter: saturate(.6) contrast(1.05); }

.investors { padding: 140px 0; background: var(--stone); }
.investor-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; align-items: center; }
.investor-visual { min-height: 660px; position: relative; background: var(--forest); box-shadow: var(--shadow); }
.investor-visual img { width: 100%; height: 660px; object-fit: cover; filter: saturate(.72) contrast(1.06); }
.visual-caption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; padding: 28px 32px; color: white; background: linear-gradient(0deg, rgba(12,43,37,.94), transparent); }
.visual-caption span { color: rgba(255,255,255,.65); font-size: 12px; text-transform: uppercase; letter-spacing: .15em; }
.visual-caption strong { font: 500 22px 'Manrope'; }
.investor-content h2 { margin-bottom: 30px; }
.investor-content .lead { margin-bottom: 40px; }
.phase-list { border-top: 1px solid var(--line); }
.phase-list details { border-bottom: 1px solid var(--line); }
.phase-list summary { list-style: none; position: relative; cursor: pointer; padding: 19px 38px 19px 0; font: 600 16px 'Manrope'; }
.phase-list summary b { font: inherit; }
.phase-list summary::-webkit-details-marker { display: none; }
.phase-list summary::after { content: '+'; position: absolute; right: 2px; top: 17px; color: var(--teal); font-size: 22px; font-weight: 400; }
.phase-list details[open] summary::after { content: '−'; }
.phase-list summary span { display: inline-block; width: 42px; color: var(--gold); font-size: 11px; }
.phase-list details p { margin: -3px 0 20px 42px; color: var(--muted); }

.institutions { display: grid; grid-template-columns: 720px minmax(0, 760px); gap: clamp(38px, 2.8vw, 54px); justify-content: start; align-items: center; padding: 96px clamp(26px, 2.8vw, 54px); color: white; background: var(--forest); }
.institutions-image { min-height: 0; padding: 0; display: grid; place-items: center; overflow: hidden; background: transparent; box-shadow: 0 28px 70px rgba(4,21,18,.28); }
.institutions-image img { display: block; width: 100%; max-width: 720px; height: auto; object-fit: contain; }
.institutions-panel { padding: 0; align-self: center; }
.institutions-panel h2 { max-width: 680px; font-size: clamp(42px, 3.25vw, 56px); }
.institutions-panel > p:not(.eyebrow) { max-width: 720px; margin: 22px 0; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.7; }
.conduct-list { margin: 28px 0; border-top: 1px solid rgba(255,255,255,.18); }
.conduct-list > div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.conduct-list span { color: var(--gold); }
.conduct-list p { margin: 0; color: rgba(255,255,255,.7); font-size: 15px; }
.conduct-list strong { color: white; }
.process { padding: 140px 0; }
.process-track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-track li { min-height: 240px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-track span { color: var(--gold); font-size: 12px; }
.process-track h3 { margin: 40px 0 12px; }
.process-track p { color: var(--muted); margin: 0; font-size: 14px; }

.team { padding: 140px 0; color: white; background: #10231f; }
.team .section-heading { display: grid; grid-template-columns: .55fr 1.45fr; gap: 70px; margin-bottom: 80px; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.person-card { display: grid; grid-template-columns: 180px 1fr; gap: 34px; padding: 36px; color: inherit; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); text-decoration: none; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.person-card:hover { transform: translateY(-4px); border-color: rgba(199,166,106,.68); background: rgba(255,255,255,.075); }
.person-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.person-photo { width: 100%; height: 232px; object-fit: cover; background: var(--forest-deep); }
.person-photo.nikola-photo { object-position: center 28%; }
.person-photo.danilo-photo { object-position: center top; }
.portrait-placeholder { height: 232px; display: grid; place-items: center; background: linear-gradient(145deg, var(--teal), var(--forest-deep)); }
.portrait-placeholder.alt { background: linear-gradient(145deg, #746a4f, var(--forest-deep)); }
.portrait-placeholder span { color: rgba(255,255,255,.75); font: 500 42px 'Manrope'; letter-spacing: .08em; }
.person-role { color: var(--gold); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.person-card h3 { margin: 10px 0 18px; font-size: 30px; }
.person-card p:not(.person-role), .person-card li { color: rgba(255,255,255,.64); font-size: 14px; }
.person-card ul { padding-left: 18px; }
.cv-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--gold); font: 600 12px 'Manrope'; letter-spacing: .12em; }
.cv-dialog { width: min(1160px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; color: white; background: #10231f; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 36px 100px rgba(0,0,0,.5); overflow: hidden; }
.cv-dialog::backdrop { background: rgba(4,16,13,.82); backdrop-filter: blur(8px); }
.cv-dialog-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; color: white; background: rgba(12,43,37,.9); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.cv-dialog-content { max-height: calc(100svh - 34px); overflow: auto; }
.cv-profile { display: grid; grid-template-columns: minmax(270px, 340px) 1fr; min-height: 660px; }
.cv-profile-aside { position: sticky; top: 0; align-self: start; min-height: calc(100svh - 34px); padding: 48px 36px; background: #0b2d27; }
.cv-profile-aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; margin-bottom: 30px; }
.cv-profile-aside .person-role { margin: 0; line-height: 1.55; }
.cv-profile-aside h2 { margin: 12px 0 18px; font-size: clamp(32px, 4vw, 46px); }
.cv-profile-tagline { color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.7; text-transform: uppercase; letter-spacing: .08em; }
.cv-profile-main { padding: 58px 64px 70px; }
.cv-profile-main section + section { margin-top: 38px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.12); }
.cv-profile-main h3 { margin: 0 0 16px; color: var(--gold); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.cv-profile-main p { margin: 0 0 16px; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.75; }
.cv-expertise ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.cv-expertise li { padding: 9px 12px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.cv-sources { margin-top: 38px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.cv-sources summary { color: var(--gold); cursor: pointer; font: 600 13px 'Manrope'; letter-spacing: .06em; text-transform: uppercase; }
.cv-sources p, .cv-sources li { color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.65; }
.cv-sources a { color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 3px; }
body.dialog-open { overflow: hidden; }
.network-note { max-width: 890px; margin: 52px auto 0; text-align: center; color: rgba(255,255,255,.64); }
.network-note strong { color: white; }

.contact { padding: 140px 0; background: var(--stone); }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; }
.contact-copy h2 { margin-bottom: 28px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.contact-meta { margin-top: 42px; display: grid; gap: 12px; font-weight: 600; }
.contact-meta span::before { content: '—'; color: var(--gold); margin-right: 12px; }
.contact-form { padding: 46px; background: white; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
input, select, textarea { width: 100%; padding: 12px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: none; text-transform: none; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
textarea { resize: vertical; }
.contact-form .button { width: 100%; margin-top: 6px; }
.form-note, .form-status { color: var(--muted); font-size: 11px; text-align: center; }
.form-status { color: var(--teal); font-weight: 600; }
.form-status[data-state="error"] { color: #a23b32; }
.contact-form button:disabled { cursor: wait; opacity: .65; }
.form-honeypot { display: none !important; }

footer { padding: 64px 0 26px; color: white; background: #091c18; }
.footer-grid { display: grid; grid-template-columns: .8fr 1.2fr .8fr; gap: 70px; align-items: start; }
.footer-grid > p { margin: 0; color: rgba(255,255,255,.58); max-width: 420px; }
.footer-links { display: grid; justify-items: end; gap: 8px; color: rgba(255,255,255,.72); font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.4); font-size: 11px; }

.reveal { opacity: 1; transform: none; }
.reveal.in-view { animation: fade-up .7s ease both; }

@keyframes fade-up {
  from { opacity: .55; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1200px) and (min-width: 981px) {
  nav { gap: 14px; font-size: 13px; }
  .nav-cta { padding-inline: 13px; }
  .language-switcher button { min-width: 28px; padding-inline: 5px; }
}

@media (max-width: 1180px) {
  .institutions { grid-template-columns: minmax(0, 640px); gap: 52px; justify-content: center; padding: 88px 36px; }
  .institutions-image { justify-self: center; }
  .institutions-panel { width: 100%; max-width: 640px; }
}

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .menu-toggle { display: block; }
  nav { position: fixed; inset: 86px 0 0; padding: 46px 30px; background: var(--forest-deep); flex-direction: column; align-items: flex-start; font-size: 22px; transform: translateX(100%); transition: transform .3s ease; }
  nav.open { transform: none; }
  .language-switcher { margin-top: 10px; }
  .split-grid, .investor-layout, .contact-layout { grid-template-columns: 1fr; gap: 54px; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(2) { border-right: 0; }
  .service-showcase, .service-showcase-reverse { min-height: 340px; grid-template-columns: 1fr 1fr; }
  .service-showcase img { min-height: 340px; }
  .service-showcase-copy { padding: 38px 32px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-partnership-row { grid-template-columns: .9fr 1.05fr 1.05fr; }
  .institutions { grid-template-columns: minmax(0, 620px); gap: 52px; padding: 88px 36px; }
  .institutions-image { justify-self: center; padding: 0; }
  .institutions-panel { width: 100%; max-width: 620px; }
  .process-track { grid-template-columns: 1fr 1fr; }
  .team .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { justify-items: start; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 30px); }
  .site-header { height: 74px; }
  nav { top: 74px; }
  .hero { height: auto; min-height: 100svh; align-items: flex-start; }
  .hero-content { min-height: 0; padding-top: 126px; padding-bottom: 48px; display: block; }
  h1 { font-size: clamp(44px, 14vw, 62px); }
  h2 { font-size: 38px; }
  .hero-proof { grid-template-columns: 1fr; gap: 16px; margin-top: 54px; }
  .photo-credit { display: none; }
  .about-visual { height: 280px; margin-top: 54px; }
  .intro, .services, .investors, .process, .team, .contact { padding: 92px 0; }
  .principles-grid, .service-grid, .process-track, .footer-grid { grid-template-columns: 1fr; }
  .principle { border-right: 0; padding-left: 0 !important; }
  .section-heading.wide { grid-template-columns: 1fr; gap: 24px; }
  .service-showcase, .service-showcase-reverse { grid-template-columns: 1fr; }
  .service-showcase-reverse img { order: 0; }
  .service-showcase img { height: 250px; min-height: 250px; }
  .service-showcase-copy { padding: 36px 28px 42px; }
  .service-partnership-row { grid-template-columns: 1fr; }
  .service-partnership-image, .service-partnership-image img { height: 250px; min-height: 250px; }
  .investor-visual, .investor-visual img { min-height: 430px; height: 430px; }
  .institutions { gap: 40px; padding: 72px 20px; }
  .institutions-panel { padding: 0; }
  .institutions-image { padding: 0; }
  .person-card { grid-template-columns: 1fr; }
  .person-photo { height: 300px; }
  .cv-profile { grid-template-columns: 1fr; }
  .cv-profile-aside { position: static; min-height: auto; padding: 34px 26px; }
  .cv-profile-aside img { width: min(280px, 100%); aspect-ratio: 1 / 1.08; }
  .cv-profile-main { padding: 38px 26px 48px; }
  .portrait-placeholder { height: 180px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

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