:root {
  color-scheme: dark;
  --ink: #f9efe0;
  --muted: #d7c6b2;
  --soft: #fff8ef;
  --paper-ink: #211d17;
  --paper-muted: #5a4c3d;
  --charcoal: #11131a;
  --night: #181a24;
  --aubergine: #2d1e38;
  --violet: #8f6bbd;
  --gold: #d7b56d;
  --sage: #7fa58f;
  --rose: #d99a9f;
  --teal: #76b8ad;
  --panel: rgba(249, 239, 224, 0.1);
  --glass: rgba(17, 19, 26, 0.58);
  --line: rgba(249, 239, 224, 0.18);
  --paper-line: rgba(33, 29, 23, 0.16);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--charcoal);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(140deg, rgba(58, 36, 71, 0.42), transparent 38%),
    linear-gradient(35deg, rgba(127, 165, 143, 0.18), transparent 34%),
    var(--night);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

canvas {
  max-width: 100%;
}

#sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

.site-header {
  position: fixed;
  top: 18px;
  left: clamp(16px, 4vw, 42px);
  right: clamp(16px, 4vw, 42px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 26, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
}

.brand,
.header-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 900;
}

.brand {
  gap: 12px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(215, 181, 109, 0.68);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.82rem;
}

.header-action {
  padding: 0 16px;
  border: 1px solid rgba(249, 239, 224, 0.42);
  border-radius: var(--radius);
  color: var(--ink);
}

.header-action:hover,
.header-action:focus-visible {
  border-color: var(--gold);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 96svh;
  padding: clamp(62px, 8vh, 88px) clamp(20px, 5vw, 68px) 62px;
  overflow: hidden;
  background: url("assets/cosmic-studio-hero.png?v=5") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.52) 0%, rgba(8, 11, 18, 0.18) 38%, rgba(8, 11, 18, 0) 72%),
    linear-gradient(180deg, rgba(8, 11, 18, 0) 0%, rgba(8, 11, 18, 0.1) 100%);
  pointer-events: none;
}

.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 790px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.52);
}

.hero-inner::before {
  content: "";
  display: block;
  width: 112px;
  height: 1px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.03;
  text-wrap: balance;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3.7rem, 7.2vw, 7.1rem);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  text-shadow: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
}

.button-primary {
  background: var(--gold);
  color: #211509;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #edca7d;
}

.button-secondary {
  border-color: rgba(249, 239, 224, 0.44);
  background: rgba(249, 239, 224, 0.1);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--sage);
}

.section {
  position: relative;
  scroll-margin-top: 82px;
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 68px);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.intro,
.enquiry {
  background: var(--soft);
  color: var(--paper-ink);
}

.intro {
  padding-top: clamp(54px, 7vw, 92px);
}

.services,
.process,
.faq {
  background: rgba(17, 19, 26, 0.78);
}

.newsletter {
  padding: clamp(38px, 6vw, 64px) clamp(20px, 5vw, 68px);
  background: #21151a;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.process-layout,
.faq-layout,
.enquiry-layout,
.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.newsletter-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
}

.intro-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(32px, 6vw, 76px);
}

.intro-lead {
  max-width: 560px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 3.7vw, 4.15rem);
  line-height: 1.02;
  overflow-wrap: break-word;
}

.intro-copy,
.enquiry-copy p {
  color: var(--paper-muted);
  font-size: 1.08rem;
}

.intro-copy {
  display: grid;
  max-width: 650px;
  gap: 16px;
  padding-top: 10px;
}

.intro-copy p {
  margin-bottom: 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading h2,
.process h2,
.faq h2,
.enquiry h2,
.newsletter h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 5vw, 5rem);
}

.newsletter h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.07rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.faq-list details,
.enquiry-form,
.newsletter-form,
.thank-you-panel,
.error-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(249, 239, 224, 0.08);
}

.service-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 24px;
  color: var(--ink);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(215, 181, 109, 0.6);
  background:
    linear-gradient(180deg, rgba(249, 239, 224, 0.14), rgba(249, 239, 224, 0.06));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.service-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid rgba(215, 181, 109, 0.62);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card h3,
