/* ── Fonts ────────────────────────────────── */

@font-face {
  font-family: 'ZurichBT-LightExtraCondensed';
  src: url('/fonts/ZURCHLXC.TTF') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LetterGothicStd-Bold';
  src: url('/fonts/LetterGothicStd-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg:    #F6F3EE;
  --ink:   #151311;
  --muted: #8A8480;
  --rule:  #D3CCBF;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ───────────────────────────────── */

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 6rem 2.5rem;
}

/* ── Logo ─────────────────────────────────── */

.logo-wrap {
  width: min(240px, 52vw);
  margin-bottom: 5rem;
}

.logo-wrap img,
.logo-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Logo draw-in ─────────────────────────── */

.logo-wrap .p1,
.logo-wrap .p2,
.logo-wrap .p3 {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}

.logo-wrap .p1 {
  stroke-dasharray: 630;
  stroke-dashoffset: 630;
  animation: logo-draw 0.9s 0.1s cubic-bezier(0.5, 0, 0.5, 1) forwards,
             logo-fill 0.4s 1.2s ease forwards;
}

.logo-wrap .p2 {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: logo-draw 0.6s 0.5s cubic-bezier(0.5, 0, 0.5, 1) forwards,
             logo-fill 0.4s 1.2s ease forwards;
}

.logo-wrap .p3 {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: logo-draw 0.6s 0.7s cubic-bezier(0.5, 0, 0.5, 1) forwards,
             logo-fill 0.4s 1.2s ease forwards;
}

.logo-wrap .logo-text {
  opacity: 0;
  animation: logo-text-in 0.6s 1.5s ease forwards;
}

@keyframes logo-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes logo-fill {
  to { fill: var(--ink); stroke: none; }
}

@keyframes logo-text-in {
  to { opacity: 1; }
}

/* ── Spine ────────────────────────────────── */

.spine {
  width: 1px;
  height: 48px;
  background: var(--rule);
  margin-bottom: 3.75rem;
  opacity: 0;
  animation: rise 0.7s 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Contact ──────────────────────────────── */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.8s 2.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
  max-width: 380px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-row .icon {
  color: var(--rule);
  margin-top: 0.2rem;
  width: 1.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.contact-row .icon svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.contact-row .text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  font-style: normal;
}

.contact-row .text.phone {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
}

.contact-row a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.contact-row a:hover {
  opacity: 0.45;
}

/* ── Animation ────────────────────────────── */

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

/* ── Responsive ───────────────────────────── */

@media (max-width: 600px) {
  main { padding: 4rem 1.75rem; }
  .logo-wrap { width: 44vw; margin-bottom: 1.25rem; }
  .spine { height: 24px; margin-bottom: 1.25rem; }
  .contact-list { max-width: calc(100vw - 3.5rem); }
  .contact-label { font-size: 0.72rem; }
  .contact-list { gap: 0.65rem; }
  .contact-row { gap: 0.6rem; }
  .contact-row .text { font-size: 0.95rem; }
  .contact-row address.text { font-size: 0.78rem; }
}

@media (min-height: 900px) and (min-width: 601px) {
  main { padding: 9rem 2.5rem; }
}
