:root {
  --black: #101010;
  --ink: #151515;
  --paper: #f2f2f0;
  --paper-soft: #ffffff;
  --paper-warm: #f8f4e8;
  --yellow: #ffcf3d;
  --yellow-dark: #e7ad19;
  --line: rgba(16, 16, 16, 0.12);
  --muted: rgba(16, 16, 16, 0.66);
  --white-muted: rgba(255, 255, 255, 0.74);
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

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

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

section:focus,
section:target {
  outline: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.top-strip {
  color: #f6f6f2;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
  line-height: 1.35;
}

.top-strip-inner {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.top-strip a {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 16, 16, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 94px;
  align-items: center;
  gap: 32px;
}

.brand,
.footer-logo-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand {
  color: #ffffff;
}

.footer-brand {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}

.brand-wordmark {
  width: 152px;
  height: auto;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 42px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 760;
  text-transform: uppercase;
}

.nav-links a {
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: var(--yellow);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-cta,
.button-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: inset 0 -2px 0 rgba(16, 16, 16, 0.16);
}

.button-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 207, 61, 0.16), transparent 23rem),
    linear-gradient(135deg, #161616 0%, #222222 48%, #101010 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.72fr);
  min-height: 690px;
  align-items: center;
  gap: 54px;
  padding-block: 54px 66px;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--yellow);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin-bottom: 0;
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.6rem, 5.2vw, 4.8rem);
}

h1 span,
.section-heading h2 span {
  color: var(--yellow);
}

h1 span {
  display: block;
}

h2 {
  max-width: 920px;
  font-size: clamp(3.1rem, 5vw, 4.85rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.65rem;
  font-weight: 680;
  line-height: 1.14;
}

.hero-text {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--white-muted);
  font-size: 1.22rem;
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 0.96;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.46);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: auto auto -28px -26px;
  width: 132px;
  height: 132px;
  background: var(--yellow);
  border-radius: 28px;
  transform: rotate(-8deg);
  z-index: 0;
}

.hero-media img,
.hero-media figcaption {
  position: relative;
  z-index: 1;
}

.hero-media figcaption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  width: min(230px, calc(100% - 48px));
  padding: 22px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.hero-media strong {
  font-size: 3rem;
  line-height: 0.9;
}

.hero-media span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.metric-band {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics p {
  min-height: 150px;
  margin: 0;
  padding: 34px 34px 30px 0;
  border-right: 1px solid var(--line);
}

.metrics p + p {
  padding-left: 34px;
}

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

.metrics strong {
  display: block;
  margin-bottom: 10px;
  font-size: 3.7rem;
  font-weight: 560;
  line-height: 0.96;
}

.metrics span {
  display: block;
  max-width: 260px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.45;
}

.section {
  padding-block: 126px;
}

.section-heading {
  max-width: 960px;
}

.section-heading > p:not(.eyebrow),
.work-card p,
.work-card li,
.timeline p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}

.services-section {
  background: var(--paper);
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.service-pills a {
  padding: 15px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 760;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service-grid article {
  min-height: 330px;
  padding: 38px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.service-grid span,
.card-label,
.timeline time {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--yellow-dark);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.work-section {
  background: #ffffff;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.44fr) minmax(0, 0.56fr);
  gap: 64px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 128px;
}

.sticky-heading p:not(.eyebrow) {
  max-width: 420px;
  margin-top: 26px;
}

.work-cards {
  display: grid;
  gap: 22px;
}

.work-card {
  overflow: hidden;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
}

.work-card-media {
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--black);
  border-radius: 24px;
}

.work-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-card h3 {
  max-width: 560px;
  font-size: 2.25rem;
  font-weight: 560;
  line-height: 1.05;
}

.work-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.work-card li {
  position: relative;
  padding-left: 28px;
}

.work-card li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 14px;
  height: 3px;
  background: var(--yellow);
}

.compact-card {
  padding: 36px;
  background: var(--black);
  color: #ffffff;
}

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

.process-section {
  background: var(--paper-warm);
}

.process-heading {
  max-width: 980px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 62px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.timeline li {
  min-height: 300px;
  padding: 34px 30px 0 0;
  border-right: 1px solid var(--line);
}

.timeline li + li {
  padding-left: 30px;
}

.timeline li:last-child {
  border-right: 0;
}

.timeline time {
  margin-bottom: 52px;
}

.timeline h3 {
  font-size: 2rem;
  font-weight: 560;
}

.cta-section {
  padding-block: 98px;
  background: var(--paper);
}

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: clamp(48px, 7vw, 86px);
  color: #ffffff;
  background: var(--black);
  border-radius: 36px;
}

.connect-title {
  max-width: 980px;
  font-size: clamp(3.312rem, 5.04vw, 5.184rem);
  font-weight: 420;
  line-height: 0.98;
}

.cta-card .connect-title span {
  color: var(--yellow);
}

.cta-subtitle {
  max-width: 760px;
  margin: clamp(38px, 5vw, 58px) 0 0;
  color: #ffffff;
  font-size: clamp(1.458rem, 2.5515vw, 2.58795rem);
  font-weight: 400;
  line-height: 1.12;
}

.site-footer {
  padding-block: 54px;
  color: #ffffff;
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, 360px);
  gap: 54px;
  align-items: start;
}

