/* ==========================================================================
   Atelier – demoprojekt av VisitWeb UF (fiktiv designstudio)
   Sten, papper, bläck och lera. Redaktionell serif, mycket luft, långsam rörelse.
   Allt som döljs inför en animation ligger under html.js-ready, så att sidan är
   komplett även utan JavaScript.
   ========================================================================== */

html { --sp: 76px; scroll-padding-top: var(--sp); }
/* Ankaret till sekvensen landar där blocket fastnar (blocket har egen luft under headern). */
.js-ready .at-seq { scroll-margin-top: calc(var(--sp) * -1); }
/* Projektvy öppen: sidan bakom står still. */
html.case-open { overflow: hidden; scrollbar-gutter: stable; }

.at {
  --stone: #ECE5DA;
  --stone-2: #E4DBCD;
  --paper: #F5F1EA;
  --paper-2: #FBF8F3;
  --ink: #1E1A16;
  --ink-2: #2B2520;
  --muted: #5F564C;
  --muted-dark: #A79D90;
  --clay: #A8714A;
  --clay-deep: #8A5532;
  --clay-light: #D9A57F;
  --line: rgba(30, 26, 22, 0.14);
  --line-strong: rgba(30, 26, 22, 0.3);
  --line-dark: rgba(245, 241, 234, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --hh: 84px;
  --hh-s: 64px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.at ::selection { background: var(--clay); color: var(--paper); }
.at main { display: block; overflow-x: clip; }
.at h1, .at h2, .at h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
}
.at em { font-style: italic; }
.at :focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 4px; border-radius: 3px; }
.at-studio :focus-visible, .at-footer :focus-visible, .at-mmenu :focus-visible { outline-color: var(--clay-light); }

.at-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Små byggstenar ---------- */
.at-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.at-eyebrow--light { color: var(--muted-dark); }
.at-num { display: inline-flex; align-items: center; gap: 12px; color: var(--clay-deep); }
.at-num::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.at-eyebrow--light .at-num { color: var(--clay-light); }

.at-h2 {
  font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.at-h2 em, .at-contact__title em { color: var(--clay); }

.at-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 8px 8px 8px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.at-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--clay-deep);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.at-btn:hover::before, .at-btn:focus-visible::before { transform: none; }
.at-btn:hover { box-shadow: 0 18px 40px -18px rgba(138, 85, 50, 0.7); }
.at-btn__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.6s var(--ease);
}
.at-btn__icon svg { width: 15px; height: 15px; }
.at-btn:hover .at-btn__icon { transform: translateY(3px); }
.at-btn--sm { min-height: 44px; padding: 10px 20px; font-size: 0.9rem; }

.at-link {
  position: relative;
  padding: 6px 0;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease), color 0.3s ease;
}
.at-link:hover { color: var(--clay-deep); animation: at-underline 0.9s var(--ease); }
@keyframes at-underline {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0 1px; background-position: 100% 100%; }
  46% { background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

.at-skip {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.3s var(--ease);
}
.at-skip:focus { transform: none; }

/* ---------- Scroll-progress ---------- */
.at-progress { display: none; }
.js-ready .at-progress {
  display: block;
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  pointer-events: none;
}
.at-progress span {
  display: block;
  height: 100%;
  background: var(--clay);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.at-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--hh);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.js-ready .at-header { background: transparent; border-bottom-color: transparent; }
.at-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--hh-s);
  background: rgba(245, 241, 234, 0.9);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.at-header.is-scrolled::before { opacity: 1; transform: none; }
.at-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--hh);
  transition: height 0.7s var(--ease);
}
.at-header.is-scrolled .at-header__inner { height: var(--hh-s); }
.at-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease);
}
.at-header.is-scrolled .at-logo { transform: scale(0.86); }
.at-logo__dot {
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--clay);
  transition: transform 0.6s var(--ease);
}
.at-logo:hover .at-logo__dot { transform: translateY(-0.35em); }
.at-logo--light { color: var(--paper); }

.at-nav { margin-left: auto; }
.at-nav ul { display: flex; gap: 4px; }
.at-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
}
.at-nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: -13px;
  border-radius: 50%;
  background: var(--clay);
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}
.at-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.6s var(--ease);
}
.at-nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.at-nav a[aria-current="true"]::before { transform: scale(1); }
.at-header__cta { flex: none; }

