:root {
  --cream: #f3eadc;
  --cream-bright: #fffaf2;
  --forest: #0f352a;
  --forest-2: #163f32;
  --forest-soft: rgba(15, 53, 42, 0.1);
  --gold: #c9a35f;
  --gold-bright: #e2c889;
  --ink: #201a16;
  --muted: rgba(32, 26, 22, 0.7);
  --line: rgba(32, 26, 22, 0.14);
  --line-light: rgba(255, 250, 242, 0.2);
  --page-max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(32, 26, 22, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #f8f1e8 0%, var(--cream) 42%, #fffaf4 100%);
  background-size: 100% 8px, 100% 100%;
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(201, 163, 95, 0.34);
}

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

a {
  color: inherit;
  text-decoration: none;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  isolation: isolate;
  overflow: clip;
  color: var(--cream-bright);
  background: var(--forest);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 35, 27, 0.96) 0%, rgba(9, 35, 27, 0.82) 42%, rgba(9, 35, 27, 0.38) 100%),
    linear-gradient(180deg, rgba(9, 35, 27, 0.24) 0%, rgba(9, 35, 27, 0.84) 100%);
}

.hero::after {
  inset: 0;
  opacity: 0.18;
  background:
    linear-gradient(135deg, transparent 0 17px, rgba(226, 200, 137, 0.2) 18px, transparent 19px),
    linear-gradient(45deg, transparent 0 24px, rgba(226, 200, 137, 0.12) 25px, transparent 26px);
  background-size: 72px 72px, 96px 96px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.02);
  animation: hero-settle 1400ms ease-out both;
}

.hero-inner {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(1.4rem, 4vw, 3rem);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(2.1rem, 7vw, 5rem);
  color: var(--gold-bright);
  animation: rise-in 650ms ease-out both;
}

.brand-mark {
  width: 3.15rem;
  height: 3.55rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("/ai2/1775811490840.svg") center / contain no-repeat;
  mask: url("/ai2/1775811490840.svg") center / contain no-repeat;
}

.brand-word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nameplate {
  max-width: 42rem;
  animation: rise-in 720ms 80ms ease-out both;
}

