/* ==========================================================================
   VASKOR — Brand Presence Site
   Style system: Luxury Medical Technology × Precision Engineering
   Palette: Black / White / Graphite / Steel + restrained medical red
   ========================================================================== */

:root {
  --bg: #0B0B0C;
  --bg-raise: #101013;
  --ink: #EDEAE3;
  --ink-dim: #A5A29B;
  --ink-faint: #6F6D68;
  --line: #232326;
  --accent: #96302B;

  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-hero: clamp(2.5rem, 6.5vw, 4.75rem);
  --fs-h2: clamp(1.4rem, 2.6vw, 2rem);
  --fs-body: 1.0625rem;
  --fs-micro: 0.72rem;
  --fs-wordmark: clamp(1.05rem, 2.2vw, 1.3rem);

  --w-prose: 640px;
  --w-page: 1120px;

  --section-pad: 160px;
  --header-h: 72px;
}

@media (max-width: 720px) {
  :root { --section-pad: 96px; }
}

/* ---- Reset ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: #2A2A2E; color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--ink-dim);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Utilities --------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.prose { max-width: var(--w-prose); }

.micro {
  font-size: var(--fs-micro);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

.hairline {
  border: 0;
  border-top: 1px solid var(--line);
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* Reveal-on-scroll (progressive enhancement: visible by default without JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---- Header / Nav ------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.site-header.is-scrolled {
  /* near-opaque bg instead of backdrop-filter: backdrop-filter would create a
     containing block and clip the fixed full-screen mobile menu */
  background: rgba(11, 11, 12, 0.96);
  border-bottom-color: var(--line);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: var(--fs-wordmark);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: 0.42em; /* optical correction for trailing letter-spacing */
}

.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  z-index: 120;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s ease, opacity 0.25s ease, top 0.35s ease;
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    background: rgba(11, 11, 12, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 0.95rem; letter-spacing: 0.34em; }
  body.menu-open { overflow: hidden; }
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 48px) 24px 96px;
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, var(--bg-raise) 0%, var(--bg) 62%);
  overflow: hidden;
}

/* precision-drawing corner ticks */
.hero-tick {
  position: absolute;
  width: 15px;
  height: 15px;
  opacity: 0.5;
}
.hero-tick::before,
.hero-tick::after {
  content: "";
  position: absolute;
  background: var(--line);
}
.hero-tick::before { left: 7px; top: 0; width: 1px; height: 15px; }
.hero-tick::after  { top: 7px; left: 0; height: 1px; width: 15px; }
.hero-tick.tl { top: calc(var(--header-h) + 28px); left: 28px; }
.hero-tick.tr { top: calc(var(--header-h) + 28px); right: 28px; }
.hero-tick.bl { bottom: 28px; left: 28px; }
.hero-tick.br { bottom: 28px; right: 28px; }

.hero-inner { max-width: 820px; }

/* EMBLEM SLOT — future VASKOR medical caduceus emblem replaces this mark */
.hero-emblem {
  width: 44px;
  height: 44px;
  margin: 0 auto 40px;
}

.hero-logo {
  display: inline-block;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-rule {
  width: 56px;
  margin: 44px auto;
  border-top: 1px solid var(--ink-faint);
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.hero h1 .accent-dot { color: var(--accent); }

.hero-tagline {
  margin-top: 36px;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.hero-intro {
  max-width: 520px;
  margin: 28px auto 0;
  color: var(--ink-dim);
  font-size: 1rem;
}

/* Hero load sequence — restrained fade + rise */
@media (prefers-reduced-motion: no-preference) {
  .fade-seq { opacity: 0; animation: vkr-fade 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
  .fade-seq.d1 { animation-delay: 0.15s; }
  .fade-seq.d2 { animation-delay: 0.45s; }
  .fade-seq.d3 { animation-delay: 0.7s; }
  .fade-seq.d4 { animation-delay: 0.95s; }
  @keyframes vkr-fade {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---- Sections ----------------------------------------------------------- */

.section { padding: var(--section-pad) 0; }

.section-head { margin-bottom: 72px; }
.section-head .micro { display: block; margin-bottom: 22px; }
.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.35;
}

.section p { color: var(--ink-dim); }
.section p + p { margin-top: 1.4em; }
.section .lead { color: var(--ink); }

/* Alternating rhythm for long page */
.section.tinted {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---- Numbered manifesto items (Philosophy / Future) ---------------------- */

.manifesto { border-top: 1px solid var(--line); }
.manifesto-spaced { margin-top: 72px; }
.manifesto-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.manifesto-item .num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  line-height: 1;
}
.manifesto-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.manifesto-item p {
  color: var(--ink-dim);
  max-width: 560px;
}

@media (max-width: 720px) {
  .manifesto-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 36px 0;
  }
}

/* ---- Keyword row (Direction) --------------------------------------------- */

.keywords {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.keywords li {
  padding: 40px 24px 44px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
}
.keywords li:first-child { border-left: 1px solid var(--line); }
.keywords .kw {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.keywords .kw-note {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

@media (max-width: 720px) {
  .keywords { grid-template-columns: 1fr; }
  .keywords li { border-left: 1px solid var(--line); }
  .keywords li + li { border-top: 0; }
}

/* ---- Subpages -------------------------------------------------------------- */

.page-hero {
  padding: calc(var(--header-h) + 96px) 0 88px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 110% 90% at 50% 0%, var(--bg-raise) 0%, var(--bg) 70%);
}
.page-hero .micro { display: block; margin-bottom: 24px; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.page-hero .sub {
  margin-top: 26px;
  max-width: 560px;
  color: var(--ink-dim);
}

.page-body { padding: 96px 0 var(--section-pad); }
.page-body h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 72px 0 26px;
}
.page-body h2:first-child { margin-top: 0; }
.page-body p { color: var(--ink-dim); max-width: var(--w-prose); }
.page-body p + p { margin-top: 1.4em; }
.page-body .lead { color: var(--ink); }

.pillar-list { margin-top: 8px; border-top: 1px solid var(--line); }
.pillar-list li {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  max-width: var(--w-prose);
}
.pillar-list .num {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 12px;
}
.pillar-list h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pillar-list p { font-size: 0.98rem; }

.page-link {
  display: inline-block;
  margin-top: 64px;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.page-link:hover { color: var(--ink); border-color: var(--accent); }

/* ---- Contact ---------------------------------------------------------------- */

.contact-note {
  border: 1px solid var(--line);
  padding: 48px 40px;
  max-width: var(--w-prose);
  background: var(--bg-raise);
}
.contact-note h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.contact-note p { font-size: 0.98rem; }

/* Future swap point: real email address replaces this block */
.contact-channel {
  margin-top: 28px;
  font-size: var(--fs-micro);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---- Footer ------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 64px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-row .wordmark { font-size: 0.95rem; }
.footer-tagline {
  font-size: var(--fs-micro);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.footer-meta {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* ---- 404 ----------------------------------------------------------------------- */

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 48px) 24px 96px;
}
.notfound .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  line-height: 1;
}
.notfound h1 {
  margin-top: 28px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.notfound p { margin-top: 18px; color: var(--ink-dim); max-width: 420px; }
