/*
Theme Name: Ultralithic
Theme URI: https://ultralithic.com
Author: Ultralithic AB
Description: Custom one-page WordPress theme for Ultralithic AB.
Version: 1.0.0
Text Domain: ultralithic
*/

:root {
    --bg: #14110d;
    --bg-elevated: #1c1814;
    --surface: #221d17;
    --line: #3a342b;
    --line-soft: #2a2520;
    --text: #e8dcc4;
    --text-bright: #f3f1ec;
    --text-dim: #b2a58c;
    --text-muted: #9a8d74;
    --accent: #bb8757;
    --accent-deep: #a8532a;
    --accent-red: #bd6d49;
  }

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

  html { scroll-behavior: smooth; }

  html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  body {
    background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(168, 83, 42, 0.08), transparent 60%),
      radial-gradient(ellipse 60% 40% at 50% 100%, rgba(109, 74, 48, 0.05), transparent 60%),
      var(--bg);
    min-height: 100vh;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 1;
  }

  a { color: inherit; }

  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  .container {
    max-width: 920px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    position: relative;
    z-index: 2;
  }

  @media (max-width: 640px) {
    .container { padding: 2rem 1.25rem 3.5rem; }
  }

  /* ===== Masthead ===== */
  .masthead {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 0;
    margin-bottom: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .logo-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-bright);
    text-decoration: none;
  }

  .logo-svg { height: 23px; width: auto; display: block; }

  .masthead nav {
    display: flex;
    gap: 1.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .masthead nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .masthead nav a:hover { color: var(--accent); }

  @media (max-width: 640px) {
    .masthead {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.9rem;
      padding: 1.2rem 0;
    }
    .masthead nav {
      width: 100%;
      justify-content: space-between;
      gap: 0.5rem;
    }
  }

  /* ===== Hero ===== */
  .hero { margin-bottom: 3rem; }

  .eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
  }

  h1 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.7rem, 7.2vw, 4.5rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text);
  }

  h1 em { font-style: italic; color: var(--accent); font-size: 1.08em; margin-inline: 0.07em; }

  .lede {
    font-size: clamp(1.02rem, 2vw, 1.15rem);
    color: var(--text-dim);
    max-width: 44rem;
    line-height: 1.65;
  }

  .lede strong { font-weight: 500; color: var(--text); }

  /* ===== Hero figure ===== */
  .hero-figure {
    margin: 0 0 3rem;
  }

  .hero-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

  .hero-figure figcaption {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: right;
    padding-top: 0.6rem;
  }

  @media (min-width: 1240px) {
    .hero-figure { margin-left: -130px; margin-right: -130px; }
  }

  /* ===== Manifesto ===== */
  .manifesto {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    line-height: 1.5;
    color: var(--text);
    max-width: 40rem;
    margin: 0 0 4.5rem;
  }

  .manifesto em { font-style: italic; color: var(--accent); }

  /* ===== Data strip ===== */
  .data-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 5.5rem;
  }

  @media (max-width: 560px) {
    .data-strip { grid-template-columns: 1fr; }
  }



  .data-item {
    background: var(--bg-elevated);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .data-num {
    font-family: 'Instrument Serif', serif;
    font-size: 1.85rem;
    line-height: 1;
    color: var(--accent);
    font-style: italic;
  }

  .data-lbl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* ===== Sections ===== */
  section { margin-bottom: 5.5rem; }

  .section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .section-label .lbl-accent { color: var(--accent); }


  h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
  }

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

  .h2-big {
    display: block;
    font-size: 1.35em;
    line-height: 1.05;
    margin-top: 0.12em;
  }

  .prose p {
    color: var(--text-dim);
    max-width: 46rem;
    margin-bottom: 1rem;
    line-height: 1.7;
  }

  .prose p strong { font-weight: 500; color: var(--text); }

  .status-meta {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-red);
  }

  .status-meta span { display: flex; align-items: center; gap: 0.5rem; }
  .status-meta span::before { content: ''; width: 6px; height: 1px; background: var(--accent-red); flex-shrink: 0; }

  .frame-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--accent);
    border-style: solid;
    border-width: 0;
  }
  .frame-corner.tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
  .frame-corner.tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
  .frame-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
  .frame-corner.br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

  /* ===== Team ===== */
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }

  @media (max-width: 760px) {
    .team-grid { grid-template-columns: 1fr; }
  }

  .team-card {
    background: var(--bg-elevated);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
  }

  .team-basis {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
  }

  .team-name {
    font-family: 'Instrument Serif', serif;
    font-size: 1.45rem;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 0.25rem;
  }

  .team-role {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
  }

  .team-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* ===== Contact ===== */
  .contact-block {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
    padding: 3rem 2rem;
    position: relative;
    text-align: center;
  }

  .contact-block .frame-corner { border-color: var(--accent); }

  .contact-lede {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    line-height: 1.3;
    max-width: 34rem;
    margin: 0 auto 1.75rem;
  }

  .contact-email {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.9rem, 2.4vw, 1.05rem);
    letter-spacing: 0.08em;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 0.8rem 1.6rem;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .contact-email:hover { background: var(--accent); color: var(--bg); }

  .contact-meta {
    margin-top: 1.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .contact-meta a { color: var(--text-dim); text-decoration: none; }
  .contact-meta a:hover { color: var(--accent); }

  /* ===== Footer ===== */
  .footer-mark {
    padding: 3rem 0 0.5rem;
    border-top: 1px solid var(--line);
    text-align: center;
  }

  .footer-mark blockquote.footer-arc {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
  }

  .footer-arc .arc-sep { color: var(--accent); }

  .footer-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  /* ===== Motion ===== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero, .data-strip, section, .footer-mark {
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .data-strip { animation-delay: 0.08s; }
  section:nth-of-type(2) { animation-delay: 0.14s; }
  section:nth-of-type(3) { animation-delay: 0.2s; }
  section:nth-of-type(4) { animation-delay: 0.26s; }
  section:nth-of-type(5) { animation-delay: 0.3s; }
  .footer-mark { animation-delay: 0.34s; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation: none !important;
      transition: none !important;
    }
  }
