/* Estella Creates. Tokens come straight from the brand board. */
:root {
  --ivory: #F9F8F3;
  --lime: #D7F43A;
  --charcoal: #2E2F2B;
  --olive: #41452B;
  --graphite: #777A73;

  --grotesk: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
  --star: polygon(50% 0%, 56.47% 25.85%, 75% 6.7%, 67.68% 32.32%, 93.3% 25%, 74.15% 43.53%, 100% 50%, 74.15% 56.47%, 93.3% 75%, 67.68% 67.68%, 75% 93.3%, 56.47% 74.15%, 50% 100%, 43.53% 74.15%, 25% 93.3%, 32.32% 67.68%, 6.7% 75%, 25.85% 56.47%, 0% 50%, 25.85% 43.53%, 6.7% 25%, 32.32% 32.32%, 25% 6.7%, 43.53% 25.85%);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--grotesk);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--lime); }

::selection { background: var(--lime); color: var(--charcoal); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--charcoal); color: var(--ivory); padding: .6rem 1rem;
}
.skip:focus { top: 1rem; }

/* Type */
.display {
  font-stretch: 125%;
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.d1 { font-size: clamp(1.75rem, min(4.7vw, 8.25vh), 5rem); }
.dx { font-size: clamp(2rem, 7.2vw, 7.5rem); }
.d2 { font-size: clamp(2rem, 6.4vw, 6rem); }
.d3 { font-size: clamp(1.5rem, 3.2vw, 2.75rem); }

/* Section titles are set in the editorial serif; item names stay grotesk. */
.d1, .dx, .d2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  /* A low optical size thickens the hairlines so the strokes hold up. */
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-stretch: 100%;
  letter-spacing: -.02em;
  line-height: 1;
}


.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.lede {
  font-family: var(--grotesk); font-style: normal; letter-spacing: -.01em;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.4; max-width: 40ch;
}
.prose { max-width: 58ch; }
.prose p + p { margin-top: 1em; }
.quiet { color: color-mix(in srgb, currentColor 68%, transparent); }

/* The star */
.star {
  display: inline-block;
  width: 1em; height: 1em;
  background: var(--lime);
  clip-path: var(--star);
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.4em .85em 1.1em;
  border-radius: 99px;
  background: var(--charcoal); color: var(--ivory);
  font-weight: 600; text-decoration: none; line-height: 1;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .15s var(--ease);
}
.btn .star { transition: transform .6s var(--ease), background-color .25s var(--ease); }
.btn:hover { background: var(--lime); color: var(--charcoal); }
.btn:hover .star { transform: rotate(180deg); background: var(--charcoal); }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--ivory); color: var(--charcoal); }
.btn--on-lime:hover { background: var(--ivory); }

.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
  text-decoration-color: var(--lime);
  transition: text-decoration-color .2s, text-underline-offset .2s var(--ease);
}
.link:hover { text-decoration-color: currentColor; text-underline-offset: .32em; }

/* Header */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem var(--pad);
  background: var(--ivory);
  transition: transform .45s var(--ease);
  view-transition-name: site-head;
}
.head-hidden .site-head { transform: translateY(-101%); }

.logo {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: 1.45rem; letter-spacing: -.05em; line-height: 1;
  text-decoration: none; position: relative; z-index: 2;
}
.logo .star { font-size: 1.25em; transition: transform .8s var(--ease); }
.logo:hover .star { transform: rotate(120deg); }
.logo b { font-weight: 800; font-style: italic; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500;
  background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 .5em no-repeat;
  transition: background-size .35s var(--ease);
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { background-size: 100% .5em; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: block; position: relative; z-index: 2;
    font-weight: 600; padding: .5rem 0;
  }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    height: 100dvh;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.1rem; padding: 5rem var(--pad) 2rem;
    background: var(--lime);
    clip-path: circle(0 at calc(100% - 3rem) 2rem);
    visibility: hidden;
    transition: clip-path .6s var(--ease), visibility 0s .6s;
  }
  .nav a:not(.btn) {
    font-stretch: 125%; font-weight: 800; font-size: 2.4rem;
    letter-spacing: -.035em; line-height: 1;
    background-image: linear-gradient(var(--ivory), var(--ivory));
  }
  .nav .btn { margin-top: 1rem; }
  .nav > * { opacity: 0; transform: translateY(1rem); transition: opacity .3s, transform .5s var(--ease); }
  .nav-open .nav {
    clip-path: circle(150% at calc(100% - 3rem) 2rem);
    visibility: visible;
    transition: clip-path .7s var(--ease), visibility 0s;
  }
  .nav-open .nav > * { opacity: 1; transform: none; }
  .nav-open .nav > :nth-child(1) { transition-delay: .12s; }
  .nav-open .nav > :nth-child(2) { transition-delay: .18s; }
  .nav-open .nav > :nth-child(3) { transition-delay: .24s; }
  .nav-open .nav > :nth-child(4) { transition-delay: .3s; }
  .nav-open body { overflow: hidden; }
}

