.desktop-brand { display: none; }

@media (max-width: 600px), (min-width: 1121px) {
  /* The ornament and photo share the traced inner edge of the PNG. */
  .hero-frame > .crop,
  .hero-frame::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 127.5%;
    height: 132.6%;
    transform-origin: 49.60% 51.83%;
    transform: translate(-49.60%, -51.83%) rotate(180deg);
  }
  .hero-frame > .crop {
    aspect-ratio: auto !important;
    border-radius: 0;
    clip-path: polygon(
      89.633% 51.834%, 89.456% 54.621%, 89.165% 57.394%, 88.680% 60.141%, 87.852% 62.802%,
      86.919% 65.417%, 85.735% 67.922%, 84.384% 70.328%, 82.806% 72.583%, 81.214% 74.802%,
      79.412% 76.849%, 77.537% 78.812%, 75.481% 80.576%, 73.413% 82.311%, 71.229% 83.898%,
      69.019% 85.467%, 66.940% 87.385%, 64.448% 88.581%, 61.701% 89.072%, 59.189% 90.290%,
      56.456% 90.708%, 53.761% 91.409%, 50.971% 91.045%, 48.232% 91.045%, 45.458% 91.250%,
      42.871% 90.001%, 40.013% 90.290%, 37.477% 89.148%, 34.784% 88.507%, 32.192% 87.528%,
      30.064% 85.674%, 27.751% 84.229%, 25.495% 82.688%, 23.348% 80.991%, 21.264% 79.199%,
      19.302% 77.259%, 17.537% 75.130%, 15.923% 72.879%, 14.326% 70.591%, 13.030% 68.117%,
      11.834% 65.580%, 10.890% 62.934%, 10.132% 60.224%, 9.564% 57.461%, 9.349% 54.649%,
      9.330% 51.834%, 9.508% 49.031%, 9.880% 46.252%, 10.522% 43.528%, 11.273% 40.844%,
      12.283% 38.252%, 13.103% 35.584%, 14.396% 33.115%, 15.855% 30.747%, 17.602% 28.585%,
      19.241% 26.358%, 21.665% 24.857%, 23.668% 23.033%, 25.790% 21.357%, 27.751% 19.440%,
      30.064% 17.994%, 32.332% 16.427%, 34.874% 15.383%, 37.699% 15.203%, 40.090% 13.688%,
      42.608% 12.175%, 45.550% 13.290%, 48.232% 12.624%, 50.971% 12.624%, 53.652% 13.290%,
      56.442% 13.039%, 59.132% 13.610%, 61.553% 15.051%, 64.359% 15.309%, 66.870% 16.427%,
      69.298% 17.718%, 71.407% 19.506%, 73.364% 21.420%, 75.481% 23.092%, 77.480% 24.912%,
      79.962% 26.358%, 81.730% 28.491%, 83.347% 30.747%, 84.807% 33.115%, 86.099% 35.584%,
      86.844% 38.279%, 87.852% 40.866%, 88.602% 43.544%, 89.165% 46.274%, 89.456% 49.047%
    );
  }
  .hero-frame > .crop > .standalone-photo {
    position: absolute;
    top: 12.26%;
    left: 8.8%;
    width: 81.6%;
    height: 79.4%;
    rotate: 180deg; /* Counter the crop rotation so the photo stays upright. */
  }
  .hero-frame::after {
    content: "";
    pointer-events: none;
    background: url("images/hero-rococo-circle-v1.webp") center / 100% 100% no-repeat;
  }
}

