/* ==========================================================================
   Danielsson Data & Drone Tjenester, design system
   Palette:  Ink #0E1B2B · Fjord #1C3A5E · Gold #C79A3C · Mist #EEF1EF · Slate #7C8B96 · Paper #FBFAF7
   Type:     Big Shoulders Display (display) · Public Sans (body) · IBM Plex Mono (telemetry/labels)
   ========================================================================== */

/* Self-hosted (no third-party request to Google on page load, see /assets/fonts/) */
@font-face{
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('../fonts/big-shoulders-display-variable.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;
}
@font-face{
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/public-sans-variable.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;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400.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;
}
@font-face{
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500.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{
  --ink:   #0E1B2B;
  --fjord: #1C3A5E;
  --gold:  #C79A3C;
  --gold-light: #E3C57C;
  --mist:  #EEF1EF;
  --paper: #FBFAF7;
  --slate: #7C8B96;
  --slate-100: #DDE3E2;
  --line: rgba(14,27,43,0.12);

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* -------------------------------------------------------------- reset -- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p,figure{ margin: 0; }
button{ font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select{ font: inherit; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible{
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--mist), 0 0 0 5px var(--ink);
}
.section--dark :focus-visible,
body.home .site-header :focus-visible{
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--mist);
}

.skip-link{
  position: absolute;
  top: -6rem;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.8em 1.2em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus{
  top: 1rem;
}

/* ---------------------------------------------------------- utilities -- */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow--gold{ color: var(--gold); }
.section{ padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight{ padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark{ background: var(--ink); color: var(--mist); }
.section--paper{ background: var(--paper); }
.section-head{
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2{ margin-top: 0.6rem; }
.section-head p{ margin-top: 1rem; color: var(--slate); font-size: 1.05rem; }
.section--dark .section-head p{ color: #B9C4CC; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 0.98;
  text-transform: uppercase;
}
h1{ font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2{ font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3{ font-size: clamp(1.25rem, 2.4vw, 1.6rem); text-transform: none; font-weight: 700; letter-spacing: 0; }

.lede{ font-size: 1.15rem; color: var(--slate); max-width: 46ch; }
.section--dark .lede{ color: #C3CCD2; }

/* telemetry-style caption: recurring signature device */
.telemetry{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}
.telemetry::before{
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.telemetry--light{ color: rgba(255,255,255,0.78); }
.telemetry--light::before{ background: var(--gold-light); }

/* buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn--gold{ background: var(--gold); color: var(--ink); }
.btn--gold:hover{ background: var(--gold-light); }
.btn--outline{ border-color: currentColor; color: var(--ink); }
.btn--outline:hover{ background: var(--ink); color: var(--mist); }
.section--dark .btn--outline{ color: var(--mist); }
.section--dark .btn--outline:hover{ background: var(--mist); color: var(--ink); }
.btn--sm{ padding: 0.65em 1.2em; font-size: 0.82rem; }

/* ------------------------------------------------------------- header -- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand__icon{ width: 34px; height: 34px; flex-shrink: 0; }
.brand__text{ display: flex; flex-direction: column; line-height: 1; }
.brand__name{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.brand__tag{
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.28rem;
}

.nav-primary{
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.nav-primary a{
  font-size: 0.88rem;
  font-weight: 600;
  padding-block: 0.3rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s var(--ease), color .2s var(--ease);
}
.nav-primary a:hover, .nav-primary a[aria-current="page"]{ border-color: var(--gold); }

.header-actions{ display: flex; align-items: center; gap: 1rem; }
.lang-toggle{
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-toggle a{ padding: 0.4em 0.7em; color: var(--slate); }
.lang-toggle a[aria-current="true"]{ background: var(--ink); color: var(--mist); }

.nav-toggle{ display: none; }

/* transparent header over homepage hero */
body.home .site-header{
  position: absolute;
  inset-inline: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
}
body.home .site-header.is-scrolled{
  position: fixed;
  background: rgba(14,27,43,0.92);
  backdrop-filter: blur(6px);
  border-bottom-color: rgba(255,255,255,0.1);
}
body.home .site-header .brand__name,
body.home .site-header .nav-primary a,
body.home .site-header .lang-toggle a{ color: var(--mist); }
body.home .site-header .brand__tag{ color: #B9C4CC; }
body.home .site-header .btn--outline{ color: var(--mist); }
body.home .site-header .lang-toggle{ border-color: rgba(255,255,255,0.28); }

/* ---------------------------------------------------------------- hero -- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--mist);
  overflow: hidden;
}
.hero__media{
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__media img,
.hero__media video{
  width: 100%; height: 100%; object-fit: cover;
}
.hero__media::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,27,43,0.35) 0%, rgba(14,27,43,0.15) 30%, rgba(14,27,43,0.78) 100%);
}
.hero__content{
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(2.5rem, 6vh, 4rem);
}
.hero__eyebrow{ margin-bottom: 1rem; }
.hero h1{ max-width: 16ch; }
.hero__lede{
  margin-top: 1.4rem;
  font-size: 1.15rem;
  max-width: 44ch;
  color: rgba(238,241,239,0.88);
}
.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero__strip{
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero__strip .container{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

/* page (non-home) header banner for interior pages */
.page-banner{
  padding-block: clamp(5.5rem, 12vh, 8rem) clamp(2.5rem, 6vh, 3.5rem);
  background: var(--ink);
  color: var(--mist);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-banner .eyebrow{ color: var(--gold-light); }
.page-banner h1{ margin-top: 0.75rem; font-size: clamp(2.4rem, 5.5vw, 3.8rem); max-width: 20ch; }
.page-banner p{ margin-top: 1rem; color: #C3CCD2; max-width: 52ch; font-size: 1.05rem; }

/* ------------------------------------------------------------ pillars -- */
.pillars{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 800px){
  .pillars{ grid-template-columns: 1fr 1fr; }
}
.pillar{
  background: var(--paper);
  padding: clamp(2rem, 4vw, 3rem);
}
.pillar__mark{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.pillar h3{
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-top: 0.6rem;
  letter-spacing: 0.01em;
}
.pillar p{ margin-top: 1rem; color: var(--slate); max-width: 42ch; }
.pillar__list{ margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
.pillar__list li{
  font-size: 0.92rem;
  padding-left: 1.2em;
  position: relative;
}
.pillar__list li::before{
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 1.5px;
  background: var(--gold);
}
.pillar__link{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 0.2em;
}

/* -------------------------------------------------------- stat strip -- */
.stat-strip{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px){
  .stat-strip{ grid-template-columns: repeat(4, 1fr); }
}
.stat-strip__item{
  padding: clamp(1.4rem, 3vw, 2.2rem) var(--gutter);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px){ .stat-strip__item{ border-bottom: none; } }
.stat-strip__item:nth-child(2n){ border-right: none; }
@media (min-width: 700px){
  .stat-strip__item:nth-child(2n){ border-right: 1px solid var(--line); }
  .stat-strip__item:last-child{ border-right: none; }
}
.stat-strip__value{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  text-transform: uppercase;
}
.stat-strip__label{
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ------------------------------------------------------------ gallery -- */
.gallery{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}
@media (min-width: 720px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .gallery--feature .gallery__item:first-child{ grid-column: 1 / -1; }
}
.gallery__item{ display: flex; flex-direction: column; gap: 0.9rem; }
.gallery__frame{
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--slate-100);
}
.gallery--feature .gallery__item:first-child .gallery__frame{ aspect-ratio: 16 / 8; }
.gallery__frame img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover .gallery__frame img{ transform: scale(1.035); }
.gallery__caption{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.gallery__caption h3{ font-size: 1.05rem; }

/* ------------------------------------------------------------- cards --- */
.card-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px){ .card-grid{ grid-template-columns: repeat(3, 1fr); } }
.card{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.8rem;
}
.card--quote{ display: flex; flex-direction: column; gap: 1.2rem; }
.card--quote p{ font-size: 1.05rem; line-height: 1.6; }
.card--quote footer{ display: flex; flex-direction: column; gap: 0.15rem; }
.card--quote .name{ font-weight: 700; font-size: 0.92rem; }
.card--quote .role{ font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate); }
.card--quote .mark{ font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: 0.6; }

/* --------------------------------------------------------------- faq --- */
.faq-list{ border-top: 1px solid var(--line); }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item__q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-item__icon{
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-item__icon{ transform: rotate(45deg); }
.faq-item__a{
  padding-bottom: 1.5rem;
  color: var(--slate);
  max-width: 62ch;
}
.faq-item summary{ list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker{ display: none; }

/* ------------------------------------------------------------ contact --- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 900px){
  .contact-grid{ grid-template-columns: 0.9fr 1.1fr; }
}
.contact-info dl{ margin-top: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-info dt{ font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.contact-info dd{ margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 600; }
.contact-info dd a:hover{ color: var(--gold); }

.form-field{ display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.form-field label{ font-size: 0.82rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea{
  border: 1.5px solid var(--line);
  background: var(--paper);
  padding: 0.85em 1em;
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  border-color: var(--gold);
  outline: none;
}
.form-row{ display: grid; grid-template-columns: 1fr; gap: 0 1.3rem; }
@media (min-width: 560px){ .form-row{ grid-template-columns: 1fr 1fr; } }
.form-note{ margin-top: 1rem; font-size: 0.82rem; color: var(--slate); }

/* -------------------------------------------------------------- footer -- */
.site-footer{
  background: var(--ink);
  color: var(--mist);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 720px){ .footer-grid{ grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand .brand__name{ color: var(--mist); }
.footer-brand p{ margin-top: 1rem; color: #B9C4CC; max-width: 34ch; font-size: 0.92rem; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a:hover{ color: var(--gold-light); }
.social-link{ display: inline-flex; align-items: center; gap: 0.55em; }
.social-icon{ width: 16px; height: 16px; flex-shrink: 0; }
.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #8393A0;
}
.footer-bottom a:hover{ color: var(--gold-light); }
.footer-privacy{
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: #6B7986;
  max-width: 62ch;
}

/* ---------------------------------------------------------- reveal-on-scroll -- */
[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible{ opacity: 1; transform: none; }

/* ---------------------------------------------------------- mobile nav -- */
@media (max-width: 880px){
  .nav-primary{
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--ink);
    color: var(--mist);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 90;
  }
  .nav-primary a{ color: var(--mist); font-size: 1.3rem; }
  body.nav-open .nav-primary{ transform: translateX(0); }
  .nav-primary a[aria-current="page"]{ color: var(--gold-light); }

  .nav-toggle{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 26px;
    height: 20px;
    z-index: 91;
  }
  .nav-toggle span{
    display: block;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  body.nav-open .nav-primary a{ color: var(--mist) !important; }
  body.home.nav-open .site-header{ background: var(--ink); position: fixed; }

  .header-actions .btn--outline{ display: none; }
}
