/* Philip Constantinou / Filsec — shared presentation */
:root {
  --background: #07111f;
  --surface: #0d1a2b;
  --surface-elevated: #122238;
  --border: #2b4261;
  --text: #f1f5f9;
  --muted: #a8b8ca;
  --accent: #4c8dff;
  --accent-light: #8ab4ff;
  --success: #54d6b3;
  --focus: #f4c95d;
  --shell: min(1180px, calc(100% - 48px));
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Aptos, "Segoe UI", Helvetica, sans-serif;
  --display: "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--text); background: var(--background); font-family: var(--sans); font-size: 1rem; line-height: 1.65; letter-spacing: 0; }
body::before { position: fixed; inset: 0 0 auto; z-index: -1; height: 700px; content: ""; opacity: .2; pointer-events: none; background-image: linear-gradient(rgba(76,141,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(76,141,255,.045) 1px, transparent 1px); background-size: 96px 96px; mask-image: linear-gradient(to bottom, #000, transparent 84%); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
::selection { color: var(--background); background: var(--accent-light); }

.shell { width: var(--shell); margin-inline: auto; }
.section { padding-block: clamp(82px, 9vw, 132px); }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: 12px; padding: 10px 16px; color: var(--background); background: var(--text); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; background: rgba(7,17,31,.68); backdrop-filter: blur(12px); transition: background-color .25s, border-color .25s; }
.site-header.is-scrolled { border-color: var(--border); background: rgba(7,17,31,.94); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.brand:hover { color: var(--text); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .9rem; line-height: 1.2; }
.brand small { color: var(--muted); font-size: .68rem; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 25px); }
.site-nav a { display: grid; place-items: center; min-height: 44px; color: var(--muted); font-size: .82rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.site-nav .language { min-width: 44px; border-left: 1px solid var(--border); color: var(--accent-light); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); color: var(--text); background: var(--surface); font: inherit; }
.menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 1px; background: currentColor; transition: transform .2s; content: ""; }
.menu-icon::before { transform: translateY(-6px); }
.menu-icon::after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg) translateY(-1px); }

