*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --text: #0C0C0A;
  --muted: #8b8b83;
  --border: #ededeb;
  --card: #0C0C0A;
  --card-2: #141412;
  --accent: #1718ff;
  --display: 'Syne', system-ui, sans-serif;
  --hero: 'Questrial', system-ui, sans-serif;
  --body: 'Poppins', system-ui, sans-serif;
  --nav-h: 72px;
  --w: 1340px;
  --gap: clamp(20px, 4vw, 72px);
  --snap: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 16px;
  --r-card: clamp(22px, 3.2vw, 44px);
}

body.dark {
  --bg: #0B0B0A;
  --text: #F4F3EF;
  --muted: #7e7e76;
  --border: rgba(255,255,255,0.12);
  --card: #161614;
  --card-2: #1d1d1a;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
}

html.dark { background: #0B0B0A; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.4s ease, color 0.4s ease;
}

@media (hover: none) { body { cursor: auto; } }

.container {
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: var(--gap);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.4s var(--snap), height 0.4s var(--snap), opacity 0.2s;
  will-change: left, top;
}

body.cursor-hover .cursor { width: 38px; height: 38px; }
body.cursor-hidden .cursor { opacity: 0; }

@media (hover: none) { .cursor { display: none; } }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gap);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent);
}

.nav__logo { display: flex; align-items: center; text-decoration: none; }

.nav__logo-full { height: 19px; width: auto; }
.nav__logo-mark { height: 30px; width: auto; display: none; }

.nav.scrolled .nav__logo-full { display: none; }
.nav.scrolled .nav__logo-mark--color { display: block; }
.nav.scrolled .nav__logo-mark--white { display: none; }

body.dark .nav.scrolled .nav__logo-mark--color { display: none; }
body.dark .nav.scrolled .nav__logo-mark--white { display: block; }

.nav:not(.scrolled) .nav__links a,
.nav:not(.scrolled) .nav__social a { color: rgba(255,255,255,0.75); }

.nav:not(.scrolled) .nav__links a:hover,
.nav:not(.scrolled) .nav__social a:hover { color: #fff; opacity: 1; }

.nav:not(.scrolled) .nav__burger span { background: #fff; }

.nav:not(.scrolled) .nav__quote { display: none; }

.nav__links {
  list-style: none;
  display: flex;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__links a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  opacity: 0.55;
  transition: opacity 0.2s, color 0.3s;
}

.nav__links a:hover { opacity: 1; }

.nav__right { display: flex; align-items: center; gap: 24px; }

.nav__quote {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 9px 20px;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.nav__quote:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.nav__social { display: flex; gap: 18px; }

.nav__social a {
  text-decoration: none;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.4;
  transition: opacity 0.2s, color 0.3s;
}

.nav__social a:hover { opacity: 1; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 6px;
  width: 36px;
  height: 36px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--snap), background 0.3s;
  transform-origin: center;
}

.nav__burger.active span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.active span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--card);
  z-index: 190;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: var(--gap);
  padding-top: var(--nav-h);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--snap);
}

.nav__mobile.open { opacity: 1; pointer-events: auto; }

.nav__mobile ul { list-style: none; margin-bottom: 40px; }
.nav__mobile ul li + li { margin-top: 4px; }

.nav__mobile ul a {
  text-decoration: none;
  color: #fff;
  font-family: var(--body);
  font-size: clamp(34px, 8.5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  display: block;
  opacity: 0.2;
  transition: opacity 0.2s;
}

.nav__mobile ul a:hover { opacity: 1; }

.nav__quote--mobile {
  align-self: flex-start;
  margin-bottom: 40px;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  font-size: 14px;
  padding: 13px 26px;
}

.nav__mobile-social { display: flex; gap: 28px; }

.nav__mobile-social a {
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav__mobile-social a:hover { color: #fff; }

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.42) 50%, rgba(0,0,0,0.82) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: clamp(80px, 10vw, 130px);
  padding-bottom: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: clamp(28px, 4vw, 52px);
  animation: up 0.8s var(--snap) 0.05s both;
}

.hero__headline {
  display: flex;
  flex-direction: column;
  font-family: var(--hero);
  font-size: clamp(44px, 7.6vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: clamp(28px, 4vw, 52px);
  animation: up 1s var(--snap) 0.15s both;
  font-synthesis: weight;
}

.hero__line { display: block; }
.hero__line--thin { font-weight: 400; }
.hero__line--bold { font-weight: 700; }

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  animation: up 0.9s var(--snap) 0.28s both;
}

.hero__desc {
  font-size: clamp(13px, 1.2vw, 15px);
  color: rgba(255,255,255,0.6);
  max-width: 360px;
  line-height: 1.75;
  font-weight: 400;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  padding: 15px 34px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}

.hero__cta:hover { background: #fff; color: #0C0C0A; border-color: #fff; }

.hero__cta--primary {
  background: #fff;
  color: #0C0C0A;
  border-color: #fff;
}
.hero__cta--primary:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }

.cta-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.3s var(--snap);
}

