:root {
  --ink: #14161a;
  --dark: #0e1013;
  --bg: #ffffff;
  --soft: #f4f5f2;
  --muted: #6d747c;
  --muted-light: #a7aeb6;
  --line: #e2e4e0;
  --line-dark: #2a2e33;
  --steel: #4a6d8b;
  --steel-dark: #3a5a75;
  --accent: #1c6bd6;
  --accent-dark: #14539f;
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.14;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #7fb0f0;
}

.centered {
  text-align: center;
}

/* buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent);
}

.button.accent {
  background: var(--accent);
  color: #fff;
}

.button.accent:hover {
  background: var(--accent-dark);
}

.button.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--ink);
}

.button.ghost-light {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
}

.button.ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.centered-actions {
  justify-content: center;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

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

.logo {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
}

.logo-light {
  font-weight: 400;
}

.logo-bold {
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-action {
  padding: 13px 22px;
}

/* hero */

.hero {
  padding: 108px 0 116px;
  background:
    linear-gradient(140deg, var(--steel) 0%, var(--steel-dark) 68%, #2f4c65 100%);
  color: #fff;
}

.hero-inner {
  max-width: 1200px;
}

.hero h1 {
  max-width: 19ch;
  margin: 0 0 26px;
  font-size: clamp(34px, 3.9vw, 54px);
}

.hero-lead {
  max-width: 58ch;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}

/* sections */

.section {
  padding: 118px 0;
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  background: var(--dark);
  color: #fff;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 56px;
}

.section-head h2,
h2.centered {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
}

h2.centered {
  max-width: 24ch;
  margin: 0 auto 56px;
}

/* about */

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}

.about-main h2 {
  max-width: 26ch;
  margin: 0 0 26px;
  font-size: clamp(28px, 3.1vw, 40px);
}

