@layer reset, base, components, utilities;

/* ═══════════════════════════════════════
   RESET
   ═══════════════════════════════════════ */

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

  :where(img, svg, video, iframe) {
    max-inline-size: 100%;
    block-size: auto;
    display: block;
  }

  :where(svg) {
    fill: currentColor;
  }

  ul[role="list"], ol[role="list"] {
    list-style: none;
  }

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

  :where(input:is([type="checkbox"], [type="radio"]), select, label, button) {
    cursor: pointer;
  }

  @media (forced-colors: active) {
    :where(button, .btn-primary, .btn-secondary, .nav-cta) {
      border: 1px solid;
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
}

/* ═══════════════════════════════════════
   BASE — Design Tokens + Typography
   ═══════════════════════════════════════ */

@layer base {
  :root {
    color-scheme: dark;

    /* Colors */
    --bg: #07090f;
    --bg2: #0c1018;
    --bg3: #111620;
    --gold: #c9a227;
    --gold2: #e8c96a;
    --blue: #4a7fb5;
    --text: #ddd8cc;
    --muted: #6b7591;
    --border: rgba(201,162,39,0.15);
    --border2: rgba(201,162,39,0.30);

    /* Fonts */
    --serif: 'Cormorant Garamond', Georgia, serif;
    --body: 'Lora', Georgia, serif;
    --mono: 'JetBrains Mono', monospace;

    /* Layout */
    --container: 1100px;
    --nav-height: 64px;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
  }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.7;
  }

  /* Grid background */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(201,162,39,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(201,162,39,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
  }

  /* Text wrapping */
  :where(h1, h2, h3, h4) {
    text-wrap: balance;
  }
  :where(p) {
    text-wrap: pretty;
  }

  /* Fluid typography */
  .text-hero {
    font-size: clamp(3rem, 8vw, 7rem);
  }

  .text-xl {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
  }

  .text-lg {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  }

  .text-base {
    font-size: clamp(1rem, 2vw, 1.125rem);
  }

  .text-sm {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
  }

  .text-xs {
    font-size: clamp(0.7rem, 1vw, 0.875rem);
  }
}

/* ═══════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════ */

@layer components {

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding-inline: 1.5rem;
    block-size: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7,9,15,0.85);
    backdrop-filter: blur(12px);
    border-block-end: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
  }
  @media (min-width: 901px) {
    nav { padding-inline: 2.5rem; }
  }

  .nav-brand {
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-decoration: none;
  }

  .nav-brand span {
    color: var(--muted);
    font-weight: 300;
  }

  .nav-links {
    display: none;
  }
  @media (min-width: 901px) {
    .nav-links { display: flex; }
  }
  .nav-links {
    gap: 2rem;
    list-style: none;
  }

  .nav-links a {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--gold); }

  .nav-cta {
    display: none;
  }
  @media (min-width: 901px) {
    .nav-cta { display: inline-block; }
  }
  .nav-cta {
    font-family: var(--mono);
    font-size: 0.78rem;
    padding-block: 0.5rem;
    padding-inline: 1.2rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: all 0.2s;
  }

  .nav-cta:hover {
    background: var(--gold);
    color: var(--bg);
  }

  /* ── HAMBURGER ── */
  .hamburger {
    display: flex;
  }
  @media (min-width: 901px) {
    .hamburger { display: none; }
  }
  .hamburger {
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    min-block-size: 44px;
    min-inline-size: 44px;
    align-items: center;
    justify-content: center;
  }

  .hamburger span {
    display: block;
    inline-size: 22px;
    block-size: 1.5px;
    background: var(--muted);
    transition: all 0.2s;
  }

  /* ── MOBILE NAV ── */
  .mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(7,9,15,0.97);
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-nav.open { transform: translateX(0); }

  .mobile-nav a {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    padding-block: 0.5rem;
  }

  .mobile-nav a:hover { color: var(--gold); }

  .mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    font-family: var(--mono);
    min-block-size: 44px;
    min-inline-size: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ── HERO ── */
  .hero {
    position: relative;
    min-block-size: 100vh;
    display: flex;
    align-items: center;
    padding-block: 4rem 2rem;
    padding-inline: 1.5rem;
    overflow: hidden;
  }
  @media (min-width: 601px) {
    .hero { padding-block: 5rem 3rem; }
  }
  @media (min-width: 901px) {
    .hero { padding-block: 6rem 4rem; padding-inline: 2.5rem; }
  }

  .hero-compass {
    display: none;
    position: absolute;
    inset-inline-end: 5%;
  }
  @media (min-width: 901px) {
    .hero-compass { display: block; }
  }
  .hero-compass {
    inset-block-start: 50%;
    transform: translateY(-50%);
    inline-size: min(480px, 45vw);
    opacity: 0.06;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    inline-size: min(860px, 100%);
  }

  .hero-tag {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-block-end: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.1s forwards;
  }

  .hero-tag::before {
    content: '';
    display: block;
    inline-size: 32px;
    block-size: 1px;
    background: var(--gold);
  }

  .hero-name {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -0.01em;
    color: var(--text);
    opacity: 0;
    animation: fadeUp 0.7s 0.25s forwards;
  }

  .hero-name em {
    font-style: italic;
    color: var(--gold);
  }

  .hero-sub {
    margin-block-start: 1.5rem;
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--muted);
    inline-size: min(680px, 100%);
    opacity: 0;
    animation: fadeUp 0.7s 0.4s forwards;
  }

  .hero-claim {
    margin-block-start: 2.5rem;
    font-family: var(--body);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 400;
    color: var(--text);
    inline-size: min(620px, 100%);
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.7s 0.55s forwards;
  }

  .hero-actions {
    margin-block-start: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s 0.7s forwards;
  }

  .hero-scroll {
    display: none;
    position: absolute;
    opacity: 0;
    animation: fadeUp 0.7s 1s forwards;
  }
  @media (min-width: 601px) {
    .hero-scroll { display: flex; }
  }
  .hero-scroll {
    bottom: 2.5rem;
    inset-inline-start: 2.5rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-scroll::after {
    content: '';
    display: block;
    inline-size: 1px;
    block-size: 48px;
    background: linear-gradient(to bottom, var(--muted), transparent);
    animation: scrollLine 2s 1.5s ease-in-out infinite;
  }

  @keyframes scrollLine {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
  }

  /* ── BUTTONS ── */
  .btn-primary {
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    padding-block: 0.85rem;
    padding-inline: 2rem;
    background: var(--gold);
    color: var(--bg);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
  }

  .btn-primary:hover {
    background: var(--gold2);
    transform: translateY(-1px);
  }

  .btn-secondary {
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    padding-block: 0.85rem;
    padding-inline: 2rem;
    border: 1px solid var(--border2);
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
  }

  .btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
  }

  /* ── SECTIONS ── */
  section {
    position: relative;
    z-index: 1;
  }

  .container {
    inline-size: min(var(--container), 100% - var(--space-8) * 2);
    margin-inline: auto;
    padding-inline: 1rem;
  }
  @media (min-width: 601px) {
    .container { padding-inline: 1.5rem; }
  }
  @media (min-width: 901px) {
    .container { padding-inline: 2.5rem; }
  }

  .section-pad { padding-block: 3rem 0; }
  @media (min-width: 601px) {
    .section-pad { padding-block: 4rem 0; }
  }
  @media (min-width: 901px) {
    .section-pad { padding-block: 7rem 0; }
  }

  .section-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-block-end: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .section-label::before {
    content: attr(data-num);
    color: var(--muted);
    font-weight: 300;
  }

  .section-title {
    font-family: var(--serif);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text);
    margin-block-end: 1rem;
  }

  .section-title em {
    font-style: italic;
    color: var(--gold);
  }

  .section-body {
    font-size: var(--text-sm);
    color: var(--muted);
    inline-size: min(560px, 100%);
    line-height: 1.8;
  }

  hr.divider {
    border: none;
    border-block-end: 1px solid var(--border);
    margin: 0;
  }

  /* ── IDENTITY INTRO ── */
  .identity-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-block-end: 3rem;
  }
  @media (min-width: 901px) {
    .identity-intro {
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
    }
  }

  /* ── IDENTITY LAYERS ── */
  .identity-layers {
    display: grid;
    grid-template-columns: 1fr;
  }
  @media (min-width: 901px) {
    .identity-layers { grid-template-columns: repeat(3, 1fr); }
  }
  .identity-layers {
    gap: 1.5px;
    background: var(--border);
  }

  .layer-card {
    background: var(--bg2);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
  }

  .layer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    block-size: 2px;
    background: transparent;
    transition: background 0.3s;
  }

  .layer-card:hover { background: var(--bg3); }
  .layer-card:hover::before { background: var(--gold); }

  .layer-num {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    margin-block-end: 1.5rem;
  }

  .layer-handle {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gold);
    margin-block-end: 0.5rem;
    letter-spacing: 0.04em;
  }

  .layer-role {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--text);
    margin-block-end: 1.25rem;
    font-style: italic;
  }

  .layer-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
  }

  .layer-links {
    margin-block-start: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .layer-links a {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .layer-links a::before {
    content: '↗';
    font-size: 0.65rem;
    color: var(--gold);
  }

  .layer-links a:hover { color: var(--gold); }

  /* ── STAT ROW ── */
  .stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  @media (min-width: 901px) {
    .stat-row { grid-template-columns: repeat(4, 1fr); }
  }
  .stat-row {
    gap: 1px;
    background: var(--border);
  }

  .stat-item {
    background: var(--bg);
    padding: 2rem 1.75rem;
    text-align: center;
  }

  .stat-num {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    margin-block-end: 0.5rem;
  }

  .stat-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* ── GRIDS (Services, Projects) ── */
  .grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
  }

  .grid-auto > * {
    transition: background 0.3s;
  }

  .grid-auto > *:hover {
    background: var(--bg3);
  }

  /* ── SERVICE CARD ── */
  .service-icon {
    font-family: var(--mono);
    font-size: 1.4rem;
    margin-block-end: 1.25rem;
    display: block;
    color: var(--gold);
    opacity: 0.7;
  }

  .service-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text);
    margin-block-end: 0.75rem;
    line-height: 1.3;
  }

  .service-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
  }

  .service-tags {
    margin-block-start: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  /* ── TAG ── */
  .tag {
    font-family: var(--mono);
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    padding-block: 0.25rem;
    padding-inline: 0.6rem;
    border: 1px solid var(--border);
    color: var(--muted);
    text-transform: uppercase;
  }

  /* ── PROJECT CARD ── */
  .project-card {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
  }

  .project-cat {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--gold);
    text-transform: uppercase;
    margin-block-end: 0.75rem;
  }

  .project-name {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--text);
    margin-block-end: 0.6rem;
  }

  .project-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
  }

  .project-link {
    margin-block-start: 1.25rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .project-link:hover { opacity: 0.7; }

  /* ── Featured project card ── */
  .project-card-featured {
    background: var(--bg2);
    border: 1px solid var(--gold);
    padding: 2rem;
    position: relative;
  }
  .project-card-featured::before {
    content: 'Hauptplattform';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    background: var(--bg2);
    padding: 0 0.5rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
  }

  /* ── OS ARENA ── */
  .osarena-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  @media (min-width: 601px) {
    .osarena-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (min-width: 1101px) {
    .osarena-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  }

  .osarena-feature {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: border-color 0.2s;
  }
  .osarena-feature:hover { border-color: var(--gold); }

  .osarena-icon {
    font-family: var(--mono);
    font-size: 1.1rem;
    color: var(--gold);
    margin-block-end: 1rem;
  }

  .osarena-feature h4 {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--text);
    margin-block-end: 0.75rem;
  }

  .osarena-feature p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
  }

  /* ── ABOUT ── */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  @media (min-width: 901px) {
    .about-grid {
      grid-template-columns: 2fr 1fr;
      gap: 5rem;
    }
  }

  .about-text p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.85;
    margin-block-end: 1.25rem;
  }

  .about-text p.muted { color: var(--muted); }

  .about-aside {
    position: sticky;
    inset-block-start: 5rem;
  }

  .aside-block {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 1.75rem;
    margin-block-end: 1.5rem;
  }

  .aside-block h4 {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-block-end: 1rem;
  }

  .aside-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .aside-block li {
    font-size: 0.88rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.5;
  }

  .aside-block li::before {
    content: '·';
    color: var(--gold);
    flex-shrink: 0;
  }

  /* ── Aside staggered reveal (CSS fallback) ── */
  @keyframes asideFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .aside-block {
    animation: asideFadeUp 0.5s ease both;
  }
  .aside-block.reveal-delay-1 { animation-delay: 0.1s; }
  .aside-block.reveal-delay-2 { animation-delay: 0.2s; }
  .aside-block.reveal-delay-3 { animation-delay: 0.3s; }

  /* ── LOGBUCH ── */
  .logbuch-entry {
    border-block-start: 1px solid var(--border);
    padding-block: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: start;
  }
  @media (min-width: 601px) {
    .logbuch-entry { grid-template-columns: 140px 1fr; gap: 2rem; }
  }
  .logbuch-entry {
    transition: border-color 0.2s;
    text-decoration: none;
  }

  .logbuch-entry:hover { border-color: var(--gold); }

  .entry-date {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    padding-block-start: 0.2rem;
  }

  .entry-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--text);
    margin-block-end: 0.5rem;
    line-height: 1.3;
    transition: color 0.2s;
  }

  .logbuch-entry:hover .entry-title { color: var(--gold); }

  .entry-excerpt {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.7;
  }

  /* ── QUOTE BLOCK ── */
  .quote-block {
    background: var(--bg2);
    border-inline-start: 3px solid var(--gold);
    padding-block: 1.75rem;
    padding-inline: 1.5rem;
    margin-block: 3rem;
  }
  @media (min-width: 601px) {
    .quote-block {
      padding-block: 2.5rem;
      padding-inline: 3rem;
      margin-block: 5rem;
    }
  }

  .quote-text {
    font-family: var(--serif);
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
  }

  /* ── CONTACT ── */
  .contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    margin-block-start: 2.5rem;
  }

  .channel {
    background: var(--bg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: background 0.2s;
  }

  .channel:hover { background: var(--bg3); }

  .channel-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .channel-name {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .channel-handle {
    font-size: 0.85rem;
    color: var(--muted);
  }

  .channel-arrow {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
  }

  .channel:hover .channel-arrow {
    color: var(--gold);
    transform: translate(2px, -2px);
  }

  .contact-form-wrap {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 1.5rem;
  }
  @media (min-width: 601px) {
    .contact-form-wrap { padding: 2.5rem; }
  }

  .contact-form-wrap h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text);
    margin-block-end: 0.5rem;
  }

  .contact-form-wrap p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-block-end: 2rem;
    line-height: 1.7;
  }

  .form-group {
    margin-block-end: 1.25rem;
  }

  .form-group label {
    display: block;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: uppercase;
    margin-block-end: 0.5rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    inline-size: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    padding-block: 0.85rem;
    padding-inline: 1rem;
    transition: border-color 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
  }
  @media (min-width: 601px) {
    .form-group input, .form-group textarea, .form-group select {
      font-size: 0.9rem;
      padding-block: 0.75rem;
    }
  }

  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-color: var(--gold);
  }

  .form-group textarea {
    resize: vertical;
    min-block-size: 120px;
  }

  .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7591' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: inset-inline-end 1rem center;
    cursor: pointer;
  }

  .form-group select option {
    background: var(--bg2);
  }

  .form-submit {
    inline-size: 100%;
    background: var(--gold);
    color: var(--bg);
    border: none;
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-block: 0.9rem;
    padding-inline: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    margin-block-start: 0.5rem;
  }

  .form-submit:hover {
    background: var(--gold2);
    transform: translateY(-1px);
  }

  /* ── FOOTER ── */
  footer {
    position: relative;
    z-index: 1;
    background: var(--bg2);
    border-block-start: 1px solid var(--border);
    padding-block: 3rem;
    padding-inline: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2rem;
  }
  @media (min-width: 901px) {
    footer { padding-inline: 2.5rem; grid-template-columns: 1fr auto; }
  }

  .footer-brand {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 0.08em;
  }

  .footer-copy {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-block-start: 0.4rem;
  }

  .footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  @media (min-width: 901px) {
    .footer-links { justify-content: flex-end; }
  }

  .footer-links a {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.2s;
  }

  .footer-links a:hover { color: var(--gold); }

  /* ── CURSOR DOT ── */
  .cursor-dot {
    position: fixed;
    inline-size: 6px;
    block-size: 6px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s;
    opacity: 0;
  }

}

/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */

@layer utilities {

  /* ── REVEAL ANIMATION ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }

  /* ── ANIMATE ON HERO ── */
  .animate-fade-up {
    animation: fadeUp 0.6s var(--ease-out) both;
  }

  /* ── SCROLL LINE ── */
  .animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
  }

  /* ── REDUCED MOTION ── */
  @media (prefers-reduced-motion: reduce) {
    .reveal,
    .animate-fade-up,
    .hero-scroll::after,
    nav,
    .layer-card,
    .service-card,
    .project-card,
    .channel,
    .btn-primary,
    .btn-secondary,
    .form-submit,
    .cursor-dot {
      transition: none;
      animation: none;
    }
    .reveal {
      opacity: 1;
      transform: translateY(0);
    }
    .cursor-dot {
      display: none;
    }
  }

}

