/* Lotsudden – signalflaggan */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 300 800; font-stretch: 62% 125%; font-display: swap; src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 300 800; font-stretch: 62% 125%; font-display: swap; src: url("/assets/fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --marin: #1D2224;
  --marin-deep: #141819;
  --marin-soft: #3A4245;
  --aggskal: #DCE5E1;
  --ground: #FAF9F6;
  --pistage: #C6D4CE;
  --pistage-light: #E9EFEC;
  --falu: #1D2224;
  --falu-deep: #000000;
  --ink: #1D2224;
  --ink-2: #4B5557;
  --on-dark: #F4F3EF;
  --on-dark-2: #B7C1BF;
  --rule: rgba(29, 34, 36, .18);
  --sold: #B0403A;
  --accent: #7D9A92;
  --accent-deep: #5A776F;
  --flag-field: #FAF9F6;
  --rule-dark: rgba(244, 243, 239, .26);

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1360px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --space-section: clamp(4.5rem, 10vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
::selection { background: var(--accent); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.band--evening :focus-visible, .contact :focus-visible, .hero :focus-visible, .foot :focus-visible, .film :focus-visible { outline-color: var(--on-dark); }
html { scrollbar-color: var(--marin-soft) var(--aggskal); }

h1, h2, h3 {
  font-family: var(--f);
  font-weight: 300;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.6vw + .6rem, 3.6rem); }
h3 { font-size: clamp(1.1rem, .7vw + .9rem, 1.35rem); line-height: 1.2; font-weight: 500; letter-spacing: .06em; }
.band--evening .btn--falu, .contact .btn--falu, .film .btn--falu { --bg: var(--on-dark); --fg: var(--marin); --bd: var(--on-dark); }
.band--evening .btn--falu:hover, .contact .btn--falu:hover { --bg: #FFFFFF; --bd: #FFFFFF; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
.lede { font-size: 1.2em; line-height: 1.5; }
.note { color: var(--ink-2); font-size: .92em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Knappar */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor;
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: .75em 1.35em;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font: 600 .95rem/1.1 var(--f); font-variation-settings: "wdth" 112; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--lg { min-height: 56px; padding: .95em 1.7em; font-size: 1rem; }
.btn--falu { --bg: var(--falu); --fg: var(--on-dark); --bd: var(--falu); }
.btn--falu:hover { --bg: var(--falu-deep); --bd: var(--falu-deep); }
.btn--ghost { --fg: var(--on-dark); --bd: rgba(244, 243, 239, .7); }
.btn--ghost:hover { --bg: var(--on-dark); --fg: var(--marin); --bd: var(--on-dark); }
.btn--line { --fg: var(--marin); --bd: var(--marin); }
.btn--line:hover { --bg: var(--marin); --fg: var(--on-dark); }
.btn:active { transform: translateY(1px); }

/* Toppbar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem var(--gutter);
  color: var(--on-dark);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.bar__mark img { width: clamp(150px, 14vw, 205px); height: auto; }
.bar .mark-dark { display: none; }
.bar__nav { display: flex; gap: clamp(1rem, 2vw, 2.2rem); margin-left: auto; }
.bar__nav a { font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; font-variation-settings: "wdth" 112; padding: .5rem 0; border-bottom: 1.5px solid transparent; }
.bar__nav a:hover { border-color: currentColor; }
.bar__cta { min-height: 44px; padding: .65em 1.1em; font-size: .85rem; }
.bar.is-solid { background: var(--ground); color: var(--marin); box-shadow: 0 1px 0 var(--rule), 0 8px 24px -16px rgba(29, 34, 36, .35); padding-block: .6rem; }
.bar.is-solid .mark-light { display: none; }
.bar.is-solid .mark-dark { display: block; }

/* Första vyn */
.hero {
  position: relative; min-height: 100svh; display: grid;
  grid-template-columns: 1fr auto; align-items: end; gap: 2rem;
  padding: 7rem var(--gutter) clamp(2rem, 5vw, 4rem);
  color: var(--on-dark); overflow: hidden; isolation: isolate;
  background: var(--marin);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform-origin: 40% 60%; animation: drift 38s var(--ease) both; }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 26, 27, .55) 0%, rgba(20, 26, 27, 0) 22%),
    linear-gradient(0deg, rgba(20, 26, 27, .92) 0%, rgba(20, 26, 27, .55) 32%, rgba(20, 26, 27, 0) 62%); }
.hero h1 { font-size: clamp(2.4rem, 4.6vw + .4rem, 4.75rem); line-height: .98; letter-spacing: -.005em; max-width: 14ch; }
.facts-line { display: flex; flex-wrap: wrap; gap: .4rem 0; list-style: none; padding: 0; margin: 1.6rem 0 2rem; font-size: clamp(1rem, .5vw + .9rem, 1.2rem); }
.facts-line li { padding-right: 1.1rem; margin-right: 1.1rem; border-right: 1px solid var(--rule-dark); white-space: nowrap; }
.facts-line li:last-child { border: 0; margin: 0; padding: 0; }
.facts-line strong { font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Första vyn: bildspel, logga och en rad */
.hero { grid-template-columns: 1fr; place-items: center; text-align: center; padding-bottom: clamp(5rem, 10vh, 7rem); }
.hero__body { display: grid; justify-items: center; gap: 0; max-width: 46rem; }
.hero__stamp { width: clamp(104px, 10vw, 150px); height: auto; margin-bottom: clamp(1.5rem, 3vh, 2.4rem); animation: rise 1.4s .2s var(--ease) both; }
.hero h1 { font-size: clamp(2rem, 3.6vw + .5rem, 3.9rem); max-width: none; letter-spacing: .1em; line-height: 1.05; animation: rise 1.4s .4s var(--ease) both; }
.hero__sub { margin: 1.1rem 0 2.2rem; font-size: clamp(1rem, .4vw + .95rem, 1.2rem); letter-spacing: .04em; color: var(--on-dark); max-width: none; animation: rise 1.4s .55s var(--ease) both; }
.hero__actions { justify-content: center; animation: rise 1.4s .7s var(--ease) both; }
.btn--light { --bg: var(--on-dark); --fg: var(--marin); --bd: var(--on-dark); }
.btn--light:hover { --bg: #FFFFFF; --bd: #FFFFFF; }
.reel { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--marin); }
.reel__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.8s ease-in-out; }
.reel__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.reel__slide.is-on { opacity: 1; }
.reel__slide.is-on img { transform: scale(1); }
.hero__shade { background: linear-gradient(180deg, rgba(20, 26, 27, .55) 0%, rgba(20, 26, 27, .15) 22%, rgba(20, 26, 27, .15) 55%, rgba(20, 26, 27, .6) 100%), radial-gradient(ellipse 60% 45% at 50% 52%, rgba(20, 26, 27, .38), rgba(20, 26, 27, 0) 75%); }
.reel__label { position: absolute; left: var(--gutter); bottom: 1.4rem; margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); opacity: 0; transition: opacity .6s var(--ease); }
.reel__label.is-on { opacity: .85; }
.hero .hoist { position: absolute; right: var(--gutter); bottom: clamp(2rem, 5vw, 3.5rem); text-align: left; }

