/* ---------------------------------------------------------------
   danmocan.com — self-contained. No external requests at runtime.
   Archivo is a variable font: one file covers 400–600.
   --------------------------------------------------------------- */

@font-face {
  font-family: Archivo;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/plexmono-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:    #F7F5F2;
  --ink:      #14121A;
  --body:     #4A4753;
  --muted:    #6B6775;
  --faint:    #6F6B7A;   /* darkened from #9A96A3 to clear AA at 12px */
  --hairline: #E3DFD9;
  --accent:   #4C2C86;
  --accent-d: #2C1758;
  --field-1:  #7A55B4;
  --field-2:  #4C2C86;
  --field-3:  #271545;

  --maxw:   1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-d); }

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

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

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 400;
}

.label {
  margin: 0 0 clamp(28px, 3vw, 40px);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--muted);
}

/* --- hero ----------------------------------------------------- */

.hero {
  background:
    radial-gradient(78% 62% at 76% 34%,
      var(--field-1) 0%, var(--field-2) 42%, var(--field-3) 100%),
    var(--field-3);
  overflow: hidden;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: clamp(64px, 7vw, 88px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.wordmark { font-size: 13px; letter-spacing: .18em; color: #FFF; }

.role {
  font-size: 11.5px;
  letter-spacing: .18em;
  text-align: right;
  color: rgba(255, 255, 255, .62);
}

/* `wrap-reverse` puts the photo ABOVE the text once the row wraps
   (~<820px) with no media query. It also inverts the cross axis, so
   `flex-start` here is what visually bottom-aligns the photo. */
.hero-grid {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(760px, 78svh);
}

.hero-text {
  flex: 1 1 420px;
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
}

h1 {
  margin: 0;
  color: #FFF;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -.038em;
  line-height: .97;
  text-wrap: balance;
}

.subline {
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  max-width: 44ch;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.62;
  color: rgba(255, 255, 255, .74);
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

.hero-email {
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .5);
}

.hero-photo {
  flex: 1 1 340px;
  align-self: flex-start;   /* = visual bottom under wrap-reverse */
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: min(720px, 74svh);
  object-fit: cover;
  object-position: 50% 12%;

  /* The shot's own backdrop is close to the field but not identical, so a
     hard edge reads as a pasted box — worst once the row wraps and all
     four sides sit against the field. Dissolve top and sides; the bottom
     stays hard so the subject still stands on the edge of the field.
     Side fades stop at 10% and the top at 6% — the subject starts at ~22%
     in and his hair at ~8% down, so nothing of him is touched. */
  --fade-side: 10%;
  --fade-top: 6%;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 var(--fade-side)),
    linear-gradient(to left,   transparent 0, #000 var(--fade-side)),
    linear-gradient(to bottom, transparent 0, #000 var(--fade-top));
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0, #000 var(--fade-side)),
    linear-gradient(to left,   transparent 0, #000 var(--fade-side)),
    linear-gradient(to bottom, transparent 0, #000 var(--fade-top));
  mask-composite: intersect;
}

/* --- buttons -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease, color .16s ease;
}

.arrow { font-size: 14px; }

.btn-light { background: #FFF; color: #22103F; }
.btn-light:hover { background: #EFE9FA; color: #22103F; transform: translateY(-1px); }

.btn-accent { background: var(--accent); color: #FFF; }
.btn-accent:hover { background: var(--accent-d); color: #FFF; transform: translateY(-1px); }

/* --- track record --------------------------------------------- */

.record { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 4vw, 56px); }

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 3.4vw, 48px);
  align-items: start;
}

.figure {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.fig-num {
  margin: 0;
  font-size: clamp(3rem, 4.6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
}
.fig-num.accent { color: var(--accent); }

.fig-cap {
  margin: 10px 0 0;
  max-width: 24ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  text-wrap: pretty;
}

.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: clamp(32px, 3.4vw, 44px) 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}

/* Verifiable credential: linked out to its issuer rather than embedded,
   so the page keeps its no-third-party-requests guarantee. */
.creds a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color .16s ease, border-color .16s ease;
}
.creds a:hover,
.creds a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}
.cred-verify { letter-spacing: 0; }

/* --- services ------------------------------------------------- */

.services { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(64px, 7vw, 104px); }

.services .label { margin-bottom: clamp(20px, 2.4vw, 28px); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 clamp(28px, 4vw, 64px);
}

.service {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 8px;
  align-items: baseline;
  padding: clamp(22px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--hairline);
}

.idx { font-size: 12px; letter-spacing: .1em; color: var(--faint); }

.service h3 {
  margin: 0;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.service p {
  margin: 8px 0 0;
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}

.closer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--ink);
}

.closer p {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.25;
  text-wrap: balance;
}

/* --- footer --------------------------------------------------- */

footer { border-top: 1px solid var(--hairline); }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 26px;
  padding-bottom: 40px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}

.footer-row a { color: var(--muted); text-decoration: none; }
.footer-row a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
