/* Revive Design Collective — site styles */

@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --paper: #faf8f5;
  --linen: #f1ede7;
  --stone: #e4ddd3;
  --rule: #d9d1c6;
  --ink: #2e2a26;
  --ink-2: #5c554e;
  --oak: #b08d6e;
  --oak-deep: #7d5f45;
  --char: #2b2724;
  --char-rule: #48423c;
  --on-char: #f1ede7;
  --on-char-2: #bdb3a7;
  --select: #e6d8c7;

  /* type */
  --serif: "Noto Serif Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  /* rhythm */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1360px;
  --section: clamp(5.5rem, 3.5rem + 6vw, 10rem);
  --header-h: 5.25rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-color: #c9bba9 var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--select);
  color: var(--ink);
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* contact form spam trap: off-screen for people and screen readers, still filled in by bots */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- type roles ---------- */

.display {
  font-size: clamp(2.6rem, 1.2rem + 3.9vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.page-title {
  font-size: clamp(2.75rem, 1.5rem + 3.8vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2.1rem, 1.35rem + 2.3vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.012em;
}

.statement {
  font-size: clamp(1.75rem, 1.15rem + 1.9vw, 2.95rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.item-title {
  font-size: clamp(1.65rem, 1.35rem + 0.9vw, 2.25rem);
  line-height: 1.12;
  font-weight: 340;
  letter-spacing: -0.005em;
}

.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
}

.prose {
  color: var(--ink-2);
  max-width: 34em;
}

.prose p + p {
  margin-top: 1em;
}

.label {
  font: 600 0.72rem/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- buttons & links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1.9rem;
  border: 1px solid transparent;
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.button--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.button--ink:hover {
  background: transparent;
  color: var(--ink);
}

.button--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.button--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.button--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.button--paper:hover {
  background: transparent;
  color: var(--paper);
}

.button--outline-light {
  border-color: rgb(250 248 245 / 0.75);
  color: var(--paper);
  background: transparent;
}

.button--outline-light:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.button--small {
  min-height: 2.75rem;
  padding: 0 1.3rem;
  font-size: 0.6875rem;
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font: 600 0.75rem/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid currentColor;
}

.arrow-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.45s var(--ease-out);
}

.arrow-link:hover svg {
  transform: translateX(0.3rem);
}

/* ---------- logo ----------
   The client's lockup (R monogram, "Revive Design Co.", "Staging & Styling") is an
   alpha mask filled with currentColor, so it follows the header, menu and footer colours. */

.logo {
  display: inline-block;
  flex: none;
  color: inherit;
  line-height: 0;
  text-decoration: none;
}

.logo__art {
  display: block;
  width: var(--logo-w, 16rem);
  aspect-ratio: 1600 / 346;
  background-color: currentColor;
  -webkit-mask: url("../img/logo-lockup.png") center / contain no-repeat;
  mask: url("../img/logo-lockup.png") center / contain no-repeat;
}

@media (forced-colors: active) {
  .logo__art {
    forced-color-adjust: none;
    background-color: CanvasText;
  }
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition:
    background-color 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    color 0.5s var(--ease-out);
}

.site-header--overlay:not(.is-solid) {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--paper);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.4vw, 2.75rem);
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-phone {
  font: 500 0.8125rem/1 var(--sans);
  letter-spacing: 0.06em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.header-phone:hover {
  text-decoration: underline;
}

.site-header--overlay:not(.is-solid) .button--outline {
  border-color: rgb(250 248 245 / 0.75);
  color: var(--paper);
}

.site-header--overlay:not(.is-solid) .button--outline:hover {
  background: var(--paper);
  color: var(--ink);
}

.icon-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-button svg {
  width: 1.375rem;
  height: 1.375rem;
}

/* mobile menu */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  padding: 0 var(--gutter) 2rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.4s var(--ease-out),
    visibility 0s linear 0.4s;
}

.menu.is-open {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 0.4s var(--ease-out),
    visibility 0s;
}

.menu__top {
  height: var(--header-h);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu__top .icon-button {
  display: inline-flex;
}

.menu__nav {
  margin-top: clamp(2rem, 8vh, 4rem);
}

.menu__nav a {
  display: block;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
  font: 300 2.25rem/1.1 var(--serif);
  text-decoration: none;
}

.menu__nav li:first-child a {
  border-top: 1px solid var(--rule);
}

.menu__contact {
  margin-top: auto;
  padding-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

.menu__contact a:not(.button) {
  color: var(--ink-2);
  text-decoration: none;
}

.menu__contact .button {
  width: 100%;
}

/* ---------- photo settle motion ---------- */

.settle {
  overflow: hidden;
}

.settle picture {
  display: block;
  width: 100%;
  height: 100%;
}

.settle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .js .settle img {
    opacity: 0.35;
    transform: scale(1.04);
    transition:
      opacity 1.1s var(--ease-out),
      transform 1.6s var(--ease-out);
  }

  .js .settle.is-in img {
    opacity: 1;
    transform: none;
  }
}

/* ---------- home hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: end;
  color: var(--paper);
  background: var(--char);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* the picture must fill the section too, or a photo wider than the screen
   stops short and leaves a charcoal strip under it */
.hero__media picture {
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* team photo: keep the group centred and the faces above the headline */
  object-position: 45% 40%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(26 20 16 / 0.42) 0%,
    rgb(26 20 16 / 0) 18%,
    rgb(26 20 16 / 0) 34%,
    rgb(26 20 16 / 0.34) 52%,
    rgb(26 20 16 / 0.66) 72%,
    rgb(26 20 16 / 0.74) 100%
  );
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media img {
    animation: hero-settle 2.2s var(--ease-out) both;
  }
}

@keyframes hero-settle {
  from {
    opacity: 0.5;
    transform: scale(1.04);
  }
  to {
    transform: none;
  }
}

.hero__content {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(3.5rem, 10vh, 7rem);
  text-align: center;
  display: grid;
  justify-items: center;
}

/* One h1 holds the line and the "home staging … in Sacramento" subline, so search
   engines read both as the page heading; each part keeps its own type role. */
.hero__heading {
  display: grid;
  justify-items: inherit;
}

.hero__title {
  display: block;
  max-width: 11.2em;
  text-shadow: 0 1px 2px rgb(20 15 12 / 0.18), 0 2px 30px rgb(20 15 12 / 0.28);
}

.hero__sub {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  letter-spacing: 0.02em;
  color: rgb(250 248 245 / 0.9);
  text-shadow: 0 1px 14px rgb(20 15 12 / 0.4);
}

.hero__actions {
  margin-top: clamp(1.75rem, 3.5vh, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

/* ---------- sections ---------- */

.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.section--linen {
  background: var(--linen);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}

.section-head > :first-child {
  grid-column: 1 / span 7;
}

.section-head > :last-child:not(:first-child) {
  grid-column: 9 / -1;
}

/* home: quiet statement */

.quiet {
  max-width: 48rem;
  display: grid;
  justify-items: center;
  text-align: center;
}

.quiet .prose {
  margin-top: 2rem;
}

.quiet .arrow-link {
  margin-top: 2.25rem;
}

/* home: service tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 2rem + 3vw, 5rem) clamp(1.5rem, 3vw, 3rem);
}

.tile {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tile__media {
  aspect-ratio: 3 / 2;
  margin-bottom: 1.6rem;
}

.tile p {
  margin-top: 0.6rem;
  color: var(--ink-2);
  max-width: 30em;
}

.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid currentColor;
  font: 600 0.6875rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tile__more svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.45s var(--ease-out);
}

.tile:hover .tile__more svg {
  transform: translateX(0.3rem);
}

.tile:focus-visible {
  outline-offset: 6px;
}

/* before / after slider */

.compare__frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  max-height: 80vh;
  width: 100%;
  overflow: hidden;
  background: var(--linen);
  user-select: none;
  -webkit-user-select: none;
}

.compare__layer {
  position: absolute;
  inset: 0;
}

.compare__layer picture {
  display: block;
  width: 100%;
  height: 100%;
}

.compare__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare__before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgb(46 42 38 / 0.12);
  pointer-events: none;
}

.compare__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  transform: translate(-50%, -50%);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 24px rgb(26 20 16 / 0.18);
  pointer-events: none;
  transition: transform 0.3s var(--ease-out);
}

.compare__handle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.compare__tag {
  position: absolute;
  top: 1.25rem;
  padding: 0.55rem 0.8rem;
  background: rgb(250 248 245 / 0.92);
  font: 600 0.6875rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

.compare__tag--before {
  left: 1.25rem;
}

.compare__tag--after {
  right: 1.25rem;
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}

.compare__range:focus-visible ~ .compare__handle,
.compare__range:active ~ .compare__handle {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.compare__range:active ~ .compare__handle {
  transform: translate(-50%, -50%) scale(1.06);
}

.compare__caption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* empty slots until the client sends photo pairs */
.compare--placeholder .compare__frame {
  outline: 1px dashed var(--oak);
  outline-offset: -1px;
}

.compare__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 0.5rem;
  color: var(--ink-2);
}

.compare__placeholder .label {
  color: var(--oak-deep);
}

.compare__placeholder--before {
  background: var(--stone);
  justify-items: start;
  padding: 2rem 2rem 2rem 12%;
}

.compare__placeholder--after {
  background: var(--linen);
  justify-items: end;
  padding: 2rem 12% 2rem 2rem;
  text-align: right;
}

/* notes under external and conditional links */

.cta-note {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.form-note {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.form-note a {
  color: var(--ink);
}

/* instagram */

.gram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 1vw, 1rem);
}

.gram a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.gram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease-out);
}

.gram a:hover img {
  transform: scale(1.04);
}

.gram-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.gram-head p {
  color: var(--ink-2);
  margin-top: 0.75rem;
}

/* ---------- closing + footer ---------- */

.closing {
  background: var(--char);
  color: var(--on-char);
}

.closing__cta {
  padding-top: var(--section);
  padding-bottom: var(--section);
  text-align: center;
  display: grid;
  justify-items: center;
}

.closing__cta .section-title {
  font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.75rem);
}

