:root {
  color-scheme: dark;
  --void: #05060b;
  --night: #090b13;
  --ink: #f4f0e7;
  --muted: #a9abb4;
  --cold: #b8c8dc;
  --rose: #bd96aa;
  --warm: #e6c89e;
  --line: rgba(225, 229, 238, 0.16);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  color: var(--ink);
  background: var(--void);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--void);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: var(--void); background: var(--warm); }

.profile-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--void);
  background: var(--ink);
  font: 600 0.72rem var(--sans);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.profile-skip:focus { transform: translateY(0); }

.profile-stars,
.profile-atmosphere,
.profile-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.profile-stars { z-index: 0; opacity: 0.94; }

.profile-atmosphere {
  z-index: 1;
  background:
    radial-gradient(ellipse 54% 48% at 76% 19%, rgba(117, 92, 109, 0.13), transparent 72%),
    linear-gradient(125deg, rgba(48, 61, 91, 0.11), transparent 42%);
}

.profile-grain {
  z-index: 30;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.profile-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 32px 12px;
  border-bottom: 1px solid rgba(225, 229, 238, 0.08);
  background: rgba(5, 6, 11, 0.97);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.profile-brand img { width: 32px; height: 32px; opacity: 0.92; }

.profile-header nav { display: flex; gap: 24px; }

.profile-header nav a,
.profile-footer a {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(244, 240, 231, 0.24);
  font: 500 0.68rem var(--mono);
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.profile-header nav a:hover,
.profile-header nav a:focus-visible,
.profile-footer a:hover,
.profile-footer a:focus-visible {
  color: var(--warm);
  border-color: var(--warm);
}

main,
.profile-footer { position: relative; z-index: 4; }

.origin-hero {
  position: relative;
  display: grid;
  min-height: min(820px, 86svh);
  align-items: end;
  padding: 112px 6vw 50px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.origin-portrait {
  --portrait-x: 0px;
  --portrait-y: 0px;
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0.86;
  transform: translate3d(var(--portrait-x), var(--portrait-y), 0) scale(1.035);
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 77%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 77%, transparent 100%);
}

.origin-portrait::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 11, 0.72) 0%, rgba(5, 6, 11, 0.44) 33%, rgba(5, 6, 11, 0.08) 69%, rgba(5, 6, 11, 0.2) 100%),
    linear-gradient(to top, rgba(5, 6, 11, 0.68), transparent 48%);
  content: "";
}

.origin-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.78) contrast(1.05) brightness(0.92);
}

.origin-orbit {
  position: absolute;
  z-index: 2;
  top: 18%;
  right: 10%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(218, 225, 238, 0.11);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-18deg);
}

.origin-orbit::before,
.origin-orbit::after {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(218, 225, 238, 0.08);
  border-radius: 50%;
  content: "";
  transform: rotate(42deg) scaleX(1.42);
}

.origin-orbit::after { inset: 28%; transform: rotate(-28deg) scaleX(1.82); }

.origin-orbit i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff5df;
  box-shadow: 0 0 16px rgba(230, 200, 158, 0.8);
}

.origin-orbit i:nth-child(1) { top: 14%; left: 21%; }
.origin-orbit i:nth-child(2) { top: 56%; right: -1px; }
.origin-orbit i:nth-child(3) { bottom: 7%; left: 34%; }

.origin-copy {
  position: relative;
  z-index: 5;
  width: min(770px, 59%);
}

.profile-kicker {
  margin: 0 0 19px;
  color: rgba(220, 226, 237, 0.54);
  font: 500 0.68rem/1.5 var(--mono);
  text-transform: uppercase;
}

.origin-copy h1 {
  margin: 0;
  font: 400 6.7rem/0.82 var(--serif);
}

.origin-copy h1 span,
.origin-copy h1 em { display: block; }

.origin-copy h1 em {
  margin-top: 16px;
  color: rgba(244, 240, 231, 0.78);
  font-size: 0.7em;
  font-weight: 400;
}

.origin-role {
  margin: 34px 0 0;
  color: var(--warm);
  font: 400 1.65rem/1.2 var(--serif);
}

.origin-statement {
  max-width: 600px;
  margin: 18px 0 0;
  color: rgba(232, 232, 233, 0.71);
  font-size: 0.94rem;
  line-height: 1.7;
}

.origin-purpose {
  margin: 19px 0 0;
  color: rgba(244, 240, 231, 0.88);
  font: 400 1.08rem/1.4 var(--serif);
}

.text-link,
.signal-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--warm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.text-link span,
.signal-link span { color: var(--warm); }

.origin-note {
  position: absolute;
  z-index: 5;
  right: 32px;
  bottom: 72px;
  margin: 0;
  color: rgba(220, 226, 237, 0.45);
  font: 400 0.63rem var(--mono);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.practice,
.built-here {
  padding: 88px 6vw;
  background: rgba(6, 7, 12, 0.89);
  border-bottom: 1px solid var(--line);
}

.practice {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(540px, 1.2fr);
  gap: 8vw;
}

.section-lead { max-width: 580px; }

.section-lead h2,
.credibility-heading h2,
.profile-contact h2 {
  margin: 0;
  font: 400 4.25rem/0.96 var(--serif);
  text-wrap: balance;
}

.section-lead > p:last-child {
  max-width: 490px;
  margin: 24px 0 0;
  color: rgba(225, 226, 230, 0.62);
  font-size: 0.9rem;
  line-height: 1.7;
}

.practice-lines { align-self: end; }

.practice-lines article {
  display: grid;
  grid-template-columns: 40px 150px 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}

.practice-lines article:last-child { border-bottom: 1px solid var(--line); }

.practice-lines span {
  color: var(--rose);
  font: 500 0.63rem var(--mono);
}

.practice-lines h3 {
  margin: 0;
  font: 400 1.7rem var(--serif);
}

.practice-lines p {
  margin: 0;
  color: rgba(225, 226, 230, 0.6);
  font-size: 0.78rem;
  line-height: 1.6;
}

.credibility {
  position: relative;
  padding: 90px 6vw 82px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 70% at 12% 50%, rgba(120, 83, 103, 0.1), transparent 72%),
    rgba(8, 9, 15, 0.92);
  border-bottom: 1px solid var(--line);
}

