/* Shared UI components */

/* — Navigation — */
  nav.site {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 24px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.5s var(--easing), padding 0.5s var(--easing), border-color 0.5s var(--easing);
    border-bottom: 1px solid transparent;
  }

  nav.site.scrolled {
    background: rgba(237, 231, 221, 0.88);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    padding: 16px var(--gutter);
    border-bottom-color: var(--hairline-soft);
  }

  nav.site.menu-open {
    background: rgba(237, 231, 221, 0.98);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-bottom-color: var(--hairline);
  }

  .brand {
    font-family: var(--display);
    font-weight: 400;
    font-size: 19px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .brand .mark {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clay);
    transform: translateY(-3px);
  }
  .brand span.three-sixty {
    font-style: italic;
    color: var(--clay);
  }

  .brand-logo {
    display: flex;
    align-items: center;
  }
  .brand-logo svg {
    height: 15px;
    width: auto;
    display: block;
  }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }
  .nav-links a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--easing);
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--easing);
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-links a.active { color: var(--clay); }
  .nav-links a.active::after { transform: scaleX(1); background: var(--clay); }

  .nav-cta {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 11px 22px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    transition: all 0.4s var(--easing);
  }
  .nav-cta:hover { background: var(--ink); color: var(--bone); }

/* Solid nav variant (inner pages) */
nav.site.nav-solid {
  background: rgba(237, 231, 221, 0.88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--hairline-soft);
}

/* Mobile menu — dropdown from nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 180;
  pointer-events: none;
}

.mobile-nav.open {
  pointer-events: auto;
}

.mobile-nav-scrim {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 27, 22, 0.35);
  opacity: 0;
  transition: opacity 0.35s var(--easing);
}

.mobile-nav.open .mobile-nav-scrim {
  opacity: 1;
}

.mobile-nav-panel {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1;
  background: rgba(237, 231, 221, 0.98);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 12px 32px rgba(31, 27, 22, 0.1);
  padding: 12px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    visibility 0.35s var(--easing),
    opacity 0.35s var(--easing),
    transform 0.35s var(--easing);
}

.mobile-nav.open .mobile-nav-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(100%, 300px);
}

.mobile-nav a:last-of-type:not(.mobile-nav-cta) {
  border-bottom: none;
}

.mobile-nav a.active { color: var(--clay); }

.mobile-nav-cta {
  margin-top: 12px;
  text-align: center;
  justify-content: center;
  border: 1px solid var(--ink) !important;
  border-radius: 999px;
  padding: 13px 22px !important;
  width: min(100%, 300px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 201;
}

.menu-toggle span {
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--easing), opacity 0.3s var(--easing);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* — Sections shared — */
  section {
    padding: var(--section-pad-y) var(--gutter);
    position: relative;
  }

  .section-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--section-header-gap);
    margin-bottom: var(--section-header-mb);
    align-items: end;
  }

  .section-number {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }
  .section-number .num {
    font-family: var(--display);
    font-size: 13px;
    font-style: italic;
    color: var(--clay);
    font-weight: 400;
  }
  .section-number .label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }

  .section-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(40px, 5.4vw, 84px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ink);
  }
  .section-title .italic-word {
    font-style: italic;
  }

  /* Editorial two-line display heading */
  .section-title--editorial {
    font-size: clamp(32px, 6.8vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  .section-title--editorial .section-title-line2 {
    display: inline-block;
    margin-top: 0.04em;
  }

  #services .section-header {
    align-items: end;
  }

  @media (min-width: 1025px) {
    #services .section-header {
      gap: clamp(56px, 8vw, 120px);
      margin-bottom: clamp(52px, 6vw, 80px);
    }

    .section-title--editorial {
      font-size: clamp(48px, 5.6vw, 82px);
      padding-right: clamp(16px, 3vw, 48px);
    }
  }

