/* One Clear Portal — brand tokens from Brand Guidelines v1.0 */
:root {
  --navy: #0B3A6B;      /* Portal Navy */
  --blue: #2A6BB5;      /* Clear Blue */
  --aperture: #EEF3F9;  /* Aperture */
  --ink: #0E1726;       /* Ink */
  --slate: #5B6675;     /* Slate */
  --pale: #9DBBE0;      /* inner band on reversed mark */
  --line: #D6DEE8;
  --white: #FFFFFF;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono { font-family: var(--font-mono); }

.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.label-light { color: var(--pale); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Mark colours: full colour by default, reversed inside dark sections.
   Custom properties (not descendant selectors) so they reach into <use> clones. */
.mark-outer { fill: var(--mark-outer, var(--navy)); }
.mark-inner { fill: var(--mark-inner, var(--blue)); }
.mark-aperture { fill: var(--mark-aperture, var(--aperture)); }
.reversed, .contact {
  --mark-outer: var(--white);
  --mark-inner: var(--pale);
  --mark-aperture: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--aperture); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

/* Header + primary lockup (horizontal) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 120px; /* minimum horizontal size */
}
.lockup-mark { width: 36px; height: 43px; flex: none; }
.lockup-text { display: flex; flex-direction: column; gap: 4px; }
.lockup-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--navy);
  white-space: nowrap;
}
.lockup-name b { font-weight: 700; }
.lockup-descriptor {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1;
}

.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--blue); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: clamp(80px, 13vw, 160px) 0 clamp(80px, 11vw, 140px);
}
.hero-frames { position: absolute; inset: 0; pointer-events: none; }
.hero-frames span { position: absolute; right: -10%; bottom: -10%; }
.hero-frames span:nth-child(1) { left: 54%; top: 6%; background: #1E4775; }
.hero-frames span:nth-child(2) { left: calc(54% + 110px); top: calc(6% + 110px); background: var(--navy); }
.hero-frames span:nth-child(3) {
  left: calc(54% + 150px); top: calc(6% + 150px);
  background: var(--navy);
  border: 34px solid #163F6E;
}
.hero-inner { position: relative; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6.4vw, 4.25rem);
  max-width: 13ch;
}
.hero-lede {
  margin-top: 28px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #D9E4F2;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.intro-body { display: grid; gap: 20px; font-size: 1.1rem; color: #2B3747; padding-top: 2.1rem; }

.mission { background: var(--aperture); }
.mission-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: stretch;
}
.vision-panel {
  background: var(--navy);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.vision-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  color: var(--white);
}
.mission-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mission-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.mission-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--blue);
}
.mission-list h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.mission-list p { margin-top: 6px; color: var(--slate); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}
.section-intro { max-width: 26rem; color: #2B3747; }

.company-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.company-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  background: var(--white);
}
.company-logo { height: 64px; display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.company-logo img { height: 48px; width: auto; }
.company-logo .logo-kerosky { height: 52px; }
.company-logo .logo-pik { height: 40px; }
.logo-region { font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate); }
.company-card h3 { margin-bottom: 10px; }
.company-card p { color: #2B3747; font-size: 0.95rem; }
.company-card .company-tagline {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue);
}
.company-card .company-meta {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
}
.company-meta a { color: var(--navy); }

/* News */
.news { background: var(--aperture); }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.news-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
}
.news-tag { color: var(--blue); text-transform: uppercase; letter-spacing: 0.12em; }
.news-item h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); margin-bottom: 14px; max-width: 40rem; }
.news-item p { color: #2B3747; max-width: 44rem; }
.news-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}
.news-links a { color: var(--navy); text-underline-offset: 3px; }
.news-item h3 a { color: inherit; text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; }

/* Article */
.article-hero { background: var(--navy); color: var(--white); padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.article-hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.25rem); max-width: 22ch; }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 32px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--pale); }
.breadcrumb a { color: #D9E4F2; text-underline-offset: 3px; }
.article-lede { margin-top: 24px; max-width: 40rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #D9E4F2; }
.article-date { margin-top: 28px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--pale); }

.article-section { padding-top: clamp(48px, 7vw, 88px); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(32px, 6vw, 80px); align-items: start; }
.article-body { max-width: 44rem; font-size: 1.05rem; color: #2B3747; }
.article-body > * + * { margin-top: 20px; }
.article-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 48px; }
.article-body blockquote {
  margin: 24px 0 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--blue);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--navy);
}
.article-timeline { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.article-timeline li { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.article-timeline .mono { font-size: 0.85rem; color: var(--blue); padding-top: 2px; }
.article-sources { padding-left: 1.2rem; }
.article-sources li + li { margin-top: 8px; }
.article-body a { text-underline-offset: 3px; }
.article-back { margin-top: 48px; font-weight: 600; }

.article-facts { position: sticky; top: 100px; background: var(--aperture); border-top: 3px solid var(--blue); padding: 28px 24px; }
.article-facts dl { margin: 0; }
.article-facts dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.article-facts dt { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); }
.article-facts dd { margin: 4px 0 0; font-weight: 500; color: var(--navy); }

/* Contact / corporate details */
.contact { background: var(--navy); color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.contact-mark { width: 70px; height: 84px; margin-bottom: 28px; }
.contact h2 { color: var(--white); }
.contact-lede { margin: 20px 0 32px; color: #D9E4F2; max-width: 28rem; }
.details { margin: 0; border-top: 1px solid rgba(255,255,255,.25); }
.details > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.details dt { color: #BFD0E6; }
.details dd { margin: 0; }
.details a { color: var(--white); text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.details a:hover { text-decoration-color: var(--white); }

.site-footer { background: var(--navy); color: #BFD0E6; border-top: 1px solid rgba(255,255,255,.12); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 1000px) {
  .company-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-body { padding-top: 0; }
  .news-item { grid-template-columns: 1fr; gap: 12px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-facts { position: static; grid-row: 1; }
  .article-timeline li { grid-template-columns: 1fr; gap: 2px; }
  .site-nav { gap: 20px; }
  .hero-frames span:nth-child(1) { left: 62%; }
  .hero-frames span:nth-child(2) { left: calc(62% + 60px); top: calc(6% + 60px); }
  .hero-frames span:nth-child(3) { left: calc(62% + 84px); top: calc(6% + 84px); border-width: 20px; }
}
@media (max-width: 560px) {
  .site-nav a:not(:last-child) { display: none; }
  .company-grid { grid-template-columns: 1fr; }
  .details > div { grid-template-columns: 1fr; gap: 2px; }
  .hero-frames { opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