.closing__cta p {
  margin-top: 1.5rem;
  color: var(--on-char-2);
  max-width: 30em;
}

.closing__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

.closing :focus-visible {
  outline-color: var(--on-char);
}

.site-footer {
  border-top: 1px solid var(--char-rule);
  padding-top: clamp(3.5rem, 3rem + 2vw, 5rem);
  padding-bottom: 2.5rem;
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

.site-footer__brand p {
  margin-top: 1.5rem;
  color: var(--on-char-2);
  max-width: 22em;
}

.site-footer .logo {
  --logo-w: 18.5rem;
  max-width: 100%;
}

.site-footer .logo__art {
  max-width: 100%;
}

.site-footer h2 {
  font: 600 0.6875rem/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-char-2);
  margin-bottom: 1.1rem;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__base {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--char-rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  color: var(--on-char-2);
  font-size: 0.8125rem;
}

/* ---------- interior pages ---------- */

.page-intro {
  padding-top: calc(var(--header-h) + clamp(4rem, 2.5rem + 6vw, 8.5rem));
  padding-bottom: clamp(3.5rem, 2.5rem + 3vw, 6rem);
}

.page-intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 2rem;
  align-items: end;
}

.page-intro__grid > :first-child {
  grid-column: 1 / span 7;
}

.page-intro__grid > :last-child:not(:first-child) {
  grid-column: 9 / -1;
}

