* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F4F1;
  --bg-soft: rgba(247,244,241,0.92);
  --panel: rgba(255,255,255,0.52);
  --line: #D8D1CB;
  --text: #111111;
  --text-soft: #2B2B2B;
  --muted: #6E655F;
  --muted-2: #7A6F69;
  --accent: #A32024;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  padding: 40px 24px;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  will-change: transform;
}

.orb-one {
  left: 50%;
  top: 14%;
  width: 28rem;
  height: 28rem;
  transform: translateX(-50%);
  background: rgba(163,32,36,0.05);
  animation: floatOne 10s ease-in-out infinite;
}

.orb-two {
  left: 12%;
  top: 16%;
  width: 9rem;
  height: 9rem;
  background: #E9E4E0;
  animation: floatTwo 11s ease-in-out infinite;
}

.orb-three {
  right: 12%;
  bottom: 10%;
  width: 11rem;
  height: 11rem;
  background: rgba(216,209,203,0.7);
  animation: floatThree 12s ease-in-out infinite;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.shell {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 40px;
  background: var(--bg-soft);
  box-shadow: 0 22px 60px rgba(17,17,17,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px;
  animation: shellReveal 0.95s cubic-bezier(0.22,1,0.36,1) both;
}

.shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(247,244,241,0.2), rgba(163,32,36,0.03));
  pointer-events: none;
}

.shell::after {
  content: '';
  position: absolute;
  top: -120%;
  left: -40%;
  width: 70%;
  height: 300%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  animation: shellSheen 7.5s ease-in-out 1.4s infinite;
  pointer-events: none;
}

.inner {
  position: relative;
  padding: 44px 28px 40px;
  border-radius: 30px;
  background: rgba(255,255,255,0.35);
  z-index: 1;
}

.hero {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.8s ease 0.05s both;
}

.logo-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto 30px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), filter 0.35s ease;
}

.logo-link:hover {
  transform: translateY(-2px) scale(1.025);
  filter: drop-shadow(0 12px 18px rgba(17,17,17,0.06));
}

.logo-link:active {
  transform: translateY(0) scale(0.985);
}

.logo-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(163,32,36,0.12);
}

.logo-shine {
  position: absolute;
  inset: -10px -18px;
  overflow: hidden;
  border-radius: 999px;
  pointer-events: none;
}

.logo-shine::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -65%;
  width: 42%;
  height: 180%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  opacity: 0;
}

.logo-link:hover .logo-shine::after {
  animation: logoShine 0.95s ease;
}

.logo-glow {
  position: absolute;
  inset: -8px;
  z-index: -1;
  filter: blur(26px);
  background: radial-gradient(circle, rgba(163,32,36,0.12), rgba(163,32,36,0.03) 44%, rgba(163,32,36,0) 72%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.logo-link:hover .logo-glow {
  opacity: 1;
  transform: scale(1.16);
}

.logo {
  height: 42px;
  width: auto;
  display: block;
  user-select: none;
  animation: logoIn 0.8s cubic-bezier(0.22,1,0.36,1) 0.05s both, logoFloat 6s ease-in-out 1s infinite;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 30px;
}

/* Live handwritten Welcome animation */
.welcome-holder {
  position: relative;
  width: 100%;
  overflow: visible;
  text-align: center;
  padding: 10px 18px 18px;
  margin: 0 auto;
}

.welcome-holder::after {
  content: '';
  position: absolute;
  inset: -20px -50px -18px;
  z-index: -1;
  filter: blur(30px);
  background: radial-gradient(circle, rgba(163,32,36,0.13) 0%, rgba(163,32,36,0.05) 42%, rgba(163,32,36,0) 72%);
  animation: softBreath 4.5s ease-in-out 1s infinite;
  pointer-events: none;
}

.welcome-svg {
  display: block;
  width: min(640px, 100%);
  height: auto;
  margin: 0 auto;
  overflow: visible;
  filter: drop-shadow(0 10px 22px rgba(163,32,36,0.055));
}

.welcome-stroke,
.welcome-fill {
  font-family: 'Homemade Apple', cursive;
  font-size: 82px;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0.01em;
}

.welcome-stroke {
  fill: none;
  stroke: url(#welcomeInk);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.welcome-fill {
  fill: url(#welcomeInk);
  fill-opacity: 0;
}

.welcome-holder.is-visible .welcome-stroke {
  animation: liveWriteWelcome 2.35s cubic-bezier(0.65, 0, 0.35, 1) 0.18s forwards;
}

.welcome-holder.is-visible .welcome-fill {
  animation: welcomeFillIn 2.6s ease 0.18s forwards, welcomeFloatSvg 6.5s ease-in-out 2.9s infinite;
}

.welcome-holder.is-visible .welcome-svg {
  animation: welcomeSvgSettle 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.welcome-holder::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: min(420px, 70%);
  height: 1px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(163,32,36,0.28), transparent);
  pointer-events: none;
}

.welcome-holder.is-visible::before {
  animation: welcomeLine 1.1s ease 2.15s forwards;
}

.message {
  margin: 30px auto 0;
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.message p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--text-soft);
}


.signature {
  margin-top: 10px;
  color: #5E5651;
  font-family: 'Cormorant Garamond', serif;
}

.signature .name {
  font-family: 'Homemade Apple', cursive;
  font-size: 30px;
  line-height: 1.45;
  padding-top: 5px;
}

.signature .site {
  margin-top: 4px;
  font-size: 18px;
  font-family: 'Cormorant Garamond', serif;
}

.board-area {
  margin: 56px auto 0;
  padding: 0 18px;
  animation: fadeUp 0.85s ease 0.25s both;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.board-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  color: #1A1A1A;
}

.board-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(17,17,17,0.04);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  opacity: 1;
  will-change: transform;
}


.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.18), rgba(163,32,36,0.02));
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(163,32,36,0.04);
  filter: blur(26px);
  transition: background 0.3s ease, transform 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #CBBDB5;
  background-color: rgba(255,255,255,0.62);
  box-shadow: 0 18px 40px rgba(17,17,17,0.07);
}

