:root {
  --paper: #f1eee6;
  --paper-soft: #e7e2d8;
  --ink: #0b0b0b;
  --muted: #67645e;
  --line: rgba(11, 11, 11, 0.18);
  --dark: #05070c;
  --dark-line: rgba(241, 238, 230, 0.16);
  --cream: #f7f4ec;
  --pink: #8b5cf6;
  --violet: #4937ff;
  --max: 1680px;
  --pad: clamp(18px, 4vw, 70px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(11, 11, 11, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 11, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family:
    "Sora", "Helvetica Neue", Helvetica, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.34;
}

body.nav-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(241, 238, 230, 0.9);
  backdrop-filter: blur(18px);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header .brand {
  gap: 0;
}

.brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(73, 55, 255, 0.2);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 0.82rem;
  line-height: 1.02;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(11, 11, 11, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
}

.site-nav a,
.text-link {
  position: relative;
  padding-bottom: 7px;
}

.site-nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a::after {
  content: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--cream);
  background: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 17px 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--cream);
  background: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(11, 11, 11, 0.14);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero,
.split-section,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 7.5vw, 128px) var(--pad);
}

.hero {
  min-height: calc(100svh - 105px);
  padding-top: clamp(44px, 4.5vw, 78px);
  padding-bottom: clamp(42px, 5vw, 88px);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: clamp(34px, 5.5vw, 84px);
  color: #272727;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-meta p {
  margin: 0;
}

.hero-grid {
  max-width: min(100%, 1420px);
}

