:root {
  --black: #050607;
  --black-soft: #111316;
  --ink: #17191d;
  --white: #ffffff;
  --paper: #f6f7f8;
  --muted: #777f8b;
  --line: #dfe3e8;
  --blue: #087cff;
  --blue-hot: #11a6ff;
  --blue-dark: #043d8c;
  --max: 1180px;
  --header-height: 74px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  color: var(--white);
  background: rgba(5, 6, 7, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.scrolled,
.site-header.solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(5, 6, 7, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: var(--white);
}

.site-header.scrolled .brand-mark,
.site-header.solid .brand-mark {
  border-color: rgba(5, 6, 7, 0.1);
}

.brand-mark img {
  width: 72px;
  max-width: none;
  transform: translateY(-3px);
}

.brand-type {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
}

.brand-type strong {
  color: var(--blue-hot);
  font-size: 1.22em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.primary-nav a {
  position: relative;
  padding: 9px 0;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--blue-hot);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.hero {
  min-height: 92svh;
  position: relative;
  display: grid;
  align-items: end;
  gap: 22px;
  padding: calc(var(--header-height) + 52px) clamp(18px, 5vw, 64px) 28px;
  margin-bottom: 76px;
  color: var(--white);
  background: var(--black);
  isolation: isolate;
  overflow: visible;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.95) 0%, rgba(5, 6, 7, 0.74) 34%, rgba(5, 6, 7, 0.18) 72%),
    linear-gradient(0deg, rgba(5, 6, 7, 0.72) 0%, rgba(5, 6, 7, 0) 50%);
}

.hero-content {
  width: min(760px, 100%);
  padding-bottom: clamp(76px, 12vh, 98px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 15px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--blue-hot);
}

.hero h1,
.contact-hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2.9rem, 6.8vw, 5.55rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 0 28px rgba(8, 124, 255, 0.34);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: min(var(--max), calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 6, 7, 0.72);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  min-height: 104px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 64px);
  scroll-margin-top: 92px;
}

.portfolio-section {
  padding-top: clamp(52px, 8vw, 92px);
}

.intro,
.portfolio-section,
.process-section {
  background: var(--white);
}

.intro-grid,
.section-heading,
.value-section,
.contact-layout,
.cta-band,
.site-footer {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.1;
}

p {
  line-height: 1.65;
}

.intro-copy p,
.section-heading p,
.value-content p,
.map-copy p,
.contact-hero p {
  color: #5f6670;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.services-section {
  color: var(--white);
  background: var(--black);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  margin-bottom: clamp(32px, 6vw, 60px);
}

.services-section .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.services-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.service-card {
  min-height: 430px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--black-soft);
}

.service-number {
  display: block;
  margin-bottom: 74px;
  color: var(--blue-hot);
  font-weight: 800;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
}

.service-card ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.74);
}

.service-card li {
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.value-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.value-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
}

.value-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-list {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.value-list div {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 24px;
  padding: 20px;
  background: var(--white);
}

.value-list strong {
  color: var(--black);
}

.value-list span {
  color: #626a75;
  line-height: 1.55;
}

.portfolio-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(230px, 27vw);
  max-height: 880px;
  gap: 14px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
}

.portfolio-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.portfolio-item.large img,
.portfolio-item.crop img {
  width: 200%;
  height: 200%;
  max-width: none;
}

.portfolio-item.top-right img {
  object-position: right top;
  transform: translateX(-50%);
}

.portfolio-item.bottom-left img {
  object-position: left bottom;
  transform: translateY(-50%);
}

.portfolio-item.bottom-right img {
  object-position: right bottom;
  transform: translate(-50%, -50%);
}

.portfolio-item:hover img {
  filter: saturate(1.08);
}

.portfolio-item div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.72);
  backdrop-filter: blur(16px);
}

.portfolio-item span {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-hot);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-item strong {
  font-size: 1rem;
}

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

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

.process-track div {
  min-height: 260px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-track span {
  display: block;
  margin-bottom: 62px;
  color: var(--blue);
  font-weight: 800;
}

.process-track p {
  color: #626a75;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(72px, 9vw, 112px);
  padding: clamp(32px, 6vw, 58px);
  color: var(--white);
  background: var(--black);
  border-radius: 8px;
}

.cta-band h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.contact-hero {
  padding: calc(var(--header-height) + 72px) clamp(18px, 5vw, 64px) clamp(44px, 8vw, 86px);
  color: var(--white);
  background: var(--black);
}

.contact-hero > * {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.contact-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

.contact-hero p:last-child {
  max-width: 720px;
  margin-top: 28px;
  margin-left: calc((100% - min(var(--max), 100%)) / 2);
  color: rgba(255, 255, 255, 0.72);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
  gap: 1px;
  margin-top: clamp(54px, 8vw, 92px);
  margin-bottom: clamp(72px, 9vw, 112px);
  background: var(--line);
  border: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.consultation-form,
.map-panel {
  background: var(--white);
}

.consultation-form {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 44px);
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd2da;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(8, 124, 255, 0.18);
  border-color: var(--blue);
}

.file-input {
  padding: 11px;
}

.map-panel {
  display: grid;
  grid-template-rows: minmax(340px, 0.8fr) auto;
}

.map-frame {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #091018;
}

.map-frame svg {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
}

.map-copy {
  padding: clamp(24px, 4vw, 38px);
}

.map-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.map-copy dl {
  display: grid;
  gap: 1px;
  margin: 30px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.map-copy dl div {
  padding: 17px;
  background: var(--white);
}

.map-copy dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.map-copy dd {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 64px) 48px;
  border-top: 1px solid var(--line);
  color: #5f6670;
}

.site-footer div {
  display: grid;
  gap: 8px;
}

.site-footer div:last-child {
  text-align: right;
}

.site-footer strong,
.site-footer a {
  color: var(--ink);
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 16px auto 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
  }

  .primary-nav.open {
    display: grid;
  }

  .primary-nav a {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 920px;
    margin-bottom: 0;
    overflow: hidden;
  }

  .hero-panel,
  .intro-grid,
  .section-heading,
  .value-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    position: static;
    width: 100%;
    transform: none;
  }

  .hero-panel div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

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

  .service-card {
    min-height: 0;
  }

  .service-number {
    margin-bottom: 42px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(220px, 46vw);
    max-height: none;
  }

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

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand-type {
    font-size: 0.78rem;
  }

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

  .hero {
    min-height: auto;
    padding-inline: 18px;
    padding-top: calc(var(--header-height) + 38px);
    padding-bottom: 22px;
  }

  .hero h1,
  .contact-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
    line-height: 0.95;
  }

  .hero-content {
    padding-bottom: 22px;
  }

  .hero-copy,
  .contact-hero p:last-child {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-panel div {
    min-height: 0;
    padding: 20px;
  }

  .hero-panel span {
    font-size: 1.85rem;
  }

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

  .intro-grid,
  .section-heading {
    gap: 24px;
  }

  .value-list div,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 340px;
  }

  .portfolio-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  .process-track div {
    min-height: 0;
  }

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

  .site-footer div:last-child {
    text-align: left;
  }
}
