/* ===== FONTS ===== */
@font-face {
  font-family: 'Playfair';
  font-display: swap;
  src: url("../assets/playfair-display/PlayfairDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: 'Playfair';
  font-display: swap;
  src: url("../assets/playfair-display/PlayfairDisplay-Italic.ttf") format("truetype");
  font-style: italic;
}

@font-face {
  font-family: 'Playfair';
  font-display: swap;
  src: url("../assets/playfair-display/PlayfairDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: 'Playfair';
  font-display: swap;
  src: url("../assets/playfair-display/PlayfairDisplay-Black.ttf") format("truetype");
  font-weight: 900;
}

/* ===== BASE ===== */
:root {
  color-scheme: dark;
  --ink: #e9ece5;
  --muted: #adb9ba;
  --accent: #e8b900;
  --gutter: clamp(24px, 5vw, 96px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #101b22; color: var(--ink); font-family: Arial, sans-serif; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.horizontal { width: 100%; }
.section {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  flex: 0 0 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 88px var(--gutter) 72px;
}
.scroll-enabled .horizontal { display: flex; height: 100vh; height: 100svh; }
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(#e9ece506 1px, transparent 1px), linear-gradient(90deg, #e9ece506 1px, transparent 1px);
  background-size: 80px 80px;
}
.eyebrow, .section-note, .mission-details, .site-footer {
  font-family: monospace;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); }
.section-note { position: absolute; bottom: 68px; left: var(--gutter); color: var(--muted); }
.site-header, .site-footer {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 10;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.site-header { top: 0; height: 76px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(#101b22cc, transparent); }
.brand { font-size: 21px; font-weight: 700; letter-spacing: -.06em; text-decoration: none; color: var(--accent); pointer-events: auto; }
.site-footer { bottom: 22px; color: var(--muted); }
/* ===== INTRO / ASCII ===== */
#ascii-container { background: radial-gradient(ellipse at 75% 30%, #254849, transparent 65%), #101b22; }
.intro-copy { position: relative; z-index: 3; width: 100%; text-align: center; pointer-events: none; }
.wordmark { font-family: 'Playfair', Georgia, serif; font-size: clamp(64px, 17vw, 280px); line-height: 1.05; letter-spacing: -.065em; color: var(--accent); }
.intro-caption { margin-top: 24px; font-size: clamp(15px, 1.5vw, 23px); }
#big-ascii, .glitch-layer {
  position: absolute;
  inset: 0;
  white-space: pre;
  font-family: monospace;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 2px;
  pointer-events: none;
}
#big-ascii { color: #b8c8c7; opacity: .42; z-index: 0; }
.glitch-layer { mix-blend-mode: screen; opacity: .3; z-index: 1; -webkit-mask-image: radial-gradient(ellipse at center, transparent 60%, black 85%); mask-image: radial-gradient(ellipse at center, transparent 60%, black 85%); }
#big-ascii-ghost-red { color: #ff665c; transform: translate(2px, 0); }
#big-ascii-ghost-blue { color: cyan; transform: translate(-2px, 0); }
/* ===== RESEARCH ===== */
#genetic-algorithm { background: radial-gradient(ellipse at 80% 60%, #234d51, transparent 65%), #132630; }
.research-heading { position: relative; z-index: 1; pointer-events: none; }
.research-heading h2 { margin-top: 28px; font-size: clamp(48px, 8vw, 132px); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
em { font-family: 'Playfair', Georgia, serif; font-weight: 400; }
#genetic-algo-canvas { position: absolute; inset: 0; }
/* ===== MISSION ===== */
#mission { background: radial-gradient(ellipse at 95% 5%, #365650, transparent 65%), linear-gradient(125deg, #182b34, #152022); overflow-y: auto; }
.content-section { overflow-y: auto; }
.section:focus-visible { outline-offset: -4px; }
.section-content { width: 100%; margin-block: auto; min-width: 0; }
#cybersecurity { background: radial-gradient(ellipse at 90% 20%, #304942, transparent 65%), #17282c; }
#penetration-testing { background: radial-gradient(ellipse at 15% 85%, #283d50, transparent 65%), #14232d; }
.content-title { margin-top: clamp(20px, 4vh, 48px); font-size: clamp(30px, min(5.7vw, 8vh), 96px); line-height: 1.04; letter-spacing: -.045em; font-weight: 500; overflow-wrap: anywhere; }
.content-title em { color: var(--accent); }
.mission-description { max-width: 64ch; margin-top: clamp(20px, 4vh, 40px); font-size: clamp(15px, 1.5vw, 22px); line-height: 1.6; color: #c6d0ce; }
.mission-details { margin-top: clamp(24px, 5vh, 56px); padding-top: 18px; border-top: 1px solid #c6d0ce35; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.mission-details span { color: var(--muted); }
@media (max-width: 600px) {
  .site-header .eyebrow { font-size: 9px; letter-spacing: .06em; }
  .content-title { font-size: clamp(22px, 6.5vw, 39px); }
  .mission-details { font-size: 10px; }
  .section::before { background-size: 48px 48px; }
}
@media (max-height: 500px) {
  .section { padding-top: 64px; padding-bottom: 52px; }
  .content-title { font-size: clamp(24px, 7vh, 40px); margin-top: 12px; }
  .mission-description { margin-top: 12px; font-size: 14px; }
  .mission-details { margin-top: 16px; padding-top: 10px; }
  .site-header { height: 52px; }
}

.research-use-case { max-width: 76ch; margin-top: 20px; padding-left: 18px; border-left: 2px solid var(--accent); color: var(--muted); font-size: clamp(14px, 1.15vw, 18px); line-height: 1.5; }
.research-use-case strong { color: var(--ink); font-weight: 400; }
@media (max-height: 700px) {
  .content-section .mission-description { margin-top: 16px; font-size: 15px; line-height: 1.5; }
  .content-section .mission-details { margin-top: 20px; padding-top: 12px; }
  .research-use-case { margin-top: 14px; font-size: 14px; }
}

/* ===== LANGUAGE SWITCH ===== */
.language-switch { display: flex; align-items: center; gap: 8px; font: 11px/1.5 monospace; letter-spacing: .08em; color: var(--muted); pointer-events: auto; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; text-decoration: none; }
.language-switch a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.language-switch a:hover { color: var(--ink); }
@media (max-width: 380px) {
  .site-header > .eyebrow { max-width: 100px; text-align: center; }
  .language-switch { gap: 3px; }
}

/* ===== CONTACT ===== */
#contact { background: radial-gradient(ellipse at 80% 70%, #294440, transparent 65%), #142329; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 28px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; font: clamp(28px, 5vw, 72px)/1.2 monospace; letter-spacing: -.06em; text-decoration: none; color: var(--ink); }
.contact-links a:hover, .contact-links a:focus-visible { color: var(--accent); }

/* Company details remain readable on narrow screens. */
.site-footer p { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.site-footer p span { white-space: nowrap; }

/* Standalone legal documents: regular scrolling, no animation libraries. */
.legal-page { overflow-x: hidden; }
.legal-content { max-width: 860px; margin: 0 auto; padding: 100px var(--gutter) 64px; }
.legal-content h1 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 24px; }
.legal-content h2 { font-size: 20px; margin: 32px 0 12px; }
.legal-content p, .legal-content li { font-size: 16px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.legal-content p + p { margin-top: 12px; }
.legal-content ul { padding-left: 22px; }
.legal-content a { text-underline-offset: 4px; }
.legal-draft { border-left: 2px solid var(--accent); padding-left: 16px; margin-bottom: 28px; }

.site-footer .legal-link { display: inline-flex; align-items: center; min-height: 28px; pointer-events: auto; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .site-footer { bottom: 14px; font-size: 9px; letter-spacing: .08em; }
  .site-footer p { column-gap: 12px; }
}
