:root {
  --bg: #1c1918;
  --bg-alt: #242020;
  --surface: #2c2726;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f1ee;
  --muted: #a8a09b;
  --accent: #e3262b;
  --accent-hover: #ff3a3f;
  --radius: 14px;
  --wrap: 1160px;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); padding: 8px 14px; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 25, 24, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; color: var(--accent); }
.brand__mark .wave { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.brand__mark .wave--2 { opacity: 0.5; }
.brand__name { font: 600 22px/1 var(--display); letter-spacing: 0.06em; }
.brand__ltd { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 0.7em; letter-spacing: 0.2em; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; text-decoration: none;
  font: 500 15px/1 var(--body); letter-spacing: 0.02em;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.06); }
.btn--small { padding: 10px 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 14px; color: var(--accent);
  font: 500 13px/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase;
}
.h2 { margin: 0 0 28px; font: 600 clamp(36px, 5vw, 56px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.prose p { margin: 0 0 16px; color: var(--muted); }
.prose { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 14vw, 160px) 0 clamp(80px, 12vw, 140px); border-bottom: 1px solid var(--line); }
.hero__inner { position: relative; z-index: 1; }
.hero__title {
  margin: 0 0 28px;
  font: 700 clamp(48px, 9vw, 112px)/0.95 var(--display);
  text-transform: uppercase; letter-spacing: -0.005em;
}
.hero__lead { max-width: 560px; margin: 0 0 40px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__waves { position: absolute; right: -180px; top: 50%; width: 640px; height: 640px; transform: translateY(-50%); pointer-events: none; }
.hero__waves span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0;
  animation: ripple 6s ease-out infinite;
}
.hero__waves span:nth-child(2) { animation-delay: 2s; }
.hero__waves span:nth-child(3) { animation-delay: 4s; }
@keyframes ripple {
  0% { transform: scale(0.2); opacity: 0.55; }
  100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__waves span { animation: none; opacity: .15; }
  .hero__waves span:nth-child(1) { transform: scale(.4); }
  .hero__waves span:nth-child(2) { transform: scale(.7); }
  .hero__waves span:nth-child(3) { transform: scale(1); }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }

/* ---------- Portfolio ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, border-color .25s;
}
.card--live:hover { transform: translateY(-4px); border-color: rgba(227, 38, 43, .5); }
.card__logo { display: grid; place-items: center; height: 190px; background: #1a1716; border-bottom: 1px solid var(--line); }
.card__logo img { max-width: 170px; }
.card__placeholder { font: 300 56px/1 var(--display); color: rgba(255,255,255,.18); }
.card__body { padding: 24px 24px 28px; }
.card__body p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.card__title { margin: 0 0 10px; font: 600 26px/1.1 var(--display); text-transform: uppercase; }
.card--soon { border-style: dashed; }
.card--soon .card__title { color: var(--muted); }
.card__link { color: var(--text); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.card__link:hover { color: var(--accent); }
.tag {
  display: inline-block; margin: 0 0 14px !important;
  font: 500 12px/1 var(--body) !important; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent) !important;
}
.tag--muted { color: var(--muted) !important; }

/* ---------- Pillars ---------- */
.pillars { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillars li { counter-increment: p; padding: 32px 28px 8px 0; border-right: 1px solid var(--line); }
.pillars li + li { padding-left: 28px; }
.pillars li:last-child { border-right: 0; }
.pillars li::before { content: "0" counter(p); display: block; margin-bottom: 18px; font: 500 14px/1 var(--display); color: var(--accent); letter-spacing: .1em; }
.pillars h3 { margin: 0 0 10px; font: 600 22px/1.15 var(--display); text-transform: uppercase; }
.pillars p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list span { width: 90px; flex: none; color: var(--muted); font-size: 14px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--accent); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  font: inherit; font-size: 16px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 16px 0 0; min-height: 1.4em; font-size: 15px; }
.form__status.is-ok { color: #6fd08c; }
.form__status.is-err { color: #ff7a7d; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; font-size: 14px; }
.footer p { margin: 0; }
.footer__muted { color: var(--muted); }
.footer__portal { color: var(--muted); text-decoration: none; }
.footer__portal:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .pillars li:nth-child(odd) { padding-right: 24px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav__links a:not(.btn) { display: none; }
  .grid, .pillars { grid-template-columns: 1fr; }
  .hero__waves { right: -320px; opacity: .6; }
  .form { padding: 22px; }
  .hero__actions .btn { flex: 1 1 auto; }
}
