:root {
  --gold: #ae742e;
  --ink: #353535;
  --black: #161616;
  --muted: #5c5c5c;
  --cream: #f3eee7;
  --sage: #c7c682;
  --paper: #fbf9f4;
  --line: #e6e2da;
  --serif: "Raleway", "Gill Sans", sans-serif;
  --script: "Playfair Display", Georgia, serif;
  --nav: "Poppins", "Helvetica Neue", sans-serif;
  --ui: "Manrope", "Helvetica Neue", sans-serif;
  --header: 108px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 200;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

h1, h2, h3, p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--black);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus {
  top: 12px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(1180px, calc(100% - 10vw));
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #686868;
  transition: box-shadow 0.35s ease;
}

.header.is-stuck {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.header__inner {
  width: min(1240px, calc(100% - 8vw));
  margin: 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  width: 228px;
  height: auto;
}

.logo--footer img {
  width: 196px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-family: var(--nav);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  position: relative;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--black);
  margin: 7px 0;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Hero banner copy */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(18px, 3vw, 36px);
  overflow: hidden;
  min-height: clamp(420px, 48vw, 620px);
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-weight: 100;
  letter-spacing: -0.03em;
  color: var(--black);
}

.line {
  display: block;
  overflow: hidden;
  line-height: 0.92;
}

.line__inner {
  display: block;
  transform: translateY(115%);
  animation: rise 1.15s var(--ease) forwards;
}

.line:nth-child(1) .line__inner { animation-delay: 0.12s; font-size: clamp(56px, 7.6vw, 100px); }
.line:nth-child(3) .line__inner { animation-delay: 0.55s; font-size: clamp(56px, 7.6vw, 100px); }

.line--script {
  overflow: visible;
  margin: -0.06em 0 -0.02em;
}

.line--script .line__inner {
  font-family: var(--script);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(72px, 11.4vw, 148px);
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 0.86;
  animation-name: riseFade;
  animation-delay: 0.32s;
  opacity: 0;
}

.hero__lead {
  margin-top: 28px;
  font-size: clamp(15px, 1.3vw, 16px);
  font-weight: 300;
  line-height: 1.55;
  max-width: 28ch;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.75s forwards;
}

.hero__branch {
  position: absolute;
  right: -1%;
  top: 18px;
  width: min(390px, 34vw);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: fadeUp 1.4s ease 0.4s forwards;
}

.hero__branch img {
  width: 100%;
  animation: drift 8s ease-in-out infinite;
}

/* First three sections cover one another on scroll, like the Archidex banner */
@media (min-width: 981px) {
  .stage > .panel {
    position: sticky;
    top: var(--header);
    height: calc(100vh - var(--header));
    min-height: calc(100vh - var(--header));
  }

  .stage > .hero {
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
  }

  .stage > .banner {
    z-index: 2;
    padding: 0;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.08);
  }

  .stage > .banner .banner__frame {
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: auto;
  }

  .stage > .idea {
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 36px 0;
    overflow: hidden;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.06);
  }

  .stage > .idea .idea__grid {
    height: 100%;
    align-items: center;
  }

  .stage > .idea .arch {
    height: min(78vh, 640px);
    margin-bottom: 0;
  }

  .reserved {
    padding-top: clamp(72px, 8vw, 110px);
  }
}

/* Parallax banner */
.banner {
  padding-bottom: clamp(28px, 4vw, 48px);
}

.banner__frame {
  position: relative;
  overflow: hidden;
  width: min(1220px, calc(100% - 6vw));
  margin: 0 auto;
  aspect-ratio: 1.78 / 1;
  background: #d7dde3;
}

.banner__mover {
  position: absolute;
  left: 0;
  right: 0;
  top: -16%;
  height: 132%;
  will-change: transform;
}

.banner__mover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  animation: settle 2.1s var(--ease) 0.15s both;
}

/* The idea */
.idea {
  background: var(--cream);
  position: relative;
  z-index: 1;
  padding: clamp(78px, 8vw, 128px) 0 clamp(56px, 6vw, 88px);
}

.idea__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.78fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow::after {
  content: "";
  width: min(220px, 24vw);
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease) 0.15s;
}

.reveal.is-in.eyebrow::after,
.idea__copy .reveal.is-in .eyebrow::after {
  transform: scaleX(1);
}

.idea h2 .thin,
.reserved h2 .thin {
  display: block;
  font-weight: 100;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #3a3a3a;
}

