:root {
  --ink: #0b0b0a;
  --paper: #efede6;
  --paper-soft: #f7f5ef;
  --line: rgba(11, 11, 10, 0.14);
  --muted: #77736b;
  --hot: #ff5c35;
  --lime: #c8ff5a;
  --cyan: #8de8e0;
  --night: #0e1110;
  --night-2: #191d1b;
  --shadow: 0 28px 90px rgba(11, 11, 10, 0.14);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 92, 53, 0.18), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(141, 232, 224, 0.22), transparent 31%),
    linear-gradient(180deg, #f4f1e9 0%, #ebe6dc 52%, #f8f6ef 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(11, 11, 10, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 10, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 88%);
}

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(11, 11, 10, 0.76);
  box-shadow: 0 18px 60px rgba(11, 11, 10, 0.18);
  color: white;
  transform: translateX(-50%);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand,
.nav-tabs,
.language-switcher,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  padding-left: 4px;
  font-size: 14px;
  font-weight: 820;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.nav-tabs {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.nav-tabs a,
.language-switcher button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.nav-tabs a {
  min-width: 92px;
  padding: 0 14px;
}

.language-switcher {
  justify-content: flex-end;
  gap: 2px;
}

.language-switcher button {
  width: 38px;
  height: 34px;
}

.nav-tabs a:hover,
.nav-tabs a.active,
.language-switcher button:hover,
.language-switcher button.active {
  background: white;
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-panel {
  scroll-margin-top: 96px;
  padding: 118px 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 44px;
  padding-top: 142px;
  padding-bottom: 34px;
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 760;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.34fr);
  gap: 42px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 18px;
  color: #08776f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 960px;
  margin-bottom: 0;
  font-size: clamp(54px, 8.4vw, 126px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  max-width: 920px;
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-side {
  display: grid;
  gap: 28px;
  padding-bottom: 8px;
}

.hero-side p,
.section-heading p,
.contact-copy > p,
.service-grid p,
.work-item p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-side p {
  max-width: 410px;
  margin: 0;
}

.hero-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 11, 10, 0.18);
  border-radius: 999px;
  padding: 0 19px;
  font-weight: 900;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 36px rgba(11, 11, 10, 0.18);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.44);
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  color: var(--ink);
}

.ticker div {
  display: flex;
  width: max-content;
  animation: tickerMove 28s linear infinite;
}

.ticker span {
  padding: 18px 24px;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 900;
  white-space: nowrap;
}

.ticker span:nth-child(3n) {
  color: var(--hot);
}

@keyframes tickerMove {
  to {
    transform: translateX(-50%);
  }
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 44px;
}

.section-heading.wide {
  grid-template-columns: minmax(180px, 0.26fr) 1fr;
  align-items: start;
}

.work-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 0.44fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.work-preview {
  position: sticky;
  top: 112px;
  overflow: hidden;
  min-height: 560px;
  border-radius: 26px;
  background: var(--night);
  box-shadow: var(--shadow);
}

.work-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.58));
}

.work-preview img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: saturate(0.95) contrast(0.98);
  transform: scale(1.02);
  transition:
    opacity 260ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.work-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(116px, 0.22fr);
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition:
    padding-left 260ms ease,
    color 260ms ease;
}

.work-item span,
.work-item b,
.service-grid span,
.contact-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-item h3,
.work-item p {
  margin: 0;
}

.work-item p {
  max-width: 560px;
  margin-top: 12px;
}

.work-item b {
  justify-self: end;
  padding-top: 9px;
  text-align: right;
}

.work-item:hover,
.work-item.active {
  padding-left: 18px;
}

.work-item:hover h3,
.work-item.active h3 {
  color: #08776f;
}

.services-section {
  margin-inline: calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  background: var(--night);
  color: white;
}

.services-section .eyebrow {
  color: var(--lime);
}

.services-section h2 {
  color: white;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.service-grid article {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), transparent),
    var(--night-2);
}

.service-grid article:nth-child(2) {
  background:
    linear-gradient(160deg, rgba(255, 92, 53, 0.16), transparent),
    var(--night-2);
}

.service-grid span {
  color: rgba(255, 255, 255, 0.5);
}

.service-grid h3 {
  margin: auto 0 18px;
  font-size: clamp(28px, 3vw, 42px);
}

.service-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.64fr);
  gap: 70px;
  align-items: start;
}

.contact-copy p {
  max-width: 660px;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin: 38px 0 0;
}

.contact-details div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-details dd {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 850;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(11, 11, 10, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(11, 11, 10, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

input {
  min-height: 50px;
  padding: 0 15px;
}

textarea {
  resize: vertical;
  min-height: 136px;
  padding: 14px 15px;
}

input:focus,
textarea:focus {
  border-color: #08776f;
  background: white;
  box-shadow: 0 0 0 4px rgba(8, 119, 111, 0.13);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform 850ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 850ms ease;
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .nav-tabs,
  .language-switcher {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    padding-top: 196px;
  }

  .hero-grid,
  .work-showcase,
  .section-heading.wide,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .work-preview {
    position: relative;
    top: auto;
    min-height: 420px;
  }

  .work-preview img {
    min-height: 420px;
  }

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

  .service-grid article {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  main,
  .site-header,
  footer {
    width: min(100% - 20px, 1180px);
  }

  .section-panel {
    padding: 84px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 206px;
  }

  .hero-kicker {
    flex-direction: column;
  }

  h1 {
    font-size: clamp(48px, 16vw, 74px);
  }

  h2 {
    font-size: clamp(38px, 13vw, 62px);
  }

  .work-item {
    grid-template-columns: 42px 1fr;
  }

  .work-item b {
    grid-column: 2;
    justify-self: start;
    padding-top: 0;
    text-align: left;
  }

  .contact-form {
    border-radius: 20px;
  }

  footer {
    gap: 16px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
