/* Mark Chiaravalloti: implementation of the approved V4 desktop design.
   Desktop layout applies from 1000px up. Mobile design is deferred; the
   small-screen rules below only keep the page usable, as in V4. */

:root {
  --navy: #101b29;
  --cream: #f5f3ef;
  --bronze: #b69b78;
  --gold: #cbb491;
  --text: #25303b;
  --line: #dddcd7;
  --header-h: 76px;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
h1, h2, p { margin-top: 0; }
h1, h2 { line-height: 1.16; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.wrap { max-width: 1190px; margin: auto; padding: 0 38px; }
.smallcaps { text-transform: uppercase; letter-spacing: .20em; font-size: 11px; font-weight: 700; }
.eyebrow { color: var(--bronze); }
.line { width: 46px; height: 2px; background: var(--bronze); margin: 19px 0 26px; }

.section { padding: 98px 0; }
.section h2 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -.032em; margin-bottom: 24px; }
.section-intro { max-width: 690px; font-size: 18px; color: #515a62; }

.cta {
  display: inline-block;
  border: 1px solid var(--gold);
  padding: 12px 21px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  transition: .2s;
}
.cta:hover { background: var(--gold); color: #111b29; }

/* ---------- header and navigation ---------- */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(16, 27, 41, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #f3f3f0;
  backdrop-filter: blur(12px);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.signature { font-family: Georgia, serif; font-size: 21px; letter-spacing: .005em; white-space: nowrap; }
.navlinks { display: flex; align-items: center; gap: 29px; }
.navlinks a { font-size: 12px; text-transform: uppercase; letter-spacing: .10em; color: #d5d9df; white-space: nowrap; }
.navlinks a:hover, .navlinks a:focus { color: #d9bd96; }
.menu-toggle { display: none; background: none; border: 1px solid #6f7580; color: white; border-radius: 3px; padding: 5px 10px; }

/* ---------- hero ---------- */

.hero {
  background: radial-gradient(ellipse at 63% 47%, #414348 0%, #242b35 44%, #101b29 82%);
  color: #fff;
  min-height: 665px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 0; min-height: 665px; }
.hero-content { padding: 100px 0 112px; position: relative; z-index: 1; }
.hero .smallcaps { color: #d0b38c; }
.hero h1 { font-size: clamp(48px, 5.7vw, 83px); letter-spacing: -.047em; max-width: 740px; margin: 25px 0 21px; }
.hero-lede { max-width: 530px; font-size: 19px; color: #d3d8df; line-height: 1.75; margin-bottom: 33px; }
.hero-photo { height: 665px; display: flex; align-items: end; justify-content: center; overflow: hidden; position: relative; }
.hero-photo picture { display: contents; }
.hero-photo img { height: 100%; width: 100%; object-fit: cover; object-position: center 17%; filter: saturate(.91); }
.hero-meta { padding-top: 27px; font-size: 11px; letter-spacing: .11em; color: #aeb7c0; text-transform: uppercase; }

/* ---------- operating record ---------- */

.stats { background: white; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 42px;
}
.metric {
  display: grid;
  grid-template-rows: 84px minmax(68px, auto);
  align-content: start;
  padding: 30px 27px;
  min-height: 182px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.metric strong {
  display: block;
  align-self: start;
  max-width: 100%;
  margin: 0;
  font: 400 clamp(30px, 3.15vw, 46px)/1.13 Georgia, serif;
  color: #162436;
}
.metric span { display: block; align-self: start; max-width: none; font-size: 13px; line-height: 1.52; color: #60666f; }

/* ---------- experience and leadership ---------- */

.leadership { background: #f1f0ec; }
.two-col, .story-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 10%; align-items: start; }
.two-col h2 { margin-bottom: 20px; }
.text-col p { font-size: 17px; color: #4b555e; line-height: 1.86; margin-bottom: 22px; }
/* each paragraph's width chosen so its lines break evenly at 1440 x 900 */
#leadership .text-col > p:nth-of-type(1) { max-width: 527px; }
#leadership .text-col > p:nth-of-type(2) { max-width: 551px; }
/* below 1096px the column is narrower than 527px; this width keeps paragraph 1's lines even */
@media (max-width: 1095px) { #leadership .text-col > p:nth-of-type(1) { max-width: 450px; } }
.principles { margin-top: 26px; border-top: 1px solid #d5d3cd; }
.principle { display: grid; grid-template-columns: 145px 1fr; gap: 25px; border-bottom: 1px solid #d5d3cd; padding: 22px 0; }
.principle b { font-size: 13px; }
.principle span { font-size: 14px; color: #59616b; }

/* ---------- companies and brands ---------- */

.brands { background: var(--navy); color: #fff; }
.brands h2 { color: white; }
.brands .section-intro { color: #bbc3cf; }
.brand-window { overflow: hidden; width: 100%; position: relative; }
.brand-track { display: flex; gap: 13px; width: max-content; padding: 10px 0 23px; will-change: transform; }
.brand-track:focus { outline-offset: 4px; }
.brand {
  flex: 0 0 187px;
  height: 107px;
  padding: 22px;
  border-radius: 3px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand img { width: auto; height: auto; max-width: 100%; max-height: 65px; object-fit: contain; }
.controls { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.controls-label { color: #b5bdc7; }
.ctrl-buttons { display: flex; gap: 10px; }
.arrow { cursor: pointer; background: transparent; border: 1px solid #89919b; color: white; width: 42px; height: 42px; font-size: 19px; }
.arrow:hover { background: #fff; color: #152231; }
.brands-disclaimer { color: #9da6b4; font-size: 12px; max-width: 800px; margin: 21px 0 0; line-height: 1.65; }

/* ---------- testimonials ---------- */

.testimonials { background: #fff; }
.quotes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 43px; }
.quote { background: #f6f5f2; padding: 34px 36px; min-height: 295px; display: flex; flex-direction: column; }
.quotation { font: 64px Georgia, serif; line-height: .75; color: var(--bronze); height: 38px; }
.quote p { font-size: 15px; line-height: 1.8; color: #3c454d; flex: 1; }
.quote-by { font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; border-top: 1px solid #ddd9d2; padding-top: 17px; }

/* ---------- beyond the resume, recognition ---------- */

.story { background: #edeae4; }
.story p { font-size: 17px; color: #4e5760; line-height: 1.85; }
.recognition { background: #fff; border-top: 1px solid #e5e2dd; }
.recognition-panel { display: grid; grid-template-columns: 1fr 2fr; gap: 7%; align-items: start; }
.recognition-panel p { color: #56616b; font-size: 17px; line-height: 1.85; }

/* ---------- connect and footer ---------- */

.contact { background: #172333; color: white; }
.contact .section-intro { color: #c4ccd5; }
.contact h2 { max-width: 800px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.footer { border-top: 1px solid rgba(255, 255, 255, .14); padding: 22px 0; color: #9ca8b5; background: #172333; font-size: 12px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; }

/* ---------- smaller screens (V4 safeguards only) ---------- */

@media (max-width: 920px) {
  .navlinks { gap: 15px; }
  .navlinks a { font-size: 10px; }
  .hero-grid { grid-template-columns: 1fr 40%; }
  .hero h1 { font-size: 56px; }
  .hero-content { padding: 100px 0; }
  .two-col, .story-grid, .recognition-panel { gap: 6%; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 23px; }
  .nav { height: 64px; }
  .signature { font-size: 17px; }
  .menu-toggle { display: block; }
  .navlinks { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #101b29; padding: 23px; flex-direction: column; align-items: flex-start; gap: 21px; }
  .navlinks.open { display: flex; }
  .navlinks a { font-size: 13px; }
  .hero { min-height: 0; }
  .hero-grid { display: flex; flex-direction: column-reverse; min-height: 0; }
  .hero-photo { height: 390px; margin: 0 -23px; width: calc(100% + 46px); }
  .hero-photo img { object-position: center 21%; }
  .hero-content { padding: 42px 0 63px; }
  .hero h1 { font-size: 48px; }
  .hero-lede { font-size: 17px; }
  .section { padding: 70px 0; }
  .section h2 { font-size: 38px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .story-grid, .recognition-panel { display: block; }
  .text-col { margin-top: 28px; }
  .principle { grid-template-columns: 1fr; gap: 5px; }
  .quotes-grid { grid-template-columns: 1fr; }
  .quote { min-height: 0; }
  .footer .wrap { display: block; }
}

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .hero, .hero-grid { min-height: 700px; }
  .hero-grid { grid-template-columns: 1.09fr .91fr; align-items: center; }
  .hero-content { padding: 75px 0 76px; display: flex; flex-direction: column; justify-content: center; min-height: 700px; }
  .hero h1 { font-size: clamp(49px, 5.15vw, 73px); line-height: 1.13; margin: 31px 0 25px; max-width: none; }
  .hero-line { display: block; white-space: nowrap; }
  .hero-lede { max-width: 560px; line-height: 1.65; text-wrap: balance; }
  .hero-photo { height: 700px; align-items: center; }
  .hero-photo img { object-position: center 34%; }
  .hero-meta { margin-top: 11px; padding-top: 18px; }
  .section-intro { max-width: 760px; text-wrap: balance; }
  #record .section-intro { max-width: 730px; }
  #brands .section-intro { max-width: 825px; }
  #voices .section-intro { max-width: 790px; }
  .leadership-line { display: block; margin-bottom: 13px; }
  #leadership h2 { font-size: clamp(31px, 3.3vw, 45px); line-height: 1.14; }

  /* eight cards, four columns, all the same size; every figure is one line,
     so every description starts on the same line in all eight cards */
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .metric { grid-template-rows: auto 1fr; min-height: 0; }
  .metric strong { min-height: 54px; white-space: nowrap; }
  .metric > span { min-height: 67px; text-wrap: balance; }
}

@media (min-width: 1000px) {
  .hero { min-height: calc(100vh - var(--header-h)); }
  .hero-grid { min-height: calc(100vh - var(--header-h)); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 28px; }
  .hero-content { min-height: calc(100vh - var(--header-h)); padding: 54px 0 64px; }
  .hero h1 { font-size: clamp(46px, 4.42vw, 64px); line-height: 1.16; margin: 25px 0 24px; letter-spacing: -.044em; }
  .hero-photo { height: min(66vh, 590px); align-self: center; }
  .hero-photo img { object-fit: contain; object-position: center center; }
  .hero .cta { align-self: flex-start; }
  .hero-meta { margin-top: 25px; padding-top: 24px; }

  .section.screen { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .section.screen > .wrap { width: 100%; }

  .metric { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