/* ---------- Mobilmeny ---------- */
.at-mmenu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}
.at-mmenu[hidden] { display: none; }
.at-mmenu.is-open { clip-path: inset(0); }
.at-mmenu__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--hh-s); }
.at-mmenu__close, .at-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-size: 0.9rem;
}
.at-mmenu__close { border-color: var(--line-dark); color: var(--paper); }
.at-mmenu__list { margin-top: 4vh; }
.at-mmenu__list li {
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--k, 0) * 70ms + 180ms);
}
.at-mmenu.is-open .at-mmenu__list li { opacity: 1; transform: none; }
.at-mmenu__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 11vw, 4rem);
  line-height: 1.05;
  text-decoration: none;
}
.at-mmenu__list span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--clay-light); }
.at-mmenu__foot { margin-top: auto; padding-top: 32px; padding-bottom: max(28px, env(safe-area-inset-bottom)); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark); }
.menu-open, .menu-open body { overflow: hidden; }
.at-header .at-menu-btn { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.at-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Bannern (cirka 50 px) och headern räknas bort så att hela heron ryms i första skärmen. */
  min-height: min(calc(100svh - 50px - var(--hh)), 900px);
  padding-top: clamp(20px, 2.6vw, 40px);
  overflow-x: clip;
}
.at-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}
.at-hero__text { position: relative; z-index: 2; display: grid; gap: clamp(20px, 2.2vw, 30px); justify-items: start; }
.at-pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.at-pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--clay);
  opacity: 0;
  animation: at-pulse 2.8s var(--ease-out) infinite;
}
@keyframes at-pulse { 0% { transform: scale(0.4); opacity: 0.9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.at-hero__title {
  font-size: clamp(3.5rem, min(1rem + 7.3vw, 11.2svh), 9.6rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.at-hero__title .l { display: block; }
.at-hero__title .l--in { padding-left: 1.05em; }
.at-hero__title em { color: var(--clay); padding-right: 0.06em; }
.at-hero__lead { max-width: 46ch; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.6; color: var(--muted); }
.at-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }

/* Ordvisa, maskade rubriker */
.wd {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.04em;
  vertical-align: top;
  padding: 0 0.08em 0.1em 0;
  margin: 0 -0.08em -0.1em 0;
}
.wd > span { display: inline-block; }

/* Hero-visual: skulptural komposition i flera djupled */
.at-hero__art { position: relative; justify-self: end; width: 100%; max-width: min(520px, calc((100svh - 330px) * 0.8)); min-width: 0; perspective: 1500px; }
.ha {
  --mx: 0;
  --my: 0;
  --hs: 0;
  --drift: 70px;
  --lift: 6cqi;
  position: relative;
  transform: translate3d(0, calc(var(--hs) * var(--drift)), 0) rotateY(calc(var(--mx) * 5deg)) rotateX(calc(var(--my) * -4deg));
  transform-style: preserve-3d;
}
.ha__panel {
  position: relative;
  aspect-ratio: 4 / 5;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #F1EBE1 0%, #E8DFD2 66%, #D6C8B4 66%, #CBBBA5 100%);
  box-shadow: 0 0 0 1px rgba(30, 26, 22, 0.06), 0 60px 100px -60px rgba(70, 44, 24, 0.55), 0 24px 40px -30px rgba(70, 44, 24, 0.35);
}
.ha__panel > span { position: absolute; display: block; }
.ha__light {
  left: 22cqi;
  top: -26cqi;
  width: 110cqi;
  height: 110cqi;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 251, 243, 0.95), rgba(255, 246, 228, 0.45) 45%, rgba(255, 246, 228, 0) 100%);
  transform: translate3d(calc(var(--mx) * 26cqi), calc(var(--my) * 20cqi), 0);
}
.ha__ring {
  left: 41cqi;
  bottom: calc(9% + 13.5cqi);
  width: 56cqi;
  height: 56cqi;
  border-radius: 50%;
  border: 1px solid rgba(30, 26, 22, 0.24);
  background: radial-gradient(circle at 62% 38%, rgba(168, 113, 74, 0.16), rgba(168, 113, 74, 0.03) 62%, transparent 72%);
  transform: translate3d(calc(var(--mx) * -1.4cqi), calc(var(--my) * -1cqi), 0);
}
.ha__ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.9cqi;
  width: 1.8cqi;
  height: 1.8cqi;
  margin-left: -0.9cqi;
  border-radius: 50%;
  background: var(--clay);
}
.ha__datum {
  left: 0;
  right: 0;
  bottom: 34%;
  height: 1px;
  background: rgba(30, 26, 22, 0.28);
}
.ha__datum::before {
  content: "";
  position: absolute;
  left: 4cqi;
  right: 4cqi;
  bottom: 1px;
  height: 1.4cqi;
  background: repeating-linear-gradient(90deg, rgba(30, 26, 22, 0.3) 0 1px, transparent 1px 4cqi);
}
.ha__arch {
  left: 8cqi;
  bottom: 34%;
  width: 38cqi;
  height: 56cqi;
  border-radius: 19cqi 19cqi 0 0;
  background: linear-gradient(90deg, #CDBAA0 0%, #E0D1BC 34%, #EADFCE 64%, #D5C3AA 100%);
  box-shadow: inset -1.6cqi 0 2.4cqi -1.2cqi rgba(90, 60, 32, 0.22);
  transform: translate3d(calc(var(--mx) * 1.6cqi), calc(var(--my) * 1.2cqi), 0);
  transform-origin: 50% 100%;
}
.ha__arch i {
  position: absolute;
  left: 9cqi;
  right: 9cqi;
  bottom: 0;
  top: 9cqi;
  border-radius: 10cqi 10cqi 0 0;
  background: linear-gradient(180deg, #4E2F1B 0%, #7A4A2B 46%, #A8714A 100%);
  box-shadow: inset 1.4cqi 1.4cqi 2.6cqi rgba(30, 18, 10, 0.4);
}
.ha__rod {
  left: 91cqi;
  bottom: 34%;
  width: max(1.5px, 0.35cqi);
  height: 54cqi;
  background: linear-gradient(180deg, var(--ink), var(--ink-2));
  transform: translate3d(calc(var(--mx) * 3cqi), calc(var(--my) * 2cqi), 0);
  transform-origin: 50% 100%;
}
.ha__rod::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.4cqi;
  width: 2.8cqi;
  height: 2.8cqi;
  margin-left: -1.4cqi;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E8C4A0, #A8714A 55%, #6B4126);
}
.ha__cast {
  left: 26cqi;
  bottom: 9%;
  width: 25cqi;
  height: 9cqi;
  background: linear-gradient(270deg, rgba(64, 42, 24, 0.3), rgba(64, 42, 24, 0.1) 70%, rgba(64, 42, 24, 0));
  /* Mjuk kant med mask i stället för filter: blur (billigare när lagret rör sig). */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
  transform-origin: 100% 100%;
  transform: translate3d(calc(var(--mx) * -2cqi), 0, 0) skewX(calc(40deg + var(--mx) * 16deg));
}
.ha__plinth {
  --pw: 32cqi;
  --ph: 28cqi;
  --pd: 6cqi;
  --pt: 4cqi;
  left: 50cqi;
  bottom: 9%;
  width: var(--pw);
  height: var(--ph);
  background: linear-gradient(90deg, #EEE7DC 0%, #E6DDCF 70%, #DCD1C1 100%);
  transform: translate3d(calc(var(--mx) * 4cqi), calc(var(--my) * 2.6cqi), 0);
}
.ha__plinth::before, .ha__plinth::after { content: ""; position: absolute; }
.ha__plinth::before {
  left: 0;
  bottom: 100%;
  width: calc(var(--pw) + var(--pd));
  height: var(--pt);
  background: linear-gradient(90deg, #FBF8F2, #F7F2EA);
  clip-path: polygon(0 100%, 13.6% 0, 100% 0, 86.4% 100%);
}
.ha__plinth::after {
  left: 100%;
  bottom: 0;
  width: var(--pd);
  height: calc(var(--ph) + var(--pt));
  background: linear-gradient(180deg, #F6F1E8, #EAE2D6);
  clip-path: polygon(0 12.5%, 100% 0, 100% 87.5%, 0 100%);
}
.ha__drum {
  left: 7cqi;
  bottom: 5%;
  width: 21cqi;
  height: 12cqi;
  border-radius: 0 0 11cqi 11cqi / 0 0 2.8cqi 2.8cqi;
  background: linear-gradient(90deg, #14110E 0%, #3B332C 42%, #26201B 70%, #14110E 100%);
  transform: translate3d(calc(var(--mx) * 6cqi), calc(var(--my) * 4cqi), 0);
}
.ha__drum::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2.8cqi;
  height: 5.6cqi;
  border-radius: 50%;
  background: radial-gradient(ellipse at 60% 40%, #4C423A, #2A241F 70%);
  box-shadow: inset 0 0.3cqi 0 rgba(255, 240, 220, 0.12);
}
.ha__drum::after {
  content: "";
  position: absolute;
  left: -9cqi;
  right: 1cqi;
  bottom: -2.4cqi;
  height: 4cqi;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 26, 14, 0.4), rgba(40, 26, 14, 0));
}
.ha__contact {
  left: 58cqi;
  bottom: calc(9% + 28.4cqi);
  width: 22cqi;
  height: 3.6cqi;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(52, 34, 18, 0.5), rgba(52, 34, 18, 0));
  transform: translate3d(calc(var(--mx) * 4cqi - var(--mx) * 1.2cqi), calc(var(--my) * 2.6cqi), 0);
}
.ha__sphere {
  left: 57cqi;
  bottom: calc(9% + 29.4cqi);
  width: 24cqi;
  height: 24cqi;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #F2D6B8 0%, #C99266 26%, #A8714A 50%, #74462A 82%, #55331D 100%);
  box-shadow: inset -1.6cqi -2cqi 3cqi rgba(40, 22, 10, 0.35);
  transform: translate3d(calc(var(--mx) * 5cqi), calc(var(--my) * 3cqi - var(--hs) * var(--lift)), 0);
}
.ha__sphere i {
  position: absolute;
  left: 18%;
  top: 14%;
  width: 34%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 248, 236, 0.85), rgba(255, 248, 236, 0));
  transform: translate3d(calc(var(--mx) * 14%), calc(var(--my) * 14%), 0);
}
.ha__grain {
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .15 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.ha__cap {
  top: 4.6cqi;
  font-family: var(--mono);
  font-size: max(0.6rem, 2.1cqi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ha__cap--l { left: 5cqi; }
.ha__cap--r { right: 5cqi; }
.ha__badge {
  position: absolute;
  left: -54px;
  bottom: 13%;
  width: clamp(104px, 27%, 142px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 24px 50px -26px rgba(50, 32, 18, 0.55), 0 0 0 1px rgba(30, 26, 22, 0.06);
  transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * 14px), 40px);
}
.ha__badge svg {
  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
  overflow: visible;
  animation: at-spin 38s linear infinite;
}
.ha__badge text { font-family: var(--mono); font-size: 14.5px; font-weight: 500; letter-spacing: 2.3px; text-transform: uppercase; fill: var(--ink); }
.ha__badge-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  height: 26%;
  margin: -13% 0 0 -13%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #EBC6A2, #A8714A 55%, #6B4126);
}
.at-hero.is-off .ha__badge svg, .at-hero.is-off .at-cue i::after, .at-hero.is-off .at-pulse::after,
.at-hero.is-off .ha, .at-hero.is-off .ha__light { animation-play-state: paused; }

/* Pekskärmar: långsam gungning som en sammansatt CSS-animation i stället för en JS-loop. */
@media (hover: none), (pointer: coarse) {
  .js-ready .ha { animation: at-sway 14s ease-in-out infinite alternate; }
  .js-ready .ha__light { animation: at-glow 11s ease-in-out infinite alternate; }
}
@keyframes at-sway {
  from { transform: rotateY(-3.2deg) rotateX(1.6deg); }
  to { transform: rotateY(3.2deg) rotateX(-1.6deg); }
}
@keyframes at-glow {
  from { transform: translate3d(-12cqi, 5cqi, 0); }
  to { transform: translate3d(12cqi, -4cqi, 0); }
}
@keyframes at-spin { to { transform: rotate(360deg); } }

.at-hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(28px, 3vw, 44px);
  padding-bottom: 22px;
}
.at-hero__index {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 10px clamp(28px, 5vw, 80px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.at-hero__index li { display: grid; gap: 2px; }
.at-hero__index span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay-deep); }
.at-cue {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js-ready .at-cue { display: flex; }
.at-cue i { position: relative; width: 1px; height: 46px; overflow: hidden; background: var(--line); }
.at-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 45%;
  background: var(--ink);
  animation: at-cue 2.4s var(--ease-io) infinite;
}
@keyframes at-cue { from { transform: translateY(-100%); } to { transform: translateY(230%); } }
.is-scrolled .at-cue { opacity: 0; transform: translateY(10px); }

