:root {
  --paper: #f8f5ee;
  --ink: #1b1b1a;
  --muted: #5f5a51;
  --line: #d8cdbb;
  --copper: #b66f3f;
  --copper-dark: #7f4628;
  --black: #11100f;
  --charcoal: #171716;
  --charcoal2: #24211e;
  --white: #fffdf8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 26px 0 18px;
  background: rgba(248,245,238,.96);
  border-bottom: 1px solid var(--line);
}

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

.brand img {
  display: block;
  width: 260px;
  max-width: 58vw;
  height: auto;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--copper);
}

.hero {
  padding: 74px 0 66px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 46px;
  align-items: end;
}

.kicker,
.label {
  margin: 0 0 13px;
  color: var(--copper-dark);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 58px;
  line-height: .98;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.48;
}

.actions {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.secondary {
  font-weight: 700;
  text-decoration-color: var(--copper);
  text-underline-offset: 5px;
}

.note-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.accent-line {
  width: 72px;
  height: 2px;
  margin-bottom: 22px;
  background: var(--copper);
}

.note-card p {
  color: var(--muted);
}

.latin {
  margin-bottom: 0;
  color: var(--copper-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: .03em;
}

.statement {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement p {
  max-width: 900px;
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}

.split,
.contact-grid,
.portrait-layout {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  gap: 44px;
}

.bullet-grid,
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

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

li {
  position: relative;
  padding: 9px 0 10px 20px;
  color: var(--muted);
  border-bottom: 1px solid rgba(216,205,187,.72);
}

li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
}

/* Stacked portrait carousel */
.charcoal-band {
  background:
    radial-gradient(circle at 78% 42%, rgba(182,111,63,.18), transparent 20rem),
    linear-gradient(135deg, var(--charcoal), var(--charcoal2));
  color: var(--white);
  overflow: hidden;
}

.light-label {
  color: #d2a57b;
}

.portrait-copy p:not(.label) {
  max-width: 430px;
  color: rgba(255,253,248,.72);
  font-size: 17px;
}

.sound-note {
  margin-top: 18px;
  font-size: 13px !important;
  color: rgba(255,253,248,.56) !important;
}

.flank-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216,205,187,.36);
  background: rgba(255,253,248,.08);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.flank-arrow:hover {
  border-color: var(--copper);
  background: rgba(182,111,63,.22);
  transform: translateY(-50%) scale(1.05);
}

.flank-prev {
  left: calc(50% - 284px);
}

.flank-next {
  right: calc(50% - 284px);
}

.stack-stage {
  position: relative;
  min-height: 565px;
  isolation: isolate;
  overflow: visible;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.center-axis {
  position: absolute;
  left: 50%;
  top: 54px;
  bottom: 62px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(transparent, rgba(210,165,123,.42), transparent);
  z-index: 0;
}

.center-axis:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(490px, 95vw);
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(210,165,123,.22), rgba(210,165,123,.38), rgba(210,165,123,.22), transparent);
}

.service-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(315px, 68vw);
  min-height: 445px;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(255,253,248,1), rgba(248,245,238,1));
  color: var(--ink);
  border: 1px solid #d8cdbb;
  box-shadow:
    0 28px 70px rgba(0,0,0,.36),
    inset 0 0 0 12px rgba(255,253,248,.92),
    inset 0 0 0 13px rgba(182,111,63,.25);
  transform-origin: 50% 50%;
  transition:
    transform .72s cubic-bezier(.18,.82,.18,1),
    opacity .72s ease,
    filter .72s ease;
  cursor: pointer;
  will-change: transform, opacity;
}

.service-card:after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 96px;
  height: 1px;
  background: rgba(182,111,63,.36);
}

