/* Daimon — single stylesheet */

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #0e1f2c;
  --muted: #515c66;
  --line: #e2dfd9;
  --brand: #0097db;          /* logo blue — decorative only (fails 4.5:1 on light bg) */
  --accent: #00719f;         /* text/buttons — 5.4:1 on white */
  --accent-strong: #005a80;
  --radius: 16px;
  --wrap: 1160px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; }

html { overflow-y: scroll; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 16px; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.lede { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: scale(0.97); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 243, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand span {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { font-size: 0.9375rem; color: var(--muted); text-decoration: none; }
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:not(.btn)[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.menu-btn { display: none; }

@media (max-width: 960px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 150ms var(--ease-out),
      transform 150ms var(--ease-out),
      display 150ms allow-discrete;
  }
  .nav-open .nav-links {
    display: flex;
    opacity: 1;
    transform: none;
    transition:
      opacity 200ms var(--ease-out),
      transform 200ms var(--ease-out),
      display 200ms allow-discrete;
  }
  @starting-style {
    .nav-open .nav-links { opacity: 0; transform: translateY(-8px); }
  }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 20px; }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .nav-links,
  .nav-open .nav-links { transform: none; }
  @starting-style {
    .nav-open .nav-links { transform: none; }
  }
}

/* ============ Page hero ============ */
.page-hero { padding: 72px 0 48px; }
.page-hero h1 { max-width: 18ch; margin-bottom: 20px; }

.page-hero.has-media .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .page-hero.has-media .wrap { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}

.hero-media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.hero-wide { width: 100%; margin-top: 48px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 720px) { .hero-wide { aspect-ratio: 21 / 9; } }

/* ============ Sections ============ */
.section { padding: 56px 0; }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* Feature grid (image or text items) */
.features { display: grid; gap: 48px 32px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.feature img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); }
.feature p + p { margin-top: 12px; }

.features.text .feature { padding-top: 24px; border-top: 1px solid var(--ink); }

/* Numbered steps */
.steps { list-style: none; padding: 0; display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Image + text row */
.media-row { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .media-row { grid-template-columns: 1fr 1fr; gap: 64px; } }
.media-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.media-row h2 { margin-bottom: 20px; }
.media-row p { color: var(--muted); }
.media-row p + p { margin-top: 16px; }

/* Call-to-action band */
.cta-band {
  padding: 56px 24px;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
@media (min-width: 720px) { .cta-band { padding: 72px 48px; } }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 60ch; margin-inline: auto; color: #c5ced6; }
.cta-band .actions { justify-content: center; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: #e3f3fb; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

/* Contact */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h2 { margin-bottom: 12px; font-size: 1.25rem; }
.contact-card p, .contact-card address { color: var(--muted); font-style: normal; }
.contact-card ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.contact-card a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--accent-strong); }

/* ============ Footer ============ */
.site-footer {
  margin-top: 72px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-grid p { max-width: 36ch; }
.footer-grid h2 {
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.875rem; }

/* ============ Landing (index) ============ */
.landing { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 24px 20px; }

.landing-head { text-align: center; margin: 16px 0 32px; }
.landing-head img { height: 72px; width: auto; margin: 0 auto 16px; }
.landing-head p { color: var(--muted); }

.split { flex: 1; display: grid; gap: 16px; width: min(100%, 1280px); margin-inline: auto; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }

.split-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}
.split-panel img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.split-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 20, 30, .88) 0%, rgba(8, 20, 30, .4) 55%, rgba(8, 20, 30, .1) 100%);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .split-panel:hover img { transform: scale(1.04); }
}
.split-panel:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.split-panel:active { transform: scale(0.98); }

.split-body { display: block; padding: 32px; }
.split-body .eyebrow { color: #cfe9f7; }
.split-title {
  display: block;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
}
.split-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  font-weight: 500;
}
.split-panel:hover .split-cta { border-color: #fff; }

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(12px); }
}

@media (prefers-reduced-motion: no-preference) {
  .split-panel { animation: panel-enter 500ms var(--ease-out) backwards; }
  .split-panel:nth-child(2) { animation-delay: 80ms; }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes panel-fade { from { opacity: 0; } }
  .split-panel { animation: panel-fade 200ms var(--ease-out) backwards; }
}

/* ============ Motion preference ============ */
/* No global kill switch: reduced motion = gentler, not zero.
   Each animated feature drops its movement locally and keeps opacity/colour feedback. */
