/* Visual refresh: executive ink / eucalyptus / ivory / muted-rose system */
:root {
  --ink: #172326;
  --ink-deep: #0d1517;
  --paper: #f7f8f5;
  --paper-warm: #e9eeea;
  --paper-bright: #ffffff;
  --muted: #667477;
  --line: rgba(23, 35, 38, .16);
  --line-light: rgba(247, 248, 245, .18);
  --accent: #c96f68;
  --accent-soft: #e7aaa3;
  --mint: #cfe9de;
}

body { background: var(--paper); }
.site-shell { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 70%, #f1ede5 100%); }
.site-header { backdrop-filter: blur(14px); transition: background .35s ease, padding .35s ease; }
.site-header.scrolled { background: rgba(23, 21, 43, .8); padding-top: 14px; padding-bottom: 14px; }
.hero { isolation: isolate; }
.hero::before { background: radial-gradient(circle at 80% 34%, rgba(255,107,87,.14), transparent 24%), radial-gradient(circle at 30% 15%, rgba(184,243,220,.08), transparent 26%), var(--ink); }
.hero::after { border-color: rgba(255,107,87,.3); box-shadow: 0 0 0 55px rgba(255,107,87,.04), 0 0 0 110px rgba(184,243,220,.035); animation: orbit-drift 18s ease-in-out infinite alternate; }
.hero-grid { position: relative; }
.hero-grid::before { content: ''; position: absolute; inset: 15% 42% 0 -8%; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, black, transparent); pointer-events: none; }
.hero h1 { text-shadow: 0 15px 40px rgba(0,0,0,.18); }
.hero-lede { color: var(--mint); }
.button-primary { box-shadow: 0 12px 28px rgba(255,107,87,.2); }
.button-primary:hover { background: var(--mint); }
.portrait-card { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .18s ease-out, border-color .3s ease, box-shadow .3s ease; box-shadow: 0 26px 60px rgba(0,0,0,.16); }
.portrait-card:hover { border-color: rgba(255,107,87,.72); box-shadow: 0 32px 72px rgba(0,0,0,.24), 0 0 0 1px rgba(255,107,87,.2); }
.portrait-card::before { border-color: rgba(255,107,87,.65); }
.portrait-glow { position: absolute; inset: 20% 15%; background: radial-gradient(circle, rgba(255,107,87,.24), transparent 63%); filter: blur(22px); animation: glow-pulse 5s ease-in-out infinite; }
.portrait-rings { border-color: rgba(255,107,87,.72); box-shadow: 0 0 0 24px rgba(255,107,87,.07), 0 0 0 50px rgba(184,243,220,.05); animation: ring-breathe 8s ease-in-out infinite; }
.portrait-orbit { position: absolute; width: 112%; height: 44%; border: 1px solid rgba(184,243,220,.35); border-radius: 50%; transform: rotate(-25deg); }
.portrait-orbit-two { width: 82%; height: 30%; border-color: rgba(255,107,87,.4); transform: rotate(48deg); }
.portrait-monogram { transform: translate(var(--shift-x, 0px), var(--shift-y, 0px)); transition: transform .18s ease-out; text-shadow: 0 8px 22px rgba(0,0,0,.22); }
.portrait-monogram span { color: var(--accent); }
.portrait-card-photo { background: #eaf2ef; }
.portrait-card-photo::before { display: none; }
.portrait-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: saturate(.92) contrast(1.03); transform: translate(var(--shift-x, 0px), var(--shift-y, 0px)) scale(1.01); transition: transform .25s ease-out, filter .35s ease; }
.portrait-card-photo:hover .portrait-image { filter: saturate(1) contrast(1.05); }
.portrait-card-photo .portrait-glow { z-index: 1; inset: 4% 5%; background: radial-gradient(circle at 48% 32%, rgba(207,233,222,.23), transparent 58%); mix-blend-mode: screen; }
.portrait-card-photo .portrait-rings { z-index: 2; border-color: rgba(201,111,104,.52); box-shadow: 0 0 0 24px rgba(201,111,104,.06), 0 0 0 50px rgba(207,233,222,.08); }
.portrait-card-photo .portrait-orbit { z-index: 2; border-color: rgba(255,255,255,.52); }
.portrait-card-photo .portrait-orbit-two { border-color: rgba(201,111,104,.5); }
.portrait-card-photo .portrait-caption { z-index: 3; text-shadow: 0 1px 5px rgba(0,0,0,.55); }
.metric-strip { background: var(--mint); }
.metric strong { color: var(--ink); }
.impact-card { border: 1px solid transparent; }
.impact-card:hover { border-color: rgba(255,107,87,.45); box-shadow: 0 18px 40px rgba(23,21,43,.09); }
.impact-card-feature { background: linear-gradient(135deg, var(--ink), #243a3a); }
.impact-card-mint { background: var(--mint); color: var(--ink); }
.impact-card-dark { background: linear-gradient(135deg, var(--ink), #243a3a); color: var(--paper); }
.impact-card-soft { background: var(--paper-warm); color: var(--ink); }
.impact-card-dark p { color: rgba(247,248,245,.7); }
.impact-card-dark .card-stat { color: var(--accent); }
.impact-card-dark .card-stat small { color: rgba(247,248,245,.58); }
.impact-card-soft .card-stat { color: var(--ink); }
.impact-card-dark { background: linear-gradient(135deg, #1d3131, var(--ink)); }
.card-link, .text-link:hover, .card-link:hover { color: var(--accent); }
.timeline-current .timeline-dot { background: var(--accent); }
.capabilities { background: var(--mint); }
.capability-cloud span:nth-child(2), .capability-cloud span:nth-child(5), .capability-cloud span:nth-child(8) { background: var(--ink); }
.quote-band blockquote { color: var(--ink); }
.contact-panel { background: radial-gradient(circle at 75% 18%, rgba(255,107,87,.2), transparent 26%), var(--ink); }
.contact-panel::after { color: rgba(255,107,87,.09); }

@keyframes orbit-drift { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-18px, 12px, 0) rotate(4deg); } }
@keyframes glow-pulse { 0%, 100% { opacity: .65; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes ring-breathe { 0%, 100% { transform: scale(.96); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero::after, .portrait-glow, .portrait-rings { animation: none; }
}


/* Supporting information: proof-in-practice layer */
.proof-grid { display: grid; grid-template-columns: .82fr 1fr 1fr; gap: 16px; margin-top: 76px; }
.proof-intro { padding: 27px 6px 18px 0; }
.proof-intro .panel-label { margin-bottom: 27px; color: var(--accent); }
.proof-intro h3 { margin: 0 0 22px; font-family: var(--display); font-size: clamp(2rem, 3vw, 3.3rem); font-weight: 400; letter-spacing: -.07em; line-height: .92; }
.proof-intro h3 em { color: var(--accent); font-style: normal; }
.proof-intro p { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.proof-card { position: relative; min-height: 300px; padding: 25px 26px 28px; background: var(--mint); border: 1px solid rgba(23,21,43,.08); transition: transform .3s ease, box-shadow .3s ease; }
.proof-card:hover { transform: translateY(-6px); box-shadow: 0 18px 35px rgba(23,21,43,.12); }
.proof-card-dark { background: linear-gradient(135deg, var(--ink), #243a3a); color: var(--paper); }
.proof-card-wide { grid-column: span 2; min-height: 180px; background: var(--paper-warm); }
.proof-index { display: block; color: var(--accent); font-family: var(--mono); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.proof-card h4 { max-width: 330px; margin: 54px 0 17px; font-family: var(--display); font-size: clamp(1.7rem, 2.7vw, 2.6rem); font-weight: 400; letter-spacing: -.065em; line-height: .95; }
.proof-card p { max-width: 390px; margin: 0; color: rgba(23,21,43,.72); font-size: 12px; line-height: 1.65; }
.proof-card-dark p { color: rgba(247,244,238,.68); }
.proof-card strong { position: absolute; right: 26px; bottom: 26px; max-width: 170px; color: var(--ink); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; line-height: 1.4; text-align: right; text-transform: uppercase; }
.proof-card-dark strong { color: var(--accent-soft); }
.proof-card-wide h4 { margin-top: 30px; }
.proof-card-wide p { max-width: 760px; }

@media (max-width: 850px) {
  .proof-grid { grid-template-columns: 1fr 1fr; margin-top: 55px; }
  .proof-intro { grid-column: span 2; padding-right: 0; }
  .proof-card-wide { grid-column: span 2; }
}

@media (max-width: 520px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-intro, .proof-card-wide { grid-column: auto; }
  .proof-card { min-height: 335px; }
}


/* Case studies and direct recruiter contact actions */
.case-studies { padding-top: 130px; padding-bottom: 130px; }
.case-studies-heading { display: grid; grid-template-columns: .9fr 1fr; gap: 7vw; margin-top: 70px; }
.case-studies-heading p { max-width: 450px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.case-study-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 78px; }
.case-study { position: relative; min-height: 385px; padding: 27px 28px 29px; background: var(--mint); border: 1px solid rgba(23,35,38,.08); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.case-study:hover { transform: translateY(-7px); box-shadow: 0 22px 44px rgba(23,35,38,.13); }
.case-study-feature { grid-column: span 2; min-height: 390px; background: linear-gradient(135deg, var(--ink), #243a3a); color: var(--paper); }
.case-study-dark { background: linear-gradient(135deg, #253b3a, var(--ink)); color: var(--paper); }
.case-study-meta { display: flex; justify-content: space-between; gap: 18px; color: var(--accent); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.case-study-meta span:last-child { color: inherit; opacity: .58; text-align: right; }
.case-study-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: end; margin-top: 64px; }
.case-study h3 { margin: 0; font-family: var(--display); font-size: clamp(2.25rem, 4vw, 4.1rem); font-weight: 400; letter-spacing: -.08em; line-height: .9; }
.case-study h3 em { color: var(--accent); font-style: normal; }
.case-study-grid p, .case-study-summary { max-width: 490px; margin: 0; color: rgba(23,35,38,.73); font-size: 13px; line-height: 1.7; }
.case-study-feature .case-study-grid p, .case-study-dark .case-study-summary { color: rgba(247,248,245,.7); }
.case-study-label { margin-top: 18px !important; color: var(--accent) !important; font-family: var(--mono); font-size: 8px !important; letter-spacing: .14em; text-transform: uppercase; }
.case-study-label:first-child { margin-top: 0 !important; }
.case-study-outcome { display: inline-flex; flex-direction: column; margin-top: 43px; color: var(--accent); font-family: var(--display); font-size: 3.2rem; letter-spacing: -.08em; line-height: .9; }
.case-study-outcome small { margin-top: 6px; color: rgba(247,248,245,.55); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.case-study > h3 { margin-top: 66px; }
.case-study-summary { margin-top: 23px; }
.case-study-footer { position: absolute; right: 28px; bottom: 28px; left: 28px; display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-top: 15px; border-top: 1px solid rgba(23,35,38,.18); color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.case-study-dark .case-study-footer { border-color: rgba(247,248,245,.18); color: rgba(247,248,245,.55); }
.case-study-footer strong { color: var(--ink); font-size: 11px; letter-spacing: .02em; text-align: right; text-transform: none; }
.case-study-dark .case-study-footer strong { color: var(--accent-soft); }
.case-study-resource { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 17px 20px; border: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; transition: background .25s ease, border-color .25s ease, color .25s ease; }
.case-study-resource:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.case-study-resource span:last-child { color: var(--accent); font-size: 15px; }
.contact-layout { position: relative; z-index: 1; display: grid; display: block; max-width: 760px; margin-top: 65px; }
.contact-copy h2 { margin-top: 0; }
.contact-copy > p { margin-top: 38px; }
.document-strip { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: center; margin-top: 34px; padding: 30px; background: var(--paper-warm); border-top: 3px solid var(--accent); }
.document-strip-heading .panel-label { display: block; margin-bottom: 18px; color: var(--accent); }
.document-strip-heading h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); }
.document-strip-heading h2 em { color: var(--accent); font-style: normal; }
.document-strip-heading p { max-width: 420px; margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.document-strip-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.document-strip-links a { min-height: 100px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 15px; background: var(--paper-bright); border: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.document-strip-links a:hover, .document-strip-links a:focus-visible { transform: translateY(-4px); background: var(--ink); border-color: var(--ink); color: var(--paper); }
.document-strip-links a span:last-child { align-self: flex-end; color: var(--accent); font-size: 15px; }
.resource-library { padding-top: 125px; padding-bottom: 125px; }
.resource-heading { display: grid; grid-template-columns: .9fr 1fr; gap: 7vw; margin-top: 70px; }
.resource-heading p { max-width: 470px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 70px; }
.resource-card { position: relative; min-height: 365px; padding: 26px 27px 28px; background: var(--mint); border: 1px solid rgba(23,35,38,.1); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.resource-card:hover { transform: translateY(-7px); box-shadow: 0 22px 44px rgba(23,35,38,.13); }
.resource-card-dark { background: linear-gradient(135deg, var(--ink), #243a3a); color: var(--paper); }
.resource-label { display: block; color: var(--accent); font-family: var(--mono); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.resource-card h3 { margin: 62px 0 20px; font-family: var(--display); font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; letter-spacing: -.075em; line-height: .9; }
.resource-card h3 em { color: var(--accent); font-style: normal; }
.resource-card p { max-width: 320px; margin: 0; color: rgba(23,35,38,.72); font-size: 12px; line-height: 1.65; }
.resource-card-dark p { color: rgba(247,248,245,.7); }
.resource-download { position: absolute; right: 27px; bottom: 26px; left: 27px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 15px; border-top: 1px solid rgba(23,35,38,.2); color: var(--ink); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.resource-card-dark .resource-download { border-color: rgba(247,248,245,.2); color: var(--paper); }
.resource-download span:last-child { color: var(--accent); font-size: 15px; }


@media (max-width: 850px) {
  .case-studies { padding-top: 95px; padding-bottom: 95px; }
  .case-studies-heading { grid-template-columns: 1fr; gap: 24px; margin-top: 55px; }
  .case-study-list { grid-template-columns: 1fr; margin-top: 55px; }
  .case-study-feature { grid-column: auto; }
  .case-study-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 52px; }
  .case-study-outcome { margin-top: 28px; }
  .contact-layout { margin-top: 50px; }
  .resource-library { padding-top: 95px; padding-bottom: 95px; }
  .resource-heading { grid-template-columns: 1fr; gap: 24px; margin-top: 55px; }
  .resource-grid { grid-template-columns: 1fr; margin-top: 55px; }
}

@media (max-width: 520px) {
  .case-study, .case-study-feature { min-height: 440px; padding: 23px; }
  .case-study-feature { min-height: 620px; }
  .case-study-meta { display: block; }
  .case-study-meta span:last-child { display: block; margin-top: 7px; text-align: left; }
  .case-study h3 { margin-top: 52px; font-size: 2.45rem; }
  .case-study-grid { margin-top: 48px; }
  .case-study-footer { right: 23px; bottom: 23px; left: 23px; }
  .resource-card { min-height: 390px; padding: 23px; }
  .resource-card h3 { margin-top: 52px; font-size: 2.45rem; }
  .resource-download { right: 23px; bottom: 23px; left: 23px; }
  .document-strip { display: block; padding: 22px 18px; }
  .document-strip-links { grid-template-columns: 1fr; margin-top: 22px; }
  .document-strip-links a { min-height: 76px; }
}


/* Contact platform rail: inspired by compact executive portfolio contact systems */
.contact-platforms { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(247,248,245,.18); }
.platform-link { display: inline-flex; align-items: center; gap: 9px; min-width: 88px; padding: 11px 12px; border: 1px solid rgba(247,248,245,.2); color: rgba(247,248,245,.72); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease; }
.platform-link:hover, .platform-link:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.platform-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.platform-link span { white-space: nowrap; }
@media (max-width: 520px) { .contact-platforms { gap: 8px; } .platform-link { flex: 1 1 calc(50% - 8px); justify-content: center; } }


/* Target roles and recruiter utility actions */
.impact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.impact-card-feature { grid-column: 1 / -1; }
.target-roles { margin-top: 66px; padding-top: 26px; border-top: 1px solid rgba(23,35,38,.16); }
.target-roles .panel-label { display: block; margin-bottom: 16px; color: var(--accent); }
.target-roles p { max-width: 660px; margin: 0; color: rgba(23,35,38,.7); font-size: 14px; line-height: 1.7; }
.target-role-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.target-role-list span { padding: 10px 12px; background: rgba(247,248,245,.65); border: 1px solid rgba(23,35,38,.13); color: var(--ink); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .target-roles { margin-top: 48px; } .target-role-list span { flex: 1 1 100%; } .contact-actions { display: grid; grid-template-columns: 1fr; } }
@media (max-width: 850px) { .impact-list { grid-template-columns: 1fr; } .impact-card-feature { grid-column: auto; } .document-strip { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; padding: 24px; } .document-strip-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Mobile reliability pass: prioritize the portrait and remove desktop-sized spacing. */
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }
@media (max-width: 850px) {
  .hero { min-height: auto; padding-top: 98px; }
  .hero::after, .hero-grid::before { display: none; }
  .hero-grid { display: flex; flex-direction: column; gap: 28px; min-height: auto; padding: 34px 0 54px; }
  .hero-aside { order: -1; display: flex; flex-direction: column; gap: 15px; width: 100%; }
  .hero-copy { order: 2; min-width: 0; }
  .portrait-card { width: min(100%, 360px); margin: 0 auto; aspect-ratio: .82; }
  .portrait-image { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; object-position: 50% 18%; }
  .hero-note { width: min(100%, 360px); margin: 0 auto; }
  .hero-bottomline { margin-top: 0; }
  .section-frame { min-width: 0; }
  .impact-card, .case-study, .credential-panel, .proof-card { min-width: 0; }
}

/* Desktop hero refinement: keep the opening banner compact and portrait-led. */
@media (min-width: 851px) {
  .hero { min-height: auto; padding-top: 124px; padding-bottom: 18px; }
  .hero::after { display: none; }
  .hero-grid { min-height: 460px; }
  .portrait-card { width: min(100%, 300px); }
  .hero-note { width: min(100%, 300px); margin-top: 16px; font-size: 17px; }
  .hero-bottomline { display: none; }
}

@media (max-width: 520px) {
  .hero { padding-top: 84px; padding-bottom: 0; }
  .hero-grid { gap: 24px; padding-top: 26px; padding-bottom: 16px; }
  .portrait-card { width: min(100%, 320px); }
  .hero-note { font-size: 17px; }
  .hero h1 { font-size: clamp(3.25rem, 17vw, 5.3rem); line-height: .86; }
  .hero-lede { font-size: 1.22rem; line-height: 1.16; }
  .hero-intro { font-size: 13px; line-height: 1.65; }
  .hero-bottomline { display: none; }
  .contact-panel { padding: 44px 20px 32px; }
  .contact-panel h2 { margin-top: 36px; font-size: clamp(3rem, 15vw, 4.8rem); }
  .contact-actions .button { width: 100%; justify-content: space-between; }
  .contact-details { margin-top: 48px; gap: 14px; overflow-wrap: anywhere; }
  .contact-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .platform-link { min-width: 0; width: 100%; justify-content: center; }
  .site-footer { gap: 16px; padding-top: 24px; padding-bottom: 30px; }
  .site-footer > span:last-child { margin-left: auto; }
}
