:root {
  --forest: oklch(0.36 0.065 151);
  --forest-hover: oklch(0.42 0.07 151);
  --olive: oklch(0.50 0.055 125);
  --cream: oklch(0.965 0.018 84);
  --cream-deep: oklch(0.935 0.025 84);
  --sand: oklch(0.84 0.055 82);
  --clay: oklch(0.65 0.125 42);
  --charcoal: oklch(0.30 0.018 120);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Plus Jakarta Sans", Arial, sans-serif;
  --font-hand: "Dancing Script", cursive;
  --shell: 1920px;
  --gutter: clamp(1.25rem, 3vw, 3.25rem);
  color-scheme: light;
}

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

html {
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
  background: var(--cream);
}

body {
  min-width: 320px;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--charcoal);
  background: var(--cream);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

button:disabled {
  opacity: 1;
}

button:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 4px;
}

::selection {
  color: var(--cream);
  background: var(--forest);
}

.shape-defs {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding-block: clamp(1.6rem, 3vw, 2.35rem);
}

.header-shell,
.hero-shell {
  width: min(calc(100% - (2 * var(--gutter))), var(--shell));
  margin-inline: auto;
}

.header-shell {
  display: grid;
  grid-template-columns: minmax(15rem, 0.9fr) auto minmax(15rem, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4.5rem);
}

.brand {
  display: inline-flex;
  width: fit-content;
  flex-direction: column;
  color: var(--forest);
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.brand-role {
  margin-top: 0.35rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.preview-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3.6vw, 4rem);
  color: var(--forest);
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.preview-nav span {
  position: relative;
}

.preview-nav span::after {
  position: absolute;
  inset: auto 0 -0.45rem;
  height: 1px;
  content: "";
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-nav span:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta,
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--cream);
  background: var(--forest);
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  cursor: default;
  transition: background-color 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.header-cta:hover,
.hero-cta:hover {
  background: var(--forest-hover);
  transform: translateY(-2px);
}

.header-cta {
  min-height: 3.25rem;
  justify-self: end;
  padding: 0.85rem 1.8rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, oklch(1 0 0 / 0.64), transparent 34%),
    var(--cream);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, var(--cream) 12%, transparent);
}

.ambient {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/balinese-botanical-ambient.jpg");
  background-repeat: no-repeat;
  background-size: auto 100%;
  filter: saturate(0.72) contrast(0.94);
  opacity: 0.58;
  mix-blend-mode: multiply;
}