.idea h2 .thin {
  font-size: clamp(42px, 5.4vw, 70px);
}

.idea h2 .script,
.reserved h2 .script {
  display: block;
  font-family: var(--script);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.idea h2 .script {
  font-size: clamp(52px, 7.6vw, 100px);
  line-height: 1;
  margin-top: 6px;
}

.idea__copy p {
  max-width: 58ch;
  font-size: clamp(15px, 1.25vw, 16px);
  font-weight: 300;
  color: #3a3a3a;
  line-height: 1.65;
}

.idea__copy p + p {
  margin-top: 22px;
}

.idea__copy h2 {
  margin-bottom: 28px;
}

.arch {
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  height: clamp(460px, 46vw, 620px);
  margin-bottom: clamp(-80px, -8vw, -40px);
  position: relative;
  z-index: 2;
  background: #c9bfb2;
}

.arch__mover {
  height: 122%;
  will-change: transform;
}

.arch__mover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Reserved */
.reserved {
  position: relative;
  background: var(--sage);
  overflow: hidden;
  padding: clamp(120px, 12vw, 170px) 0 clamp(78px, 8vw, 120px);
}

.reserved__copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.reserved h2 .thin {
  font-size: clamp(42px, 5.5vw, 72px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reserved h2 .script {
  font-size: clamp(78px, 12.4vw, 160px);
  line-height: 0.78;
  margin-top: -0.06em;
}

.reserved .note {
  margin-top: 22px;
  font-size: clamp(18px, 2.3vw, 30px);
  font-weight: 200;
  line-height: 1.35;
  color: #2f2f2f;
  max-width: 22em;
}

.reserved__leaves {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: min(620px, 52vw);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* Testimonials parallax */
.testimonials {
  position: relative;
  margin-top: clamp(72px, 16vw, 240px);
  min-height: clamp(560px, 52vw, 700px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 8vw, 110px) 0;
}

.testimonials__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 136%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.testimonials__wash {
  position: absolute;
  inset: 0;
  background: rgba(198, 196, 118, 0.58);
}

#houses,
#idea,
#testimonials,
#contact,
#enquire {
  scroll-margin-top: 96px;
}

.testimonials__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.bubble {
  position: relative;
  width: min(680px, 100%);
  background: #fff;
  border: 1px solid #d9d9d9;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 56px) 36px;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 46px;
  bottom: -27px;
  width: 36px;
  height: 28px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 8% 100%);
}

.bubble::before {
  content: "";
  position: absolute;
  left: 45px;
  bottom: -29px;
  width: 38px;
  height: 30px;
  background: #d9d9d9;
  clip-path: polygon(0 0, 100% 0, 6% 100%);
  z-index: -1;
}

.kicker {
  font-family: var(--script);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2vw, 26px);
  color: var(--gold);
  margin-bottom: 8px;
}

.bubble h2 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a3a3a;
  margin-bottom: 16px;
}

.slides {
  position: relative;
}

.slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.6s ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.slide p {
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 16px);
  line-height: 1.65;
  color: #3f3f3f;
}

.slide footer {
  margin-top: 18px;
  color: var(--gold);
  font-weight: 300;
  font-size: 15px;
}

.dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bdbdbd;
  cursor: pointer;
}

.dot.is-active {
  width: 11px;
  height: 11px;
  background: transparent;
  border: 1.5px solid #333;
}

.bubble__leaf {
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: 92px;
  pointer-events: none;
}

/* Contact strip, just above the footer */
.reach {
  background: #fff;
  padding: clamp(56px, 7vw, 88px) 0 clamp(36px, 5vw, 56px);
}

.reach__row {
  width: min(1280px, calc(100% - 8vw));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(168px, 26%) 1fr;
  align-items: center;
  column-gap: 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(22, 22, 22, 0.14);
}

.reach__row:last-child {
  border-bottom: 1px solid rgba(22, 22, 22, 0.14);
}

.reach__label {
  margin: 0;
  font-family: var(--nav);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #161616;
}

.reach__value {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.15;
  color: #161616;
  text-align: right;
}

.reach__value a {
  transition: color 0.3s ease;
}

.reach__value a:hover {
  color: var(--gold);
}

.reach__value span {
  margin: 0 0.15em;
}

.reach__action {
  display: flex;
  justify-content: flex-end;
}

