/* ============================================
   SKILLS PAGE
============================================ */

.skills-rule {
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
  flex-shrink: 0;
}

/* ============================================
   TITLE — layered typography, no imagery
============================================ */
.sk-title {
  max-width: 1140px;
  margin: 0 auto;
  padding: 160px 2.5rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.sk-title__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.sk-title__stack {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.sk-title__fill {
  position: relative;
  z-index: 2;
  color: var(--text);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.sk-title__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  color: var(--accent-gold);
  margin-top: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.55s forwards;
}

@media (max-width: 680px) {
  .sk-title { padding: 130px 1.5rem 2.5rem; }
}

/* ============================================
   SKILLS GRID — clean 3x2 grid, no photos
============================================ */
.sk-grid-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 2.5rem 12rem;
}

.sk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.sk-grid__cell {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: calc(var(--si) * 90ms + 100ms);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.sk-grid__cell:hover {
  box-shadow: 0 18px 40px -12px rgba(28,25,23,0.14);
  transform: translateY(-3px);
  border-color: transparent;
}

.sk-grid__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sk-grid__num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--border);
  transition: color 0.3s ease;
}

.sk-grid__cell:hover .sk-grid__num {
  color: var(--accent-gold);
}

.sk-grid__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--text);
  transition: color 0.3s ease;
}

.sk-grid__cell:hover .sk-grid__name {
  color: var(--accent-gold);
}

.sk-grid__meta {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}

.sk-grid__level {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sk-grid__level-dots {
  display: flex;
  gap: 3px;
}

.sk-grid__level-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.sk-grid__level--1 .sk-grid__level-dot:nth-child(-n+1) {
  background: var(--accent-gold);
}

.sk-grid__level--2 .sk-grid__level-dot:nth-child(-n+2) {
  background: var(--accent-gold);
}

.sk-grid__level--3 .sk-grid__level-dot {
  background: var(--accent-gold);
}

.sk-grid__level-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .sk-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .sk-grid { grid-template-columns: 1fr; }
  .sk-grid__cell { padding: 1.8rem 1.5rem; }
}

/* ============================================
   TOOLS SECTION
============================================ */
.skills-tools {
  padding: 4rem 2.5rem 5rem;
  max-width: 100%;
  margin-bottom: 8rem;
}

.skills-tools__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1140px;
  margin: 0 auto 2.5rem;
}

.skills-tools__label span {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
}

.skills-tools__grid {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tool-tag {
  border: 1px solid var(--border);
  padding: 0.6rem 1.4rem;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: #fff;
  transition: all 0.2s;
  cursor: default;
}

.tool-tag:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(107, 48, 56, 0.03);
}



/* ============================================
   JOURNEY TIMELINE
============================================ */
.skills-journey {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5rem 9rem;
}

.skills-journey__header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 4rem;
}

.skills-journey__header span {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  white-space: nowrap;
}

.skills-journey__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skills-journey__track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.journey-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: calc(var(--ji) * 150ms + 200ms);
}

.journey-item__year {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent-gold);
  text-align: right;
  line-height: 1;
  padding-top: 0.2rem;
}

.journey-item--right .journey-item__year {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
}

.journey-item__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  background: var(--bg);
  justify-self: center;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
  transition: background 0.3s;
}

.journey-item__dot--active {
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(107,48,56,0.15);
}

.journey-item:hover .journey-item__dot {
  background: var(--accent-gold);
}

.journey-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0;
}