/* Laddningsanimationer (spelas när skriptet satt html.is-loaded) */
.js-ready .at-hero__eyebrow,
.js-ready .at-hero__lead,
.js-ready .at-hero__actions,
.js-ready .at-hero__foot { animation: at-fade-up 1.3s var(--ease) both; }
.js-ready .at-hero__eyebrow { animation-delay: 0.1s; }
.js-ready .at-hero__lead { animation-delay: 0.75s; }
.js-ready .at-hero__actions { animation-delay: 0.9s; }
.js-ready .at-hero__foot { animation-delay: 1.15s; }
.js-ready:not(.is-split) .at-hero__title { visibility: hidden; }
.js-ready .at-hero__title .wd > span {
  animation: at-rise 1.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 95ms + 0.18s);
}
.js-ready .ha__panel { animation: at-curtain 1.7s var(--ease-io) 0.25s both; }
.js-ready .ha__arch { animation: at-grow 1.6s var(--ease) 0.95s both; }
.js-ready .ha__rod { animation: at-grow 1.4s var(--ease) 1.2s both; }
.js-ready .ha__ring { animation: at-ring 1.8s var(--ease) 1s both; }
.js-ready .ha__plinth, .js-ready .ha__drum { animation: at-lift 1.5s var(--ease) 1.05s both; }
.js-ready .ha__sphere { animation: at-drop 1.7s var(--ease-out) 1.3s both; }
.js-ready .ha__contact, .js-ready .ha__cast { animation: at-fade 1.4s var(--ease) 1.6s both; }
.js-ready .ha__badge { animation: at-badge 1.6s var(--ease) 1.4s both; }
.js-ready:not(.is-loaded) .at-hero, .js-ready:not(.is-loaded) .at-hero *, .js-ready:not(.is-loaded) .at-hero *::after { animation-play-state: paused; }

/* Laptophöjder: tätare hero så att indexraden och scroll-cuen ryms ovanför vikningen. */
/* (Bara med JS – stillbilden utan JS ska se likadan ut oavsett fönsterhöjd.) */
@media (min-width: 861px) and (max-height: 920px) {
  .js-ready .at-hero { padding-top: clamp(14px, 2.4svh, 28px); }
  .js-ready .at-hero__text { gap: clamp(14px, 2.4svh, 24px); }
  .js-ready .at-hero__foot { padding-top: clamp(14px, 2.4svh, 28px); padding-bottom: 14px; }
  .js-ready .at-hero__index { padding-top: 12px; }
  .at-cue i { height: 34px; }
}
@media (min-width: 861px) and (max-height: 800px) {
  .js-ready .at-hero__lead { font-size: 1rem; line-height: 1.5; }
  .js-ready .at-hero .at-btn { min-height: 50px; }
  .js-ready .at-hero .at-btn__icon { width: 34px; height: 34px; }
}

