/* Sontag Associates: site styles */

/* Self-hosted so the page does not depend on a third-party font service. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --plum: #4a2c5a;
  --plum-deep: #37203f;
  --plum-light: #8a6a9a;
  --ink: #221a27;
  --ink-soft: #3d3346;
  --muted: #5d5466;
  --paper: #fbf9fc;
  --surface: #ffffff;
  --wash: #f3eef6;
  --line: #e5dcea;
  --line-strong: #cbbdd4;
  --on-plum: #f6f1f8;
  --on-plum-muted: #d8cadf;
  --on-plum-line: rgb(255 255 255 / .18);
  --select: #e2d3ea;

  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --header-h: 84px;
  --section: clamp(80px, 10vw, 144px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--line-strong) var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--plum);
}

::selection { background: var(--select); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--plum); outline-offset: 4px; }
.on-plum :focus-visible { outline-color: #fff; }

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

.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--plum);
  color: #fff;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }

.section { padding-block: var(--section); }

.heading {
  font-size: clamp(2.1rem, 1.3rem + 2.3vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.03em;
}

/* Brand dot motif: two staggered rows */

.dots {
  --dot: 10px;
  --gap: 40px;
  --cols: 6;
  /* Each tile holds one dot per row, offset half a column, so no dot is ever split by a tile edge. */
  --row-1: radial-gradient(circle at 25% 25%, #000 calc(var(--dot) / 2), transparent calc(var(--dot) / 2 + .5px));
  --row-2: radial-gradient(circle at 75% 75%, #000 calc(var(--dot) / 2), transparent calc(var(--dot) / 2 + .5px));
  width: calc(var(--cols) * var(--gap));
  height: var(--gap);
  background: linear-gradient(120deg, var(--plum), var(--plum-light));
  -webkit-mask: var(--row-1) 0 0 / var(--gap) var(--gap) repeat-x, var(--row-2) 0 0 / var(--gap) var(--gap) repeat-x;
  mask: var(--row-1) 0 0 / var(--gap) var(--gap) repeat-x, var(--row-2) 0 0 / var(--gap) var(--gap) repeat-x;
  pointer-events: none;
}
.dots-light { background: linear-gradient(120deg, rgb(255 255 255 / .85), rgb(255 255 255 / .3)); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { width: auto; height: 56px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); }

.nav a {
  position: relative;
  padding-block: 8px;
  font-size: .96875rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--plum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.nav .nav-cta {
  padding: 10px 20px;
  background: var(--plum);
  color: #fff;
  transition: background-color .2s;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--plum-deep); color: #fff; }

.menu-toggle { display: none; }

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 26px;
  background: var(--plum);
  border: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, transform .15s;
}
.button:hover { background: var(--plum-deep); }
.button:active { transform: translateY(1px); }
.button .icon { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.button:hover .icon { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: color .2s;
}
.text-link:hover { color: var(--plum); }

/* Hero */

.hero { position: relative; padding-block: clamp(48px, 7vw, 104px) clamp(72px, 9vw, 128px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero-title {
  max-width: 25ch;
  font-size: clamp(2.1rem, 1.2rem + 2.2vw, 2.95rem);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.hero-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 20px;
  max-width: 520px;
  border-top: 1px solid var(--line-strong);
}
.hero-sign strong { font-size: 1.125rem; font-weight: 600; }
.hero-sign span { color: var(--muted); font-size: 1rem; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(28px, 3.2vw, 44px); }

.hero-portrait { position: relative; justify-self: center; width: min(100%, 500px); }
.hero-portrait img { width: 100%; height: auto; }
.hero-portrait .dots { position: absolute; left: -12%; bottom: 3%; --cols: 5; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease-out) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-portrait img { animation: bloom 1.2s var(--ease-out) .1s backwards; }
  .hero .dots { animation: draw 1.4s var(--ease-out) .35s backwards; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes bloom {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Plum sections */

.on-plum { background: var(--plum); color: var(--on-plum); }
.on-plum .heading { color: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 7vw, 120px);
  align-items: start;
}
.about-grid .dots { margin-top: 40px; --cols: 5; }

.about-lead {
  font-size: clamp(1.45rem, 1.1rem + 1vw, 1.95rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: #fff;
}

.body-copy { max-width: 62ch; }
.body-copy p + p { margin-top: 1.2em; }
.on-plum .body-copy { color: var(--on-plum-muted); }
.about-lead + .body-copy { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--on-plum-line); }

/* Testimonials */

.quote-feature {
  max-width: 1040px;
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.quote-feature p {
  font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.2rem);
  font-weight: 450;
  line-height: 1.14;
  letter-spacing: -.03em;
  text-indent: -.42em;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(40px, 6vw, 96px);
  padding-top: clamp(48px, 6vw, 80px);
}
.quote-grid p { font-size: clamp(1.125rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); text-indent: -.4em; }

.quote-cite {
  display: grid;
  gap: 2px;
  margin-top: 22px;
  font-size: .96875rem;
  line-height: 1.45;
}
.quote-cite strong { font-weight: 600; color: var(--ink); }
.quote-cite span { color: var(--muted); }
.quote-feature .quote-cite { margin-top: 32px; font-size: 1.0625rem; }

/* Services */

.services-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(40px, 6vw, 96px); }

.item-title {
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 2px solid var(--plum);
  font-size: clamp(1.5rem, 1.2rem + .8vw, 1.95rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.item-copy { max-width: 56ch; color: var(--muted); }

/* Data-driven */

.wash { background: var(--wash); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 7vw, 120px);
  align-items: start;
}
.split-intro p { margin-top: 24px; max-width: 44ch; color: var(--muted); }
.split-intro .dots { margin-top: 44px; --cols: 5; }

.stack { display: grid; gap: clamp(36px, 4vw, 52px); }
.stack h3 { margin-bottom: 12px; font-size: 1.375rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--plum); }
.stack p { max-width: 60ch; color: var(--muted); }

/* Client experience */

.photo-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(480px, 46vw, 680px); }
.photo-split-image { position: relative; overflow: hidden; }
.photo-split-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.photo-split-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 112px) clamp(28px, 6vw, 104px);
}
.photo-split-copy .heading { margin-bottom: 28px; }
.photo-split-copy .dots { position: absolute; top: clamp(32px, 4vw, 56px); right: clamp(28px, 4vw, 56px); --cols: 5; }

/* Clients */

.clients-top { align-items: center; }
.clients-top .split-intro p { max-width: 48ch; }

.logo-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logo-grid li {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-grid img { width: var(--w); height: auto; }

.client-types {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 7vw, 120px);
  margin-top: clamp(80px, 10vw, 144px);
  align-items: start;
}
.client-types-quote {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--plum);
}

.type-list { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.type-list li { padding-block: clamp(26px, 3vw, 36px); border-bottom: 1px solid var(--line-strong); }
.type-list h3 { margin-bottom: 10px; font-size: 1.3125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.type-list p { max-width: 62ch; color: var(--muted); }

/* Lauren */

.lauren-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px clamp(40px, 7vw, 120px);
  align-items: center;
}
.lauren-grid .heading { margin-bottom: 32px; }
.credential {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--on-plum-line);
  color: #fff;
  font-weight: 600;
}
.lauren-portrait { position: relative; justify-self: center; width: min(100%, 460px); }
.lauren-portrait img { width: 100%; height: auto; }
.lauren-portrait .dots { position: absolute; left: -10%; bottom: 2%; --cols: 5; }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 7vw, 120px);
  align-items: start;
}