.card:hover::after {
  background: rgba(163,32,36,0.07);
  transform: scale(1.12);
}

.card-inner {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(216,209,203,0.78);
  border-radius: 16px;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(247,244,241,0.58));
  box-shadow: 0 10px 22px rgba(17,17,17,0.035);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, background-color 0.3s ease;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.65;
}

.card:hover .card-icon {
  transform: translateY(-2px);
  border-color: rgba(163,32,36,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(247,244,241,0.72));
}

.label {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(248,245,242,0.8);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8A7E78;
  font-weight: 500;
  margin-bottom: 16px;
}

.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
  color: #181818;
}

.card p {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 2;
  color: #4D4743;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 6px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  font-weight: 500;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(163,32,36,0), rgba(163,32,36,0.6), rgba(163,32,36,0));
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
  pointer-events: none;
}

.card:hover .cta {
  transform: translateX(3px);
}

.card:hover .cta::after {
  transform: scaleX(1);
  opacity: 1;
}


footer {
  margin: 64px 0 0;
  padding-top: 24px;
  border-top: none;
  animation: fadeUp 0.8s ease 0.45s both;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.footer-separator {
  color: var(--muted);
  opacity: 0.75;
  line-height: 1;
  margin: 0 2px;
}

.footer-links a,
.credits {
  color: var(--muted);
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.footer-links a:hover,
.credits:hover {
  opacity: 0.7;
}

.credits {
  font-size: 12px;
}


.reveal-on-scroll,
.message p {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(3px);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s ease;
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-visible,
.message p.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.card.reveal-on-scroll {
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.card.reveal-on-scroll:not(.is-visible) {
  transform: translateY(26px) scale(0.985);
}

.card.reveal-on-scroll.is-visible:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .message p {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .welcome-stroke {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }

  .welcome-fill {
    fill-opacity: 1 !important;
    animation: none !important;
  }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes shellReveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes shellSheen {
  0%, 58% { transform: translateX(-80%) rotate(18deg); opacity: 0; }
  66% { opacity: 0.7; }
  78%, 100% { transform: translateX(260%) rotate(18deg); opacity: 0; }
}

@keyframes logoShine {
  0% { left: -65%; opacity: 0; }
  20% { opacity: 0.75; }
  100% { left: 120%; opacity: 0; }
}

@keyframes floatOne {
  0%,100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) translateY(-10px) scale(1.03); }
}

@keyframes floatTwo {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatThree {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes logoIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes softBreath {
  0%,100% { opacity: 0.2; transform: scale(0.98); }
  50% { opacity: 0.42; transform: scale(1.03); }
}

50% { transform: translateY(-2px); }
}

@keyframes liveWriteWelcome {
  0% {
    stroke-dashoffset: 1200;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes welcomeFillIn {
  0%, 76% {
    fill-opacity: 0;
  }
  100% {
    fill-opacity: 1;
  }
}

@keyframes welcomeSvgSettle {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes welcomeFloatSvg {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes welcomeLine {
  0% { opacity: 0; transform: translateX(-50%) scaleX(0); }
  100% { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

@media (max-width: 920px) {
  .grid { grid-template-columns: 1fr; }
  .board-chip { display: none; }
  .card p { max-width: none; }
}

@media (max-width: 640px) {
  body { padding: 18px; }
  .inner { padding: 28px 18px 24px; }
  .shell { border-radius: 28px; }
  .message p { font-size: 14px; line-height: 1.9; }
  .card { border-radius: 22px; padding: 20px; }
  .card h3 { font-size: 24px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .logo { height: 36px; }
  .welcome-holder { padding: 8px 6px 16px; }
  .welcome-svg { width: min(460px, 112%); }
  .welcome-stroke,
  .welcome-fill { font-size: 72px; }
}

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

/* Logo hover enlargement fix: placed after reveal rules so scroll animation cannot override hover. */
.logo-wrap.logo-link,
a.logo-wrap.logo-link,
a.logo-link.reveal-on-scroll,
a.logo-link.reveal-on-scroll.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: opacity 0.85s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.28s ease;
}

a.logo-wrap.logo-link:hover,
a.logo-link.reveal-on-scroll.is-visible:hover,
a.logo-link:hover {
  transform: translateY(-2px) scale(1.12) !important;
  filter: drop-shadow(0 14px 22px rgba(17,17,17,0.10));
}

a.logo-wrap.logo-link:active,
a.logo-link.reveal-on-scroll.is-visible:active,
a.logo-link:active {
  transform: translateY(0) scale(0.98) !important;
}

.logo-link:hover .logo {
  transform: scale(1.04);
}

.logo {
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
