@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }

  * {
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
  }

  body {
    min-height: 100vh;
  }

  img,
  picture,
  video,
  canvas,
  svg {
    display: block;
    max-width: 100%;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
    color: inherit;
    background: none;
    border-radius: 0;
  }

  button {
    border: none;
    padding: 0;
    cursor: pointer;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  ul,
  ol {
    padding-left: 0;
  }
}

@layer base {
  :root {
    --color-background: #0A0D0F;
    --color-background-alt: #101B19;
    --color-surface: #142B2A;
    --color-surface-feature: #291720;
    --color-surface-contrast: #241814;
    --color-text: #F2EBDD;
    --color-text-muted: #B3AAA0;
    --color-accent: #C66A4A;
    --color-accent-soft: #718C78;
    --color-highlight: #D1B477;
    --color-border: #665044;
    --color-success: #6BBF8D;
    --color-warning: #E5B86A;
    --color-danger: #D76767;
    --color-gray-50: #121516;
    --color-gray-100: #181C1E;
    --color-gray-200: #222629;
    --color-gray-300: #2C3236;
    --color-gray-400: #40474D;
    --color-gray-500: #555E66;
    --color-gray-600: #6B757E;
    --color-gray-700: #86909A;
    --color-gray-800: #AEB5BC;
    --color-gray-900: #D2D6DA;
    --font-heading: "Playfair Display", "Bodoni Moda", "DM Serif Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Manrope", "Outfit", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --leading-tight: 1.2;
    --leading-snug: 1.35;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    --space-48: 12rem;
    --space-64: 16rem;
    --space-96: 24rem;
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 18px;
    --radius-pill: 999px;
    --shadow-soft: 0 14px 45px rgba(0, 0, 0, 0.55);
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-outline: 0 0 0 1px rgba(209, 180, 119, 0.6), 0 0 0 4px rgba(198, 106, 74, 0.45);
    --transition-fast: 150ms ease-out;
    --transition-base: 220ms ease-out;
    --transition-slow: 320ms ease-out;
  }

  @media (prefers-reduced-motion: reduce) {
    :root {
      scroll-behavior: auto;
    }

    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    background-color: var(--color-background);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: var(--leading-tight);
    color: var(--color-text);
    letter-spacing: 0.03em;
  }

  h1 {
    font-size: clamp(2.5rem, 3.4vw, 3.25rem);
    margin-bottom: var(--space-4);
  }

  h2 {
    font-size: clamp(2rem, 2.8vw, 2.5rem);
    margin-bottom: var(--space-3);
  }

  h3 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    margin-bottom: var(--space-3);
  }

  h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
  }

  p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
  }

  a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base), opacity var(--transition-fast);
  }

  a:hover {
    color: var(--color-highlight);
  }

  a:focus-visible {
    outline: none;
    box-shadow: var(--shadow-outline);
    border-radius: var(--radius-xs);
  }

  em {
    font-style: italic;
    color: var(--color-highlight);
  }

  strong {
    font-weight: 600;
    color: var(--color-text);
  }
}