.page-intro__jump {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.page-intro__jump a {
  font: 500 0.8125rem/1.4 var(--sans);
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.15rem;
}

.page-intro__jump a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.band-media {
  aspect-ratio: 21 / 9;
}

/* service rows */

.services {
  display: grid;
  gap: clamp(5rem, 3.5rem + 6vw, 9.5rem);
}

.service {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 2.5rem;
  align-items: center;
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

.service__media {
  grid-column: 1 / span 6;
  aspect-ratio: 4 / 5;
}

.service__media--wide {
  aspect-ratio: 4 / 3;
  grid-column: 1 / span 7;
}

.service__body {
  grid-column: 8 / -1;
}

.service__media--wide + .service__body {
  grid-column: 9 / -1;
}

.service:nth-child(even) .service__media {
  grid-column: 7 / -1;
  grid-row: 1;
}

.service:nth-child(even) .service__media--wide {
  grid-column: 6 / -1;
}

.service:nth-child(even) .service__body {
  grid-column: 1 / span 5;
  grid-row: 1;
}

.service:nth-child(even) .service__media--wide + .service__body {
  grid-column: 1 / span 4;
}

.service__body .lede {
  margin-top: 1.5rem;
  color: var(--ink);
}

.service__body .prose {
  margin-top: 1rem;
}

.facts {
  margin: 2.25rem 0 0;
  border-top: 1px solid var(--rule);
}

.facts > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  font: 600 0.6875rem/1.9 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.facts dd {
  margin: 0;
}

.facts dd.facts__price {
  font: 340 1.5rem/1.15 var(--serif);
}

.facts dd.facts__price small {
  font: 400 0.9375rem/1 var(--sans);
  color: var(--ink-2);
}

.facts ul li {
  position: relative;
  padding-left: 1.1rem;
}

.facts ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.45rem;
  height: 1px;
  background: var(--oak);
}

.facts ul li + li {
  margin-top: 0.3rem;
}

.service__cta {
  margin-top: 2.5rem;
}

/* studio */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3.5rem);
  row-gap: 3rem;
}