/* Om Lotsudden */
.about {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter) clamp(4.5rem, 9vw, 8rem);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem);
  grid-template-areas:
    "head head head stat stat stat stat stat stat stat stat stat"
    ".    .    .    body body body body .    fact fact fact fact";
  row-gap: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.about h2 { grid-area: head; font-size: clamp(1rem, .5vw + .85rem, 1.15rem); font-weight: 500; letter-spacing: .16em; padding-top: .7rem; border-top: 1.5px solid var(--marin); align-self: start; }
.about__statement { grid-area: stat; margin: 0; max-width: 24ch; font-size: clamp(1.8rem, 2.6vw + .8rem, 3.3rem); font-weight: 300; line-height: 1.18; letter-spacing: -.005em; font-variation-settings: "wdth" 100; text-wrap: balance; }
.about__body { grid-area: body; }
.about__body p { max-width: 54ch; }
.about__body p:last-child { margin-bottom: 0; }
.about__note { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .92em; color: var(--ink-2); }
.about__facts { grid-area: fact; margin: 0; align-self: start; }
.about__facts div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--rule); }
.about__facts div:last-child { border-bottom: 1px solid var(--rule); }
.about__facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-2); padding-top: .25rem; }
.about__facts dd { margin: 0; font-weight: 500; font-variation-settings: "wdth" 106; }
@media (max-width: 1100px) {
  .about { grid-template-areas: "head head head stat stat stat stat stat stat stat stat stat" ".    .    .    body body body body body body body body body" ".    .    .    fact fact fact fact fact fact fact fact fact"; }
}
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; grid-template-areas: "head" "stat" "body" "fact"; row-gap: 1.8rem; }
  .about h2 { justify-self: start; }
}

