/* =========================================================================
   art.rbmates.com
   Dark, editorial, hairline-ruled. No cards, no gradients, no glow.
   ========================================================================= */

:root {
  --bg: #0b0b0b;
  --bg-raised: #121211;
  --text: #f3f1ec;
  --muted: #a7a39b;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);

  --sans: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, "Cascadia Mono",
    "Roboto Mono", Consolas, monospace;

  --shell: 1360px;
  --gutter: clamp(20px, 5vw, 64px);
  --gap: clamp(16px, 2.2vw, 32px);
  --section-space: clamp(88px, 13vh, 180px);
  --measure: 68ch;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.18vw, 1.125rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------------------------------------------------------------- header - */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 11, 0.88);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wordmark__name {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  color: var(--text);
  margin: 0;
}

.wordmark__role {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
}

.site-nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--line);
}

/* ------------------------------------------------------------------ hero - */

.hero {
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(48px, 8vh, 88px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: min(82vh, 860px);
}

.hero__headline {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.hero__prose {
  margin-top: clamp(28px, 4vh, 44px);
}

.hero__sign {
  margin-top: clamp(24px, 3.5vh, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.95rem;
  color: var(--text);
  max-width: 42ch;
}

.hero__media {
  width: 100%;
}

/* ----------------------------------------------------------------- prose - */

.prose {
  display: flex;
  flex-direction: column;
  gap: 1.15em;
  max-width: min(var(--measure), 720px);
  color: var(--muted);
}

.prose--lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.28rem);
  max-width: min(64ch, 760px);
}

.prose--offset {
  margin-top: clamp(32px, 5vh, 64px);
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

/* -------------------------------------------------------------- sections - */

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line-soft);
}

.section__label {
  margin-bottom: clamp(28px, 4vh, 48px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}

.section__heading {
  font-size: clamp(1.9rem, 3.8vw, 3.3rem);
  line-height: 1.05;
  max-width: 18ch;
}

.trajectory {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: clamp(36px, 5vh, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.68rem;
}

.trajectory span:not(:last-child)::after {
  content: "\2192";
  margin-left: 14px;
  opacity: 0.45;
}

/* Asymmetric case-study head: heading left, intro copy offset right. */
.case__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.case__intro {
  max-width: 60ch;
}

.case__link {
  margin-top: 0.4em;
}

.case__link a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.25s ease;
}

.case__link a:hover {
  border-bottom-color: var(--text);
}

.case__split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.case__split-text .section__heading {
  margin-bottom: clamp(24px, 3vh, 36px);
}

/* ----------------------------------------------------------------- media - */

.media-block {
  margin-top: clamp(40px, 6vh, 80px);
}

.media-block--wide {
  margin-top: clamp(48px, 7vh, 96px);
}

.media {
  margin: 0;
  width: 100%;
}

.media__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-raised);
}

.media__frame > img,
.media__frame > iframe,
.media__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.media__caption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.pair--tall {
  gap: clamp(12px, 1.6vw, 20px);
}

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

/* --------------------------------------------------------- video facades - */

.video-facade__button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.video-facade__button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.video-facade__button:hover img {
  opacity: 0.85;
}

.video-facade__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.4);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.video-facade__button:hover .video-facade__play {
  background: rgba(11, 11, 11, 0.65);
  border-color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------------------- placeholders - */

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background-color: #0e0e0d;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.028) 0,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 9px
  );
}

.placeholder__kind,
.placeholder__label,
.placeholder__meta {
  font-family: var(--mono);
  text-transform: uppercase;
}

.placeholder__kind {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(243, 241, 236, 0.35);
}

.placeholder__label {
  font-size: clamp(0.72rem, 1.1vw, 0.9rem);
  letter-spacing: 0.14em;
  color: rgba(243, 241, 236, 0.72);
  max-width: 26ch;
  line-height: 1.5;
}

.placeholder__meta {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: rgba(243, 241, 236, 0.3);
}

/* ---------------------------------------------------------- capabilities - */

.capabilities {
  margin-top: clamp(48px, 7vh, 96px);
  padding-top: clamp(24px, 3vh, 36px);
  border-top: 1px solid var(--line-soft);
}

.capabilities__heading {
  margin-bottom: clamp(20px, 2.5vh, 28px);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text);
}

.capabilities__list {
  columns: 2;
  column-gap: clamp(32px, 6vw, 96px);
}

.capabilities__list li {
  break-inside: avoid;
  padding-block: 9px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ------------------------------------------------------------------- cta - */

.section--cta {
  padding-bottom: clamp(72px, 10vh, 140px);
}

.cta__heading {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: clamp(28px, 4vh, 48px);
  max-width: 16ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(36px, 5vh, 56px);
}

.button {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.cta__links {
  display: inline-flex;
  gap: clamp(16px, 2.4vw, 32px);
}

.cta__links a {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.cta__links a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.cta__address {
  margin-top: clamp(24px, 3vh, 36px);
  letter-spacing: 0.08em;
  text-transform: none;
}

/* ---------------------------------------------------------------- footer - */

.site-footer {
  padding-block: clamp(32px, 5vh, 56px);
  border-top: 1px solid var(--line-soft);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

/* ------------------------------------------------------------ access gate - */

.gate {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
}

.gate__inner {
  width: min(360px, calc(100vw - 40px));
  text-align: left;
}

.gate__note {
  margin-top: 12px;
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.gate__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.gate__label {
  font-size: 0.66rem;
}

.gate__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.gate__input:focus {
  outline: none;
  border-color: var(--text);
}

.gate__form .button {
  align-self: flex-start;
  margin-top: 8px;
}

.gate__error {
  margin-top: 16px;
  color: #e0857a;
  text-transform: none;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------- motion - */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------ responsive - */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: start;
  }

  .hero__headline {
    max-width: 12ch;
  }

  .case__head,
  .case__split {
    grid-template-columns: 1fr;
  }

  .section__heading {
    max-width: 22ch;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header__inner {
    padding-block: 12px;
    align-items: center;
  }

  .wordmark__role {
    display: none;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .pair,
  .strip {
    grid-template-columns: 1fr;
  }

  .capabilities__list {
    columns: 1;
  }

  .site-footer__inner {
    align-items: baseline;
  }

  .video-facade__play {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