@keyframes at-fade-up { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes at-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes at-rise { from { transform: translate3d(0, 112%, 0) rotate(2.5deg); } to { transform: none; } }
@keyframes at-curtain { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes at-grow { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes at-ring { from { opacity: 0; scale: 0.82; } to { opacity: 1; scale: 1; } }
@keyframes at-lift { from { opacity: 0; translate: 0 16cqi; } to { opacity: 1; translate: 0 0; } }
@keyframes at-drop { from { opacity: 0; translate: 0 -34cqi; } to { opacity: 1; translate: 0 0; } }
@keyframes at-badge { from { opacity: 0; scale: 0.6; rotate: -60deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }

/* ==========================================================================
   SEKVENS: FRÅN SKISS TILL RUM
   ========================================================================== */
.at-seq { position: relative; background: var(--stone); overflow-x: clip; }
.at-seq__sticky { padding: clamp(64px, 6.5vw, 100px) 0; }
.js-ready .at-seq__track { height: 520vh; }
.js-ready .at-seq__sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding: calc(var(--hh-s) + 8px) 0 18px;
  overflow: hidden;
}
.at-seq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.at-seq__copy { display: grid; gap: 16px; align-content: start; }
.js-ready .at-seq__copy { align-self: start; padding-top: 1vh; }
.at-seq__title { font-size: clamp(2.5rem, 1.3rem + 3vw, 4.5rem); }
.at-seq__intro { max-width: 36ch; color: var(--muted); }
.at-seq__index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.at-seq__lbl { color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; }
.at-seq__roll { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; color: var(--ink); }
.at-seq__roll [data-seq-roll] {
  display: flex;
  flex-direction: column;
  transform: translateY(-5.2em);
  transition: transform 0.9s var(--ease);
}
.at-seq__roll b { display: block; height: 1.3em; font-weight: 500; }
.at-seq__bar { position: relative; flex: 1; max-width: 240px; height: 1px; background: var(--line-strong); }
.at-seq__bar i {
  position: absolute;
  left: 0;
  right: 0;
  top: -0.5px;
  height: 2px;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(1);
}
.at-seq__total { color: var(--muted); }
.at-seq__nav { display: none; }
.at-seq__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.at-seq__arrow:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.at-seq__arrow:disabled { opacity: 0.35; cursor: default; }

.at-steps { display: grid; margin-top: 6px; border-bottom: 1px solid var(--line); }
.at-step {
  position: relative;
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr);
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.at-step::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.at-step__n { padding-top: 0.7em; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.at-step h3 { font-size: clamp(1.5rem, 1.15rem + 0.8vw, 1.95rem); line-height: 1.1; }
.at-step p { grid-column: 2; max-width: 42ch; margin-top: 6px; font-size: 0.98rem; line-height: 1.55; color: var(--muted); }
.at-step__go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  letter-spacing: inherit;
  cursor: pointer;
}
.at-step__go::after {
  content: "→" / "";
  font-family: var(--sans);
  font-size: 0.55em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.at-step__go:hover::after, .at-step__go:focus-visible::after { opacity: 0.7; transform: none; }
.at-step.is-active .at-step__go::after { display: none; }

/* Bara rubriken tonas ned i inaktiva steg; numret behåller full kontrast. */
.js-ready .at-step > h3 { opacity: 0.55; transition: opacity 0.7s var(--ease); }
.js-ready .at-step.is-done > h3 { opacity: 0.75; }
.js-ready .at-step.is-active > h3 { opacity: 1; }
.js-ready .at-step.is-done::before { transform: scaleX(1); }
.js-ready .at-step.is-active::before { transform: scaleX(var(--lp, 0)); }
.at-step.is-active .at-step__n { color: var(--clay-deep); }
.js-ready .at-step p {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.8s var(--ease), opacity 0.6s var(--ease), margin 0.8s var(--ease);
}
.js-ready .at-step.is-active p { max-height: 7em; margin-top: 6px; opacity: 1; transition-delay: 0.1s; }

/* Ritningsbladet */
.at-seq__fig { position: relative; width: 100%; justify-self: end; }
.js-ready .at-seq__fig { max-width: calc((100svh - 190px) * 1.24); }
.at-sheet {
  position: relative;
  background: var(--paper-2);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(30, 26, 22, 0.07), 0 2px 0 rgba(30, 26, 22, 0.03), 0 50px 90px -50px rgba(70, 44, 24, 0.45);
  transition: transform 1.4s var(--ease), box-shadow 1.4s var(--ease);
}
.js-ready .at-sheet:not(.is-s1) { transform: rotate(-1.4deg) translate3d(0, 8px, 0); }
.js-ready .at-sheet.is-s1:not(.is-s3) { transform: rotate(-0.5deg); }
.at-sheet.is-s4 { box-shadow: 0 0 0 1px rgba(30, 26, 22, 0.05), 0 2px 0 rgba(30, 26, 22, 0.03), 0 70px 110px -50px rgba(120, 70, 30, 0.5); }
.at-sheet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.at-sheet__bar--bottom { border-top: 1px solid var(--line); border-bottom: 0; }
.at-sheet__phase { color: var(--ink); white-space: nowrap; }
.at-sheet__art { position: relative; overflow: hidden; background: #F8F4ED; isolation: isolate; }
.at-sheet__art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(168, 113, 74, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 113, 74, 0.13) 1px, transparent 1px);
  background-size: 5% 6.25%;
  transition: opacity 1s var(--ease);
}
.at-sheet.is-s2 .at-sheet__art::before { opacity: 0; }
.room { width: 100%; height: auto; aspect-ratio: 800 / 640; }
.is-instant, .is-instant *, .is-instant *::before, .is-instant *::after { transition: none !important; }

/* Bladets SVG-lager. Sluttillståndet är standard; tidigare steg döljer lager. */
.rm-surf > *, .rm-surf--2 > * { transition: opacity 1s var(--ease); }
.rm-surf > :nth-child(2) { transition-delay: 0.08s; }
.rm-surf > :nth-child(3) { transition-delay: 0.16s; }
.rm-surf > :nth-child(4) { transition-delay: 0.24s; }
.rm-surf > :nth-child(5) { transition-delay: 0.32s; }
.rm-surf > :nth-child(6) { transition-delay: 0.42s; }
.rm-surf > :nth-child(7) { transition-delay: 0.5s; }
.rm-surf--2 > * { transition-delay: 0.55s; }
.rm-surf--2 > :nth-child(n+2) { transition-delay: 0.7s; }
.js-ready .at-sheet:not(.is-s1) .rm-surf > * { opacity: 0; }

.rm-piece {
  transition: opacity 0.8s var(--ease), transform 1.4s var(--ease-out);
  transition-delay: calc(var(--k, 0) * 110ms);
}
.rm-piece--flat { transform-box: fill-box; transform-origin: 50% 50%; }
.js-ready .at-sheet:not(.is-s2) .rm-piece { opacity: 0; transform: translate3d(0, 46px, 0); }
.js-ready .at-sheet:not(.is-s2) .rm-piece--flat { transform: scale(0.55, 0.4); }
.js-ready .at-sheet:not(.is-s2) .rm-piece--hang { transform: translate3d(0, -150px, 0); }

.rm-light > * { transition: opacity 1.3s var(--ease); }
.rm-light > :nth-child(2) { transition-delay: 0.15s; }
.rm-light > :nth-child(3) { transition-delay: 0.3s; }
.rm-light > :nth-child(n+4) { transition-delay: 0.45s; }
.rm-dim + .rm-light > :nth-child(2), .rm-dim + .rm-light > :nth-child(3) { transition-delay: 0.65s; }
.js-ready .at-sheet:not(.is-s3) .rm-light > * { opacity: 0; }
.rm-dim { fill: #E0B98F; mix-blend-mode: multiply; opacity: 0.42; transition: opacity 1.2s var(--ease); }
.js-ready .at-sheet:not(.is-s3) .rm-dim { opacity: 0; }
.js-ready .at-sheet.is-s3:not(.is-s4) .rm-dim { opacity: 0.58; }

.rm-sketch { transition: opacity 1s var(--ease); }
.rm-sketch path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
}
.js-ready .rm-sketch path { stroke-dashoffset: clamp(0, calc(1 + var(--o, 0) - var(--draw, 1) * var(--v, 1.42)), 1); }
.at-sheet.is-s1 .rm-sketch { opacity: 0.38; }
.at-sheet.is-s2 .rm-sketch { opacity: 0; }

.rm-annot { opacity: 1; transition: opacity 0.8s var(--ease); }
.js-ready .rm-annot { opacity: clamp(0, calc((var(--draw, 1) - 0.62) * 3), 1); }
.at-sheet.is-s1 .rm-annot { opacity: 0.4; }
.at-sheet.is-s2 .rm-annot { opacity: 0; }
.rm-label { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; fill: var(--ink); }
.rm-label--clay { fill: var(--clay-deep); }

.at-sheet__caption {
  position: absolute;
  left: 4.5%;
  top: 6%;
  display: grid;
  gap: 8px;
  transition: opacity 1s var(--ease) 0.35s, transform 1.3s var(--ease) 0.35s;
}
.at-sheet__name { font-family: var(--serif); font-size: clamp(1.7rem, 0.9rem + 2vw, 3rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.at-sheet__name em { color: var(--clay-deep); }
.at-sheet__meta { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: #4F473F; }
.js-ready .at-sheet:not(.is-s4) .at-sheet__caption { opacity: 0; transform: translate3d(0, 16px, 0); transition-delay: 0s; }

.at-swatches { display: flex; align-items: center; gap: 16px; }
.at-swatches li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--k, 0) * 90ms + 0.1s);
}
.js-ready .at-sheet:not(.is-s2) .at-swatches li { opacity: 0; transform: translate3d(0, -12px, 0); }
.at-sheet.is-s4 .at-swatches li { opacity: 0; transform: translate3d(0, 8px, 0); transition-delay: 0s; }
i.sw {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(30, 26, 22, 0.16), 0 2px 4px -2px rgba(30, 26, 22, 0.4);
  transition: transform 0.6s var(--ease);
}
.sw--ek { background: repeating-linear-gradient(105deg, rgba(110, 72, 40, 0.28) 0 1px, transparent 1px 3px), linear-gradient(135deg, #D2A779, #A57A50); }
.sw--linne { background: repeating-linear-gradient(0deg, rgba(150, 140, 120, 0.25) 0 1px, transparent 1px 2px), repeating-linear-gradient(90deg, rgba(150, 140, 120, 0.2) 0 1px, transparent 1px 2px), #E7E0D3; }
.sw--lera { background: radial-gradient(circle at 35% 30%, #CF9A70, #A8714A 55%, #7D4E2F); }
.sw--kalk { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px), radial-gradient(circle at 70% 65%, rgba(140, 125, 105, 0.35) 0 1px, transparent 2px), #DED6C8; }
.at-sheet__pct { white-space: nowrap; }
.at-sheet__bar--bottom { position: relative; }
.at-sheet__final {
  position: absolute;
  left: 18px;
  top: 50%;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, -20%, 0);
  transition: opacity 0.8s var(--ease), transform 1s var(--ease);
}
.at-sheet.is-s4 .at-sheet__final { opacity: 1; transform: translate3d(0, -50%, 0); transition-delay: 0.5s; }

/* Steg 2: provtavla med etiketterade material som glider in över ritningen
   och sedan "dockar" in som små prover i bladets nederkant. */
.at-sheet__art { container-type: inline-size; }
.at-sheet__board {
  position: absolute;
  left: 4.5%;
  bottom: 5%;
  display: grid;
  gap: 1.6cqi;
  padding: max(10px, 2cqi) max(12px, 2.4cqi);
  border-radius: 3px;
  background: rgba(251, 248, 243, 0.95);
  box-shadow: 0 0 0 1px rgba(30, 26, 22, 0.08), 0 26px 50px -24px rgba(60, 36, 18, 0.55);
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 0.6s var(--ease), transform 1s var(--ease);
  pointer-events: none;
}
.js-ready .at-sheet.is-s1:not(.is-s2) .at-sheet__board { opacity: 1; transform: none; transition-delay: 0.2s; }
.at-sheet__board-t { font-family: var(--mono); font-size: max(0.56rem, 1.25cqi); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.at-board { display: flex; gap: max(10px, 2.2cqi); }
.at-board li {
  display: grid;
  justify-items: center;
  gap: 0.8cqi;
  font-family: var(--mono);
  font-size: max(0.6rem, 1.35cqi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.js-ready .at-sheet.is-s1:not(.is-s2) .at-board li { opacity: 1; transform: none; transition-delay: calc(var(--k, 0) * 110ms + 0.35s); }
.at-board i.sw { width: clamp(30px, 7.5cqi, 60px); height: clamp(30px, 7.5cqi, 60px); border-radius: 3px; }

/* Steg 5: rummet blir ett färdigt fotografi – passepartout, lätt inzoomning,
   varm vinjett och större bildtext. */
.at-sheet__art { clip-path: inset(0 round 0); transition: clip-path 1.4s var(--ease); }
.at-sheet.is-s4 .at-sheet__art { clip-path: inset(max(10px, 2.2cqi) round 2px); }
.room { transform-origin: 56% 52%; transition: transform 2.2s var(--ease); }
.at-sheet.is-s4 .room { transform: scale(1.07); }
.at-sheet__art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(130% 115% at 32% 22%, rgba(255, 236, 200, 0) 52%, rgba(255, 214, 160, 0.14) 70%, rgba(78, 42, 16, 0.34) 100%);
  opacity: 0;
  transition: opacity 1.6s var(--ease) 0.3s;
}
.at-sheet.is-s4 .at-sheet__art::after { opacity: 1; }
.at-sheet__caption { transform-origin: 0 0; }
.at-sheet.is-s4 .at-sheet__caption { transform: translate3d(1.2cqi, 1.6cqi, 0) scale(1.14); }
.at-sheet__pct b { display: inline-block; min-width: 3ch; text-align: right; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   UTVALDA ARBETEN
   ========================================================================== */
.at-works { padding: clamp(80px, 8.4vw, 150px) 0 clamp(80px, 10vw, 160px); background: var(--paper); }
.at-works__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30ch);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}
.at-works__head .at-eyebrow { margin-bottom: 18px; }
.at-works__head .at-h2 { font-size: clamp(3rem, 1.2rem + 5.6vw, 7.6rem); line-height: 0.92; }
.at-works__intro { justify-self: end; max-width: 34ch; color: var(--muted); }
.at-works__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(36px, 5vw, 72px);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.at-filter { position: relative; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.at-filter label { position: relative; z-index: 1; cursor: pointer; }
.at-filter input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.at-filter span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 44px;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.96rem;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.45s var(--ease), background-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.at-filter sup { top: auto; align-self: flex-start; margin-top: 2px; font-family: var(--mono); font-size: 0.62rem; color: var(--muted); transition: color 0.45s var(--ease); }
.at-filter label:hover span { box-shadow: inset 0 0 0 1px var(--line-strong); }
.at-filter input:checked + span { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.at-filter input:checked + span sup { color: rgba(245, 241, 234, 0.72); }
.at-filter input:focus-visible + span { outline: 2px solid var(--clay-deep); outline-offset: 3px; }
.at-filter__thumb {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--ink);
  pointer-events: none;
  transition: transform 0.7s var(--ease), width 0.7s var(--ease), height 0.7s var(--ease);
}
.has-thumb input:checked + span { background: transparent; box-shadow: inset 0 0 0 1px transparent; }
.at-works__count { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.at-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px) clamp(20px, 2.4vw, 36px);
  align-items: start;
}
.at-work { position: relative; grid-column: span 6; display: grid; gap: 14px; }
.at-work[hidden] { display: none; }
.at-work:nth-child(4n+1 of :not([hidden])) { grid-column: 1 / span 7; }
.at-work:nth-child(4n+2 of :not([hidden])) { grid-column: 9 / span 4; margin-top: clamp(64px, 10vw, 180px); }
.at-work:nth-child(4n+3 of :not([hidden])) { grid-column: 2 / span 4; }
.at-work:nth-child(4n+4 of :not([hidden])) { grid-column: 7 / span 6; margin-top: clamp(40px, 6vw, 110px); }
.at-work__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  background: var(--stone);
  transition: clip-path 1.5s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.at-work:nth-child(4n+1 of :not([hidden])) .at-work__media,
.at-work:nth-child(4n+4 of :not([hidden])) .at-work__media { aspect-ratio: 4 / 3; }
.at-work__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 26, 22, 0) 55%, rgba(30, 26, 22, 0.18));
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.at-work:hover .at-work__media::after { opacity: 1; }
.at-art { width: 100%; height: 100%; }
.at-work__media .at-art { transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0ms); }
.at-work:hover .at-work__media .at-art { transform: scale(1.05); transition-delay: 0s; transition-duration: 1.2s; }
.at-work__hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245, 241, 234, 0.92);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.at-work:hover .at-work__hint, .at-work:focus-within .at-work__hint { opacity: 1; transform: none; }
.has-cursor .at-work:hover:not(:focus-within) .at-work__hint { opacity: 0; }
@media (hover: none) { .at-work__hint { opacity: 1; transform: none; } }
.at-work__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 4px;
  transition: opacity 1.1s var(--ease);
}
.at-work__meta h3 { font-size: clamp(1.7rem, 1.2rem + 1vw, 2.3rem); line-height: 1.05; }
.at-work__btn {
  padding: 0 0 2px;
  border: 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  color: inherit;
  transition: background-size 0.7s var(--ease);
}
.at-work__btn::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 4px; }
.at-work:hover .at-work__btn { background-size: 100% 1px; }
.at-work__btn:focus-visible { outline: none; }
.at-work__btn:focus-visible::after { outline: 2px solid var(--clay-deep); outline-offset: 8px; }
.at-work__cat { flex: none; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.at-work__desc { max-width: 42ch; margin-top: -6px; font-size: 0.98rem; color: var(--muted); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }

/* Projektvyer (popover) */
.at-case {
  position: fixed;
  inset: 0;
  width: min(1060px, calc(100% - 32px));
  height: fit-content;
  max-height: min(740px, calc(100svh - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 70px 140px -50px rgba(20, 14, 10, 0.7);
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.98);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}
.at-case:popover-open {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  opacity: 1;
  transform: none;
}
@starting-style {
  .at-case:popover-open { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.98); }
}
.at-case::backdrop {
  background: rgba(30, 26, 22, 0);
  transition: background-color 0.5s var(--ease), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}
.at-case:popover-open::backdrop { background: rgba(30, 26, 22, 0.6); }
@starting-style {
  .at-case:popover-open::backdrop { background: rgba(30, 26, 22, 0); }
}
.at-case__art { position: relative; min-height: 360px; background: var(--stone); }
.at-case__art .at-art { position: absolute; inset: 0; }
.at-case__body { display: grid; align-content: start; gap: 18px; padding: clamp(28px, 4vw, 56px); }
.at-case__body h3 { font-size: clamp(2.6rem, 1.6rem + 2.4vw, 4rem); }
.at-case__body h3 em { color: var(--clay); }
.at-case__body > p:not(.at-eyebrow) { color: var(--muted); }
.at-case__facts { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.at-case__facts div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; }
.at-case__facts dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0.3em; }
.at-case__close {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 0.92rem;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.at-case__close span { font-size: 1.2rem; line-height: 1; }
.at-case__close:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Pekaretikett "Visa" (följer med pekaren, ersätter den inte) */
.at-cursor { display: none; }
.has-cursor .at-cursor {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  pointer-events: none;
}
.at-cursor span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: scale(0);
  transition: transform 0.55s var(--ease);
}
.at-cursor.is-on span { transform: scale(1); }

/* ==========================================================================
   STUDION
   ========================================================================== */
.at-studio { position: relative; padding: clamp(96px, 12vw, 180px) 0; background: var(--ink); color: var(--paper); overflow-x: clip; }
.at-studio__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.at-studio__head { display: grid; gap: 22px; position: sticky; top: 110px; }
.at-studio .at-h2 { font-size: clamp(2.8rem, 1.4rem + 4vw, 5.8rem); }
.at-studio .at-h2 em { color: var(--clay-light); }
.at-statement { font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.55rem); line-height: 1.22; letter-spacing: -0.01em; }
.js-ready .at-statement .w { opacity: 0.22; transition: opacity 0.6s ease; }
.js-ready .at-statement .w.is-on { opacity: 1; }
.at-services { margin-top: clamp(44px, 5vw, 80px); border-bottom: 1px solid var(--line-dark); }
.at-services li {
  position: relative;
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line-dark);
  isolation: isolate;
}
.at-services li::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  border-radius: 4px;
  background: rgba(217, 165, 127, 0.08);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease);
}
.at-services li:hover::before { transform: none; }
.at-services__n { font-family: var(--mono); font-size: 0.72rem; color: var(--clay-light); }
.at-services__t {
  display: grid;
  gap: 6px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.2rem + 1.3vw, 2.5rem);
  line-height: 1.05;
  transition: transform 0.7s var(--ease);
}
.at-services small { font-family: var(--sans); font-size: 0.94rem; line-height: 1.4; color: var(--muted-dark); }
.at-services__a { font-size: 1.4rem; color: var(--clay-light); transition: transform 0.7s var(--ease); }
.at-services li:hover .at-services__t { transform: translate3d(12px, 0, 0); }
.at-services li:hover .at-services__a { transform: rotate(-45deg); }

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.at-contact { position: relative; padding: clamp(110px, 13vw, 200px) 0; text-align: center; overflow-x: clip; isolation: isolate; }
.at-contact::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: min(760px, 86vw);
  height: 86%;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(236, 229, 218, 0.7), rgba(236, 229, 218, 0));
  transform: translateX(-50%);
}
.at-contact__inner { display: grid; justify-items: center; gap: 22px; }
.at-contact__title { max-width: 11em; font-size: clamp(3rem, 1.2rem + 6.4vw, 8.4rem); line-height: 0.94; letter-spacing: -0.03em; text-wrap: balance; }
.at-contact__lead { max-width: 46ch; color: var(--muted); }
.at-contact__action { display: grid; justify-items: center; gap: 14px; margin-top: 14px; }
.at-mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 8px 4px 12px;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.9rem, 1rem + 3.4vw, 3.9rem);
  line-height: 1.1;
  color: var(--ink);
  transition: transform 0.5s var(--ease), color 0.4s ease;
}
.at-mail::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform-origin: 100% 50%;
}
.at-mail:hover { color: var(--clay-deep); }
.at-mail:hover::after { animation: at-line 0.9s var(--ease); }
@keyframes at-line { 0% { transform: scaleX(1); transform-origin: 100% 50%; } 45% { transform: scaleX(0); transform-origin: 100% 50%; } 46% { transform-origin: 0 50%; } 100% { transform: scaleX(1); transform-origin: 0 50%; } }
.at-mail__arrow {
  display: grid;
  place-items: center;
  width: 0.92em;
  height: 0.92em;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.7s var(--ease), background-color 0.4s ease;
}
.at-mail__arrow svg { width: 42%; height: 42%; }
.at-mail:hover .at-mail__arrow { transform: rotate(45deg); background: var(--clay-deep); }
.at-contact__note { max-width: 52ch; font-size: 0.98rem; color: var(--ink); }
.at-contact__note:empty { display: none; }
.at-contact__note.is-shown {
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--stone);
  animation: at-fade-up 0.8s var(--ease) both;
}
.at-contact__fine { font-size: 0.88rem; color: var(--muted); }