/* Läget just nu */
.status { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); }
.status h2 { grid-column: 1 / 4; font-size: clamp(1rem, .5vw + .85rem, 1.15rem); font-weight: 500; letter-spacing: .16em; padding-top: .7rem; border-top: 1.5px solid var(--marin); align-self: start; }
.status__line { grid-column: 4 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.gallery__head { max-width: var(--max); margin: 0 auto 2.5rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 2rem; }
.gallery__head .gallery__title { margin: 0; }
.gallery__head p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.status__line::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rule); }
.status__line li { position: relative; padding: 1.8rem 1.2rem 0 0; }
.status__line li::before { content: ""; position: absolute; left: 0; top: 2px; width: 11px; height: 11px; background: var(--ground); border: 1.5px solid var(--ink-2); }
.status__line li.is-done::before { background: var(--marin); border-color: var(--marin); }
.status__line li.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(125, 154, 146, .25); }
.status__when { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-2); margin-bottom: .45rem; }
.status__what { display: flex; align-items: center; gap: .6rem; font-size: 1rem; line-height: 1.4; }
.status__what svg { width: 2.4rem; height: auto; flex: none; box-shadow: 0 3px 10px -6px rgba(29, 34, 36, .6); }
.status__line li.is-sold .status__what { font-weight: 600; }
.status__line li:not(.is-done):not(.is-now) .status__what { color: var(--ink-2); }
@media (max-width: 960px) {
  .status { grid-template-columns: 1fr; row-gap: 2rem; }
  .status h2, .status__line { grid-column: 1; justify-self: start; }
  .status__line { grid-template-columns: 1fr; width: 100%; }
  .status__line::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .status__line li { padding: 0 0 1.6rem 2rem; }
  .status__line li:last-child { padding-bottom: 0; }
}

/* Faktaband */
.factband { background: var(--ground); border-bottom: 1px solid var(--rule); padding-top: 0 !important; padding: clamp(1.6rem, 3vw, 2.4rem) var(--gutter); }
.factband dl { max-width: var(--max); margin: 0 auto; padding-top: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem 2rem; }
.factband dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-2); margin-bottom: .35rem; }
.factband dd { margin: 0; font-size: clamp(1.05rem, .6vw + .9rem, 1.3rem); font-weight: 400; font-variation-settings: "wdth" 112; letter-spacing: .02em; }