/* — Projects — */
  .projects {
    background: var(--bone-soft);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }

  .projects-note {
    font-family: var(--display);
    font-style: italic;
    font-size: 15px;
    color: var(--clay);
    margin-bottom: 56px;
    max-width: 540px;
    line-height: 1.6;
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .projects-cta {
    display: flex;
    justify-content: center;
    margin-top: 56px;
  }

  .project-card {
    position: relative;
    height: 380px;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bone-deep);
    transition: transform 0.7s var(--easing);
  }
  .project-card:hover { transform: translateY(-6px); }

  .project-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(1.02);
    transition: transform 1.4s var(--easing), filter 0.7s var(--easing);
    z-index: 0;
  }
  .project-card:hover img { transform: scale(1.06); filter: saturate(1) contrast(1.03); }

  /* Gradient scrim — deepens on hover so the revealed text stays legible */
  .project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(31,27,22,0.35) 70%, rgba(31,27,22,0.82) 100%);
    transition: background 0.6s var(--easing);
  }
  .project-card:hover::after {
    background: linear-gradient(180deg, rgba(31,27,22,0.15) 0%, rgba(31,27,22,0.55) 55%, rgba(31,27,22,0.9) 100%);
  }

  .project-body {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 28px;
    z-index: 2;
    color: var(--bone);
  }
  .project-index {
    font-family: var(--display);
    font-style: italic;
    font-size: 13px;
    color: rgba(237,231,221,0.75);
    display: block;
    margin-bottom: 10px;
  }
  .project-name {
    font-family: var(--display);
    font-weight: 400;
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
  }

/* — Project Modal — */
  .project-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--easing), visibility 0.4s var(--easing);
  }
  .project-modal.open {
    opacity: 1;
    visibility: visible;
  }
  .project-modal-scrim {
    position: absolute;
    inset: 0;
    background: rgba(31, 27, 22, 0.72);
    backdrop-filter: blur(3px);
  }
  .project-modal-panel {
    position: relative;
    z-index: 1;
    background: var(--bone-soft);
    border-radius: 3px;
    width: min(880px, 90vw);
    max-height: 86vh;
    overflow-y: auto;
    padding: 48px 48px 44px;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.5s var(--easing);
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 106, 79, 0.35) transparent;
  }
  .project-modal-panel::-webkit-scrollbar { width: 5px; }
  .project-modal-panel::-webkit-scrollbar-track { background: transparent; }
  .project-modal-panel::-webkit-scrollbar-thumb {
    background: rgba(139, 106, 79, 0.3);
    border-radius: 99px;
  }
  .project-modal.open .project-modal-panel {
    transform: translateY(0) scale(1);
  }
  .project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--easing);
  }
  .project-modal-close:hover {
    background: var(--ink);
    color: var(--bone);
    border-color: var(--ink);
  }
  .project-modal-header {
    margin-bottom: 28px;
  }
  .project-modal-header .eyebrow {
    display: block;
    margin-bottom: 10px;
  }
  .project-modal-header h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 42px);
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .project-modal-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
  }
  .modal-photo-placeholder {
    aspect-ratio: 4 / 3;
    border: 1px dashed var(--hairline);
    border-radius: 2px;
    background: var(--bone-deep);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-photo {
    aspect-ratio: 4 / 3;
    border-radius: 2px;
    overflow: hidden;
    background: var(--bone-deep);
  }
  .modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .modal-photo-placeholder span {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 13px 26px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    transition: all 0.4s var(--easing);
  }
  .modal-cta:hover { background: var(--ink); color: var(--bone); }
  .modal-cta .arrow {
    display: inline-block;
    transition: transform 0.4s var(--easing);
  }
  .modal-cta:hover .arrow { transform: translateX(4px); }

/* — Contact — */
  .contact {
    background: var(--ink);
    color: var(--bone);
    border: none;
  }

  .contact .section-header { grid-template-columns: 1fr; margin-bottom: var(--section-header-mb); }
  .contact .section-title { color: var(--bone); }
  .contact .section-title .italic-word { color: var(--clay-soft); }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
    overflow: visible;
  }

  .contact-left .contact-intro {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.5;
    color: var(--bone);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
    max-width: 480px;
  }

  .contact-details {
    display: grid;
    gap: 28px;
    padding-top: 36px;
    border-top: 1px solid rgba(237, 231, 221, 0.15);
  }

  .contact-detail {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: baseline;
  }

  .contact-detail .label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(237, 231, 221, 0.45);
  }
  .contact-detail .value {
    font-family: var(--display);
    font-weight: 400;
    font-size: 17px;
    color: var(--bone);
    letter-spacing: -0.005em;
  }
  .contact-detail .value a {
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--easing);
  }
  .contact-detail .value a:hover { border-bottom-color: var(--sand); }

  .social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 4px;
  }
  .social-row a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(237, 231, 221, 0.75);
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(237, 231, 221, 0.2);
    padding-bottom: 2px;
    transition: color 0.3s var(--easing), border-color 0.3s var(--easing);
  }
  .social-row a svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }
  .social-row a:hover { color: var(--bone); border-bottom-color: var(--sand); }

