
  :root{
    --bg: #0b0a08;
    --bg-raised: #15120f;
    --steel: #ffa03c99;
    --ash: #9a9189;
    --ember: #ff7a2e;
    --ember-dim: #c4501a;
    --gold: #d9a35a;
    --flame-core: #ffd27a;
  }

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

  html{ scroll-behavior: auto; }

  body{
    background: var(--bg);
    color: #e9e3da;
    font-family: 'Spectral', serif;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  h1, h2, h3, .display{
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: #f3ece1;
  }

  .mono{
    font-family: 'JetBrains Mono', monospace;
  }

  a{ color: var(--ember); text-decoration: none; }

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

  /* ---------- Nav ---------- */
  header{
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
    background: linear-gradient(to bottom, rgba(11,10,8,0.92), rgba(11,10,8,0));
    backdrop-filter: blur(2px);
  }

  .brand{
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    color: #f3ece1;
  }
  .brand img{ height: 34px; width: auto; display:block; filter: drop-shadow(0 0 6px rgba(255,122,46,0.35)); }

  nav ul{
    display: flex;
    gap: 2.2rem;
    list-style: none;
  }
  nav a{
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--ash);
    transition: color 0.25s ease;
    position: relative;
  }
  nav a:hover{ color: var(--flame-core); }
  nav a::after{
    content:"";
    position:absolute;
    left:0; right:0; bottom:-6px;
    height:1px;
    background: var(--ember);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  nav a:hover::after{ transform: scaleX(1); }

  @media (max-width: 720px){
    nav ul{ display:none; }
  }

  /* ---------- Hero ---------- */
  .hero{
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
  }

  .hero::before{
    content:"";
    position:absolute;
    inset: -20%;
    background:
      radial-gradient(ellipse 60% 45% at 50% 68%, rgba(255,122,46,0.20), transparent 70%),
      radial-gradient(ellipse 40% 30% at 50% 75%, rgba(255,210,122,0.12), transparent 70%);
    animation: emberPulse 7s ease-in-out infinite;
    z-index: 0;
  }
  @keyframes emberPulse{
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
  }

  .hero-logo{
    position: relative;
    z-index: 1;
    width: min(1000px, 60vw);
    margin-bottom: -6rem;
    opacity: 0;
    animation: forgeIn 1.4s ease-out 0.2s forwards;
    filter: drop-shadow(0 0 28px rgba(255,122,46,0.25));
  }

  @keyframes forgeIn{
    0%{ opacity: 0; transform: scale(0.92) translateY(14px); filter: brightness(2.4) drop-shadow(0 0 60px rgba(255,160,60,0.6)); }
    60%{ opacity: 1; }
    100%{ opacity: 1; transform: scale(1) translateY(0); filter: brightness(1) drop-shadow(0 0 28px rgba(255,122,46,0.25)); }
  }

  .hero h1{
    position: relative;
    z-index: 1;
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: 0.08em;
    opacity: 0;
    animation: riseUp 1s ease-out 0.9s forwards;
  }
  .hero .tagline{
    position: relative;
    z-index: 1;
    margin-top: 1.1rem;
    font-family: 'Spectral', serif;
    font-style: italic;
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    color: var(--ash);
    max-width: 38ch;
    opacity: 0;
    animation: riseUp 1s ease-out 1.15s forwards;
  }
  @keyframes riseUp{
    from{ opacity: 0; transform: translateY(16px); }
    to{ opacity: 1; transform: translateY(0); }
  }

  .hero .scroll-cue{
    position: absolute;
    bottom: 2.4rem;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--steel);
    opacity: 0;
    animation: riseUp 1s ease-out 1.6s forwards;
  }
  .hero .scroll-cue span{
    display: block;
    width: 1px;
    height: 28px;
    margin: 0.6rem auto 0;
    background: var(--ember-dim);
    animation: drip 2s ease-in-out infinite;
  }
  @keyframes drip{
    0%, 100%{ transform: scaleY(0.4); opacity: 0.4; }
    50%{ transform: scaleY(1); opacity: 1; }
  }

  /* ---------- Sections shared ---------- */
  section{
    padding: 7rem clamp(1.5rem, 6vw, 6rem);
    margin: 0 auto;
    position: relative;
  }

  .eyebrow{
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    color: var(--ember);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  .eyebrow::before{
    content:"";
    width: 22px; height: 1px;
    background: var(--ember-dim);
  }

  section h2{
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    margin-bottom: 1.6rem;
    max-width: 16ch;
  }

  .lede{
    font-size: 1.08rem;
    color: var(--ash);
    max-width: 58ch;
  }

  /* ---------- About ---------- */
  #about{
    border-top: 1px solid rgba(255,122,46,0.08);
  }
  .about-grid{
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-top: 2.5rem;
  }
  @media (max-width: 800px){
    .about-grid{ grid-template-columns: 1fr; }
  }
  .about-grid p{ color: #cdc4b8; margin-bottom: 1.1rem; }
  .about-grid p:last-child{ margin-bottom: 0; }

  .forge-marks{
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    border-left: 1px solid var(--steel);
    padding-left: 1.6rem;
  }
  .forge-marks .mark dt{
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 0.35rem;
  }
  .forge-marks .mark dd{
    font-size: 0.92rem;
    color: var(--ash);
  }

  /* ---------- Forge / Process ---------- */
  #process{
    background: var(--bg-raised);
    border-top: 1px solid rgba(255,122,46,0.06);
    border-bottom: 1px solid rgba(255,122,46,0.06);
  }
  .heats{
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--steel);
    border-radius: 2px;
    overflow: hidden;
  }
  @media (max-width: 900px){
    .heats{ grid-template-columns: 1fr; }
  }
  .heat{
    padding: 2.2rem 1.6rem;
    border-right: 1px solid var(--steel);
    position: relative;
    transition: background 0.3s ease;
  }
  .heat:last-child{ border-right: none; }
  @media (max-width: 900px){
    .heat{ border-right: none; border-bottom: 1px solid var(--steel); }
    .heat:last-child{ border-bottom: none; }
  }
  .heat:hover{ background: rgba(255,122,46,0.05); }
  .heat .temp{
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--ember-dim);
    letter-spacing: 0.2em;
    margin-bottom: 0.9rem;
  }
  .heat h3{
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
  }
  .heat p{
    font-size: 0.9rem;
    color: var(--ash);
  }

  /* ---------- Portfolio ---------- */
  .anvil-note{
    margin-top: 2.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--ember-dim);
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--flame-core);
    background: rgba(255,122,46,0.06);
  }
  .anvil-note .dot{
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 8px var(--ember);
    animation: glow 1.6s ease-in-out infinite;
  }
  @keyframes glow{
    0%, 100%{ opacity: 0.4; }
    50%{ opacity: 1; }
  }

  .projects{
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  @media (max-width: 760px){
    .projects{ grid-template-columns: 1fr; }
  }
  .project-card{
    border: 1px solid var(--steel);
    border-radius: 3px;
    padding: 1.8rem;
    background: linear-gradient(160deg, rgba(255,122,46,0.04), transparent 60%);
    position: relative;
    overflow: hidden;
  }
  .project-card.locked{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 180px;
    border-style: dashed;
    opacity: 0.7;
  }
  .project-card .stage{
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-bottom: 0.6rem;
  }
  .project-card h3{
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
  }
  .project-card p{
    font-size: 0.92rem;
    color: var(--ash);
  }
  .project-card .bar{
    margin-top: 1.2rem;
    height: 4px;
    width: 100%;
    background: var(--steel);
    border-radius: 2px;
    overflow: hidden;
  }
  .project-card .bar i{
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--ember-dim), var(--ember));
    border-radius: 2px;
  }

  /* ---------- Tools ---------- */
  #tools{
    border-top: 1px solid rgba(255,122,46,0.06);
  }
  .tools-row{
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
  }
  .tool-tag{
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    padding: 0.5rem 1rem;
    border: 1px solid var(--steel);
    border-radius: 2px;
    color: #d6cdc1;
    background: rgba(255,255,255,0.015);
    transition: border-color 0.25s ease, color 0.25s ease;
  }
  .tool-tag:hover{
    border-color: var(--ember-dim);
    color: var(--flame-core);
  }

  /* ---------- Contact ---------- */
  #contact{
    background: var(--bg-raised);
    border-top: 1px solid rgba(255,122,46,0.06);
    text-align: center;
  }
  #contact h2{ margin: 0 auto 1rem; }
  #contact .lede{ margin: 0 auto 2.4rem; }

  .contact-links{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
  }
  .contact-links a{
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    padding: 0.85rem 1.8rem;
    border: 1px solid var(--ember-dim);
    border-radius: 2px;
    color: var(--flame-core);
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  }
  .contact-links a:hover{
    background: var(--ember);
    color: #19120a;
    box-shadow: 0 0 24px rgba(255,122,46,0.35);
  }
  .contact-links a.primary{
    background: var(--ember);
    color: #19120a;
  }
  .contact-links a.primary:hover{
    background: var(--flame-core);
    box-shadow: 0 0 28px rgba(255,210,122,0.45);
  }

  /* ---------- Footer ---------- */
  footer{
    padding: 2.4rem clamp(1.5rem, 6vw, 6rem) 3rem;
    border-top: 1px solid var(--steel);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--steel);
    letter-spacing: 0.08em;
  }
  footer a{ color: var(--steel); }
  footer a:hover{ color: var(--ember); }

  /* ---------- Reduced motion ---------- */
  @media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    .hero-logo, .hero h1, .hero .tagline, .hero .scroll-cue{ opacity: 1; }
  }

  /* Focus visibility */
  a:focus-visible, .tool-tag:focus-visible{
    outline: 2px solid var(--flame-core);
    outline-offset: 3px;
  }