.reach__quote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: #161418;
  color: #fff;
  font-family: var(--nav);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.reach__quote:hover {
  background: var(--gold);
  color: #fff;
}

/* Footer */
.footer {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  padding: clamp(64px, 7vw, 96px) 0 28px;
}

.footer__floral {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.32;
}

.footer__floral--left {
  left: 0;
  bottom: 0;
  width: min(190px, 22vw);
}

.footer__floral--right {
  right: 0;
  top: 0;
  width: min(210px, 24vw);
}

.footer__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 28px 20px;
  align-items: start;
}

.social {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.3s var(--ease);
}

.social a:hover {
  transform: translateY(-3px);
}

.social li:nth-child(1) a { background: #1877f2; }
.social li:nth-child(2) a { background: #e1306c; }
.social li:nth-child(3) a { background: #bd081c; }
.social li:nth-child(4) a { background: #0a66c2; }

.social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer__col {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
}

.footer__col h3 {
  font-family: var(--nav);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--black);
}

.footer__col a,
.footer__col p {
  font-family: var(--ui);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.9;
  color: #444;
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__col--touch a,
.footer__col--touch p {
  font-weight: 600;
  color: var(--black);
  line-height: 1.7;
}

.footer__col--touch .address {
  margin-top: 10px;
}

.signup {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: clamp(48px, 6vw, 72px);
  padding-inline: 20px;
}

.signup h2 {
  font-family: var(--script);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--black);
}

.signup em {
  font-style: italic;
}

.signup > p {
  margin-top: 8px;
  font-family: var(--ui);
  font-weight: 300;
  font-size: 13px;
  color: #7a7a7a;
}

.signup__form {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
}

.signup__form input {
  width: min(280px, 72vw);
  border: 0;
  border-bottom: 1px solid #222;
  background: transparent;
  padding: 12px 8px 12px 0;
  color: var(--black);
  outline: none;
}

.signup__form input::placeholder {
  color: #9a9a9a;
  font-family: var(--ui);
  font-weight: 300;
  font-size: 14px;
}

.btn {
  background: var(--black);
  color: #fff;
  border: 0;
  cursor: pointer;
  padding: 13px 18px;
  font-family: var(--nav);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background 0.35s ease, transform 0.35s var(--ease);
}

.btn:hover {
  background: var(--gold);
}

.form-note {
  flex-basis: 100%;
  min-height: 1.2em;
  margin-top: 10px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}

.form-note.is-error {
  color: #9a3b2f;
}

.legal {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.legal p {
  font-family: var(--nav);
  font-size: 12px;
  font-weight: 400;
  color: #3c3d3d;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), background 0.3s ease, visibility 0.35s;
}

.to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--gold);
}

/* Scroll reveals, in the spirit of the Archidex banner */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal--zoom {
  transform: translateY(48px) scale(1.03);
}

.no-js .reveal,
.no-js .line__inner,
.no-js .hero__lead,
.no-js .hero__branch {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes rise {
  to { transform: translateY(0); }
}

@keyframes riseFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes settle {
  from { transform: scale(1.18); }
  to { transform: scale(1); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateY(-102%);
    transition: transform 0.55s var(--ease);
  }

  .nav.is-open {
    transform: none;
  }

  .nav a {
    font-family: var(--serif);
    font-weight: 200;
    font-size: 32px;
    letter-spacing: 0.08em;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .arch {
    margin-bottom: 0;
    height: 480px;
  }

  .reserved {
    padding-top: 72px;
  }
}

@media (max-width: 720px) {
  :root {
    --header: 84px;
  }

  .logo img {
    width: 168px;
  }

  .hero {
    min-height: 0;
    padding-top: 36px;
  }

  .hero__branch {
    width: 150px;
    opacity: 0.55;
    top: 0;
  }

  .idea__grid,
  .footer__top,
  .reach__row {
    grid-template-columns: 1fr;
  }

  .reach__row {
    row-gap: 10px;
    padding: 20px 0;
  }

  .reach__value {
    text-align: left;
  }

  .reach__action {
    justify-content: flex-start;
  }

  .eyebrow {
    letter-spacing: 0.28em;
  }

  .reserved__leaves {
    width: 240px;
    opacity: 0.85;
  }

  .bubble__leaf {
    width: 64px;
    right: 12px;
  }

  .footer__floral--left,
  .footer__floral--right {
    opacity: 0.22;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .line__inner,
  .hero__lead,
  .hero__branch,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
