/* ============ tokens ============ */
:root {
  --ink: #131622;
  --ink-2: #232840;
  --chalk: #f6f5f0;
  --chalk-2: #eceade;
  --cobalt: #2b45e8;
  --lilac: #c9cdf7;
  --muted: #6d7183;
  --muted-light: #9aa0b8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--chalk);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
}

/* ============ nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
  mix-blend-mode: difference;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: .01em;
}
.brand span { color: var(--lilac); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  opacity: .85;
  transition: opacity .25s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  padding: .45rem 1.1rem;
}
a:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--chalk);
}
.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.line {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 1.4;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.6s var(--ease) forwards;
}
.l2 { animation-delay: .5s; stroke: var(--lilac); }
.l3 { animation-delay: .9s; }
.l4 { animation-delay: 1.2s; stroke: var(--lilac); }
.l5 { animation-delay: 1.5s; }
.node {
  fill: var(--lilac);
  opacity: 0;
  animation: pop .5s var(--ease) forwards;
}
.node:nth-of-type(1) { animation-delay: .3s; }
.node:nth-of-type(2) { animation-delay: 1.1s; }
.node:nth-of-type(3) { animation-delay: 1.6s; }
.node:nth-of-type(4) { animation-delay: 1.9s; }
.node:nth-of-type(5) { animation-delay: 2.1s; }
.node:nth-of-type(6) { animation-delay: 2.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: .9; } }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 56rem;
  padding: 6rem clamp(1.25rem, 6vw, 4rem) 5rem;
}
.hero-eyebrow {
  font-size: .85rem;
  color: var(--muted-light);
  margin-bottom: 1.4rem;
  letter-spacing: .02em;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.word-cycle {
  display: inline-block;
  color: var(--lilac);
  font-style: italic;
  min-width: 6.5em;
}
.word-cycle.swap {
  animation: wordIn .6s var(--ease);
}
@keyframes wordIn {
  0%   { opacity: 0; transform: translateY(.35em); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  max-width: 34rem;
  margin-top: 1.6rem;
  color: var(--muted-light);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}
.hero-meta {
  margin-top: 3rem;
  font-size: .85rem;
  color: var(--muted);
}
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  animation: drift 2.4s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ============ buttons ============ */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: .95rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--cobalt); color: #fff; }
.btn-solid:hover { background: #1e34c4; }
.btn-ghost { color: var(--chalk); border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--chalk); }
.btn-lg { font-size: 1.05rem; padding: 1.05rem 2.4rem; }

/* ============ sections ============ */
.section {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 2.8rem;
  max-width: 24em;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.section-head .section-title { margin-bottom: 2.8rem; }
.section-note { color: var(--muted-light); font-size: .95rem; }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ about ============ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-portrait svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.about-caption {
  margin-top: .8rem;
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
}
.about-copy p { color: var(--muted); max-width: 38rem; margin-bottom: 1.1rem; }
.about-facts {
  margin-top: 2.2rem;
  border-top: 1px solid var(--ink-2);
}
.about-facts div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--ink-2);
  font-size: .92rem;
}
.about-facts dt { color: var(--ink-2); font-weight: 600; }
.about-facts dd { color: var(--muted); }

/* ============ steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: .6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-2);
}
.step p { color: var(--muted); font-size: .95rem; }

/* ============ work ============ */
.section-dark {
  background: var(--ink);
  color: var(--chalk);
  max-width: none;
}
.section-dark > * { max-width: 72rem; margin-left: auto; margin-right: auto; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}
.work-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.work-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.thumb-art {
  width: 100%;
  height: 100%;
}
.work-card:hover .work-thumb {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.thumb-a { background: linear-gradient(135deg, #4d3b2f, #a98a6b); }
.thumb-b { background: linear-gradient(135deg, #23382f, #6d9c85); }
.thumb-c { background: linear-gradient(135deg, #2b2f55, #7d84d6); }
.thumb-empty {
  background: transparent;
  border: 1px dashed var(--muted);
  color: var(--muted);
  font-size: 2rem;
}
.work-info { padding: .9rem .25rem 0; }
.work-info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
}
.work-info p { color: var(--muted-light); font-size: .85rem; }
.work-result {
  margin-top: .55rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: var(--lilac) !important;
  font-size: .85rem;
  line-height: 1.55;
}
.thumb-empty + .work-info ~ .work-result { border-top-color: transparent; }

/* ============ roster ============ */
.roster {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 3rem;
}
.roster-item {
  padding: 1.4rem 0;
  border-top: 1px solid var(--ink-2);
}
.roster-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
}
.roster-role { color: var(--cobalt); font-size: .9rem; font-weight: 600; margin: .15rem 0 .5rem; }
.roster-note { color: var(--muted); font-size: .92rem; }
.roster-tags {
  margin-top: .6rem;
  font-size: .8rem;
  color: var(--muted-light);
}

/* ============ services ============ */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 4rem;
}
.service {
  padding: 1.6rem 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: .5rem;
}
.service p { color: var(--muted-light); max-width: 26rem; font-size: .95rem; }
.service-detail {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--lilac);
}
.services-note {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.14);
  max-width: 34rem;
}

/* ============ quotes ============ */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-2);
}
.quote figcaption {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--muted);
}

/* ============ faq ============ */
.faq { max-width: 46rem; }
.faq-item {
  border-top: 1px solid var(--ink-2);
}
.faq-item:last-child { border-bottom: 1px solid var(--ink-2); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  padding: 1.1rem 2.4rem 1.1rem 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: .25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--cobalt);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  color: var(--muted);
  font-size: .95rem;
  padding-bottom: 1.4rem;
  max-width: 38rem;
}

/* ============ contact ============ */
.section-contact {
  max-width: 48rem;
}
.contact-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}
.contact-sub {
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 2.2rem;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.5rem;
  max-width: 42rem;
  text-align: left;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--chalk-2);
  border-radius: 14px;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: .95rem;
  padding: .7rem .9rem;
  border: 1px solid var(--chalk-2);
  border-radius: 8px;
  background: var(--chalk);
  color: var(--ink);
}
.field textarea { resize: vertical; }
.field input.invalid,
.field textarea.invalid { border-color: #c0392b; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cobalt); }
.contact-form .btn { justify-self: start; }
.form-status {
  grid-column: 1 / -1;
  font-size: .9rem;
  margin: 0;
}
.form-status.err { color: #c0392b; }
.form-status.ok { color: #1c7c43; }
.contact-meta {
  margin-top: 1.8rem;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

/* ============ footer ============ */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem) 2rem;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--chalk-2);
}

/* ============ responsive ============ */
@media (max-width: 900px) {
  .roster { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .steps, .services, .quotes { grid-template-columns: 1fr; }
  .services { gap: 0; }
  .roster { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 16rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .word-cycle { min-width: 0; }
  .hero-inner { padding-top: 7rem; }
  .hero-scroll { display: none; }
  .contact-form { grid-template-columns: 1fr; padding: 1.4rem; }
}
