.portfolio-page { background: radial-gradient(circle at 75% 12%, rgba(212,175,55,.07), transparent 28rem), var(--black); }
.portfolio-stage { width: min(96rem, calc(100% - 3rem)); min-height: calc(100vh - 9.5rem); margin: 1rem auto 1.2rem; border: 1px solid rgba(212,175,55,.25); display: grid; grid-template-columns: minmax(18rem, 27%) minmax(0, 1fr); background: linear-gradient(130deg, rgba(212,175,55,.028), transparent 35%); overflow: hidden; }
.profile-rail { position: relative; border-right: 1px solid rgba(212,175,55,.2); padding: clamp(1.4rem, 2.5vw, 2.7rem); display: flex; flex-direction: column; background: rgba(0,0,0,.18); }
.profile-rail::after { content: ""; position: absolute; right: -1px; bottom: 0; width: 3.5rem; height: 3.5rem; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.profile-portrait { position: relative; width: min(15rem, 75%); aspect-ratio: 1 / 1.05; margin: 0 auto 1.2rem; }
.profile-portrait::before, .profile-portrait::after { content: ""; position: absolute; z-index: 2; width: 2.4rem; height: 2.4rem; }
.profile-portrait::before { top: -.5rem; left: -.5rem; border-top: 1px solid var(--gold-light); border-left: 1px solid var(--gold-light); }
.profile-portrait::after { right: -.5rem; bottom: -.5rem; border-right: 1px solid var(--gold-dark); border-bottom: 1px solid var(--gold-dark); }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05); -webkit-mask-image: radial-gradient(ellipse at center, #000 60%, transparent 94%); mask-image: radial-gradient(ellipse at center, #000 60%, transparent 94%); }
.profile-identity > p:first-child, .portfolio-panel header > p, .portfolio-explorer-footer p { margin: 0; color: var(--gold-light); font-size: .65rem; font-weight: 600; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; }
.profile-identity h1 { margin: .6rem 0 0; font: 600 clamp(1.5rem, 2.2vw, 2.35rem)/.96 var(--serif); letter-spacing: .04em; }
.profile-role { margin: .85rem 0 0; color: #bdb8ae; font-size: .72rem; letter-spacing: .065em; line-height: 1.7; text-transform: uppercase; }
.profile-proof { border-top: 1px solid rgba(212,175,55,.18); margin-top: auto; padding-top: 1rem; display: grid; gap: .7rem; }
.profile-proof span { color: #99958c; font-size: .63rem; letter-spacing: .045em; line-height: 1.55; text-transform: uppercase; display: grid; gap: .2rem; }
.profile-proof strong { color: var(--gold-light); font: 600 .78rem/1.35 var(--serif); letter-spacing: .06em; }
.profile-cta { min-height: 2.9rem; border: 1px solid rgba(212,175,55,.34); margin-top: 1rem; padding: .65rem .95rem; color: #d8d4ca; display: flex; align-items: center; justify-content: space-between; font-size: .64rem; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.profile-cta:hover, .profile-cta:focus-visible { border-color: var(--gold-light); color: var(--white); background: rgba(212,175,55,.05); }
.portfolio-explorer { min-width: 0; padding: clamp(1.2rem, 2.2vw, 2.3rem); display: grid; grid-template-rows: auto 1fr auto; }
.portfolio-tabs { border-bottom: 1px solid rgba(212,175,55,.2); display: grid; grid-template-columns: repeat(6, 1fr); }
.portfolio-tabs button { min-width: 0; min-height: 3.65rem; border: 0; border-right: 1px solid rgba(212,175,55,.12); border-bottom: 2px solid transparent; padding: .6rem .4rem; color: #969188; background: transparent; font: inherit; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.portfolio-tabs button:last-child { border-right: 0; }
.portfolio-tabs button span { display: block; margin-bottom: .32rem; color: var(--gold-dark); font: 500 .58rem/1 var(--serif); }
.portfolio-tabs button:hover, .portfolio-tabs button:focus-visible { color: #d4d0c7; background: rgba(212,175,55,.035); }
.portfolio-tabs button[aria-selected="true"] { border-bottom-color: var(--gold-light); color: var(--white); background: rgba(212,175,55,.055); }
.portfolio-tabs button[aria-selected="true"] span { color: var(--gold-light); }
.portfolio-panel-wrap { min-height: 0; display: grid; }
.portfolio-panel { align-self: center; width: 100%; padding: clamp(1.5rem, 3.2vw, 3.5rem) clamp(.3rem, 2vw, 1.7rem); animation: panelReveal 280ms ease both; }
.portfolio-panel[hidden] { display: none; }
@keyframes panelReveal { from { opacity: 0; transform: translateY(.45rem); } to { opacity: 1; transform: translateY(0); } }
.portfolio-panel header { max-width: 64rem; margin-bottom: clamp(1.1rem, 2.4vw, 2.1rem); }
.portfolio-panel h2 { margin: .55rem 0 0; color: #e5e1d8; font: 600 clamp(1.2rem, 1.65vw, 1.7rem)/1.18 var(--serif); letter-spacing: .03em; }
.panel-lead { max-width: 62rem; margin: 0; color: #c5c1b7; font: 500 clamp(.92rem, 1.2vw, 1.08rem)/1.78 var(--serif); }
.panel-lead.compact { max-width: 57rem; }
.panel-support { max-width: 60rem; margin: .9rem 0 0; color: #aaa69d; font-size: .9rem; line-height: 1.75; }
.client-value { max-width: 62rem; border-left: 2px solid var(--gold); margin: 1.15rem 0 0; padding: .2rem 0 .2rem 1rem; color: #c9c5bc; font-size: .86rem; line-height: 1.65; }
.client-value span { display: block; margin-bottom: .25rem; color: var(--gold-light); font: 600 .62rem/1.4 var(--sans); letter-spacing: .14em; }
.overview-pillars { margin-top: clamp(1.2rem, 2.5vw, 2.3rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.overview-pillars article, .portfolio-card-grid article { border: 1px solid rgba(212,175,55,.2); padding: clamp(1rem, 1.8vw, 1.6rem); background: rgba(0,0,0,.13); }
.overview-pillars span, .portfolio-card-grid article > span { color: var(--gold-light); font: 500 .62rem/1.4 var(--serif); letter-spacing: .13em; }
.overview-pillars p, .portfolio-card-grid p { margin: .6rem 0 0; color: #aaa69d; font-size: .81rem; line-height: 1.68; }
.journey-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.journey-grid::before { content: ""; position: absolute; top: .28rem; left: 1%; right: 1%; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(212,175,55,.12)); }
.journey-grid article { position: relative; padding: 1.25rem .9rem .4rem 0; }
.journey-grid article::before { content: ""; position: absolute; top: 0; left: 0; width: .55rem; height: .55rem; border: 1px solid var(--gold-light); background: var(--black); transform: rotate(45deg); }
.journey-grid span { color: var(--gold-light); font: 500 .64rem/1.4 var(--serif); letter-spacing: .1em; }
.journey-grid h3, .portfolio-card-grid h3 { margin: .7rem 0 0; color: #dedad1; font: 500 clamp(.9rem, 1.25vw, 1.16rem)/1.35 var(--serif); letter-spacing: .035em; }
.journey-grid p { margin: .55rem 0 0; color: #a29e95; font-size: .79rem; line-height: 1.68; }
.portfolio-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.portfolio-card-grid article { min-height: 9.2rem; position: relative; }
.portfolio-card-grid article::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1.5rem; height: 1.5rem; border-right: 1px solid var(--gold-dark); border-bottom: 1px solid var(--gold-dark); }
.work-cards article { min-height: 11rem; padding-bottom: 2.7rem; }
.work-link { position: absolute; left: clamp(1rem, 1.8vw, 1.6rem); bottom: 1rem; color: var(--gold-light); font-size: .64rem; letter-spacing: .08em; line-height: 1.4; text-decoration: none; text-transform: uppercase; }
.work-link:hover, .work-link:focus-visible { color: var(--white); text-decoration: underline; text-underline-offset: .25rem; }
.credentials-list { max-width: 70rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.credentials-list article { min-height: 6.2rem; border: 1px solid rgba(212,175,55,.2); padding: .8rem 1rem; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: .8rem; background: rgba(0,0,0,.12); }
.credentials-list article:last-child { grid-column: 1 / -1; }
.credentials-list strong { min-width: 0; color: var(--gold-light); font: 600 clamp(.72rem, 1vw, 1.05rem)/1.15 var(--serif); letter-spacing: .045em; }
.credentials-list h3 { margin: 0; color: #dedad1; font: 500 1rem/1.4 var(--serif); }
.credentials-list p { margin: .3rem 0 0; color: #a29e95; font-size: .78rem; line-height: 1.55; }
.credentials-note { max-width: 60rem; border-left: 1px solid var(--gold); margin: 1rem 0 0; padding-left: 1rem; color: #aaa69d; font-size: .8rem; line-height: 1.65; }
.approach-steps { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.approach-steps li { border-top: 1px solid var(--gold); padding: .8rem .8rem .4rem 0; }
.approach-steps span { color: var(--gold-light); font: 500 .52rem/1 var(--serif); }
.approach-steps strong { display: block; margin-top: .55rem; color: #dedad1; font: 500 .92rem/1.3 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.approach-steps p { margin: .35rem 0 0; color: #a29e95; font-size: .76rem; line-height: 1.55; }
.portfolio-panel blockquote { max-width: 65rem; border-left: 2px solid var(--gold); margin: 1.5rem 0 0; padding: .25rem 0 .25rem 1.1rem; color: #d7d3ca; font: 500 clamp(.9rem, 1.45vw, 1.22rem)/1.55 var(--serif); }
.portfolio-explorer-footer { min-height: 2.4rem; border-top: 1px solid rgba(212,175,55,.18); display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.portfolio-explorer-footer p { padding-top: .8rem; color: #6f6b64; }
.portfolio-explorer-footer a { padding-top: .8rem; color: var(--gold-light); font-size: .64rem; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.portfolio-page .site-footer { width: min(96rem, calc(100% - 3rem)); }
@media (max-width: 980px) {
  .portfolio-stage { min-height: 0; grid-template-columns: 15rem 1fr; }
  .profile-proof { margin-top: 1.5rem; }
  .portfolio-tabs { grid-template-columns: repeat(3, 1fr); }
  .portfolio-tabs button:nth-child(-n+3) { border-bottom: 1px solid rgba(212,175,55,.12); }
  .portfolio-tabs button[aria-selected="true"] { border-bottom: 2px solid var(--gold-light); }
  .journey-grid { grid-template-columns: 1fr 1fr; }
  .journey-grid::before { display: none; }
  .journey-grid article { border-top: 1px solid rgba(212,175,55,.22); }
  .journey-grid article::before { display: none; }
}
@media (max-width: 700px) {
  .portfolio-stage, .portfolio-page .site-footer { width: calc(100% - 1.2rem); }
  .portfolio-stage { grid-template-columns: 1fr; overflow: visible; }
  .profile-rail { border-right: 0; border-bottom: 1px solid rgba(212,175,55,.2); padding: 1rem; display: grid; grid-template-columns: 5.2rem 1fr; gap: .75rem 1rem; }
  .profile-portrait { width: 100%; margin: 0; }
  .profile-identity > p:first-child { font-size: .56rem; }
  .profile-identity h1 { margin-top: .35rem; font-size: 1.8rem; }
  .profile-role { margin-top: .45rem; font-size: .6rem; line-height: 1.55; }
  .profile-proof { display: none; }
  .profile-cta { grid-column: 1 / -1; min-height: 2.55rem; margin-top: 0; }
  .profile-rail::after { display: none; }
  .portfolio-explorer { padding: .8rem; }
  .portfolio-tabs { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .portfolio-tabs button { min-height: 3.2rem; font-size: .57rem; }
  .portfolio-tabs button:nth-child(3n) { border-right: 0; }
  .portfolio-tabs button:nth-child(-n+3) { border-bottom: 1px solid rgba(212,175,55,.14); }
  .portfolio-panel { align-self: start; padding: 1.8rem .25rem; }
  .portfolio-panel h2 { font-size: 1.45rem; }
  .overview-pillars, .journey-grid, .portfolio-card-grid, .approach-steps { grid-template-columns: 1fr; }
  .portfolio-card-grid article { min-height: 0; }
  .work-cards article { min-height: 10rem; }
  .journey-grid article { padding-top: .8rem; }
  .credentials-list { grid-template-columns: 1fr; }
  .credentials-list article, .credentials-list article:last-child { grid-column: auto; grid-template-columns: 6rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .portfolio-panel { animation: none; } }