.ambient-left {
  inset: 5rem auto 0 0;
  width: clamp(22rem, 38vw, 42rem);
  background-position: left center;
  -webkit-mask-image: radial-gradient(ellipse at left 55%, #000 0 42%, transparent 78%);
  mask-image: radial-gradient(ellipse at left 55%, #000 0 42%, transparent 78%);
}

.ambient-right {
  inset: 0 0 auto auto;
  width: clamp(20rem, 34vw, 38rem);
  height: clamp(27rem, 54vw, 46rem);
  background-position: right top;
  -webkit-mask-image: radial-gradient(ellipse at right 24%, #000 0 40%, transparent 78%);
  mask-image: radial-gradient(ellipse at right 24%, #000 0 40%, transparent 78%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding-top: clamp(6.5rem, 7vw, 7.5rem);
  padding-bottom: clamp(1.2rem, 2.2vw, 2rem);
}

.visual-stage {
  position: relative;
  width: min(100%, 120svh);
  height: clamp(29rem, 59svh, 40rem);
  flex: 0 0 auto;
  margin-inline: auto;
}

.photo-shape {
  position: absolute;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: 0 6px 8px oklch(0.25 0.02 110 / 0.08);
}

.photo-shape img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.96) sepia(0.06);
}

.photo-shape::after {
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  content: "";
  background: linear-gradient(0deg, var(--cream), transparent);
}

.photo-main {
  inset: 0 auto auto 50%;
  z-index: 1;
  width: 53%;
  height: 91.25%;
  border-radius: 50% 50% 2rem 2rem / 42% 42% 2rem 2rem;
  transform: translateX(-50%);
  overflow: visible;
  box-shadow: none;
}

.photo-main img {
  border-radius: inherit;
  object-position: center 54%;
}

.photo-main::after {
  bottom: -1px;
  height: 22%;
  border-radius: inherit;
}

.arch-frame {
  position: absolute;
  top: -1.15rem;
  left: 50%;
  z-index: 0;
  width: calc(53% + 2.3rem);
  height: calc(91.25% + 2.3rem);
  border: 1px solid oklch(0.36 0.065 151 / 0.42);
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 38%,
    rgb(0 0 0 / 0.78) 47%,
    rgb(0 0 0 / 0.28) 56%,
    transparent 64%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 38%,
    rgb(0 0 0 / 0.78) 47%,
    rgb(0 0 0 / 0.28) 56%,
    transparent 64%
  );
}

.photo-left {
  top: 25.8%;
  left: 0;
  width: 21.4%;
  height: 72.8%;
  clip-path: url("#photo-left-mask");
}

.photo-left img {
  object-position: 64% center;
  transform: scale(1.36);
}

.photo-right {
  top: 24.6%;
  right: 0;
  width: 21.7%;
  height: 58.2%;
  clip-path: url("#photo-right-mask");
}

.photo-right img {
  object-position: center;
}

.seal {
  position: absolute;
  top: 10%;
  left: 9.5%;
  z-index: 4;
  display: grid;
  width: 9.2rem;
  aspect-ratio: 1;
  place-content: center;
  color: var(--forest);
  background: var(--cream);
  border: 0;
  border-radius: 50%;
  text-align: center;
}

.seal svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.seal text {
  fill: var(--forest);
  font-family: var(--font-body);
  font-size: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.seal-palm {
  fill: none;
  stroke: var(--forest);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
}

.botanical-detail {
  position: absolute;
  right: 10.5%;
  bottom: 0.5%;
  z-index: 4;
  width: clamp(7rem, 10vw, 10rem);
  height: auto;
  overflow: visible;
  color: var(--clay);
  pointer-events: none;
}

.botanical-detail path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.place-note {
  position: absolute;
  right: 11.8%;
  bottom: 8.8%;
  z-index: 5;
  display: flex;
  width: 12.4rem;
  min-height: 9.6rem;
  flex-direction: column;
  justify-content: center;
  padding: 1.45rem 1.6rem;
  color: var(--forest);
  background: oklch(0.965 0.018 84 / 0.97);
  border: 1px solid var(--sand);
}

.place-note strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}

.place-note em {
  margin-top: 0.35rem;
  color: var(--clay);
  font-family: var(--font-display);
  font-size: 1rem;
}

.place-note > span {
  width: 3.5rem;
  height: 1px;
  margin-block: 0.8rem;
  background: var(--sand);
}

.place-note small {
  color: var(--clay);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 6;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-direction: column;
  margin-top: clamp(-3.6rem, -3.3vw, -2.5rem);
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(3.35rem, 5.4vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-wrap: balance;
}

.hero-copy h1 span,
.hero-copy h1 em {
  display: block;
}

.hero-copy h1 span {
  text-transform: uppercase;
}

.hero-copy h1 em {
  margin-top: 0.18em;
  color: var(--clay);
  font-size: 0.84em;
  font-weight: 400;
}

.title-ornament {
  display: flex;
  width: min(26rem, 54vw);
  align-items: center;
  gap: 0.8rem;
  margin-block: 1.3rem 0.85rem;
  color: var(--sand);
}

.title-ornament i {
  height: 1px;
  flex: 1;
  background: currentColor;
}

.title-ornament span {
  font-size: 0.52rem;
}

.hero-copy p {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(0.86rem, 1.2vw, 1rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-cta {
  min-width: min(22rem, 82vw);
  min-height: 3.4rem;
  margin-top: 1.1rem;
  padding: 0.8rem 1.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-foot {
  position: relative;
  z-index: 6;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  margin-top: auto;
  padding-top: 1.3rem;
}

.hero-foot blockquote {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 0 clamp(0rem, 1.3vw, 1.25rem);
  color: var(--olive);
}

.hero-foot blockquote > span {
  color: var(--clay);
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0.9;
}

.hero-foot blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  font-style: italic;
  line-height: 1.45;
}

.tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.tags span {
  min-width: 5.1rem;
  padding: 0.34rem 1rem;
  color: var(--forest);
  border: 1px solid oklch(0.50 0.055 125 / 0.42);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.tags i {
  width: 0.2rem;
  aspect-ratio: 1;
  background: var(--olive);
  border-radius: 50%;
  opacity: 0.7;
}

.signature {
  display: flex;
  align-items: flex-end;
  justify-self: end;
  flex-direction: column;
  margin-right: clamp(0rem, 7vw, 7rem);
  color: var(--clay);
}

.signature strong {
  font-family: var(--font-hand);
  font-size: clamp(2.7rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 0.85;
}

.signature span {
  margin-top: 0.65rem;
  color: var(--olive);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

@media (min-width: 901px) {
  .visual-stage {
    width: 96%;
    height: clamp(29rem, 44vw, 53rem);
  }

  .hero-foot {
    margin-top: clamp(2rem, 3vw, 3rem);
    padding-top: 0;
  }

  .tags {
    transform: none;
  }

  .title-ornament {
    margin-block: 1.9rem 1.15rem;
  }

  .hero-copy p {
    line-height: 1.72;
  }

  .hero-cta {
    margin-top: 1.7rem;
  }
}

@media (max-width: 1200px) {
  .header-shell {
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
  }

  .preview-nav {
    gap: 1.6rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-block: 1.35rem;
  }

  .header-shell {
    grid-template-columns: 1fr auto;
  }

  .preview-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.25rem;
    border-top: 1px solid oklch(0.50 0.055 125 / 0.2);
  }

  .hero-shell {
    padding-top: 9.75rem;
  }

  .visual-stage {
    height: clamp(27rem, 65vw, 36rem);
  }

  .photo-main {
    width: 68vw;
    height: 61vw;
    max-height: 34rem;
    transform: translateX(-50%);
  }

  .arch-frame {
    display: none;
  }

  .photo-left {
    top: 9rem;
    left: -3%;
    width: 27vw;
    height: 36vw;
  }

  .photo-right {
    top: 8.2rem;
    right: -2%;
    width: 25vw;
    height: 35vw;
  }

  .seal {
    top: 3.8rem;
    left: 1%;
    transform: scale(0.72);
  }

  .place-note {
    right: 5%;
    bottom: 4.5rem;
    transform: scale(0.78);
    transform-origin: right bottom;
  }

  .hero-copy {
    margin-top: -3.8rem;
  }

  .hero-foot {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 1.8rem;
  }

  .signature {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 1rem;
  }

  .site-header {
    padding-top: max(0.9rem, env(safe-area-inset-top));
    padding-bottom: 1rem;
    background: linear-gradient(180deg, var(--cream) 0 78%, transparent);
  }

  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .ambient {
    opacity: 0.22;
  }

  .ambient-left {
    inset: 7.5rem auto auto -2rem;
    width: 58vw;
    height: 32rem;
  }

  .ambient-right {
    width: 52vw;
    height: 25rem;
  }

  .botanical-detail {
    display: none;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-role {
    margin-top: 0.3rem;
    font-size: 0.5rem;
    letter-spacing: 0.28em;
  }

  .preview-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.65rem 0.85rem 0.65rem 1rem;
    color: var(--forest);
    background: oklch(0.965 0.018 84 / 0.76);
    border: 1px solid oklch(0.36 0.065 151 / 0.28);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-menu i {
    display: grid;
    width: 1rem;
    gap: 0.27rem;
  }

  .mobile-menu b {
    display: block;
    height: 1px;
    background: currentColor;
  }

  .mobile-menu b:last-child {
    width: 0.68rem;
    justify-self: end;
  }

  .hero-shell {
    min-height: 100svh;
    padding-top: 6.5rem;
    padding-bottom: 1.1rem;
  }

  .visual-stage {
    height: clamp(22.5rem, 104vw, 27rem);
  }

  .photo-main {
    width: 75vw;
    height: 88vw;
    max-height: 25rem;
    border-radius: 50% 50% 1rem 1rem / 36% 36% 1rem 1rem;
  }

  .photo-main::before {
    inset: -0.6rem;
  }

  .photo-left {
    top: 7.5rem;
    left: -7%;
    width: 34vw;
    height: 48vw;
  }

  .photo-right {
    top: 6.8rem;
    right: -1%;
    width: 31vw;
    height: 48vw;
  }

  .seal {
    top: 2.8rem;
    left: -4%;
    width: 6.6rem;
    transform: scale(0.7);
  }

  .place-note {
    right: 8%;
    bottom: 4rem;
    width: 4.5rem;
    min-height: 3.6rem;
    padding: 0.4rem 0.45rem;
    transform: none;
  }

  .hero-copy {
    margin-top: -2rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 8.8vw, 2.35rem);
    letter-spacing: -0.025em;
    line-height: 0.94;
  }

  .hero-copy h1 span {
    max-width: none;
    white-space: nowrap;
  }

  .hero-copy h1 em {
    max-width: none;
    white-space: nowrap;
  }

  .place-note strong {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .place-note em {
    margin-top: 0.12rem;
    font-size: 0.58rem;
    line-height: 1;
    white-space: nowrap;
  }

  .place-note > span {
    width: 1.6rem;
    margin-block: 0.35rem;
  }

  .place-note small {
    font-size: 0.36rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .title-ornament {
    width: 70vw;
    margin-block: 1rem 0.7rem;
  }

  .hero-copy p {
    max-width: 33ch;
    font-size: 0.76rem;
  }

  .hero-copy p br {
    display: none;
  }

  .hero-cta {
    min-height: 3rem;
    margin-top: 0.9rem;
    font-size: 0.62rem;
  }

  .hero-foot {
    margin-top: 0;
    padding-top: 1.5rem;
  }

  .tags {
    width: 100%;
    gap: 0.45rem;
  }

  .tags span {
    min-width: 0;
    flex: 1;
    padding-inline: 0.35rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .tags i {
    display: none;
  }
}

@media (max-width: 420px) {
  .header-shell {
    gap: 0.75rem;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .mobile-menu {
    min-height: 2.6rem;
    padding-inline: 0.85rem 0.75rem;
  }

  .visual-stage {
    height: 22rem;
  }

  .seal {
    display: none;
  }

  .place-note {
    bottom: 3.8rem;
  }

  .hero-copy {
    margin-top: -1.15rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.8rem, 8.8vw, 2.2rem);
  }
}

@media (min-width: 901px) and (max-height: 840px) {
  .site-header {
    padding-block: 1.35rem;
  }

  .hero-shell {
    padding-top: 5.2rem;
  }

  .seal {
    top: 21%;
    transform: scale(0.68);
    transform-origin: center;
  }

  .place-note {
    bottom: 12%;
    transform: scale(0.72);
    transform-origin: right bottom;
  }

  .hero-copy {
    margin-top: -3.6rem;
  }

  .hero-copy h1 {
    font-size: 3.5rem;
  }

  .hero-foot {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding-top: 0;
  }

  .hero-foot blockquote {
    display: flex;
  }

  .hero-foot .signature {
    display: flex;
  }

  .hero-foot blockquote p {
    font-size: 0.9rem;
  }

  .signature strong {
    font-size: 2.5rem;
  }
}

@media (min-width: 901px) and (max-width: 1099px) and (max-height: 840px) {
  .place-note {
    right: 7%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .photo-main {
    animation: hero-main-in 900ms 80ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .photo-left,
  .photo-right {
    animation: hero-side-in 850ms 220ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero-copy {
    animation: hero-copy-in 720ms 420ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .place-note,
  .seal,
  .hero-foot {
    animation: hero-detail-in 620ms 600ms both ease-out;
  }
}

@keyframes hero-main-in {
  from {
    opacity: 0.35;
    clip-path: inset(0 0 100% 0 round 50% 50% 2rem 2rem);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 50% 50% 2rem 2rem);
  }
}

@keyframes hero-side-in {
  from {
    opacity: 0.35;
    transform: translateY(1.5rem);
  }
}

@keyframes hero-copy-in {
  from {
    opacity: 0.35;
    transform: translateY(1.25rem);
  }
}

@keyframes hero-detail-in {
  from {
    opacity: 0.2;
  }
}

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