@font-face{
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Tumbtest";
  src: url("../fonts/tumbtest-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Janeiro";
  src: url("../fonts/Janeiro-DEMO.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg:#f4f4f4;
  --ink:#0b0b0f;
  --muted: rgba(11,11,15,.55);
  --ease: cubic-bezier(.2,.9,.1,1);
  --gutter: 40px;
  --topbar-h: 72px;
  --hero-size: clamp(10px, 9.5vw, 240px);
  --hero-track: -0.02em;
}



*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family: "Satoshi", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.muted{ color:var(--muted); }

.top-meta{
  display: none !important;
}

.top-meta__col{
  display:flex;
  flex-direction:column;
  gap: 2px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: .01em;
  mix-blend-mode: difference;
}
.top-meta__col span:first-child{
  font-weight: 600;
  color: rgba(11,11,15,.8);
}

.menu-fab{
  position: fixed;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;

  width: 70px;
  height: 70px;
  border-radius: 50%;

  display: grid;
  place-items: center;

  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  isolation: auto;

  border: none;
  padding: 0;
}

/* Viktigt: ingen focus/outline som skapar ringar */
.menu-fab:focus,
.menu-fab:focus-visible{
  outline: none;
}

/* Se till att själva ikonen inte skapar egna ytor */
.hamburger{
  display: grid;
  place-items: center;
}

/* From Uiverse.io by JulanDeAlb */
.hamburger{ cursor:pointer; display:block; }
.hamburger input{ display:none; }
.hamburger svg{
  height: 4.5em;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.line{
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
              stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.line-top-bottom{ stroke-dasharray: 12 63; }
.hamburger input:checked + svg{ transform: rotate(-45deg); }
.hamburger input:checked + svg .line-top-bottom{
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

.site{
  position: relative;
  z-index: 2;
  background: var(--bg);
  margin-bottom: 400px;
}
section{ padding: 120px 0; }

.hero{
  min-height: 100svh;
  padding: 20px 0 0;
  display: block;
  align-content: start;
}

/* (Gamla hero__type/wordWrap stilar borttagna - ny design använder hero__title) */











.about .page{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.about h2{
  margin:0 0 22px;
  font-size: 32px;
  font-weight: 700;
}
.about p{
  margin:0;
  font-size: clamp(28px, 4.6vw, 58px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 26ch;
}


/* ===== WORK SPLIT SCREEN ===== */
.work-split{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px 0 300px;
  --work-gap: 64px;
}

.work-split__title-wrap{
  height: clamp(240px, 50vh, 560px);
  padding: 0 var(--gutter);
  display: flex;
  align-items: flex-start;
}

.work-split__title{
  margin: 0;
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--ink);
  position: sticky;
  top: 40px;
  z-index: 5;
}

.work-split__row{
  display: grid;
  grid-template-columns: 2fr 3fr;
  align-items: stretch;
  margin-left: -32px;
  column-gap: var(--work-gap);
}

.work-split__list{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.work-split__scroll{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
}

.work-split__item{
  display: block;
  padding: 0.1em 0;
  margin: 0;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 1;
  transition: none;
  cursor: pointer;
  white-space: nowrap;
}

.work-split__item-img{
  display: none;
}

/* När man hovrar över listan: alla blir grå utom den aktiva */
.work-split__scroll.is-hovering .work-split__item{
  opacity: 0.25;
  transition: none !important;
}

.work-split__scroll.is-hovering .work-split__item:hover{
  opacity: 1;
  transition: none !important;
}

.work-split__preview{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--work-gap);
  padding: 0 80px 0 0;
  position: relative;
}

.work-split__preview-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: none;
}

.work-split__row.is-hovering .work-split__preview-inner{
  opacity: 1;
}

.work-split__preview-inner{
  overflow: hidden;
  border-radius: 0;
}

.work-split__preview-inner img{
  width: 250px;
  height: 250px;
  object-fit: cover;
  transform: scale(1.15);
  transition: none;
}

.work-split__keywords{
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.work-split__row.is-hovering .work-split__keywords{
  opacity: 1;
}

.work-split__keywords:empty{
  display: none;
}

/* Mobile: stack vertically */
@media (max-width: 900px){
  .work-split{
    min-height: auto;
    padding: 80px 0 120px;
  }

  .work-split__title{
    margin: 0 0 60px;
    font-size: clamp(42px, 12vw, 80px);
    position: static;
  }

  .work-split__row{
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .work-split__list{
    padding: 0 var(--gutter);
    align-items: stretch;
  }

  .work-split__scroll{
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .work-split__preview{
    display: none;
  }

  .work-split__item{
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 1;
    font-size: clamp(24px, 7vw, 42px);
    padding: 0;
    white-space: normal;
    width: fit-content;
    max-width: 100%;
  }

  /* Odd items: left-aligned, image inline after text */
  .work-split__item:nth-child(odd){
    display: block;
    text-align: left;
  }

  .work-split__item:nth-child(odd) .work-split__item-text{
    display: inline;
  }

  .work-split__item:nth-child(odd) .work-split__item-img{
    display: inline-block;
    vertical-align: -0.01em;
    margin-left: 0.2em;
  }

  /* Even items: right-aligned (image left, text right) */
  .work-split__item:nth-child(even){
    flex-direction: row-reverse;
    justify-content: flex-start;
    text-align: right;
    align-self: flex-end;
  }

  .work-split__item-text{
    display: block;
  }

  .work-split__item-img{
    display: block;
    width: 0.75em;
    height: 0.75em;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
    align-self: center;
  }

  .work-split__scroll.is-hovering .work-split__item{
    opacity: 1;
  }
}

/* Legacy work styles (keeping for single-project if needed) */
.work__header{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}
.work__header h2{
  margin:0;
  font-size: clamp(64px, 9vw, 150px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.work__header span{
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.work__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.work-card{
  border-radius: 18px;
  overflow:hidden;
  background: #1f1f1f;
}
.work-card__link{
  display:block;
  text-decoration:none;
}
.work-card__media{
  aspect-ratio: 16/7;
  background: #2a2a2a;
}
.work-card__meta{
  display:flex;
  justify-content: space-between;
  padding: 20px 20px;
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

.cv h2,
.contact h2{
  margin:0 0 18px;
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 800;
}

.cv__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 26px;
}
.cv h3{
  margin:0 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cv p{ margin:0; max-width: 60ch; }

.contact__lead{
  margin:0 0 16px;
  font-size: 22px;
  color: #5a5a5a;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 32ch;
  padding-bottom: 32px;
}
.contact__row{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.contact__cta{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;

}

/* Overlay */
.overlay{
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;

  /* Fullscreen white background that fades in */
  background: #ffffff;
  opacity: 0;
  transition: opacity 420ms var(--ease);
}
.overlay.is-open{
  pointer-events: auto;
  opacity: 1;
}

.overlay__backdrop{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.overlay__panel{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 2;
}

.overlay__brand strong{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.overlay__close{
  border:0;
  background: transparent;
  font-size: 18px;
  cursor:pointer;
}

.overlay__nav{
  display: flex;
  justify-content: center;
  align-items: center;
}
.overlay__menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.overlay__menu > li{
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.overlay.is-open .overlay__menu > li{
  opacity: 1;
  transform: translateY(0);
}
.overlay__menu a{
  display:flex;
  justify-content: center;
  padding: 12px 24px;
  text-decoration:none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 22px;
  position: relative;
}
.overlay__menu a::after{
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 8px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms var(--ease);
}
.overlay__menu a:hover::after{
  transform: scaleX(1);
}

@media (max-width: 860px){
  :root{ --gutter: 18px; --topbar-h: 0px; }
  .top-meta{ display: none !important; }
  .menu-fab{ right: 14px; }
  .work__grid{ grid-template-columns: 1fr; }
  .cv__grid{ grid-template-columns: 1fr; }
  .hero__labels{ inset: auto var(--gutter) calc(34px + var(--hero-size) * 0.95) var(--gutter); }
  .hero__label--web{ right: auto; left: var(--gutter); }
}

section{ padding: 120px 0; }

.page{
  margin: 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Stoppa "blå rand" (focus outline) på overlay/panel när menyn öppnas */
.overlay__panel:focus,
.overlay__panel:focus-visible{
  outline: none;
}

/* Om det är själva knappen/labeln som får focus och ritar en outline */
.menu-fab:focus,
.menu-fab:focus-visible,
.hamburger:focus,
.hamburger:focus-visible{
  outline: none;
}

/* Om länkarna får en blå outline och du vill egen styling istället */
.overlay__menu a:focus{
  outline: none;
}
.overlay__menu a:focus-visible{
  outline: 2px solid rgba(11,11,15,.35);
  outline-offset: 4px;
  border-radius: 12px;
}

/* iOS/Safari kan rita "tap highlight" – ta bort för overlayns klickytor */
.menu-fab,
.overlay__menu a,
.overlay__close,
.overlay__backdrop{
  -webkit-tap-highlight-color: transparent;
}

.js-decrypt{
  display:inline-flex;
  align-items: baseline;
  white-space: pre;
  font-variant-ligatures: none;
}

.js-decrypt .dec-cell{
  display:inline-block;
  width: var(--dec-cell, 0.62em); /* fallback om JS inte hinner */
  text-align: center;            /* center känns stabilast visuellt */
}

.scroll-reveal{
  margin: 0px 0;
  transform-origin: 0% 50%;
}

.scroll-reveal-text{
  font-size: clamp(28px, 4.6vw, 58px); /* matchar din about p */
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 26ch;
}

.scroll-reveal-text .word{
  display: inline-block;
  will-change: opacity, filter, transform;
}

.project{
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.project-hero{
  position: relative;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);

  height: calc(100svh - var(--topbar-h) - 32px);
}

.project-hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-hero__shade{
  display: none;
}

.project-hero__meta{
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: min(72ch, calc(100% - 36px));
  z-index: 2;
}

.project-hero__title{
  margin: 0;
  font-size: clamp(24px, 3.6vw, 48px);
  line-height: .95;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #fff;
  padding-bottom: 20px;
  padding-left: 20px;
}

.project-hero__year{
  margin: 10px 0 0;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.82);
}

.project-hero__back{
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;

  display: grid;
  place-items: center;

  background: none;

  text-decoration: none;
  border: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms ease;
}

.project-hero__backIcon{
  width: 44px;
  height: 44px;
  fill: #fff;
  transform: rotate(90deg);
  transition: transform 220ms ease;
}

.project-hero__back:hover{
  transform: translateX(-3px);
}

.project-hero__back:hover .project-hero__backIcon{
  transform: rotate(90deg);
}

.project-hero__back:focus,
.project-hero__back:focus-visible{
  outline: none;
}

.project-hero__back:focus-visible{
  box-shadow: 0 0 0 2px rgba(11,11,15,.25);
}

.project-content{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
  padding: 0 var(--gutter);
}

.project-body{
  max-width: 72ch;
  font-size: 18px;
  line-height: 1.5;
}

.project-showcase{
  display: flex;
  justify-content: flex-end;
}

.project-showcase__sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 40px;
  box-sizing: border-box;
}

.project-showcase__link{
  position: relative;
  display: block;
  height: 100%;
  cursor: none;
}

.project-showcase__img{
  width: auto;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}

.project-showcase__hover{
  position: fixed;
  top: 0;
  left: 0;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-radius: 50px;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: opacity 0.2s ease;
}

.project-showcase__link:hover .project-showcase__hover{
  opacity: 1;
}

@media (max-width: 900px){
  .project-content{
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
    padding: 0;
  }

  .project-showcase{
    order: -1;
    justify-content: center;
  }

  .project-showcase__sticky{
    position: relative;
    top: auto;
    height: auto;
    padding: 0;
    max-width: 100%;
  }

  .project-showcase__link{
    cursor: auto;
  }

  .project-showcase__img{
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  /* Hide cursor pill on touch devices */
  .project-showcase__hover{
    display: none;
  }

  .project-body{
    padding: 0 var(--gutter);
  }

  .project-visit{
    padding: 40px var(--gutter) 60px;
  }

  .project-visit__link{
    font-size: 20px;
  }
}

/* Project hero mobile */
@media (max-width: 900px){
  .single-project .project{
    padding: var(--gutter);
  }

  .project-hero{
    height: calc(70svh - (var(--gutter) * 2));
    border-radius: 14px;
  }

  .project-hero__title{
    font-size: clamp(18px, 5vw, 32px);
    padding-left: 14px;
    padding-bottom: 14px;
  }

  .project-hero__year{
    display: none;
  }

  .project-hero__meta{
    left: 10px;
    bottom: 10px;
  }

  .project-hero__back{
    top: 14px;
    left: 14px;
  }

  .project-hero__backIcon{
    width: 44px;
    height: 44px;
  }
}

.project-visit{
  padding: 80px var(--gutter);
}

.project-visit__link{
  position: relative;
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
}

.project-visit__link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms var(--ease);
}

.project-visit__link:hover::after{
  transform: scaleX(1);
}

/* LIGHT HERO MODE (när bilden är ljus) */
.project-hero.is-light .project-hero__title{
  color: #fff;
}

.project-hero.is-light .project-hero__year{
  color: rgba(255,255,255,.82);
}

.project-hero.is-light .project-hero__shade{
  opacity: .25;
}

.project-hero.is-light .project-hero__back{
  background: none;
}

.project-hero.is-light .project-hero__backIcon{
  fill: #fff;
}

.single-project{
  --topbar-h: 0px;
}

.single-project .menu-fab{
  display:none;
}

.single-project .top-meta,
.single-project .top-gradient-blur{
  display: none !important;
}

/* Project: centrera hero-kortet med exakt lika marginal runtom */
.single-project .project{
  min-height: 100svh;
  padding: var(--gutter);
  display: grid;
  place-items: left;
}

/* själva kortet */
.single-project .project-hero{
  width: 100%;
  height: calc(100svh - (var(--gutter) * 2));
  border-radius: 18px;              /* behåll din look */
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  position: relative;
  margin: 0;                        /* nolla ev. default-margins */
}

/* bilden fyller kortet */
.single-project .project-hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== WORK CARDS - NY DESIGN ===== */

.work-card{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1a;
}

.work-card__link{
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* Media container */
.work-card__media{
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #2a2a2a;
}

.work-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
}

.work-card__imgFallback{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

/* Corner title - default state */
.work-card__cornerTitle{
  display: none;
}

/* Slider overlay - hover state */
.work-card__slider{
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
}

.work-card__sliderContent{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  height: 100%;
  padding: 24px;
  gap: 20px;
}

.work-card__sliderText{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.work-card__sliderTitle{
  margin: 0;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.work-card__sliderYear{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-card__sliderDesc{
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 28ch;
}

.work-card__sliderImage{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 10px;
  padding-right: 8px;
}

.work-card__sliderImage img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transform: scale(1.04);
  -webkit-mask-image: var(--project-mask);
  mask-image: var(--project-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.work-card:nth-child(6n+1) .work-card__sliderImage img{
  --project-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cpath d='M409.7 310.3 480 240l-70.3-70.3V70.3h-99.4L240 0l-70.3 70.3H70.3v99.4L0 240l70.3 70.3v99.4h99.4L240 480l70.3-70.3h99.4v-99.4z' fill='%23fff'/%3E%3C/svg%3E");
}

.work-card:nth-child(6n+2) .work-card__sliderImage img{
  --project-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cpath d='M480 240c0-29.1-20.7-55.8-55.2-76.5 9.7-39.1 5.5-72.6-15-93.2-20.7-20.6-54.2-24.8-93.3-15.1C295.8 20.7 269.1 0 240 0s-55.8 20.7-76.5 55.2c-39.1-9.7-72.6-5.5-93.2 15s-24.8 54.2-15.1 93.2C20.7 184.3 0 211 0 240s20.7 55.8 55.2 76.5c-9.7 39.1-5.5 72.6 15 93.2 20.7 20.6 54.2 24.8 93.2 15.1C184.3 459.3 211 480 240 480s55.8-20.7 76.5-55.2c39.1 9.7 72.6 5.5 93.2-15s24.8-54.2 15.1-93.2C459.3 295.8 480 269 480 240Z' fill='%23fff'/%3E%3C/svg%3E");
}

.work-card:nth-child(6n+3) .work-card__sliderImage img{
  --project-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cpath d='M398.7 240A239.4 239.4 0 0 0 480 60a60 60 0 0 0-60-60c-71.7 0-136 31.4-180 81.3A239.4 239.4 0 0 0 60 0 60 60 0 0 0 0 60c0 71.7 31.4 136 81.3 180A239.4 239.4 0 0 0 0 420a60 60 0 0 0 60 60c71.7 0 136-31.4 180-81.3A239.4 239.4 0 0 0 420 480a60 60 0 0 0 60-60c0-71.7-31.4-136-81.3-180Z' fill='%23fff'/%3E%3C/svg%3E");
}

.work-card:nth-child(6n+4) .work-card__sliderImage img{
  --project-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cpath d='M437.3 158.3A99.5 99.5 0 0 0 321.6 42.8a99.5 99.5 0 0 0-163.4 0A99.5 99.5 0 0 0 42.7 158.3a99.5 99.5 0 0 0 0 163.4 99.5 99.5 0 0 0 115.6 115.6 99.5 99.5 0 0 0 163.4 0 99.5 99.5 0 0 0 115.5-115.6 99.5 99.5 0 0 0 0-163.4Z' fill='%23fff'/%3E%3C/svg%3E");
}

.work-card:nth-child(6n+5) .work-card__sliderImage img{
  --project-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Ccircle cx='240' cy='240' r='240' fill='%23fff'/%3E%3C/svg%3E");
}

.work-card:nth-child(6n) .work-card__sliderImage img{
  --project-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cpath d='M0 0h230c138 0 250 112 250 250v230H250C112 480 0 368 0 230V0Z' fill='%23fff'/%3E%3C/svg%3E");
}

/* ===== HOVER STATE ===== */
@media (hover: hover){
  .work-card:hover .work-card__cornerTitle{
    opacity: 0;
  }

  .work-card:hover .work-card__slider{
    opacity: 1;
    visibility: visible;
  }
}

/* Focus state för tillgänglighet */
.work-card:focus-within .work-card__cornerTitle{
  opacity: 0;
}

.work-card:focus-within .work-card__slider{
  opacity: 1;
  visibility: visible;
}

/* Cursor follower - LÄS MER */
.work-card__cursor{
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  padding: 10px 18px;
  background: #3900a3;
  color: #ff1427;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 80ms ease, transform 80ms ease;
  white-space: nowrap;
}

.work-card__cursor.is-visible{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Hamburger: default = röd (över hero) */
.menu-fab{
  background: transparent !important;
  border: 0;
  padding: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  isolation: auto;
  mix-blend-mode: normal;
  color: var(--hero-red, #ff1427);
  transition: color 0.3s ease;
}

.menu-fab svg{
  display: block;
  mix-blend-mode: normal;
}

.menu-fab .line{
  stroke: currentColor !important;
}

/* Hamburger: utanför hero = difference blend */
.menu-fab--blend{
  mix-blend-mode: difference;
  color: #fff;
}
.menu-fab--blend svg{
  mix-blend-mode: difference;
}


/* Respektera reduced motion */
@media (prefers-reduced-motion: reduce){
  .work-card__img,
  .work-card__slider,
  .work-card__sliderContent,
  .work-card__cornerTitle{
    transition: none !important;
  }
}

.emoji-hand{
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.15em;
  vertical-align: -0.12em;
  display: inline-block;

  transform: rotate(0deg);
  transition: transform 220ms ease;

  pointer-events: none;
  user-select: none;
}

@media (hover:hover){
  h2:hover .emoji-hand{
    transform: rotate(-6deg);
  }
}

.contact__cta{
  position: relative;
  display: inline-flex;
  align-items: baseline;

  color: var(--ink);
  text-decoration: none;

  font-weight: 700;
  letter-spacing: -0.02em;

  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
}

.contact__cta::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms var(--ease);
}

.contact__cta:hover::after{
  transform: scaleX(1);
}

.contact__cta:focus-visible{
  outline: none;
}
.contact__cta:focus-visible::after{
  transform: scaleX(1);
}



/* ===== Scroll reveal system ===== */

:root{
  --reveal-ease: cubic-bezier(.2,.9,.1,1);
  --reveal-dur: 820ms;
  --reveal-stagger: 70ms;
}

/* Bas: allt som ska revealas */
.reveal{
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(10px);
  will-change: transform, opacity, filter;
}

/* När den triggas */
.reveal.is-in{
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  transition:
    opacity 520ms var(--reveal-ease),
    transform var(--reveal-dur) var(--reveal-ease),
    filter var(--reveal-dur) var(--reveal-ease);
  transition-delay: var(--d, 0ms);
}

/* Variant: slide från vänster/höger */
.reveal[data-reveal="left"]{ transform: translate3d(-22px, 0, 0); }
.reveal[data-reveal="right"]{ transform: translate3d(22px, 0, 0); }
.reveal[data-reveal="up"]{ transform: translate3d(0, 22px, 0); }

/* Hero: slide up from bottom line */
.hero .hero__reveal{
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: none;
  will-change: transform, opacity;
}

.hero .hero__reveal.is-in{
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 1100ms var(--reveal-ease),
    transform 1800ms var(--reveal-ease);
  transition-delay: calc(var(--d, 0ms) + 260ms);
}

/* Variant: “clip”-wipe för stora rubriker (känns mer premium än fade) */
.reveal[data-reveal="wipe"]{
  opacity: 1;            /* wipe ska inte kännas som fade */
  filter: none;
  transform: none;
  clip-path: inset(0 0 100% 0);
}
.reveal[data-reveal="wipe"].is-in{
  clip-path: inset(0 0 0 0);
  transition:
    clip-path 900ms var(--reveal-ease);
  transition-delay: var(--d, 0ms);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}

/* ===== FOOTER ===== */
.site-footer{
  background: var(--hero-green);
  color: var(--hero-red);
  border-radius: 0;
  margin: 0;
  overflow: hidden;
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: -400px;
}

.footer-inner{
  display: flex;
  gap: 80px;
  padding: 60px var(--gutter) 40px;
  max-width: 1400px;
}

.footer-col ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li{
  margin-bottom: 8px;
}

.footer-col a{
  color: var(--hero-red);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
}

.footer-col a::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms var(--ease);
}

.footer-col a:hover::after{
  transform: scaleX(1);
}

.footer-bottom{
  padding: 40px 0 35px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: visible;
}

.footer-bottom__text{
  display: block;
  font-family: "Satoshi", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--hero-red);
  padding: 0 var(--gutter);
  width: 100%;
  box-sizing: border-box;
  font-size: clamp(24px, 5.2vw, 140px);
  white-space: nowrap;
}

.footer-bottom__text-inner{
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 900px){
  .footer-inner{
    gap: 40px;
    padding: 40px var(--gutter) 30px;
  }
}

/* ===== HERO LAYOUT ===== */

:root{
  --hero-green: #022DFF;
  --hero-red: #f4f4f4;
}

.hero{
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background: var(--hero-green);
  color: var(--hero-red);
  position: relative;
  overflow: visible;
}

.hero__content{
  --hero-pad: clamp(24px, 4vw, 48px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--hero-pad);
  padding-bottom: calc(var(--hero-pad) + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr auto;
  align-items: start;
  gap: clamp(12px, 2.4vw, 28px);
  overflow: visible;
}

.hero__top{
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.6vw, 16px);
  overflow: visible;
}

.hero__logo{
  width: 100%;
  margin: 0;
  padding: 0.1em 0 0.15em 0.08em;
  font-family: "Satoshi", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 22vw;
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--hero-red);
  overflow: visible;
}

.hero__label{
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--hero-red);
}

.hero__label--graphic{
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.hero__email{
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  justify-self: start;
  color: var(--hero-red);
  text-decoration: none;
  font-size: clamp(20px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  width: max-content;
  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
}

.hero__cta{
  display: none;
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  justify-self: start;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--hero-red);
  color: var(--hero-green);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: lowercase;
}

.hero__email::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms var(--ease);
}

.hero__email:hover::after{
  transform: scaleX(1);
}

.hero__email:focus-visible{
  outline: none;
}
.hero__email:focus-visible::after{
  transform: scaleX(1);
}

.hero__scroll{
  grid-column: 2;
  grid-row: 4;
  justify-self: end;
  align-self: end;
  width: clamp(120px, 12vw, 220px);
  color: var(--hero-red);
}

.hero__scroll svg{
  display: block;
  width: 100%;
  height: auto;
}

.hero__scroll path{
  fill: currentColor;
}

/* ===== HERO MOBILE ===== */

@media (max-width: 900px){
  .hero__content{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    padding-top: calc(var(--hero-pad) + 64px + env(safe-area-inset-top, 0px));
    align-content: start;
    gap: 16px;
  }

  .hero__logo{
    width: 100%;
    max-width: 100%;
  }

  .hero__label--graphic{
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
    align-self: center;
    text-align: right;
  }

  .hero__email{
    grid-column: 1;
    grid-row: 4;
    display: none;
  }

  .hero__cta{
    display: inline-flex;
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
  }

  .hero__scroll{
    grid-column: 1;
    grid-row: 4;
    justify-self: end;
  }
}


.process h2{
  margin:0;
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: .9;
}

.process__head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.process__meta{
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  opacity: .55;
}

.process__lead{
  margin: 0 0 26px;
  max-width: 54ch;
  font-size: 22px;
  line-height: 1.35;
  color: rgba(11,11,15,.62);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.process__steps{
  list-style:none;
  margin:0;
  padding: 18px 18px;
  display:grid;
  gap: 14px;
  background: rgba(255,255,255,.55);
  border-radius: 18px;
}

.process-step{
  display:grid;
  grid-template-columns: 110px minmax(0,1fr);
  gap: 18px;
  align-items: start;

  
  border-radius: 18px;
  padding: 18px 18px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.process-step__n{
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(11,11,15,.85);
  padding: 7px 18px;
}

.process-step__title{
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.process-step__text{
  margin: 0;
  max-width: 70ch;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(11,11,15,.68);
}

/* ================================
   MOBILE RESET (only overrides)
   ================================ */
@media (max-width: 860px){

  /* Bas: stoppa horisontell overflow på hela mobilen */
  html, body{ overflow-x: hidden; }
  body{ background: var(--bg); }

  :root{
    --gutter: 18px;
    --topbar-h: 0px;
    --menu-safe: 0px;
    --hero-gap: 12px;
    --gallery-size: 80px;
  }

  /* =========================================
     1) TOP BAR: dölj på mobil
     ========================================= */
  .top-meta{
    display: none !important;
  }

  /* =========================================
     2) HAMBURGER: flytta från mitten -> top-right
     ========================================= */
  .menu-fab{
    bottom: auto !important;
    top: calc(18px + env(safe-area-inset-top, 0px)) !important;
    right: calc(var(--gutter) + env(safe-area-inset-right, 0px)) !important;
    transform: none !important;
    width: 60px;
    height: 60px;
    z-index: 80;
  }

  .hamburger svg{ height: 4em; }

  /* =========================================
     3) WORK HEADER: rubrik + år på olika rader, alltid synlig
     ========================================= */
  .work__header{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
  }

  .work__header h2{
    font-size: clamp(46px, 15vw, 74px);
    line-height: .95;
    margin: 0;
  }

  .work__header span{
    display: block;
    font-size: 18px;
    font-weight: 800;
    opacity: .6;
    margin: 0;
  }

  /* =========================================
     6) FOOTER: mobil
     ========================================= */
  .site-footer{
    margin-top: -300px;
    border-radius: 0;
  }

  .site{
    margin-bottom: 300px;
  }

  .footer-inner{
    gap: 32px;
    padding: 32px var(--gutter) 24px;
  }

  .footer-col a{
    font-size: 15px;
  }

  .footer-bottom__text{
    font-size: 12vw;
  }
}

@media (max-width: 860px){

  .work__header{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    gap: 6px;
    margin-bottom: 18px;
  }

  .work__header h2{
    display: block;
    width: 100%;

    font-size: clamp(46px, 15vw, 74px);
    line-height: .95;
    margin: 0;
  }

  .work__header span{
    display: block;
    width: 100%;

    font-size: 18px;
    font-weight: 800;
    opacity: .6;
    margin: 0;
  }
}

/* Mobile work-card anpassningar */
@media (max-width: 860px){
  .work-card__cornerTitle{
    font-size: 12px;
    top: 12px;
    right: 14px;
  }

  .work-card__sliderContent{
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 14px;
  }

  .work-card__sliderText{
    order: 1;
  }

  .work-card__sliderImage{
    order: 2;
    height: 120px;
  }

  .work-card__sliderTitle{
    font-size: 18px;
  }

  .work-card__sliderDesc{
    font-size: 13px;
    max-width: none;
  }
}

@media (max-width: 860px){
  .work-card__media{
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 860px){
  :root{
    --menu-fab-safe: 96px; /* 78px knapp + luft */
  }

  /* Menyn är nu centrerad, så vi behöver inte padding-top */
  .overlay__menu a{
    font-size: 20px;
    padding: 10px 20px;
  }
}

/* ===== MOBILE GALLERY FULLSCREEN MODAL ===== */

.gallery-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 400ms ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gallery-modal.is-open{
  opacity: 1;
  visibility: visible;
}

.gallery-modal__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 100%;
  max-height: 100%;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: transform 450ms cubic-bezier(.2,.9,.1,1), opacity 400ms ease;
}

.gallery-modal.is-open .gallery-modal__inner{
  transform: translateY(0) scale(1);
  opacity: 1;
  transition-delay: 100ms;
}

.gallery-modal__image{
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-modal__content{
  text-align: center;
  color: #fff;
}

.gallery-modal__title{
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gallery-modal__description{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 50ch;
}

.gallery-modal__year{
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-modal__close-hint{
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* Neutralisera WP:s globala root-padding som ofta kommer från theme.json / block styles */
body{
  padding: 0 !important;
}

.wp-site-blocks{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Om du kör klassiskt theme (inte block theme) är det ofta dessa wrappers */
.site,
.site-content,
#page,
#content,
#primary,
#main{
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.footer-copyright{
  position: absolute;
  top: var(--gutter);
  right: var(--gutter);
  font-family: "Satoshi", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(84px, 9.6vw, 168px);
  line-height: 1;
  color: var(--hero-red);
  z-index: 2;
}
