:root {
  --ink: #192c40;
  --muted: #506278;
  --indigo: #4048bd;
  --cyan: #00a6e4;
  --paper: #fdfdf9;
  --line: #bdcbd1;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body,
figure,
h1,
h2,
p {
  margin: 0;
}
body {
  line-height: 1.55;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary,
select,
label:has(input[type="radio"]) {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #00779f;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1180px, 90%);
  margin-inline: auto;
}
.sr-only,
input[type="radio"],
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  z-index: 5;
  background: white;
  padding: 0.75rem;
}

/* Masthead and shared actions */
.masthead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #faf9f6;
  border-bottom: 1px solid #deddd7;
}
.header-inner,
.header-inner nav,
.wordmark,
.button,
.foot {
  display: flex;
  align-items: center;
}
.header-inner {
  min-height: 72px;
  gap: clamp(1rem, 3.5vw, 3.2rem);
}
.logo-placeholder {
  display: grid;
  place-content: center;
  flex: 0 0 42px;
  height: 36px;
  padding: 3px;
  border: 1px dashed #98a4ad;
  border-radius: 3px;
  color: #506278;
  font: 500 10px/1.1 "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  text-align: center;
}
@media (min-width: 1100px) {
  .home-hero > .wrap {
    width: auto;
    margin-inline: max(6vw, calc((100% - 1360px) / 2));
  }
  .masthead .header-inner {
    width: auto;
    margin-left: max(1.5rem, calc((100% - 1520px) / 2));
    margin-right: max(5%, calc((100% - 1180px) / 2));
  }
}
.wordmark i {
  font-weight: 400;
  color: #38478e;
  letter-spacing: -.035em;
}
.wordmark {
  margin-right: auto;
  gap: 0.75rem;
  font: bold clamp(1.2rem, 2vw, 1.65rem)/1 var(--serif);
  letter-spacing: -0.045em;
  text-decoration: none;
}
.header-inner nav {
  gap: clamp(1rem, 3vw, 2.5rem);
}
.header-inner .header-action {
  box-shadow: none;
}

.header-inner nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.6rem;
}
.header-inner nav a:hover,
.header-inner nav [aria-current] {
  color: var(--indigo);
  text-decoration: underline;
}
.button,
.segments span,
.stepper button {
  border-radius: 999px;
}
.button {
  display: inline-flex;
  justify-content: center;
  gap: 1rem;
  min-height: 44px;
  padding: 0.68rem 1.45rem;
  border: 1px solid transparent;
  background: #303f8b;
  color: white;
  box-shadow: inset 0 1px 0 #ffffff30, 0 2px 3px #20275318;
  letter-spacing: .012em;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.button:hover,
.stepper button:hover:enabled {
  background: #2d3497;
  color: white;
}
section[id] {
  scroll-margin-top: 96px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #40577a;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--cyan);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.03;
}
h1 {
  font-size: clamp(3.65rem, 7vw, 7rem);
}
h1 em {
  color: #353e88;
}
h2 {
  font-size: clamp(2.6rem, 4.4vw, 4.8rem);
}
.section-copy > p:not(.eyebrow),
#demo {
  max-width: 41ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.19rem);
  margin-block: 1.2rem 1.65rem;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.segments span {
  display: block;
  border: 1px solid #a0acbd;
  padding: 0.5rem 1rem;
  background: white;
  font-weight: 600;
  font-size: 0.9rem;
}
input[type="radio"]:checked + span {
  color: white;
  background: var(--indigo);
  border-color: var(--indigo);
}
input[type="radio"]:focus-visible + span {
  outline: 3px solid #00779f;
  outline-offset: 2px;
}