.contact-list { list-style: none; padding: 0; margin-top: 36px; border-top: 1px solid var(--line-strong); }
.contact-list li { border-bottom: 1px solid var(--line-strong); }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  transition: color .2s;
}
.contact-list a:hover { color: var(--plum); }
.contact-list .icon { width: 24px; height: 24px; color: var(--plum); }
.contact-list .label { display: block; font-size: .875rem; color: var(--muted); line-height: 1.3; }
.contact-list .value { display: block; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }

.contact-form {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(55 32 63 / .08), 0 14px 32px -20px rgb(55 32 63 / .22);
}
.contact-form h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.field { display: grid; gap: 8px; }
.field label { font-size: .9375rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7a7082; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgb(74 44 90 / .16); }
.form-note { font-size: .9375rem; color: var(--muted); }
.contact-form .button { justify-self: start; }

/* Footer */

.site-footer { padding-block: clamp(56px, 6vw, 80px) 32px; background: var(--plum-deep); color: var(--on-plum-muted); }
.site-footer :focus-visible { outline-color: #fff; }

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--on-plum-line);
}
.footer-main .brand img { height: 64px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: 1rem; }
.footer-links a { color: var(--on-plum); transition: color .2s; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: .90625rem;
}

/* Tablet */

@media (max-width: 1080px) {
  .hero-grid, .lauren-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .client-types-quote { position: static; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }

  .header-inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; }
  .nav { width: 100%; flex-wrap: wrap; gap: 4px 20px; padding-bottom: 12px; }

  .js .header-inner { height: var(--header-h); flex-wrap: nowrap; }
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid var(--line-strong);
    font-size: .96875rem;
    font-weight: 500;
    cursor: pointer;
  }
  .js .menu-toggle .icon { width: 18px; height: 18px; }
  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(55 32 63 / .3);
  }
  .js .nav:not(.is-open) { display: none; }
  .js .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 1.375rem; font-weight: 500; color: var(--ink); }
  .js .nav a::after { display: none; }
  .js .nav .nav-cta { margin-top: 20px; padding: 16px; border: 0; font-size: 1.0625rem; font-weight: 600; text-align: center; color: #fff; }

  .hero-grid, .lauren-grid, .about-grid, .split, .client-types, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { width: min(100%, 420px); }
  .lauren-portrait { width: min(100%, 400px); order: -1; }
  .photo-split { grid-template-columns: minmax(0, 1fr); }
  .photo-split-image { aspect-ratio: 16 / 10; }
}

/* Phones */

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .two-col, .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-grid li { min-height: 104px; padding: 18px 12px; }
  .logo-grid img { width: calc(var(--w) * .72); }
  .dots { --gap: 32px; --dot: 8px; }
  .hero-portrait .dots { left: 0; }
  .lauren-portrait .dots { left: 0; }
  .footer-main, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
