:root {
  --paper: #f5efe9;
  --ink: #11100f;
  --muted: #6f675f;
  --champagne: #b69a82;
  --line: rgba(163, 132, 106, 0.46);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; }

.page-shell {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 58.5%) minmax(0, 41.5%);
  overflow: hidden;
  background:
    radial-gradient(circle at 27% 12%, rgba(255,255,255,.92), transparent 31%),
    linear-gradient(110deg, #f7f2ed 0%, #f4eee8 61%, #eee4db 100%);
}

.content-panel {
  position: relative;
  z-index: 2;
  min-height: 0;
  height: 100%;
  padding: clamp(24px, 4vh, 48px) clamp(30px, 5vw, 82px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

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

.content-panel::before {
  opacity: .36;
  background:
    linear-gradient(17deg, transparent 0 46%, rgba(255,255,255,.42) 48%, transparent 55%),
    radial-gradient(ellipse at 62% 4%, rgba(255,255,255,.6), transparent 34%);
}

.content-panel::after {
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.brand-row {
  width: min(100%, 420px);
  margin: 0 auto clamp(22px, 3.6vh, 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 2vw, 24px);
}

.brand-row::before,
.brand-row::after {
  content: "";
  flex: 1 1 42px;
  max-width: 42px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(143, 115, 95, .55));
}

.brand-row::after { transform: scaleX(-1); }

.brand {
  display: inline-block;
  text-decoration: none;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(30px, min(3vw, 5vh), 45px);
  letter-spacing: .3em;
  line-height: 1;
  font-weight: 400;
  text-indent: .3em;
  color: #24201d;
}

.copy-wrap {
  width: min(100%, 700px);
  margin: 0;
  padding: 0;
  text-align: center;
}

.ornament {
  position: relative;
  width: 22px;
  height: clamp(34px, 5vh, 48px);
  margin: 0 auto clamp(10px, 1.8vh, 18px);
}

.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 14px;
  background: var(--champagne);
  transform-origin: 50% 7px;
}

.ornament::after { transform: rotate(90deg); }

.ornament span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--champagne);
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(245,239,233,.85);
}

.ornament span::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 1px;
  height: clamp(21px, 3.2vh, 31px);
  background: linear-gradient(to bottom, var(--champagne), transparent);
  transform: translateX(-50%) rotate(-45deg);
  transform-origin: top;
}

.eyebrow {
  margin: 0 0 clamp(14px, 2.4vh, 24px);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: clamp(10px, min(.82vw, 1.7vh), 13px);
  font-weight: 500;
  color: #8f7765;
}

.headline {
  margin: 0;
  font-family: "Italiana", "Bodoni 72", Didot, "Times New Roman", serif;
  font-weight: 400;
  line-height: .93;
  text-wrap: balance;
}

.headline span,
.headline em { display: block; }

.headline span {
  font-size: clamp(52px, min(5.45vw, 9.5vh), 86px);
  letter-spacing: -.035em;
}

.headline em {
  margin-top: .08em;
  font-size: clamp(52px, min(5.2vw, 9.2vh), 84px);
  font-style: italic;
  color: var(--champagne);
  letter-spacing: -.035em;
}

.rule {
  width: 66px;
  height: 1px;
  margin: clamp(22px, 3.7vh, 36px) auto clamp(16px, 2.5vh, 24px);
  background: var(--line);
}

.intro {
  margin: 0 auto;
  max-width: 610px;
  color: #59534d;
  font-size: clamp(13px, min(1.05vw, 2vh), 17px);
  line-height: 1.55;
  letter-spacing: .035em;
  font-weight: 300;
  text-wrap: pretty;
}

.contact-block {
  margin-top: clamp(28px, 5vh, 48px);
  display: grid;
  justify-items: center;
  gap: clamp(10px, 1.8vh, 16px);
}

.sun-mark {
  position: relative;
  width: clamp(34px, 4.5vh, 42px);
  height: clamp(34px, 4.5vh, 42px);
}

.sun-mark::before,
.sun-mark::after,
.sun-mark span {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0 10%, #b89b82 11% 35%, transparent 36% 64%, #b89b82 65% 89%, transparent 90%);
  transform-origin: center;
}

.sun-mark::after { transform: translate(-50%, -50%) rotate(22.5deg); }
.sun-mark::before { transform: translate(-50%, -50%); }
.sun-mark span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.sun-mark span:nth-child(2) { transform: translate(-50%, -50%) rotate(67.5deg); }
.sun-mark span:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); }
.sun-mark span:nth-child(4) { transform: translate(-50%, -50%) rotate(112.5deg); }
.sun-mark span:nth-child(5) { transform: translate(-50%, -50%) rotate(135deg); }
.sun-mark span:nth-child(6) { transform: translate(-50%, -50%) rotate(157.5deg); }
.sun-mark span:nth-child(7) { display: none; }
.sun-mark span:nth-child(8) { display: none; }

.sun-mark i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 1px solid #b89b82;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(245,239,233,.75);
}

