/*
  Quick customisation
  - Change the values below to recolour the whole site.
  - Page-specific content is in the three .html files.
*/
:root {
  --bg: #09070f;
  --surface: #110d1c;
  --surface-raised: #171124;
  --text: #f5f1ff;
  --muted: #aaa1b9;
  --line: rgba(219, 194, 255, 0.14);
  --purple: #9d5cff;
  --purple-light: #c5a5ff;
  --purple-dim: rgba(157, 92, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 20px;
  --content: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 79% -8%, rgba(123, 65, 219, 0.18), transparent 31rem),
    radial-gradient(circle at 7% 76%, rgba(87, 41, 155, 0.11), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 1rem;
  z-index: 20;
  padding: .65rem .9rem;
  border-radius: 9px;
  background: var(--purple-light);
  color: #16062e;
  font-weight: 800;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 7, 15, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--content));
  min-height: 72px;
  margin: auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  font-weight: 800;
  letter-spacing: -.035em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(197, 165, 255, .43);
  border-radius: 10px;
  background: linear-gradient(135deg, #9d5cff, #512095);
  box-shadow: 0 0 28px rgba(157, 92, 255, .26);
  color: white;
  font-size: .8rem;
  letter-spacing: -.08em;
}

.nav { display: flex; align-items: center; gap: .2rem; }

.nav a {
  padding: .45rem .7rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 650;
  transition: color .2s, background .2s;
}

.nav a:hover,
.nav a[aria-current="page"] { background: var(--purple-dim); color: var(--text); }

.container { width: min(100% - 2rem, var(--content)); margin: auto; }

.hero { padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.4rem, 7vw, 6rem); }

.hero--split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--purple-light);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

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

h1 {
  max-width: 760px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.85rem, 7.1vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.07em;
}

h1 .accent { color: var(--purple-light); }

.lead { max-width: 630px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.14rem); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--purple);
  box-shadow: 0 9px 28px rgba(121, 59, 220, .26);
  color: white;
  font-size: .92rem;
  font-weight: 780;
  transition: transform .2s, background .2s, border-color .2s;
}

.button:hover { transform: translateY(-2px); background: #ad74ff; }

.button--secondary { border-color: var(--line); background: rgba(255, 255, 255, .025); box-shadow: none; color: var(--text); }
.button--secondary:hover { border-color: rgba(197, 165, 255, .35); background: var(--purple-dim); }

.portrait-wrap { position: relative; max-width: 410px; margin-inline: auto; }
.portrait-wrap::after {
  position: absolute;
  right: -8%; bottom: -8%; left: 10%;
  z-index: -1;
  height: 42%;
  border-radius: 50%;
  background: var(--purple);
  filter: blur(70px);
  content: "";
  opacity: .35;
}

.portrait {
  width: min(100%, 410px);
  aspect-ratio: 1;
  border: 1px solid rgba(220, 200, 255, .18);
  border-radius: 29px;
  object-fit: cover;
  box-shadow: var(--shadow);
  filter: saturate(.9) contrast(1.05);
}

.portrait-label {
  position: absolute;
  bottom: 1.15rem;
  left: -1rem;
  padding: .75rem .95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 13, 28, .92);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: .85rem;
  backdrop-filter: blur(12px);
}
.portrait-label strong { display: block; color: var(--text); font-size: .95rem; }

.section { padding: clamp(3.5rem, 7vw, 6.6rem) 0; }
.section--lined { border-top: 1px solid var(--line); }

.section-heading { max-width: 720px; margin-bottom: 2.15rem; }
.section-heading h2 { margin-bottom: .65rem; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.055em; line-height: 1.02; }
.section-heading p { margin: 0; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.fact {
  min-height: 115px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
}
.fact strong { display: block; margin-bottom: .35rem; color: var(--purple-light); font-size: 1.28rem; letter-spacing: -.04em; }
.fact span { color: var(--muted); font-size: .89rem; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 42px rgba(0,0,0,.13);
}

.work-card--wide { grid-column: span 2; }

.work-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: #050408;
  object-fit: contain;
}

.work-card__content { padding: 1.22rem 1.3rem 1.35rem; }
.work-card__content h2, .work-card__content h3 { margin-bottom: .38rem; font-size: 1.13rem; letter-spacing: -.03em; }
.work-card__content p { margin: 0; color: var(--muted); font-size: .93rem; }

.tag { display: inline-block; margin-bottom: .7rem; color: var(--purple-light); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.project-link {
  position: relative;
  min-height: 218px;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(142deg, rgba(157,92,255,.14), rgba(17,13,28,.86) 57%);
  transition: transform .2s, border-color .2s;
}
.project-link:hover { transform: translateY(-4px); border-color: rgba(197,165,255,.38); }
.project-link::after { position: absolute; right: 1.4rem; bottom: 1.1rem; color: var(--purple-light); content: "↗"; font-size: 1.55rem; }
.project-link h3 { margin-bottom: .5rem; font-size: 1.48rem; letter-spacing: -.045em; }
.project-link p { max-width: 370px; margin: 0; color: var(--muted); }

.payment-layout { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; gap: 1.2rem; }
.panel { padding: clamp(1.35rem, 3vw, 2.1rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel--accent { background: linear-gradient(150deg, rgba(157,92,255,.18), var(--surface) 44%); }
.panel h2 { margin-bottom: .75rem; font-size: 1.42rem; letter-spacing: -.04em; }
.panel p { color: var(--muted); }
.payment-line { padding: 1rem 0; border-top: 1px solid var(--line); }
.payment-line:first-of-type { border-top: 0; }
.payment-line strong { display: block; margin-bottom: .2rem; font-size: 1rem; }
.payment-line span { color: var(--muted); font-size: .92rem; }

.terms { display: grid; gap: .82rem; margin: 1.15rem 0 0; padding: 0; list-style: none; }
.terms li { position: relative; padding-left: 1.35rem; color: var(--muted); font-size: .94rem; }
.terms li::before { position: absolute; top: .5rem; left: 0; width: .42rem; height: .42rem; border-radius: 50%; background: var(--purple); box-shadow: 0 0 12px var(--purple); content: ""; }

.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.2rem; align-items: start; }
.about-copy { padding: clamp(1.35rem, 3vw, 2.1rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.018); }
.about-copy p { color: var(--muted); font-size: 1.02rem; }
.about-copy p:last-child { margin-bottom: 0; }

.cta { text-align: center; }
.cta .lead { margin-inline: auto; }
.cta .actions { justify-content: center; }

.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); color: #837b90; font-size: .86rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }
.footer-inner a:hover { color: var(--purple-light); }

@media (max-width: 760px) {
  .header-inner { min-height: 66px; }
  .brand { font-size: .94rem; }
  .nav a { padding: .42rem .48rem; font-size: .83rem; }
  .hero--split, .payment-layout, .about-grid { grid-template-columns: 1fr; }
  .hero--split { padding-top: 4rem; }
  .portrait-wrap { order: -1; width: min(77vw, 350px); }
  .portrait-label { left: -.55rem; }
  .facts, .work-grid, .link-grid { grid-template-columns: 1fr; }
  .work-card--wide { grid-column: auto; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 430px) {
  .header-inner { width: min(100% - 1rem, var(--content)); }
  .container { width: min(100% - 1rem, var(--content)); }
  .brand-mark { width: 28px; height: 28px; }
  .nav { gap: 0; }
  .nav a { padding: .4rem .34rem; font-size: .77rem; }
}
