/* V27 — preferred hero restored + premium staff directory + responsive hardening */
:root{
  --v27-ink:#11110f;
  --v27-gold:#d5ad53;
  --v27-gold-2:#ebcf83;
  --v27-paper:#fbfaf7;
  --v27-ivory:#f4efe6;
  --v27-line:#e2d9c9;
  --v27-muted:#6f685c;
  --v27-shadow:0 22px 70px rgba(40,31,17,.09);
}

/* Preferred hero composition: restore the original visual hierarchy. */
.home-hero-v7{background:#f4efe5!important;padding:22px 0 30px!important}
.hero-v7-frame{width:min(1440px,calc(100% - 32px))!important;min-height:690px!important;border-radius:32px!important;box-shadow:0 24px 90px rgba(32,25,10,.14)!important}
.hero-v7-content{min-height:690px!important;padding:74px clamp(34px,5vw,82px) 116px!important;display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(300px,.56fr)!important;gap:54px!important;align-items:center!important}
.hero-v7-copy{max-width:690px!important;padding:0!important}
html[dir="rtl"] .hero-v7-copy{max-width:650px!important}
.hero-v7-shade{background:linear-gradient(90deg,rgba(4,4,3,.93) 0%,rgba(4,4,3,.78) 34%,rgba(4,4,3,.28) 67%,rgba(4,4,3,.54) 100%),linear-gradient(0deg,rgba(4,4,3,.72),transparent 50%)!important}
html[dir="rtl"] .hero-v7-shade{background:linear-gradient(270deg,rgba(4,4,3,.92) 0%,rgba(4,4,3,.70) 36%,rgba(4,4,3,.28) 69%,rgba(4,4,3,.60) 100%),linear-gradient(0deg,rgba(4,4,3,.72),transparent 50%)!important}
.hero-v7-title{font-size:clamp(3.45rem,5.55vw,5.65rem)!important;line-height:.95!important;margin:18px 0 24px!important;max-width:760px!important}
html[dir="rtl"] .hero-v7-title{font-size:clamp(3rem,4.9vw,5rem)!important;line-height:1.23!important;max-width:640px!important}
.hero-v7-intro{max-width:640px!important;font-size:clamp(.98rem,1.25vw,1.12rem)!important;line-height:1.85!important}
.hero-v7-actions{margin-top:28px!important;display:flex!important;grid-template-columns:none!important;width:auto!important}
.hero-v7-aside{align-self:end!important;display:grid!important;gap:18px!important;max-width:380px!important;justify-self:end!important;margin-bottom:12px!important}
.hero-v7-pills{display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:flex-end!important}
.hero-v7-pills span{padding:8px 11px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:999px!important;background:rgba(8,8,6,.4)!important;backdrop-filter:blur(8px);font-size:.69rem!important;font-weight:800!important;color:#f0ebe1!important}
.hero-v7-office-card{display:grid!important;grid-template-columns:64px 1fr!important;gap:15px!important;align-items:center!important;padding:16px 18px!important;border:1px solid rgba(229,195,110,.28)!important;border-radius:20px!important;background:rgba(8,8,6,.62)!important;backdrop-filter:blur(12px)}
.hero-v7-office-card img{width:58px!important;height:58px!important;object-fit:contain!important}
.hero-v7-office-card small{display:block!important;color:#b9b1a1!important;font-size:.68rem!important;margin-bottom:4px!important}
.hero-v7-office-card strong{display:block!important;color:#fff!important;font-size:.86rem!important;line-height:1.45!important}
.hero-v7-bottom{display:flex!important;position:absolute!important;z-index:3!important;inset-inline:clamp(34px,5vw,82px)!important;bottom:26px!important;padding-top:18px!important;border-top:1px solid rgba(255,255,255,.14)!important;flex-wrap:wrap!important;gap:14px 26px!important;color:#d4cdbf!important;font-size:.74rem!important}
.hero-v7-bottom b{color:#e6c264!important;margin-inline-end:5px!important}
.hero-v7-video-toggle{bottom:22px!important;top:auto!important}
.hero-v7-play-overlay{display:flex!important}
.hero-v7-play-overlay[hidden]{display:none!important}

/* Homepage team: no text collisions, every member has a visible resume action. */
.team-showcase-v27{background:linear-gradient(180deg,#f7f3ec 0%,#f2ede3 100%)!important}
.team-showcase-v27 .team-v7-head{max-width:930px;margin-bottom:34px}
.team-home-grid-v27{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.team-home-card-v27{min-width:0;border:1px solid var(--v27-line);border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 16px 48px rgba(35,29,18,.065);transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}
.team-home-card-v27:hover{transform:translateY(-5px);border-color:#d2b56e;box-shadow:0 28px 65px rgba(35,29,18,.11)}
.team-home-media-v27{position:relative;display:block;aspect-ratio:4/5;overflow:hidden;background:linear-gradient(180deg,#eee8dd,#d8cebd)}
.team-home-media-v27 img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block;transition:transform .5s ease}
.team-home-card-v27:hover .team-home-media-v27 img{transform:scale(1.025)}
.team-home-media-v27.is-document-profile{background:linear-gradient(145deg,#18150f,#0c0b08)}
.team-home-media-v27.is-document-profile img{object-fit:contain!important;padding:26px!important;background:radial-gradient(circle at 50% 35%,rgba(217,179,89,.13),transparent 42%),linear-gradient(145deg,#1a1710,#0c0b08)!important}
.team-home-index-v27{position:absolute;top:14px;inset-inline-start:14px;min-width:36px;height:30px;padding:0 9px;border-radius:99px;background:rgba(13,12,9,.72);border:1px solid rgba(238,210,142,.28);color:#efd17d;display:grid;place-items:center;font:700 .68rem Georgia,serif;backdrop-filter:blur(8px)}
.team-home-copy-v27{padding:19px 19px 18px;display:flex;flex-direction:column;min-height:190px}
.team-home-copy-v27>span{color:#9a7224;font-size:.66rem;font-weight:900;line-height:1.45;text-transform:uppercase;letter-spacing:.06em}
html[dir="rtl"] .team-home-copy-v27>span{text-transform:none;letter-spacing:0}
.team-home-copy-v27 h3{margin:7px 0 14px;font:700 clamp(1.28rem,1.7vw,1.72rem)/1.13 Georgia,serif;letter-spacing:-.02em}
html[dir="rtl"] .team-home-copy-v27 h3{font-family:Tahoma,"Segoe UI",Arial,sans-serif;line-height:1.45;letter-spacing:0}
.team-home-copy-v27 h3 a{color:#171510}
.team-home-actions-v27{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;align-items:center}
.team-home-actions-v27>a{min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 11px;border-radius:10px;border:1px solid #e2d9c8;color:#514b40;font-size:.66rem;font-weight:850;background:#fbfaf7}
.team-home-actions-v27>a:hover{border-color:#c9a24c;color:#171510;background:#fff}
.team-home-actions-v27 .team-resume-mini-v27{background:#171510;color:#f1d58a;border-color:#171510;gap:7px}
.team-resume-mini-v27 b{width:27px;height:23px;border-radius:6px;background:#d6ad53;color:#17120a;display:grid;place-items:center;font-size:.54rem;letter-spacing:.05em}
.team-showcase-v27 .team-v7-footer{margin-top:18px!important}

/* Dedicated team page. */
.team-page-hero-v27{padding:92px 0 70px;background:linear-gradient(135deg,#f6f1e7,#fbfaf7);border-bottom:1px solid var(--v27-line)}
.team-page-hero-inner-v27{max-width:1180px}
.team-page-title-grid-v27{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:70px;align-items:end;margin-top:14px}
.team-page-title-grid-v27 h1{font-size:clamp(3.3rem,5.2vw,5.8rem);line-height:.98;margin:0;max-width:860px}
html[dir="rtl"] .team-page-title-grid-v27 h1{line-height:1.28}
.team-page-intro-v27{padding-inline-start:24px;border-inline-start:1px solid #d6c7aa}
.team-page-intro-v27 p{margin:0;color:#625b50;line-height:1.85;font-size:.92rem}
.team-page-intro-v27 span{display:inline-flex;margin-top:14px;padding:7px 10px;border-radius:999px;background:#171510;color:#e6c66d;font-size:.63rem;font-weight:850}
.team-directory-v27{background:#fbfaf7}
.team-directory-grid-v27{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:84px}
.team-directory-card-v27{display:grid;grid-template-columns:220px minmax(0,1fr);min-width:0;border:1px solid var(--v27-line);border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 14px 42px rgba(40,31,17,.05)}
.team-directory-media-v27{position:relative;min-height:310px;background:#ebe3d6;overflow:hidden}
.team-directory-media-v27 img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.team-directory-media-v27.is-document-profile{background:#11100d}.team-directory-media-v27.is-document-profile img{object-fit:contain;padding:22px;background:radial-gradient(circle at 50% 35%,rgba(217,179,89,.13),transparent 42%),#11100d}
.team-directory-media-v27>span{position:absolute;top:13px;inset-inline-start:13px;min-width:34px;height:28px;border-radius:99px;display:grid;place-items:center;background:rgba(10,9,7,.72);color:#e7c66f;border:1px solid rgba(235,204,126,.25);font:.67rem Georgia,serif}
.team-directory-copy-v27{padding:25px 24px 22px;display:flex;min-width:0;flex-direction:column}
.team-directory-copy-v27 small{color:#967022;font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
html[dir="rtl"] .team-directory-copy-v27 small{text-transform:none;letter-spacing:0}
.team-directory-copy-v27 h2{margin:7px 0 12px;font:700 clamp(1.55rem,2.1vw,2.15rem)/1.12 Georgia,serif;letter-spacing:-.025em}
html[dir="rtl"] .team-directory-copy-v27 h2{font-family:Tahoma,"Segoe UI",Arial,sans-serif;line-height:1.42;letter-spacing:0}
.team-directory-copy-v27 p{margin:0;color:var(--v27-muted);font-size:.78rem;line-height:1.75;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.team-directory-actions-v27{margin-top:auto;padding-top:16px;display:flex;gap:7px;flex-wrap:wrap}
.team-directory-actions-v27 a{min-height:36px;padding:0 10px;border-radius:9px;display:inline-flex;align-items:center;gap:6px;font-size:.62rem;font-weight:850}
.profile-jump-v27{border:1px solid #dfd6c5;color:#49443b;background:#faf8f4}
.resume-chip-v27{background:#171510;color:#f2dd9d}.resume-chip-v27 b{display:grid;place-items:center;min-width:25px;height:22px;padding:0 5px;border-radius:5px;background:#d5ad53;color:#17120a;font-size:.52rem}
.team-profiles-v27{display:grid;gap:28px}
.team-profile-v27{scroll-margin-top:110px;display:grid;grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:54px;align-items:stretch;padding:24px;border:1px solid var(--v27-line);border-radius:30px;background:#fff;box-shadow:var(--v27-shadow)}
.team-profile-v27:nth-child(even){grid-template-columns:minmax(0,1fr) minmax(300px,420px)}
.team-profile-v27:nth-child(even) .team-profile-media-v27{order:2}
.team-profile-media-v27{min-height:540px;border-radius:22px;overflow:hidden;background:#ebe3d6}
.team-profile-media-v27 img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.team-profile-media-v27.is-document-profile{background:#11100d}.team-profile-media-v27.is-document-profile img{object-fit:contain;padding:32px;background:radial-gradient(circle at 50% 34%,rgba(216,175,80,.15),transparent 42%),#11100d}
.team-profile-copy-v27{padding:22px 24px 18px 0;align-self:center;min-width:0}
.team-profile-v27:nth-child(even) .team-profile-copy-v27{padding:22px 0 18px 24px}
html[dir="rtl"] .team-profile-copy-v27{padding:22px 0 18px 24px}html[dir="rtl"] .team-profile-v27:nth-child(even) .team-profile-copy-v27{padding:22px 24px 18px 0}
.team-profile-copy-v27 h2{font-size:clamp(2.5rem,4vw,4.4rem);line-height:1.02;margin:10px 0 17px;max-width:850px}
html[dir="rtl"] .team-profile-copy-v27 h2{line-height:1.32}
.team-profile-bio-v27{max-width:820px;color:#625c52;line-height:1.88;font-size:.92rem;margin:0}
.resume-panel-v27{display:grid;grid-template-columns:minmax(190px,.72fr) minmax(0,1.28fr);gap:18px;align-items:center;margin-top:24px;padding:15px;border:1px solid #e5dccb;border-radius:16px;background:#fbf8f1}
.resume-panel-v27>div:first-child{display:grid;gap:3px}.resume-panel-v27 strong{font-size:.76rem}.resume-panel-v27 small{color:#8b8274;font-size:.62rem}
.resume-panel-actions-v27{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.resume-panel-actions-v27 a{min-width:0;min-height:50px;padding:8px 11px;border-radius:11px;border:1px solid #e0d5c2;background:#fff;color:#2e2a23;display:grid;grid-template-columns:31px minmax(0,1fr) 14px;gap:8px;align-items:center;font-size:.66rem;font-weight:850;line-height:1.35}
.resume-panel-actions-v27 a:hover{border-color:#c89f45;box-shadow:0 8px 22px rgba(40,31,17,.07)}
.resume-panel-actions-v27 b{width:31px;height:29px;border-radius:8px;background:#171510;color:#e9c86f;display:grid;place-items:center;font-size:.55rem;letter-spacing:.05em}.resume-panel-actions-v27 .ui-arrow{margin:0!important}
.team-profile-facts-v27{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:24px;padding-top:21px;border-top:1px solid #e8e1d5}
.team-profile-facts-v27 h3{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;color:#5a5245;margin:0 0 9px}
html[dir="rtl"] .team-profile-facts-v27 h3{text-transform:none;letter-spacing:0}
.team-profile-facts-v27 ul{margin:0;padding-inline-start:18px;color:#746c60}.team-profile-facts-v27 li{font-size:.75rem;line-height:1.65;margin:5px 0}

/* Tablet */
@media(max-width:1120px){
  .hero-v7-content{grid-template-columns:minmax(0,1fr) minmax(280px,.46fr)!important;gap:32px!important}
  .hero-v7-aside{max-width:330px!important}
  .team-home-grid-v27{grid-template-columns:repeat(2,minmax(0,1fr))}
  .team-home-card-v27{display:grid;grid-template-columns:45% 55%}.team-home-media-v27{aspect-ratio:auto;min-height:370px}.team-home-copy-v27{min-height:0}
  .team-directory-card-v27{grid-template-columns:185px minmax(0,1fr)}
  .team-profile-v27,.team-profile-v27:nth-child(even){grid-template-columns:320px minmax(0,1fr);gap:32px}.team-profile-v27:nth-child(even) .team-profile-media-v27{order:0}
  .team-profile-v27:nth-child(even) .team-profile-copy-v27,.team-profile-copy-v27,html[dir="rtl"] .team-profile-copy-v27,html[dir="rtl"] .team-profile-v27:nth-child(even) .team-profile-copy-v27{padding:16px 12px!important}
  .team-profile-media-v27{min-height:470px}
}

@media(max-width:920px){
  .hero-v7-content{grid-template-columns:1fr!important;align-items:end!important;padding-bottom:126px!important}.hero-v7-aside{display:none!important}
  .team-page-title-grid-v27{grid-template-columns:1fr;gap:25px}.team-page-intro-v27{max-width:680px}
  .team-directory-grid-v27{grid-template-columns:1fr}
  .team-directory-card-v27{grid-template-columns:220px minmax(0,1fr)}
  .resume-panel-v27{grid-template-columns:1fr}.team-profile-facts-v27{grid-template-columns:1fr}
}

/* Mobile */
@media(max-width:760px){
  .home-hero-v7{padding:0!important;background:#fff !important}
  .hero-v7-frame{width:100%!important;min-height:calc(100svh - 68px)!important;border-radius:0!important;margin:0!important;box-shadow:none!important}
  .hero-v7-content{min-height:calc(100svh - 68px)!important;display:flex!important;padding:190px 20px 142px!important;align-items:flex-end!important}
  .hero-v7-shade,html[dir="rtl"] .hero-v7-shade{background:linear-gradient(0deg,rgba(3,3,2,.95) 0%,rgba(3,3,2,.77) 43%,rgba(3,3,2,.20) 78%,rgba(3,3,2,.15) 100%)!important}
  .hero-v7-video{object-position:var(--hero-mobile-focus,68%) center!important}
  .hero-v7-title{font-size:clamp(2.65rem,12.5vw,3.65rem)!important;line-height:.98!important;max-width:11ch!important;margin:13px 0 17px!important}
  html[dir="rtl"] .hero-v7-title{font-size:clamp(2.45rem,10.8vw,3.25rem)!important;line-height:1.3!important;max-width:11ch!important}
  .hero-v7-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:9px!important;margin-top:22px!important}.hero-v7-actions .button{width:100%!important;min-height:52px!important}
  .hero-v7-bottom{display:flex!important;inset-inline:20px!important;bottom:27px!important;gap:5px 16px!important;font-size:.63rem!important;padding-top:13px!important}.hero-v7-bottom span:nth-child(3){display:none!important}
  .hero-v7-video-toggle{inset-inline-end:16px!important;bottom:auto!important;top:18px!important}.hero-v7-play-overlay{top:18px!important;inset-inline-start:16px!important;inset-inline-end:auto!important}

  .team-home-grid-v27{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin-inline:calc(-1 * (100vw - 100%)/2);padding:0 7vw 10px;scrollbar-width:none}.team-home-grid-v27::-webkit-scrollbar{display:none}
  .team-home-card-v27{display:block;flex:0 0 84vw;scroll-snap-align:center}.team-home-media-v27{aspect-ratio:4/5;min-height:0}.team-home-copy-v27{min-height:178px}
  .team-v7-footer{display:grid!important;gap:13px!important}.team-v7-footer .button{width:100%}

  .team-page-hero-v27{padding:64px 0 48px}.team-page-title-grid-v27 h1{font-size:clamp(2.65rem,11vw,4rem);line-height:1.02}html[dir="rtl"] .team-page-title-grid-v27 h1{line-height:1.35}.team-page-intro-v27{padding-inline-start:16px}
  .team-directory-grid-v27{margin-bottom:58px}.team-directory-card-v27{grid-template-columns:135px minmax(0,1fr);border-radius:18px}.team-directory-media-v27{min-height:235px}.team-directory-copy-v27{padding:17px 15px}.team-directory-copy-v27 h2{font-size:1.35rem}.team-directory-copy-v27 p{-webkit-line-clamp:3;font-size:.72rem}.team-directory-actions-v27{padding-top:11px}.team-directory-actions-v27 a{min-height:33px;padding:0 8px;font-size:.57rem}
  .team-profile-v27,.team-profile-v27:nth-child(even){grid-template-columns:1fr!important;gap:20px!important;padding:15px!important;border-radius:22px}.team-profile-v27:nth-child(even) .team-profile-media-v27{order:0}.team-profile-media-v27{min-height:0;aspect-ratio:4/5;border-radius:16px}.team-profile-copy-v27,.team-profile-v27:nth-child(even) .team-profile-copy-v27,html[dir="rtl"] .team-profile-copy-v27,html[dir="rtl"] .team-profile-v27:nth-child(even) .team-profile-copy-v27{padding:6px 3px 5px!important}.team-profile-copy-v27 h2{font-size:clamp(2.3rem,10vw,3.45rem)}
  .resume-panel-v27{padding:12px;margin-top:18px}.resume-panel-actions-v27{grid-template-columns:1fr}.resume-panel-actions-v27 a{min-height:48px}.team-profile-facts-v27{gap:15px;margin-top:18px}
}

@media(max-width:520px){
  .hero-v7-content{padding-inline:17px!important;padding-top:170px!important}.hero-v7-title{font-size:clamp(2.35rem,11.7vw,3rem)!important}.hero-v7-bottom{inset-inline:17px!important}
  .team-home-card-v27{flex-basis:88vw}.team-home-copy-v27 h3{font-size:1.45rem}
  .team-directory-card-v27{display:block}.team-directory-media-v27{min-height:0;aspect-ratio:16/11}.team-directory-media-v27 img{object-position:center 18%}.team-directory-media-v27.is-document-profile img{padding:16px}.team-directory-copy-v27{padding:18px}.team-directory-copy-v27 p{-webkit-line-clamp:4}
  .team-page-intro-v27 span{font-size:.58rem}
}