.about-main p {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.about-main .button {
  margin-top: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 30px 34px 30px 0;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat:not(:first-child) {
  padding-left: 34px;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* services */

.service-list {
  padding: 12px 48px;
  background: #fff;
  color: var(--ink);
}

.service-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.service-row h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.service-row p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
}

.service-proof {
  margin-top: 10px !important;
  font-size: 14px;
  font-style: italic;
}

/* mobius */

.mobius-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.mobius-text h2 {
  max-width: 18ch;
  margin: 0 0 22px;
  font-size: clamp(28px, 3.1vw, 42px);
}

.mobius-text p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.mobius-accent {
  color: var(--ink) !important;
  font-weight: 600;
}

.mobius-list {
  border-top: 1px solid var(--line);
}

.mobius-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.mobius-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.mobius-item p {
  margin: 0;
  color: var(--muted);
}

/* projects */

.projects {
  display: grid;
  gap: 48px;
}

.project {
  display: grid;
  justify-items: center;
}

.project-media {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background: #1b1f24;
}

.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media img.is-contained {
  padding: 56px;
  object-fit: contain;
  background: #fff;
}

.project-media.is-plain {
  height: 230px;
  background: linear-gradient(140deg, #1b2a38, #101b25);
}

.project-label {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 0 24px;
  color: #fff;
  font-family: var(--serif);
  font-size: 28px;
  text-align: center;
}

.project-caption {
  width: min(880px, 100%);
  margin-top: 0;
  padding: 46px 52px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.project-status {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-caption h3 {
  margin: 0 0 8px;
  font-size: 32px;
}

.project-subtitle {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.project-caption p {
  margin: 0 auto 18px;
  max-width: 60ch;
  color: var(--muted);
}

.project-points {
  max-width: 56ch;
  margin: 0 auto 22px;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  list-style: none;
  text-align: left;
}

.project-points li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
}

.project-points li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "—";
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto 26px;
  max-width: 620px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-metrics div {
  padding: 18px 10px;
  border-right: 1px solid var(--line);
}

.project-metrics div:last-child {
  border-right: 0;
}

.project-metrics strong {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
}

.project-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.chat-demo {
  max-width: 620px;
  margin: 0 auto 26px;
  padding: 24px;
  background: var(--soft);
  text-align: left;
}

.chat-title {
  margin: 0 0 16px !important;
  color: var(--ink) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chat-thread {
  display: grid;
  gap: 10px;
}

.chat-bubble {
  max-width: 84%;
  margin: 0 !important;
  padding: 12px 16px;
  color: var(--ink) !important;
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble.is-bot {
  justify-self: start;
  border-left: 2px solid var(--accent);
  background: #fff;
}

.chat-bubble.is-user {
  justify-self: end;
  background: var(--accent);
  color: #fff !important;
}

.chat-note {
  margin: 16px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12px;
  font-style: italic;
}

.case-video {
  max-width: 620px;
  margin: 0 auto 26px;
}

.case-video video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #0e1013;
}

.case-video figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.project-tags span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.secondary-title {
  margin: 104px 0 32px;
}

.projects-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.project-mini {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 26px;
  background: var(--dark);
}

.project-mini.is-order {
  background: #141a22;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.project-mini.is-order .project-mini__shot {
  background: linear-gradient(140deg, #1d3247, #14202c);
}

.project-mini.is-order:hover {
  background: #172029;
}

.project-mini.is-clickable {
  cursor: pointer;
  transition: background-color 200ms ease;
}

.project-mini.is-clickable:hover,
.project-mini.is-clickable:focus-visible {
  background: #15181c;
  outline: none;
}

.project-mini__shot {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: #1b1f24;
}

.project-mini__shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-mini__shot img.is-contained {
  padding: 14px;
  object-fit: contain;
  background: #fff;
}

.project-mini__shot .project-media.is-plain {
  height: 230px;
  background: linear-gradient(140deg, #1b2a38, #101b25);
}

.project-label {
  padding: 0 14px;
  font-size: 15px;
  line-height: 1.35;
}

.project-mini h3 {
  margin: 8px 0 6px;
  font-size: 22px;
}

.project-mini p {
  margin: 0 0 12px;
  color: var(--muted-light);
  font-size: 14px;
}

.project-link {
  color: #7fb0f0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.price {
  padding: 40px 34px 40px 0;
  border-right: 1px solid var(--line);
}

.price:last-child {
  border-right: 0;
  padding-right: 0;
}

.price:not(:first-child) {
  padding-left: 34px;
}

.price h3 {
  margin: 0 0 14px;
  font-size: 21px;
}

.price strong {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 34px;
}

.price p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.pricing-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* reviews */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.review {
  padding: 0 8px;
  text-align: center;
}

.review-text {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.55;
}

.review-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.review-meta {
  display: block;
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 13px;
}

/* process */

.steps {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
}

.step-body h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.step-body p,
.step-split {
  margin: 0;
  color: var(--muted);
}

.step-split {
  font-size: 15px;
}

.step-split em {
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
}

/* faq */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: var(--accent);
  content: "+";
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  max-width: 82ch;
  margin: 0 0 28px;
  color: var(--muted);
}

/* contacts */

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.6vw, 48px);
}

.contact-inner > p {
  margin: 0 auto 34px;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

/* footer */

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* modal */

.link-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
}

.link-modal.is-open {
  display: grid;
}

.link-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 19, 0.6);
}

.link-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  padding: 34px;
  background: #fff;
}

.link-modal__dialog h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.link-modal__dialog p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

#linkModalUrl {
  display: block;
  margin-top: 10px;
  padding: 12px;
  overflow-wrap: anywhere;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.link-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 26px;
}

.link-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

/* reveal */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .stat:not(:first-child) {
    padding-left: 0;
  }

  .about-inner,
  .mobius-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .step {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .step-split {
    grid-column: 2;
  }

  .projects-secondary {
    grid-template-columns: 1fr;
  }

  .reviews {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pricing {
    grid-template-columns: 1fr;
  }

  .price {
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .price:not(:first-child) {
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .section {
    padding: 76px 0;
  }

  .hero {
    padding: 76px 0 84px;
  }

  .portrait-strip {
    height: 340px;
  }

  .service-list {
    padding: 4px 22px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }

  .project-media {
    height: 300px;
  }

  .project-caption {
    width: 100%;
    padding: 28px 22px;
  }

  .project-mini {
    grid-template-columns: 1fr;
  }

  .project-mini__shot {
    height: 180px;
  }

  .actions {
    display: grid;
  }

  .footer-inner {
    flex-direction: column;
  }
}
