/* Sean Lally | Independent Executive Search. One shared stylesheet. */

/* Tokens */
:root {
  --navy: #0F1B2D;
  --ivory: #F7F4EE;
  --white: #FFFFFF;
  --charcoal: #1E2430;
  --muted: #5B6472;
  --teal: #1F5C5A;
  --teal-dark: #174745;
  --muted-on-navy: #C3CAD6;
  --line: #D6D9DC;
  --line-on-navy: rgba(255, 255, 255, 0.22);
  --error: #9B1C1C;

  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-pad: clamp(3.75rem, 8vw, 7rem);
  --radius: 2px;
}

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

html {
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}
@media (min-width: 900px) {
  html { font-size: 112.5%; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.2rem + 4vw, 4rem); line-height: 1.07; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); font-weight: 500; line-height: 1.25; }

p { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-underline-offset: 0.2em; }
a:hover { color: var(--teal-dark); }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 1px;
}
.section--navy :focus-visible { outline-color: var(--white); }

::selection { background: var(--navy); color: var(--ivory); }

/* Layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); background: var(--ivory); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }
.section--navy p { color: var(--muted-on-navy); }
.section--navy a { color: var(--white); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--white); outline-color: var(--teal); }

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--navy .eyebrow { color: var(--muted-on-navy); }

/* Header and menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
}

.brand { display: block; min-width: 0; line-height: 0; }
.brand img { width: 100%; max-width: 168px; height: auto; }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.25rem;
}
.site-nav.is-open { display: block; }
.site-nav ul { max-width: var(--container); margin-inline: auto; }
.site-nav li + li { border-top: 1px solid var(--line); }
.site-nav a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem; height: 2.9rem;
  padding: 0;
  background: transparent;
  border: 1px solid #8A9099;
  border-radius: var(--radius);
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 1.3rem; height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -0.4rem; }
.menu-toggle__bars::after  { top: 0.4rem; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(0.4rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after  { transform: translateY(-0.4rem) rotate(-45deg); }

@media (min-width: 1100px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 2rem; min-height: 5rem; }
  .brand img { max-width: 208px; }
  .menu-toggle { display: none; }

  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: 0;
  }
  .site-nav ul { display: flex; justify-content: center; gap: clamp(1.1rem, 2vw, 2rem); max-width: none; }
  .site-nav li + li { border: 0; }
  .site-nav a {
    padding: 0.4rem 0;
    font-family: var(--font-sans);
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--charcoal);
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
  }
  .site-nav a:hover { border-bottom-color: var(--teal); }
  .site-nav a[aria-current="page"] { text-decoration: none; border-bottom-color: var(--teal); }
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--teal { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }

.btn--outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: var(--white); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.section--navy a.btn--light { color: var(--navy); }
.btn--light:hover,
.section--navy a.btn--light:hover { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }

.btn--sm { min-height: 2.9rem; padding: 0.6rem 1rem; font-size: 0.85rem; }
.btn--wide { min-width: 13.5rem; }
@media (min-width: 1100px) {
  .btn--sm { min-height: 2.75rem; padding: 0.65rem 1.4rem; font-size: 0.92rem; }
}
.btn:disabled { opacity: 0.6; cursor: wait; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-row--top { margin-top: 2.25rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.link-arrow::after { content: "\2192"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--white); }
.section--navy .link-arrow:hover { color: var(--white); }

/* Hero and page headers */
.hero { padding-block: clamp(4rem, 10vw, 8rem) clamp(3.5rem, 8vw, 6.5rem); }

.hero--image {
  position: relative;
  isolation: isolate;
  background: var(--navy) url("../assets/home-background.jpg") 80% center / cover no-repeat;
}
.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 27, 45, 0.8);
}
.hero--image h1,
.hero--image .hero__lead { color: var(--white); }
.hero--image .eyebrow { color: #D5DAE2; }
.hero--image :focus-visible { outline-color: var(--white); }
@media (max-width: 640px) {
  .hero--image { background-position: 85% center; }
  .hero--image::before { background: rgba(15, 27, 45, 0.88); }
}
.hero h1 { max-width: 15em; margin-bottom: 0.6em; }
.hero h1 span { display: block; }
.hero__lead {
  max-width: 41rem;
  margin-bottom: 2.5rem;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.page-hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 17em; font-size: clamp(2.1rem, 1.1rem + 3.4vw, 3.4rem); }
.page-hero__lead {
  max-width: 41rem;
  margin-top: 1.5rem;
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
}

/* Credibility strip */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip__grid { display: grid; grid-template-columns: 1fr; }
.strip__item { padding: 1.6rem 0; }
.strip__item + .strip__item { border-top: 1px solid var(--line); }
.strip__title {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1.2;
  color: var(--navy);
}
.strip__text { margin: 0; font-size: 0.92rem; color: var(--muted); }
@media (min-width: 760px) {
  .strip__grid { grid-template-columns: repeat(3, 1fr); }
  .strip__item { padding: 2.25rem 2rem; }
  .strip__item:first-child { padding-left: 0; }
  .strip__item + .strip__item { border-top: 0; border-left: 1px solid var(--line); }
}

/* Two sides */
.sides { display: grid; gap: 3.5rem; }
.side { border-top: 2px solid var(--teal); padding-top: 1.75rem; }
.side__label {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.side h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem); font-weight: 400; line-height: 1.2; margin-bottom: 1.1rem; }
.side p { color: var(--charcoal); }
.side .link-arrow { margin-top: 1.5rem; }
@media (min-width: 860px) {
  .sides { grid-template-columns: 1fr 1fr; gap: 0; }
  .side { padding-right: 3.5rem; }
  .side + .side { padding-right: 0; padding-left: 3.5rem; border-left: 1px solid var(--line); }
}