.btn-ghost:hover .cta-arrow { transform: translateX(4px); }

.hero__marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  padding-bottom: clamp(28px, 4vw, 54px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.hero__marquee-track {
  display: flex;
  width: max-content;
  animation: hero-ticker 55s linear infinite;
}

.hero__marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(46px, 5.5vw, 96px);
  padding-right: clamp(46px, 5.5vw, 96px);
  flex: none;
}

.hero__marquee-logo {
  height: clamp(44px, 4.6vw, 74px);
  width: auto;
  flex: none;
  object-fit: contain;
  opacity: 0.8;
}

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

.section-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.section-label::before { content: "+ "; opacity: 0.75; }

.section-title {
  font-family: var(--body);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 300;
  color: var(--text);
}

.title-accent {
  display: block;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.services {
  background: var(--bg);
  color: var(--text);
  padding-block: clamp(72px, 9vw, 136px);
}

.services__header {
  padding-bottom: clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--border);
}

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

.service__head {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  background: none;
  border: none;
  text-align: left;
  color: var(--text);
  cursor: none;
  transition: opacity 0.25s;
}

.service__head:hover { opacity: 0.62; }
.service.is-open .service__head { opacity: 1; }

.service__num {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.service__body h3 {
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.service__body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  font-weight: 400;
}

.service__toggle {
  position: relative;
  width: 18px;
  height: 18px;
  justify-self: end;
  flex-shrink: 0;
}

.service__toggle::before,
.service__toggle::after {
  content: "";
  position: absolute;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--snap), opacity 0.3s;
}

.service__toggle::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.service__toggle::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 1.5px;
  transform: translateX(-50%);
}

.service.is-open .service__toggle::after { transform: translateX(-50%) scaleY(0); opacity: 0; }

.service__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--snap);
}

.service.is-open .service__panel { grid-template-rows: 1fr; }

.service__panel-inner { overflow: hidden; }

.service__panel-inner p {
  padding: 0 28px 34px 84px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.8;
  color: var(--muted);
  max-width: 720px;
  font-weight: 400;
}

.projects {
  background: var(--bg);
  color: var(--text);
  padding-block: clamp(64px, 9vw, 132px);
}

.projects__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 52px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  opacity: 0.5;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s, border-color 0.2s;
}

.btn-ghost:hover { opacity: 1; border-bottom-color: var(--text); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(300px, 34vw, 460px);
  gap: 14px;
}

.project-card {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: none;
}

.project-card:nth-child(1) { grid-column: 1 / span 2; }
.project-card:nth-child(2) { grid-column: 3; }
.project-card:nth-child(3) { grid-column: 1; }
.project-card:nth-child(4) { grid-column: 2 / span 2; }
.project-card:nth-child(5) { grid-column: 1 / span 2; }
.project-card:nth-child(6) { grid-column: 3; }
.project-card:nth-child(7) { grid-column: 1; }
.project-card:nth-child(8) { grid-column: 2 / span 2; }

.project-card.is-hidden { display: none; }

.project-card__media {
  flex: 1;
  overflow: hidden;
  border-radius: var(--r);
  transition: transform 0.35s var(--snap);
}

.project-card:active .project-card__media { transform: scale(0.96); }

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--snap);
}

.project-card__media img.pc-img--dobro { object-position: 40% center; }

