:root {
  --navy: #171f31;
  --slate: #2d3b52;
  --sand: #b9956b;
  --sand-hi: #d7b58b;
  --white: #f7f8fa;
  --muted: #c8ccd4;
  --glass: rgba(45,59,82,.28);
  --glass-2: rgba(23,31,49,.50);
  --border: rgba(185,149,107,.48);
  --border-soft: rgba(215,181,139,.20);
  --shadow: 0 28px 80px rgba(0,0,0,.34);
  --mx: 50%;
  --my: 50%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy); }
body {
  margin: 0;
  min-height: 100svh;
  color: var(--white);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 650px at 16% -8%, rgba(185,149,107,.22), transparent 58%),
    radial-gradient(900px 700px at 92% 28%, rgba(45,59,82,.54), transparent 62%),
    linear-gradient(160deg, #0f1624 0%, #171f31 48%, #101724 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

.ambient {
  position: fixed;
  width: 42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: .16;
  z-index: 0;
  will-change: transform;
}
.ambient-a { background: var(--sand); top: -20rem; left: -18rem; animation: drift-a 16s ease-in-out infinite alternate; }
.ambient-b { background: var(--slate); right: -18rem; bottom: -20rem; animation: drift-b 18s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-6vw, -7vh, 0) scale(.92); } }

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 780px);
  margin: 0 auto;
  padding: clamp(0px, 2vw, 24px);
}
.profile-card {
  position: relative;
  overflow: clip;
  min-height: 100svh;
  background: linear-gradient(180deg, rgba(23,31,49,.42), rgba(16,23,36,.96) 42%, #111927 100%);
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  height: clamp(560px, 79svh, 760px);
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 20%;
  transform: scale(1.02);
  filter: saturate(.94) contrast(1.02);
  animation: hero-breathe 13s ease-in-out infinite alternate;
}
@keyframes hero-breathe { to { transform: scale(1.055) translateY(-.6%); } }
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,10,16,.18) 0%, rgba(8,14,23,.02) 35%, rgba(23,31,49,.28) 57%, rgba(23,31,49,.84) 74%, #111927 96%),
    linear-gradient(90deg, rgba(4,7,12,.20), transparent 44%);
  z-index: 1;
}
.brand-mark {
  position: absolute;
  z-index: 2;
  top: max(28px, env(safe-area-inset-top));
  left: clamp(24px, 7vw, 52px);
  width: clamp(74px, 17vw, 112px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
}
.identity {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 7vw, 52px);
  right: clamp(24px, 7vw, 52px);
  bottom: clamp(46px, 8vw, 74px);
}
.identity h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.identity p {
  margin: 16px 0 0;
  font-size: clamp(1.1rem, 3.8vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.94);
}

.content {
  position: relative;
  z-index: 4;
  margin-top: -30px;
  padding: 10px clamp(22px, 5vw, 46px) 34px;
}
.section { margin-top: 24px; }
.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -.035em;
}
.section-heading span {
  height: 1px;
  background: linear-gradient(90deg, var(--sand-hi), rgba(185,149,107,.30));
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 3vw, 24px);
  max-width: 610px;
}
.glass-orb {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.12), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(45,59,82,.22) 46%, rgba(23,31,49,.54));
  border: 1px solid rgba(185,149,107,.56);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(255,255,255,.02),
    0 8px 24px rgba(0,0,0,.12),
    0 0 16px rgba(185,149,107,.045);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transform: perspective(700px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .42s cubic-bezier(.2,.85,.2,1.18), border-color .3s ease, box-shadow .3s ease, background .3s ease;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.glass-orb::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.07), transparent 36% 70%, rgba(185,149,107,.04));
  pointer-events: none;
}
.glass-orb .orb-sheen {
  position: absolute;
  width: 44%;
  height: 160%;
  top: -30%;
  left: -62%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  opacity: .36;
  transition: left .68s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}
.glass-orb:hover .orb-sheen,
.glass-orb:focus-visible .orb-sheen { left: 124%; opacity: .58; }
.glass-orb:hover,
.glass-orb:focus-visible {
  --lift: -3px;
  border-color: rgba(215,181,139,.76);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    0 14px 30px rgba(0,0,0,.16),
    0 0 18px rgba(185,149,107,.07);
  outline: none;
}
.glass-orb:active { transform: perspective(700px) scale(.94); transition-duration: .12s; }
.glass-orb svg {
  width: 43%;
  height: 43%;
  fill: var(--sand-hi);
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.20));
  position: relative;
  z-index: 2;
}
.glass-orb .facebook-icon { width: 41%; height: 41%; }
.glass-orb.is-disabled {
  opacity: .38;
  filter: grayscale(.2);
  cursor: default;
}
.glass-orb.is-disabled:hover { --lift: 0px; border-color: rgba(185,149,107,.32); }

