/* Tekmerion — medical image authenticity
   Self-contained. Fonts are local woff2 files. */

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-greek-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-greek-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}

:root {
  --navy: #002862;
  --navy-deep: #00183a;
  --greek: #1a528f;
  --red: #e31c23;
  --paper: #f5f2ea;
  --paper-2: #ece7db;
  --white: #fffcf6;
  --ink: #1b2430;
  --muted: #5a6572;
  --line: rgba(0, 40, 98, 0.14);
  --line-strong: rgba(0, 40, 98, 0.28);
  --shadow: 0 10px 36px rgba(0, 24, 58, 0.08);
  --header-h: 4.25rem;
  --measure: 40rem;
  --wrap: 70rem;
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Calibri, system-ui, sans-serif;
  --display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --greek-font: "EB Garamond", "Source Serif 4", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
@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;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--greek); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 2px;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Greek-key hairline */
.meander {
  height: 16px;
  background-color: transparent;
  background-image: url("meander.svg");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 40px 16px;
  opacity: 0.85;
}
.meander--on-navy {
  background-image: url("meander-light.svg");
  opacity: 0.5;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 242, 234, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand img {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  line-height: 1;
}
.brand-tag {
  display: block;
  margin-top: 0.28rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--navy);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:not(.btn):hover { color: var(--greek); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.15rem;
  border-radius: 2px;
  border: 1px solid var(--navy);
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--navy);
}
.btn--ghost:hover { background: rgba(0, 40, 98, 0.06); color: var(--navy); }
.btn .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(227, 28, 35, 0.2);
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding: 3.25rem 0 3.75rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--greek);
  margin: 0 0 0.9rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 1.1rem;
  max-width: 18ch;
}
.etymology {
  font-family: var(--greek-font);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
}
.etymology .greek {
  font-style: italic;
  color: var(--navy);
}
.lede {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--ink);
  font-size: 1.125rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.hero-contact {
  color: var(--muted);
  font-size: 0.98rem;
}
.hero-contact a { color: var(--navy); text-decoration: none; font-weight: 600; }
.hero-contact a:hover { text-decoration: underline; }
.hero-mark {
  justify-self: center;
  width: min(100%, 24rem);
}
.hero-mark img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 24, 58, 0.12));
}

/* Sections */
.section {
  padding: 3.5rem 0;
}
.section--alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-kicker {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--greek);
  margin: 0 0 0.55rem;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 1rem;
}
.section .intro {
  max-width: var(--measure);
  margin: 0 0 2rem;
  color: var(--ink);
}

/* Problem */
.problem-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}
.problem-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.problem-points li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.05rem 1.15rem 1.05rem 1.25rem;
  border-left: 3px solid var(--navy);
  box-shadow: var(--shadow);
}
.problem-points strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.problem-points p { margin: 0; color: var(--muted); }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--red);
  display: block;
  margin-bottom: 0.7rem;
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.step p { margin: 0; color: var(--muted); }

/* Layers */
.layers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}
.layer {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.15rem 1rem 1.25rem;
  min-height: 100%;
}
.layer-num {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--red);
  display: block;
  margin-bottom: 0.55rem;
}
.layer h3 {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--navy);
  margin: 0 0 0.45rem;
  font-weight: 600;
  line-height: 1.3;
}
.layer p { margin: 0; color: var(--muted); font-size: 0.98rem; hyphens: manual; overflow-wrap: normal; }

.verdicts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.verdict {
  text-align: center;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
}
.verdict::before {
  content: "";
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  margin: 0 auto 0.45rem;
  background: var(--navy);
}
.verdict--authentic::before { background: var(--greek); }
.verdict--inconclusive::before { background: #8a9098; }
.verdict--manipulated::before { background: #b58116; }
.verdict--synthetic::before { background: var(--red); }
.verdict-note {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: var(--measure);
}

/* Audience */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.audience article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}
.audience h3 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0 0 0.45rem;
  font-size: 1.22rem;
  font-weight: 600;
}
.audience p { margin: 0; color: var(--muted); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}
.portrait-wrap {
  text-align: center;
}
.portrait {
  width: 11.5rem;
  height: 11.5rem;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 8%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 28px rgba(0, 24, 58, 0.12);
  background: var(--paper-2);
}
.portrait-name {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  margin: 0.9rem 0 0.15rem;
  font-size: 1.05rem;
}
.portrait-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.about-copy h2 { margin-bottom: 0.75rem; }
.about-copy .intro { margin-bottom: 1.25rem; }
.creds {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.creds > li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.creds .label {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--greek);
  padding-top: 0.28rem;
}
.creds .value { margin: 0; color: var(--ink); }
.creds .value span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Confidentiality + contact */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.panel h3 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.panel p { margin: 0 0 0.75rem; }
.panel p:last-child { margin-bottom: 0; }

.contact-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.contact-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .label {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--greek);
  padding-top: 0.3rem;
}
.contact-list a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #d7deea;
  padding: 2.4rem 0 2.1rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-tag { color: #9aabc2; }
.footer-copy {
  margin: 0;
  font-size: 0.95rem;
  max-width: 44rem;
}
.footer-copy strong { color: #fff; font-weight: 600; }
.disclaimer {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: #9aabc2;
  font-style: italic;
}
.footer-meander { margin-bottom: 1.5rem; }


.license-note {
  margin: 0.15rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}
.state-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.state-grid li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.28rem 0.15rem;
  min-width: 2.35rem;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  border-radius: 2px;
  grid-template-columns: none;
  gap: 0;
}
.nowrap { white-space: nowrap; }

/* Responsive */
@media (max-width: 980px) {
  .layers { grid-template-columns: repeat(2, 1fr); }
  .layers .layer:last-child { grid-column: span 2; }
  .verdicts { grid-template-columns: repeat(2, 1fr); }
  .hero-grid,
  .problem-grid,
  .about-grid,
  .split { grid-template-columns: 1fr; }
  .hero-mark { width: min(100%, 16.5rem); order: -1; }
  .hero-grid { gap: 1.5rem; }
  .hero h1 { max-width: none; }
  .about-grid { justify-items: center; }
  .about-copy { width: 100%; }
  .portrait-wrap { justify-self: center; }
}

@media (max-width: 760px) {
  :root { --header-h: 3.8rem; }
  .wrap { width: min(var(--wrap), calc(100% - 1.5rem)); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.1rem;
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .btn { margin-top: 0.85rem; width: 100%; }
  .steps, .audience { grid-template-columns: 1fr; }
  .creds > li { grid-template-columns: 1fr; gap: 0.2rem; }
  .contact-list li { grid-template-columns: 1fr; gap: 0.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0 2.5rem; }
  .section { padding: 2.6rem 0; }
  .layers { grid-template-columns: 1fr; }
  .layers .layer:last-child { grid-column: auto; }
}

@media print {
  .site-header, .nav-toggle, .hero-actions, .btn { display: none !important; }
  body { background: #fff; }
  .section, .section--alt { border: 0; background: #fff; padding: 1.2rem 0; }
  a { color: var(--ink); text-decoration: none; }
}
