/* ============================================
   PRAPNOTI — Clean Design System
   ============================================ */

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

:root {
  --navy:      #051450;
  --navy-soft: #0c1f6a;
  --ink:       #0d0d0d;
  --ink-mid:   #3a3a3a;
  --ink-muted: #777;
  --cream:     #f8f6f1;
  --cream-mid: #f0ede6;
  --rule:      #ddd9d1;
  --gold:      #8b6f3e;
  --gold-lt:   #a89b7e;

  --serif: 'EB Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --max:   1080px;
  --px:    clamp(1.25rem, 5vw, 4.5rem);
  --nav-h: 68px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.on { border-color: var(--rule); }

.header__logo-img { height: 28px; width: auto; }

.header__cta {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: all 0.22s;
}
.header__cta:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================
   SHARED UTILITY
   ============================================ */
.eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3rem;
}
.eyebrow--light { color: var(--gold-lt); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) var(--px) clamp(4rem, 10vh, 7rem);
  position: relative;
  overflow: hidden;
}

/* faint circle watermark */
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -8%;
  width: min(640px, 85vw);
  height: min(640px, 85vw);
  border-radius: 50%;
  border: 1px solid var(--navy);
  opacity: 0.05;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 5.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.hero__title em { font-style: italic; color: var(--navy-soft); }

.hero__attr {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 2rem;
}

.hero__rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-top: 2.5rem;
}

/* ============================================
   LANGUAGE TICKER
   ============================================ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--cream-mid);
  padding: 0.9rem 0;
  user-select: none;
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  white-space: nowrap;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker__track span {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--navy);
  opacity: 0.45;
  letter-spacing: 0.04em;
}
.ticker__dot {
  color: var(--gold) !important;
  opacity: 0.5 !important;
  font-size: 0.7rem !important;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   SECTORS
   ============================================ */
.sectors {
  padding: clamp(5rem, 12vh, 9rem) var(--px);
  border-top: 1px solid var(--rule);
}
.sectors__inner { max-width: var(--max); margin: 0 auto; }
.sectors__list  { display: flex; flex-direction: column; }

.sector {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0 2rem;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--rule);
  cursor: default;
}
.sector:first-of-type { border-top: 1px solid var(--rule); }

.sector__num {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  padding-top: 0.4rem;
  align-self: start;
}

.sector__name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  transition: letter-spacing 0.5s ease;
}
.sector:hover .sector__name { letter-spacing: 0.015em; }

.sector__desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.8;
  max-width: 520px;
}

/* ============================================
   PRESENCE
   ============================================ */
.presence {
  padding: clamp(5rem, 12vh, 9rem) var(--px);
  background: var(--cream-mid);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.presence__inner { max-width: var(--max); margin: 0 auto; }

.presence__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.presence__city {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 0;
  padding-right: 2rem;
  border-right: 1px solid var(--rule);
}
.presence__city:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 2rem;
}
.presence__city:nth-child(2) {
  padding-left: 2rem;
}

.presence__num {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
}

.presence__name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.presence__state {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: clamp(5rem, 12vh, 9rem) var(--px);
  background: var(--navy);
}
.contact__inner { max-width: var(--max); margin: 0 auto; }

.contact__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 3rem;
}

.contact__list { list-style: none; border-top: 1px solid rgba(255,255,255,0.1); }

.contact__item {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact__label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  width: 72px;
  flex-shrink: 0;
}

.contact__val {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
  color: #fff;
  transition: color 0.2s;
}
.contact__val:hover { color: #c8b08a; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.75rem var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__logo { height: 20px; width: auto; filter: brightness(0) invert(1); opacity: 0.28; }
.footer__copy { font-size: 0.65rem; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 720px) {

  /* Hero: smaller padding on mobile */
  .hero {
    align-items: flex-end;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 3rem;
    min-height: 80svh;
  }

  /* Presence: stack vertically */
  .presence__grid {
    grid-template-columns: 1fr;
    border-top: none;
  }
  .presence__city {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    border-right: none;
    border-top: 1px solid var(--rule);
    padding: 1.75rem 0 !important;
  }

  /* Sectors: collapse number into body */
  .sector {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 2rem 0;
  }

  /* Contact items: stack */
  .contact__item {
    flex-direction: column;
    gap: 0.3rem;
  }
  .contact__label { width: auto; }

  /* Footer: stack */
  .footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .header__logo-img { height: 24px; }
  .hero__title { font-size: clamp(1.9rem, 8vw, 3rem); }
  .ticker__track span { font-size: 0.88rem; }
}
