:root {
  color-scheme: light;
  /* Base surfaces */
  --surface-bg: #F7F5F2;
  --surface-glass: rgba(255, 255, 255, 0.6);
  --surface-border: rgba(160, 130, 60, 0.25);
  /* Typography */
  --text-primary: #2A2A2A;
  --text-muted: #6F6F6F;
  --text-secondary: #3A3A3A;
  --text-card: #444;
  --text-card-heading: #7A704F;
  /* Brand Colors */
  --brand-light: #CBA453;
  --brand-primary: #C2772B;
  --brand-dark: #8A4A21;
  /* Gradients */
  --gradient-brand: linear-gradient(90deg, var(--brand-light), var(--brand-primary));
  --gradient-brand-strong: linear-gradient(90deg, var(--brand-light), var(--brand-primary), var(--brand-dark));
  --gradient-hero: linear-gradient(to bottom, rgba(247, 245, 242, 0.6), rgba(247, 245, 242, 1.0));
  /* Shadows & borders */
  --shadow-hover: rgba(120, 90, 30, 0.2);
  --border-light: rgba(0, 0, 0, 0.08);
  /* Z‑index scale */
  --z-noise: 1;
  --z-content: 2;
  --z-overlay: 10;
}

/* cascade layers */
@layer reset, base, components, utilities;

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

@layer base {
  body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background-color: var(--surface-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="n" x="0" y="0"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/></filter><rect width="300" height="300" filter="url(%23n)" opacity="0.04"/></svg>');
    z-index: var(--z-noise);
  }
  h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.05rem;
    line-height: 1.2;
    background: var(--gradient-brand-strong);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  h2 { font-family: "Playfair Display", serif; }
  a { color: inherit; text-decoration: none; }
  a:focus-visible, button:focus-visible {
    outline: 0.15rem solid var(--brand-primary);
    outline-offset: 0.2rem;
  }
}

@layer components {
  .container {
    max-width: 68rem;
    margin-inline: auto;
    padding-inline: min(5vw, 1.5rem);
    padding-block: 5rem;
    position: relative;
    z-index: var(--z-content);
  }
  .hero {
    position: relative;
    padding-block: clamp(6rem, 12vw, 10rem);
    overflow: hidden;
    background: transparent;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/img/forest.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(0.9rem) brightness(0.9) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.7;
    z-index: 0;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
  }
  .hero > * { position: relative; z-index: 2; }
  .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-top: 1rem;
    letter-spacing: 0.03rem;
  }
  .intro {
    font-size: clamp(1rem, 1.3vw, 1.4rem);
    line-height: 1.7;
    max-width: 48rem;
    color: var(--text-secondary);
    margin-top: 2rem;
  }
  .section-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-block-end: 2.5rem;
    font-weight: 600;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .strengths-achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 6rem;
  }
  .strengths-achievements-grid-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-inline: 1rem;
    margin-bottom: 1rem;
  }
  .strengths-achievements-grid-legend .legend-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: var(--brand-primary);
    opacity: 0.8;
  }
  .strength-achievements-pair {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    transition: transform 0.3s ease;
  }
  .strength-card,
  .achievement-card {
    backdrop-filter: blur(0.5rem);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .strength-card { background-color: var(--surface-glass); }
  .achievement-card { background: white; position: relative; }
  @media (hover: hover) {
    .strength-card:hover,
    .achievement-card:hover {
      transform: translateY(-0.25rem);
      box-shadow: 0 0.8rem 1.8rem var(--shadow-hover);
    }
  }
  @media (max-width: 900px) {
    .strengths-achievements-grid-legend { display: none; }
    .strength-achievements-pair { grid-template-columns: 1fr; }
  }
  @media (min-width: 901px) {
    .achievement-card::after {
      content: '\27A1\FE0E';
      position: absolute;
      left: -1.3rem;
      top: 50%;
      transform: translateY(-50%);
      width: 2.6rem;
      height: 2.6rem;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #e6ce9a;
      font-size: 1.7rem;
      font-weight: 900;
      z-index: 2;
      pointer-events: none;
      text-shadow: 1px 1px 2px var(--text-primary);
    }
  }
  .strength-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.075rem;
    margin: 0 0.5rem 0 0;
    color: var(--text-card-heading);
  }
  .achievement-card h3 {
    font-size: 1rem;
    margin: 0;
    letter-spacing: 0.075rem;
    color: var(--text-card-heading);
  }
  .strength-card p,
  .achievement-card p {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-card);
    line-height: 1.55;
  }
  .strength-card p { color: var(--text-muted); font-size: 0.95rem; }
  .achievement-card p { margin-top:0.5rem; color: var(--text-secondary); }
  .achievement-card hr { margin:1.5rem 0; opacity:0.3; }
  .links {
    display: flex;
    gap: 1.1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
  }
  .btn {
    padding-block: 0.9rem;
    padding-inline: 1.4rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: white;
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
  }
  .btn.primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: white;
  }
  .closing-section {
    text-align: center;
    margin-top: 8rem;
    padding-top: 5rem;
    border-top: 1px solid var(--border-light);
  }
  .closing-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    letter-spacing: 0.02rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .closing-section p {
    font-size: 1.25rem;
    max-width: 48rem;
    margin-inline: auto;
    opacity: 0.9;
    line-height: 1.65;
    color: var(--text-muted);
  }
  footer.footer-cta {
    text-align: center;
    margin-top: 6rem;
    padding-bottom: 4rem;
    opacity: 0.9;
  }
  .footer-title {
    font-size: 1.125rem;
    letter-spacing: 0.05rem;
    margin-bottom: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
  }
  .footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-inline: 0.4rem;
    position: relative;
  }
  .footer-links a:not(:first-child)::before {
    content: "•";
    padding-inline-end: 1.25rem;
  }
  .footer-links a:hover {
    color: var(--text-primary);
  }

  .not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
  }
  
  .not-found .btn {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
  }
}

@layer utilities {
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
  }
}
