:root {
  --ink: #152137;
  --muted: #667085;
  --paper: #fbfaf6;
  --card: #ffffff;
  --blue: #123d7a;
  --blue-dark: #0b2854;
  --red: #d9382e;
  --yellow: #f3c623;
  --line: #e6e3da;
  --shadow: 0 18px 55px rgba(18, 33, 55, .11);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,250,246,.91); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(21,33,55,.08); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: .73rem; margin-top: 5px; }
.brand-mark { width: 44px; height: 36px; border-radius: 7px; background: var(--red); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 7px 5px; box-shadow: inset 0 -5px 0 rgba(0,0,0,.1); transform: rotate(-2deg); }
.brand-mark span { width: 7px; height: 7px; border-radius: 50%; background: #fff3cf; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; font-weight: 750; font-size: .93rem; }
.main-nav a:hover { color: var(--red); }
.menu-toggle { display: none; }
.hero { overflow: hidden; padding: 84px 0 76px; background: radial-gradient(circle at 78% 25%, rgba(243,198,35,.32), transparent 32%), linear-gradient(135deg, #fffef9 0%, #f6f1e5 100%); border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 510px; display: grid; grid-template-columns: 1.06fr .94fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-block; color: var(--red); text-transform: uppercase; letter-spacing: .14em; font-weight: 850; font-size: .74rem; }
.hero h1, .section-heading h2, .about-section h2, .project-intro h1 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; margin: 14px 0 20px; line-height: .98; }
.hero h1 { max-width: 720px; font-size: clamp(3.5rem, 7vw, 6.8rem); }
.hero-copy > p { max-width: 640px; color: var(--muted); font-size: 1.17rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.button.primary { color: white; background: var(--blue); box-shadow: 0 11px 24px rgba(18,61,122,.22); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.72); }
.hero-art { position: relative; height: 430px; }
.brick-stack { position: absolute; display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; padding: 18px 20px; border-radius: 22px; box-shadow: 0 35px 55px rgba(20,25,38,.22), inset 0 -14px 0 rgba(0,0,0,.12); }
.brick-stack i { width: 56px; height: 28px; border-radius: 50%; justify-self: center; margin-top: -32px; box-shadow: inset 0 -5px 0 rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.12); }
.brick-one { width: 330px; height: 132px; background: var(--red); right: 18px; top: 62px; transform: rotate(8deg); }
.brick-one i { background: #ef554a; }
.brick-two { width: 290px; height: 118px; background: var(--yellow); left: 0; top: 198px; transform: rotate(-8deg); }
.brick-two i { background: #ffe15f; }
.brick-three { width: 260px; height: 108px; background: var(--blue); right: 25px; bottom: 10px; transform: rotate(4deg); }
.brick-three i { background: #225caa; }
.projects-section { padding: 88px 0 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading h2, .about-section h2 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.section-heading p { color: var(--muted); max-width: 430px; line-height: 1.7; }
.filter-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-row a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; background: white; font-size: .9rem; font-weight: 750; }
.filter-row a:hover, .filter-row a.active { color: white; background: var(--blue); border-color: var(--blue); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(18,33,55,.05); transition: transform .22s ease, box-shadow .22s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-image { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 28px; overflow: hidden; background-color: #f7f5ef; background-image: linear-gradient(45deg, #efede8 25%, transparent 25%), linear-gradient(-45deg, #efede8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #efede8 75%), linear-gradient(-45deg, transparent 75%, #efede8 75%); background-size: 30px 30px; background-position: 0 0, 0 15px, 15px -15px, -15px 0; }
.project-image::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.78); }
.project-image img { position: relative; z-index: 1; max-width: 94%; max-height: 94%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0,0,0,.13)); }
.project-card-body { padding: 23px 23px 25px; }
.project-category { color: var(--red); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.project-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; margin: 9px 0 10px; }
.project-card h3 a { text-decoration: none; }
.project-card p { min-height: 48px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; font-size: .94rem; }
.text-link, .back-link { color: var(--blue); font-weight: 850; text-decoration: none; }
.about-section { padding: 95px 0; color: white; background: var(--blue-dark); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.about-section .eyebrow { color: var(--yellow); }
.about-copy { font-size: 1.16rem; line-height: 1.85; color: rgba(255,255,255,.82); padding-top: 23px; }
.site-footer { color: white; background: #0a1628; padding: 54px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; }
.footer-grid p { color: rgba(255,255,255,.62); max-width: 520px; line-height: 1.6; }
.footer-grid a { color: white; }
.footer-label { display: block; color: rgba(255,255,255,.55); font-size: .77rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; color: rgba(255,255,255,.45); font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.45); }
.project-detail { padding: 68px 0 100px; min-height: 70vh; }
.project-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: end; margin: 54px 0 46px; }
.project-intro h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
.project-description { color: var(--muted); line-height: 1.8; font-size: 1.08rem; padding-bottom: 12px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-item { border: 0; padding: 0; border-radius: 22px; overflow: hidden; background: white; cursor: zoom-in; aspect-ratio: 4/3; box-shadow: 0 8px 25px rgba(18,33,55,.08); }
.gallery-item.featured { grid-column: 1 / -1; aspect-ratio: 16/9; }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; padding: 30px; background: #f7f5ef; }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; z-index: 100; inset: 0; background: rgba(5,12,24,.94); display: grid; place-items: center; padding: 44px 90px; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: white; cursor: pointer; border-radius: 999px; }
.lightbox-close { right: 26px; top: 22px; width: 48px; height: 48px; font-size: 2rem; }
.lightbox-prev, .lightbox-next { top: 50%; width: 54px; height: 54px; font-size: 2.5rem; transform: translateY(-50%); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-open { overflow: hidden; }
.empty-state, .not-found { padding: 60px; border: 1px dashed #c8c3b8; border-radius: 20px; background: white; text-align: center; color: var(--muted); }
.not-found { margin-top: 80px; margin-bottom: 80px; }
@media (max-width: 900px) {
  .hero-grid, .project-intro, .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-grid { min-height: auto; }
  .hero-art { height: 330px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 26px, 1180px); }
  .nav-wrap { min-height: 70px; }
  .brand small { display: none; }
  .menu-toggle { display: block; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 9px 12px; font-weight: 800; }
  .main-nav { display: none; position: absolute; left: 13px; right: 13px; top: 72px; padding: 18px; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .hero { padding: 58px 0 45px; }
  .hero h1 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .hero-art { height: 260px; transform: scale(.82); margin-inline: -25px; }
  .project-grid { grid-template-columns: 1fr; }
  .projects-section { padding: 65px 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.featured { grid-column: auto; aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 70px 18px; }
}
/* v0.2 */
.brand-logo img{width:150px;height:62px;object-fit:contain;object-position:left center}
.hero-logo{display:flex;align-items:center;justify-content:center}
.hero-logo img{width:min(480px,100%);filter:drop-shadow(0 28px 35px rgba(18,33,55,.18));transform:rotate(1deg)}
.stage-badge{position:absolute;z-index:3;top:14px;left:14px;padding:7px 11px;border-radius:999px;color:#fff;font-size:.72rem;font-weight:850;letter-spacing:.04em;box-shadow:0 5px 13px rgba(0,0,0,.15)}
.stage-badge.concept{background:#7c3aed}.stage-badge.progress{background:#d97706}.stage-badge.finished{background:#16805b}
.stage-badge.inline{position:static;display:inline-block;box-shadow:none;margin-left:12px}
.detail-labels{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.card-meta{display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--muted);font-size:.82rem}
@media(max-width:680px){.brand-logo img{width:118px;height:50px}.hero-logo{order:-1}.hero-logo img{width:280px}.card-meta{align-items:flex-start;flex-direction:column}}

/* v0.3 – strammere logostørrelser og sikrere layout */
.brand-logo{
  flex:0 0 auto;
  width:104px;
  height:66px;
  overflow:hidden;
}
.brand-logo img{
  display:block;
  width:104px !important;
  height:66px !important;
  max-width:104px !important;
  max-height:66px !important;
  object-fit:contain;
  object-position:left center;
}
.hero-logo{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  pointer-events:none;
}
.hero-logo-card{
  width:min(300px, 78vw);
  aspect-ratio:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  border:1px solid rgba(21,33,55,.09);
  border-radius:28px;
  background:rgba(255,255,255,.72);
  box-shadow:0 22px 48px rgba(18,33,55,.12);
}
.hero-logo img{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:260px !important;
  max-height:260px !important;
  object-fit:contain;
  filter:drop-shadow(0 18px 24px rgba(18,33,55,.14));
  transform:none;
}
@media(max-width:900px){
  .hero-logo{order:-1}
  .hero-logo-card{width:min(240px,70vw);padding:14px}
  .hero-logo img{max-width:210px !important;max-height:210px !important}
}
@media(max-width:680px){
  .brand-logo{width:82px;height:54px}
  .brand-logo img{width:82px !important;height:54px !important;max-width:82px !important;max-height:54px !important}
  .hero-logo-card{width:190px;padding:12px;border-radius:22px}
  .hero-logo img{max-width:166px !important;max-height:166px !important}
}

/* v0.4 – tydelig skille mellom konsept og faktisk innhold */
.concept-notice{display:grid;grid-template-columns:44px 1fr;gap:16px;align-items:start;margin:0 0 32px;padding:20px 22px;border:1px solid #d9c8f6;border-radius:16px;background:#f7f2ff;color:#40305f}
.concept-notice .notice-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#7c3aed;color:#fff;font-family:Georgia,serif;font-size:1.25rem;font-weight:800}
.concept-notice strong{display:block;margin:1px 0 6px;font-size:1rem}
.concept-notice p{margin:0;line-height:1.65;color:#66547e}
.package-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 40px}
.package-card{padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(18,33,55,.04)}
.package-card h2{margin:0 0 14px;font-family:Georgia,"Times New Roman",serif;font-size:1.35rem}
.package-card ul{margin:0;padding:0;list-style:none}
.package-card li{position:relative;padding:8px 0 8px 25px;border-top:1px solid #efede7;line-height:1.45;color:var(--muted)}
.package-card li:first-child{border-top:0}
.package-card li::before{content:"•";position:absolute;left:7px;color:var(--blue);font-weight:900}
.package-card.included{border-top:4px solid #16805b}.package-card.excluded{border-top:4px solid #b5473d}.package-card.excluded li::before{content:"–";color:#b5473d}
.gallery-item{position:relative}
.image-type-badge{position:absolute;z-index:3;left:14px;bottom:14px;padding:7px 11px;border-radius:999px;background:rgba(12,29,54,.88);color:#fff;font-size:.72rem;font-weight:850;letter-spacing:.03em;box-shadow:0 5px 13px rgba(0,0,0,.16);pointer-events:none}
.image-type-badge.concept{background:rgba(124,58,237,.92)}.image-type-badge.product{background:rgba(22,128,91,.92)}.image-type-badge.detail{background:rgba(18,61,122,.92)}.image-type-badge.in_use{background:rgba(217,119,6,.93)}
@media(max-width:900px){.package-info{grid-template-columns:1fr 1fr}.package-card.included{grid-column:1/-1}}
@media(max-width:680px){.concept-notice{grid-template-columns:34px 1fr;padding:17px}.concept-notice .notice-icon{width:32px;height:32px}.package-info{grid-template-columns:1fr}.package-card.included{grid-column:auto}}


/* v0.4.2 – synlige bildetekster */
.gallery-entry{
  margin:0;
  min-width:0;
}
.gallery-entry.featured{
  grid-column:1 / -1;
}
.gallery-entry .gallery-item{
  width:100%;
}
.gallery-entry.featured .gallery-item{
  aspect-ratio:16 / 9;
}
.gallery-entry figcaption{
  margin:10px 8px 0;
  color:var(--muted);
  font-size:.92rem;
  line-height:1.55;
}
.lightbox-caption{
  position:absolute;
  left:50%;
  bottom:22px;
  width:min(760px, calc(100% - 150px));
  transform:translateX(-50%);
  padding:11px 16px;
  border-radius:12px;
  background:rgba(5,12,24,.78);
  color:white;
  text-align:center;
  font-size:.95rem;
  line-height:1.5;
  backdrop-filter:blur(8px);
}
.lightbox-caption[hidden]{
  display:none;
}
@media(max-width:680px){
  .gallery-entry.featured{
    grid-column:auto;
  }
  .gallery-entry.featured .gallery-item{
    aspect-ratio:4 / 3;
  }
  .lightbox-caption{
    bottom:15px;
    width:calc(100% - 36px);
    font-size:.88rem;
  }
}
