:root {
  --ink: #141414;
  --ink-2: #242424;
  --muted: #6c6a66;
  --line: #dedbd4;
  --paper: #f6f4ef;
  --white: #ffffff;
  --accent: #a88d64;
  --accent-soft: #e9e0d1;
  --max: 1180px;
  --radius: 4px;
  --shadow: 0 18px 45px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section { padding: 108px 0; }
.section-sm { padding: 72px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0 0 26px;
}
.section-title.small { font-size: clamp(30px, 4vw, 46px); }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.65; color: #4c4a46; max-width: 760px; }
.section-dark .lead { color: rgba(255,255,255,.72); }
.muted { color: var(--muted); }

.topbar {
  background: #0d0d0d;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar a:hover { color: white; }
.topbar-group { display: flex; align-items: center; gap: 22px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20,20,20,.08);
}
.nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; min-width: 190px; }
.brand img { width: 156px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.nav-links a { position: relative; padding: 31px 0 29px; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { font-size: 12px; font-weight: 800; letter-spacing: .08em; border-left: 1px solid var(--line); padding-left: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: #2b2b2b; }
.btn-light { background: white; color: var(--ink); }
.btn-light:hover { background: #f0ede7; }
.btn-outline { border-color: rgba(255,255,255,.35); color: white; background: transparent; }
.btn-outline:hover { border-color: white; }
.btn-outline-dark { border-color: #b9b5ad; background: transparent; }
.btn-outline-dark:hover { border-color: var(--ink); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: flex;
  align-items: center;
  background: #111;
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent 0%, black 50%, black 100%);
}
.hero::after {
  content: "Cabinet RAZAFINDRATANDRA";
  position: absolute;
  right: -24px;
  bottom: -76px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(120px, 19vw, 300px);
  letter-spacing: -.07em;
  line-height: 1;
  color: rgba(255,255,255,.035);
  pointer-events: none;
  white-space: nowrap;
}
.hero-inner { position: relative; z-index: 2; padding: 105px 0 110px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: end; }
.hero-kicker { color: var(--accent-soft); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; margin-bottom: 26px; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(52px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0;
  max-width: 900px;
}
.hero h1 em { font-style: normal; color: #d9c9ad; }
.hero-copy { border-left: 1px solid rgba(255,255,255,.25); padding-left: 32px; margin-bottom: 8px; }
.hero-copy p { margin: 0 0 28px; color: rgba(255,255,255,.72); font-size: 17px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.trustbar { background: white; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 30px 28px; border-right: 1px solid var(--line); }
.trust-item:first-child { border-left: 1px solid var(--line); }
.trust-value { font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1; margin-bottom: 6px; }
.trust-label { color: var(--muted); font-size: 13px; }

.intro-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.intro-side { position: sticky; top: 140px; }
.rule-title { text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: 12px; color: var(--muted); }
.intro-main p { font-size: 20px; line-height: 1.75; margin-top: 0; }
.intro-main p + p { color: var(--muted); font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: white; padding: 38px 34px 34px; min-height: 290px; position: relative; transition: background .2s ease, transform .2s ease; }
.card:hover { background: #fbfaf7; z-index: 2; }
.card-num { font-size: 11px; letter-spacing: .15em; color: var(--accent); font-weight: 800; margin-bottom: 40px; }
.card h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 27px; line-height: 1.15; margin: 0 0 16px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card-link { position: absolute; left: 34px; bottom: 28px; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.card-link::after { content: " →"; }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; }
.story-visual { background: var(--ink); color: white; position: relative; overflow: hidden; padding: 70px; display: flex; flex-direction: column; justify-content: space-between; }
.story-visual::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  right: -130px; top: -130px;
  box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018);
}
.story-mark { width: 160px; position: relative; z-index: 1; }
.story-quote { position: relative; z-index: 1; max-width: 440px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1.25; }
.story-content { background: var(--paper); padding: 78px 70px; display: flex; flex-direction: column; justify-content: center; }
.story-content p { color: #52504c; }
.founder { margin-top: 28px; padding-top: 24px; border-top: 1px solid #ccc7bd; }
.founder strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 400; }

.profile-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: stretch; }
.profile-panel { background: var(--ink); color: white; padding: 46px; min-height: 510px; position: relative; overflow: hidden; display:flex; flex-direction:column; justify-content:space-between; }
.profile-panel::after { content: "ER"; position:absolute; right:-18px; bottom:-55px; font-family:Georgia,serif; font-size:220px; color:rgba(255,255,255,.04); line-height:1; }
.profile-initials { width: 86px; height: 86px; border: 1px solid rgba(255,255,255,.28); display:grid; place-items:center; font-family:Georgia,serif; font-size:30px; }
.profile-title h3 { font-family: Georgia, serif; font-weight: 400; font-size: 38px; line-height:1.05; margin: 0 0 8px; }
.profile-title p { color: rgba(255,255,255,.65); margin:0; }
.credentials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.credential { border-top: 1px solid var(--line); padding-top: 18px; }
.credential small { display:block; color: var(--accent); text-transform:uppercase; letter-spacing:.12em; font-weight:800; margin-bottom:8px; }
.credential strong { font-family: Georgia, serif; font-weight: 400; font-size: 21px; line-height: 1.25; }
.credential p { color: var(--muted); font-size: 14px; margin:8px 0 0; }

.network-grid { display:grid; grid-template-columns: .85fr 1.15fr; gap:80px; align-items:center; }
.network-box { border:1px solid rgba(255,255,255,.16); padding: 46px; min-height: 340px; display:flex; flex-direction:column; justify-content:space-between; }
.network-label { text-transform:uppercase; letter-spacing:.16em; font-size:11px; color:var(--accent-soft); font-weight:800; }
.network-name { font-family:Georgia,serif; font-size:44px; line-height:1.1; }
.network-name span { display:block; color:rgba(255,255,255,.45); font-size:22px; margin-top:8px; }

.method-grid { display:grid; grid-template-columns: repeat(4,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.method { padding:34px 28px; border-right:1px solid var(--line); }
.method:first-child { border-left:1px solid var(--line); }
.method b { display:block; color:var(--accent); margin-bottom:22px; font-size:12px; }
.method h3 { font-family:Georgia,serif; font-weight:400; font-size:22px; margin:0 0 10px; }
.method p { color:var(--muted); font-size:14px; margin:0; }

.cta { padding: 96px 0; background: #d9c9ad; }
.cta-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:70px; align-items:end; }
.cta h2 { font-family:Georgia,serif; font-size:clamp(38px,5vw,62px); line-height:1.04; font-weight:400; margin:0; }
.cta-actions { display:flex; flex-wrap:wrap; gap:12px; justify-content:flex-end; }

.page-hero { background: var(--ink); color:white; padding: 110px 0 92px; position:relative; overflow:hidden; }
.page-hero::after { content:""; position:absolute; right:-130px; top:-200px; width:520px; height:520px; border:1px solid rgba(255,255,255,.1); transform:rotate(45deg); }
.page-hero h1 { font-family:Georgia,serif; font-weight:400; font-size:clamp(48px,7vw,82px); line-height:1; letter-spacing:-.035em; max-width:900px; margin:0 0 26px; }
.page-hero p { color:rgba(255,255,255,.68); font-size:19px; max-width:760px; margin:0; }
.breadcrumb { margin-bottom:42px; font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:rgba(255,255,255,.5); }
.breadcrumb a { color:white; }

.content-grid { display:grid; grid-template-columns:.72fr 1.28fr; gap:80px; align-items:start; }
.side-nav { position:sticky; top:140px; border-top:1px solid var(--line); }
.side-nav a { display:block; padding:15px 0; border-bottom:1px solid var(--line); font-size:13px; font-weight:700; color:var(--muted); }
.side-nav a:hover { color:var(--ink); }
.prose h2 { font-family:Georgia,serif; font-size:36px; font-weight:400; line-height:1.1; margin:0 0 20px; }
.prose h3 { font-family:Georgia,serif; font-size:25px; font-weight:400; margin:42px 0 12px; }
.prose p { color:#4e4c48; margin:0 0 20px; }
.prose ul { margin:0 0 28px; padding-left:20px; color:#4e4c48; }
.prose li { margin:7px 0; }
.fact-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); margin:44px 0; }
.fact { background:white; padding:26px; }
.fact b { font-family:Georgia,serif; font-size:27px; font-weight:400; display:block; }
.fact span { color:var(--muted); font-size:12px; }

.contact-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:80px; }
.contact-cards { display:grid; gap:1px; background:var(--line); border:1px solid var(--line); }
.contact-card { background:white; padding:28px; }
.contact-card small { display:block; text-transform:uppercase; letter-spacing:.12em; font-size:10px; font-weight:800; color:var(--accent); margin-bottom:8px; }
.contact-card strong { font-family:Georgia,serif; font-size:22px; font-weight:400; }
.contact-card p { margin:5px 0 0; color:var(--muted); font-size:14px; }
.contact-panel { background:var(--paper); padding:52px; }
.contact-panel h2 { font-family:Georgia,serif; font-weight:400; font-size:40px; line-height:1.1; margin:0 0 16px; }
.contact-panel p { color:var(--muted); }
.contact-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }

.footer { background:#0d0d0d; color:white; padding:64px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.2fr .7fr .7fr; gap:70px; padding-bottom:52px; }
.footer-logo { width:170px; margin-bottom:22px; }
.footer p { color:rgba(255,255,255,.55); font-size:13px; max-width:360px; }
.footer h4 { font-size:11px; text-transform:uppercase; letter-spacing:.15em; color:rgba(255,255,255,.45); margin:0 0 18px; }
.footer a { display:block; color:rgba(255,255,255,.8); font-size:13px; margin:9px 0; }
.footer a:hover { color:white; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:22px; display:flex; justify-content:space-between; gap:20px; color:rgba(255,255,255,.4); font-size:11px; }

.reveal { opacity:0; transform:translateY(12px); transition:opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior:auto !important; transition:none !important; }
  .reveal { opacity:1; transform:none; }
}

@media (max-width: 980px) {
  .topbar { display:none; }
  .nav { min-height:72px; }
  .brand img { width:142px; }
  .menu-toggle { display:block; }
  .nav-links {
    position:absolute; left:0; right:0; top:72px; background:white; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
    display:none; flex-direction:column; align-items:stretch; gap:0; padding:14px 24px 22px;
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding:12px 0; }
  .nav-links a::after { bottom:5px; }
  .nav-actions .btn { display:none; }
  .lang { border-left:0; padding-left:0; }
  .hero { min-height:auto; }
  .hero-inner { grid-template-columns:1fr; gap:46px; padding:90px 0; }
  .hero-copy { max-width:650px; }
  .trust-grid { grid-template-columns:repeat(2,1fr); }
  .trust-item:nth-child(odd) { border-left:1px solid var(--line); }
  .intro-grid, .profile-grid, .network-grid, .content-grid, .contact-grid { grid-template-columns:1fr; gap:48px; }
  .intro-side, .side-nav { position:static; }
  .cards { grid-template-columns:repeat(2,1fr); }
  .story-grid { grid-template-columns:1fr; }
  .story-visual, .story-content { padding:58px 44px; }
  .method-grid { grid-template-columns:repeat(2,1fr); }
  .method:nth-child(odd) { border-left:1px solid var(--line); }
  .cta-grid { grid-template-columns:1fr; gap:32px; }
  .cta-actions { justify-content:flex-start; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width:min(var(--max), calc(100% - 30px)); }
  .section { padding:76px 0; }
  .section-sm { padding:54px 0; }
  .hero-inner { padding:72px 0 76px; }
  .hero h1 { font-size:50px; }
  .hero-copy { border-left:0; border-top:1px solid rgba(255,255,255,.2); padding-left:0; padding-top:26px; }
  .trust-grid { grid-template-columns:1fr 1fr; }
  .trust-item { padding:22px 18px; }
  .trust-value { font-size:28px; }
  .cards { grid-template-columns:1fr; }
  .card { min-height:250px; }
  .story-visual, .story-content, .profile-panel, .contact-panel { padding:38px 28px; }
  .credentials, .fact-strip { grid-template-columns:1fr; }
  .method-grid { grid-template-columns:1fr; }
  .method { border-left:1px solid var(--line); }
  .footer-grid { grid-template-columns:1fr; gap:34px; }
  .footer-bottom { flex-direction:column; }
  .page-hero { padding:80px 0 64px; }
  .page-hero h1 { font-size:48px; }
}

/* Leadership portrait */
.profile-photo-panel { padding:0; min-height:560px; justify-content:flex-end; background:#161616; }
.profile-photo-panel::after { display:none; }
.profile-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center top; }
.profile-photo-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(13,13,13,.92) 0%, rgba(13,13,13,.42) 35%, rgba(13,13,13,.04) 67%); }
.profile-photo-panel .profile-title { position:relative; z-index:2; padding:34px 38px 38px; }
.direction-profile { display:grid; grid-template-columns:220px 1fr; gap:30px; align-items:start; margin:24px 0 38px; padding-top:10px; }
.direction-profile img { width:220px; aspect-ratio:4/5; object-fit:cover; object-position:center top; display:block; }
.direction-profile h3 { margin:0 0 4px; font-size:28px; }
.direction-role { margin:0 0 18px !important; color:var(--accent) !important; font-weight:700; font-size:14px; letter-spacing:.02em; }
@media (max-width: 680px) {
  .direction-profile { grid-template-columns:1fr; }
  .direction-profile img { width:100%; max-width:320px; }
  .profile-photo-panel { min-height:520px; }
}


/* V4 — premium credentials and pre-loss expertise */
.preloss-feature {
  margin: 42px 0 34px;
  min-height: 310px;
  display: grid;
  grid-template-columns: .42fr 1.58fr;
  background: linear-gradient(135deg, #111 0%, #24211d 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  position: relative;
}
.preloss-feature::after {
  content:""; position:absolute; width:330px; height:330px; border:1px solid rgba(217,201,173,.18);
  border-radius:50%; right:-110px; top:-170px; box-shadow:0 0 0 70px rgba(217,201,173,.025),0 0 0 140px rgba(217,201,173,.018);
}
.preloss-code {
  display:flex; align-items:center; justify-content:center; min-height:310px;
  font-family:Georgia,"Times New Roman",serif; font-size:clamp(76px,10vw,138px); letter-spacing:-.06em;
  color:rgba(217,201,173,.84); border-right:1px solid rgba(255,255,255,.12); position:relative; z-index:1;
}
.preloss-copy { padding:52px 58px; position:relative; z-index:1; }
.preloss-copy .eyebrow { color:#d9c9ad; margin-bottom:12px; }
.preloss-copy h3 { font-family:Georgia,"Times New Roman",serif; font-weight:400; font-size:clamp(30px,4vw,48px); line-height:1.05; margin:0 0 18px; max-width:760px; }
.preloss-copy p { color:rgba(255,255,255,.68); max-width:820px; margin:0 0 26px; font-size:15px; }
.preloss-section { border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.preloss-detail { display:grid; grid-template-columns:.9fr 1.1fr; gap:80px; align-items:start; }
.preloss-points { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:#d6d1c8; border:1px solid #d6d1c8; margin-top:30px; }
.preloss-points span { background:#fff; padding:18px 20px; font-size:13px; font-weight:700; }

.affiliations { background:#fff; overflow:hidden; position:relative; }
.affiliations::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.26; background:linear-gradient(90deg,transparent 0,transparent 50%,#f5f1ea 50%,#f5f1ea 100%); }
.affiliations .container { position:relative; z-index:1; }
.affiliations-head { display:grid; grid-template-columns:1.15fr .85fr; gap:70px; align-items:end; margin-bottom:42px; }
.affiliations-head .section-title { margin-bottom:0; max-width:720px; }
.affiliations-head > p { color:var(--muted); margin:0 0 4px; max-width:520px; }
.affiliation-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.affiliation-card { min-height:255px; background:#fff; border:1px solid var(--line); padding:26px; display:flex; flex-direction:column; justify-content:space-between; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.affiliation-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:#c8beaD; }
.logo-frame { height:105px; display:flex; align-items:center; justify-content:center; padding:16px; background:#faf9f6; border-bottom:1px solid #ece8e0; }
.logo-frame img { max-width:100%; max-height:72px; width:auto; object-fit:contain; }
.logo-frame .stelliant-logo, .stelliant-logo { max-height:54px; }
.logo-frame.wordmark { font-weight:850; letter-spacing:.09em; font-size:30px; color:#171717; }
.apeam-wordmark { letter-spacing:.12em !important; }
.courts-wordmark { font-family:Georgia,"Times New Roman",serif; font-weight:400 !important; font-size:21px !important; line-height:1.1; letter-spacing:.06em !important; text-align:center; }
.affiliation-card > div:last-child { padding-top:22px; }
.affiliation-card strong { display:block; font-family:Georgia,"Times New Roman",serif; font-size:19px; line-height:1.2; font-weight:400; margin-bottom:8px; }
.affiliation-card span { color:var(--muted); font-size:12px; line-height:1.45; display:block; }

.contact-card strong { overflow-wrap:anywhere; }

@media (max-width:980px) {
  .preloss-feature { grid-template-columns:1fr; }
  .preloss-code { min-height:150px; border-right:0; border-bottom:1px solid rgba(255,255,255,.12); }
  .preloss-detail, .affiliations-head { grid-template-columns:1fr; gap:34px; }
  .affiliation-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px) {
  .preloss-copy { padding:36px 26px 40px; }
  .preloss-code { min-height:120px; font-size:82px; }
  .preloss-points, .affiliation-grid { grid-template-columns:1fr; }
  .affiliations::before { display:none; }
  .affiliation-card { min-height:220px; }
}

/* V6 — premium international polish, heritage and leadership fixes */
:root {
  --accent: #9d8158;
  --accent-soft: #eadfce;
  --paper: #f7f5f0;
  --line: #d9d5cd;
}

/* Heritage metadata in hero */
.heritage-line {
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.16);
  color:rgba(255,255,255,.52);
  font-size:11px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.heritage-line span:first-child { color:#d9c9ad; }

/* Stronger premium rhythm */
.hero { background: radial-gradient(circle at 78% 22%, #26221d 0%, #121212 40%, #0c0c0c 76%); }
.hero h1 { text-wrap:balance; }
.hero-copy p { max-width:510px; }
.trustbar { box-shadow:0 14px 40px rgba(0,0,0,.045); position:relative; z-index:3; }
.trust-item { min-height:112px; display:flex; flex-direction:column; justify-content:center; }
.trust-value { color:#1d1b18; }
.card { overflow:hidden; }
.card::before {
  content:"";
  position:absolute;
  left:0; top:0;
  width:100%; height:2px;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .25s ease;
}
.card:hover::before { transform:scaleX(1); }

/* Heritage story block */
.story-year {
  position:relative;
  z-index:1;
  margin:auto 0 34px;
  display:flex;
  align-items:flex-end;
  gap:16px;
}
.story-year span {
  padding-bottom:12px;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:10px;
  font-weight:800;
  color:rgba(255,255,255,.5);
}
.story-year strong {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:clamp(64px,7vw,104px);
  line-height:.82;
  letter-spacing:-.055em;
  color:#d9c9ad;
}
.story-quote { margin-top:0; }

/* Leadership portrait: prevent long surname clipping at every viewport */
.profile-grid { grid-template-columns:minmax(390px,.88fr) 1.12fr; }
.profile-photo-panel { min-height:610px; border:1px solid #242424; box-shadow:0 24px 56px rgba(0,0,0,.12); }
.profile-photo { object-position:center 18%; }
.profile-photo-overlay {
  background:linear-gradient(to top, rgba(10,10,10,.96) 0%, rgba(10,10,10,.68) 28%, rgba(10,10,10,.16) 55%, rgba(10,10,10,0) 73%);
}
.profile-photo-panel .profile-title {
  padding:32px 34px 34px;
  width:100%;
  max-width:100%;
}
.profile-title h3 {
  font-size:clamp(27px,2.55vw,34px);
  line-height:1.04;
  letter-spacing:-.02em;
  max-width:100%;
  overflow:visible;
}
.profile-title h3 span { display:block; }
.profile-title h3 .surname {
  margin-top:5px;
  font-size:.86em;
  letter-spacing:-.035em;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
}
.profile-title p { font-size:15px; }
.profile-linkedin {
  display:inline-flex;
  margin-top:17px;
  padding-top:13px;
  border-top:1px solid rgba(255,255,255,.22);
  color:rgba(255,255,255,.78);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.profile-linkedin:hover { color:#fff; }
.inline-linkedin {
  display:inline-flex;
  margin-top:8px;
  padding-bottom:3px;
  border-bottom:1px solid var(--accent);
  color:#2f2a23;
  font-size:13px;
  font-weight:800;
}
.inline-linkedin:hover { color:var(--accent); }

/* More refined credential cards */
.credential {
  padding:22px 20px 20px;
  border:1px solid var(--line);
  background:#fff;
  min-height:180px;
}
.credentials { gap:12px; }
.credential small { margin-bottom:10px; }

/* Premium affiliation cards */
.affiliation-card { border-radius:2px; }
.affiliation-card:hover { box-shadow:0 22px 48px rgba(30,24,16,.09); }
.network-box { background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.01)); }

/* Phone / long labels */
.topbar-group { white-space:nowrap; }
.contact-card strong { font-size:clamp(19px,2vw,22px); }

@media (max-width:1100px) {
  .profile-grid { grid-template-columns:minmax(350px,.85fr) 1.15fr; gap:48px; }
  .profile-title h3 { font-size:29px; }
}
@media (max-width:980px) {
  .profile-grid { grid-template-columns:1fr; }
  .profile-photo-panel { min-height:680px; max-width:620px; width:100%; }
  .profile-title h3 { font-size:34px; }
}
@media (max-width:640px) {
  .heritage-line { gap:8px 16px; }
  .story-year { margin:38px 0 28px; }
  .profile-photo-panel { min-height:540px; }
  .profile-photo-panel .profile-title { padding:28px 24px 26px; }
  .profile-title h3 { font-size:28px; }
  .profile-title h3 .surname { font-size:.82em; }
  .credential { min-height:auto; }
}
