/* Final interaction and layout corrections based on live desktop QA. */
@media (min-width: 901px) {
  .desktop-nav {
    direction: ltr;
  }

  .hero-image {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-position: center !important;
  }

  .hero-panel {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, rgba(16, 13, 10, .12), rgba(16, 13, 10, .34) 48%, rgba(16, 13, 10, .94)) !important;
  }

  .gallery-section {
    min-height: 860px;
  }

  .project-rail {
    touch-action: pan-x pan-y pinch-zoom;
  }

  .project-card img {
    height: clamp(320px, 52vh, 500px);
  }

  .gallery-arrow {
    top: calc(50% - 30px);
  }
}

.brand {
  width: auto;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  direction: ltr;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: invert(1);
}

.brand-wordmark {
  color: #fff;
  font: 600 21px/1 Arial, sans-serif;
  letter-spacing: .08em;
  white-space: nowrap;
}

.scroll-progress span {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.hero h1 {
  max-width: 9em;
}

.hero-note {
  max-width: 460px;
}

.hero-cta {
  width: min(100%, 460px);
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 11px;
}

.hero-cta span {
  float: left;
}

.signature-text {
  max-width: 540px;
  margin: 34px 0 0 auto;
  color: #746c62;
  font-size: 12px;
  line-height: 2;
}

.signature-text p {
  margin: 0;
}

.signature-text p + p {
  margin-top: 14px;
}

.brand-origin {
  min-height: 650px;
  padding: 96px var(--gutter);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 9vw;
  align-items: center;
  direction: ltr;
  border-top: 1px solid var(--line);
}

.brand-origin-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.brand-origin-mark img {
  width: min(100%, 300px);
  height: auto;
  object-fit: contain;
}

.brand-origin-name {
  direction: ltr;
  color: var(--ink);
  font: 600 42px/1 Arial, sans-serif;
  letter-spacing: .1em;
}

.brand-origin-copy {
  direction: rtl;
}

.brand-origin-copy h2 {
  margin: 36px 0 28px;
  font-size: clamp(44px, 5vw, 74px);
  font-weight: 300;
  line-height: 1.38;
  letter-spacing: -.045em;
}

.brand-origin-copy > div {
  max-width: 560px;
  color: #6f665c;
  font-size: 12px;
  line-height: 2.05;
}

.brand-origin-copy > div p {
  margin: 0;
}

.brand-origin-copy > div p + p {
  margin-top: 14px;
}

.project-card {
  scroll-snap-stop: always;
}

.gallery-modern .drag-hint {
  color: #6f665c;
}

.gallery-modern {
  min-height: 0;
  padding-bottom: 88px;
}

.light .section-label,
.gallery-modern .gallery-heading > div p,
.transition-copy > p:not(.section-label) {
  color: #6f665c;
}

.gallery-wood .project-card span {
  color: #c09a7a;
}

.process {
  min-height: 0;
  padding-top: 96px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: auto minmax(560px, auto);
  column-gap: clamp(44px, 6vw, 96px);
  align-items: stretch;
}

.process > .section-label {
  grid-column: 1 / -1;
  margin-bottom: 42px;
}

.process-title {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 34px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-steps {
  display: block;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
  word-spacing: 0;
}

.process-steps li {
  position: relative;
  min-height: 68px;
  padding: 18px 54px 16px 0;
  border-top: 1px solid rgba(23, 19, 15, .2);
  color: #5f584f;
  font-size: 12px;
  line-height: 1.9;
}

.process-steps li span {
  position: absolute;
  top: 19px;
  right: 0;
  color: var(--wood);
  font-size: 9px;
}

.process-image {
  grid-column: 1;
  grid-row: 2;
  height: auto;
  min-height: 560px;
  margin: 0;
}

.process-image img {
  object-position: 52% center;
  filter: saturate(.78) contrast(1.04);
}

.trust {
  padding: 104px var(--gutter) 128px;
}

.trust-heading {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
  align-items: end;
  margin-top: 48px;
}

.trust-heading h2 {
  margin: 0;
  font-size: clamp(42px, 4.4vw, 66px);
  font-weight: 300;
  letter-spacing: -.045em;
}

.trust-heading p {
  max-width: 420px;
  margin: 0;
  color: #746c62;
  font-size: 11px;
  line-height: 2;
}

.trust-list {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(86%, 1120px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(22, 18, 14, .92);
  color: var(--paper);
  backdrop-filter: blur(14px);
}

.trust-list li {
  min-height: 148px;
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.trust-list li:not(:last-child) {
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.trust-list span {
  margin-bottom: auto;
  color: #c09a7a;
  font-size: 9px;
}

.trust-list strong {
  font-size: 14px;
  font-weight: 400;
}

.trust-list small {
  margin-top: 7px;
  color: rgba(255, 255, 255, .48);
  font-size: 9px;
  line-height: 1.8;
}

.trust-frame {
  position: relative;
  height: clamp(520px, 48vw, 690px);
  margin-top: 64px;
  overflow: hidden;
  background: #cfc6b8;
}

.trust-visual {
  height: 100%;
  margin: 0;
}

.trust-visual img {
  object-position: center 48%;
  filter: saturate(.78) contrast(1.03);
}

.contact {
  min-height: 1120px;
}

.contact-image {
  height: 1120px;
}

.contact-copy {
  padding-top: 96px;
  padding-bottom: 150px;
}

.contact-copy h2 {
  max-width: 760px;
  margin: 40px 0 26px;
  font-size: clamp(48px, 5.3vw, 80px);
}

.contact-copy > p:not(.section-label) {
  color: rgba(255, 255, 255, .56);
}

.contact footer {
  color: rgba(255, 255, 255, .56);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  filter: invert(1);
}

.footer-brand strong {
  color: #fff;
  font: 600 14px/1 Arial, sans-serif;
  letter-spacing: .08em;
}

.project-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  width: min(100%, 700px);
  margin-top: 42px;
}

.project-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, .55);
  font-size: 9px;
}

.project-form .form-wide,
.project-form button,
.project-idea-link {
  grid-column: 1 / -1;
}

.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 300 13px/1.8 var(--font);
}

.project-form select option {
  background: var(--ink);
}

.project-form textarea {
  min-height: 70px;
  resize: vertical;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  border-bottom-color: #bd936e;
}

.project-form button {
  min-height: 58px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .24);
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  background: transparent;
  color: #fff;
  text-align: right;
  cursor: pointer;
}