.kicker,
.eyebrow,
.route-label,
.contact-term {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.kicker,
.eyebrow {
  color: var(--gold-bright);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.95;
}

h1 {
  margin-top: 0.75rem;
  color: #fff7ea;
  font-size: clamp(4.2rem, 12vw, 10rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role {
  margin-top: 1rem;
  color: var(--gold-bright);
  font-size: clamp(0.92rem, 1.8vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro {
  max-width: 34rem;
  margin-top: 1.15rem;
  color: rgba(255, 250, 242, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.62;
}

.primary-actions,
.closing-actions,
.secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.primary-actions {
  margin-top: 2rem;
  animation: rise-in 780ms 160ms ease-out both;
}

.button,
.secondary-actions a,
.route-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button {
  padding: 0.95rem 1.15rem;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--gold-bright);
  color: #132c25;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.button-light {
  background: rgba(255, 250, 242, 0.94);
  color: var(--forest);
}

.button-ghost {
  border-color: rgba(255, 250, 242, 0.34);
  color: #fffaf2;
  background: rgba(255, 250, 242, 0.06);
}

.button:hover,
.button:focus-visible,
.secondary-actions a:hover,
.secondary-actions a:focus-visible,
.route-item a:hover,
.route-item a:focus-visible {
  transform: translateY(-2px);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #f0dca6;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(255, 250, 242, 0.6);
  background: rgba(255, 250, 242, 0.12);
}

.contact-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 58rem;
  margin-top: clamp(2.4rem, 7vw, 5.2rem);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  animation: rise-in 820ms 240ms ease-out both;
}

.contact-lines div {
  min-width: 0;
  padding: 1.1rem 1.15rem 1.05rem 0;
}

.contact-lines div + div {
  padding-left: 1.15rem;
  border-left: 1px solid var(--line-light);
}

.contact-term {
  color: rgba(226, 200, 137, 0.88);
}

.contact-value {
  margin-top: 0.45rem;
  color: rgba(255, 250, 242, 0.9);
  font-size: clamp(0.92rem, 1.7vw, 1.02rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.section {
  width: min(calc(100% - 2rem), var(--page-max));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-heading {
  max-width: 38rem;
}

.section-heading h2,
.residence-copy h2,
.closing h2 {
  margin-top: 0.55rem;
  color: var(--forest);
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.routes {
  display: grid;
  grid-template-columns: minmax(14rem, 0.78fr) minmax(20rem, 1.22fr);
  gap: clamp(2.4rem, 7vw, 5.6rem);
  align-items: start;
}

.route-list {
  border-top: 1px solid var(--line);
}

.route-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
}

.route-label {
  color: var(--gold);
}

.route-item h3 {
  margin-top: 0.45rem;
  color: var(--forest);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.18;
}

.route-item p:not(.route-label) {
  max-width: 36rem;
  margin-top: 0.5rem;
  color: var(--muted);
  line-height: 1.65;
}

.route-item a {
  min-width: 7.1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(15, 53, 42, 0.22);
  color: var(--forest);
  background: rgba(255, 250, 242, 0.58);
}

.route-item a:hover,
.route-item a:focus-visible {
  border-color: var(--gold);
  background: var(--forest);
  color: var(--cream-bright);
}

.residence {
  display: grid;
  grid-template-columns: minmax(18rem, 0.86fr) minmax(20rem, 1.14fr);
  gap: clamp(2.5rem, 7vw, 5.8rem);
  align-items: center;
  border-top: 1px solid var(--line);
}

.residence-copy {
  max-width: 34rem;
}

.residence-copy p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.secondary-actions {
  margin-top: 1.5rem;
}

.secondary-actions a {
  min-height: 2.85rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(15, 53, 42, 0.18);
  background: rgba(255, 250, 242, 0.64);
  color: var(--forest);
}

.secondary-actions a:hover,
.secondary-actions a:focus-visible {
  background: var(--forest);
  color: var(--cream-bright);
}

.photo-stack {
  position: relative;
  min-height: clamp(28rem, 46vw, 39rem);
}

.photo-stack img {
  position: absolute;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(32, 26, 22, 0.18);
}

.photo-main {
  inset: 0 auto auto 0;
  width: min(66%, 27rem);
  height: min(100%, 38rem);
}

.photo-side {
  right: 0;
  bottom: 0;
  width: min(54%, 24rem);
  height: clamp(15rem, 27vw, 23rem);
  border: 8px solid var(--cream);
}

.closing {
  margin-top: clamp(1rem, 2vw, 2rem);
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  color: var(--cream-bright);
  background:
    linear-gradient(135deg, rgba(226, 200, 137, 0.14) 0 1px, transparent 1px 22px),
    var(--forest);
  background-size: 44px 44px, 100% 100%;
}

.closing h2 {
  max-width: 52rem;
  margin-right: auto;
  margin-left: auto;
  color: var(--cream-bright);
}

.closing-actions {
  justify-content: center;
  margin-top: 1.7rem;
}

.mobile-action-bar {
  display: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 860px) {
  body {
    padding-bottom: 4.25rem;
  }

  .hero {
    min-height: 91svh;
    align-items: end;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(9, 35, 27, 0.84) 0%, rgba(9, 35, 27, 0.62) 36%, rgba(9, 35, 27, 0.95) 100%);
  }

  .hero-media img {
    object-position: center top;
  }

  .brand-lockup {
    margin-bottom: clamp(4.5rem, 26svh, 8rem);
  }

  .brand-mark {
    width: 2.5rem;
    height: 2.85rem;
  }

  .brand-word {
    font-size: 1.08rem;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .role {
    font-size: 0.78rem;
  }

  .primary-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-lines {
    grid-template-columns: 1fr;
  }

  .contact-lines div {
    padding: 0.95rem 0;
  }

  .contact-lines div + div {
    padding-left: 0;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .routes,
  .residence {
    grid-template-columns: 1fr;
  }

  .route-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .route-item a {
    width: 100%;
  }

  .photo-stack {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .photo-stack img {
    position: static;
    width: 100%;
    height: auto;
    max-height: 28rem;
  }

  .photo-side {
    border: 0;
  }

  .mobile-action-bar {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 250, 242, 0.18);
    border-radius: 8px;
    background: rgba(15, 53, 42, 0.9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
  }

  .mobile-action-bar a {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    color: var(--cream-bright);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-action-bar a + a {
    border-left: 1px solid rgba(255, 250, 242, 0.16);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem;
  }

  .intro {
    font-size: 1rem;
  }

  .button,
  .secondary-actions a,
  .route-item a {
    width: 100%;
  }

  .section {
    width: min(calc(100% - 1.5rem), var(--page-max));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
