/* ==========================================================================
   PREGIOR — Quiet Luxury Holding Page (v2)
   Tokens:
     Obsidian:      #0c0c0c
     Ivory:         #f7f5f0
     Stone:         #8a857b
     Brushed Gold:  #bfa882
   ========================================================================== */

:root {
  --obsidian: #0c0c0c;
  --ivory: #f7f5f0;
  --stone: #8a857b;
  --gold: #bfa882;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500.woff2') format('woff2');
}

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

::selection {
  background-color: var(--gold);
  color: var(--obsidian);
}

html {
  background-color: var(--obsidian);
  color: var(--ivory);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--obsidian);
  color: var(--ivory);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Atmosphere layer */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/suit-bg-1600.jpg");
  /* Right-hand panel, cropped to torso + hands: tailoring detail, no face. */
  background-size: auto 178%;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  opacity: .60;
  filter: grayscale(1) contrast(1.03) brightness(.95);
}

.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* soft right edge so the panel has no hard cut */
    linear-gradient(270deg, rgba(12,12,12,.92) 0%, rgba(12,12,12,.58) 9%, rgba(12,12,12,0) 22%),
    /* horizontal scrim: opaque behind the type, open over the figure */
    linear-gradient(90deg, #0c0c0c 0%, rgba(12,12,12,.99) 34%, rgba(12,12,12,.88) 52%, rgba(12,12,12,.42) 70%, rgba(12,12,12,.28) 100%);
}

@media (max-width: 640px) {
  .bg {
    background-image: url("assets/suit-bg-900.jpg");
    /* at phone width the type sits over the image, so pull it back further */
    background-size: auto 132%;
    background-position: 52% 100%;
    opacity: .38;
  }

  .bg-scrim {
    background:
      linear-gradient(180deg, rgba(12,12,12,.97) 0%, rgba(12,12,12,.80) 30%, rgba(12,12,12,.78) 58%, rgba(12,12,12,.96) 100%),
      linear-gradient(90deg, rgba(12,12,12,.55) 0%, rgba(12,12,12,.25) 60%, rgba(12,12,12,.45) 100%);
  }
}

/* Content container & editorial layout */
.content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  max-width: 1180px;
  margin-inline: auto;
}

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(1.5rem, 4vh, 3rem);
}

.block {
  max-width: 34rem;
  text-align: left;
}

@media (max-width: 760px) {
  .block {
    margin-inline: auto;
    text-align: center;
  }
}

/* Single 700ms fade + 8px rise on the content block, 120ms delay */
.content-block {
  animation: loadFadeRise 700ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

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

@media (prefers-reduced-motion: reduce) {
  .content-block {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* House mark lockup */
.mark {
  font-family: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.15rem, 5.6vw, 4.35rem);
  letter-spacing: .24em;
  line-height: 1;
  color: var(--ivory);
}

.mark-sub {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: .6875rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .9rem;
}

@media (max-width: 760px) {
  .mark {
    padding-left: .24em; /* compensates trailing letter-space when centred */
  }
  .mark-sub {
    padding-left: .42em;
  }
}

/* Accessible text pattern */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Statement */
.statement {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.65;
  max-width: 44ch;
  color: rgba(247, 245, 240, 0.88);
  margin: clamp(1.75rem, 4vh, 2.5rem) 0;
}

@media (max-width: 760px) {
  .statement {
    margin-inline: auto;
  }
}

/* CTA */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 760px) {
  .cta-block {
    align-items: center;
  }
}

.cta {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0;
  box-sizing: border-box;
  background: none;
  border: none;
  transition: color 200ms ease, text-decoration-color 200ms ease, text-decoration-thickness 200ms ease;
}

.cta:hover,
.cta:focus-visible {
  color: var(--gold);
  text-decoration-thickness: 2px;
}

.secondary-line {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--stone);
  margin-top: 0.5rem;
}

/* Footer: hairline rule above, full content width */
.site-footer {
  width: 100%;
  border-top: 1px solid rgba(191, 168, 130, 0.25);
  padding-top: clamp(1.25rem, 2.5vh, 1.75rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--stone);
}

/* 404 Statement */
.statement-404 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.65;
  color: rgba(247, 245, 240, 0.88);
  margin: clamp(1.5rem, 3.5vh, 2.25rem) 0;
}