.card-number {
  margin-bottom: 48px;
  color: var(--copper-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.service-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.service-card.active {
  z-index: 9;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1.08);
}

.service-card.next {
  z-index: 5;
  opacity: .76;
  filter: saturate(.86) brightness(.82);
  transform: translate(calc(-50% + 154px), -50%) scale(.94);
}

.service-card.prev {
  z-index: 5;
  opacity: .76;
  filter: saturate(.86) brightness(.82);
  transform: translate(calc(-50% - 154px), -50%) scale(.94);
}

.service-card.far-next {
  z-index: 2;
  opacity: .28;
  filter: saturate(.66) brightness(.58) blur(.15px);
  transform: translate(calc(-50% + 248px), -50%) scale(.82);
}

.service-card.far-prev {
  z-index: 2;
  opacity: .28;
  filter: saturate(.66) brightness(.58) blur(.15px);
  transform: translate(calc(-50% - 248px), -50%) scale(.82);
}

.service-card.is-hovered {
  filter: saturate(.98) brightness(1);
}

.service-card.active.is-hovered {
  transform: translate(-50%, -50%) scale(1.115);
}

.service-card.next.is-hovered {
  opacity: .86;
  transform: translate(calc(-50% + 154px), -50%) scale(.97);
}

.service-card.prev.is-hovered {
  opacity: .86;
  transform: translate(calc(-50% - 154px), -50%) scale(.97);
}

.service-card.far-next.is-hovered {
  opacity: .34;
  transform: translate(calc(-50% + 248px), -50%) scale(.84);
}

.service-card.far-prev.is-hovered {
  opacity: .34;
  transform: translate(calc(-50% - 248px), -50%) scale(.84);
}

.stack-dots {
  position: absolute;
  left: 50%;
  bottom: 6px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
  z-index: 9;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid #d2a57b;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dot.active {
  background: #d2a57b;
}

.notice {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.notice p:last-child {
  max-width: 960px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact {
  padding: 68px 0;
}

.contact-card {
  padding: 28px;
  background: var(--black);
  color: var(--white);
}

.contact-card p {
  margin-bottom: 9px;
}

.contact-card a {
  color: inherit;
  text-decoration-color: var(--copper);
  text-underline-offset: 4px;
}

.name {
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.domain {
  margin-top: 20px;
  color: #d2a57b;
  letter-spacing: .08em;
}

.site-footer {
  padding: 26px 0 38px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-inner p {
  margin-bottom: 0;
}

@media (max-width: 940px) {
  .portrait-layout {
    grid-template-columns: 1fr;
  }

  .stack-stage {
    margin-top: 4px;
  }
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .lead { font-size: 18px; }
  .statement p { font-size: 24px; }

  .bullet-grid,
  .deliverables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stack-stage {
    min-height: 525px;
  }

  .service-card {
    width: min(288px, 76vw);
    min-height: 410px;
    padding: 28px 24px;
  }

  .service-card.active {
    transform: translate(-50%, -50%) scale(1.04);
  }

  .service-card.next {
    transform: translate(calc(-50% + 70px), -50%) scale(.92);
  }

  .service-card.prev {
    transform: translate(calc(-50% - 70px), -50%) scale(.92);
  }

  .service-card.active.is-hovered {
    transform: translate(-50%, -50%) scale(1.065);
  }

  .service-card.next.is-hovered {
    transform: translate(calc(-50% + 70px), -50%) scale(.94);
  }

  .service-card.prev.is-hovered {
    transform: translate(calc(-50% - 70px), -50%) scale(.94);
  }

  .service-card.far-next,
  .service-card.far-prev {
    opacity: 0;
  }

  .flank-controls {
    width: 100%;
  }

  .flank-controls button:first-child {
    transform: translateX(-4px);
  }

  .flank-controls button:last-child {
    transform: translateX(4px);
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 28px, 1080px);
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
  }

  .hero {
    padding: 48px 0;
  }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }

  .section,
  .contact {
    padding: 50px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none;
  }
}

@media print {
  body { background: #fff; }

  .nav,
  .actions,
  .flank-arrow,
  .stack-dots,
  .center-axis {
    display: none;
  }

  .site-header,
  .hero,
  .statement,
  .section,
  .notice,
  .contact,
  .site-footer {
    break-inside: avoid;
  }

  h1 { font-size: 38px; }
  h2 { font-size: 26px; }
  .lead { font-size: 15px; }
  .statement p { font-size: 20px; }

  .portrait-layout {
    grid-template-columns: 1fr 1fr;
  }

  .stack-stage {
    min-height: 430px;
  }

  .service-card {
    opacity: 0;
  }

  .service-card.active {
    opacity: 1;
  }
}


.service-card:focus-visible,
.flank-arrow:focus-visible,
.dot:focus-visible {
  outline: 2px solid #d2a57b;
  outline-offset: 4px;
}


.flank-controls {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(690px, 100%);
  display: flex;
  justify-content: space-between;
  transform: translate(-50%, -50%);
  z-index: 12;
  pointer-events: none;
}

.flank-controls button {
  pointer-events: auto;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

.flank-controls button:first-child {
  transform: translateX(-22px);
}

.flank-controls button:last-child {
  transform: translateX(22px);
}
