/* ==========================================================
   Algomora — Luxury dark theme
   ========================================================== */

:root {
  --bg: #07050d;
  --bg-alt: #0b0814;
  --surface: #110c1d;
  --line: rgba(201, 169, 106, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f1ecf8;
  --muted: #a096b3;
  --purple: #8a3dff;
  --purple-deep: #6a14f5;
  --lilac: #bb97fc;
  --gold: #c9a96a;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --display-weight: 400;
  --tracking: 0.22em;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--purple); color: #fff; }

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

/* ---------- Typography ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.05em;
}

.title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.35;
  text-wrap: balance;
}
.title { line-height: 1.12; font-size: clamp(36px, 5vw, 64px); }

.title em,
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--lilac), var(--purple) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title em,
.hero__title em { font-style: italic; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    background 0.3s, border-color 0.3s, color 0.3s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  box-shadow: 0 10px 40px -12px rgba(138, 61, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -12px rgba(138, 61, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  padding: 10px 24px;
  font-size: 14px;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--link {
  padding-inline: 6px;
  border-radius: 0;
  border-bottom-color: var(--line);
  color: var(--muted);
}
.btn--link:hover { color: var(--text); border-bottom-color: var(--gold); }

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

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 22px;
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s;
}
.nav.is-scrolled {
  padding-block: 12px;
  background: rgba(7, 5, 13, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { height: 40px; width: auto; }
.brand__name {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.34em;
}

.nav__links { display: flex; gap: 38px; }
.nav__links a {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  inset-inline: 12px;
  height: 1px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 130px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(138, 61, 255, 0.22), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(201, 169, 106, 0.07), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  flex: 1;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(40px, 6.6vw, 88px);
  line-height: 1.3;
  text-wrap: balance;
}
.hero__title { font-size: clamp(48px, 7.6vw, 104px); line-height: 1.02; }

.hero__lead {
  max-width: 34em;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 44px;
}

.hero__emblem {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.hero__key {
  position: relative;
  width: 32%;
  height: auto;
  filter: drop-shadow(0 0 50px rgba(138, 61, 255, 0.55));
  animation: float 7s ease-in-out infinite;
}
.rings { position: absolute; inset: 0; display: grid; place-items: center; }
.rings span {
  grid-area: 1 / 1;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(187, 151, 252, 0.22);
  animation: pulse 6s ease-in-out infinite;
}
.rings span:nth-child(1) { width: 100%; border-color: rgba(201, 169, 106, 0.14); }
.rings span:nth-child(2) { width: 78%; animation-delay: 0.6s; }
.rings span:nth-child(3) { width: 56%; animation-delay: 1.2s; }
.rings span:nth-child(4) {
  width: 34%;
  animation-delay: 1.8s;
  background: radial-gradient(circle, rgba(138, 61, 255, 0.25), transparent 70%);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.045); opacity: 0.45; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
  margin-top: 60px;
  padding-block: 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(90px, 12vw, 160px); position: relative; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.about__head { position: sticky; top: 120px; }
.about__body > p { color: var(--muted); font-size: 18px; }
.about__body > p + p { margin-top: 22px; }

.values { margin-top: 54px; border-top: 1px solid var(--line); }
.values li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line-soft);
}
.values h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  color: var(--text);
}
.values h3 { font-weight: 500; font-size: 24px; }
.values p { color: var(--muted); font-size: 16px; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  border-inline-start: 1px solid var(--line-soft);
}
.service {
  position: relative;
  padding: 46px 36px 52px;
  border-bottom: 1px solid var(--line-soft);
  border-inline-end: 1px solid var(--line-soft);
  overflow: hidden;
  transition: background 0.5s;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.7s var(--ease);
}
.service:hover { background: linear-gradient(180deg, rgba(138, 61, 255, 0.09), transparent 75%); }
.service:hover::before { transform: scaleX(1); }
.service__num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 34px;
}
.service h3,
.work h3,
.step h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.service h3,
.work h3,
.step h3 { font-weight: 500; font-size: 28px; line-height: 1.2; }
.service p, .work p, .step p { color: var(--muted); font-size: 16px; }

/* Work */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.work:hover { transform: translateY(-6px); border-color: var(--line); }
.work__plate {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0d0918;
}
.work__plate::before,
.work__plate::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(187, 151, 252, 0.2);
  transition: transform 0.9s var(--ease);
}
.work__plate::before { width: 62%; aspect-ratio: 1; }
.work__plate::after { width: 36%; aspect-ratio: 1; border-color: rgba(201, 169, 106, 0.25); }
.work:hover .work__plate::before { transform: scale(1.12); }
.work:hover .work__plate::after { transform: scale(0.88); }
.work__plate span {
  position: relative;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(48px, 6vw, 84px);
  color: rgba(241, 236, 248, 0.9);
}
.work__plate--a { background: radial-gradient(80% 90% at 20% 10%, rgba(138, 61, 255, 0.5), #0d0918 70%); }
.work__plate--b { background: radial-gradient(80% 90% at 85% 90%, rgba(106, 20, 245, 0.55), #0d0918 70%); }
.work__plate--c { background: radial-gradient(70% 90% at 50% 110%, rgba(187, 151, 252, 0.35), #0d0918 70%); }
.work__plate--d { background: radial-gradient(80% 90% at 85% 5%, rgba(201, 169, 106, 0.22), #0d0918 65%),
  radial-gradient(60% 80% at 10% 100%, rgba(138, 61, 255, 0.4), transparent 70%); }

.work__body { padding: 32px 34px 36px; }
.work__cat {
  color: var(--gold) !important;
  font-size: 13px !important;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; direction: ltr; }
.tags li {
  padding: 4px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.work__link {
  display: inline-block;
  margin-top: 24px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--lilac);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.work__link:hover { color: var(--gold); border-color: var(--gold); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step {
  position: relative;
  padding: 40px 28px 0 28px;
  border-top: 1px solid var(--line);
}
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  inset-inline-start: 28px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 5px rgba(138, 61, 255, 0.18);
}
.step__num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 52px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 106, 0.55);
  margin-bottom: 26px;
}

/* Contact */
.contact { overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 50% 100%, rgba(138, 61, 255, 0.2), transparent 70%);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.contact__lead { color: var(--muted); margin-top: 24px; max-width: 30em; }
.contact__mail {
  display: inline-block;
  margin-top: 34px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  direction: ltr;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.contact__mail:hover { color: var(--gold); border-color: var(--gold); }

.form {
  display: grid;
  gap: 26px;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(17, 12, 29, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  backdrop-filter: blur(10px);
}
.field { display: grid; gap: 8px; }
.field span { font-size: 13.5px; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.3s;
}
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--lilac); }
.form .btn { justify-self: start; }
.form__note { font-size: 14px; color: var(--gold); min-height: 1.5em; }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); padding-block: 36px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer .brand__mark { height: 32px; }
.footer__copy { color: var(--muted); font-size: 14px; }

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__emblem { order: -1; width: min(70%, 300px); }
  .about, .contact__inner { grid-template-columns: 1fr; }
  .about__head { position: static; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(7, 5, 13, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 24px; font-family: var(--font-display); color: var(--text); }
  .nav__cta-mobile { display: block; color: var(--gold) !important; }
  .hero__strip { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .services, .works, .steps { grid-template-columns: 1fr; }
  .values li { grid-template-columns: 1fr; gap: 6px; }
  .hero { padding-top: 110px; }
  .brand__name { font-size: 13px; letter-spacing: 0.26em; }
  .work__body { padding: 26px 24px 30px; }
}
