/* copony.io, "Midnight Violet" design from copony.pen: home, contact, legal, privacy, 404. */
@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #05060e;
  --text: #ededed;
  --title: #f5f5f7;
  --muted: #b6b2c6;
  --intro: #a1a1a1;
  --label: #b4adbf;
  --caption: #a6a0bc;
  --foot: #b4b0bf;
  --line: #29272f;
  --card-line: #2b2b31;
  --card-bg: #131315;
  --red: #ff331f;
  --eyebrow: #a49cb9;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --pad: max(clamp(24px, 8.333vw, 120px), calc((100vw - var(--max)) / 2));
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.br-phone { display: none; }
.dot { color: var(--red); }
.sep { white-space: pre; }
.arrow { width: 15px; height: 15px; flex: none; }

canvas.art { display: block; opacity: 0; transition: opacity 400ms ease; }
canvas.art.is-drawn { opacity: 1; }

/* header */
.site-header { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 104px; display: flex; align-items: center; padding: 0 var(--pad); }
.logo { display: inline-flex; color: #fff; }
.logo-svg { width: 189px; height: 36px; }

/* buttons */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 18px 28px; border-radius: 100px; background: var(--text); color: #111; font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; transition: background-color 180ms ease, transform 180ms ease; }
.pill:hover, .pill:focus-visible { background: #fff; transform: translateY(-1px); }
.more { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--text); }
.more .arrow { width: 16px; height: 16px; transition: transform 180ms ease; }
.more:hover .arrow, .more:focus-visible .arrow { transform: translate(2px, -2px); }

/* hero */
.hero { position: relative; overflow: hidden; height: 748px; background: var(--bg); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade { display: none; }
.hero-copy { position: relative; z-index: 1; padding: 216px var(--pad) 0; }
.hero h1 { font-weight: 500; font-size: clamp(48px, 6.12vw, 88px); line-height: 1; letter-spacing: -0.04em; margin: 0 0 32px; color: var(--text); }
.hero-intro { max-width: 620px; font-size: 22px; line-height: 1.45; color: var(--intro); margin: 0 0 32px; }

/* perspective */
.perspective { display: flex; align-items: center; gap: clamp(48px, 8.9vw, 128px); padding: 112px var(--pad) 96px; }
.portrait { flex: none; width: 360px; margin: 0; }
.portrait img { width: 360px; height: 360px; object-fit: cover; border-radius: 24px; filter: grayscale(1); }
.portrait figcaption { margin-top: 16px; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.4px; color: var(--caption); }
.perspective-copy { flex: 1; min-width: 0; }
.perspective h2 { font-weight: 600; font-size: clamp(36px, 3.34vw, 48px); line-height: 1.08; letter-spacing: -0.031em; margin: 0 0 32px; }
.perspective p { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 20px; max-width: 700px; }
.perspective p:last-of-type { margin-bottom: 32px; }

/* services */
.services { padding: 80px var(--pad) 96px; }
.group + .group { margin-top: 128px; }
.group-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 48px; }
.group-head .label { font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.4px; color: var(--label); margin: 0 0 16px; }
.group-head h2 { font-weight: 500; font-size: clamp(36px, 4.17vw, 60px); line-height: 1.08; letter-spacing: -0.033em; margin: 0 0 24px; }
.group-head p:not(.label) { max-width: 760px; font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card { position: relative; overflow: hidden; height: 560px; padding: 32px; border: 1px solid var(--card-line); border-radius: 16px; background: var(--card-bg); isolation: isolate; }
.card .art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.card h3 { min-height: 2.3em; display: flex; align-items: flex-end; font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -0.023em; color: var(--title); margin: 0 0 12px; }
.card p { font-size: 20px; line-height: 1.45; color: var(--muted); margin: 0; }

/* closing and footer share the glitter aura */
.closing-wrap { position: relative; overflow: hidden; isolation: isolate; }
.aura { position: absolute; z-index: 0; left: 50%; top: var(--aura-top, 527px); width: 1740px; height: 1120px; margin-left: -870px; border-radius: 50%; pointer-events: none; }
.closing, .site-footer > * { position: relative; z-index: 1; }
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; padding: 128px var(--pad) 96px; }
.closing h2 { font-weight: 500; font-size: clamp(39px, 4.45vw, 64px); line-height: 1.08; letter-spacing: -0.036em; margin: 0; }
.closing-art { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.closing-art.is-drawn { opacity: 0.35; }
.closing p { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0; }

.site-footer { background: radial-gradient(ellipse 70% 100% at 50% 115%, #281010 0%, #14090f 45%, #05060e 100%); }
.wordmark-band { display: flex; align-items: center; justify-content: center; height: 300px; padding: 64px var(--pad); }
.wordmark { width: 720px; max-width: 100%; height: auto; }
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; min-height: 104px; padding: 32px var(--pad); border-top: 1px solid var(--line); font-weight: 500; line-height: 1.4; color: var(--foot); }
.colophon > span:first-child { font-size: 12px; letter-spacing: 0.4px; }
.colophon .legal { font-size: 14px; }
.colophon a { text-decoration: none; }
.colophon a:hover, .colophon a:focus-visible { color: var(--text); }

/* subpages: header, document pages, contact */
/* footer sits at the bottom of the viewport when the content is short */
body.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.page > main { flex: 1 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; height: 104px; padding: 0 var(--pad); background: var(--bg); }
.back { font-size: 13px; font-weight: 500; color: var(--foot); text-decoration: none; }
.back:hover, .back:focus-visible { color: var(--text); }
.eyebrow { margin: 0; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 1.8px; text-transform: uppercase; color: var(--eyebrow); }
.doc-intro { display: flex; flex-direction: column; gap: 20px; padding: 88px var(--pad) 64px; }
.page h1 { margin: 0; font-weight: 500; font-size: 72px; line-height: 1.08; letter-spacing: -2.3px; color: var(--text); }
.doc-intro .sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.doc { padding: 0 var(--pad) 96px; }
.doc article { display: flex; flex-direction: column; gap: 32px; max-width: 800px; }
.doc section { display: flex; flex-direction: column; gap: 8px; }
.doc h2 { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--text); }
.doc p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); }
.doc strong { font-weight: 500; color: var(--text); }
.doc a { color: var(--text); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(237, 237, 237, 0.35); transition: border-color 180ms ease; }
.doc a:hover, .doc a:focus-visible { border-bottom-color: var(--text); }
.doc p.link { font-size: 16px; line-height: 1.7; }