.journey-item--right .journey-item__content {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.journey-item--right .journey-item__dot {
  grid-column: 2;
  grid-row: 1;
}

.journey-item--right .journey-item__tags {
  justify-content: flex-end;
}

.journey-item__content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.journey-item__sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.journey-item__content p:not(.journey-item__sub) {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.75;
}

.journey-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.journey-item__tags span {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 3px 10px;
  background: #fff;
}

/* RESPONSIVE */
@media (max-width: 680px) {
  .skills-journey__track::before { left: 20px; }

  .journey-item,
  .journey-item--right {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto;
  }

  .journey-item__year,
  .journey-item--right .journey-item__year {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    font-size: 1.8rem;
  }

  .journey-item__dot,
  .journey-item--right .journey-item__dot {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .journey-item__content,
  .journey-item--right .journey-item__content {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }

  .journey-item--right .journey-item__tags {
    justify-content: flex-start;
  }
}


/* MOBILE SPACING */
@media (max-width: 680px) {
  .sk-grid-wrap { padding: 1rem 1.5rem 6rem; }
  .skills-journey { padding: 0 1.5rem 5rem; }
}

/* ============================================
   NY DESIGN 9 — datablad: en stor panel med nivåstaplar, kort med accentkant, rektangulära verktyg
============================================ */
.skills-rule { background: #6b3038; height: 1px; width: 44px; }
.sk-title__photo { display: none; }

/* Topp */
.sk-title { max-width: 900px; padding: 170px 1.5rem 4rem; align-items: center; text-align: center; gap: 1.2rem; }
.sk-title__eyebrow { color: #6b3038; letter-spacing: 0.34em; justify-content: center; }
.sk-title__eyebrow::after { content: ""; width: 44px; height: 1px; background: #6b3038; }
.sk-title__stack { font-size: clamp(3rem, 7vw, 5.4rem); }
.sk-title__tagline { color: #6b3038; }

/* Kompetenser – kort med färgad nummerlist */
.sk-grid-wrap { max-width: 1020px; padding: 2rem 2.5rem 8rem; }
.sk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; height: auto; padding: 0; overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none; }
.sk-grid__cell { position: relative; flex: none; display: grid; grid-template-columns: 70px 1fr; grid-template-rows: auto 1fr auto; align-items: start; gap: 0; min-height: 150px; padding: 0; border: 1px solid rgba(107,48,56,0.16); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(107,48,56,0.07); text-align: left; overflow: hidden; transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; }
.sk-grid__cell::before, .sk-grid__cell::after { display: none; }
.sk-grid__cell:hover { transform: translateY(-5px); padding-left: 0; box-shadow: 0 22px 44px rgba(107,48,56,0.18); border-color: rgba(107,48,56,0.45); }
.sk-grid__top { display: contents; position: static; }
.sk-grid__num { grid-column: 1; grid-row: 1 / span 3; order: 0; align-self: stretch; display: grid; place-items: center; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: linear-gradient(170deg, #7d3d46 0%, #6b3038 55%, #4a2128 100%); font-style: italic; font-size: 1.35rem; line-height: 1; color: #fff; -webkit-text-stroke: 0; transition: filter .4s; }
.sk-grid__cell:hover .sk-grid__num { background: linear-gradient(170deg, #8a4750 0%, #6b3038 55%, #4f232a 100%); color: #fff; border: 0; }
.sk-grid__name { grid-column: 2; grid-row: 1; order: 0; margin: 0; padding: 1.5rem 1.6rem 0; font-size: 1.65rem; line-height: 1.1; color: var(--text); transform: none; writing-mode: horizontal-tb; transition: color .3s; }
.sk-grid__cell:hover .sk-grid__name { color: #6b3038; font-style: italic; }
.sk-grid__meta { grid-column: 2; grid-row: 2; order: 0; margin: 0; max-width: none; min-width: 0; opacity: 1; padding: 0.5rem 1.6rem 0; font-size: 12.5px; color: var(--text-mid); }
.sk-grid__level { grid-column: 2; grid-row: 3; order: 0; flex-direction: row; align-items: center; gap: 0.6rem; padding: 1rem 1.6rem 1.4rem; margin: 0; opacity: 1; }
.sk-grid__level-dots { display: flex; gap: 4px; }
.sk-grid__level-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(107,48,56,0.2); }
.sk-grid__level--1 .sk-grid__level-dot:nth-child(-n+1), .sk-grid__level--2 .sk-grid__level-dot:nth-child(-n+2), .sk-grid__level--3 .sk-grid__level-dot { background: #6b3038; }
.sk-grid__level-label { font-size: 8.5px; letter-spacing: 0.22em; color: #6b3038; text-align: left; }
@media (max-width: 760px) {
  .sk-grid { grid-template-columns: 1fr; gap: 1rem; }
  .sk-grid__cell { grid-template-columns: 56px 1fr; }
  .sk-grid__name { padding: 1.3rem 1.3rem 0; font-size: 1.45rem; }
  .sk-grid__meta { padding: 0.4rem 1.3rem 0; }
  .sk-grid__level { padding: 0.9rem 1.3rem 1.2rem; }
}

/* Min resa – staplade kort med accentkant */
.skills-journey { max-width: 980px; padding: 0 2.5rem 8rem; }
.skills-journey__header { justify-content: center; margin-bottom: 3rem; }
.skills-journey__header span { color: #6b3038; letter-spacing: 0.3em; }
.journey-item__sub { color: #6b3038; }
.journey-item__tags span { border-radius: 999px; border-color: rgba(107,48,56,0.3); }
@media (min-width: 681px) {
  .skills-journey__track { display: flex; flex-direction: column; gap: 1.1rem; }
  .skills-journey__track::before { display: none; }
  .journey-item, .journey-item--right { grid-template-columns: 190px 1fr; gap: 0 2rem; align-items: start; padding: 1.9rem 2.2rem; background: #fff; border: 1px solid rgba(107,48,56,0.14); border-left: 4px solid #6b3038; border-radius: 4px 22px 22px 4px; box-shadow: 0 12px 30px rgba(107,48,56,0.07); transition: transform .3s, box-shadow .3s; }
  .journey-item:hover { transform: translateX(6px); box-shadow: 0 20px 42px rgba(107,48,56,0.14); }
  .journey-item__dot, .journey-item--right .journey-item__dot { display: none; }
  .journey-item__year, .journey-item--right .journey-item__year { grid-column: 1; grid-row: 1; justify-self: start; text-align: left; padding: 0; background: none; color: #6b3038; font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0; text-transform: none; border-radius: 0; line-height: 1.15; }
  .journey-item__content, .journey-item--right .journey-item__content { grid-column: 2; grid-row: 1; text-align: left; padding: 0; background: none; border: 0; box-shadow: none; }
  .journey-item--right .journey-item__tags { justify-content: flex-start; }
}
@media (max-width: 680px) { .journey-item__year, .journey-item--right .journey-item__year { background: none; color: #6b3038; padding: 0; letter-spacing: 0; text-transform: none; font-size: 1.6rem; border-radius: 0; font-family: var(--font-display); } }

/* Verktyg – rektangulära etiketter */
.skills-tools { max-width: 980px; margin: 0 auto 6rem; padding: 0 2.5rem; }
.skills-tools__label { justify-content: center; margin: 0 auto 2rem; }
.skills-tools__label span { color: #6b3038; letter-spacing: 0.3em; }
.skills-tools__label::after { content: ""; width: 44px; height: 1px; background: #6b3038; }
.skills-tools__grid { display: flex; justify-content: center; gap: 0.6rem; max-width: none; }
.tool-tag { border: 1px solid rgba(107,48,56,0.35); border-radius: 6px; background: #fff; color: #6b3038; padding: 0.65rem 1.4rem; transition: background .3s, color .3s, transform .3s; }
.tool-tag:hover { background: #6b3038; color: #fff; border-color: #6b3038; transform: translateY(-3px); }

@media (max-width: 680px) {
  .sk-title { padding: 125px 1.2rem 2.6rem; }
  .sk-grid-wrap { padding: 1rem 1.2rem 4.5rem; }
  .skills-journey { padding: 0 1.2rem 4.5rem; }
  .skills-journey__header { justify-content: flex-start; }
  .skills-tools { padding: 0 1.5rem; margin-bottom: 4rem; }
}

/* ============================================
   RUBRIK — centrerad, "tenser" kursivt i bordeaux
============================================ */
.sk-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 190px 1.5rem 6.5rem;
  gap: 0;
}
.sk-title__stack {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 8.5vw, 6.6rem);
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.sk-title__fill { color: var(--text); }
.sk-title__fill em { font-style: italic; color: #6b3038; }
.sk-title__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #6b3038;
}
.sk-title__tagline::before,
.sk-title__tagline::after {
  content: "";
  width: 36px;
  height: 1px;
  background: #6b3038;
}
@media (max-width: 680px) {
  .sk-title { padding: 135px 1rem 4rem; }
  .sk-title__stack { font-size: clamp(2.3rem, 11vw, 3.6rem); letter-spacing: 0.02em; }
}

/* Uppräknande siffror under rubriken */
@property --n { syntax: "<integer>"; initial-value: 0; inherits: false; }
.sk-title { padding-bottom: 5.5rem; }
.sk-stats { display: flex; justify-content: center; margin-top: 2.6rem; }
.sk-stats > div { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; padding: 0 2.6rem; }
.sk-stats > div + div { border-left: 1px solid rgba(107,48,56,0.35); }
.sk-num { display: block; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 2.8rem; line-height: 1; color: #6b3038; counter-reset: skn var(--n); }
.sk-num::before { content: counter(skn); }
.sk-num--6 { animation: skC6 1.8s cubic-bezier(.2,.7,.2,1) .5s forwards; }
.sk-num--12 { animation: skC12 2.1s cubic-bezier(.2,.7,.2,1) .5s forwards; }
.sk-num--4 { animation: skC4 1.6s cubic-bezier(.2,.7,.2,1) .5s forwards; }
@keyframes skC6 { to { --n: 6; } }
@keyframes skC12 { to { --n: 12; } }
@keyframes skC4 { to { --n: 4; } }
.sk-stats span { font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-mid); }
@media (prefers-reduced-motion: reduce) {
  .sk-num--6 { --n: 6; animation: none; } .sk-num--12 { --n: 12; animation: none; } .sk-num--4 { --n: 4; animation: none; }
}
@media (max-width: 680px) {
  .sk-title { padding-bottom: 3.6rem; }
  .sk-stats > div { padding: 0 1.1rem; }
  .sk-num { font-size: 2.2rem; }
  .sk-stats span { font-size: 8.5px; letter-spacing: 0.2em; }
}
.sk-stats > div:last-child span { white-space: nowrap; }
@media (max-width: 680px) { .sk-stats > div:last-child span { white-space: normal; text-align: center; max-width: 9rem; } }
