:root {
  color-scheme: dark;
  --bg: #050507;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(180, 148, 255, 0.34);
  --text: #f6f3ff;
  --muted: #b9b3c8;
  --soft: #81798f;
  --accent: #a78bfa;
  --accent-strong: #c4b5fd;
  --kiwea: #5cc548;
  --kiwea-soft: #b4e178;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 6%, rgba(137, 101, 255, 0.2), transparent 26rem),
    linear-gradient(180deg, #07070b 0%, #050507 48%, #060609 100%);
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 86px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(5, 5, 7, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.site-header.compact {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(180, 225, 120, 0.32);
  border-radius: 13px;
  background: rgba(92, 197, 72, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px rgba(38, 160, 44, 0.16);
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-name {
  color: var(--kiwea);
  font-size: 20px;
  font-weight: 820;
}

.brand-company {
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

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

.nav-contact {
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  min-height: calc(100vh - 86px);
  padding: clamp(72px, 8vw, 132px) clamp(20px, 4vw, 64px) clamp(72px, 8vw, 118px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
  align-self: center;
}

.section-label {
  margin: 0 0 20px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 28px;
  font-size: clamp(56px, 8.4vw, 132px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(36px, 4.6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.15;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.32;
  font-weight: 650;
}

.hero-actions,
.portfolio-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  color: #08080c;
  background: #f4efff;
  box-shadow: 0 18px 50px rgba(196, 181, 253, 0.2);
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #050507 0%, rgba(5, 5, 7, 0.96) 34%, rgba(5, 5, 7, 0.42) 64%, rgba(5, 5, 7, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.05), #050507 100%);
}

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

.section {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(72px, 8vw, 128px) clamp(20px, 4vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
}

.copy-stack {
  color: var(--muted);
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 620;
}

.copy-stack p:last-child,
.brand-section p:last-child,
.legal-card p:last-child {
  margin-bottom: 0;
}

.section-head {
  max-width: 850px;
  margin-bottom: 42px;
}

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

.work-grid article,
.legal-card,
.details-grid div,
.portfolio-panel,
.brand-cards article {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--panel-strong), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.work-grid article {
  min-height: 286px;
  padding: 34px;
}

.work-grid span {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--accent);
  font-weight: 800;
}

.work-grid p,
.portfolio-section p,
.brand-cards p {
  color: var(--muted);
}

.portfolio-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(480px, 1.22fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
}

.portfolio-copy {
  max-width: 680px;
}

.portfolio-copy > p {
  margin-bottom: 32px;
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 620;
  line-height: 1.48;
}

.portfolio-panel {
  overflow: hidden;
}

.portfolio-panel > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.brand-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.brand-cards article {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 0 0, rgba(180, 225, 120, 0.1), transparent 15rem),
    rgba(8, 8, 12, 0.94);
}

.brand-cards span {
  margin-bottom: auto;
  color: var(--kiwea-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-cards h3 {
  margin-top: 42px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.details-grid div {
  padding: 28px;
}

dt {
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

dd {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

dd a {
  color: var(--accent-strong);
}

.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 64px);
}

.legal-page h1 {
  font-size: clamp(46px, 7vw, 90px);
}

.legal-card {
  margin-top: 18px;
  padding: clamp(28px, 4vw, 44px);
}

.legal-card h2 {
  font-size: 28px;
}

.legal-card p {
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 15px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 72px;
  }

  .hero-media {
    opacity: 0.55;
  }

  .split,
  .work-grid,
  .details-grid,
  .portfolio-section {
    grid-template-columns: 1fr;
  }

  .portfolio-copy {
    max-width: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: auto;
  }

  .brand-company {
    display: none;
  }

  .brand-name {
    font-size: 19px;
  }

  nav a:not(.nav-contact) {
    display: none;
  }

  h1 {
    font-size: clamp(38px, 11.8vw, 52px);
    line-height: 1.03;
  }

  .hero-text {
    font-size: 22px;
  }

  .button {
    width: 100%;
  }

  .brand-cards {
    grid-template-columns: 1fr;
  }

  .brand-cards article {
    min-height: auto;
  }

  .brand-cards h3 {
    margin-top: 24px;
  }

  .section,
  .legal-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .work-grid article {
    min-height: auto;
  }

  .work-grid span {
    margin-bottom: 34px;
  }
}
