:root {
  color-scheme: dark;
  --bg: #060606;
  --bg-elevated: rgba(14, 14, 16, 0.82);
  --bg-soft: rgba(26, 26, 29, 0.72);
  --surface: rgba(15, 15, 18, 0.82);
  --surface-strong: rgba(19, 19, 22, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f1f3;
  --muted: #b7adb1;
  --accent: #ff4d5f;
  --accent-dark: #650712;
  --accent-soft: rgba(255, 77, 95, 0.18);
  --glow: rgba(255, 60, 81, 0.42);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
  --content-width: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Sora", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(154, 17, 32, 0.18), transparent 30%),
    linear-gradient(180deg, #040404 0%, #070708 42%, #0a0a0c 100%);
  overflow-x: hidden;
}

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

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

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid rgba(255, 90, 107, 0.9);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.36;
  z-index: -2;
  pointer-events: none;
}

.ambient-left {
  top: -8rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(129, 0, 20, 0.52) 0%, transparent 68%);
}

.ambient-right {
  right: -8rem;
  top: 16rem;
  background: radial-gradient(circle, rgba(255, 74, 86, 0.26) 0%, transparent 68%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.25;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

.site-header {
  width: var(--content-width);
  margin: 0 auto;
  min-height: 84px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  right: -14px;
  height: 68px;
  z-index: -1;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 10, 0.82),
    rgba(17, 17, 20, 0.86)
  );
  box-shadow: var(--shadow-soft);
}

.brand-mark,
.site-nav {
  min-height: 56px;
  padding: 0 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  align-self: center;
}

.brand-ruby {
  position: relative;
  display: block;
  width: 70px;
  height: 42px;
  clip-path: polygon(
    4% 40%,
    18% 14%,
    42% 0%,
    58% 0%,
    82% 14%,
    96% 40%,
    80% 58%,
    56% 100%,
    44% 100%,
    20% 58%
  );
  background: linear-gradient(135deg, #ffb2ba 0%, #ff566b 26%, #b20518 60%, #3f0108 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 24px rgba(107, 0, 16, 0.32),
    0 0 18px rgba(255, 68, 89, 0.18);
  overflow: hidden;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    filter 240ms ease;
  animation: rubyPulse 5.2s ease-in-out infinite;
}

.brand-ruby::before,
.brand-ruby::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand-ruby::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 60%);
  mix-blend-mode: screen;
}

.brand-ruby::after {
  inset: auto 12px 5px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 224, 0.4), transparent);
  opacity: 0.62;
}

.brand-ruby__facet {
  position: absolute;
  inset: 0;
}

.brand-ruby__facet--table {
  clip-path: polygon(22% 13%, 42% 2%, 58% 2%, 78% 13%, 68% 26%, 32% 26%);
  background: linear-gradient(180deg, rgba(255, 238, 241, 0.68), rgba(255, 166, 176, 0.18));
}

.brand-ruby__facet--crown-left {
  clip-path: polygon(4% 40%, 18% 14%, 32% 26%, 20% 52%);
  background: linear-gradient(135deg, rgba(255, 156, 168, 0.68), rgba(88, 0, 14, 0.92));
}

.brand-ruby__facet--crown-right {
  clip-path: polygon(68% 26%, 82% 14%, 96% 40%, 80% 52%);
  background: linear-gradient(225deg, rgba(255, 164, 176, 0.7), rgba(96, 0, 15, 0.9));
}

.brand-ruby__facet--core-left {
  clip-path: polygon(20% 18%, 32% 26%, 43% 50%, 28% 58%, 16% 50%);
  background: linear-gradient(180deg, rgba(255, 34, 41, 0.96), rgba(37, 0, 4, 0.98));
}

.brand-ruby__facet--core-center {
  clip-path: polygon(43% 26%, 57% 26%, 66% 42%, 50% 64%, 34% 42%);
  background: linear-gradient(180deg, rgba(180, 0, 12, 0.98), rgba(255, 56, 67, 0.55) 52%, rgba(54, 0, 4, 0.96));
}

.brand-ruby__facet--core-right {
  clip-path: polygon(57% 26%, 80% 18%, 84% 50%, 72% 58%, 57% 50%);
  background: linear-gradient(180deg, rgba(255, 22, 29, 0.96), rgba(40, 0, 5, 0.98));
}

.brand-ruby__facet--pavilion-left {
  clip-path: polygon(12% 52%, 28% 58%, 44% 100%, 22% 72%);
  background: linear-gradient(180deg, rgba(255, 133, 145, 0.78), rgba(145, 5, 22, 0.88));
}

.brand-ruby__facet--pavilion-center {
  clip-path: polygon(28% 58%, 72% 58%, 56% 100%, 44% 100%);
  background: linear-gradient(180deg, rgba(255, 116, 128, 0.78), rgba(185, 6, 22, 0.92) 56%, rgba(44, 0, 4, 0.98));
}

.brand-ruby__facet--pavilion-right {
  clip-path: polygon(72% 58%, 88% 52%, 78% 72%, 56% 100%);
  background: linear-gradient(180deg, rgba(255, 139, 149, 0.8), rgba(118, 0, 17, 0.9));
}

.brand-mark:hover .brand-ruby {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 14px 30px rgba(121, 0, 19, 0.38),
    0 0 22px rgba(255, 74, 97, 0.28);
}