/* Editorial rows */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  gap: 0.75rem 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.row__title { margin: 0; font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); font-weight: 400; }
.row__body p { color: var(--charcoal); }
.row__body .link-arrow { margin-top: 1.1rem; }
.row__num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--teal);
}
.row__meta { margin: 0; color: var(--muted); }
@media (min-width: 800px) {
  .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 2.5rem 0; }
  .row--num { grid-template-columns: 3.5rem minmax(0, 4fr) minmax(0, 7fr); }
}

/* Lists */
.index-list { border-top: 1px solid var(--line); }
.index-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--navy);
  break-inside: avoid;
}
@media (min-width: 640px) {
  .index-list--cols { columns: 2; column-gap: 2.5rem; }
}

.split { display: grid; gap: 3rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.25fr 1fr; gap: 5rem; }
}
.split h3,
.list-label {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.split__more { margin-top: 1.75rem; }

.industries { border-top: 2px solid var(--navy); }
.industries li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  line-height: 1.25;
  color: var(--navy);
  break-inside: avoid;
}
@media (min-width: 760px) {
  .industries { columns: 2; column-gap: 3rem; }
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-list li {
  padding: 0.45rem 1rem;
  border: 1px solid #8A9099;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.also { margin-top: 3rem; }

.statement {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.15;
  color: var(--navy);
}

/* Steps */
.steps { display: grid; gap: 2rem; }
@media (min-width: 640px)  { .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding-top: 1.25rem; border-top: 2px solid var(--teal); }
.step__num {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--teal);
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
.step p { font-size: 0.97rem; color: var(--muted); }


/* About and prose */
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 860px) {
  .two-col { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
  .two-col--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.portrait { width: 100%; max-width: 22rem; aspect-ratio: 4 / 5; object-fit: cover; object-position: 35% 0; background: #E3E6EA; }
.prose h2 { margin-bottom: 0.8em; }
.prose h3 { margin-top: 2.2rem; }
.prose p,
.prose li { color: var(--charcoal); }
.prose ul { margin: 0 0 1.15em; padding-left: 1.2rem; list-style: disc; max-width: 68ch; }
.prose li { margin-bottom: 0.4rem; }
.prose--legal { max-width: 46rem; }
.prose--legal h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.5em; }

.notice {
  margin: 0 0 2.5rem;
  padding: 1.1rem 1.4rem;
  background: var(--white);
  border-left: 3px solid var(--teal);
  font-size: 0.95rem;
  max-width: 46rem;
}

/* Closing call to action */
.cta h2 { max-width: 20ch; }
.cta p { max-width: 38rem; margin-bottom: 2rem; font-size: 1.1rem; }
.cta .btn-row { align-items: center; gap: 1.5rem 2rem; }

/* Forms */
.contact-grid { display: grid; gap: 3.5rem; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 5rem; }
}
.contact-aside { border-top: 2px solid var(--teal); padding-top: 1.5rem; align-self: start; }
.contact-aside h2 { font-size: 1.5rem; }
.contact-aside p + p { margin-top: 1rem; }

.field { margin-bottom: 1.5rem; }
.field label,
.field .label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.field .optional { font-weight: 400; color: var(--muted); }
.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid #7C838C;
  border-radius: var(--radius);
}
.textarea { min-height: 10rem; resize: vertical; }
.input:focus,
.select:focus,
.textarea:focus { border-color: var(--teal); }
.error-msg { display: none; margin: 0.45rem 0 0; font-size: 0.9rem; font-weight: 500; color: var(--error); }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--error); border-width: 2px; }
.field.has-error .error-msg { display: block; }

.check { display: flex; gap: 0.75rem; align-items: flex-start; }
.check input { flex: none; width: 1.3rem; height: 1.3rem; margin: 0.2rem 0 0; accent-color: var(--teal); }
.check label { margin: 0; font-weight: 400; font-size: 0.95rem; color: var(--charcoal); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-summary {
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--error);
  background: var(--white);
  color: var(--error);
  font-weight: 500;
}
.form-summary[hidden] { display: none; }
.form-note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr; gap: 3rem; }
}
.footer-brand img { width: 200px; height: auto; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 30rem; color: var(--muted); }
.footer-col h2 {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col li + li { margin-top: 0.55rem; }
.footer-col a { color: var(--navy); text-decoration-color: var(--line); }
.footer-col a:hover { text-decoration-color: var(--teal); color: var(--navy); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; max-width: none; }

/* Motion: content is visible by default; script hides below the fold items only */
.reveal--pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal--pending.is-visible { opacity: 1; transform: none; }
.steps > .reveal:nth-child(4n + 2) { --delay: 0.08s; }
.steps > .reveal:nth-child(4n + 3) { --delay: 0.16s; }
.steps > .reveal:nth-child(4n + 4) { --delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal--pending { opacity: 1; transform: none; }
}