.email {
  text-decoration: none;
  font-family: "Italiana", "Bodoni 72", Didot, "Times New Roman", serif;
  font-size: clamp(22px, min(1.9vw, 3.5vh), 30px);
  line-height: 1;
  transition: color .25s ease, opacity .25s ease;
}

.email:hover { color: #8f735f; }
.email:focus-visible { outline: 1px solid #9f826c; outline-offset: 6px; }

.visual-panel {
  position: relative;
  min-height: 0;
  height: 100%;
  background-image: url("./assets/hero.webp");
  background-size: cover;
  background-position: center;
  box-shadow: -35px 0 55px rgba(117, 92, 74, .06);
  overflow: hidden;
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(245,239,233,.12), transparent 20%),
    linear-gradient(to top, rgba(111,87,68,.08), transparent 26%);
}

.visual-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  top: -22vw;
  left: -21vw;
  background: rgba(255,255,255,.16);
  filter: blur(50px);
  pointer-events: none;
}

@media (max-width: 980px) {
  .page-shell {
    position: relative;
    display: block;
  }

  .content-panel {
    height: 100%;
    padding:
      max(20px, env(safe-area-inset-top))
      clamp(20px, 6vw, 52px)
      max(18px, env(safe-area-inset-bottom));
  }

  .content-panel::before {
    opacity: 1;
    background:
      radial-gradient(ellipse at 50% 43%, rgba(249,245,241,.99) 0 34%, rgba(247,241,235,.93) 58%, rgba(242,231,222,.56) 100%),
      linear-gradient(to bottom, rgba(250,247,244,.9), rgba(240,225,214,.42));
  }

  .copy-wrap {
    width: min(100%, 620px);
    padding: 0;
  }

  .visual-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    background-position: 61% center;
    box-shadow: none;
    filter: saturate(.82) contrast(.94);
  }
}

@media (max-width: 620px) {
  .brand-row {
    width: min(100%, 330px);
    margin-bottom: clamp(15px, 3.1vh, 24px);
    gap: 14px;
  }

  .brand-row::before,
  .brand-row::after { max-width: 30px; }

  .brand { font-size: clamp(27px, 8vw, 34px); }

  .ornament {
    height: clamp(28px, 4.6vh, 38px);
    margin-bottom: clamp(8px, 1.5vh, 12px);
  }

  .eyebrow {
    margin-bottom: clamp(10px, 2vh, 16px);
    font-size: clamp(9px, 2.6vw, 11px);
  }

  .desktop-break { display: none; }
  .headline span,
  .headline em { font-size: clamp(39px, 12.3vw, 54px); }

  .headline span {
    width: min(100%, 9ch);
    margin-inline: auto;
  }

  .rule {
    width: 48px;
    margin: clamp(15px, 2.8vh, 23px) auto clamp(11px, 2vh, 16px);
  }

  .intro {
    max-width: 34ch;
    font-size: clamp(11px, 3.25vw, 13px);
    line-height: 1.48;
  }

  .contact-block { margin-top: clamp(18px, 3.6vh, 30px); }

  .sun-mark {
    width: clamp(27px, 4.5vh, 34px);
    height: clamp(27px, 4.5vh, 34px);
  }

  .email { font-size: clamp(20px, 6vw, 25px); }
  .visual-panel { background-position: 65% center; }
}

@media (max-height: 680px) {
  .brand-row { margin-bottom: 14px; }
  .ornament { height: 26px; margin-bottom: 7px; }
  .eyebrow { margin-bottom: 9px; }
  .rule { margin-top: 14px; margin-bottom: 10px; }
  .contact-block { margin-top: 15px; gap: 7px; }
  .sun-mark { width: 26px; height: 26px; }
}

@media (max-width: 980px) and (max-height: 520px) {
  .brand-row { margin-bottom: 9px; }
  .brand { font-size: clamp(23px, 6.5vh, 29px); }
  .ornament { display: none; }
  .eyebrow { margin-bottom: 7px; font-size: 9px; }
  .headline span,
  .headline em { font-size: clamp(30px, 10.5vh, 44px); }
  .headline span { width: auto; }
  .rule { margin: 10px auto 8px; }
  .intro { max-width: 50ch; font-size: 10px; line-height: 1.35; }
  .contact-block { margin-top: 10px; grid-auto-flow: column; align-items: center; justify-content: center; }
  .sun-mark { width: 22px; height: 22px; }
  .email { font-size: 19px; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand,
  .eyebrow,
  .headline,
  .intro,
  .contact-block {
    animation: reveal .85s cubic-bezier(.22,.65,.3,1) both;
  }

  .eyebrow { animation-delay: .06s; }
  .headline { animation-delay: .12s; }
  .intro { animation-delay: .2s; }
  .contact-block { animation-delay: .28s; }
  .visual-panel { animation: visualIn 1.05s cubic-bezier(.22,.65,.3,1) both; }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes visualIn {
    from { opacity: .4; transform: scale(1.015); }
    to { opacity: 1; transform: scale(1); }
  }
}