.principles li {
  border-top: 1px solid var(--ink);
  padding-top: 1.75rem;
}

.principles p {
  margin-top: 1rem;
  color: var(--ink-2);
}

.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4.5rem clamp(2rem, 4vw, 4rem);
}

.member .placeholder--portrait {
  margin-bottom: 2rem;
}

.member__portrait {
  aspect-ratio: 4 / 5;
  margin-bottom: 2rem;
}

/* a team member without a photo yet: initials in the portrait frame */
.member__initials {
  display: grid;
  place-items: center;
  background: var(--stone);
  color: var(--oak-deep);
  font: 300 clamp(3.5rem, 2rem + 4vw, 6rem)/1 var(--serif);
  letter-spacing: 0.04em;
}

.member__role {
  margin-top: 0.6rem;
  font: 600 0.72rem/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.member__bio {
  margin-top: 1.5rem;
  max-width: 34em;
  color: var(--ink-2);
}

.member__bio p + p {
  margin-top: 1em;
}

.member__contact {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

.placeholder {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--oak);
  background: var(--paper);
  color: var(--ink-2);
}

.placeholder--portrait {
  aspect-ratio: 4 / 5;
}

.placeholder--text {
  margin-top: 1.75rem;
  text-align: left;
  place-content: start;
  padding: 1.75rem;
}

.placeholder .label {
  color: var(--oak-deep);
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 4rem;
  align-items: start;
}

.contact__details {
  grid-column: 1 / span 4;
}

.contact__form {
  grid-column: 6 / -1;
}

.detail-list {
  border-top: 1px solid var(--rule);
}

.detail-list > div {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.detail-list dt {
  font: 600 0.6875rem/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}

.detail-list dd {
  margin: 0;
  font: 340 clamp(1.05rem, 0.85rem + 0.9vw, 1.375rem)/1.35 var(--serif);
  overflow-wrap: break-word;
}

.detail-list dd a {
  text-decoration: none;
}

.detail-list dd a:hover {
  text-decoration: underline;
}

.detail-list .socials {
  font: 500 0.9375rem/1.6 var(--sans);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
}

.field {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font: 600 0.6875rem/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.field label .opt {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-2);
  margin-left: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 1.0625rem/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid #9c9288;
  border-radius: 0;
  padding: 0.75rem 0;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%232e2a26' stroke-width='1.4' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  cursor: pointer;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #746a60;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-bottom-color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-bottom-color: #9b3b2c;
  box-shadow: 0 1px 0 0 #9b3b2c;
}

.field__error {
  font-size: 0.875rem;
  color: #8f3427;
  min-height: 0;
}

.field__error:empty {
  display: none;
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 0.75rem;
}

.form-foot p {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.form-status {
  grid-column: 1 / -1;
  padding: 1.5rem 1.75rem;
  background: var(--linen);
  border-top: 1px solid var(--ink);
}

.form-status[hidden] {
  display: none;
}

.form-status h3 {
  font-size: 1.6rem;
  font-weight: 340;
}

.form-status p {
  margin-top: 0.5rem;
  color: var(--ink-2);
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .header-phone {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 4.25rem;
  }

  .site-nav,
  .site-header__actions .button {
    display: none;
  }

  .icon-button {
    display: inline-flex;
  }

  .site-header__actions {
    gap: 0.25rem;
    margin-right: -0.6rem;
  }

  .site-header .logo,
  .menu__top .logo {
    --logo-w: min(14.5rem, 100vw - 9.5rem);
  }

  /* hero: photo above, text below. On a phone the type would land on faces
     and pale upholstery, which cannot carry white type without a scrim that buries
     the photo, so on phones the photo stays clean and the type sits on paper. */
  .hero {
    min-height: 0;
    align-content: start;
    background: var(--paper);
    color: var(--ink);
  }

  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 46svh;
    min-height: 17rem;
  }

  .hero__media img {
    object-position: 55% 30%;
  }

  .hero__media::after {
    /* deep enough that the logo holds 3:1 over the painting's pale sky */
    background: linear-gradient(180deg, rgb(26 20 16 / 0.55) 0%, rgb(26 20 16 / 0) 30%);
  }

  .hero__content {
    padding-top: 1.75rem;
    padding-bottom: 0;
    text-align: left;
    justify-items: start;
  }

  .hero__title,
  .hero__sub {
    text-shadow: none;
  }

  .hero__sub {
    color: var(--ink-2);
  }

  .hero__actions {
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero .button--paper {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }

  .hero .button--outline-light {
    border-color: var(--ink);
    color: var(--ink);
  }

  .section-head,
  .intro,
  .page-intro__grid,
  .service,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head > *,
  .section-head > :first-child,
  .section-head > :last-child:not(:first-child),
  .page-intro__grid > :first-child,
  .page-intro__grid > *,
  .page-intro__grid > :last-child:not(:first-child),
  .service .service__media,
  .service .service__body,
  .service:nth-child(even) .service__media,
  .service:nth-child(even) .service__body,
  .service .service__media--wide + .service__body,
  .service:nth-child(even) .service__media--wide + .service__body,
  .contact__details,
  .contact__form {
    grid-column: 1;
    grid-row: auto;
  }

  .intro {
    row-gap: 3rem;
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.75rem;
  }

  .gram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .band-media {
    aspect-ratio: 4 / 3;
  }

  .service__media,
  .service__media--wide {
    aspect-ratio: 4 / 3.6;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {

  .facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .closing__actions .button {
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.band-media img {
  object-position: 50% 0%;
}

@media (max-width: 900px) {
  .tiles,
  .team {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare__frame {
    aspect-ratio: 4 / 3.4;
  }

  .compare__placeholder--before {
    padding-left: 8%;
  }

  .compare__placeholder--after {
    padding-right: 8%;
  }

}

/* zoom sits after the settle rules so hover wins on tiles */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .js .tile:hover .tile__media.is-in img,
  .tile:hover .tile__media img {
    transform: scale(1.03);
  }
}

.compare__placeholder--before .label {
  color: var(--ink-2);
}