.hero-title {
  min-width: 0;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(3.45rem, 5.65vw, 6.85rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.052em;
  text-transform: uppercase;
  font-family: "Sora", "Helvetica Neue", Helvetica, ui-sans-serif, system-ui, sans-serif;
}

h1 span,
.work-intro h2 {
  display: block;
}

.mobile-break {
  display: inline;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.85rem, 5.2vw, 6.25rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-family: "Sora", "Helvetica Neue", Helvetica, ui-sans-serif, system-ui, sans-serif;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 1.75vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: "Sora", "Helvetica Neue", Helvetica, ui-sans-serif, system-ui, sans-serif;
}

.side-copy p,
.contact-row p {
  max-width: 390px;
  margin-bottom: 32px;
  color: #393732;
  font-size: clamp(1.06rem, 1.25vw, 1.34rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 26px;
  border: 1px solid currentColor;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.dark {
  color: var(--cream);
  background: var(--ink);
}

.pink {
  color: currentColor;
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: currentColor;
  background: transparent;
  font-size: 0.82em;
  line-height: 1;
}

.text-link span {
  display: inline-block;
  color: currentColor;
  transform: translateY(-1px);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(38px, 5vw, 82px);
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-panel article {
  min-height: 230px;
  padding: clamp(22px, 2.6vw, 42px);
  background: rgba(241, 238, 230, 0.9);
}

.hero-panel span {
  display: block;
  margin-bottom: clamp(42px, 5vw, 82px);
  color: var(--muted);
  font-size: clamp(0.9rem, 1vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 2.3vw, 3.1rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero-panel p {
  max-width: 360px;
  margin-bottom: 0;
  color: #4d4941;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(38px, 7vw, 120px);
  align-items: end;
  border-top: 1px solid var(--line);
}

.kicker {
  margin-bottom: clamp(28px, 4vw, 58px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.side-copy {
  padding-bottom: clamp(4px, 1.4vw, 24px);
}

.studio.split-section {
  align-items: center;
}

.studio .side-copy {
  align-self: center;
  padding-bottom: 0;
}

.services.split-section {
  grid-template-columns: minmax(0, 0.95fr) minmax(540px, 0.72fr);
  gap: clamp(48px, 5.5vw, 96px);
  align-items: center;
}

.services h2 {
  max-width: 12.5ch;
  font-size: clamp(3rem, 4.35vw, 5.65rem);
}

.text-link {
  display: inline-flex;
  gap: 12px;
  font-weight: 700;
}

.text-link span {
  color: currentColor;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats article {
  min-height: 180px;
  padding: clamp(24px, 3vw, 46px) var(--pad);
  border-right: 1px solid var(--line);
}

.stats article:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 2.1vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.stats article:nth-child(1) strong,
.stats article:nth-child(4) strong {
  max-width: 10ch;
}

.stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.service-list article {
  display: grid;
  grid-template-columns: 46px minmax(120px, 0.6fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  padding: clamp(24px, 2.7vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}

.service-list span,
.card-number,
.card-type {
  color: var(--ink);
  font-size: clamp(0.9rem, 1vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-list h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.5vw, 1.85rem);
  letter-spacing: -0.035em;
}

.service-list p {
  margin: 0;
  color: #3f3c36;
  max-width: 36ch;
}

.work-section {
  color: var(--cream);
  background:
    radial-gradient(circle at 82% 10%, rgba(139, 92, 246, 0.16), transparent 26rem),
    var(--dark);
  padding: clamp(72px, 8vw, 132px) var(--pad);
}

.work-intro {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(420px, 0.62fr) minmax(320px, 0.42fr);
  gap: clamp(24px, 4vw, 66px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto clamp(42px, 6vw, 84px);
}

.work-intro .kicker {
  align-self: center;
  margin-bottom: 0;
}

.work-intro h2 {
  font-size: clamp(3.3rem, 5.8vw, 7.2rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.work-intro p:last-child {
  margin-bottom: 0;
  color: #b9bbc4;
  font-size: clamp(1rem, 1.15vw, 1.24rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--max);
  margin: 0 auto 28px;
}

.filter {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--dark-line);
  color: #c8cad2;
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter.active,
.filter:hover {
  color: var(--dark);
  background: var(--cream);
  border-color: var(--cream);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--dark-line);
  border-left: 1px solid var(--dark-line);
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: clamp(22px, 2.2vw, 38px);
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, 0.018);
  transition: background 160ms ease, transform 160ms ease;
}

.work-card:hover {
  background: rgba(255, 255, 255, 0.055);
}

.work-card.hidden {
  display: none;
}

.work-card.feature {
  grid-column: span 2;
  min-height: 390px;
}

.work-card.has-media {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.work-card.feature.has-media {
  min-height: 500px;
}

.work-card-media {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, 0.04);
}

.work-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card.has-media .card-type,
.work-card.has-media h3,
.work-card.has-media p:last-child {
  margin-right: clamp(22px, 2.2vw, 38px);
  margin-left: clamp(22px, 2.2vw, 38px);
}

.work-card.has-media .card-type {
  margin-top: clamp(20px, 2vw, 30px);
}

.work-card.has-media p:last-child {
  margin-bottom: clamp(22px, 2.2vw, 38px);
}

.card-number {
  display: none;
  color: inherit;
  margin-bottom: auto;
}

.card-type {
  margin: 44px 0 16px;
  color: #a7aab4;
}

.work-card h3 {
  color: var(--cream);
}

.work-card h3 span {
  display: inline-block;
  color: inherit;
  font-size: 0.6em;
  transform: translateY(-0.12em);
}

.work-card p:last-child {
  display: -webkit-box;
  min-height: calc(1.34em * 4);
  margin-bottom: 0;
  color: #b9bbc4;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

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

.contact h2 {
  margin-bottom: clamp(30px, 5vw, 70px);
  font-size: clamp(3.4rem, 6.4vw, 8rem);
  font-weight: 600;
  line-height: 0.94;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(420px, 0.58fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.contact-intro p {
  max-width: 430px;
  margin-bottom: 36px;
  color: #393732;
  font-size: clamp(1.05rem, 1.15vw, 1.24rem);
}

.contact-notes {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.contact-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: rgba(241, 238, 230, 0.88);
}

.contact-note > div {
  min-width: 0;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(11, 11, 11, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.34);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.contact-note span:not(.contact-icon),
.contact-form label span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-notes a,
.contact-notes strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 18px;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(11, 11, 11, 0.18);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.34);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.contact-form input,
.contact-form select {
  height: 52px;
  padding: 0 15px;
}

.contact-form textarea {
  min-height: 150px;
  padding: 15px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(139, 92, 246, 0.78);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

.contact-form ::placeholder {
  color: rgba(11, 11, 11, 0.42);
}

.captcha-field {
  min-height: 78px;
}

.form-status {
  display: none;
  padding: 16px 18px;
  border: 1px solid rgba(11, 11, 11, 0.18);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.show {
  display: block;
}

.form-status.success {
  border-color: rgba(11, 11, 11, 0.26);
  background: rgba(241, 238, 230, 0.95);
}

.form-status.error {
  border-color: rgba(11, 11, 11, 0.38);
  background: rgba(255, 255, 255, 0.72);
}

.form-submit {
  width: 100%;
  border-radius: 0;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 90px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 56px) var(--pad);
  border-top: 1px solid var(--line);
  color: #4a4741;
}

.site-footer .brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 11px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
}

.footer-name {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: #38352f;
  font-size: clamp(0.76rem, 0.9vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}


@media (max-width: 1120px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats article:nth-child(2) {
    border-right: 0;
  }

  .stats article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .work-intro,
  .contact-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .services.split-section {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 16px var(--pad);
  }

  .header-actions {
    display: contents;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .site-nav {
    position: fixed;
    top: 84px;
    left: var(--pad);
    right: var(--pad);
    display: grid;
    justify-items: stretch;
    gap: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(241, 238, 230, 0.98);
    box-shadow: 0 24px 70px rgba(11, 11, 11, 0.16);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border-bottom: 0;
    text-align: center;
  }

  .site-nav .mobile-client-link {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-meta {
    display: grid;
    gap: 12px;
    margin-bottom: 44px;
  }

  h1 {
    font-size: clamp(2.85rem, 14.2vw, 3.45rem);
  }

  .mobile-break {
    display: block;
  }

  h2 {
    font-size: clamp(3.1rem, 14vw, 6rem);
  }

  .services h2 {
    max-width: 100%;
    font-size: clamp(2.85rem, 13vw, 4.4rem);
  }

  .contact h2 {
    font-size: clamp(2.35rem, 10.4vw, 3.15rem);
    white-space: nowrap;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel article {
    min-height: 0;
  }

  .hero-panel span {
    margin-bottom: 28px;
  }

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

  .stats article,
  .stats article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats article:last-child {
    border-bottom: 0;
  }

  .service-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .work-card.feature {
    grid-column: span 1;
  }

  .work-card,
  .work-card.feature,
  .work-card.feature.has-media,
  .work-card.has-media {
    min-height: 0;
  }

  .work-card p:last-child {
    display: block;
    min-height: 0;
    overflow: visible;
    -webkit-line-clamp: initial;
  }

  .work-card.has-media p:last-child {
    margin-bottom: 28px;
  }

  .contact-row,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    text-align: left;
  }

  .button {
    width: 100%;
  }
}