.contact { display: flex; gap: 96px; padding: 88px var(--pad) 96px; }
.contact-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact .intro { max-width: 640px; margin: 0; font-size: 20px; line-height: 1.55; color: var(--muted); }
.channels { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 16px; }
.email-link { display: inline-flex; align-items: center; gap: 14px; font-size: 36px; font-weight: 500; line-height: 1.2; letter-spacing: -0.7px; color: var(--text); text-decoration: none; }
.email-link .arrow { width: 24px; height: 24px; transition: transform 180ms ease; }
.email-link:hover .arrow, .email-link:focus-visible .arrow { transform: translate(3px, -3px); }
.phone { font-size: 18px; line-height: 1.5; color: var(--muted); text-decoration: none; }
.phone:hover, .phone:focus-visible { color: var(--text); }
.contact-side { flex: none; width: 360px; display: flex; flex-direction: column; gap: 40px; padding-top: 40px; }
.identity { display: flex; align-items: center; gap: 16px; margin: 0; }
.identity img { width: 104px; height: 104px; object-fit: cover; border-radius: 12px; filter: grayscale(1); }
.identity figcaption { font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--caption); }
.note { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.starters { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.starters h2 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.3; }
.starters ol { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.starters li { display: flex; gap: 16px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.starters .num { flex: none; font-size: 12px; line-height: 2; color: var(--eyebrow); }
.starters .small { margin: 0; font-size: 14px; color: var(--eyebrow); }

@media (prefers-reduced-motion: reduce) {
  canvas.art, .pill, .more .arrow, .email-link .arrow, .doc a { transition: none; }
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perspective { gap: 56px; }
  .portrait, .portrait img { width: 280px; height: auto; }
  .portrait img { height: 280px; }
  .contact { gap: 56px; }
  .contact-side { width: 300px; }
}

@media (max-width: 700px) {
  .br-phone { display: inline; }
  .site-header { height: 88px; padding: 0 24px; }
  .logo-svg { width: 142px; height: 27px; }

  .hero { height: 770px; }
  .hero-art { inset: auto; left: -400px; top: -80px; width: 900px; height: 930px; }
  .hero-fade { display: block; position: absolute; inset: 0; background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0, rgba(0, 0, 0, 0.7) 72px, rgba(0, 0, 0, 0) 240px),
    linear-gradient(to bottom, rgba(5, 6, 14, 0.31) 0%, rgba(5, 6, 14, 0.52) 35%, rgba(5, 6, 14, 0.33) 62%, rgba(5, 6, 14, 0.13) 82%, #05060e 100%); }
  .hero-copy { padding: 112px 24px 40px; }
  .hero h1 { font-size: 48px; line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 28px; }
  .hero h1 br:not(.br-phone) { display: inline; }
  .hero-intro { font-size: 17px; line-height: 1.55; color: var(--muted); margin-bottom: 28px; }
  .pill { padding: 17px 26px; gap: 14px; }

  .perspective { flex-direction: column; align-items: stretch; gap: 36px; padding: 64px 24px; }
  .portrait { display: flex; align-items: center; gap: 16px; width: auto; }
  .portrait img { width: 104px; height: 104px; border-radius: 12px; }
  .portrait figcaption { margin: 0; font-size: 13px; letter-spacing: 0; }
  .portrait .sep { display: block; height: 0; overflow: hidden; }
  .perspective h2 { font-size: 36px; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
  .perspective p { font-size: 18px; }
  .perspective p:last-of-type { margin-bottom: 24px; }

  .services { padding: 48px 24px 64px; }
  .group + .group { margin-top: 80px; }
  .group-head { margin-bottom: 32px; }
  .group-head h2 { font-size: 36px; letter-spacing: -0.033em; }
  .group-head p:not(.label) { font-size: 18px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .card { height: 520px; padding: 24px; }
  .card h3 { font-size: 28px; letter-spacing: -0.021em; }

  .aura { display: none; }
  .closing { position: relative; gap: 28px; padding: 80px 24px 72px; }
  .closing h2 { font-size: 39px; letter-spacing: -0.036em; }
  .closing p { font-size: 18px; }
  .closing-art { display: block; }

  .wordmark-band { height: 180px; padding: 48px 24px; }
  .wordmark { width: 300px; }
  .colophon { padding: 32px 24px; }

  .page-header { height: 88px; padding: 0 24px; }
  .doc-intro { padding: 48px 24px; }
  .page h1 { font-size: 44px; letter-spacing: -1.5px; }
  .doc { padding: 0 24px 64px; }
  .doc h2 { font-size: 20px; }
  .doc p { font-size: 16px; }

  .contact { flex-direction: column; gap: 48px; padding: 48px 24px 64px; }
  .contact-main { gap: 24px; }
  .contact h1 { font-size: 48px; letter-spacing: -1.6px; }
  .contact .intro { font-size: 17px; }
  .channels { gap: 16px; padding-top: 8px; }
  .email-link { font-size: 28px; letter-spacing: -0.6px; gap: 10px; }
  .email-link .arrow { width: 20px; height: 20px; }
  .phone { font-size: 16px; }
  .contact-side { width: auto; gap: 24px; padding-top: 0; }
  .note { font-size: 16px; }
  .starters { gap: 16px; padding-top: 24px; }
  .starters ol { gap: 16px; }
}