@media (min-width: 1121px) {
  :root {
    --desktop-content: 1200px;
    --desktop-gutter: max(48px, calc((100% - var(--desktop-content)) / 2));
    --desktop-section-space: clamp(72px, 6.1vw, 100px);
    scroll-padding-top: 92px;
  }

  .brand-rail { display: none; }
  .nav-rail {
    position: sticky;
    z-index: 20;
    top: 0;
    right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: auto;
    min-height: 76px;
    padding: 8px var(--desktop-gutter);
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
    transform: none;
  }
  .desktop-brand { display: block; flex: 0 0 110px; }
  .nav-rail nav {
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 clamp(8px, calc(4vw - 36px), 24px);
    margin: 0;
    padding: 0;
  }
  .nav-rail nav a { white-space: nowrap; letter-spacing: 0; }
  .nav-rail nav a::before { inset: auto 0 3px; width: auto; height: 1px; border-radius: 0; }
  .nav-rail > .cta { flex: 0 0 166px; min-height: 46px; }
  .nav-rail > p { display: none; }

  .page { width: 100%; }
  .page > section:not(.hero) { padding: var(--desktop-section-space) var(--desktop-gutter); }
  .page h2 { font-size: clamp(34px, 3.1vw, 46px); line-height: 1.45; }
  .page h3 { line-height: 1.55; }

  .hero {
    --hero-copy-inset: clamp(17px, calc(7.5vw - 64px), 52px);
    display: flex;
    align-items: center;
    min-height: clamp(680px, 56.25vw, 900px);
    padding: 64px 0;
  }
  .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-rows: repeat(4, auto);
    column-gap: clamp(28px, 4.3vw, 62px);
    row-gap: 12px;
    align-items: center;
    width: min(64%, calc(100% - clamp(440px, 48vw, 760px)));
    margin-inline: auto;
    text-align: left;
  }
  .hero-content > header { grid-column: 1; grid-row: 1; width: 100%; margin-left: var(--hero-copy-inset); }
  .hero .hero-label { padding-left: 0; }
  .hero-brand { width: fit-content; margin-top: 4px; }
  .hero-brand img { width: 156px; margin-inline: -11px 0; }
  .hero h1 {
    max-width: none;
    margin: 10px 0 0;
    font-size: clamp(41px, 3.75vw, 58px);
    line-height: 1.16;
    text-wrap: wrap;
  }
  .hero-copy { max-width: none; margin: 12px 0 0; line-height: 1.55; }
  .hero .rococo-frame { display: none; }
  .hero .hero-frame {
    grid-column: 2;
    grid-row: 1 / -1;
    width: min(97%, 350px);
    margin: 0 auto;
    padding: 0;
    aspect-ratio: 1;
  }

  .hero .floral-corner { visibility: hidden; }
  .hero .floral-bottom { width: 156px; }

  .hero .salon-snapshot {
    grid-column: 1;
    grid-row: 2;
    margin: 4px 0 0 var(--hero-copy-inset);
  }
  .hero .salon-snapshot dl > div { width: 94px; }
  .hero .salon-snapshot dl { gap: clamp(7px, calc(2vw - 18px), 14px); }
  .hero .cta {
    grid-column: 1;
    grid-row: 3;
    width: min(calc(100% - var(--hero-copy-inset)), 340px);
    margin: 0 0 0 var(--hero-copy-inset);
  }
  .hero-afterword { grid-column: 1; grid-row: 4; margin-left: var(--hero-copy-inset); }
  .hero-afterword .hero-note { max-width: none; margin: 0 0 8px; }
  .hero-afterword .motion-controls { margin: 0; text-align: left; }

  .page > .values { display: grid; row-gap: 32px; }
  .values > h2 { grid-row: 1; margin: 0; }
  .values > h2 br { display: none; }
  .values .handoff-values { padding: 0; }
  .values-photos, .value-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .value-list { padding: 4px 0 0; }
  .value-list article { margin: 0; padding-top: 32px; }

  .page > .designs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: 1fr repeat(4, auto) 1fr;
    column-gap: clamp(54px, 7vw, 100px);
    background-color: var(--surround);
    text-align: left;
  }
  .designs h2 { grid-column: 1; grid-row: 2; margin: 0 0 16px; }
  .designs-intro { grid-column: 1; grid-row: 3; margin: 0 0 24px; }
  .designs .consult-design { grid-column: 1; grid-row: 4; width: min(100%, 320px); }
  .designs .image-note { grid-column: 1; grid-row: 5; margin: 12px 0 0; }
  .designs .carousel {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: end;
    width: min(100%, 540px);
    min-width: 0;
  }
  .design-slide figcaption { min-height: 0; }
  .carousel-controls { margin-top: 14px; }
  .designs .carousel-position { display: block; margin-inline: auto; }

  .page > .wishes { background: var(--ivory); }
  .wishes-heading { padding: 0 0 36px; }
  .wishes-heading-photo { width: calc(100% - 240px); height: 300px; }
  .wishes-heading h2 { margin-bottom: 32px; }
  .wish-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; }
  .wish-list > .wish {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: auto;
    padding: 20px 12px;
    background: var(--surround);
    border-radius: 24px;
  }
  .wish .wish-photo { width: 104px; }
  .wish-list .wish p { justify-content: center; min-height: 0; width: 100%; margin: 0; padding: 0; background: none; text-align: center; }

  .page > .consultation { background-color: var(--mint); }
  .consult-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr auto auto 1fr;
    align-items: center;
    column-gap: clamp(36px, 5.6vw, 80px);
    padding: 0;
    background: none;
  }
  .consult-main .consult-circle {
    grid-column: 2;
    grid-row: 1 / -1;
    width: min(84%, 460px);
    margin: 0 auto 12px;
  }
  .consult-main h2 {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 18px;
    font-size: clamp(33px, 2.7vw, 40px);
  }
  .consult-main > p:last-child { grid-column: 1; grid-row: 3; margin: 0; }

  .page > section.texture-section {
    padding: 0;
    background: var(--mint);
  }
  .texture-section .texture-feature {
    display: grid;
    justify-items: end;
    align-items: end;
    isolation: isolate;
    min-height: clamp(500px, 44vw, 630px);
    margin: 0;
    padding: 0 var(--desktop-gutter) clamp(40px, 4.4vw, 72px);
  }
  .texture-section .texture-feature-photo {
    position: absolute;
    z-index: -1;
    inset: 0;
    height: 100%;
    object-fit: cover;
    object-position: center 36%;
  }
  .texture-section .texture-copy {
    position: relative;
    inset: auto;
    padding: 0;
    text-align: left;
  }
  .texture-section .texture-copy h2 { font-size: clamp(34px, 3.1vw, 46px); }

  .page > .guide {
    display: grid;
    grid-template-columns: minmax(0, min(60%, 645px)) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(42px, 5vw, 72px);
    background-color: var(--ivory);
  }
  .page .guide > .handoff-guide { grid-column: 1; grid-row: 1 / 5; align-self: center; padding: 0; }
  .guide .handoff-guide .guide-photo { mask-image: none; border-radius: 12px; }
  .guide > :is(h2, .steps, .guide-copy, .cta) { grid-column: 2; }
  .guide > h2 { grid-row: 1; margin: 0 0 22px; }
  .guide .steps { grid-row: 2; background: var(--surround); }
  .guide-copy { grid-row: 3; margin: 0 0 24px; text-align: left; }
  .guide > .cta { grid-row: 4; width: min(100%, 340px); }

  .page > .faq {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 20px clamp(42px, 6.25vw, 90px);
    align-items: start;
    background-color: var(--surround);
  }
  .faq-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 0 12px;
  }
  .faq > details { grid-column: 1; padding: 24px 30px; background: var(--ivory); border-radius: 12px; }
  .faq > details:nth-of-type(even) { background: var(--ivory); }
  .salon-info { grid-column: 2; grid-row: 2 / span 2; padding: 8px 0 0; }
  .faq summary { font-size: 22px; }

  .page > section.closing { padding-bottom: max(var(--desktop-section-space), 110px); }
  .closing-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-rows: repeat(6, auto);
    align-items: start;
    column-gap: clamp(44px, 6.25vw, 90px);
    text-align: left;
  }
  .closing-photo { grid-column: 1; grid-row: 1 / -1; align-self: center; margin: 0; }
  .closing-content > :not(.closing-photo) { grid-column: 2; }
  .closing h2 { grid-row: 1; margin: 0 0 18px; font-size: clamp(30px, 2.65vw, 39px); }
  .closing-content > p:not(.closing-brand) { margin: 0 0 24px; }
  .closing-content > .cta { grid-row: 3; width: min(100%, 340px); margin-bottom: 10px; }
  .closing-content > .closing-note { grid-row: 4; }
  .closing-brand { grid-row: 5; width: fit-content; margin-top: 0; padding: 0; }
  .closing-brand img { width: 143px; margin-inline: -10px 0; }
  .closing-content > .motion-controls { grid-row: 6; margin: 0; text-align: left; }
}