.project-card__media img.pc-img--yummers {
  object-position: center 22%;
  transform: scale(1.12) translateX(-4%);
  transform-origin: center 22%;
}
.project-card:hover .project-card__media img.pc-img--yummers { transform: scale(1.16) translateX(-4%); }

.project-card:hover .project-card__media img { transform: scale(1.04); }

.project-card__info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-inline: 2px;
}

.project-card__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.project-card__title {
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 1;
}

.projects__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 64px);
}

.btn-more {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--bg);
  background: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--text);
  border-radius: 100px;
  padding: 15px 34px;
  cursor: none;
  transition: background 0.25s, color 0.25s;
}

.btn-more:hover { background: transparent; color: var(--text); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--snap);
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12,12,10,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  max-height: 88vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s var(--snap);
  z-index: 1;
}

.modal.is-open .modal__panel { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(127,127,127,0.18);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  z-index: 2;
  transition: background 0.2s;
  color: var(--text);
}

.modal__close:hover { background: rgba(127,127,127,0.32); }

.modal__image { overflow: hidden; min-height: 100%; }

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

.modal__info {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.modal__cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal__title {
  font-family: var(--body);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.modal__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 400;
  margin-top: 4px;
}

.modal__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 11px 20px 11px 24px;
  width: fit-content;
  margin-top: 8px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.modal__cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.modal__cta:hover .cta-arrow { transform: translateX(4px); }

.team {
  background: var(--bg);
  color: var(--text);
  padding-block: clamp(72px, 9vw, 136px);
}

.team__head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px);
  align-items: start;
  gap: clamp(28px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 72px);
}

.team__lead {
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.65;
  font-weight: 400;
}

.team__members {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(18px, 2.2vw, 32px);
}

.member { display: flex; flex-direction: column; }

.member__photo {
  position: relative;
  flex: none;
  aspect-ratio: 4/5;
  border-radius: clamp(16px, 1.6vw, 22px);
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  margin-bottom: 18px;
}

.member__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.member__img--blur {
  opacity: 0;
  transition: opacity 0.45s var(--snap);
}

.member:hover .member__img--blur { opacity: 1; }