/* ==========================================================================
   SIDFOT
   ========================================================================== */
.at-footer { padding: clamp(56px, 7vw, 96px) 0 30px; background: var(--ink); color: #CFC6BA; overflow: hidden; }
.at-footer__mark {
  margin: 0 0 clamp(24px, 3vw, 40px) -0.04em;
  font-family: var(--serif);
  font-size: clamp(5rem, 21vw, 19rem);
  line-height: 0.8;
  letter-spacing: -0.045em;
  color: var(--paper);
}
.at-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
}
.at-footer a { color: var(--paper); text-underline-offset: 4px; }
.at-footer__top { text-decoration: none; }
.at-footer__top:hover { text-decoration: underline; }

/* ==========================================================================
   REVEALS (bara med JavaScript)
   ========================================================================== */
.js-ready [data-reveal] {
  opacity: 0;
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js-ready [data-reveal="up"] { transform: translate3d(0, 44px, 0); }
.js-ready [data-reveal="left"] { transform: translate3d(-60px, 0, 0); }
.js-ready [data-reveal="right"] { transform: translate3d(60px, 0, 0); }
.js-ready [data-reveal="scale"] { transform: scale(0.94); }
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }
.js-ready [data-reveal="work"] { opacity: 1; transform: none; }
.js-ready [data-reveal="work"] .at-work__media { clip-path: inset(100% 0 0 0); }
.js-ready [data-reveal="work"] .at-work__media .at-art { transform: scale(1.2); }
.js-ready [data-reveal="work"] .at-work__meta { opacity: 0; transition-delay: calc(var(--d, 0ms) + 0.35s); }
.js-ready [data-reveal="work"] .at-work__cat,
.js-ready [data-reveal="work"] .at-work__desc { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0ms) + 0.45s); }
.js-ready [data-reveal="work"].is-in .at-work__media { clip-path: inset(0 0 0 0); }
.js-ready [data-reveal="work"].is-in .at-work__media .at-art { transform: none; }
.js-ready [data-reveal="work"].is-in:hover .at-work__media .at-art { transform: scale(1.05); }
.js-ready [data-reveal="work"].is-in .at-work__meta,
.js-ready [data-reveal="work"].is-in .at-work__cat,
.js-ready [data-reveal="work"].is-in .at-work__desc { opacity: 1; transform: none; }