.contact {
  padding: var(--section-pad-y) var(--gutter);
}

.contact-heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin-bottom: 64px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact-heading .accent { font-style: italic; color: var(--clay-soft); }

/* — Form — */
  .enquiry-form {
    background: rgba(237, 231, 221, 0.03);
    border: 1px solid rgba(237, 231, 221, 0.12);
    padding: 48px;
    border-radius: 2px;
    overflow: visible;
  }
  .form-eyebrow {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 18px;
    color: var(--clay-soft);
    margin-bottom: 36px;
    line-height: 1.5;
  }

  .field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .field {
    margin-bottom: 28px;
    position: relative;
  }
  .field.full { grid-column: 1 / -1; }

  .field > label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(237, 231, 221, 0.5);
    margin-bottom: 10px;
  }
  .field input,
  .field textarea,
  .field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(237, 231, 221, 0.2);
    color: var(--bone);
    font-family: var(--body);
    font-size: 15px;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.4s var(--easing);
    font-weight: 400;
  }
  .field textarea {
    resize: vertical;
    min-height: 90px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.5;
  }
  .field select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23EDE7DD' stroke-width='1' fill='none' opacity='0.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
    cursor: pointer;
  }
  .field select option {
    background: var(--ink);
    color: var(--bone);
  }

  /* Custom select — themed dropdown */
  .custom-select {
    position: relative;
  }

  .custom-select.open {
    z-index: 30;
  }

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

  .custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(237, 231, 221, 0.2);
    color: var(--bone);
    font-family: var(--body);
    font-size: 15px;
    font-weight: 400;
    padding: 10px 0;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.4s var(--easing);
  }

  .custom-select.open .custom-select-trigger,
  .custom-select-trigger:focus-visible {
    border-bottom-color: var(--sand);
    outline: none;
  }

  .custom-select-value {
    flex: 1;
    min-width: 0;
  }

  .custom-select-chevron {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23EDE7DD' stroke-width='1' fill='none' opacity='0.55'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s var(--easing);
  }

  .custom-select.open .custom-select-chevron {
    transform: rotate(180deg);
  }

  .custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: var(--ink);
    border: 1px solid rgba(237, 231, 221, 0.18);
    border-radius: 2px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity 0.25s var(--easing),
      visibility 0.25s var(--easing),
      transform 0.25s var(--easing);
  }

  .custom-select.open .custom-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .custom-select-option {
    padding: 11px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(237, 231, 221, 0.88);
    cursor: pointer;
    transition: background 0.2s var(--easing), color 0.2s var(--easing);
  }

  .custom-select-option:hover,
  .custom-select-option:focus {
    background: rgba(237, 231, 221, 0.12);
    color: var(--bone);
    outline: none;
  }

  .custom-select-option.is-selected,
  .custom-select-option[aria-selected="true"] {
    background: rgba(201, 189, 169, 0.22);
    color: var(--bone);
  }
  .field input:focus,
  .field textarea:focus,
  .field select:focus {
    border-bottom-color: var(--sand);
  }
  .field input::placeholder,
  .field textarea::placeholder {
    color: rgba(237, 231, 221, 0.3);
  }

  .submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--bone);
    color: var(--ink);
    border: none;
    padding: 18px 32px;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.4s var(--easing);
    margin-top: 8px;
  }
  .submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
  }
  .submit-btn .arrow {
    font-family: var(--display);
    font-size: 18px;
    transition: transform 0.4s var(--easing);
  }
  .submit-btn:hover {
    background: var(--sand);
    color: var(--ink);
  }
  .submit-btn:hover .arrow { transform: translateX(6px); }

  .required-mark {
    color: var(--sand);
    font-weight: 400;
  }

  .form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .field-error {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    color: #e8b4a8;
    margin-top: 6px;
    letter-spacing: 0.03em;
  }

  .field-error:empty {
    display: none;
  }

  .field.is-invalid input,
  .field.is-invalid textarea,
  .field.is-invalid select,
  .field.is-invalid .custom-select-trigger {
    border-bottom-color: #d4a090;
  }

  .field-consent {
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .consent-panel {
    padding: 20px 22px;
    border: 1px solid rgba(237, 231, 221, 0.12);
    border-radius: 3px;
    background: rgba(237, 231, 221, 0.04);
    transition: border-color 0.35s var(--easing), background 0.35s var(--easing);
  }

  .field-consent.is-invalid .consent-panel {
    border-color: rgba(212, 160, 144, 0.55);
    background: rgba(212, 160, 144, 0.05);
  }

  .consent-label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 0;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    font-size: inherit;
    color: inherit;
  }

  .consent-text {
    font-family: var(--body);
    font-size: 14px;
    line-height: 1.65;
    color: rgba(237, 231, 221, 0.9);
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 400;
  }

  .consent-control {
    position: relative;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .consent-checkbox {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
  }

  .consent-checkbox-ui {
    display: block;
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(237, 231, 221, 0.38);
    border-radius: 2px;
    background: transparent;
    pointer-events: none;
    transition: background 0.25s var(--easing), border-color 0.25s var(--easing);
  }

  .consent-checkbox:checked + .consent-checkbox-ui {
    background: var(--sand);
    border-color: var(--sand);
  }

  .consent-checkbox:checked + .consent-checkbox-ui::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  .consent-checkbox:focus-visible + .consent-checkbox-ui {
    outline: 2px solid var(--sand);
    outline-offset: 2px;
  }

  .consent-text a {
    color: var(--sand);
    font-weight: 500;
    border-bottom: 1px solid rgba(201, 189, 169, 0.4);
    transition: border-color 0.3s var(--easing), color 0.3s var(--easing);
  }

  .consent-text a:hover {
    color: var(--bone);
    border-bottom-color: var(--sand);
  }

  .consent-note {
    margin: 16px 0 0;
    padding: 14px 0 0 32px;
    border-top: 1px solid rgba(237, 231, 221, 0.08);
    font-size: 12px;
    line-height: 1.6;
    color: rgba(237, 231, 221, 0.55);
    letter-spacing: 0.01em;
    text-transform: none;
  }

  /* — Legal modal (lazy-loaded content) — */
  .legal-modal {
    position: fixed;
    inset: 0;
    width: min(720px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    height: fit-content;
    max-height: min(86vh, 820px);
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: var(--bone-soft);
    color: var(--ink);
    box-shadow: 0 24px 80px rgba(31, 27, 22, 0.28);
    overflow: hidden;
  }

  .legal-modal::backdrop {
    background: rgba(31, 27, 22, 0.62);
    backdrop-filter: blur(3px);
  }

  .legal-modal-panel {
    position: relative;
    max-height: min(86vh, 820px);
    overflow: auto;
    --legal-pad-y: clamp(28px, 4.5vw, 40px);
    --legal-pad-x: clamp(20px, 4vw, 40px);
    --legal-gap-section: clamp(16px, 2.5vw, 22px);
    --legal-gap-heading: clamp(8px, 1.2vw, 10px);
    --legal-gap-text: clamp(6px, 1vw, 8px);
    padding: var(--legal-pad-y) var(--legal-pad-x) calc(var(--legal-pad-y) - 6px);
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 106, 79, 0.35) transparent;
  }

  .legal-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin: 0;
    float: none;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: var(--bone-soft);
    color: var(--ink-soft);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s var(--easing);
  }

  .legal-modal-close:hover {
    background: var(--ink);
    color: var(--bone);
    border-color: var(--ink);
  }

  .legal-modal-header {
    max-width: 520px;
    margin: 0 auto clamp(20px, 3.2vw, 28px);
    padding: 0 40px 0 0;
    text-align: center;
  }

  .legal-modal-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: clamp(8px, 1.2vw, 10px);
  }

  .legal-modal-header h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(26px, 3.6vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: clamp(4px, 0.8vw, 6px);
  }

  .legal-modal-meta {
    font-size: clamp(12px, 1.4vw, 13px);
    color: var(--ink-mute);
    margin-bottom: 0;
  }

  .legal-modal-content {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--legal-gap-section);
    text-align: left;
  }

  .legal-modal [data-legal-body] {
    display: contents;
  }

  .legal-modal-content .legal-section {
    margin: 0;
    padding: 0;
  }

  .legal-modal-content h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(17px, 2.2vw, 19px);
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 var(--legal-gap-heading);
    text-align: center;
  }

  .legal-modal-content p,
  .legal-modal-content li {
    font-size: clamp(13.5px, 1.6vw, 15px);
    line-height: 1.68;
    color: var(--ink-soft);
    margin-bottom: var(--legal-gap-text);
  }

  .legal-modal-content p:last-child,
  .legal-modal-content li:last-child {
    margin-bottom: 0;
  }

  .legal-modal-content ul {
    margin: clamp(4px, 0.8vw, 6px) 0 0 1.15em;
    padding: 0;
  }

  .legal-modal-content li + li {
    margin-top: clamp(3px, 0.6vw, 5px);
  }

  .legal-modal-content a {
    color: var(--clay);
    border-bottom: 1px solid rgba(139, 106, 79, 0.25);
  }

  .legal-modal-content a:hover {
    border-bottom-color: var(--clay);
  }

  body.legal-modal-open {
    overflow: hidden;
  }

  .form-status {
    font-size: 13px;
    line-height: 1.5;
    min-height: 1.25em;
    margin: 4px 0 12px;
  }

  .form-status.is-success {
    color: var(--sand);
  }

  .form-status.is-error {
    color: #e8b4a8;
  }

  .form-fallback {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(237, 231, 221, 0.12);
  }

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

  .form-fallback-text {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(237, 231, 221, 0.72);
    margin-bottom: 14px;
  }

  .form-fallback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid var(--sand);
    border-radius: 999px;
    color: var(--bone);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.35s var(--easing);
  }

  .form-fallback-btn:hover {
    background: var(--sand);
    color: var(--ink);
  }

