:root {
  color-scheme: light;
  --bg-rotate: 0deg;
  --paper: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .09);
  --accent: #1d1d1f;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #090a0b;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -5vh -4vw;
  pointer-events: none;
}

body::before {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 145vmax;
  height: 145vmax;
  z-index: -2;
  background: #090a0b url('/assets/camera-cutting-mat-square-v2.png') center / cover no-repeat;
  transform: translate(-50%, -50%) rotate(var(--bg-rotate));
  filter: blur(5px) brightness(.82) saturate(.82);
  will-change: transform;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle at 7% 14%, rgba(255,255,255,.12) 0 7px, rgba(255,255,255,.025) 18px, transparent 43px),
    radial-gradient(circle at 88% 9%, rgba(255,255,255,.085) 0 10px, rgba(255,255,255,.02) 24px, transparent 52px),
    radial-gradient(circle at 94% 72%, rgba(255,255,255,.07) 0 8px, rgba(255,255,255,.015) 26px, transparent 58px),
    radial-gradient(ellipse at 50% 46%, transparent 0 28%, rgba(0,0,0,.08) 55%, rgba(0,0,0,.47) 104%);
}

a { color: inherit; }

.profile-card {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: min(100%, 760px);
  min-height: 100vh;
  margin: auto;
  padding: clamp(42px, 8vh, 88px) 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: enter .8s cubic-bezier(.2,.75,.25,1) both;
}

.portrait {
  width: clamp(168px, 27vw, 224px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #d2d2d7;
  box-shadow: 0 22px 60px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.72);
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 31%;
  transform: scale(1.32);
}

.identity { margin-top: 34px; }

.eyebrow {
  margin: 0 0 11px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.045em;
}

h1 {
  font-family: "LEMON MILK", "Avenir Next", Montserrat, Futura, Arial, sans-serif;
  font-size: clamp(35px, 7.5vw, 62px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .055em;
  text-shadow: 0 3px 22px rgba(0,0,0,.42);
}
h2 { font-size: clamp(38px, 7vw, 60px); line-height: .98; font-weight: 600; }

.name {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: .06em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 15px rgba(0,0,0,.5);
}

.actions {
  width: min(100%, 390px);
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button {
  min-height: 54px;
  padding: 0 19px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, .close:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #777; outline-offset: 3px; }
.button-primary {
  background: rgba(255,255,255,.94);
  color: #111113;
  box-shadow: 0 10px 30px rgba(0,0,0,.28), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.button-primary:hover { background: #fff; }
.button-secondary {
  color: #fff;
  border-color: rgba(255,255,255,.22);
  background: rgba(12,13,14,.58);
  box-shadow: 0 10px 30px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.13);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.button-secondary:hover { background: rgba(25,26,27,.72); }
.portfolio-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.instagram-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.instagram-dot { fill: currentColor; stroke: none; }

footer {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  width: auto;
  margin-top: 0;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-links { display: flex; gap: 16px; }
.footer-links a { text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }

.contact-dialog {
  width: min(calc(100% - 28px), 620px);
  max-height: calc(100vh - 28px);
  padding: clamp(32px, 6vw, 56px);
  border: 0;
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0,0,0,.22);
}

.contact-dialog::backdrop { background: rgba(15,15,14,.58); backdrop-filter: blur(8px); }
.contact-dialog[open] { animation: dialog-in .35s cubic-bezier(.2,.75,.25,1) both; }

.close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f1f1ee;
  font-size: 25px;
  cursor: pointer;
}

.dialog-heading { margin-bottom: 36px; }
form { display: grid; gap: 22px; text-align: left; }
label { display: grid; gap: 8px; }
label span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

input, textarea {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}

.submit { width: 100%; margin-top: 4px; }
.form-note { margin: -10px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }

@media (max-width: 520px) {
  .profile-card { padding: 28px 20px 88px; }
  .actions { grid-template-columns: 1fr; }
  footer { left: 20px; right: 20px; bottom: 20px; width: auto; align-items: flex-start; gap: 18px; }
  .footer-links { flex-direction: column; gap: 8px; align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  body::before { transform: translate(-50%, -50%); }
}