/* Sections */
.band { padding: clamp(4.5rem, 11vw, 10rem) var(--pad); }
.band--dark { background: var(--charcoal); color: var(--ivory); }
.band--olive { background: var(--olive); color: var(--ivory); }
.band--lime { background: var(--lime); }
.band__head { margin-bottom: clamp(2.5rem, 6vw, 5rem); display: grid; gap: 1.25rem; }

/* Home hero. Without JS or with reduced motion this is a plain hero
   followed by a lime statement block. With .scrub the star grows on
   scroll until it becomes the statement block's background. */
.hero__stick {
  position: relative;
  min-height: 100svh;
  padding: 6.5rem var(--pad) 3rem;
  display: flex; align-items: center;
}
.hero__copy { position: relative; z-index: 2; display: grid; gap: clamp(1.25rem, 3vh, 2.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.hero__wipe { display: none; }
.hero__star {
  position: absolute; z-index: 1;
  right: 4vw; top: 50%;
  font-size: min(44vw, 62vh);
  translate: 0 -50%;
}
.hero__say {
  background: var(--lime);
  padding: clamp(4.5rem, 11vw, 10rem) var(--pad);
  display: grid; gap: 2rem; align-content: center;
}
.hero__say .lede { max-width: 44ch; }

@media (max-width: 760px) {
  .hero__stick { align-items: flex-start; padding-top: 7.5rem; }
  .hero__star { top: auto; bottom: 4vh; right: var(--pad); translate: none; font-size: 56vw; }
}

.scrub .hero { height: 280vh; }
.scrub .hero__stick { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; }
.scrub .hero__star { display: none; }
.scrub .hero__wipe {
  display: block; position: absolute; inset: 0; z-index: 1;
  background: var(--lime);
}
.scrub .hero__say {
  position: absolute; inset: 0; z-index: 3;
  background: none; opacity: 0; pointer-events: none;
  padding-top: 6rem; padding-bottom: 3rem;
}

/* Line reveal used on the big headlines */
.line { display: block; overflow: hidden; padding: .06em .3em .24em; margin: -.06em -.3em -.24em; }
.line > span { display: block; }
.js .lines .line > span { transform: translateY(110%); transition: transform 1s var(--ease); }
.js .lines.in .line > span { transform: none; }
.lines .line:nth-child(2) > span { transition-delay: .08s; }
.lines .line:nth-child(3) > span { transition-delay: .16s; }
.lines .line:nth-child(4) > span { transition-delay: .24s; }

.js .rise { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s var(--ease) .35s, transform .9s var(--ease) .35s; }
.js .rise.in { opacity: 1; transform: none; }

/* Services list */
.svc-list { border-top: 1px solid color-mix(in srgb, var(--ivory) 25%, transparent); }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: .4rem 2rem;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(.25rem, 1.5vw, 1.5rem);
  border-bottom: 1px solid color-mix(in srgb, var(--ivory) 25%, transparent);
  text-decoration: none;
  transition: color .3s var(--ease), padding-left .5s var(--ease);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--lime);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .5s var(--ease);
}
.svc__name { font-stretch: 125%; font-weight: 800; letter-spacing: -.035em; line-height: 1; font-size: clamp(1.6rem, 4.6vw, 4.25rem); }
.svc__price { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.9rem); white-space: nowrap; }
.svc__note { grid-column: 1 / -1; max-width: 46ch; }
@media (hover: hover) {
  .svc:hover { color: var(--charcoal); padding-left: clamp(1rem, 3vw, 3rem); }
  .svc:hover::before { transform: scaleY(1); }
}
.svc:focus-visible { color: var(--charcoal); }
.svc:focus-visible::before { transform: scaleY(1); }