/* — Footer — */
  footer {
    background: var(--ink);
    color: rgba(237, 231, 221, 0.6);
    padding: 60px 48px 36px;
    border-top: 1px solid rgba(237, 231, 221, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 28px 20px;
    font-size: 13px;
  }
  footer .footer-brand-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  footer .brand {
    color: var(--bone);
  }
  footer .brand span.three-sixty { color: var(--clay-soft); }
  footer .footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
  }
  footer .footer-legal a {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(237, 231, 221, 0.62);
    border-bottom: 1px solid transparent;
    transition: color 0.3s var(--easing), border-color 0.3s var(--easing);
  }
  footer .footer-legal a:hover {
    color: var(--bone);
    border-bottom-color: var(--sand);
  }
  footer .footer-legal a[aria-current="page"] {
    color: var(--bone);
    border-bottom-color: var(--sand);
  }
  footer .footer-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    text-align: right;
  }
  footer .legal {
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  footer .credit {
    font-family: var(--display);
    font-style: italic;
    font-size: 13px;
    color: var(--clay-soft);
  }

/* — Reveals — */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s var(--easing), transform 1.1s var(--easing);
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal.delay-1 { transition-delay: 0.1s; }
  .reveal.delay-2 { transition-delay: 0.22s; }
  .reveal.delay-3 { transition-delay: 0.34s; }
  .reveal.delay-4 { transition-delay: 0.46s; }
/* Hero entrance */
  .hero-anim {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 1.4s var(--easing) forwards;
  }
  .hero-anim.d1 { animation-delay: 0.15s; }
  .hero-anim.d2 { animation-delay: 0.35s; }
  .hero-anim.d3 { animation-delay: 0.55s; }
  .hero-anim.d4 { animation-delay: 0.75s; }
  .hero-anim.d5 { animation-delay: 0.95s; }
  .hero-anim.d6 { animation-delay: 1.15s; }

  @keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
  }
