/* The Zachary Group event landing page.
   Type, color and spacing follow the zacharycompanies.com design (Source Serif 4 + Manrope, ink/teal/white);
   the sky blue and navy from the printed flyer are used as accents. */

:root {
  --paper: #ffffff;
  --wash: #f5f7f8;
  --ink: #1b2c31;
  --subtle: #52616a;
  --line: #d9e0e3;
  --accent: #21819c;
  --sky: #3eb8e0;
  --navy: #0b2f4a;
  --gutter: 5.5%;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  font: 400 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
figure { margin: 0; }
section { padding: 90px var(--gutter); border-top: 1px solid var(--line); }
h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -.045em; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.12; }
h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -.03em; }

.label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); margin: 0 0 22px;
}
.label-light { color: #d5eff1; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 27px; font-size: 14px; font-weight: 600; letter-spacing: .01em;
  transition: background .18s, box-shadow .18s, color .18s;
}
.button-light { background: #fff; color: #20292d; }
.button-light:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #28515e; }
.text-link {
  display: inline-flex; padding-bottom: 8px; border-bottom: 1px solid #7e939d; font-size: 14px;
  transition: color .18s, border-color .18s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link-light { color: #fff; border-color: #ffffff80; }
.text-link-light:hover { color: #fff; border-color: #fff; }

/* Header */
.site-header {
  position: absolute; z-index: 10; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 95px; padding: 20px var(--gutter);
}
.site-header .brand img { width: 210px; }
.site-header .button { padding: 14px 22px; }

/* Hero */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 780px; height: 100svh; max-height: 1080px; padding: 150px 6vw 130px; border: 0;
  background: #14232a; color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  filter: brightness(.78) saturate(.9);
  animation: drift 28s ease-in-out infinite alternate;
  transform-origin: 55% 60%;
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #13242e70 0%, #18293160 40%, #0c171be6 100%);
}
.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 1040px; }

.lockup {
  display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.6vw, 38px);
  flex-wrap: wrap; margin-bottom: 34px;
}
.lockup-logo { width: clamp(220px, 28vw, 380px); }
.lockup-x { font-family: var(--serif); font-size: clamp(44px, 6vw, 84px); line-height: 1; color: var(--sky); font-weight: 400; transform: translateY(-2px); }
.lockup-city { font-family: var(--serif); font-size: clamp(54px, 7.4vw, 104px); line-height: 1; letter-spacing: -.04em; color: #fff; }

.hero h1 {
  font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.03em;
  max-width: 820px; margin: 0 auto 22px; color: #fff;
}
.hero-sub { font-size: 18px; line-height: 1.6; max-width: 640px; margin: 0 auto; color: #e9f1f3; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 34px; margin-top: 36px; flex-wrap: wrap; }

/* Statement */
.statement { text-align: center; padding: 100px 10%; border-top: 0; }
.statement h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; font-size: clamp(34px, 4vw, 58px); max-width: 980px; margin: 0 auto 28px; }
.statement > p:not(.label) { max-width: 680px; margin: 0 auto; font-size: 18px; color: var(--subtle); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  padding: 0 var(--gutter) 90px; border-top: 0;
}
.stat { background: var(--sky); color: #fff; text-align: center; padding: 30px 18px 32px; }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.03em; }
.stat span { display: block; font-size: 13px; color: var(--navy); margin-top: 10px; line-height: 1.4; }

/* Risk consulting */
.consulting { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: start; background: var(--wash); }
.consulting-intro { position: sticky; top: 90px; }
.consulting-intro h2 { margin-bottom: 24px; }
.consulting-intro > p:not(.label) { color: var(--subtle); max-width: 440px; margin-bottom: 34px; }
.consulting-list { list-style: none; margin: 0; padding: 0; }
.consulting-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 24px; align-items: start;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.consulting-list li:last-child { border-bottom: 1px solid var(--line); }
.consulting-list li > span { font-family: var(--serif); font-size: 15px; color: var(--accent); padding-top: 6px; }
.consulting-list h3 { font-size: 24px; margin-bottom: 10px; }
.consulting-list p { font-size: 15.5px; line-height: 1.7; color: var(--subtle); max-width: 560px; }

/* Who we serve */
.serve-heading { max-width: 860px; margin-bottom: 50px; }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sector { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.sector > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sector:hover > img { transform: scale(1.035); }
.sector::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0e212b10 30%, #0e212be8 100%); }
.sector > div { position: relative; z-index: 2; padding: 32px; width: 100%; }
.sector > div > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #cfe8ef; }
.sector h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; font-size: 29px; line-height: 1.15; margin: 16px 0 14px; }
.sector p { font-size: 14.5px; line-height: 1.65; color: #dbe6ea; }
.coverage { display: flex; align-items: baseline; gap: 30px 40px; flex-wrap: wrap; margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.coverage .label { margin: 0; }
.coverage ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 14px; }
.coverage li { font-size: 14px; font-weight: 600; padding: 9px 16px; border: 1px solid var(--line); color: var(--ink); }

/* Map */
.reach { display: grid; grid-template-columns: 1.15fr .85fr; gap: 6vw; align-items: center; background: var(--wash); }
.reach-map img { width: 100%; }
.reach-map figcaption { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 22px; font-size: 13px; color: var(--subtle); }
.reach-map figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; display: inline-block; }
.swatch-client { background: #9fd6e8; }
.swatch-hyper { background: var(--accent); }
.swatch-mi { background: var(--navy); }
.reach-copy h2 { margin-bottom: 24px; }
.reach-copy > p:not(.label) { color: var(--subtle); font-size: 17px; }

/* Closing */
.closing { display: grid; grid-template-columns: .7fr 1.3fr; gap: 6vw; align-items: center; padding-block: 80px; }
.closing-portrait { max-width: 400px; aspect-ratio: 1; overflow: hidden; background: var(--wash); }
.closing-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.closing-copy h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; font-size: clamp(36px, 4.2vw, 60px); margin-bottom: 24px; }
.closing-copy > p:not(.label) { font-size: 17px; max-width: 600px; color: var(--subtle); margin-bottom: 30px; }
.closing-direct { display: flex; flex-wrap: wrap; gap: 12px 28px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 34px; font-size: 13.5px; }
.closing-direct a { border-bottom: 1px solid transparent; transition: border-color .18s, color .18s; overflow-wrap: anywhere; }
.closing-direct a:hover { color: var(--accent); border-color: var(--accent); }

/* Footer */
.site-footer { display: grid; grid-template-columns: 230px 1fr; gap: 50px; align-items: start; padding: 50px var(--gutter) 60px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); }
.site-footer img { width: 190px; }
.site-footer p + p { margin-top: 10px; }
.credits { font-size: 12px; }

/* Modal */
.modal {
  width: min(1040px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; margin: auto;
  display: grid; grid-template-columns: .85fr 1.15fr; color: var(--ink); background: var(--paper);
  box-shadow: 0 30px 80px #0b1d2655; overflow: hidden;
}
.modal:not([open]) { display: none; }
.modal::backdrop { background: #061c2abb; backdrop-filter: blur(6px); }
.modal[open] { animation: rise .32s cubic-bezier(.2, .8, .2, 1); }
.modal[open]::backdrop { animation: fade .32s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-aside { background: var(--ink); color: #fff; padding: 48px 44px; display: flex; flex-direction: column; min-height: 100%; background-image: linear-gradient(160deg, #1b2c31, #14232a); }
.modal-aside > img { width: 170px; margin-bottom: 44px; }
.modal-aside h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.18; margin-bottom: 20px; }
.modal-aside > p:not(.label) { font-size: 15px; line-height: 1.7; color: #d9e4e8; }
.modal-aside a { border-bottom: 1px solid #ffffff60; }
.modal-person { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 36px; }
.modal-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.modal-person strong { display: block; font-weight: 600; font-size: 15px; }
.modal-person span { display: block; font-size: 13px; color: #b9c9cf; }

.modal { position: relative; }
.modal-form { padding: 52px 48px 44px; margin: 0; }
.modal-close {
  position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; font-size: 28px; line-height: 1;
  color: var(--subtle); transition: color .18s, background .18s;
}
.modal-close:hover { color: var(--ink); background: var(--wash); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: block; margin-bottom: 22px; }
.field > span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-bottom: 9px; }
.field > span em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--subtle); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--wash);
  border: 1px solid transparent; border-bottom-color: var(--line); padding: 13px 14px; border-radius: 0;
  transition: border-color .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 86px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--subtle) 50%), linear-gradient(135deg, var(--subtle) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; background: #fff; border-color: var(--accent); }
.field.invalid input, .field.invalid select { border-color: #b4432f; }
.choice { border: 0; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-bottom: 11px; padding: 0; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-block; padding: 11px 18px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: background .18s, color .18s, border-color .18s; cursor: pointer; }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { box-shadow: 0 0 0 2px var(--sky); }
.trap { position: absolute; left: -9999px; }
.form-error { font-size: 14px; color: #b4432f; margin: -6px 0 16px; }
.form-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.form-fine { font-size: 12px; color: var(--subtle); margin-top: 22px; }
.button[disabled] { opacity: .6; cursor: progress; }
.form-done { text-align: center; padding: 30px 0 10px; }
.done-mark { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border: 1px solid var(--accent); color: var(--accent); font-size: 24px; margin-bottom: 26px; }
.form-done h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -.03em; margin-bottom: 14px; }
.form-done p { color: var(--subtle); max-width: 380px; margin: 0 auto 30px; }

/* Responsive */
@media (max-width: 1000px) {
  .consulting { grid-template-columns: 1fr; gap: 40px; }
  .consulting-intro { position: static; }
  .sector-grid { grid-template-columns: 1fr; }
  .sector { min-height: 420px; }
  .reach { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; }
  .closing-portrait { max-width: 300px; }
  .modal { grid-template-columns: 1fr; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; }
  .modal-aside { padding: 30px 28px 26px; }
  .modal-aside > img { margin-bottom: 22px; width: 140px; }
  .modal-aside .label { margin-bottom: 12px; }
  .modal-aside h2 { font-size: 23px; margin-bottom: 0; }
  .modal-aside > p:not(.label), .modal-person { display: none; }
  .modal-close { color: #fff; }
  .modal-close:hover { color: #fff; background: #ffffff22; }
}
@media (max-width: 700px) {
  section { padding: 60px 6%; }
  .site-header { padding: 15px 22px; min-height: 80px; }
  .site-header .brand img { width: 170px; }
  .site-header .button { padding: 12px 16px; font-size: 13px; }
  .hero { padding: 120px 6% 90px; min-height: 100svh; }
  .lockup { gap: 10px 18px; }
  .lockup-logo { width: 220px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  @media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
  .sector > img, .button, .text-link, .modal[open], .modal[open]::backdrop { transition: none; animation: none; }
  html { scroll-behavior: auto; }
}