.js-ready [data-split] .wd > span { transform: translate3d(0, 110%, 0); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + var(--d, 0ms)); }
.js-ready [data-split].is-in .wd > span { transform: none; }

/* ==========================================================================
   RESPONSIVT
   ========================================================================== */
@media (max-width: 1100px) {
  .at-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); }
  .ha__badge { left: -34px; }
  .at-seq__grid { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 40px; }
}

@media (min-width: 861px) and (max-height: 780px) {
  .js-ready .at-seq__intro { display: none; }
  .js-ready .at-step { padding: 9px 0; }
  .at-step h3 { font-size: 1.45rem; }
}

@media (max-width: 860px) {
  .at { --hh: 68px; --hh-s: 60px; }
  html { --sp: 64px; }
  .at-logo { font-size: 1.75rem; }
  .at-header__cta { display: none; }
  .at-nav { margin-left: auto; }
  .at-nav ul { gap: 0; }
  .at-nav a { padding: 8px 7px; font-size: 0.86rem; }
  .at-nav a::before { display: none; }
  .js-ready .at-nav { display: none; }
  .js-ready .at-header .at-menu-btn { display: inline-flex; margin-left: auto; }
  .at-menu-btn__lines { display: grid; gap: 5px; width: 18px; }
  .at-menu-btn__lines i { display: block; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
  .at-menu-btn:hover .at-menu-btn__lines i:last-child { transform: scaleX(0.6); transform-origin: 100% 50%; }

  .at-hero { min-height: 0; padding-top: 28px; }
  .at-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .at-hero__art { justify-self: center; max-width: 520px; }
  .ha { --drift: 0px; --lift: 0px; }
  .ha__panel { aspect-ratio: 1 / 1; }
  .at-hero__eyebrow { letter-spacing: 0.1em; }
  .ha__badge { left: auto; right: 4%; bottom: auto; top: -46px; width: 100px; }
  /* Brickan täcker hörnet uppe till höger – bildtexten flyttar ned till golvet. */
  .ha__cap--r { top: auto; bottom: 3.2cqi; color: var(--ink); }
  .at-hero__foot { padding-top: 40px; }
  .at-hero__index { grid-template-columns: 1fr; gap: 0; padding-top: 0; border-top: 0; }
  .at-hero__index li { grid-template-columns: 7.5em 1fr; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
  .js-ready .at-cue { display: none; }

  .at-seq__grid { grid-template-columns: 1fr; gap: 40px; }
  .js-ready .at-seq__track { height: 470vh; }
  .js-ready .at-seq__sticky { align-items: center; padding: calc(var(--hh-s) + 6px) 0 12px; }
  .js-ready .at-seq__grid { gap: 12px; align-content: center; }
  .js-ready .at-seq__copy { display: contents; }
  .js-ready .at-seq__eyebrow { order: 1; }
  .js-ready .at-seq__title { order: 2; font-size: clamp(2rem, 1.2rem + 3.6vw, 2.8rem); }
  .js-ready .at-seq__intro { display: none; }
  .js-ready .at-seq__index { order: 3; margin-top: 0; }
  .js-ready .at-seq__nav { display: flex; gap: 8px; margin-left: auto; }
  .js-ready .at-seq__bar { max-width: none; }
  .js-ready .at-seq__fig { order: 4; justify-self: center; max-width: min(100%, calc((100svh - 390px) * 1.25)); }
  .js-ready .at-steps { order: 5; margin-top: 2px; border: 0; }
  .js-ready .at-step {
    grid-area: 1 / 1;
    grid-template-columns: 2.6em minmax(0, 1fr);
    padding: 0;
    border: 0;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    pointer-events: none;
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
  }
  .js-ready .at-step.is-done { opacity: 0; }
  .js-ready .at-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .js-ready .at-step::before { display: none; }
  .js-ready .at-step h3 { font-size: 1.55rem; }
  .js-ready .at-step p { max-height: none; margin-top: 4px; opacity: 1; font-size: 0.94rem; }
  .at-step__go::after { display: none; }
  .at-sheet__bar { min-height: 38px; padding: 8px 12px; font-size: 0.6rem; letter-spacing: 0.1em; }
  .at-swatches { gap: 10px; }
  .at-swatches .sw-l { display: none; }
  .at-sheet__meta { max-width: 13em; line-height: 1.6; }

  .at-works__head { grid-template-columns: 1fr; }
  .at-works__intro { justify-self: start; }
  .at-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .at-work:nth-child(n of :not([hidden])) { grid-column: auto; margin-top: 0; }
  .at-work:nth-child(2n of :not([hidden])) { margin-top: 64px; }
  .at-work:nth-child(n of :not([hidden])) .at-work__media { aspect-ratio: 4 / 5; }
  .at-work__meta { flex-direction: column; gap: 6px; }
  .at-work__desc { margin-top: 0; }

  .at-case:popover-open { display: block; }
  .at-case__art { min-height: 0; aspect-ratio: 16 / 9; }
  .at-case__body { gap: 14px; padding: 22px 22px 16px; }
  /* Stäng-knappen följer med längst ned så att den alltid syns. */
  .at-case__close { position: sticky; bottom: 12px; z-index: 1; background: var(--paper); box-shadow: 0 10px 24px -12px rgba(30, 26, 22, 0.45); }

  .at-studio__grid { grid-template-columns: 1fr; }
  .at-studio__head { position: static; }
}

@media (max-width: 560px) {
  .at-hero__title .l--in { padding-left: 0.7em; }
  .at-hero__actions { gap: 18px 24px; }
  .at-grid { grid-template-columns: 1fr; row-gap: 56px; }
  .at-work:nth-child(2n of :not([hidden])) { margin-top: 0; }
  .at-work:nth-child(n of :not([hidden])) .at-work__media { aspect-ratio: 5 / 4; }
  .at-works__bar { padding: 12px 0; }
  .at-filter span { padding: 8px 13px; font-size: 0.9rem; }
  .at-services li { grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 10px; padding: 20px 0; }
  .at-services li::before { inset: 0 -8px; }
  .at-footer__row { flex-direction: column; align-items: flex-start; }
  .at-footer__mark { font-size: 27vw; }
  .at-case__facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* Surfplatta: mer luft och läsbara etiketter i stället för en uppskalad telefonlayout. */
@media (min-width: 600px) and (max-width: 860px) {
  .js-ready .at-seq__fig { max-width: min(620px, 100%, calc((100svh - 390px) * 1.25)); }
  .at-sheet__bar { min-height: 42px; padding: 9px 16px; font-size: 0.68rem; }
  .at-swatches { gap: 14px; }
  .at-swatches .sw-l { display: inline; }
  .js-ready .at-seq__title { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 3.4rem); }
}

@media (max-width: 860px) and (max-height: 700px) {
  .js-ready .at-seq__eyebrow { display: none; }
  .js-ready .at-seq__fig { max-width: min(100%, calc((100svh - 330px) * 1.25)); }
}

/* ==========================================================================
   UTAN JAVASCRIPT: stillbilden ska bli densamma oavsett fönsterhöjd
   ========================================================================== */
html:not(.js-ready) .at-hero { min-height: 0; }
html:not(.js-ready) .at-hero__title { font-size: clamp(3.5rem, 1rem + 7.3vw, 9.6rem); }
html:not(.js-ready) .at-hero__art { max-width: 520px; }
/* Utsnittet (de översta ~2300 px) slutar rent efter filterraden. */
html:not(.js-ready) .at-works__bar { margin-bottom: 96px; }
@media (min-width: 861px) {
  html:not(.js-ready) .at-hero__art { max-width: 470px; }
}

/* ==========================================================================
   RÖRELSEKÄNSLIGHET
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ha { transform: none; }
  .ha__badge svg { animation: none; }
  /* Heron visas direkt, utan fördröjda steg. */
  .js-ready .at-hero *, .js-ready .at-hero *::before, .js-ready .at-hero *::after { animation: none !important; }
  .js-ready .ha, .js-ready .ha__light { animation: none !important; }
  .room, .at-sheet.is-s4 .room, .at-sheet.is-s4 .at-sheet__caption { transform: none; }
  .js-ready .at-sheet__board, .js-ready .at-board li { transform: none !important; }
  .js-ready [data-reveal], .js-ready [data-reveal] * { transform: none !important; }
  .js-ready [data-reveal] { opacity: 1; }
  .js-ready [data-reveal="work"] .at-work__media { clip-path: none; }
  .js-ready [data-reveal="work"] .at-work__meta, .js-ready [data-reveal="work"] .at-work__cat, .js-ready [data-reveal="work"] .at-work__desc { opacity: 1; }
  .js-ready [data-split] .wd > span { transform: none; }
  .js-ready .at-sheet, .js-ready .at-sheet:not(.is-s1), .js-ready .at-sheet.is-s1:not(.is-s3) { transform: none; }
  .js-ready .at-sheet:not(.is-s2) .rm-piece,
  .js-ready .at-sheet:not(.is-s2) .rm-piece--flat,
  .js-ready .at-sheet:not(.is-s2) .rm-piece--hang { transform: none; }
  .js-ready .at-sheet:not(.is-s1) .at-swatches li { transform: none; }
  .js-ready .at-step { transform: none !important; }
  .at-services li:hover .at-services__t { transform: none; }
  .at-work:hover .at-work__media .at-art { transform: none; }
}