.member__name {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.member__role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

.member__links { display: flex; gap: 16px; margin-top: auto; padding-top: 14px; }

.member__links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.member__links a:hover { color: var(--text); }

.contact {
  background: var(--card);
  color: #fff;
  margin-inline: clamp(8px, 2vw, 24px);
  margin-bottom: clamp(8px, 2vw, 24px);
  border-radius: var(--r-card);
  padding-top: clamp(60px, 8vw, 116px);
  padding-bottom: clamp(40px, 4.5vw, 64px);
}

.contact .section-label { color: rgba(255,255,255,0.4); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}


.contact__headline {
  display: flex;
  flex-direction: column;
  font-family: var(--hero);
  font-size: clamp(36px, 4.6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-top: 20px;
  margin-bottom: 30px;
  font-synthesis: weight;
  color: #fff;
}

.contact__line--thin { font-weight: 400; }
.contact__line--bold { font-weight: 700; }

.contact__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  font-weight: 400;
  max-width: 440px;
  margin-bottom: 34px;
}

.contact__email {
  display: inline-block;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 6px;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  transition: border-color 0.25s;
}

.contact__email:hover { border-bottom-color: #fff; }

.contact__socials { display: flex; gap: 26px; }

.contact__socials a {
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.contact__socials a:hover { opacity: 1; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.field input,
.field textarea,
.select-wrap select {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 0;
  padding: 12px 0;
  transition: border-color 0.25s;
}

.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.32); }

.field input:focus,
.field textarea:focus,
.select-wrap select:focus {
  outline: none;
  border-bottom-color: #fff;
}

.select-wrap { position: relative; }

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: none;
  padding-right: 30px;
}

.select-wrap select option { color: #0C0C0A; }

.select-arrow {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid rgba(255,255,255,0.55);
  border-bottom: 1.5px solid rgba(255,255,255,0.55);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 8px;
  background: #fff;
  color: #0C0C0A;
  border: 1.5px solid #fff;
  border-radius: 100px;
  padding: 16px 38px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: none;
  transition: background 0.25s, color 0.25s;
}

.contact-form__submit:hover { background: transparent; color: #fff; }

.contact-form__submit:disabled { opacity: 0.55; cursor: none; }

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

.contact-form__status {
  min-height: 18px;
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}

.contact-form__status.is-ok { color: #4ade80; }
.contact-form__status.is-error { color: #f87171; }

body.dark .contact-form__status { color: rgba(0,0,0,0.6); }
body.dark .contact-form__status.is-ok { color: #16a34a; }
body.dark .contact-form__status.is-error { color: #dc2626; }

.contact__footer {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(18px, 2.5vw, 30px);
}

.contact__footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.contact__footer-logo { display: inline-flex; text-decoration: none; }

.contact__footer-logo-img { height: 26px; width: auto; }

.contact__footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  font-weight: 400;
  max-width: 280px;
  line-height: 1.6;
}

.contact__footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.contact__footer-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.contact__footer-nav a:hover { opacity: 1; }

.contact__footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact__footer-bottom span,
.contact__footer-bottom a {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  font-weight: 400;
}

.contact__footer-bottom a:hover { color: #fff; }

.contact__footer-links { display: flex; gap: 22px; }

body.dark .contact { background: #ffffff; color: #0C0C0A; }
body.dark .contact .section-label { color: rgba(0,0,0,0.4); }
body.dark .contact__headline { color: #0C0C0A; }
body.dark .contact__sub { color: rgba(0,0,0,0.55); }
body.dark .contact__email { color: #0C0C0A; border-bottom-color: rgba(0,0,0,0.25); }
body.dark .contact__email:hover { border-bottom-color: #0C0C0A; }
body.dark .contact__socials a { color: #0C0C0A; }
body.dark .field label { color: rgba(0,0,0,0.5); }
body.dark .field input,
body.dark .field textarea,
body.dark .select-wrap select { color: #0C0C0A; border-bottom-color: rgba(0,0,0,0.2); }
body.dark .field input::placeholder,
body.dark .field textarea::placeholder { color: rgba(0,0,0,0.35); }
body.dark .field input:focus,
body.dark .field textarea:focus,
body.dark .select-wrap select:focus { border-bottom-color: #0C0C0A; }
body.dark .select-arrow { border-right-color: rgba(0,0,0,0.55); border-bottom-color: rgba(0,0,0,0.55); }
body.dark .contact-form__submit { background: #0C0C0A; color: #fff; border-color: #0C0C0A; }
body.dark .contact-form__submit:hover { background: transparent; color: #0C0C0A; }
body.dark .contact__footer-tagline { color: rgba(0,0,0,0.5); }
body.dark .contact__footer-nav a { color: #0C0C0A; }
body.dark .contact__footer-bottom { border-top-color: rgba(0,0,0,0.12); }
body.dark .contact__footer-bottom span,
body.dark .contact__footer-bottom a { color: rgba(0,0,0,0.45); }
body.dark .contact__footer-bottom a:hover { color: #0C0C0A; }
body.dark .contact__footer-logo-img { filter: invert(1); }

.footer { padding-block: 44px; background: var(--bg); }

.footer__inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 36px;
}

.footer__brand { flex: 1; }

.footer__logo { display: inline-flex; text-decoration: none; }

.footer__logo-img { height: 24px; width: auto; }

body.dark .footer__logo-img { filter: invert(1); }

.footer__tagline {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  font-weight: 400;
}

.footer__nav,
.footer__social { display: flex; flex-direction: column; gap: 10px; }

.footer__social { align-items: flex-end; }

.footer__nav a,
.footer__social a {
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.footer__nav a:hover,
.footer__social a:hover { opacity: 1; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer__bottom span,
.footer__bottom a {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
}

.footer__bottom a:hover { color: var(--text); }

.footer__bottom-links { display: flex; gap: 22px; }

.theme-toggle {
  position: fixed;
  left: clamp(20px, 2.4vw, 40px);
  bottom: clamp(30px, 3.8vw, 60px);
  z-index: 300;
  width: 52px;
  height: 28px;
  padding: 0;
  border-radius: 100px;
  border: none;
  background: var(--text);
  cursor: none;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.45), 0 8px 28px rgba(0,0,0,0.22);
  transition: background 0.3s;
}

body.dark .theme-toggle {
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.4), 0 8px 28px rgba(0,0,0,0.45);
}

.theme-toggle__thumb {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  transform: translateY(-50%);
  transition: transform 0.4s var(--snap);
}

body.dark .theme-toggle__thumb { transform: translate(24px, -50%); }

@media (hover: none) {
  .nav__burger, .service__head, .project-card, .btn-more,
  .modal__close, .theme-toggle, .select-wrap select { cursor: pointer; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--snap), transform 0.8s var(--snap);
  transition-delay: var(--delay, 0s);
}

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

@keyframes up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
  .team__members { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1000px) {
  .team__members { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; gap: 44px; align-items: start; }
  .team__head { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .nav__links, .nav__social, .nav__quote { display: none; }
  .nav__quote--mobile { display: inline-flex; }
  .nav__burger { display: flex; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__ctas { flex-wrap: wrap; }
  .projects__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(240px, 38vw, 340px); }
  .project-card:nth-child(1) { grid-column: 1 / span 2; }
  .project-card:nth-child(2) { grid-column: 1; }
  .project-card:nth-child(3) { grid-column: 2; }
  .project-card:nth-child(4) { grid-column: 1 / span 2; }
  .project-card:nth-child(5) { grid-column: 1 / span 2; }
  .project-card:nth-child(6) { grid-column: 1; }
  .project-card:nth-child(7) { grid-column: 2; }
  .project-card:nth-child(8) { grid-column: 1 / span 2; }
  .projects__header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .service__head { grid-template-columns: 40px 1fr 20px; gap: 14px; }
  .service__panel-inner p { padding-left: 54px; }
  .modal__panel { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal__image { aspect-ratio: 16/9; }
  .footer__inner { flex-direction: column; gap: 28px; }
  .footer__social { align-items: flex-start; }
  .contact__footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .contact__footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 520px) {
  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: clamp(220px, 64vw, 300px); }
  .project-card { grid-column: 1 !important; }
  .team__members { grid-template-columns: 1fr 1fr; }
  .hero__eyebrow { flex-wrap: wrap; gap: 6px; }
}

.legal-hero {
  background: var(--card);
  color: #fff;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 104px));
  padding-bottom: clamp(56px, 8vw, 110px);
}

.legal-hero__back {
  display: inline-block;
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: clamp(34px, 5vw, 60px);
  transition: color 0.2s;
}

.legal-hero__back:hover { color: #fff; }

.legal-hero__label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}

.legal-hero__label::before { content: "+ "; opacity: 0.75; }

.legal-hero__title {
  font-family: var(--body);
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 300;
}

.legal-hero__title-accent { display: block; font-weight: 600; }

.legal-hero__intro {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 560px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

.legal { background: var(--bg); padding-block: clamp(56px, 8vw, 110px); }

.legal__inner { max-width: 820px; }

.legal__section { margin-bottom: clamp(44px, 6vw, 76px); }

.legal__section:last-child { margin-bottom: 0; }

.legal__heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--body);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal__num {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  flex: none;
  transform: translateY(-2px);
}

.legal__subheading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal__section p {
  font-size: clamp(14px, 1.45vw, 16px);
  line-height: 1.72;
  font-weight: 300;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  margin-bottom: 16px;
}

.legal__section p:last-child { margin-bottom: 0; }

.legal__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.legal__list li {
  position: relative;
  padding-left: 26px;
  font-size: clamp(14px, 1.45vw, 16px);
  line-height: 1.66;
  font-weight: 300;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  margin-bottom: 14px;
}

.legal__list li:last-child { margin-bottom: 0; }

.legal__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-defs {
  margin: 8px 0 0;
  border-top: 1px solid var(--border);
}

.legal-defs__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.legal-defs dt {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.legal-defs dd {
  margin: 0;
  font-size: clamp(14px, 1.45vw, 16px);
  line-height: 1.66;
  font-weight: 300;
  color: color-mix(in srgb, var(--text) 78%, transparent);
}

.legal__email {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 3px;
  transition: border-color 0.25s;
}

.legal__email:hover { border-bottom-color: var(--accent); }

@media (max-width: 600px) {
  .legal-defs__row { grid-template-columns: 1fr; gap: 8px; }
}
