:root {
  --profile-accent: #10b981;
  --profile-accent-rgb: 16, 185, 129;
  --profile-bg: #060b12;
  --profile-surface: #0b131d;
  --profile-line: rgba(231, 238, 234, .14);
}

body.profile-page { background: var(--profile-bg); color: #edf3ee; }
body.profile-menu-open { overflow: hidden; }
body[data-profile="data"] { --profile-accent: #35c7e8; --profile-accent-rgb: 53, 199, 232; }
body[data-profile="digital"] { --profile-accent: #a8b5ff; --profile-accent-rgb: 168, 181, 255; --profile-bg: #080c16; --profile-surface: #101625; }
.profile-page ::selection { background: var(--profile-accent); color: #05090e; }

.profile-header {
  position: fixed; inset: 0 0 auto; z-index: 50; min-height: 82px; padding: 0 4vw;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
  background: color-mix(in srgb, var(--profile-bg) 88%, transparent); border-bottom: 1px solid var(--profile-line); backdrop-filter: blur(18px);
}
.profile-brand { display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.profile-brand strong { font: 600 1rem "IBM Plex Mono", monospace; letter-spacing: -.05em; }
.profile-brand span { color: var(--profile-accent); font-size: 1.35rem; }
.profile-switcher { justify-self: center; display: flex; align-items: center; gap: .25rem; padding: .3rem; border: 1px solid var(--profile-line); background: rgba(255,255,255,.025); }
.profile-switcher a { padding: .65rem .85rem; color: #8f9ca4; text-decoration: none; font: 500 .62rem "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; transition: .2s ease; }
.profile-switcher a:hover, .profile-switcher a[aria-current="page"] { color: #f5f7f5; background: rgba(var(--profile-accent-rgb), .12); box-shadow: inset 0 -1px var(--profile-accent); }
.profile-overview { color: #eef3ef; font: 500 .68rem "IBM Plex Mono", monospace; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.profile-overview span { color: var(--profile-accent); }
.profile-menu-toggle { display: none; }

.profile-main { overflow: hidden; }
.profile-hero { min-height: 100svh; padding: 156px 7vw 78px; position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, .85fr); gap: 7vw; align-items: center; }
.profile-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 76% 40%, rgba(var(--profile-accent-rgb), .12), transparent 34%), linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px); background-size: auto, 48px 48px, 48px 48px; mask-image: linear-gradient(to bottom, #000 0 72%, transparent); pointer-events: none; }
.profile-hero-copy, .profile-visual { position: relative; z-index: 1; }
.profile-eyebrow { display: flex; gap: .8rem; align-items: center; color: var(--profile-accent); font: 500 .65rem "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.profile-eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.profile-hero h1 { max-width: 900px; margin: 1.6rem 0 1.4rem; font: 500 clamp(3.2rem, 6.4vw, 7.1rem)/.91 "Space Grotesk", sans-serif; letter-spacing: -.075em; }
.profile-hero h1 em { display: block; color: var(--profile-accent); font-style: normal; }
.profile-hero-copy > p:not(.profile-eyebrow) { max-width: 650px; color: #a7b2b8; font-size: clamp(1rem, 1.3vw, 1.22rem); line-height: 1.65; }
.profile-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.profile-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-width: 190px; padding: .95rem 1rem; border: 1px solid var(--profile-line); color: #f4f7f4; font: 600 .68rem "IBM Plex Mono", monospace; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: .25s ease; }
.profile-button.primary { border-color: var(--profile-accent); background: var(--profile-accent); color: #05090e; }
.profile-button:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(var(--profile-accent-rgb), .15); }
.profile-visual { min-height: 490px; padding: 1.3rem; border: 1px solid rgba(var(--profile-accent-rgb), .35); background: rgba(3, 8, 13, .82); box-shadow: 0 45px 100px rgba(0,0,0,.45); }
.profile-visual-head { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--profile-line); color: #7f8e96; font: 500 .56rem "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.profile-visual-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--profile-accent); box-shadow: 0 0 15px var(--profile-accent); }
.profile-visual svg { width: 100%; height: 370px; overflow: visible; }
.profile-visual .grid { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.profile-visual .accent-line { fill: none; stroke: var(--profile-accent); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(var(--profile-accent-rgb), .4)); }
.profile-visual .ghost-line { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 1.5; stroke-dasharray: 5 7; }
.profile-visual text { fill: #8c99a0; font: 500 10px "IBM Plex Mono", monospace; }
.profile-visual rect, .profile-visual circle { transition: .3s ease; }
.profile-visual:hover .visual-pulse { filter: drop-shadow(0 0 8px var(--profile-accent)); }
.profile-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin: -42px 7vw 0; border: 1px solid var(--profile-line); background: var(--profile-surface); }
.profile-strip div { padding: 1.25rem; border-right: 1px solid var(--profile-line); }
.profile-strip div:last-child { border: 0; }
.profile-strip span { display: block; margin-bottom: .5rem; color: #74828b; font: 500 .56rem "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.profile-strip strong { color: #e6ece8; font-size: .85rem; }

.profile-section { padding: 8rem 7vw; }
.profile-section.light { background: #e8e6df; color: #0b1219; }
.profile-heading { display: grid; grid-template-columns: minmax(170px, .35fr) 1fr; gap: 4vw; margin-bottom: 4.5rem; }
.profile-kicker { color: var(--profile-accent); font: 600 .62rem "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.light .profile-kicker { color: #16634f; }
.profile-heading h2 { max-width: 920px; margin: 0; font: 500 clamp(2.5rem, 5.3vw, 5.8rem)/.96 "Space Grotesk", sans-serif; letter-spacing: -.065em; }
.profile-heading h2 em { color: var(--profile-accent); font-style: normal; }
.light .profile-heading h2 em { color: #14644f; }
.profile-heading div > p { max-width: 720px; color: #96a2a8; font-size: 1.06rem; line-height: 1.7; }
.light .profile-heading div > p { color: #526068; }
.profile-projects { border-top: 1px solid var(--profile-line); }
.profile-project { display: grid; grid-template-columns: 110px 1fr; gap: 2.2rem; padding: 2.6rem 0; border-bottom: 1px solid var(--profile-line); }
.profile-project-index { display: flex; flex-direction: column; gap: .5rem; color: var(--profile-accent); font: 500 .7rem "IBM Plex Mono", monospace; }
.profile-project-index small { color: #70808a; }
.profile-project h3 { margin: .35rem 0 .55rem; font: 500 clamp(1.8rem, 3vw, 3.1rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.profile-project h3 a { color: inherit; text-decoration: none; }
.profile-project div > p:first-child { color: var(--profile-accent); font: 500 .59rem "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.profile-project strong { font-weight: 500; color: #ccd5d0; }
.profile-project div > p { max-width: 850px; color: #8d9aa2; line-height: 1.65; }
.profile-project ul { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; }
.profile-project li { padding: .3rem .55rem; border: 1px solid var(--profile-line); color: #9eabb1; font: 500 .56rem "IBM Plex Mono", monospace; }
.profile-project-links { display: flex; gap: 1.3rem; margin-top: 1.2rem; }
.profile-project-links a { color: #f1f5f2; font: 600 .64rem "IBM Plex Mono", monospace; text-decoration: none; text-transform: uppercase; }
.profile-project-links a span { color: var(--profile-accent); }
.profile-roles { border-top: 1px solid #15212a30; }
.profile-role { display: grid; grid-template-columns: .55fr .85fr 1.4fr; gap: 3vw; padding: 2.5rem 0; border-bottom: 1px solid #15212a30; }
.profile-role > div { display: flex; flex-direction: column; gap: .45rem; font: 600 .65rem "IBM Plex Mono", monospace; }
.profile-role > div small { color: #657078; }
.profile-role header p { margin: 0 0 .5rem; color: #526068; font: 500 .67rem "IBM Plex Mono", monospace; }
.profile-role h3 { margin: 0; font: 500 1.7rem "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.profile-role h3 a { color:inherit; text-decoration:none; transition:color .2s; }
.profile-role h3 a:hover { color:#16634f; }
.profile-role-link { width:fit-content; margin-top:.8rem; display:inline-flex; gap:.65rem; color:#16634f; font:600 .57rem "IBM Plex Mono",monospace; letter-spacing:.06em; text-decoration:none; text-transform:uppercase; }
.profile-role-link span { transition:transform .2s; }
.profile-role-link:hover span { transform:translateX(3px); }
.profile-role ul { margin: 0; padding: 0; list-style: none; }
.profile-role li { position: relative; padding: 0 0 .8rem 1.35rem; color: #445159; line-height: 1.55; }
.profile-role li::before { content: ""; position: absolute; left: 0; top: .72em; width: .65rem; height: 1px; background: #16634f; }
.profile-skills { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--profile-line); }
.profile-skill { min-height: 210px; padding: 1.7rem; border-right: 1px solid var(--profile-line); border-bottom: 1px solid var(--profile-line); }
.profile-skill:nth-child(2n) { border-right: 0; }
.profile-skill:nth-last-child(-n+2) { border-bottom: 0; }
.profile-skill span { color: var(--profile-accent); font: 500 .6rem "IBM Plex Mono", monospace; }
.profile-skill h3 { margin: 3rem 0 .8rem; font: 500 1.5rem "Space Grotesk", sans-serif; }
.profile-skill p { max-width: 540px; color: #8e9aa1; line-height: 1.65; }
.profile-contact { padding: 8rem 7vw 3rem; border-top: 1px solid var(--profile-line); background: radial-gradient(circle at 80% 30%, rgba(var(--profile-accent-rgb), .12), transparent 35%); }
.profile-contact h2 { max-width: 1000px; margin: 1.5rem 0; font: 500 clamp(3rem, 7vw, 7.5rem)/.92 "Space Grotesk", sans-serif; letter-spacing: -.075em; }
.profile-contact > p:not(.profile-kicker) { max-width: 650px; color: #98a4aa; font-size: 1.08rem; line-height: 1.65; }
.profile-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 8rem; padding-top: 1.3rem; border-top: 1px solid var(--profile-line); color: #748189; font: 500 .58rem "IBM Plex Mono", monospace; text-transform: uppercase; }
.profile-footer a { color: inherit; }

@media (max-width: 1050px) {
  .profile-header { grid-template-columns: auto auto; justify-content: space-between; }
  .profile-menu-toggle { display: inline-flex; border: 1px solid var(--profile-line); background: none; color: inherit; padding: .65rem .8rem; font: 500 .62rem "IBM Plex Mono", monospace; text-transform: uppercase; }
  .profile-switcher { position: fixed; inset: 81px 0 auto; display: none; justify-self: stretch; padding: 1rem 4vw 1.4rem; background: var(--profile-bg); border-width: 0 0 1px; }
  .profile-switcher.is-open { display: grid; }
  .profile-switcher a { padding: 1rem; }
  .profile-overview { display: none; }
  .profile-hero { grid-template-columns: 1fr; padding-top: 140px; }
  .profile-visual { width: min(760px, 100%); min-height: 420px; }
  .profile-strip { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
  .profile-strip div:nth-child(2) { border-right: 0; }
  .profile-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--profile-line); }
  .profile-role { grid-template-columns: .5fr 1fr; }
  .profile-role ul { grid-column: 2; }
}

@media (max-width: 700px) {
  .profile-header { min-height: 68px; padding: 0 5vw; }
  .profile-switcher { top: 67px; }
  .profile-hero { min-height: auto; padding: 118px 6vw 4rem; gap: 3rem; }
  .profile-hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .profile-visual { min-height: 330px; padding: .9rem; }
  .profile-visual svg { height: 260px; }
  .profile-strip { margin: 0 6vw; grid-template-columns: 1fr; }
  .profile-strip div, .profile-strip div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--profile-line); }
  .profile-section { padding: 5.5rem 6vw; }
  .profile-heading { grid-template-columns: 1fr; margin-bottom: 3rem; }
  .profile-project { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
  .profile-project-index { flex-direction: row; justify-content: space-between; }
  .profile-role { grid-template-columns: 1fr; gap: 1rem; }
  .profile-role ul { grid-column: auto; }
  .profile-skills { grid-template-columns: 1fr; }
  .profile-skill, .profile-skill:nth-child(2n), .profile-skill:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--profile-line); }
  .profile-skill:last-child { border-bottom: 0; }
  .profile-contact { padding: 6rem 6vw 2rem; }
  .profile-footer { flex-direction: column; margin-top: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-page *, .profile-page *::before, .profile-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
