﻿:root {
  color-scheme: dark;
  font-family: Manrope, system-ui, sans-serif;
  background: #101b17;
  color: #f4ede1;
  --gold: #dfbf8d;
  --muted: #bac7bb;
  --rule: #dfbf8d3d;
  --serif: "Instrument Serif", Georgia, serif;
  --pine-light: 47 75 61;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 85% 18%, rgb(var(--pine-light) / 0.65), transparent 68%);
}

.ambient-grid, .ambient-glow { position: absolute; }

.ambient-grid {
  inset: 0;
  background-image:
    linear-gradient(to bottom, #dfbf8d15 1px, transparent 1px),
    linear-gradient(to right, #dfbf8d15 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 54% 41%, #000, transparent 76%);
}

.ambient-glow {
  top: 0;
  left: 0;
  width: min(19rem, 85vw);
  aspect-ratio: 1;
  transform: translate3d(50vw, 40vh, 0) translate(-50%, -50%);
  background: radial-gradient(circle, rgb(var(--pine-light) / 0.42), rgb(var(--pine-light) / 0) 70%);
}

@media (any-hover: hover) and (prefers-reduced-motion: no-preference) {
  .ambient-glow { will-change: transform; }
}

.page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - clamp(2.5rem, 10vw, 10rem), 76rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
}

.header, .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.header { border-bottom: 1px solid var(--rule); }
.footer { border-top: 1px solid var(--rule); }
.wordmark { font: 400 clamp(1.8rem, 3vw, 2.4rem) / 1 var(--serif); }

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(1.75rem, 4vh, 3.5rem);
}

.location, .role {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location { margin: 0 0 0.95rem; }
.location span { margin-inline: 0.25rem; }

h1 {
  margin: 0;
  max-width: 12ch;
  font: 400 clamp(3.4rem, 6.8vw, 7rem) / 0.94 var(--serif);
  letter-spacing: -0.025em;
}

h1 em { color: var(--gold); }

.bio {
  max-width: 51ch;
  margin: clamp(1rem, 3vh, 1.5rem) 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.075rem);
  line-height: 1.65;
}

.company-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #17231c;
  font-size: 0.875rem;
  font-weight: 800;
}

.company-link:hover { background: #f0d5ac; }

.portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 26rem);
  height: clamp(19rem, 65svh, 36rem);
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 52% 52% 0.65rem 0.65rem / 32% 32% 0.65rem 0.65rem;
  box-shadow: 0 1.5rem 4rem #050b0866;
  background: #ffffff06;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 17%;
  filter: saturate(0.72) contrast(1.04);
}

.footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 0.25em; }
.domain { color: var(--muted); }

@media (max-width: 740px) {
  .profile { grid-template-columns: 1fr; gap: 1.75rem; }
  h1 { font-size: clamp(3.45rem, 12vw, 5.5rem); }
  .portrait { height: clamp(22rem, 110vw, 30rem); }
  .footer { flex-wrap: wrap; gap: 0 1rem; }
}