.hero { min-height: calc(100svh - 78px); display: grid; align-items: center; padding-block: clamp(56px, 7vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(390px, .82fr); align-items: center; gap: clamp(48px, 7vw, 96px); }
.hero-grid > * { min-width: 0; }
.eyebrow, .section-index, .card-number, .case-label, .article-category { margin: 0 0 22px; color: var(--accent-light); font: 700 .74rem/1.4 var(--sans); letter-spacing: .035em; text-transform: uppercase; }
.section-index { display: none; }
.eyebrow, .section-index, .case-label, .article-category { overflow-wrap: anywhere; }
.eyebrow span { color: var(--success); }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
h1, h2, h3 { margin-top: 0; font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: 0; }
h1 { max-width: 790px; margin-bottom: 30px; font-size: clamp(2.7rem, 4.7vw, 4.75rem); }
h2 { margin-bottom: 24px; font-size: clamp(2.05rem, 3.25vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 1.8vw, 1.75rem); }
p { margin-top: 0; }
.hero-intro, .lead { color: #d5dfeb; font-size: clamp(1.07rem, 1.4vw, 1.27rem); }
.hero-intro { max-width: 690px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 20px; border: 1px solid var(--border); font: 700 .86rem var(--sans); text-decoration: none; cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; }
.button-primary { color: #fff; background: #316fcf; border-color: #558de0; }
.button-primary:hover { color: #fff; background: #3979da; }
.button-secondary { background: transparent; }
.supporting-note { margin-top: 12px; color: var(--muted); font-size: .84rem; }
.supporting-note a { color: var(--accent-light); }
.status { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--muted); font: .7rem/1.5 var(--mono); }
.status span { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(84,214,179,.11); }
.system-flow { position: relative; min-height: 570px; margin: 0; padding: 30px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(145deg, rgba(18,34,56,.92), rgba(9,22,38,.96)); }
.system-flow::before, .system-flow::after { position: absolute; content: ""; pointer-events: none; }
.system-flow::before { inset: 12px; border: 1px solid rgba(138,180,255,.12); }
.system-flow::after { top: 0; left: 16%; width: 28%; height: 1px; background: var(--accent); box-shadow: 188px 226px 0 rgba(76,141,255,.5), 82px 490px 0 rgba(76,141,255,.35); animation: flow-pulse 5s ease-in-out infinite; }
.flow-grid { position: absolute; inset: 0; opacity: .34; pointer-events: none; background-image: linear-gradient(rgba(76,141,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(76,141,255,.08) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom right, #000, transparent 78%); }
.system-flow > :not(.flow-grid) { position: relative; z-index: 1; }
.flow-kicker { margin: 0 0 9px; color: var(--accent-light); font: 700 .64rem/1.4 var(--mono); text-transform: uppercase; }
.system-flow figcaption { max-width: 330px; padding-bottom: 22px; border-bottom: 1px solid var(--border); font: 400 1.55rem/1.15 var(--display); }
.flow-content { display: grid; gap: 17px; margin-top: 24px; }
.flow-stage { border: 1px solid rgba(76,141,255,.34); background: rgba(7,17,31,.72); }
.flow-stage > p { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--muted); font: 650 .61rem/1.4 var(--mono); text-transform: uppercase; }
.flow-input-stage ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 8px 12px; list-style: none; }
.flow-input-stage li { position: relative; padding: 6px 5px 6px 14px; color: #d5dfeb; font-size: .72rem; }
.flow-input-stage li::before { position: absolute; left: 0; top: 12px; width: 4px; height: 4px; border: 1px solid var(--accent-light); content: ""; }
.flow-process { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.flow-process::before { position: absolute; z-index: -1; top: 50%; left: -17px; right: -17px; height: 1px; background: rgba(76,141,255,.4); content: ""; }
.flow-process li { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 10px; border-left: 1px solid var(--accent); background: rgba(13,26,43,.92); color: #dbe5ef; font-size: .72rem; }
.flow-process span { color: var(--accent-light); font: .58rem var(--mono); }
.flow-output-stage { position: relative; overflow: hidden; border-color: rgba(84,214,179,.55); }
.flow-output-stage::after { position: absolute; right: 0; bottom: 0; width: 36px; height: 36px; border-top: 1px solid var(--success); border-left: 1px solid var(--success); content: ""; opacity: .55; }
.flow-output-stage strong, .flow-output-stage small { display: block; padding-inline: 12px; }
.flow-output-stage strong { padding-top: 12px; color: var(--text); font: 400 1.35rem/1.2 var(--display); }
.flow-output-stage small { padding-block: 3px 14px; color: var(--success); font: .63rem/1.4 var(--mono); }
.flow-sequence { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin: 20px 0 0; color: #8ea4bb; font: .52rem/1.4 var(--mono); text-transform: uppercase; }
.flow-sequence i { color: var(--accent-light); font-style: normal; }
@keyframes flow-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.positioning { border-block: 1px solid var(--border); background: rgba(13,26,43,.38); }
.editorial-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 8vw; }
.editorial-grid > *, .section-heading > *, .case-study > *, .case-body > *, .experience-grid > *, .filsec-grid > *, .about-grid > *, .contact-grid > * { min-width: 0; }
.editorial-grid > div { grid-column: 2; max-width: 810px; }
.editorial-grid h2 { max-width: 700px; }
.editorial-grid p:not(.lead) { max-width: 670px; color: var(--muted); }
.section-heading { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 8vw; margin-bottom: clamp(44px, 6vw, 76px); }
.section-heading h2 { max-width: 760px; margin-bottom: 0; }
.section-heading > p { max-width: 480px; margin-bottom: 4px; color: var(--muted); }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-block: 1px solid var(--border); }
.expertise-card, .article-card { min-width: 0; background: transparent; }
.expertise-card { min-height: 450px; display: flex; flex-direction: column; padding: clamp(28px, 3.2vw, 44px); border-right: 1px solid var(--border); }
.expertise-card:last-child { border-right: 0; }
.expertise-card .card-number { display: none; }
.expertise-card h3 { min-height: 2.2em; }
.expertise-card > p:not(.card-number) { color: var(--muted); }
.expertise-card ul { margin: auto 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--border); }
.expertise-card li { position: relative; padding: 6px 0 6px 17px; font-size: .88rem; }
.expertise-card li::before { position: absolute; left: 0; color: var(--success); content: "+"; font-family: var(--mono); }

.work-section { background: #0a1522; }
.case-list { border-top: 1px solid var(--border); }
.case-study { display: grid; grid-template-columns: minmax(250px, .8fr) 1.7fr; gap: clamp(35px, 6vw, 90px); padding-block: clamp(38px, 5vw, 62px); border-bottom: 1px solid var(--border); }
.case-study header { padding-right: 15px; }
.case-study h3 { font-size: clamp(1.65rem, 2.3vw, 2.35rem); }
.case-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-body h4 { margin: 0 0 10px; color: var(--text); font: 650 .7rem var(--mono); text-transform: uppercase; }
.case-body p { margin-bottom: 0; color: var(--muted); font-size: .91rem; }
.case-study footer { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.case-study footer span, .engagement-notes span { padding: 5px 9px; border: 1px solid var(--border); color: #c3d0df; font: 600 .68rem/1.4 var(--sans); }

.experience-grid { display: grid; grid-template-columns: .9fr 1.5fr; gap: 10vw; }
.section-intro { max-width: 480px; color: var(--muted); }
.text-link { display: inline-flex; align-items: baseline; gap: 10px; color: var(--accent-light); font-weight: 650; }
.external > span[aria-hidden] { transition: transform .2s; }
.external:hover > span[aria-hidden] { transform: translate(2px, -2px); }
.timeline { margin: 0; padding: 0; list-style: none; counter-reset: experience; }
.timeline li { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 25px; padding: 18px 0 18px 35px; border-bottom: 1px solid var(--border); counter-increment: experience; }
.timeline li:first-child { border-top: 1px solid var(--border); }
.timeline li::before { position: absolute; left: 0; top: 20px; color: var(--accent-light); content: "0" counter(experience); font: .65rem var(--mono); }
.timeline strong { font-size: .91rem; }
.timeline span { color: var(--muted); font-size: .88rem; }
.industries { display: grid; grid-template-columns: .45fr 2fr; gap: 20px; margin-top: 80px; padding-block: 25px; border-block: 1px solid var(--border); }
.industries p { margin: 0; color: var(--accent-light); font: .7rem var(--mono); text-transform: uppercase; }
.industries ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.industries li { color: #cfdae6; font-size: .91rem; }
.disclaimer { margin-top: 20px; color: var(--muted); font-size: .72rem; }

.writing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-block: 1px solid var(--border); }
.article-card { min-height: 365px; display: flex; flex-direction: column; padding: clamp(28px, 3.2vw, 44px); border-right: 1px solid var(--border); }
.article-card:last-child { border-right: 0; }
.article-card h3 { line-height: 1.25; }
.article-card > p:not(.article-category) { color: var(--muted); }
.article-card .text-link { margin-top: auto; }
.all-writing { margin-top: 25px; }

.filsec-section { position: relative; border-block: 1px solid #34547c; background: var(--surface); overflow: hidden; }
.filsec-section::after { position: absolute; right: 0; top: 0; width: 32%; height: 1px; background: var(--accent); content: ""; opacity: .65; pointer-events: none; }
.filsec-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; }
.filsec-grid .button { margin-top: 26px; }
.service-list article { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.service-list article:first-child { border-top: 1px solid var(--border); }
.service-list article > span { color: var(--accent-light); font: .68rem var(--mono); }
.service-list h3 { margin-bottom: 8px; font-size: 1.15rem; }
.service-list p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.engagement-notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.about-grid { display: grid; grid-template-columns: .7fr 1.5fr; gap: 10vw; }
.about-copy { max-width: 760px; }
.about-copy > p:not(.lead) { color: var(--muted); }
.about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--border); }
.about-details h3 { font: 650 .72rem var(--mono); color: var(--accent-light); text-transform: uppercase; }
.about-details p { margin-bottom: 8px; color: #cbd6e2; font-size: .88rem; }

.contact-section { border-top: 1px solid var(--border); background: #0a1727; }
.contact-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: 10vw; align-items: end; }
.contact-grid h2 { max-width: 800px; }
.contact-grid p:not(.section-index) { max-width: 630px; color: var(--muted); }
.contact-links { display: flex; flex-direction: column; }
.contact-links a, .contact-links button { display: flex; justify-content: space-between; gap: 18px; width: 100%; min-height: 52px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--border); color: inherit; background: transparent; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.contact-links .contact-primary { color: var(--accent-light); font-weight: 700; }
.site-footer { padding-block: 50px 32px; border-top: 1px solid var(--border); background: #050d17; }
.footer-top { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.footer-top strong, .footer-top span { display: block; }
.footer-top span { color: var(--muted); font-size: .8rem; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 10px 25px; }
.footer-top a, .footer-top button { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: .8rem; cursor: pointer; }
.footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid var(--border); }
.footer-bottom p { max-width: 950px; color: #8498ad; font-size: .69rem; }
.footer-bottom .legal { color: #71859a; font-family: var(--mono); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav { width: 100%; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
  .js .menu-toggle { display: grid; place-items: center; }
  .js .site-nav { position: absolute; top: 78px; left: 0; right: 0; display: none; align-items: stretch; padding: 12px 18px 22px; border-bottom: 1px solid var(--border); background: #091524; }
  .js .site-nav.is-open { display: grid; }
  .js .site-nav a { justify-content: start; padding-inline: 12px; border-bottom: 1px solid rgba(43,66,97,.6); }
  .js .site-nav .language { border-left: 0; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr); gap: 35px; }
  .system-flow { min-height: 545px; padding: 25px; }
  .expertise-grid, .writing-grid { grid-template-columns: 1fr; }
  .expertise-card, .article-card { min-height: auto; }
  .expertise-card, .article-card, .expertise-card:last-child, .article-card:last-child { border-right: 0; border-bottom: 1px solid var(--border); }
  .expertise-card:last-child, .article-card:last-child { border-bottom: 0; }
  .expertise-card h3 { min-height: auto; }
  .expertise-card ul { margin-top: 25px; }
  .case-study { grid-template-columns: 1fr; gap: 20px; }
  .case-body { grid-template-columns: 1fr 1fr 1fr; }
  .case-study footer { grid-column: 1; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 32px); }
  .section { padding-block: 76px; }
  .header-inner { min-height: 70px; }
  .brand small { display: none; }
  .js .site-nav { top: 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .system-flow { width: 100%; min-height: auto; margin-top: 15px; }
  .editorial-grid, .section-heading, .experience-grid, .filsec-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .editorial-grid > div { grid-column: 1; }
  .section-heading { align-items: start; }
  .case-body { grid-template-columns: 1fr; gap: 22px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .industries { grid-template-columns: 1fr; }
  .about-details { grid-template-columns: 1fr; }
  .contact-links { margin-top: 15px; }
  .footer-top { display: block; }
  .footer-top nav { margin-top: 25px; }
}

@media (max-width: 390px) {
  :root { --shell: calc(100% - 24px); }
  h1 { font-size: 2.34rem; }
  :lang(nl) h1 { font-size: 1.8rem; }
  .button-row { display: grid; }
  .button { width: 100%; }
  .brand strong { font-size: .82rem; }
  .system-flow { padding: 22px 18px; }
  .flow-input-stage ul { grid-template-columns: 1fr; }
  .flow-sequence { flex-wrap: wrap; justify-content: flex-start; gap: 5px 8px; }
  .expertise-card, .article-card { padding: 23px 20px; }
  .case-study { padding-block: 34px; }
}

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

@media print {
  .site-header, .button-row, .site-footer { display: none; }
  body { color: #111; background: #fff; }
  body::before { content: none; }
  .section { padding-block: 35px; }
}