/* Quote preview */
.request {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(2rem, 7vw, 7rem);
}
#quote {
  display: grid;
  gap: 1rem;
}
#quote > .button,
.quote-preview .button {
  justify-self: start;
}
#quote label {
  font-weight: 600;
}
textarea,
select,
input[type="number"] {
  background: white;
  color: var(--ink);
  border: 1px solid #93a3af;
  border-radius: 0.45rem;
  padding: 0.6rem;
}
textarea {
  width: 100%;
  resize: vertical;
}
.fields {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 1.25rem;
}
.fields select,
.stepper {
  display: flex;
  margin-top: 0.45rem;
}
.stepper {
  align-items: center;
  gap: 0.35rem;
}
.stepper input {
  width: 4.2rem;
  text-align: center;
}
.stepper button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: white;
  color: var(--indigo);
}
.stepper button:disabled {
  opacity: 0.44;
}
.quote-preview {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-left: 3px solid var(--cyan);
  background: #edf4f7;
  overflow-wrap: anywhere;
}
.foot {
  flex-wrap: wrap;
  gap: 1.4rem;
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  font-size: 0.85rem;
}
.foot span {
  margin-right: auto;
}
.campaign-page {
  max-width: 850px;
}
.campaign-page h1 {
  margin-bottom: 3rem;
}
.campaign-page article,
.shop-pitch {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.campaign-page h2 {
  font-size: 2.2rem;
  margin-bottom: 0.9rem;
}
blockquote {
  border-left: 3px solid var(--cyan);
  margin: 1rem 0;
  padding-left: 1.2rem;
  font: 1.2rem/1.55 var(--serif);
}
@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 0.5rem;
    padding-top: 0.6rem;
  }
  .header-inner nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .header-action {
    min-height: 38px;
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
  }
  .request {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section[id] {
    scroll-margin-top: 110px;
  }
  .foot span {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 0.4rem;
  }
  .wordmark {
    gap: 0.45rem;
    font-size: 1.15rem;
  }
  .header-action {
    grid-column: 2;
    grid-row: 1;
    padding-inline: 0.85rem;
  }
  .header-inner nav {
    grid-column: 1 / -1;
  }
}
/* Home and studio pages */
.home-hero,
.page-body,
.campaign-page,
.request,
.help {
  padding-block: clamp(3rem, 6vw, 6rem);
}
.home-hero {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 78px - clamp(2rem, 4vw, 4rem) - clamp(2rem, 3vw, 2.85rem) * 1.03 - 2.4rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  background: var(--paper);
}
.intro {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 48ch;
  margin: 1.4rem 0 2rem;
}
.actions,
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.button.secondary,
.topics a {
  background: white;
  color: var(--indigo);
  border: 1px solid var(--indigo);
}
.button.secondary {
  color: #303f8b;
  background: #ffffffb3;
  border-color: #8090bd;
  box-shadow: none;
}
.button:active { transform: translateY(1px); }
.button.secondary:hover,
.topics a:hover {
  background: #ecedfb;
  color: #2d3497;
}
.help {
  padding-top: clamp(2rem, 4vw, 3.75rem);
}
.help h2 {
  font-size: clamp(2rem, 3vw, 2.85rem);
  margin-bottom: 1.5rem;
}
.help-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);
}
h3,
.finishes h2,
figcaption {
  font: 400 1.65rem/1.2 var(--serif);
  margin: 0 0 1rem;
}
.help details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.help summary {
  font-weight: 600;
}
.help details p,
.chat p {
  margin-block: 0.65rem;
}
.topics {
  margin: 1rem 0;
}
.topics a {
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font: inherit;
}
.gallery,
.finishes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 2.6rem 0;
}
.placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  border: 1px dashed #91a5b2;
  color: var(--muted);
  background: #f0f4f5;
}
figcaption {
  margin: 0.8rem 0;
}
.finishes article {
  border-top: 2px solid var(--cyan);
  padding-top: 1.2rem;
}
.finishes p {
  margin-block: 1rem;
}
#contact {
  scroll-margin-top: 115px;
}
.contact-fields {
  display: grid;
  gap: 0.7rem;
}
.contact-fields legend {
  font: 1.4rem var(--serif);
  margin: 0.6rem 0;
}
.contact-fields input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #93a3af;
  padding: 0.6rem;
  border-radius: 0.45rem;
}
@media (max-width: 720px) {
  .help-columns,
  .gallery,
  .finishes {
    grid-template-columns: 1fr;
  }
  .header-inner nav {
    justify-content: start;
    gap: 1.5rem;
  }
}
.hero-backdrop,
.hero-slide {
  position: absolute;
  inset: 0;
}
.hero-backdrop {
  z-index: -1;
  overflow: hidden;
}
.hero-slide {
  background:
    radial-gradient(ellipse at 10% 20%, var(--highlight), transparent 45%),
    linear-gradient(253deg, white 35%, var(--mist) 67%, var(--shade));
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.hero-slide::before,
.inquiry-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 32px;
  pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--shade) 74%, #243044), transparent 100%);
  opacity: .28;
}
.hero-slide.visible {
  opacity: 1;
}
.lilac {
  --highlight: #f6f2ff;
  --mist: #e9e6ff;
  --shade: #c2baf4;
}
.amber {
  --highlight: #fff7e4;
  --mist: #ffedd2;
  --shade: #ffd59b;
}
.sage {
  --highlight: #effff8;
  --mist: #daf6ee;
  --shade: #a3e2d4;
}
.hero-placeholder {
  position: absolute;
  top: 45%;
  right: 9%;
  color: #525461;
  font: italic clamp(1.25rem, 2.3vw, 2.75rem) var(--serif);
}
.home-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.1;
  max-width: 70%;
}
.carousel-controls {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}
.carousel-controls button {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(2.8rem, 6vw, 5rem);
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}
.carousel-controls button::before {
  content: "";
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #203d64;
  opacity: .32;
}
.carousel-controls button:hover::before { opacity: .65; }
.carousel-controls button::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - 2px);
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #203d64;
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

@media (max-width: 850px) {
  .home-hero {
    padding-bottom: 8.5rem;
  }
  .home-hero h1 {
    max-width: none;
  }
  .hero-placeholder {
    top: auto;
    bottom: 4rem;
    right: 6%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* Homepage project showcase */
.showcase {
  padding-block: clamp(2rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.showcase-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  margin-bottom: 1.4rem;
}
.showcase-heading h2 { font-size: clamp(2rem, 3vw, 2.85rem); }
.showcase-heading a, .finish-example strong { color: var(--indigo); }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.showcase .placeholder { border-radius: .75rem; }
.showcase figcaption { margin: .85rem 0 0; }
.showcase figcaption strong { font: 600 1.35rem var(--serif); }
.showcase figcaption span {
  display: block;
  margin-top: .35rem;
  font: 1rem/1.5 "Segoe UI", Arial, sans-serif;
  color: var(--muted);
}
.finish-example { text-decoration: none; }
.finish-example strong { text-decoration: underline; text-underline-offset: .18em; }
.finish-example:hover strong { color: var(--ink); }
@media (max-width: 660px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .home-hero { min-height: calc(100svh - 94px - 2rem - 2.06rem - 2.4rem); }
}
@media (max-width: 360px) {
  .home-hero { min-height: calc(100svh - 15.35rem); }
  .showcase-heading { gap: .5rem; }
  .showcase-heading h2 { font-size: 1.8rem; }
}
