:root {
  --paper: #ffffff;
  --paper-deep: #f3f6f4;
  --card: #eef3f0;
  --ink: #1c2430;
  --muted: #5c6570;
  --green: #2f6b38;
  --leaf: #8fce63;
  --gold: #8fce63;
  --line: rgba(28, 36, 48, 0.12);
  --serif: "Newsreader", "Iowan Old Style", Palatino, serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --pad: clamp(18px, 4vw, 56px);
  --dark: #172028;
  --cream: #f7faf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: #d5e4c8; }
section[id] { scroll-margin-top: 20px; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.mark { width: 28px; height: 26px; flex: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
  z-index: 60;
}
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.badge-light {
  background: rgba(247, 250, 248, 0.14);
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--leaf);
  color: var(--ink);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn:hover { background: #79be4e; }
.btn-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  background: var(--dark);
  color: var(--cream);
  padding: 18px;
  gap: 8px;
}
.hero-left {
  display: flex;
  flex-direction: column;
  padding: 10px 28px 28px 22px;
  min-height: 100%;
}
.hero-bar { display: flex; align-items: center; justify-content: space-between; }
.hero-copy { margin: auto 0; max-width: 540px; padding: 28px 0 12px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(247, 250, 248, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
}
.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  display: block;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 4.4vw, 3.7rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 16px;
}
.hero .lede {
  margin: 0 0 22px;
  max-width: 38rem;
  color: rgba(247, 250, 248, 0.82);
  font-size: 1.05rem;
}
.hero-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 640px;
  background: #0e1418;
}
.hero-media > img,
.hero-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% 82%;
}
.site-nav {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.site-nav .btn { display: none; }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(247, 250, 248, 0.25);
  border-radius: 999px;
  background: transparent;
  place-content: center;
  gap: 5px;
  position: relative;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--cream);
}
.hero-quote {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  width: min(400px, 86%);
  margin: 0;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: rgba(23, 32, 40, 0.78);
  color: white;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-quote-photo {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 14%;
  box-shadow: 0 0 0 2px rgba(247, 250, 248, 0.28);
}
.hero-quote p {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.35;
}
.hero-quote footer { font-size: 0.82rem; color: rgba(247, 250, 248, 0.75); }

.about { padding: 72px 0 20px; }
.about-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--pad) 28px;
}
.about-head h2,
.section-intro h2,
.faq-intro h2,
.contact-panel h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 12px;
}
.about-head h2 { font-size: clamp(2.5rem, 4.4vw, 3.8rem); margin: 0; }
.about-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.rail {
  overflow: hidden;
  padding: 10px var(--pad) 36px;
}
.rail-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: rail-marquee 55s linear infinite;
}
.rail:hover .rail-track,
.rail:focus-within .rail-track {
  animation-play-state: paused;
}
@keyframes rail-marquee {
  to { transform: translateX(-50%); }
}
.rail img {
  height: 420px;
  width: 340px;
  object-fit: cover;
  border-radius: 18px;
  flex: none;
  background: var(--card);
}
@media (prefers-reduced-motion: reduce) {
  .rail { overflow-x: auto; }
  .rail-track { animation: none; }
  .work-slot { min-height: 0; }
  .work-card {
    position: relative;
    top: auto;
  }
  .work-card-inner { transform: none; }
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px var(--pad) 64px;
  text-align: center;
}
.stats strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.stats h3 { margin: 0 0 6px; font-size: 1rem; }
.stats p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.services { background: var(--paper-deep); padding: 72px var(--pad) 80px; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-intro h2 { font-size: clamp(2.4rem, 4vw, 3.5rem); }
.section-intro p:last-child { margin: 0; color: var(--muted); }
.service-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
}
.service-frame {
  position: relative;
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
  background: #d5ddd8;
}
.service-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-photo.is-portrait { object-position: center 18%; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: 0;
  padding: 18px 0;
  cursor: pointer;
  text-align: left;
}
.acc-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
}
.acc-name svg { width: 26px; height: 26px; flex: none; }
.acc-icon {
  width: 22px;
  height: 22px;
  position: relative;
  flex: none;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 1px;
}
.acc-icon::before { width: 14px; height: 1.5px; left: 4px; top: 10px; }
.acc-icon::after { width: 1.5px; height: 14px; left: 10px; top: 4px; }
.acc-item.is-open .acc-icon { transform: rotate(45deg); }
.acc-panel { display: none; padding: 0 0 16px 38px; }
.acc-item.is-open .acc-panel { display: block; }
.acc-panel p { margin: 0; color: var(--muted); max-width: 38rem; }