@keyframes rubyPulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }

  50% {
    filter: saturate(1.08) brightness(1.05);
  }
}

.site-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: 110px 0;
}

section[id] {
  scroll-margin-top: 120px;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #f1b5ba;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.story-block h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 1.08;
  max-width: 12ch;
}

.hero__lead,
.section-heading p,
.story-block p,
.contact-panel p,
.service-card p,
.signature-card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero__lead {
  max-width: 62ch;
  margin: 28px 0 0;
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__actions {
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

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

.button--primary {
  color: #fff7f8;
  background:
    linear-gradient(135deg, rgba(102, 6, 18, 0.94), rgba(255, 79, 98, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 40px rgba(156, 15, 32, 0.32);
}

.button--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 20px 46px rgba(171, 14, 35, 0.42);
}

.button--ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(12, 12, 15, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.button--ghost:hover {
  border-color: rgba(255, 115, 130, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(113, 7, 19, 0.18);
}

.button--large {
  min-width: 200px;
  min-height: 62px;
}

.hero__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.highlight-card,
.story-panel,
.contact-panel,
.signature-card,
.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.highlight-card {
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}

.highlight-card::after,
.signature-card::after,
.service-card::after,
.contact-panel::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 82, 97, 0.16), transparent 68%);
  pointer-events: none;
}

.highlight-card__label,
.service-card__index,
.story-panel__metrics span {
  display: block;
  color: #cf9298;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.highlight-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-self: start;
  padding-top: clamp(10px, 5vh, 52px);
}

.hero__frame {
  position: relative;
  width: min(312px, 100%);
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 10, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 90px rgba(0, 0, 0, 0.55);
}

.hero__frame-line {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  pointer-events: none;
}

.hero__logo {
  width: 100%;
  aspect-ratio: 1734 / 1240;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.hero__gem {
  position: absolute;
  display: block;
  width: 58px;
  height: 34px;
  pointer-events: none;
  opacity: 0.9;
  animation-duration: 6.4s;
}

.hero__gem--top {
  top: -16px;
  right: -12px;
}

.hero__gem--bottom {
  bottom: -16px;
  left: -8px;
  width: 44px;
  height: 26px;
  opacity: 0.58;
  animation-duration: 7s;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.story-block h2,
.contact-panel h2 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.section-heading p {
  margin: 18px 0 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.service-card {
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius-md);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 94, 111, 0.22);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 92, 110, 0.08);
}

.service-card h3,
.signature-card h3 {
  margin: 16px 0 0;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-card p,
.signature-card p {
  margin: 14px 0 0;
}

.section--story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.story-block,
.story-panel {
  min-height: 100%;
}

.story-block {
  padding: 28px 0;
}

.story-panel {
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(93, 4, 16, 0.44), rgba(16, 16, 18, 0.92) 55%),
    var(--surface-strong);
}

.story-panel__shape {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  transform: rotate(45deg);
  background:
    linear-gradient(135deg, rgba(255, 91, 109, 0.95), rgba(93, 4, 16, 0.96));
  box-shadow: 0 18px 34px rgba(109, 3, 19, 0.34);
}

.story-panel__quote {
  margin: 32px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.story-panel__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.story-panel__metrics div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.story-panel__metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 1.16rem;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.signature-card {
  border-radius: var(--radius-md);
  padding: 28px;
}

.section--contact {
  padding-bottom: 120px;
}

.contact-panel {
  padding: 48px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(103, 6, 17, 0.32), rgba(13, 13, 16, 0.92) 48%),
    var(--surface-strong);
}

.contact-panel p {
  max-width: 700px;
  margin: 18px auto 0;
  text-align: center;
}

.contact-panel .eyebrow,
.contact-panel h2 {
  text-align: center;
}

.contact-actions {
  justify-content: center;
  margin-top: 34px;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 800ms ease,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translate3d(-26px, 0, 0);
}

[data-reveal="right"] {
  transform: translate3d(26px, 0, 0);
}

[data-reveal="scale"] {
  transform: scale(0.96);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 0 6px;
  }

  .site-header::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 104px;
    transform: translateY(-50%);
    border-radius: 28px;
  }

  .brand-mark,
  .site-nav {
    justify-content: center;
  }

  .hero,
  .section--story,
  .service-grid,
  .signature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero h1 {
    max-width: 100%;
  }

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

@media (max-width: 720px) {
  :root {
    --content-width: min(100vw - 32px, 1180px);
  }

  .site-header {
    gap: 4px;
    padding: 10px 0 8px;
  }

  .site-header::before {
    height: 108px;
  }

  .brand-mark {
    display: inline-flex;
    min-height: auto;
    justify-content: center;
    padding-top: 4px;
    padding-bottom: 2px;
  }

  .brand-ruby {
    width: 56px;
    height: 34px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .section {
    padding: 82px 0;
  }

  .hero {
    padding-top: 20px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .section-heading h2,
  .story-block h2,
  .contact-panel h2,
  .story-panel__quote {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .hero__frame,
  .contact-panel,
  .story-panel,
  .service-card,
  .signature-card,
  .highlight-card {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero__visual {
    padding-top: 8px;
  }

  .hero__frame {
    width: min(312px, 82vw);
  }

  .story-panel__metrics {
    grid-template-columns: 1fr;
  }

  .button,
  .button--large {
    width: 100%;
  }
}

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none !important;
  }
}