/* Work strip. Swap each tile's contents for an <img> when the real
   project shots are ready. */
.work { padding-inline: 0; }
.work .band__head { padding-inline: var(--pad); }
.work__strip {
  display: flex; gap: clamp(.75rem, 1.5vw, 1.5rem);
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0 var(--pad) 1.5rem;
  scrollbar-width: thin; scrollbar-color: var(--charcoal) transparent;
}
.tile { flex: none; width: min(78vw, 30rem); scroll-snap-align: center; display: grid; gap: .9rem; }
.tile__art {
  aspect-ratio: 4 / 5;
  display: grid; place-items: center; text-align: center;
  padding: 1.5rem; overflow: hidden;
  transition: scale .6s var(--ease);
}
.tile:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 4rem); }
.tile__art > * { transition: transform .8s var(--ease); }
@media (hover: hover) { .tile:hover .tile__art > * { transform: scale(1.08) rotate(-2deg); } }
.tile--cocoya .tile__art { background: var(--lime); font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 7vw, 5.5rem); }
.tile--truff .tile__art { background: var(--charcoal); color: var(--ivory); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.05em; font-size: clamp(3.2rem, 8vw, 6.5rem); }
.tile--khani .tile__art { background: var(--olive); color: var(--lime); font-weight: 300; letter-spacing: .32em; text-transform: lowercase; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.tile--peach .tile__art { background: #fff; border: 1px solid var(--charcoal); font-stretch: 62%; font-weight: 700; line-height: .9; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.tile figcaption { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.tile figcaption span { font-weight: 400; }

/* Process */
.process { display: grid; gap: clamp(2rem, 6vw, 6rem); }
@media (min-width: 900px) {
  .process { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .process__head { position: sticky; top: 6rem; }
}
.process__head { display: grid; gap: 1.5rem; justify-items: start; }
.steps { counter-reset: step; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 3.25rem 1fr; gap: .5rem 1rem;
  padding: 2rem 0;
  border-top: 1px solid color-mix(in srgb, var(--charcoal) 22%, transparent);
}
.step__mark { position: relative; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; font-weight: 800; font-stretch: 125%; }
.step__mark::before { content: counter(step); position: relative; z-index: 1; }
.step__mark .star { position: absolute; inset: 0; width: auto; height: auto; transform: scale(0) rotate(-90deg); transition: transform .8s var(--ease); }
.step.in .step__mark .star, html:not(.js) .step__mark .star { transform: none; }
.step h3 { align-self: center; }
.step p { grid-column: 2; max-width: 44ch; }

/* Testimonial */
.quote { display: grid; gap: 2.5rem; max-width: 62rem; }
.quote blockquote { font-size: clamp(1.7rem, 4.2vw, 3.6rem); line-height: 1.14; }
.quote figcaption b { display: block; }

/* Closing call and footer */
.closer { position: relative; overflow: hidden; display: grid; gap: 2rem; justify-items: start; }
.closer > * { position: relative; z-index: 1; }
.closer__star {
  position: absolute; z-index: 0; right: var(--pad); top: 50%; translate: 0 -50%;
  font-size: min(34vw, 22rem); background: var(--charcoal); opacity: .08;
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-foot {
  background: var(--charcoal); color: var(--ivory);
  padding: 3rem var(--pad) 2rem;
  display: grid; gap: 2.5rem;
}
.site-foot .logo { font-size: clamp(2rem, 6vw, 4rem); }
.foot__cols { display: flex; flex-wrap: wrap; gap: 2rem 5rem; }
.foot__cols ul { display: grid; gap: .5rem; }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { color: var(--lime); }
.foot__small { font-size: .875rem; }

/* Inner pages */
.page-top { padding: clamp(8rem, 16vw, 13rem) var(--pad) clamp(3rem, 7vw, 6rem); display: grid; gap: 1.75rem; position: relative; overflow: hidden; }
.page-top > :not(.page-top__star) { position: relative; z-index: 1; }
.page-top__star { position: absolute; right: var(--pad); top: 5.5rem; font-size: clamp(11rem, 30vw, 26rem); animation: spin 90s linear infinite; }

.menu { padding: 0 var(--pad) clamp(4rem, 9vw, 8rem); }
.pack {
  display: grid; gap: 1.25rem 3rem;
  padding: clamp(2rem, 4.5vw, 3.75rem) 0;
  border-top: 2px solid var(--charcoal);
}
@media (min-width: 900px) {
  .pack { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(8rem, 2fr); align-items: start; }
  .pack__buy { justify-items: end; text-align: right; }
}
.pack__what { display: grid; gap: .9rem; }
.pack__what .serif { font-family: var(--grotesk); font-style: normal; letter-spacing: 0; font-size: 1.15rem; line-height: 1.4; max-width: 32ch; }
.pack__list { display: grid; gap: .45rem; }
.pack__list li { display: grid; grid-template-columns: 1.1em 1fr; gap: .6em; align-items: baseline; }
.pack__list .star { font-size: .7em; background: var(--charcoal); translate: 0 -.1em; }
.pack__buy { display: grid; gap: .75rem; }
.pack__price { font-stretch: 125%; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(2.6rem, 5vw, 4.25rem); }
.pack__price small { display: block; font-stretch: 100%; font-weight: 400; letter-spacing: 0; font-size: 1rem; margin-bottom: .35rem; }

.extras { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .extras { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.extras dl { display: grid; }
.extras dl > div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .9rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.extras dd { font-family: var(--serif); font-style: italic; font-size: 1.2rem; white-space: nowrap; }

/* FAQ */
.faq { padding: 0 var(--pad) clamp(4rem, 9vw, 8rem); max-width: 70rem; }
.faq__item { border-top: 2px solid var(--charcoal); }
.faq__item:last-child { border-bottom: 2px solid var(--charcoal); }
.faq__q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0;
  font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.6rem); letter-spacing: -.015em; line-height: 1.2;
}
.faq__q .star { font-size: 1.1em; background: var(--charcoal); transition: transform .7s var(--ease), background-color .3s; }
.faq__q:hover .star { background: var(--graphite); }
.faq__a > div { padding-bottom: 1.75rem; max-width: 58ch; }
.js .faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease), visibility 0s .55s; }
.js .faq__a > div { overflow: hidden; padding-bottom: 0; opacity: 0; transition: opacity .35s, padding-bottom .55s var(--ease); }
.js .faq__item.open .faq__a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s var(--ease), visibility 0s; }
.js .faq__item.open .faq__a > div { opacity: 1; padding-bottom: 1.75rem; transition-delay: .1s, 0s; }
.faq__item.open .faq__q .star { transform: rotate(135deg) scale(1.25); background: var(--lime); }

/* Page to page transitions (browsers without support just navigate) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .55s var(--ease) .12s both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-1.25rem); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(2rem); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Access key gate and the not-found page */
.gate {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: 3rem var(--pad);
}
.gate__box { position: relative; z-index: 1; display: grid; gap: 1.75rem; justify-items: start; max-width: 34rem; }
.gate__star {
  position: absolute; z-index: 0;
  right: var(--pad); top: 50%; translate: 0 -50%;
  font-size: min(40vw, 60vh);
  animation: spin 90s linear infinite;
}
.gate__form { display: grid; gap: .75rem; width: 100%; justify-items: start; }
.gate__form label { font-weight: 600; }
.gate__form input {
  width: 100%; height: 3.5rem; padding: 0 1rem;
  font: inherit; color: var(--charcoal);
  background: #fff; border: 2px solid var(--charcoal); border-radius: 0;
  transition: box-shadow .25s var(--ease);
}
.gate__form input:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--lime); }
.gate__form input:disabled, .gate__form .btn:disabled { opacity: .6; cursor: not-allowed; }
.gate__form .btn { margin-top: .5rem; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.gate__status { min-height: 1.6em; font-weight: 600; }
@media (max-width: 760px) {
  .gate__star { top: auto; bottom: 2rem; translate: none; font-size: 46vw; opacity: .9; }
  .gate { align-items: start; padding-top: 4rem; }
}