.work { padding: 80px 0 40px; }
.work-stack { padding: 0 var(--pad) 8vh; max-width: 1180px; margin: 0 auto; }
.work-slot { min-height: 125svh; }
.work-card {
  position: sticky;
  top: 88px;
}
.work-card-inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border-radius: 28px;
  padding: 22px;
  transform-origin: center center;
  will-change: transform;
  box-shadow: 0 18px 48px rgba(23, 32, 40, 0.14);
}
.work-card.is-dark .work-card-inner { background: var(--dark); color: var(--cream); }
.work-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 18px;
}
.work-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.work-card p { margin: 0 0 14px; color: var(--muted); }
.work-card.is-dark p { color: rgba(247, 250, 248, 0.78); }
.work-card.is-dark { color: var(--cream); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.work-card.is-dark .pills span {
  border-color: rgba(247, 250, 248, 0.25);
  color: var(--cream);
}

.who { padding: 28px var(--pad) 72px; }
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
}
.who-grid article {
  background: var(--paper-deep);
  border-radius: 18px;
  padding: 20px 18px 18px;
  min-height: 180px;
}
.who-grid h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.who-grid p { margin: 0; color: var(--muted); }

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
  padding: 20px var(--pad) 80px;
  max-width: 1180px;
  margin: 0 auto;
}
.faq-intro { position: sticky; top: 28px; }
.faq-intro h2 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.faq-intro p:not(.badge) { color: var(--muted); margin: 0 0 18px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--paper-deep);
  border-radius: 16px;
  padding: 4px 4px 4px 0;
}
.faq-list details[open] { background: #e7eeea; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 500; font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "×"; }
.faq-list details p { margin: 0; padding: 0 48px 16px 18px; color: var(--muted); }

.contact-wrap { padding: 0 var(--pad) 36px; }
.contact-panel {
  background: var(--dark);
  color: var(--cream);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.contact-panel h2 { font-size: clamp(2.6rem, 4vw, 3.6rem); color: white; }
.contact-lead { color: rgba(247, 250, 248, 0.78); max-width: 36rem; margin: 0 0 22px; }
.details { margin: 0; }
.details div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(247, 250, 248, 0.14);
}
.details dt { font-weight: 700; }
.details dd { margin: 0; text-align: right; }
.details a { color: white; }
.form-card {
  background: white;
  color: var(--ink);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 8px;
}
.form-card label { font-weight: 700; font-size: 0.92rem; }
.form-card input,
.form-card textarea {
  width: 100%;
  border: 0;
  background: var(--paper-deep);
  border-radius: 12px;
  padding: 12px 14px;
}
.send {
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--leaf);
  color: var(--ink);
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
}
.send:hover { background: #79be4e; }
.form-note, .form-ok, .form-error { margin: 4px 0 0; font-size: 0.88rem; }
.form-note { color: var(--muted); }
.form-ok { background: rgba(143, 206, 99, 0.35); color: var(--ink); padding: 10px 12px; border-radius: 10px; }
.form-error { background: #fde8e4; padding: 10px 12px; border-radius: 10px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 42px var(--pad) 28px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.site-footer h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 8px;
}
.site-footer p { margin: 0; color: var(--muted); }
.site-footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 8px 0 0;
}

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  body.nav-open .brand { color: var(--ink); }
  body.nav-open .nav-toggle {
    border-color: rgba(28, 36, 48, 0.2);
    background: var(--paper);
  }
  body.nav-open .nav-toggle span { background: var(--ink); }
  body.nav-open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 14px; }
  .hero-left { padding: 6px 6px 18px; }
  .hero-media { min-height: 520px; order: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    padding: 132px var(--pad) 40px;
    transform: translateY(-102%);
    visibility: hidden;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav {
    transform: none;
    visibility: visible;
    z-index: 50;
    overflow: auto;
  }
  .site-nav a:not(.btn) {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 8vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--ink);
    text-shadow: none;
  }
  .site-nav .btn {
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
    font-family: var(--sans);
    font-size: 0.95rem;
  }
  .about-head,
  .service-layout,
  .work-card-inner,
  .faq,
  .contact-panel { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats article:nth-child(1),
  .stats article:nth-child(2) { padding-bottom: 8px; }
  .service-frame { min-height: 280px; height: 280px; }
  .work-card-inner > div { order: 1; }
  .work-card-inner > img { order: 2; height: 240px; }
  .work-slot { min-height: 0; }
  .work-card {
    position: relative;
    top: auto;
  }
  .work-slot + .work-slot { margin-top: 16px; }
  .work-card-inner {
    transform: none;
    will-change: auto;
  }
  .who-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .details div { grid-template-columns: 1fr; }
  .details dd { text-align: left; }
  .rail img { height: 280px; width: 210px; }
  .hero-quote { left: 12px; right: 12px; width: auto; }
  .hero-quote-photo { width: 58px; height: 58px; }
}

@media (max-width: 1100px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.55rem; }
  .hero-media { min-height: 420px; }
  .btn { width: 100%; justify-content: space-between; }
  .site-footer { grid-template-columns: 1fr; }
}
