/* ============================================================
   Radiance Haus — main page: "The Rooms"
   The page as a walk through full-viewport colour rooms, one
   per service, alternating left- and right-justified. The
   starburst travels the page like a sun, bleeding off the edges
   as it goes, and each numbered door is a small haus.
   The burst asset is the canonical logomark export verbatim; it
   carries ~18% blank canvas per side, so every mask box below is
   scaled up ~1.52x and offset outward to put the drawn artwork
   back where the original tight-cropped design had it. The walk ends inside
   a photographed venue, moving. Palette HEX values are
   authoritative (Notion: 01.03).
   ============================================================ */

:root {
  --parchment:   #FCF6F0;
  --shadow:      #24212A;
  --sandy:       #F89C49;
  --coral:       #F26C73;
  --amethyst:    #A27BB7;
  --french-blue: #413D7B;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;

  --step-hero: clamp(3rem, 12vw, 10.5rem);
  --step-room: clamp(2.4rem, 8.5vw, 7.5rem);
  --step-xl:   clamp(1.8rem, 4.5vw, 3.4rem);
  --step-md:   clamp(1.05rem, 2vw, 1.4rem);
  --step-sm:   clamp(0.85rem, 1.4vw, 1rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--shadow);
  color: var(--shadow);
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--shadow);
  color: var(--parchment);
}

/* ---------- Rooms ---------- */

.room {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 7vw;
  scroll-snap-align: start;
}

.room-inner {
  position: relative;
  z-index: 3;
}

/* The travelling sun: the burst mark recoloured per room via
   mask, so the asset stays the single source of the shape. */
.burst {
  position: absolute;
  z-index: 1;
  width: 70vmin;
  height: 70vmin;
  pointer-events: none;
  -webkit-mask: url(../assets/rh-burst.svg?v=2) center / contain no-repeat;
  mask: url(../assets/rh-burst.svg?v=2) center / contain no-repeat;
  animation: burst-turn 240s linear infinite;
}

@keyframes burst-turn {
  to { rotate: 360deg; }
}

/* ---------- Doors: every room is numbered on a little haus ---------- */

.room-door {
  position: relative;
  display: grid; /* block-level: the door sits on its own line above the name */
  place-items: center;
  width: 4.4rem;
  height: 5.1rem;
  margin-bottom: 1.6rem;
}

.room-door::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--door);
  -webkit-mask: url(../assets/rh-haus.svg) center / contain no-repeat;
  mask: url(../assets/rh-haus.svg) center / contain no-repeat;
}

.room-num {
  position: relative;
  top: 0.5rem; /* optically centred in the walls, below the roof */
  font-size: var(--step-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-right: -0.2em;
  color: var(--room-bg);
}

/* ---------- Room: hero (dawn — the sun barely up) ---------- */

.room-hero {
  background: var(--amethyst);
  align-items: center;
  text-align: center;
}

.room-hero .burst {
  background: var(--french-blue);
  width: 145vmin;
  height: 145vmin;
  left: -63vmin;
  bottom: -70vmin;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-hero);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--shadow);
}

.wordmark-line { display: block; }

.tagline {
  margin-top: 2.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--shadow);
}

.tagline em {
  font-style: normal;
  color: var(--parchment);
}

/* ---------- Rooms: services ---------- */

.services { list-style: none; }

.room-svc a {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-room);
  line-height: 1.02;
  letter-spacing: 0.01em;
  max-width: 14ch;
  text-decoration: none;
  transition: color 200ms ease;
}

/* The rooms alternate: odd rooms read from the left, even rooms
   from the right, with the sun bleeding in from the free side. */
.room-svc .room-inner { width: 100%; }
.room-svc .burst { width: 106vmin; height: 106vmin; }

.room-svc-2 .room-inner,
.room-svc-4 .room-inner { text-align: right; }
.room-svc-2 .room-door,
.room-svc-4 .room-door { margin-left: auto; }
.room-svc-2 a,
.room-svc-4 a { text-align: right; }

/* 01 Immersive Experiences — coral room, morning sun climbing right */
.room-svc-1 { background: var(--coral); --room-bg: var(--coral); --door: var(--parchment); }
.room-svc-1 .burst { background: var(--parchment); right: -39vmin; bottom: -29vmin; }
.room-svc-1 a { color: var(--shadow); }
.room-svc-1 a:hover, .room-svc-1 a:focus-visible { color: var(--parchment); }

/* 02 Lighting Consultation — french blue room, sun over the left */
.room-svc-2 { background: var(--french-blue); --room-bg: var(--french-blue); --door: var(--sandy); }
.room-svc-2 .burst { background: var(--sandy); left: -31vmin; top: -15vmin; }
.room-svc-2 a { color: var(--parchment); }
.room-svc-2 a:hover, .room-svc-2 a:focus-visible { color: var(--sandy); }

