/* DZI — shared styles */
:root {
  --sand: #eadbd0;
  --sand-deep: #cbbab0;
  --mauve: #8f8589;
  --slate: #444553;
  --slate-deep: #383946;
  --teal: #4a8fa3;
  --white: #ffffff;
  --radius-lg: 56px;
  --wrap: 1240px;
  --font: "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-stretch: 112%;
  color: var(--white);
  background: var(--slate);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center;
  padding: .6rem 1rem .8rem;
  transition: background .4s ease, box-shadow .4s ease;
}
.site-header.scrolled {
  background: rgba(68, 69, 83, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.5);
}
.logo {
  font-size: 2.2rem; font-weight: 400; letter-spacing: .04em;
  text-decoration: none; line-height: 1.1;
}
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.1rem; margin-top: .35rem; }
.nav a {
  text-decoration: none; font-size: 1.05rem; letter-spacing: .03em;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: border-color .25s ease, opacity .25s ease; opacity: .9;
}
.nav a:hover, .nav a.active { border-color: currentColor; opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 85vh;
  display: flex; align-items: center;
  padding: 9rem 0 5rem;
  background:
    radial-gradient(60% 40% at 10% 12%, rgba(143,133,137,.35), transparent 70%),
    radial-gradient(70% 55% at 60% 30%, rgba(160,148,150,.6), transparent 70%),
    linear-gradient(180deg, var(--sand) 0%, var(--sand) 16%, #a89c9d 42%, #6a6672 62%, var(--slate) 80%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center;
}
.hero h1 {
  font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.12; margin: 0 0 2.5rem; letter-spacing: -.01em;
}
.name {
  color: var(--teal); font-weight: 800; position: relative; white-space: nowrap;
}
.name::after {
  content: ""; position: absolute; left: -4%; right: -12%; bottom: -.08em; height: .14em;
  background: var(--sand); border-radius: 50%; transform: rotate(-2deg); opacity: .85;
}
.hero p { font-size: 1.2rem; margin: 0 0 1.1rem; max-width: 36ch; }
.hero .lead { max-width: 44ch; }
.circled { position: relative; white-space: nowrap; }
.circled::before {
  content: ""; position: absolute; inset: -.2em -.35em;
  border: 1.5px solid rgba(74,143,163,.75); border-radius: 50%;
  transform: rotate(-3deg);
}
.btn {
  display: inline-block; margin-top: 2.5rem;
  background: var(--white); color: var(--slate);
  font-weight: 600; font-size: 1.1rem; text-decoration: none;
  padding: 1.15rem 3.6rem; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.btn.ghost { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.portrait {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1060 / 815;
  box-shadow: 0 40px 80px -30px rgba(40,40,52,.6);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }

/* Current role — understated note beneath the hero */
.currently { padding: 1.5rem 0 3rem; background: var(--slate); }
.currently-inner { max-width: 760px; text-align: center; }
.currently .eyebrow { margin-bottom: 1.1rem; }
.currently h2 { margin: 0 auto 1.3rem; max-width: 34ch; font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.4; letter-spacing: -.01em; }
.currently-affiliation { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .65rem; font-size: 1rem; color: rgba(255,255,255,.8); }
.currently-affiliation img { display: block; width: 140px; max-width: 45vw; height: auto; object-fit: contain; }
#about { padding-top: 4rem; }
@media (max-width: 560px) {
  .currently { padding: 1rem 0 2.25rem; }
  .currently-affiliation img { width: 120px; }
  #about { padding-top: 3rem; }
}

/* ---------- Sections ---------- */
.section { padding: 7rem 0; }
.section.sand { background: var(--sand); color: var(--slate); }
.section-title {
  font-weight: 400; text-align: center; letter-spacing: -.01em;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.05; margin: 0 0 4rem;
}
.eyebrow {
  display: block; text-align: center; text-transform: uppercase;
  letter-spacing: .25em; font-size: .8rem; color: var(--teal); margin-bottom: 1rem;
}
.prose { max-width: 62ch; margin-inline: auto; font-size: 1.15rem; }
.prose p { margin: 0 0 1.2rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.card {
  border-radius: 32px; padding: 2.2rem;
  background: rgba(255,255,255,.45); border: 1px solid rgba(68,69,83,.12);
}
.section:not(.sand) .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.card h3 { color: var(--teal); font-weight: 500; font-size: 1.35rem; margin: 0 0 .75rem; }
.card p { margin: 0; opacity: .85; }
.card .num { display: block; color: var(--teal); font-weight: 700; margin-bottom: 1rem; letter-spacing: .1em; }

/* Framed panel (like the clients block) */
.frame { background: var(--sand); padding: 4rem 0; }
.panel {
  background: var(--slate); border-radius: 0; padding: 6rem 2rem; text-align: center; overflow: hidden;
}
.panel > p { font-size: 1.35rem; max-width: 34ch; margin: 0 auto 4rem; }

/* Contact */
.contact-mail {
  display: inline-block; font-size: clamp(1.5rem, 3.5vw, 2.6rem); text-decoration: none;
  border-bottom: 1.5px solid var(--teal); padding-bottom: .2rem; margin: 1rem 0 2rem;
}
.contact-mail:hover { color: var(--teal); }
.center { text-align: center; }

/* Qualifications accordions */
.qual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 10%; max-width: 1100px; margin-inline: auto; }
.qual-grid h3 { font-weight: 400; text-align: center; font-size: 2rem; margin: 0 0 3rem; }
.acc { border-top: 1px solid rgba(255,255,255,.4); }
.acc details { border-bottom: 1px solid rgba(255,255,255,.4); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem;
  justify-content: space-between; padding: 1.75rem 0; font-size: 1.1rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 18px; height: 18px;
  background:
    linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.5px 100% no-repeat;
  transition: transform .3s ease;
}
.acc details[open] summary::after { transform: rotate(45deg); }
.acc.left-icon summary { flex-direction: row-reverse; justify-content: flex-end; }
.acc details p { margin: 0 0 1.75rem; opacity: .8; max-width: 52ch; }
.acc.left-icon details p { padding-left: calc(18px + 1rem); }

.about-qualifications { margin-top: 4rem; }
.about-qualifications h3 { margin-bottom: 1.5rem; }

.credential-link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1.75rem; padding: .6rem 1rem;
  border: 1px solid var(--teal); border-radius: 999px;
  color: var(--white); text-decoration: none; font-size: .95rem; font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}
.credential-link:hover, .credential-link:focus-visible { background: var(--teal); border-color: var(--teal); }

/* Logos within expanded Education qualifications */
.edu-acc .edu-entry { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.25rem; align-items: center; margin: 0 0 1.75rem; }
.edu-logo-wrap { display: flex; align-items: center; justify-content: center; min-height: 88px; padding: .75rem; border-radius: 16px; background: #fff; }
.edu-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 64px; object-fit: contain; }
.edu-acc .edu-entry p { margin: 0; padding-left: 0; }
@media (max-width: 560px) {
  .edu-acc .edu-entry { grid-template-columns: 1fr; gap: .75rem; }
  .edu-logo-wrap { width: 150px; }
}

/* Wobbly client wordmarks */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 5rem; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track span {
  font-size: clamp(2.4rem, 5vw, 4.5rem); white-space: nowrap; display: inline-block;
}
.marquee-track span:nth-child(odd) { transform: rotate(-2deg) translateY(-.3rem); }
.marquee-track span:nth-child(even) { transform: rotate(2deg) translateY(.4rem); }
.marquee + .marquee { margin-top: 2.5rem; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 55s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Timeline */
.timeline { max-width: 820px; margin-inline: auto; border-left: 1px solid rgba(68,69,83,.3); padding-left: 2.5rem; }
.timeline li { list-style: none; position: relative; margin-bottom: 2.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-2.5rem - 6px); top: .45rem;
  width: 11px; height: 11px; border-radius: 50%; background: var(--teal);
}
.timeline h3 { font-weight: 500; margin: 0 0 .3rem; font-size: 1.3rem; }
.timeline p { margin: 0; opacity: .8; }
.timeline ul { margin: 0; padding: 0; }

/* Legal pages */
.legal { padding: 8rem 0 6rem; background: var(--slate); color: var(--white); }
.legal .prose { max-width: 700px; margin-inline: 0; }
.legal .prose h1 { font-weight: 300; font-size: clamp(3rem, 7vw, 4.5rem); line-height: 1.1; margin: 0 0 2rem; }
.legal .prose h1 .dot { color: var(--teal); }
.legal .prose h2 { font-weight: 400; font-size: 1.9rem; line-height: 1.2; color: var(--teal); margin: 3rem 0 2rem; }
.legal .prose h2.lead { color: var(--white); margin: 0 0 2rem; }
.legal .prose h3 { font-weight: 400; font-size: 1.35rem; line-height: 1.3; margin: 2rem 0 1rem; }
.legal .prose ul { margin: 0 0 1.2rem; padding-left: 1.4rem; font-size: 1.1rem; line-height: 1.4; }
.legal .prose li { margin-bottom: .6rem; }
.legal .prose .note { background: none; border: 0; padding: 0; font-size: .95rem; }
.legal .prose p { margin: 0 0 1rem; font-size: 1.1rem; line-height: 1.4; }
.legal .prose .small { font-size: .95rem; }
.legal .prose .small-italic { font-size: .95rem; font-style: italic; }
.legal .accent, .legal a { color: var(--sand); }
.legal a { text-underline-offset: 3px; }

/* ---------- Footer with waves ---------- */
.site-footer {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--slate);
  padding: 7rem 0 7rem;
  margin-top: -1px;
}
.footer-bg { background: var(--sand); }
.waves { position: absolute; inset: auto 0 0 0; height: 75%; pointer-events: none; }
.wave {
  position: absolute; left: 0; bottom: 0; width: 200%; height: 100%;
  filter: blur(18px);
  animation: wave-drift linear infinite alternate;
}
.wave svg { width: 100%; height: 100%; display: block; }
.wave.w1 { animation-duration: 38s; opacity: .55; bottom: 10%; }
.wave.w2 { animation-duration: 52s; animation-delay: -12s; opacity: .7; bottom: 2%; }
.wave.w3 { animation-duration: 64s; animation-delay: -30s; opacity: .85; bottom: -12%; }
.wave.w4 { animation-duration: 46s; animation-delay: -20s; bottom: -32%; }
@keyframes wave-drift {
  0%   { transform: translate3d(0, 0, 0) scaleY(1); }
  50%  { transform: translate3d(-25%, 4%, 0) scaleY(1.12); }
  100% { transform: translate3d(-50%, 0, 0) scaleY(.95); }
}
.waves.paused .wave { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .wave, .marquee-track { animation-play-state: paused; }
}

.footer-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr) .5fr; gap: 2rem;
}
.footer-grid p { margin: 0 0 1rem; }
.footer-grid .big { font-size: 1.3rem; }
.footer-grid a.u { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer-grid a.u:hover { color: var(--slate); }
.linkedin { display: inline-flex; color: var(--teal); transition: transform .25s ease; }
.linkedin:hover { transform: translateY(-2px); }
.linkedin svg { width: 26px; height: 26px; }
.heart { color: var(--white); display: inline-block; animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } }

.wave-toggle {
  position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--slate); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
}
.wave-toggle svg { width: 16px; height: 16px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .portrait { order: -1; max-width: 520px; border-radius: 40px; }
  .cards, .qual-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-top: 5rem; }
  .btn { padding: 1rem 2.6rem; }
}
@media (max-width: 560px) {
  .logo { font-size: 1.8rem; }
  .nav a { font-size: .95rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 5rem 0; }
  .panel { padding: 4rem 1.25rem; }
}