.footer-contact {
  display: grid;
  gap: 24px;
}

.footer-contact h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.2;
}

.footer-contact a,
address {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.8;
}

.footer-contact a {
  transition: color 150ms ease;
}

.footer-contact a:hover {
  color: var(--yellow);
}

.footer-legal {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.55;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.modal-open {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.contact-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 48px);
  color: #ffffff;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.42);
}

.contact-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
}

.modal-eyebrow {
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-dialog h2 {
  max-width: 480px;
  margin-bottom: 28px;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  font-weight: 520;
  line-height: 1.02;
}

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

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

.contact-form label span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 16px 18px;
  outline: 0;
  transition: border-color 160ms ease, background 160ms ease;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--yellow);
}

.contact-form .has-error input,
.contact-form .has-error textarea {
  border-color: #ff6b6b;
}

.field-error {
  min-height: 1.2em;
  color: #ff9b9b;
  font-size: 0.84rem;
}

.contact-company {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.contact-submit {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.form-status.is-success {
  color: var(--yellow);
}

.form-status.is-error {
  color: #ff9b9b;
}

@media (max-width: 1040px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    padding-bottom: 20px;
  }

  .header-cta {
    justify-self: end;
  }

  .hero-grid,
  .work-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-media {
    max-width: 720px;
  }

  .sticky-heading {
    position: static;
  }

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

  .timeline li:nth-child(2) {
    border-right: 0;
  }

  address {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .top-strip-inner {
    flex-direction: column;
    min-height: 72px;
    gap: 2px;
    font-size: 0.82rem;
  }

  .header-inner {
    min-height: auto;
    padding-block: 16px 0;
    gap: 18px;
  }

  .header-cta {
    min-height: 46px;
    padding-inline: 18px;
    font-size: 0.76rem;
  }

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

  .brand-wordmark {
    width: 132px;
  }

  .nav-links {
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    font-size: 0.72rem;
  }

  .hero-grid {
    gap: 38px;
    padding-block: 52px 64px;
  }

  h1 {
    font-size: clamp(2.75rem, 11.5vw, 3.45rem);
  }

  h2 {
    font-size: clamp(2.15rem, 8.8vw, 2.85rem);
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-media img {
    border-width: 6px;
    border-radius: 24px;
  }

  .hero-media::before {
    width: 84px;
    height: 84px;
    border-radius: 18px;
  }

  .hero-media figcaption {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .metrics,
  .service-grid,
  .timeline,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .metrics p,
  .metrics p + p {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics p:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 72px;
  }

  .service-grid article {
    min-height: auto;
    padding: 28px;
    border-radius: 24px;
  }

  .service-grid span,
  .card-label,
  .timeline time {
    margin-bottom: 28px;
  }

  .work-card,
  .compact-card {
    padding: 22px;
    border-radius: 24px;
  }

  .work-card h3 {
    font-size: 1.7rem;
  }

  .timeline li,
  .timeline li + li {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline li:last-child {
    border-bottom: 0;
  }

  .cta-card {
    border-radius: 28px;
  }

  .connect-title {
    font-size: clamp(2.16rem, 9.36vw, 2.88rem);
  }

  .cta-subtitle {
    margin-top: 28px;
    font-size: clamp(1.05705rem, 5.103vw, 1.5309rem);
  }

  .contact-modal {
    padding: 14px;
  }

  .contact-dialog {
    border-radius: 24px;
  }

  .contact-submit {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    grid-template-columns: minmax(0, auto) auto;
    align-items: center;
    padding-bottom: 16px;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-height: 42px;
    padding-inline: 14px;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 0;
    padding-bottom: 0;
  }

  .brand-wordmark {
    width: 112px;
  }

  .hero-grid {
    padding-top: 42px;
  }
}