/* 03 Interactive Game Development — sandy room, noon: sun high right */
.room-svc-3 { background: var(--sandy); --room-bg: var(--sandy); --door: var(--french-blue); }
.room-svc-3 .burst { background: var(--french-blue); left: 50%; margin-left: -53vmin; top: -47vmin; }
.room-svc-3 a { color: var(--shadow); }
.room-svc-3 a:hover, .room-svc-3 a:focus-visible { color: var(--french-blue); }

/* 04 Dynamic Learning Experiences — shadow room, the sun as a lantern */
.room-svc-4 { background: var(--shadow); --room-bg: var(--shadow); --door: var(--sandy); }
.room-svc-4 .burst { background: var(--amethyst); left: -33vmin; bottom: -27vmin; }
.room-svc-4 a { color: var(--sandy); }
.room-svc-4 a:hover, .room-svc-4 a:focus-visible { color: var(--parchment); }

/* 05 Marketing and Experience Strategy — amethyst room, afternoon */
.room-svc-5 { background: var(--amethyst); --room-bg: var(--amethyst); --door: var(--shadow); }
.room-svc-5 .burst { background: var(--parchment); right: -37vmin; bottom: -13vmin; }
/* Lift the door and title into the room's upper third, clear of the sun. */
.room-svc-5 { justify-content: flex-start; padding-top: 16svh; }
.room-svc-5 a { color: var(--shadow); }
.room-svc-5 a:hover, .room-svc-5 a:focus-visible { color: var(--parchment); }

/* ---------- Room: about (the programme notes) ---------- */

.room-thesis { background: var(--parchment); }

.room-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.8vw, 2rem); /* double --step-sm */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  width: 100%;
  color: var(--sandy);
}

.room-thesis .burst {
  background: var(--sandy);
  width: 70vmin;
  height: 70vmin;
  left: -28vmin;
  bottom: -30vmin;
}

.thesis-copy {
  font-family: "General Sans", var(--font-body);
  font-weight: 400;
  font-size: var(--step-md);
  line-height: 1.7;
  text-transform: none;
  color: var(--shadow);
  max-width: 56ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ---------- Room: the lit room itself (moving) ---------- */

.room-photo { padding: 0; }

.room-motion,
.room-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-motion { z-index: 2; }
.room-still { z-index: 1; }

/* ---------- Room: contact (dusk — the sun on the sill) ---------- */

.room-contact {
  background: var(--french-blue);
  color: var(--parchment);
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-bottom: 0;
}

.room-contact .burst {
  background: var(--sandy);
  width: 122vmin;
  height: 122vmin;
  left: 50%;
  margin-left: -61vmin;
  bottom: -73vmin;
}

.contact-mission {
  font-size: var(--step-md);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.04em;
  max-width: 44ch;
  margin: 0 auto 4.5rem;
}

.contact-prompt {
  font-size: var(--step-sm);
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  color: var(--sandy);
  margin-bottom: 1.6rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-xl);
  color: var(--parchment);
  text-decoration: none;
  border-bottom: 0.15em solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--sandy);
  border-bottom-color: var(--sandy);
}

/* ---------- Footer (inside the last room) ---------- */

.footer {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
  font-size: var(--step-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--parchment);
  text-align: left;
}

/* Locations on the left, the acknowledgement right-justified
   opposite them, tops aligned. */
.footer-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem 4rem;
}

/* The acknowledgement reads as held speech, not signage: General
   Sans, sentence case — the same opt-outs the thesis takes. */
.footer-acknowledgement {
  font-family: "General Sans", var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
  max-width: 60ch;
  text-align: right;
}

.footer-locations {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--sandy);
}

/* A thin line of light across the footer, between the
   acknowledgement and the closing line. */
.footer-light {
  width: 100%;
  border: 0;
  height: 1px;
  background: var(--parchment);
}

.footer-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.footer-tagline { color: var(--sandy); }

/* The contact copy block should still sit centred even though
   the footer claims the bottom of the room. */
.room-contact .room-inner { margin-top: auto; }

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
  .room { padding: 3.5rem 8vw; }

  .tagline {
    font-size: clamp(0.65rem, 3.2vw, 1rem);
    letter-spacing: 0.05em;
    line-height: 1.6;
  }

  .room-svc a { max-width: 100%; }

  .room-svc {
    justify-content: center;
  }

  .contact-email { font-size: clamp(1.4rem, 7vw, 2.2rem); }

  .footer { padding-top: 3rem; }

  /* The footer stacks: locations first, then the acknowledgement
     back at full width, reading left like the rest of the stack. */
  .footer-row { flex-direction: column; }
  .footer-acknowledgement { text-align: left; max-width: 70ch; }

}

/* ---------- Reduced motion: still rooms, still sun ---------- */

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

  .burst { animation: none; }

  .room-motion { display: none; }

  .room-svc a,
  .contact-email { transition: none; }
}