.project-form button span {
  float: left;
}

.project-idea-link {
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mobile-project-cta {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    transition: background-color .2s ease, border-color .2s ease;
  }

  .site-header.scrolled {
    height: 68px;
    background: rgba(23, 19, 15, .96);
    backdrop-filter: none;
  }

  .hero-image {
    animation: none;
    transform: scale(1.025);
  }

  .brand {
    height: 54px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-wordmark {
    font-size: 20px;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    margin-top: clamp(82px, 16vh, 136px);
    font-size: clamp(38px, 10.7vw, 48px);
    line-height: 1.42;
    letter-spacing: -.04em;
    text-align: right;
  }

  .hero-note {
    max-width: 265px;
    font-size: 10px;
  }

  .hero-cta {
    align-self: flex-end;
    width: 265px;
    margin-top: 12px;
    padding: 12px 0;
    font-size: 10px;
  }

  .signature-text {
    max-width: 310px;
    margin-top: 28px;
    font-size: 11px;
    line-height: 2.05;
  }

  .signature {
    padding-bottom: 92px;
  }

  .signature-image,
  .motion-ready .signature-image.reveal {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% + var(--mobile-gutter) * 2);
    max-width: none;
    height: clamp(300px, 84vw, 430px);
    min-height: 0;
    margin: 46px calc(var(--mobile-gutter) * -1) 0;
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }

  .signature-image img,
  .signature-image.is-visible img {
    object-position: 50% 48%;
    transform: none;
    transition: none;
  }

  .material-bars {
    bottom: 42px;
  }

  .brand-origin {
    min-height: 0;
    padding: 84px var(--mobile-gutter) 96px;
    display: flex;
    flex-direction: column;
    gap: 44px;
    align-items: stretch;
  }

  .brand-origin-copy {
    order: 1;
  }

  .brand-origin-copy h2 {
    margin: 28px 0 24px;
    font-size: clamp(40px, 10.8vw, 50px);
  }

  .brand-origin-copy > div {
    font-size: 11px;
  }

  .brand-origin-mark {
    order: 2;
  }

  .brand-origin-mark,
  .motion-ready .brand-origin-mark.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand-origin-mark img {
    width: min(68vw, 260px);
  }

  .gallery-heading > div p {
    max-width: 330px;
  }

  .process {
    min-height: 0;
    padding: 88px var(--mobile-gutter) 108px;
    display: block;
  }

  .process > .section-label {
    margin-bottom: 46px;
  }

  .process-title {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    padding: 0;
    display: block;
  }

  .process-steps {
    display: block;
    margin-top: 42px !important;
  }

  .process-steps li {
    position: relative;
    min-height: 0;
    padding: 14px 44px 24px 0;
    border-top: 1px solid rgba(23, 19, 15, .16);
    font-size: 13px;
  }

  .process-steps li span {
    position: absolute;
    top: 16px;
    right: 0;
    margin: 0;
    padding: 0;
  }

  .process-image {
    height: min(128vw, 560px);
    min-height: 0;
    margin: 54px calc(var(--mobile-gutter) * -1) 0;
  }

  .trust {
    padding: 84px var(--mobile-gutter) 96px;
  }

  .trust-heading {
    display: block;
    margin-top: 42px;
  }

  .trust-heading h2 {
    font-size: clamp(38px, 10.4vw, 46px);
    line-height: 1.4;
  }

  .trust-heading p {
    margin-top: 24px;
  }

  .trust-list {
    position: relative;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin: 0;
  }

  .trust-list li {
    min-height: 136px;
    padding: 20px;
  }

  .trust-list li:nth-child(2) {
    border-left: 0;
  }

  .trust-list li:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .trust-frame {
    height: auto;
    margin-top: 46px;
  }

  .trust-visual {
    height: min(112vw, 520px);
  }

  .trust-visual img {
    object-position: 58% center;
  }

  .contact {
    min-height: 1240px;
  }

  .contact-image {
    height: 100%;
  }

  .contact-copy {
    min-height: 1240px;
    padding-top: 96px;
    padding-bottom: 170px;
    justify-content: flex-end;
  }

  .contact-copy h2 {
    max-width: 8.6em;
    margin: 32px 0 22px;
    font-size: clamp(43px, 11.6vw, 54px);
  }

  .footer-brand img {
    width: 24px;
    height: 24px;
  }

  .project-form {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 34px;
  }

  .project-form .form-wide,
  .project-form button,
  .project-idea-link {
    grid-column: auto;
  }

  .mobile-project-cta {
    position: fixed;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 85;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(23, 19, 15, .92);
    color: #fff;
    font-size: 12px;
    backdrop-filter: blur(14px);
    transition: opacity .25s, transform .25s;
  }

  .mobile-project-cta.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }
}