.step-item h3 {
  margin-bottom: 13px;
  font-size: 1.25rem;
}

.service-card p,
.step-item p,
.faq-list p {
  color: var(--muted);
}

.service-card .text-link {
  margin-top: auto;
  width: fit-content;
  color: var(--gold);
  font-weight: 900;
}

.sticky-heading {
  position: sticky;
  top: 96px;
  margin-bottom: 0;
}

.step-list {
  display: grid;
  gap: 18px;
}

.step-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0 24px 24px;
  border-left: 1px solid rgba(215, 181, 109, 0.32);
}

.step-item > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(215, 181, 109, 0.64);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

.step-item p {
  margin-bottom: 0;
}

.enquiry .eyebrow {
  color: #8b5537;
}

.faq-list details {
  padding: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 14px 0 0;
}

.enquiry-form,
.newsletter-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 248, 239, 0.92)),
    #fffaf2;
  color: var(--paper-ink);
  border-color: var(--paper-line);
  box-shadow: 0 34px 90px rgba(33, 29, 23, 0.16);
}

.newsletter-form {
  box-shadow: none;
}

.newsletter-form .button-primary {
  color: #211509;
  box-shadow: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #463b30;
  font-size: 0.94rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(33, 29, 23, 0.18);
  border-radius: var(--radius);
  background: #fffefd;
  color: var(--paper-ink);
  padding: 11px 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(143, 107, 189, 0.28);
  border-color: var(--violet);
  box-shadow: 0 10px 30px rgba(143, 107, 189, 0.12);
}

.form-button,
.newsletter-form .button {
  width: 100%;
}

.form-button {
  border: 0;
}

.form-note {
  min-height: 1.4em;
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.95rem;
}

.field-hint {
  color: var(--paper-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.form-disclaimer {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(139, 85, 55, 0.18);
  border-radius: var(--radius);
  background: rgba(139, 85, 55, 0.06);
  color: var(--paper-muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

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

.hidden-field {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 68px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--charcoal);
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  color: var(--ink);
  font-weight: 900;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--gold);
  font-weight: 900;
}

.thank-you-page,
.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px 20px 40px;
}

.thank-you-panel,
.error-panel {
  width: min(100%, 720px);
  padding: clamp(28px, 6vw, 52px);
  background: rgba(249, 239, 224, 0.1);
  box-shadow: var(--shadow);
}

.thank-you-panel h1,
.error-panel h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.thank-you-panel p,
.error-panel p {
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 88svh;
    padding-top: 72px;
    padding-bottom: 44px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(8, 11, 18, 0.58) 0%, rgba(8, 11, 18, 0.26) 100%),
      linear-gradient(180deg, rgba(8, 11, 18, 0.02) 0%, rgba(8, 11, 18, 0.24) 100%);
  }

  h1 {
    font-size: clamp(3.2rem, 14vw, 5.4rem);
  }

  .intro-grid,
  .process-layout,
  .faq-layout,
  .enquiry-layout,
  .newsletter-layout {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

}

@media (max-width: 620px) {
  .site-header {
    top: 12px;
    left: 12px;
    right: 12px;
    min-height: 58px;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-action {
    flex: 0 0 auto;
    min-height: 40px;
    padding-inline: 12px;
  }

  .hero {
    min-height: 86svh;
    padding-inline: 18px;
    padding-top: 62px;
    padding-bottom: 38px;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .intro-lead {
    font-size: clamp(1.85rem, 8.2vw, 2.2rem);
    line-height: 1.08;
  }

  .intro-copy {
    padding-top: 0;
  }

  .hero-copy {
    max-width: 330px;
    font-size: 1.02rem;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(8, 11, 18, 0.16) 0%, rgba(8, 11, 18, 0.72) 72%, rgba(8, 11, 18, 0.86) 100%);
  }

  .hero-actions .button,
  .service-grid,
  .form-row {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .section,
  .intro,
  .newsletter {
    padding-inline: 18px;
  }

  .service-card {
    min-height: auto;
  }

  .service-card,
  .faq-list details,
  .enquiry-form,
  .newsletter-form {
    padding: 20px;
  }

  .step-item {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-left: 12px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .hero-motion {
    display: none;
  }
}
