:root {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f9f6f0;
  background: #30271f;
  font-synthesis: none;
  --profile-gutter: var(--site-edge, 65px);
  --profile-gold: #eed18b;
}

* { box-sizing: border-box; }
html { min-width: 320px; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; }
button, a { font: inherit; color: inherit; }
a { text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--profile-gold); outline-offset: 5px; }
::selection { color: #201b15; background: #eed18b; }

.profile-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #30271f url("assets/profile-ambient-bg-v3.webp") center center / cover no-repeat;
}

.profile-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 15, 13, .66), rgba(17, 15, 13, .29) 42%, rgba(17, 15, 13, .16)), linear-gradient(0deg, rgba(11, 10, 9, .42), rgba(11, 10, 9, .06) 46%, rgba(11, 10, 9, .14)), linear-gradient(180deg, rgba(20, 16, 11, .1), rgba(20, 16, 11, .1));
}

.profile-page { min-height: 100svh; display: flex; flex-direction: column; }
.profile-main { position: relative; flex: 1; padding: clamp(136px, 17.5vh, 194px) var(--profile-gutter) 0; }
.profile-intro { position: relative; width: fit-content; max-width: 760px; text-shadow: 0 2px 22px rgba(0, 0, 0, .28); }
.profile-eyebrow { margin: 0 0 16px; color: var(--profile-gold); font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .19em; }
.profile-intro h1 { margin: 0 0 19px; font-size: clamp(54px, 4.8vw, 82px); font-weight: 500; letter-spacing: .035em; line-height: 1.13; }
.profile-name { margin: 0; font-size: clamp(26px, 2.2vw, 36px); font-weight: 400; letter-spacing: .025em; line-height: 1.45; }
.profile-name span { margin-left: 6px; font-weight: 300; }
.profile-role { margin: 2px 0 0; font-size: clamp(18px, 1.55vw, 25px); font-weight: 300; letter-spacing: .095em; line-height: 1.6; }
.profile-intro-rule { width: 40px; height: 1px; margin: 20px 0; background: var(--profile-gold); }
.profile-description { margin: 0; color: rgba(255, 251, 242, .94); font-size: clamp(14px, 1.3vw, 20px); font-weight: 300; line-height: 1.8; letter-spacing: .018em; }
.profile-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  margin-top: 27px;
  padding: 0 29px;
  border: 1px solid rgba(255, 249, 226, .32);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(224, 210, 188, .26), rgba(167, 151, 134, .2));
  box-shadow: inset 0 1px 3px rgba(255, 249, 232, .2), 0 7px 24px rgba(15, 10, 4, .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 14px;
  letter-spacing: .075em;
  transition: background .2s ease, transform .2s ease;
}
.profile-resume:hover { background: rgba(236, 221, 196, .34); transform: translateY(-2px); }
.profile-resume svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.profile-scene-note { position: absolute; top: 34%; right: var(--profile-gutter); margin: 0; color: rgba(255, 248, 230, .83); font-family: Georgia, serif; font-size: 12px; letter-spacing: .19em; text-align: right; text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.profile-scene-note span { display: block; width: 38px; height: 1px; margin: 22px 0 0 auto; background: rgba(255, 248, 230, .85); }

.profile-capabilities { margin-top: 36px; }
.profile-section-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.profile-section-heading h2 { margin: 0; font-size: 19px; font-weight: 400; line-height: 1.5; letter-spacing: .045em; }
.profile-section-heading > span { width: 36px; height: 1px; background: var(--profile-gold); }
.profile-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.profile-card {
  min-width: 0;
  padding: 25px 28px 24px;
  border: 1px solid rgba(255, 245, 222, .31);
  border-radius: 15px;
  background: linear-gradient(125deg, rgba(202, 191, 171, .28), rgba(132, 118, 101, .3));
  box-shadow: inset 0 1px 2px rgba(255, 251, 237, .18), 0 8px 25px rgba(16, 11, 5, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.profile-card-heading { display: grid; grid-template-columns: 34px 1fr; align-items: center; column-gap: 18px; }
.profile-card-number { position: relative; color: var(--profile-gold); font-size: 22px; font-weight: 400; line-height: 1.5; font-variant-numeric: tabular-nums; }
.profile-card-heading h3 { position: relative; margin: 0; font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; line-height: 1.5; }
.profile-card-number::after, .profile-card-heading h3::after { content: ""; display: block; width: 27px; height: 1px; margin-top: 12px; background: rgba(255, 245, 222, .6); }
.profile-card-body { margin: 16px 0 0 52px; }
.profile-card-body p { margin: 0; color: rgba(255, 252, 245, .94); font-size: clamp(13px, 1.1vw, 17px); font-weight: 300; line-height: 1.7; letter-spacing: .02em; }
.profile-card-body p + p { margin-top: 4px; }

.profile-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 38px var(--profile-gutter) 27px; color: rgba(255, 249, 235, .77); font-size: 12px; font-weight: 300; letter-spacing: .075em; }
.profile-footer a { display: inline-flex; align-items: center; gap: 12px; transition: color .2s ease; }
.profile-footer a:hover { color: #fff; }

@media (min-width: 1024px) {
  /* Match the centered 1640px content canvas used by the works page. */
  .profile-main,
  .profile-footer {
    width: min(1640px, calc(100% - 136px));
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .profile-scene-note { right: 0; }
}

@media (min-width: 1024px) and (max-height: 850px) {
  .profile-main { padding-top: 118px; }
  .profile-eyebrow { margin-bottom: 10px; font-size: 11px; }
  .profile-intro h1 { margin-bottom: 14px; font-size: 54px; }
  .profile-name { font-size: 26px; }
  .profile-role { font-size: 18px; }
  .profile-intro-rule { margin: 15px 0; }
  .profile-description { font-size: 14px; line-height: 1.75; }
  .profile-resume { min-height: 43px; margin-top: 20px; font-size: 12px; }
  .profile-capabilities { margin-top: 28px; }
  .profile-section-heading { margin-bottom: 13px; }
  .profile-section-heading h2 { font-size: 17px; }
  .profile-card { padding: 19px 22px; }
  .profile-card-heading h3 { font-size: 18px; }
  .profile-card-number { font-size: 19px; }
  .profile-card-number::after, .profile-card-heading h3::after { margin-top: 9px; }
  .profile-card-body { margin-top: 13px; }
  .profile-card-body p { font-size: 12px; }
  .profile-footer { padding-top: 25px; padding-bottom: 20px; font-size: 11px; }
}

@media (max-width: 1100px) {
  .profile-card-grid { gap: 16px; }
  .profile-card { padding-inline: 20px; }
  .profile-card-heading { column-gap: 9px; }
  .profile-card-body { margin-left: 43px; }
  .profile-wide-break { display: none; }
}

@media (max-width: 900px) {
  .profile-main { padding-top: 133px; }
  .profile-scene { background-position: 57% center; }
  .profile-scene::after { background: linear-gradient(90deg, rgba(17, 15, 13, .64), rgba(17, 15, 13, .3)), linear-gradient(0deg, rgba(11, 10, 9, .38), rgba(11, 10, 9, .06) 65%), linear-gradient(180deg, rgba(20, 16, 11, .12), rgba(20, 16, 11, .12)); }
  .profile-intro { max-width: 600px; }
  .profile-scene-note { display: none; }
  .profile-card-grid { gap: 12px; }
  .profile-card { padding: 21px 17px; }
  .profile-card-heading { grid-template-columns: 1fr; gap: 7px; }
  .profile-card-number::after { display: none; }
  .profile-card-number { font-size: 16px; }
  .profile-card-heading h3 { font-size: 18px; }
  .profile-card-body { margin-left: 0; }
  .profile-card-body p { font-size: 13px; }
  .profile-footer { padding-top: 30px; }
}

@media (max-width: 620px) {
  .profile-main { padding-top: 125px; }
  .profile-scene { background-position: 60% top; }
  .profile-scene::after { background: linear-gradient(90deg, rgba(17, 15, 13, .64), rgba(17, 15, 13, .3)), linear-gradient(0deg, rgba(11, 10, 9, .38), rgba(11, 10, 9, .06) 65%), linear-gradient(180deg, rgba(20, 16, 11, .12), rgba(20, 16, 11, .12)); }
  .profile-eyebrow { font-size: 11px; }
  .profile-intro h1 { margin-bottom: 19px; font-size: 56px; }
  .profile-name { font-size: 27px; }
  .profile-role { font-size: 18px; }
  .profile-intro-rule { margin: 18px 0; }
  .profile-description { max-width: 420px; font-size: 14px; line-height: 1.9; }
  .profile-resume { min-height: 46px; margin-top: 23px; padding-inline: 25px; font-size: 13px; }
  .profile-capabilities { margin-top: 43px; }
  .profile-section-heading { margin-bottom: 17px; }
  .profile-section-heading h2 { font-size: 18px; }
  .profile-card-grid { grid-template-columns: 1fr; gap: 14px; }
  .profile-card { padding: 23px; }
  .profile-card-heading { grid-template-columns: 32px 1fr; column-gap: 16px; }
  .profile-card-number { font-size: 21px; }
  .profile-card-number::after { display: block; }
  .profile-card-heading h3 { font-size: 20px; }
  .profile-card-body { margin-left: 48px; }
  .profile-card-body p { font-size: 14px; }
  .profile-footer { padding-top: 31px; padding-bottom: 24px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-resume, .profile-footer a { transition: none; }
  .profile-resume:hover { transform: none; }
}