/* Gården: rendering */
.estate__hero { max-width: var(--max); margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.estate__hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.estate__hero figcaption { margin-top: .7rem; font-size: .82rem; letter-spacing: .06em; color: var(--marin); }

/* Flagglinan */
.hoist { position: relative; display: flex; flex-direction: column; gap: .9rem; padding-left: 1.6rem; align-self: end; }
.hoist::before { content: ""; position: absolute; left: 0; top: -2.5rem; bottom: -.5rem; width: 1.5px; background: rgba(244, 243, 239, .55); transform-origin: bottom; animation: line-up .9s var(--ease) both; }
.hoist__flag { display: grid; grid-template-columns: 4.2rem auto; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; text-decoration: none; color: var(--on-dark); animation: hoist 1.1s var(--ease) both; }
.hoist__flag:nth-child(1) { animation-delay: .35s; }
.hoist__flag:nth-child(2) { animation-delay: .5s; }
.hoist__flag:nth-child(3) { animation-delay: .65s; }
.hoist__flag svg { grid-row: span 2; width: 4.2rem; height: auto; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); transition: transform .4s var(--ease); transform-origin: left center; }
.hoist__flag:hover svg, .hoist__flag:focus-visible svg { transform: skewY(-4deg) scaleX(1.06); }
.hoist__name { font-weight: 700; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; align-self: end; }
.hoist__meta { font-size: .9rem; color: var(--on-dark-2); align-self: start; }
.hoist__meta--sold { color: var(--on-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; }
@keyframes hoist { from { transform: translateY(5rem); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes line-up { from { transform: scaleY(0); } to { transform: none; } }

/* Band */
.band { padding: var(--space-section) var(--gutter); }
.band__head { max-width: var(--max); margin: 0 auto clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
.band__head p { margin: 0; }
.band--noon { background: var(--pistage); }
.band--noon .band__head p, .band--noon p { color: var(--marin); }
.band--evening { background: var(--marin); color: var(--on-dark); }
.band--evening p, .band--evening dd { color: var(--on-dark-2); }

/* Platsen */
.split { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__text h2 { margin-bottom: 1.6rem; }

.ledger { width: 100%; max-width: 30rem; border-collapse: collapse; margin-top: 1.8rem; font-size: .98em; }
.ledger th, .ledger td { padding: .7rem 0; border-top: 1px solid var(--rule); text-align: left; font-weight: 400; }
.ledger tr:last-child th, .ledger tr:last-child td { border-bottom: 1px solid var(--rule); }
.ledger td { text-align: right; font-weight: 600; white-space: nowrap; }
.ledger caption { text-align: left; font-weight: 700; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; padding-bottom: .6rem; }
.ledger thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; }
.ledger--types td { text-align: left; font-weight: 400; }
.ledger--types th:first-child, .ledger--types td:first-child { padding-right: 1.25rem; }
.ledger__alt { display: block; white-space: normal; font-size: .82em; color: var(--ink-2, inherit); opacity: .8; }
.ledger--types td:last-child, .ledger--types th:last-child { text-align: right; font-weight: 600; }

/* Husen */
.houses { background: var(--aggskal); padding: var(--space-section) var(--gutter); }
.houses__head { max-width: var(--max); margin: 0 auto 2.5rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
.houses__head p { margin: 0; }
.houses__tabs { max-width: var(--max); margin: 0 auto; display: flex; gap: 0; border-bottom: 1.5px solid var(--marin); }
.tab { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.6rem 1rem 0; margin-right: 1.6rem; background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -1.5px; cursor: pointer; color: var(--ink-2); font: 700 1.05rem/1 var(--f); font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .02em; min-height: 56px; transition: color .25s var(--ease), border-color .25s var(--ease); }
.tab svg { width: 2.6rem; height: auto; box-shadow: 0 3px 10px -6px rgba(29, 34, 36, .6); transition: transform .4s var(--ease); }
.tab:hover { color: var(--marin); }
.tab:hover svg { transform: translateY(-3px); }
.tab[aria-selected="true"] { color: var(--marin); border-color: var(--accent); }

.house { position: relative; max-width: var(--max); margin: 0 auto; padding-top: clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.house[hidden] { display: none; }
.house__pattern { position: absolute; left: 0; right: 0; top: 0; height: 10px; pointer-events: none; z-index: 2; }
.house[data-flag="v"] .house__pattern { background: linear-gradient(to bottom right, transparent calc(50% - 22px), var(--accent) calc(50% - 22px), var(--accent) calc(50% + 22px), transparent calc(50% + 22px)), linear-gradient(to top right, transparent calc(50% - 22px), var(--accent) calc(50% - 22px), var(--accent) calc(50% + 22px), transparent calc(50% + 22px)), var(--flag-field); }
.house__pattern { box-shadow: inset 0 -1px 0 var(--rule); }
.houses .house:not(.is-hoisting) .house__pattern { background: var(--pat-rest); }
.house[data-flag="v"] { --pat-rest: var(--accent); }
.house[data-flag="s"] { --pat-rest: var(--marin); }
.house[data-flag="n"] { --pat-rest: repeating-conic-gradient(var(--marin) 0 25%, var(--flag-field) 0 50%) 0 0 / 20px 20px; }
.house[data-flag="s"] .house__pattern { background: linear-gradient(var(--marin), var(--marin)) center / 40% 40% no-repeat, var(--flag-field); }
.house[data-flag="n"] .house__pattern { background: repeating-conic-gradient(var(--marin) 0 25%, var(--flag-field) 0 50%) 0 0 / 40px 40px; }
.house.is-hoisting .house__pattern { animation: pattern-hoist 1s var(--ease) both; }
@keyframes pattern-hoist {
  0% { height: 10px; clip-path: inset(100% 0 0 0); }
  35% { height: 100%; clip-path: inset(0 0 0 0); }
  65% { height: 100%; clip-path: inset(0 0 0 0); }
  100% { height: 100%; clip-path: inset(0 0 calc(100% - 10px) 0); }
}
.house.is-hoisting .house__media, .house.is-hoisting .house__text { animation: rise .9s .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
.house__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.house__text h3 { font-size: clamp(1.8rem, 2.5vw + .6rem, 2.8rem); margin-bottom: 1.2rem; }
.house__text .btn { margin-top: 2rem; }
.house--sold .house__media img { filter: saturate(.75); }
.sold-label { display: inline-block; background: var(--marin); color: var(--on-dark); padding: .4em .9em; font-weight: 700; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; }

.plan { max-width: var(--max); margin: clamp(3rem, 6vw, 5rem) auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem; align-items: end; }
.plan img { grid-column: 2; grid-row: 1; width: 100%; max-height: 640px; object-fit: contain; }
.plan figcaption { grid-column: 1; grid-row: 1; font-size: .95rem; color: var(--ink-2); max-width: 26ch; border-top: 1.5px solid var(--marin); padding-top: 1rem; }

/* Gården */
.estate { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.estate__map { background: var(--pistage-light); padding: clamp(.8rem, 2vw, 1.6rem); }
.siteplan { position: relative; width: 100%; }
.siteplan img { width: 100%; height: auto; }
.siteplan .pin, .siteplan .sp-tag { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); translate: -50% -50%; display: grid; place-items: center; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.siteplan .pin { width: 30px; height: 30px; background: var(--flag-field); color: var(--marin); border: 1.5px solid var(--marin); font-size: .85rem; transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); box-shadow: 0 4px 12px -6px rgba(29, 34, 36, .5); }
.siteplan .pin:hover, .siteplan .pin.is-active, .siteplan .pin:focus-visible { background: var(--marin); color: var(--flag-field); transform: scale(1.15); outline: none; }
.siteplan .sp-tag { width: 26px; height: 26px; color: var(--flag-field); font-size: .95rem; font-variation-settings: "wdth" 125; letter-spacing: .04em; }
.siteplan a.sp-tag:hover { color: var(--accent); }
.siteplan .sp-tag--sold { opacity: .85; }
.siteplan .sp-sold { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); translate: -50% -100%; background: var(--marin); color: var(--flag-field); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .35em .7em; white-space: nowrap; }
.siteplan .sp-sold::after { content: ""; position: absolute; left: 50%; bottom: -5px; translate: -50% 0; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--marin); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .siteplan .sp-sold { font-size: .6rem; } }
@media (max-width: 560px) {
  .siteplan .pin { width: 20px; height: 20px; font-size: .68rem; border-width: 1px; }
  .siteplan .sp-tag { width: 18px; height: 18px; font-size: .72rem; }
}
.estate__caption { margin: .8rem 0 0; font-size: .85rem; color: var(--marin); max-width: none; }
.sp-land { fill: var(--ground); stroke: var(--marin); stroke-width: 1.5; }
.sp-deck { fill: var(--pistage); stroke: var(--marin); stroke-width: 1.5; }
.sp-sand { fill: #EFE9DC; stroke: var(--marin); stroke-width: 1.2; stroke-dasharray: 4 4; }
.sp-road { fill: var(--pistage-light); }
.sp-park { fill: none; stroke: var(--marin); stroke-width: 1.5; stroke-dasharray: 6 5; }
.sp-house path { fill: var(--marin); stroke: var(--marin); transition: fill .3s var(--ease); cursor: pointer; }
.sp-house:hover path { fill: var(--accent-deep); }
.sp-house--sold path { fill: #8A9593; cursor: default; }
.sp-house--sold:hover path { fill: #8A9593; }
.sp-pool { fill: var(--pistage-light); stroke: var(--marin); stroke-width: 2.5; }
.sp-spa { fill: var(--pistage); stroke: var(--marin); stroke-width: 2.5; }
.sp-label text { fill: var(--flag-field); font: 800 34px var(--f); font-variation-settings: "wdth" 125; text-anchor: middle; pointer-events: none; }
.pin circle { display: none; }
.pin rect { fill: var(--marin); stroke: var(--flag-field); stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.pin text { fill: var(--on-dark); font: 700 22px var(--f); text-anchor: middle; pointer-events: none; }
.pin:hover rect, .pin.is-active rect, .pin:focus-visible rect { transform: scale(1.25); }
.pin:focus-visible { outline: none; }
.estate__list { list-style: none; margin: 0; padding: 0; counter-reset: pin; }
.estate__list li { counter-increment: pin; display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 1rem; padding: 1.1rem 0; border-top: 1px solid rgba(29, 34, 36, .3); transition: background-color .3s var(--ease); }
.estate__list li:last-child { border-bottom: 1px solid rgba(29, 34, 36, .3); }
.estate__list li::before { content: counter(pin); grid-row: span 2; width: 2.1rem; height: 2.1rem; background: var(--marin); color: var(--on-dark); display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.estate__list h3 { font-size: 1.05rem; margin-bottom: .35rem; align-self: center; }
.estate__list p { margin: 0; font-size: .98em; }
.estate__list li.is-active, .estate__list li:target { background: rgba(220, 229, 225, .45); }

/* Inne */
.mosaic { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: clamp(.8rem, 1.5vw, 1.4rem); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__a { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic__b { grid-column: 3; grid-row: 1; aspect-ratio: 2 / 3; }
.mosaic__c { grid-column: 4; grid-row: 1; aspect-ratio: 2 / 3; }
.mosaic__text { grid-column: 3 / 5; grid-row: 2; padding: clamp(1rem, 2vw, 2rem) 0 0; }
.mosaic__text h2 { margin-bottom: 1.2rem; }

/* Film */
.film { background: var(--marin); padding: clamp(2rem, 5vw, 4rem) var(--gutter); }
.film__frame { position: relative; max-width: var(--max); margin: 0 auto; aspect-ratio: 16 / 9; background: #000; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1rem; background: rgba(20, 26, 27, .35); color: var(--on-dark); border: 0; cursor: pointer; font: 700 clamp(1.2rem, 2vw, 1.8rem)/1 var(--f); font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .03em; transition: background-color .3s var(--ease); }
.film__play svg { width: clamp(3.2rem, 5vw, 4.6rem); height: auto; padding: 1.1rem; border: 1.5px solid currentColor; box-sizing: content-box; }
.film__play small { display: block; font-size: .55em; font-weight: 500; letter-spacing: .1em; margin-top: .4rem; opacity: .85; }
.film__play:hover { background: rgba(20, 26, 27, .15); }
.film.is-playing .film__play { display: none; }

/* Köpa */
.course { max-width: var(--max); margin: 0 auto; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; position: relative; }
.course::before { content: ""; position: absolute; left: 0; right: 0; top: .55rem; height: 1.5px; background: var(--rule-dark); }
.course li { position: relative; padding-top: 2.2rem; }
.course__mark { position: absolute; top: 0; left: 0; width: 1.4rem; height: 1.1rem; background: repeating-conic-gradient(var(--on-dark) 0 25%, var(--marin-soft) 0 50%) 0 0 / .7rem .55rem; outline: 1.5px solid var(--on-dark); }
.course li:nth-child(2) .course__mark { background: var(--on-dark); }
.course li:nth-child(2) .course__mark::after { content: ""; position: absolute; inset: 30% 30%; background: var(--marin); }
.course li:nth-child(3) .course__mark { background: var(--accent); }
.course h3 { margin-bottom: .7rem; }
.terms { max-width: var(--max); margin: clamp(3rem, 6vw, 4.5rem) auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; }
.terms div { padding: 1.2rem 0; border-top: 1px solid var(--rule-dark); display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; }
.terms dt { font-weight: 700; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; padding-top: .15rem; color: var(--on-dark); }
.terms dd { margin: 0; }

/* Resväg */
.route { background: var(--aggskal); padding: var(--space-section) var(--gutter); }
.route__head { max-width: var(--max); margin: 0 auto 3rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
.route__head p { margin: 0; }
.route__legs { max-width: var(--max); margin: 0 auto; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--marin); }
.route__legs li { padding: 1.4rem 1.4rem 0 0; position: relative; }
.route__legs li + li { padding-left: 1.4rem; border-left: 1px dashed var(--rule); }
.route__time { display: block; font-weight: 700; font-variation-settings: "wdth" 125; font-size: clamp(1.6rem, 2vw + .6rem, 2.4rem); line-height: 1; margin-bottom: .8rem; color: var(--marin); }
.route__legs h3 { font-size: 1rem; margin-bottom: .4rem; }
.route__legs p { font-size: .95em; color: var(--ink-2); }
.route__alt { max-width: var(--max); margin: 2rem auto 0; color: var(--ink-2); }

/* Bilder */
.gallery { padding: var(--space-section) var(--gutter); }
.gallery__title { max-width: var(--max); margin: 0 auto 2.5rem; }
.gallery__grid { max-width: var(--max); margin: 0 auto; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 230px); grid-auto-flow: dense; gap: clamp(.5rem, 1vw, .9rem); }
.gallery__grid li { overflow: hidden; }
.gallery__grid .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery__grid .g-tall { grid-row: span 2; }
.gallery__grid button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__grid button:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__grid button:hover img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: rgba(20, 26, 27, .96); color: var(--on-dark); }
.lightbox::backdrop { background: rgba(20, 26, 27, .7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86dvh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 1.5px solid rgba(244, 243, 239, .5); color: var(--on-dark); width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: var(--on-dark); color: var(--marin); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }

/* Frågor */
.faq { max-width: 60rem; margin: 0 auto; padding: 0 var(--gutter) var(--space-section); }
.faq h2 { margin-bottom: 2rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 3rem 1.25rem 0; position: relative; font-weight: 600; font-size: 1.08em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--marin), var(--marin)) center / 100% 1.5px no-repeat, linear-gradient(var(--marin), var(--marin)) center / 1.5px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; }

/* Kontakt */
.contact { background: var(--marin); color: var(--on-dark); padding: var(--space-section) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); }
.contact > * { max-width: calc(var(--max) / 2); }
.contact__intro { justify-self: end; }
.contact__intro h2 { margin-bottom: 1.4rem; font-size: clamp(1.9rem, 2.6vw + .6rem, 3rem); }
.contact__intro p { color: var(--on-dark-2); }
.contact__person { display: flex; gap: 1.2rem; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-dark); }
.contact__person img { width: 88px; }
.contact__person p { margin: 0; color: var(--on-dark); }
.contact__name { font-weight: 700; }
.form { display: grid; gap: 1.1rem; align-content: start; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: var(--on-dark); }
.optional { font-weight: 400; color: var(--on-dark-2); }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea {
  width: 100%; min-height: 52px; padding: .8rem .9rem; background: rgba(244, 243, 239, .06); color: var(--on-dark);
  border: 1.5px solid var(--rule-dark); border-radius: 0; font: inherit; caret-color: var(--on-dark);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--on-dark); background: rgba(244, 243, 239, .1); }
.field input:user-invalid { border-color: #E39A8F; }
.field--choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.field--choice legend { width: 100%; margin-bottom: .5rem; }
.field--choice label, .field--check label { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; font-size: 1rem; cursor: pointer; min-height: 32px; }
.field input[type="radio"], .field input[type="checkbox"] { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--accent); flex: none; }
.form__submit { justify-self: start; margin-top: .6rem; }
.form__status { min-height: 1.5em; margin: 0; color: var(--on-dark); }
.form.is-sending .form__submit { opacity: .7; pointer-events: none; }

/* Sidfot */
.foot { background: var(--marin-deep); color: var(--on-dark-2); padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem; display: grid; grid-template-columns: auto 1fr; gap: 2rem 3.5rem; align-items: start; }
.foot img { width: 120px; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot strong { color: var(--on-dark); }
.foot__flags { display: flex; gap: .5rem; }
.foot__flags svg { width: 2.6rem; }
.foot__fine { grid-column: 1 / -1; font-size: .85rem; border-top: 1px solid var(--rule-dark); padding-top: 1.4rem; margin: 1rem 0 0; max-width: none; }

/* Mobil */
@media (max-width: 960px) {
  .bar__nav { display: none; }
  .bar__cta { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 6rem; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 3.4rem); }
  .hero { padding-top: 8rem; min-height: 0; }

  .hero__shade { bottom: auto; height: 100svh; background: linear-gradient(180deg, rgba(20, 26, 27, .62) 0%, rgba(20, 26, 27, .3) 10%, rgba(20, 26, 27, 0) 18%, rgba(20, 26, 27, 0) 38%, rgba(20, 26, 27, .78) 62%, var(--marin) 100%); }

  .hoist { margin-top: 1rem; }
  .bar__cta { white-space: nowrap; }
  .hoist { flex-direction: row; flex-wrap: wrap; padding-left: 0; padding-top: 1.4rem; gap: .9rem 1.4rem; }
  .hoist::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1.5px; transform-origin: left; }
  .hoist__flag { grid-template-columns: 3rem auto; column-gap: .7rem; }
  .hoist__flag svg { width: 3rem; }
  .band__head, .houses__head, .route__head { grid-template-columns: 1fr; }
  .split, .house, .estate { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .plan { grid-template-columns: 1fr; }
  .plan img, .plan figcaption { grid-column: 1; grid-row: auto; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic__a { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 3 / 2; }
  .mosaic__b { grid-column: 1; grid-row: auto; }
  .mosaic__c { grid-column: 2; grid-row: auto; }
  .mosaic__text { grid-column: 1 / 3; grid-row: auto; }
  .course { grid-template-columns: 1fr; gap: 1.6rem; }
  .course::before { top: 0; bottom: 0; left: .7rem; right: auto; width: 1.5px; height: auto; }
  .course li { padding: 0 0 0 2.6rem; }
  .terms { grid-template-columns: 1fr; }
  .route__legs { grid-template-columns: 1fr 1fr; }
  .route__legs li:nth-child(3) { padding-left: 0; border-left: 0; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .contact { grid-template-columns: 1fr; }
  .contact__intro { justify-self: start; }
  .foot { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 960px) {
  .hero { min-height: 100svh; padding-top: 6rem; padding-bottom: 2rem; align-content: center; }
  .hero .hoist { position: static; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; width: max-content; margin: 2.5rem auto 0; padding: 0 0 0 1.2rem; gap: .9rem; text-align: left; }
  .hero .hoist::before { left: 0; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; transform-origin: bottom; }
  .hero .hoist__flag { grid-template-columns: 3rem auto; }
  .hero__shade { height: auto; bottom: 0; background: linear-gradient(180deg, rgba(20, 26, 27, .6) 0%, rgba(20, 26, 27, .3) 30%, rgba(20, 26, 27, .35) 60%, rgba(20, 26, 27, .75) 100%); }
  .factband dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factband dl div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .bar { gap: 1rem; }
  .hero h1 { font-size: clamp(1.7rem, 7.6vw, 2.4rem); letter-spacing: .06em; }
  .bar__mark img { width: 138px; }
  .bar__cta .cta-long { display: none; }
  .tab { flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: .5rem; padding: .8rem .3rem .8rem 0; margin-right: .6rem; font-size: .78rem; min-width: 0; }
  .tab:last-child { margin-right: 0; }
  .tab span { font-size: .74rem; font-variation-settings: "wdth" 100; letter-spacing: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .tab svg { width: 2.4rem; }
  .facts-line li { border: 0; padding-right: 0; margin-right: 1rem; }
  .terms div { grid-template-columns: 1fr; gap: .3rem; }
  .route__legs { grid-template-columns: 1fr; }
  .route__legs li + li { padding-left: 0; border-left: 0; border-top: 1px dashed var(--rule); }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