.project-list { display: grid; gap: 12px; }
.project-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: grid;
  grid-template-columns: clamp(142px, 33vw, 230px) 1fr auto;
  min-height: 126px;
  align-items: center;
  gap: clamp(14px, 3vw, 22px);
  overflow: hidden;
  padding: 10px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.06), transparent 28%),
    linear-gradient(120deg, rgba(45,59,82,.32), rgba(23,31,49,.62));
  border: 1px solid rgba(185,149,107,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 14px 38px rgba(0,0,0,.12);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .42s cubic-bezier(.2,.85,.2,1.1), border-color .3s ease, box-shadow .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 22%, rgba(255,255,255,.07) 43%, transparent 61%);
  transform: translateX(-130%);
  transition: transform .86s cubic-bezier(.15,.72,.22,1);
}
.project-card:hover::after, .project-card:focus-visible::after { transform: translateX(130%); }
.project-card:hover, .project-card:focus-visible {
  border-color: rgba(215,181,139,.70);
  box-shadow: 0 20px 42px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.07);
  outline: none;
}
.project-card:active { transform: perspective(900px) scale(.985); transition-duration: .12s; }
.project-media {
  width: 100%;
  aspect-ratio: 1.78 / 1;
  height: auto;
  min-height: 0;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(215,181,139,.18);
  box-shadow: 0 8px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
  filter: saturate(.96) contrast(1.035);
  transition: transform .55s cubic-bezier(.2,.82,.2,1), filter .35s ease;
}
.project-card:hover .project-media,
.project-card:focus-visible .project-media {
  transform: scale(1.025);
  filter: saturate(1.02) contrast(1.045);
}
.project-copy { padding: 14px 0; min-width: 0; }
.project-copy strong {
  display: block;
  font-size: clamp(1rem, 3.4vw, 1.35rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.project-copy span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.79);
  font-size: clamp(.75rem, 2.7vw, .95rem);
  line-height: 1.3;
}
.project-arrow {
  width: 48px;
  aspect-ratio: 1;
  margin-right: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185,149,107,.72);
  background: rgba(23,31,49,.34);
  transition: transform .28s cubic-bezier(.2,.8,.2,1.2), background .25s ease;
}
.project-card:hover .project-arrow { transform: translateX(3px); background: rgba(185,149,107,.10); }
.project-arrow svg { width: 20px; fill: none; stroke: var(--sand-hi); stroke-width: 1.9; }
.project-card.is-disabled { opacity: .45; cursor: default; }

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 34px 0 8px;
  color: rgba(255,255,255,.45);
  font-size: .72rem;
  letter-spacing: .14em;
}
.footer img { width: 28px; height: 18px; object-fit: contain; opacity: .75; }

.reveal { opacity: 0; transform: translateY(16px) scale(.992); filter: blur(3px); }
.reveal.is-in { opacity: 1; transform: none; filter: none; transition: opacity .72s ease, transform .72s cubic-bezier(.22,.85,.26,1), filter .72s ease; }
.hero.reveal { transform: scale(1.01); }
.hero.reveal.is-in { transform: none; }

.noscript { position: fixed; bottom: 10px; left: 10px; right: 10px; z-index: 10; background: #000; color: #fff; padding: 12px; border-radius: 12px; text-align: center; }

@media (min-width: 781px) {
  .shell { padding-top: 28px; padding-bottom: 28px; }
  .profile-card { border-radius: 42px; min-height: auto; }
  .hero { border-radius: 42px 42px 0 0; }
  .content { padding-bottom: 48px; }
}

@media (max-width: 560px) {
  .shell { padding: 0; }
  .profile-card { border: 0; }
  .hero { height: 66svh; min-height: 520px; }
  .brand-mark { width: 82px; top: max(22px, env(safe-area-inset-top)); }
  .identity { bottom: 42px; }
  .identity h1 { max-width: 360px; }
  .content { margin-top: -18px; padding-inline: 20px; }
  .quick-grid { gap: 12px; }
  .glass-orb svg { width: 42%; height: 42%; }
  .project-card { grid-template-columns: 38% 1fr auto; min-height: 104px; border-radius: 20px; gap: 10px; padding: 8px; }
  .project-media { aspect-ratio: 1.72 / 1; border-radius: 14px; }
  .project-copy { padding: 8px 0; }
  .project-copy span { margin-top: 5px; }
  .project-arrow { width: 38px; margin-right: 6px; }
}

@media (max-width: 390px) {
  .hero { min-height: 500px; }
  .section-heading { gap: 12px; }
  .quick-grid { gap: 9px; }
  .project-card { grid-template-columns: 37% 1fr auto; gap: 8px; padding: 7px; }
  .project-arrow { width: 34px; margin-right: 4px; }
  .project-copy strong { font-size: .94rem; }
  .project-copy span { font-size: .70rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