.credibility-heading { width: min(760px, 74%); }
.credibility-heading h2 { font-size: 3.7rem; }

.brand-constellation {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 34px;
  align-items: center;
  margin-top: 50px;
}

.brand-constellation img {
  width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.35) contrast(0.82);
  opacity: 0.64;
  transition: filter 300ms ease, opacity 300ms ease, transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-constellation img:hover {
  filter: grayscale(0.15) brightness(1.05);
  opacity: 0.95;
  transform: translateY(-4px);
}

.built-here {
  display: grid;
  grid-template-columns: minmax(270px, 0.65fr) minmax(560px, 1.35fr);
  gap: 8vw;
}

.section-lead.compact h2 { font-size: 3.65rem; }

.project-signals { border-top: 1px solid var(--line); }

.project-signals a {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  transition: color 200ms ease, padding 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-signals a:hover,
.project-signals a:focus-visible {
  padding-right: 8px;
  padding-left: 8px;
  color: var(--warm);
}

.project-signals span {
  color: rgba(220, 226, 237, 0.5);
  font: 400 0.6rem var(--mono);
  text-transform: uppercase;
}

.project-signals strong { font: 400 1.55rem var(--serif); }
.project-signals i { color: var(--warm); font-style: normal; }

.profile-contact {
  display: grid;
  min-height: 50svh;
  place-items: center;
  padding: 78px 6vw;
  text-align: center;
  background: radial-gradient(circle at 50% 55%, rgba(119, 95, 116, 0.11), transparent 42%);
}

.profile-contact > div { width: min(900px, 100%); }
.profile-contact h2 { font-size: 5.2rem; }
.signal-link { margin-top: 38px; }

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: rgba(220, 226, 237, 0.52);
  font: 400 0.6rem var(--mono);
  text-transform: uppercase;
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.has-js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1020px) {
  .origin-copy h1 { font-size: 5.5rem; }
  .origin-copy { width: 66%; }
  .origin-portrait { width: 100%; opacity: 0.8; }
  .practice,
  .built-here { grid-template-columns: 1fr; gap: 70px; }
  .brand-constellation { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
}

@media (max-width: 720px) {
  .profile-header { padding: max(13px, env(safe-area-inset-top)) 16px 10px; }
  .profile-brand { gap: 9px; font-size: 0.67rem; }
  .profile-brand img { width: 28px; height: 28px; }
  .profile-header nav { gap: 14px; }
  .profile-header nav a { font-size: 0.62rem; }
  .profile-header nav a:first-child { display: none; }
  .origin-hero {
    min-height: 840px;
    align-items: end;
    padding: 320px 20px 48px;
  }
  .origin-portrait {
    top: 38px;
    right: auto;
    bottom: auto;
    left: -42%;
    width: 178%;
    height: 52%;
    opacity: 0.82;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 97%);
    mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 97%);
  }
  .origin-portrait::after {
    background:
      linear-gradient(90deg, rgba(5, 6, 11, 0.23), transparent 48%),
      linear-gradient(to top, rgba(5, 6, 11, 0.8), transparent 48%);
  }
  .origin-portrait img { object-position: 64% center; }
  .origin-orbit { top: 15%; right: -30%; width: 330px; height: 330px; }
  .origin-copy { width: 100%; }
  .profile-kicker { margin-bottom: 13px; font-size: 0.63rem; }
  .origin-copy h1 { font-size: 4rem; line-height: 0.85; }
  .origin-copy h1 em { margin-top: 12px; }
  .origin-role { margin-top: 22px; font-size: 1.4rem; }
  .origin-statement { font-size: 0.84rem; line-height: 1.65; }
  .origin-purpose { font-size: 1rem; }
  .origin-note { display: none; }
  .practice,
  .built-here,
  .credibility { padding: 62px 20px; }
  .practice,
  .built-here { gap: 52px; }
  .section-lead h2,
  .credibility-heading h2 { font-size: 3rem; }
  .credibility-heading { width: 100%; }
  .practice-lines article {
    grid-template-columns: 32px 1fr;
    gap: 8px 16px;
    padding: 18px 0;
  }
  .practice-lines p { grid-column: 2; }
  .brand-constellation {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 34px 28px;
    margin-top: 42px;
  }
  .brand-constellation img { max-height: 55px; }
  .section-lead.compact h2 { font-size: 3rem; }
  .project-signals a { grid-template-columns: 1fr auto; gap: 5px 16px; }
  .project-signals span { grid-column: 1 / -1; }
  .profile-contact { min-height: 0; padding: 76px 20px; }
  .profile-contact h2 { font-size: 3.7rem; }
  .profile-footer { align-items: flex-start; gap: 24px; padding: 24px 20px max(24px, env(safe-area-inset-bottom)); }
}

@media (max-height: 720px) and (min-width: 721px) {
  .origin-hero { padding-top: 106px; padding-bottom: 44px; }
  .origin-copy h1 { font-size: 5.6rem; }
  .origin-role { margin-top: 22px; }
  .origin-statement { max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
}