@layer components {
  .rt-ribbon {
    width: 100%;
    background: linear-gradient(90deg, #101B19, #241814);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    border-bottom: 1px solid rgba(102, 80, 68, 0.65);
  }

  .rt-ribbon__item {
    white-space: nowrap;
  }

  .rt-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
  }

  .rt-brand__monogram {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(209, 180, 119, 0.6);
    background: radial-gradient(circle at 0% 0%, rgba(209, 180, 119, 0.18), transparent 55%), #241814;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-highlight);
  }

  .rt-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  .rt-brand__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .rt-brand__tagline {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }

  .home-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }

  .home-facts__item {
    position: relative;
    padding-left: 0.75rem;
    margin-left: 0.75rem;
  }

  .home-facts__item::before {
    content: "";
    position: absolute;
    left: -0.1rem;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(209, 180, 119, 0.75);
    transform: translateY(-50%);
  }

  .home-facts__item:first-child {
    margin-left: 0;
    padding-left: 0;
  }

  .home-facts__item:first-child::before {
    display: none;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.9rem 2.6rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
    white-space: nowrap;
  }

  .btn-primary {
    background: linear-gradient(135deg, #C66A4A, #D1B477);
    color: #0A0D0F;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75);
  }

  .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.7);
  }

  .btn-ghost {
    background: rgba(20, 43, 42, 0.4);
    border-color: rgba(102, 80, 68, 0.7);
    color: var(--color-text);
  }

  .btn-ghost:hover {
    background: rgba(41, 23, 32, 0.85);
    border-color: rgba(209, 180, 119, 0.8);
  }

  .btn:disabled,
  .btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
  }

  .btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-outline);
  }

  .form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(102, 80, 68, 0.75);
    background-color: rgba(16, 27, 25, 0.9);
    color: var(--color-text);
    font-size: var(--text-sm);
    caret-color: var(--color-accent);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-fast);
  }

  .form-control::placeholder {
    color: rgba(179, 170, 160, 0.6);
  }

  .form-control:focus-visible {
    outline: none;
    border-color: var(--color-highlight);
    box-shadow: 0 0 0 1px rgba(209, 180, 119, 0.7);
    background-color: rgba(16, 27, 25, 0.98);
  }

  .form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: var(--text-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }

  .form-help {
    margin-top: 0.35rem;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
  }

  .card {
    background: radial-gradient(circle at 0 0, rgba(209, 180, 119, 0.12), transparent 55%), linear-gradient(145deg, #101B19, #241814 55%, #291720 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 80, 68, 0.75);
    box-shadow: var(--shadow-soft);
    padding: var(--space-6);
    color: var(--color-text);
  }

  .card--surface {
    background: #142B2A;
  }

  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: var(--space-10);
    align-items: stretch;
  }

  .home-hero {
    padding: var(--space-16) 0 var(--space-12);
  }

  .home-hero__kicker {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
  }

  .home-hero__title {
    max-width: 20ch;
  }

  .home-hero__lead {
    max-width: 40ch;
  }

  .home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
  }

  .home-hero__secondary-link {
    font-size: var(--text-sm);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }

  .home-hero__secondary-link:hover {
    color: var(--color-highlight);
  }

  .home-hero__fineprint {
    font-size: var(--text-xs);
    color: rgba(179, 170, 160, 0.8);
    max-width: 46ch;
  }

  .home-hero__media {
    position: relative;
  }

  .home-hero__image-frame {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(102, 80, 68, 0.9);
    background: radial-gradient(circle at 0 0, rgba(198, 106, 74, 0.28), transparent 55%), radial-gradient(circle at 100% 100%, rgba(113, 140, 120, 0.32), transparent 55%), #0A0D0F;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.8);
    min-height: 320px;
    display: flex;
  }

  .home-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
  }

  .home-hero__seal {
    position: absolute;
    right: 8%;
    top: 10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(209, 180, 119, 0.7);
    background: radial-gradient(circle, rgba(36, 24, 20, 0.95), #241814);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem;
  }

  .home-hero__seal-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-highlight);
  }

  .home-hero__caption {
    position: absolute;
    left: 8%;
    bottom: 8%;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    background: rgba(10, 13, 15, 0.86);
    border: 1px solid rgba(113, 140, 120, 0.6);
    backdrop-filter: blur(10px);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .section-index {
    font-size: var(--text-xs);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }

  .section-index__number {
    color: var(--color-highlight);
  }

  .section-index__divider {
    margin: 0 0.75rem;
    opacity: 0.5;
  }
}

@layer utilities {
  .container {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .layout-max {
    width: 100%;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .flex {
    display: flex;
  }

  .inline-flex {
    display: inline-flex;
  }

  .flex-col {
    flex-direction: column;
  }

  .flex-row {
    flex-direction: row;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .items-center {
    align-items: center;
  }

  .items-start {
    align-items: flex-start;
  }

  .items-end {
    align-items: flex-end;
  }

  .justify-center {
    justify-content: center;
  }

  .justify-between {
    justify-content: space-between;
  }

  .justify-end {
    justify-content: flex-end;
  }

  .grid {
    display: grid;
  }

  .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;
  }

  .sr-only-focusable:active,
  .sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .mt-0 { margin-top: 0; }
  .mt-2 { margin-top: var(--space-2); }
  .mt-4 { margin-top: var(--space-4); }
  .mt-6 { margin-top: var(--space-6); }
  .mt-8 { margin-top: var(--space-8); }
  .mb-0 { margin-bottom: 0; }
  .mb-2 { margin-bottom: var(--space-2); }
  .mb-4 { margin-bottom: var(--space-4); }
  .mb-6 { margin-bottom: var(--space-6); }
  .mb-8 { margin-bottom: var(--space-8); }
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .home-hero {
    padding: var(--space-12) 0 var(--space-10);
  }

  .home-hero__image-frame {
    min-height: 260px;
  }

  .home-hero__seal {
    width: 104px;
    height: 104px;
    right: 6%;
    top: 8%;
  }
}

@media (max-width: 640px) {
  .rt-ribbon {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-facts__item {
    margin-left: 0;
    padding-left: 0;
  }

  .home-facts__item::before {
    display: none;
  }

  .home-hero {
    padding: var(--space-10) 0 var(--space-8);
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hero__image-frame {
    border-radius: 22px;
  }

  .home-hero__caption {
    left: 7%;
    right: 7%;
    border-radius: var(--radius-pill);
  }
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline);
}

ul { list-style: none !important; }
.nav-toggle { flex-direction: column; }