/* ==========================================================================
   META Executive Search — holding page
   Brand palette: brass #C3AF0E · stone #747265 · ink #303030
   ========================================================================== */

:root {
  --brass:      #C3AF0E;
  --brass-deep: #A89509;
  --stone:      #747265;
  --ink:        #303030;
  --paper:      #F7F5F0;
  --hairline:   rgba(48, 48, 48, 0.14);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-utility: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.75rem, 5vw, 5.5rem);
  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-utility);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* --------------------------------------------------------------------------
   Layout — the 34 / 66 split mirrors the proportion of the logo lockup
   -------------------------------------------------------------------------- */

.page {
  display: grid;
  grid-template-columns: 34fr 66fr;
  min-height: 100vh;
  min-height: 100svh;
}

.panel--mark {
  position: relative;
  overflow: hidden;
  background: var(--brass);
}

.panel--content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2.5rem, 6vh, 5rem);
  padding: var(--gutter);
}

/* --------------------------------------------------------------------------
   The mark — oversized and cropped, so it reads as part of a larger structure
   -------------------------------------------------------------------------- */

.lattice {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 152%;
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.lattice g {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 0.9;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.lattice__frame { stroke-width: 1.4; }
.lattice__core  { stroke: rgba(255, 255, 255, 0.72); }

.lattice path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.5s cubic-bezier(0.45, 0, 0.15, 1) forwards;
}

.lattice__frame path { animation-delay: 0.15s; }
.lattice__web   path { animation-delay: 0.55s; }
.lattice__core  path { animation-delay: 1.05s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.masthead__logo {
  width: auto;
  height: clamp(38px, 4.4vw, 52px);
}

/* every block in the right-hand panel shares one measure, so the hairlines
   and the type align to the same right edge */
.masthead,
.statement,
.signoff { max-width: var(--measure); }

.headline {
  margin: 0 0 clamp(1.25rem, 3vh, 1.9rem);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 200;
  font-size: clamp(2.35rem, 5.1vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.headline em {
  font-style: italic;
  font-weight: 200;
}

.lead {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(0.98rem, 1.1vw, 1.075rem);
  color: var(--stone);
}

.lead p { margin: 0; }

/* one blank line below the paragraph, same face and size, set bold.
   Scoped to .lead so it outweighs the `.lead p { margin: 0 }` reset above. */
.lead .lead__note {
  margin-top: 1.65em;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  margin: 0;
}

.contact__row {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.5rem 0.35rem;
  padding: 0.2rem 0;
}

.contact dt {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--stone);
}

.contact dd {
  margin: 0;
  font-size: clamp(0.98rem, 1.1vw, 1.06rem);
}

.link {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.12em;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.45, 0, 0.15, 1);
}

.link:hover::after,
.link:focus-visible::after { transform: scaleX(1); }

:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Colophon
   -------------------------------------------------------------------------- */

.signoff {
  padding-top: clamp(1.5rem, 4vh, 2.25rem);
  border-top: 1px solid var(--hairline);
}

/* a small brass block opens the sign-off, the same device the logo lockup uses */
.signoff__name {
  display: flex;
  align-items: center;
  gap: 0.85em;
  margin: 0 0 1.1rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}

.signoff__name::before {
  content: "";
  flex: none;
  width: 0.72rem;
  height: 0.72rem;
  background: var(--brass);
}

/* --------------------------------------------------------------------------
   Entrance
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s cubic-bezier(0.22, 0.75, 0.2, 1) forwards;
  animation-delay: calc(0.28s + var(--step) * 0.11s);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(180px, 30svh, 280px) 1fr;
  }

  .lattice {
    width: min(84vw, 460px);
    max-width: none;
    transform: translate(-50%, -50%);
  }

  .panel--content {
    gap: clamp(2rem, 5vh, 3rem);
    padding-top: clamp(2.25rem, 6vh, 3.5rem);
    padding-bottom: clamp(2.25rem, 6vh, 3.5rem);
  }

  .masthead,
  .statement,
  .signoff { max-width: none; }
}

@media (max-width: 520px) {
  .contact__row { gap: 0.5rem 0.3rem; }
}

/* --------------------------------------------------------------------------
   Preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .lattice path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .link::after { transition: none; }
}

@media print {
  .page { min-height: 0; }
  .lattice path { stroke-dashoffset: 0; animation: none; }
  .reveal { opacity: 1; transform: none; animation: none; }
}
