:root { --blue:#1c60ab; --white:#fff; --ink:#101820; --page-bg:#fff; --text:#000; --heading:#1c60ab; --page-pad:4vw; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-height:100vh; background:var(--page-bg); color:var(--text); font-family:Arial,Helvetica,sans-serif; font-size:15px; line-height:1.28; }
html.lightbox-open, body.lightbox-open { overflow:hidden; }
button, a { -webkit-tap-highlight-color:transparent; }
button { font:inherit; }
a { color:inherit; }
img,video { max-width:100%; }
.inline-image { width:var(--inline-image-width,auto); height:auto; }
[hidden] { display:none !important; }
.tile { background:var(--tile-bg,transparent); color:var(--tile-text,inherit); }

.site-header { min-height:59px; padding:8px var(--page-pad); display:flex; align-items:flex-end; gap:21px; background:var(--blue); color:var(--white); position:sticky; top:0; z-index:20; }
.brand { display:flex; align-items:center; flex:none; }
.brand img { display:block; width:220px; height:auto; transform: translateY(3px); }
.top-nav { display:flex; align-items:flex-end; gap:7px; white-space:nowrap; transform:translateY(8px); }
.top-nav a { display:block; padding:0 7px; text-decoration:none; font-size:14px; font-weight:700; line-height:1.4; }
.top-nav a:hover, .top-nav a.active, .top-nav a:focus-visible { background:#000; }
.top-nav a:focus-visible { outline:2px solid #fff; outline-offset:2px; }
@media (min-width:951px) {
  .top-nav { gap:0; }
  .top-nav a { padding-left:10.5px; padding-right:10.5px; }
  .top-nav a:first-child { padding-left:7px; }
  .top-nav a:last-child { padding-right:7px; }
}
.burger { display:none; }
main { min-height:calc(100vh - 59px); }
.site-footer { display:flex; gap:22px; flex-wrap:wrap; align-items:center; padding:28px var(--page-pad) 34px; background:var(--blue); color:var(--white); font-size:14px; font-weight:700; }
.site-footer a { display:inline-flex; align-items:center; gap:6px; color:var(--white); text-decoration:none; }
.site-footer a:hover { text-decoration:underline; text-underline-offset:3px; }
.site-footer img { width:21px; height:21px; object-fit:contain; }
.site-footer .facebook-icon { object-fit:cover; object-position:left center; }

body.root-page .site-header { background:transparent; }
body.root-page { background:var(--blue); color:var(--white); }
body.root-page #app { position:relative; z-index:1; }
body.root-page .site-footer { position:relative; z-index:2; }
.root-penrose-background { position:fixed; inset:0; width:100vw; height:100vh; height:100dvh; overflow:hidden; z-index:0; pointer-events:none; background:#1c60ab; }
.root-penrose-background line { fill:none; stroke:#000; stroke-opacity:var(--penrose-line-opacity,.30); stroke-width:var(--penrose-line-width,1px); stroke-linecap:butt; }
.root-penrose-background line.is-growing { stroke-dasharray:var(--edge-length); stroke-dashoffset:var(--edge-length); animation:penrose-draw var(--draw-duration) ease-out forwards; }
.root-penrose-background .penrose-complete-path { fill:none; stroke:#000; stroke-opacity:var(--penrose-line-opacity,.30); stroke-width:var(--penrose-line-width,1px); stroke-linecap:butt; }
.root-penrose-background .penrose-fill { fill-opacity:var(--penrose-fill-opacity,.05); stroke:none; }
.root-penrose-background .penrose-fill--large { fill:#000; --penrose-fill-opacity:var(--penrose-large-fill-opacity,.05); }
.root-penrose-background .penrose-fill--small { fill:#fff; --penrose-fill-opacity:var(--penrose-small-fill-opacity,.05); }
.root-penrose-background .penrose-fill.is-filling { fill-opacity:0; animation:penrose-fill var(--penrose-fill-duration,1800ms) ease-out forwards; }
@keyframes penrose-draw { to { stroke-dashoffset:0; } }
@keyframes penrose-fill { to { fill-opacity:var(--penrose-fill-opacity,.05); } }
@media (prefers-reduced-motion:reduce) {
  .root-penrose-background line.is-growing { animation:none; stroke-dashoffset:0; }
  .root-penrose-background .penrose-fill.is-filling { animation:none; fill-opacity:var(--penrose-fill-opacity,.05); }
}
body.root-page .home-grid { position:relative; z-index:1; }
body.root-page .home-grid .tile, body.root-page .home-grid .tile a { color:var(--white); }

.home-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:3.2vw; row-gap:0; padding:0 var(--page-pad) 7vh; }
.home-grid .tile { min-width:0; }
.home-intro { grid-column:1/-1; padding:6.8vh 0 9.5vh; max-width:900px; color:var(--tile-text,var(--ink)); font-size:clamp(17px,1.5vw,22px); line-height:1.28; font-weight:700; }
.home-intro p, .home-contact p, .service-copy p, .card-copy p, .hero-copy p { margin:0; }
.home-offers { grid-column:1/-1; font-size:clamp(15px,1.2vw,17px); font-weight:700; margin-bottom:27px; }
.home-offers p { margin:0; }
.home-service { display:block; text-decoration:none; padding-bottom:11vh; }
.home-service img { width:min(100%,205px); height:auto; display:block; margin:0 0 8px; }
.home-service h2 { font-size:18px; margin:0 0 9px; }
.service-copy { max-width:240px; font-size:clamp(15px,1.18vw,17px); line-height:1.28; }
.home-service:hover .service-copy { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.home-contact { grid-column:1/-1; color:var(--tile-text,var(--ink)); font-size:clamp(15px,1.2vw,18px); font-weight:700; padding:0 0 3vh; }

.section-hero { position:relative; width:100%; height:280px; background-position:center; background-size:cover; overflow:hidden; }
.section-hero .hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

.section-hero .hero-shade {
  z-index:1;
}

.section-hero .hero-copy {
  z-index:2;
}
.section-hero.missing-photo { background:#242424; }
.section-hero .hero-shade { position:absolute; inset:0; background:rgba(0,0,0,.31); pointer-events:none; }
.section-hero.missing-photo .hero-shade { display:none; }
.hero-copy { position:relative; z-index:1; padding:35px var(--page-pad); max-width:760px; font-size:clamp(19px,1.65vw,24px); line-height:1.1; font-weight:700; }
.hero-title { display:block; font-size:1.3em; font-style:normal; }
.hero-subtitle { display:block; font-style:italic; }
.hero-copy p { max-width:690px; }
.asset-pending { position:absolute; bottom:10px; right:var(--page-pad); z-index:2; color:#fff; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; background:#111; padding:5px 7px; }

.cards-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
  column-gap:3.2vw;
  row-gap:65px;
  grid-auto-rows:auto;
  padding:34px var(--page-pad) 85px;
}

/* Progressive enhancement:
   without JavaScript, cards use a normal readable grid;
   with JavaScript, the existing masonry calculation is enabled. */
.js-enabled .cards-grid:not(.about-grid) {
  row-gap:0;
  grid-auto-rows:1px;
}
.text-card { min-width:0; }
.cards-grid .text-card, .mode-page .text-card { color:var(--text); }
.actionable-card { cursor:pointer; }
.actionable-card:focus-visible { outline:2px solid var(--heading); outline-offset:5px; }
.card-media { position:relative; margin:0 0 11px; background:#111; }
.card-media-open { width:100%; display:block; padding:0; border:0; background:none; cursor:pointer; }
.card-media-open img,.card-media-open video { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.media-arrow { position:absolute; top:45%; border:0; background:rgba(0,0,0,.65); color:#fff; font-size:26px; width:30px; height:40px; line-height:1; cursor:pointer; }
.media-arrow.prev { left:0; }
.media-arrow.next { right:0; }
.text-card h2, .resource-card h2 { color:var(--heading); font-size:clamp(15px,1.16vw,18px); line-height:1.25; font-weight:700; text-transform:uppercase; margin:0 0 12px; }
.card-copy { font-size:clamp(14px,1.1vw,17px); line-height:1.26; overflow-wrap:anywhere; }
.card-copy p { margin:0; }
.card-copy p + p { margin-top:14px; }
.card-copy strong { font-weight:700; }
.card-copy a:not(.inline-button) { text-decoration:underline; text-underline-offset:2px; }
.card-copy .inline-button { display:inline-block; padding:6px 9px; background:#171717; color:#fff; text-decoration:none; font-size:.88em; font-weight:700; margin:2px 0; }
.card-copy .inline-button:hover { background:var(--blue); color:var(--white); }
.courses-grid .card-booking .inline-button { display:block; width:max-content; margin:0 0 14px; }

.perspectives-grid { min-height:300px; }
.perspectives-grid .card-media-open { aspect-ratio:16/9; border:2px solid #fff; overflow:hidden; }
.perspectives-grid .card-media-open img { height:100%; aspect-ratio:auto; object-fit:cover; }
.perspectives-grid .text-card:first-child { grid-column:1/-1; max-width:900px; }
.perspectives-grid .text-card:first-child h2 { color:var(--heading); }
.perspectives-grid .card-introduction .card-copy { font-size:clamp(17px,1.45vw,21px); font-weight:700; }
.about-grid {
  grid-auto-rows:auto;
  row-gap:65px;
}
.about-grid .card-about { grid-column:1; grid-row:1; }
.about-grid .card-since-2012 { grid-column:2; grid-row:1; }
.about-grid .card-approach { grid-column:3; grid-row:1; }
.about-grid .card-form-workshop-was-initiated-and-is-directed-by-fredrik-skatar { grid-column:1; grid-row:2; }
.about-grid .card-studio-skatar { grid-column:2; grid-row:2; }
.about-grid .card-contact { grid-column:3; grid-row:2; }

.resource-hero { color:var(--text); }
.resource-hero .hero-title { color:var(--heading); }
.resource-tabs { position:sticky; top:59px; z-index:19; display:flex; align-items:center; gap:22px; flex-wrap:wrap; padding:14px var(--page-pad) 12px; background:var(--page-bg); }
.resource-tabs a { color:var(--heading); font-size:14px; font-weight:700; text-decoration:none; text-underline-offset:4px; }
.resource-tabs a.active, .resource-tabs a:hover { text-decoration:underline; }
.resource-refresh-status { margin-left:auto; color:var(--text); font-size:12px; }
.resource-refresh { display:grid; place-items:center; width:32px; height:32px; flex:none; padding:2px; border:0; background:transparent; cursor:pointer; }
.resource-refresh img { display:block; width:26px; height:26px; object-fit:contain; }
.resource-refresh.is-refreshing img { animation:resource-refresh-turn .7s ease-in-out both; }
.resource-refresh:focus-visible { outline:2px solid var(--heading); outline-offset:2px; }
@keyframes resource-refresh-turn { to { transform:rotate(360deg); } }
.resource-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:35px 3.2vw; padding:23px var(--page-pad) 85px; }
.resource-media { position:relative; width:100%; padding:0; border:0; cursor:pointer; display:block; background:#151515; aspect-ratio:16/10; }
.resource-media img,.resource-media video { display:block; width:100%; height:100%; object-fit:cover; }
.video-placeholder { position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:45px; text-shadow:0 2px 8px #000; }
.resource-file { display:grid; place-items:center; color:#fff; font-weight:700; font-size:20px; cursor:default; }
.resource-card h2 { color:var(--heading); margin:10px 0 7px; }
.resource-card p { margin:0 0 7px; }
.resource-downloads { display:flex; gap:6px; align-items:center; flex-wrap:wrap; font-size:13px; font-weight:700; }
.resource-empty { grid-column:1/-1; margin:0; font-size:16px; }
.mode-page { max-width:650px; padding:35px var(--page-pad); }
.mode-page h2 { color:var(--heading); }
.route-error { padding:35px var(--page-pad); }
.booking-route { padding:40px var(--page-pad); }
.booking-route h1 { font-size:24px; margin:0 0 20px; }
.booking-route h1, .legal-page h1, .login-page h1 { color:var(--heading); }
.booking-route .inline-button { display:inline-block; width:auto; border:0; padding:10px 16px; background:var(--blue); color:var(--white); font-weight:700; cursor:pointer; }
.booking-route.on-site-request { max-width:760px; background:var(--page-bg); color:var(--text); }
.booking-route.on-site-request p { margin:0 0 21px; line-height:1.45; }
.booking-route.on-site-request p:first-child strong { color:var(--heading); font-size:25px; }
.booking-route.on-site-request .inline-button { background:var(--blue); color:#fff; text-decoration:none; }
.booking-frame { width:100%; height:100%; display:flex; flex-direction:column; background:#fff; color:var(--ink); }
.booking-frame > a { display:block; padding:12px 18px; color:var(--blue); font-size:13px; font-weight:700; }
.booking-frame iframe { flex:1; min-height:0; }
.legal-page { max-width:950px; padding:40px var(--page-pad) 85px; }
.legal-page h1 { font-size:25px; margin:0 0 26px; }
.legal-copy { font-size:16px; line-height:1.4; }
.legal-copy p { margin:0 0 18px; }
.login-page { max-width:560px; padding:50px var(--page-pad) 85px; }
.login-page h1 { margin:0 0 20px; font-size:27px; }
.login-page form { display:grid; gap:10px; margin-top:28px; }
.login-page label { font-weight:700; }
.login-page input { width:100%; padding:10px; border:1px solid var(--text); background:var(--page-bg); color:var(--text); font:inherit; }
.login-page button { width:max-content; padding:10px 18px; border:0; background:#111; color:#fff; font-weight:700; cursor:pointer; }
.login-page button:hover { background:var(--blue); color:var(--white); }
.login-error { font-weight:700; }

.lightbox { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.62); padding:3vw; }
.lightbox-window { position:relative; width:min(1100px,94vw); }
.lightbox-content { width:100%; height:min(760px,90vh); background:#fff; color:#111; overflow:hidden; position:relative; }
.lightbox[data-kind="page"] .lightbox-content { height:auto; max-height:90vh; }
.lightbox[data-kind="page"] iframe { height:260px; max-height:90vh; }
.lightbox-content iframe,.lightbox-content img,.lightbox-content video { width:100%; height:100%; display:block; border:0; object-fit:contain; }
.lightbox[data-kind="frame"] .lightbox-content { background:#000; }
.lightbox[data-kind="media"] .lightbox-content { background:#000; }
.image-lightbox-media { position:relative; height:80%; }
.image-lightbox-media img,.image-lightbox-media video { width:100%; height:100%; object-fit:contain; }
.image-lightbox-caption { height:20%; overflow:auto; padding:13px 18px; background:var(--blue); color:#fff; }
.image-lightbox-caption strong { display:block; margin-bottom:7px; }
.image-lightbox-caption p { margin:0; }
.lightbox-arrow { position:absolute; z-index:1; top:45%; border:0; width:38px; height:46px; background:rgba(0,0,0,.7); color:#fff; font-size:32px; cursor:pointer; }
.lightbox-arrow.prev { left:0; }
.lightbox-arrow.next { right:0; }
.lightbox-close { position:absolute; z-index:2; right:0; top:0; width:42px; height:42px; border:0; background:#fff; color:#111; font-size:35px; line-height:1; cursor:pointer; }
.booking-pending { padding:50px; max-width:650px; }
.booking-pending h2 { margin:0 0 24px; font-size:24px; }
.booking-pending p { font-size:17px; }
body.embed-mode .site-header { display:none; }
body.embed-mode .site-footer { display:none; }
body.embed-mode { min-height:0; }
body.embed-mode main { min-height:0; }
body.embed-mode .mode-page { width:100%; max-width:none; }

@media (max-width:950px) {
  .site-header { gap:13px; }
  .brand img { width:180px; }
  .top-nav { gap:3px; }
  .top-nav a { padding-right:5px; padding-left:5px; font-size:12px; }
  .cards-grid,.resource-grid { column-gap:25px; }
}
@media (min-width:701px) and (max-width:950px) {
  .top-nav { gap:0; }
  .top-nav a { padding-left:6.5px; padding-right:6.5px; }
  .top-nav a:first-child { padding-left:5px; }
  .top-nav a:last-child { padding-right:5px; }
}
@media (max-width:700px) {
  :root { --page-pad:5.5vw; }
  body { font-size:15px; }
  .site-header { min-height:56px; padding:9px var(--page-pad); align-items:center; justify-content:space-between; }
  .brand img { width:180px; }
  .burger { display:flex; flex-direction:column; justify-content:center; gap:6px; width:32px; height:34px; padding:5px; border:0; background:transparent; cursor:pointer; z-index:22; }
  .burger span { display:block; width:100%; height:2px; background:#fff; }
  body.menu-open .burger span:first-child { transform:translateY(4px) rotate(45deg); }
  body.menu-open .burger span:last-child { transform:translateY(-4px) rotate(-45deg); }
  .top-nav { display:none; position:fixed; inset:56px 0 0; z-index:21; background:var(--blue); padding:35px var(--page-pad); flex-direction:column; align-items:flex-start; gap:14px; overflow:auto; transform:none; }
  body.menu-open .top-nav { display:flex; }
  .top-nav a { padding:5px 8px; font-size:25px; }
  body.menu-open main { visibility:hidden; }
  .home-grid { display:block; padding:0 var(--page-pad) 35px; }
  .home-intro { padding:42px 0 48px; font-size:17px; }
  .home-offers { margin-bottom:28px; }
  .home-service { padding-bottom:26px; }
  .home-service img { width:190px; }
  .service-copy { max-width:280px; font-size:16px; }
  .home-contact { padding-top:22px; font-size:15px; }
  .section-hero { height:250px; }
  .hero-copy { padding:29px var(--page-pad); max-width:360px; font-size:21px; }
  .cards-grid { display:block; padding:35px var(--page-pad) 70px; }
  .resource-grid { padding:35px var(--page-pad) 70px; }
  .text-card { margin:0 0 52px; }
  .text-card h2 { font-size:17px; }
  .card-copy { font-size:15px; }
  .about-grid .text-card { grid-column:auto !important; grid-row:auto !important; }
  .resource-tabs { top:56px; gap:13px 20px; padding:12px var(--page-pad); }
  .resource-tabs a { font-size:12px; }
  .lightbox { padding:0; }
  .lightbox-window { width:100%; }
  .lightbox-content { height:100dvh; }
  .booking-pending { padding:75px 25px 25px; }
}
@media (max-width:1400px) and (orientation:landscape) {
  .resource-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:1100px) and (orientation:portrait) {
  .resource-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:1100px) and (max-height:550px) and (orientation:landscape) {
  .resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) and (orientation:portrait) {
  .resource-grid { grid-template-columns:minmax(0,1fr); }
}
