/* ==========================================================================
   AnVerse — anverse.media
   Seal palette + IBM Plex system. Dark-first.
   Change a colour here and it changes everywhere.
   ========================================================================== */

:root {
  /* Palette — Seal */
  --ink:        #16110E;  /* base background, shadow */
  --sunken:     #0F0B09;  /* sunken surface */
  --support:    #2A1A17;  /* borders, dividers, support surface */
  --faint:      #4A3B36;  /* faint borders and dividers only */
  --secondary:  #8A7A72;  /* secondary text */
  --seal:       #C6362C;  /* vermillion, solid fills */
  --seal-lt:    #D6553E;  /* vermillion, accent on dark */
  --light:      #F2ECE1;  /* primary text, light surfaces */

  /* Type */
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --wrap: 1160px;
  --gutter: 24px;
  --section-y: clamp(72px, 9vw, 120px);
  --header-h: 64px;
}

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

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--light);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Anchors land below the sticky header instead of under it */
section[id] { scroll-margin-top: var(--header-h); }

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

a { color: var(--seal-lt); }
a:hover { color: var(--seal); }

h1, h2, h3, p { margin: 0; }

/* --------------------------------------------------------------------------
   Shared blocks
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--sunken { background: var(--sunken); }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--seal-lt);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--light);
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-title--wide { max-width: 780px; margin-bottom: clamp(48px, 7vw, 72px); }

.body-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--secondary);
}

.wordmark { font-weight: 500; color: var(--light); }
.wordmark span { color: var(--seal-lt); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--seal);
  color: var(--light);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 4px;
  text-decoration: none;
  min-height: 44px;
}
.btn:hover { background: var(--seal-lt); color: var(--light); }
.btn--lg { font-size: 17px; padding: 18px 40px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--faint);
  color: var(--light);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-ghost:hover { border-color: var(--seal); color: var(--seal-lt); }

.link-underline {
  font-size: 16px;
  font-weight: 500;
  color: var(--light);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 2px;
}
.link-underline:hover { color: var(--light); border-bottom-color: var(--seal); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(22, 17, 14, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--support);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 17px;
}
.brand svg { width: 32px; height: 32px; }

.site-nav { display: none; gap: 32px; }
.site-nav a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
}
.site-nav a:hover { color: var(--light); }

@media (min-width: 760px) {
  .site-nav { display: flex; align-items: center; }
}

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

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(72px, 12vh, 140px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 70%;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(214, 85, 62, 0.14), transparent 70%);
  pointer-events: none;
}

.hero .wrap { position: relative; max-width: 940px; }

.hero h1 {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero h1 .dim { color: var(--secondary); }

.hero .lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--light);
  max-width: 560px;
  margin-bottom: 44px;
}

.hero .actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust {
  border-top: 1px solid var(--support);
  border-bottom: 1px solid var(--support);
  padding-block: 40px;
}

.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--secondary);
}

.trust li:not(:last-child)::after {
  content: "·";
  color: var(--faint);
  margin-left: 12px;
}

/* --------------------------------------------------------------------------
   Problem
   -------------------------------------------------------------------------- */

.symptoms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--support);
}

.symptom {
  background: var(--sunken);
  padding: 28px 0;
}

.symptom .num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 16px;
}

.symptom h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--light);
  margin-bottom: 12px;
}

.symptom p { max-width: 340px; }

@media (min-width: 760px) {
  .symptoms { grid-template-columns: repeat(3, 1fr); }
  .symptom { padding: 0 32px; }
  .symptom:first-child { padding-left: 0; }
  .symptom:last-child { padding-right: 0; }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--support);
  border: 1px solid var(--support);
}

.service {
  background: var(--ink);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}

.service .icon {
  position: absolute;
  top: clamp(28px, 4vw, 44px);
  right: clamp(28px, 4vw, 44px);
  width: 36px;
  height: 36px;
}

.service h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--light);
  margin-bottom: 12px;
  padding-right: 52px;
}

.service p { max-width: 440px; }

@media (min-width: 860px) {
  .services { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Cases
   -------------------------------------------------------------------------- */

.cases { display: flex; flex-direction: column; gap: 24px; }

.case {
  border: 1px solid var(--support);
  border-radius: 12px;
  background: var(--sunken);
  padding: clamp(24px, 4vw, 40px);
}

.case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.case-name {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  color: var(--light);
}

.case-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case p {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 36px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  border-top: 1px solid var(--support);
  padding-top: 24px;
}

.metric .val {
  font-family: var(--mono);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--light);
}

/* The headline figure always carries the vermillion */
.metric .val em { color: var(--seal-lt); font-style: normal; }

.metric .lbl {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

@media (min-width: 720px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   Approach
   -------------------------------------------------------------------------- */

.approach-body { max-width: 720px; }

.approach-body .lead {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.55;
  color: var(--light);
  margin-bottom: 28px;
}
.approach-body .lead em { color: var(--seal-lt); font-style: normal; }

/* --------------------------------------------------------------------------
   Fit
   -------------------------------------------------------------------------- */

.fit {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
}

.fit h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--light);
  margin-bottom: 20px;
}

.fit ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fit li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 16px;
  line-height: 1.55;
  color: var(--secondary);
}

.fit li::before {
  content: "—";
  font-family: var(--mono);
  font-size: 14px;
}

.fit--yes li::before { color: var(--seal-lt); }
.fit--no  li::before { color: var(--faint); }

@media (min-width: 860px) {
  .fit { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Profile
   -------------------------------------------------------------------------- */

.profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.profile .portrait {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  background: var(--support);
  border-radius: 12px;
  object-fit: cover;
}

.profile .name {
  font-size: 24px;
  font-weight: 500;
  color: var(--light);
  margin-bottom: 6px;
}

.profile .role {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.profile p {
  max-width: 560px;
  margin-bottom: clamp(32px, 4vw, 44px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 480px;
}

.stats .val {
  font-family: var(--mono);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--seal-lt);
  line-height: 1.2;
}

.stats .lbl {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

@media (min-width: 860px) {
  .profile { grid-template-columns: minmax(0, 400px) 1fr; }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: 720px; }

.faq-item {
  border-top: 1px solid var(--support);
  padding-block: clamp(24px, 3.5vw, 32px);
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--light);
  margin-bottom: 12px;
}

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

.contact .wrap {
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .isotype { width: 56px; height: 56px; margin-bottom: 32px; }

.contact h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--light);
}
.contact h2 span { color: var(--seal-lt); }

.contact p { max-width: 480px; margin-bottom: 40px; }

.contact .alt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--secondary);
  text-decoration: none;
  margin-top: 20px;
}
.contact .alt:hover { color: var(--light); }

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

.site-footer {
  background: var(--sunken);
  border-top: 1px solid var(--support);
  padding-block: 48px 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer .wordmark { font-size: 18px; margin-bottom: 8px; }

.footer-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.footer-links a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { color: var(--light); }

.footer-legal {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  border-top: 1px solid var(--support);
  padding-top: 20px;
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--seal-lt);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
