*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html {
  scroll-behavior: smooth;
}

body{
  font-family:'Poppins',sans-serif;
  background:linear-gradient(180deg, #f5f7fa 0%, #eef3f7 100%);
  color:#233240;
  line-height:1.7;
}

::selection{
  background:#0A4A85;
  color:#fff;
}

.intro-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}

.intro-modal.active{
  opacity:1;
  pointer-events:auto;
}

.intro-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(3, 9, 18, 0.78);
  backdrop-filter:blur(8px);
}

.intro-modal__content{
  position:relative;
  width:min(980px, 100%);
  background:linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,246,248,0.95));
  border:1px solid rgba(10,74,133,0.15);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 24px 80px rgba(0,0,0,.28);
  transform:translateY(24px) scale(.97);
  opacity:0;
  transition:opacity .45s ease, transform .45s ease;
}

.intro-modal.active .intro-modal__content{
  transform:translateY(0) scale(1);
  opacity:1;
}

.intro-modal__badge{
  position:absolute;
  top:18px;
  left:18px;
  z-index:3;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.9);
  color:#0A4A85;
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.intro-modal__close{
  position:absolute;
  top:16px;
  right:16px;
  z-index:3;
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background:rgba(9, 23, 40, 0.88);
  color:#fff;
  font-size:1.5rem;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}

.intro-modal__close:hover{
  transform:scale(1.04);
  background:#0A4A85;
}

.intro-modal__slider{
  position:relative;
  min-height:530px;
}

.intro-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transform:scale(1.02);
  transition:opacity .8s ease, transform .8s ease, visibility .8s ease;
}

.intro-slide.active{
  opacity:1;
  visibility:visible;
  transform:scale(1);
}

.intro-slide::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(3,9,18,0.75) 0%, rgba(3,9,18,0.25) 45%, rgba(3,9,18,0.6) 100%);
}

.intro-slide img{
  width:100%;
  height:530px;
  object-fit:cover;
}

.intro-slide__text{
  position:absolute;
  left:28px;
  right:28px;
  bottom:28px;
  z-index:2;
  background:rgba(255,255,255,0.12);
  backdrop-filter:blur(12px);
  color:#fff;
  padding:20px 24px;
  border-radius:20px;
  max-width:560px;
  border:1px solid rgba(255,255,255,0.2);
}

.intro-slide__label{
  display:inline-block;
  margin-bottom:8px;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#dcecff;
}

.intro-slide__text h3{
  margin-bottom:8px;
  font-size:1.25rem;
}

.intro-modal__footer{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:16px 24px 24px;
}

.intro-modal__controls{
  display:flex;
  justify-content:center;
  gap:8px;
}

.intro-dot{
  width:11px;
  height:11px;
  border-radius:50%;
  background:#c9d5de;
  transition:transform .2s ease, background .2s ease;
}

.intro-dot.active{
  background:#0A4A85;
  transform:scale(1.2);
}

.intro-modal__actions{
  display:flex;
  justify-content:center;
}

.intro-button{
  padding:12px 26px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg, #0A4A85, #1666aa);
  color:#fff;
  cursor:pointer;
  font-weight:600;
  box-shadow:0 12px 28px rgba(10,74,133,.25);
  transition:transform .2s ease, box-shadow .2s ease;
}

.intro-button:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(10,74,133,.3);
}

img,
model-viewer{
  display:block;
  max-width:100%;
}

header{
  min-height:100vh;
  background:#08131d;
  position:relative;
}

header::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(8,19,29,0.2), rgba(8,19,29,0.45));
  pointer-events:none;
}

header > *{
  position:relative;
  z-index:1;
}

nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:25px 8%;
  gap:20px;
  flex-wrap:wrap;
  position:relative;
}

/* Ensure nav lists never show default bullets (fallback when JS doesn't run) */
nav ul{
  list-style: none !important;
  margin: 0;
  padding: 0;
}

nav li{
  list-style: none !important;
}

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  width:44px;
  height:44px;
  border:0;
  border-radius:10px;
  background:rgba(255,255,255,0.12);
  cursor:pointer;
  padding:10px;
  margin-left:auto;
}

.nav-toggle span{
  display:block;
  width:100%;
  height:2px;
  background:#fff;
  border-radius:999px;
  transition:transform .25s ease, opacity .25s ease;
}

.nav-links{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  list-style:none;
  margin:0;
  padding:0;
  justify-content:flex-end;
}

.model-viewer-wrapper{
    position:relative;
    width:100%;
    height:600px;
}

model-viewer{
    width:100%;
    height:100%;
    background:#f5f5f5;
}

.controls{
    position:absolute;
    bottom:20px;
    left:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
    z-index:10;
}

.controls button{
    padding:10px 15px;
    border:none;
    border-radius:8px;
    cursor:pointer;
}


.logo img{
  max-width:160px;
  width:100%;
  height:auto;
}

nav ul li{
  margin:0;
}

nav ul li a{
  color:white;
  text-decoration:none;
  transition: color .25s ease;
  font-weight:500;
}

nav ul li a:hover,
a:hover{
  color:#7dc5ff;
}

.hero{
  min-height:calc(100vh - 92px);
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:white;
  padding:0 20px;
}

.hero-home,
.hero-boats,
.hero-3d{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.hero-home{
  background-image:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url(../assets/images/back4.png);
}

.hero-boats{
  background-image:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url(../assets/images/BACK1.png);
}

.hero-3d{
  background-image:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url(../assets/images/BACK2.png);
}

.hero h1{
  font-size:3.8rem;
  max-width:900px;
  margin-bottom:20px;
}

.hero p{
  font-size:1.2rem;
  max-width:720px;
  margin:0 auto;
  line-height:1.8;
}

.buttons{
  margin-top:35px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:15px;
}

.buttons a{
  padding:15px 35px;
  background:linear-gradient(135deg, #0A4A85 0%, #1470b8 100%);
  color:white;
  text-decoration:none;
  border-radius:999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow:0 12px 24px rgba(10,74,133,.22);
}

.buttons a:hover{
  background:linear-gradient(135deg, #083a69 0%, #0d5b95 100%);
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(10,74,133,.28);
}

.desktop-boat-slider{
  position:fixed;
  right:3%;
  top:50%;
  transform:translateY(-50%);
  width:min(24vw, 320px);
  max-width:320px;
  height:min(72vh, 480px);
  min-height:320px;
  z-index:20;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.16);
  border-radius:30px;
  backdrop-filter:blur(20px);
  box-shadow:0 28px 70px rgba(0,0,0,0.18);
}

.desktop-boat-slider__track{
  position:relative;
  width:100%;
  height:100%;
}

.desktop-boat-panel{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  visibility:hidden;
  transform:translateX(24px) scale(0.97);
  transition:opacity .55s ease, transform .55s ease, visibility .55s ease;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 20px 45px rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(22px);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  text-decoration:none;
}

.desktop-boat-panel.active{
  opacity:1;
  visibility:visible;
  transform:translateX(0) scale(1);
}

.desktop-boat-panel img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
  background:#07131e;
  opacity:.95;
}

.desktop-boat-panel::after{
  content:"GALERIA RUKKA";
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#0A4A85;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-align:center;
  box-shadow:0 10px 24px rgba(0,0,0,.16);
  pointer-events:none;
}

section{
  padding:80px 8%;
}

section.about,
section.services,
section.technology,
section.fleet,
section.contact,
section.viewer3d{
  background:transparent;
}

.partners{
  padding:70px 8% 90px;
  background:linear-gradient(180deg, rgba(10,74,133,0.04) 0%, rgba(10,74,133,0.01) 100%);
}

.page-wrapper{
  padding:20px 0 0;
}

.sections-container{
  max-width:1280px;
  margin:0 auto;
  padding:0 8%;
}

.page-showcase{
  padding:40px 0 20px;
}

.page-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:24px;
}

.page-card{
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(10,20,30,.08);
  border:1px solid rgba(10,74,133,.08);
}

.page-card img{
  width:100%;
  height:230px;
  object-fit:cover;
  display:block;
}

.page-card__content{
  padding:22px 24px 26px;
}

.page-card__content h3{
  margin-bottom:8px;
  font-size:1.15rem;
}

.page-card__content p{
  color:#5e6b78;
  font-size:.95rem;
}

.section-heading{
  max-width:700px;
  margin:0 auto 36px;
  text-align:center;
}

.section-label{
  display:inline-block;
  margin-bottom:10px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(10,74,133,0.1);
  color:#0A4A85;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.section-heading h2{
  margin-bottom:10px;
  font-size:2rem;
}

.section-heading p{
  color:#536574;
}

.partners-slider{
  overflow:hidden;
  position:relative;
  padding:8px 0;
}

.partners-track{
  display:flex;
  width:max-content;
  gap:24px;
  animation:partners-scroll 24s linear infinite;
}

.partners-slider:hover .partners-track{
  animation-play-state:paused;
}

.partner-item{
  min-width:180px;
  padding:20px 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:rgba(255,255,255,0.95);
  border:1px solid rgba(10,74,133,0.12);
  box-shadow:0 12px 30px rgba(10,74,133,0.08);
}

.partner-item img{
  width:100%;
  max-height:72px;
  object-fit:contain;
  filter:grayscale(1);
  transition:filter .3s ease, transform .3s ease;
}

.partner-item:hover img{
  filter:grayscale(0);
  transform:scale(1.04);
}

@keyframes partners-scroll {
  from { transform:translateX(0); }
  to { transform:translateX(-50%); }
}

@media (max-width: 1024px) {
  .desktop-boat-slider {
    display:none;
  }
}

.model-gallery-section{
  padding:70px 8% 20px;
}

.model-gallery{
  display:grid;
  gap:24px;
  max-width:1240px;
  margin:0 auto;
}

.model-gallery__row{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:24px;
  align-items:center;
}

.model-gallery__row--right{
  grid-template-columns:0.95fr 1.05fr;
}

.model-gallery__media{
  overflow:hidden;
  border-radius:24px;
  box-shadow:0 18px 40px rgba(10,20,30,.12);
  background:#f2f6fa;
}

.model-gallery__media img{
  width:100%;
  height:380px;
  object-fit:cover;
  display:block;
}

.model-gallery__content{
  padding:10px 8px;
}

.model-gallery__content h3{
  margin-bottom:10px;
  font-size:1.3rem;
  color:#0A4A85;
}

.model-gallery__content p{
  color:#536574;
  font-size:1rem;
  max-width:560px;
}

.gallery-page-header{
  min-height:100vh;
  background:linear-gradient(135deg, #07131e 0%, #10304a 100%);
}

.gallery-page-hero{
  min-height:calc(100vh - 110px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 8% 80px;
}

.gallery-page-hero__content{
  max-width:760px;
  text-align:center;
  color:#f5f7fb;
}

.gallery-page-hero__content h1{
  font-size:clamp(2.2rem, 4vw, 3.4rem);
  margin:12px 0 16px;
}

.gallery-page-hero__content p{
  font-size:1.05rem;
  color:#d7e5f2;
  max-width:680px;
  margin:0 auto;
}

.gallery-page{
  padding:70px 1cm 40px;
}

.gallery-page__intro{
  max-width:760px;
  margin:0 auto 40px;
  text-align:center;
}

.gallery-page__intro h2{
  margin-bottom:10px;
  font-size:2rem;
}

.gallery-page__intro p{
  color:#536574;
  font-size:1.02rem;
}

.gallery-page__grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:18px;
  width:100%;
  margin:0;
}

.gallery-page__card{
  overflow:hidden;
  border-radius:24px;
  background:#eef3f7;
  box-shadow:0 16px 40px rgba(10,20,30,.12);
}

.gallery-page__card img{
  width:100%;
  height:100%;
  min-height:220px;
  object-fit:cover;
  display:block;
  transition:transform .35s ease, filter .35s ease;
}

.gallery-page__card:hover img{
  transform:scale(1.04);
  filter:saturate(1.05);
}

.gallery-page__card--wide{
  grid-column:span 8;
  min-height:300px;
}

.gallery-page__card--medium{
  grid-column:span 4;
  min-height:320px;
}

.gallery-page__card--tall{
  grid-column:span 4;
  min-height:420px;
}

.showcase{
  display:grid;
  grid-template-columns:1.4fr 0.8fr;
  gap:32px;
  align-items:stretch;
  padding-top:60px;
  padding-bottom:60px;
}

.showcase-single{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:60px 8%;
}

.showcase-single .slider-section{
  width:min(100%, 960px);
  justify-content:center;
}

.showcase-single .slider-wrapper{
  width:100%;
  max-width:960px;
}

.showcase-single .slider{
  min-height:auto;
}

.showcase-single .slide{
  padding:24px;
  text-align:center;
}

.showcase-single .slide.active{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.showcase-single .slide img{
  width:100%;
  max-width:760px;
  height:auto;
  max-height:480px;
  object-fit:contain;
  margin:0 auto;
}

.showcase-single .slide-caption{
  position:relative;
  left:auto;
  bottom:auto;
  margin-top:16px;
  width:100%;
  max-width:760px;
}

.slider-section{
  display:flex;
}

.slider-wrapper{
  width:100%;
  background:white;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(0,0,0,.10);
}

.slider{
  position:relative;
  min-height:560px;
}

.slide{
  display:none;
  position:relative;
  width:100%;
  height:100%;
}

.slide.active{
  display:block;
}

.slide img{
  width:100%;
  height:560px;
  object-fit:cover;
}

.slide-caption{
  position:absolute;
  left:24px;
  bottom:24px;
  background:rgba(7, 26, 45, 0.8);
  color:white;
  padding:18px 20px;
  border-radius:14px;
  max-width:82%;
}

.slide-caption h3{
  margin-bottom:6px;
  font-size:1.15rem;
}

.gallery-section{
  display:flex;
  align-items:stretch;
}

.gallery-slider{
  width:100%;
  background:white;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 16px 32px rgba(0,0,0,.08);
  position:relative;
}

.gallery-track{
  position:relative;
  min-height:460px;
}

.gallery-item{
  position:absolute;
  inset:0;
  display:none;
  flex-direction:column;
}

.gallery-item.active{
  display:flex;
}

.gallery-item img{
  width:100%;
  height:320px;
  object-fit:cover;
}

.gallery-info{
  padding:20px 22px 24px;
}

.gallery-info h3{
  margin-bottom:8px;
  font-size:1.15rem;
}

.gallery-info p{
  color:#5e6b78;
  font-size:0.95rem;
}

.gallery-controls{
  position:absolute;
  right:16px;
  bottom:16px;
  display:flex;
  gap:10px;
  z-index:2;
}

.gallery-btn{
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:rgba(7,26,45,0.85);
  color:white;
  cursor:pointer;
  font-size:18px;
}

.gallery-btn:hover{
  background:#0A4A85;
}

h2{
  text-align:center;
  font-size:2.5rem;
  margin-bottom:40px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:25px;
}

.card{
  background:rgba(255,255,255,0.95);
  padding:30px;
  border-radius:18px;
  box-shadow:0 16px 36px rgba(10,20,30,.08);
  border:1px solid rgba(10,74,133,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 42px rgba(10,20,30,.12);
}

.boats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.boat{
  background:rgba(255,255,255,0.96);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 16px 36px rgba(10,20,30,.08);
  padding:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  border:1px solid rgba(10,74,133,.08);
}

.boat model-viewer{
  width:100%;
  min-height:260px;
  border-radius:16px;
}

.boat h3{
  margin-top:18px;
}

.viewer3d{
  background:#ffffff;
  padding:80px 8%;
}

.model-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(300px,1fr));
  gap:30px;
  justify-items:center;
}

.model-card{
  width:100%;
  max-width:560px;
  background:#f9fbff;
  border-radius:20px;
  padding:25px;
  text-align:center;
  box-shadow:0 20px 40px rgba(218,216,216,.08);
}

.model-card h3{
  margin-bottom:12px;
  font-size:1.6rem;
}

.model-card p{
  margin-bottom:18px;
  color:#555;
}

.model-viewer-wrapper{
  width:100%;
  aspect-ratio:16/9;
  border-radius:18px;
  overflow:hidden;
  background:#707070;
}

.model-viewer-wrapper model-viewer{
  width:100%;
  height:100%;
}

.model-buttons{
  text-align:center;
  margin-bottom:20px;
}

.model-buttons button{
  background:#0A4A85;
  color:white;
  border:none;
  padding:12px 20px;
  margin:5px;
  border-radius:8px;
  cursor:pointer;
  transition: background .2s ease;
}

.model-buttons button:hover{
  background:#083a69;
}

#viewer{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center;
  align-items:flex-start;
  background:#b6b6b6;
  border-radius:55px;
  padding:40px;
}

#viewer model-viewer{
  width:100%;
  max-width:320px;
  min-width:240px;
  height:300px;
  border-radius:25px;
}

.contact form{
  max-width:700px;
  margin:auto;
  display:grid;
  gap:20px;
}

input,
textarea{
  width:100%;
  padding:15px;
  margin:0;
  border:1px solid #ccc;
  border-radius:8px;
  resize:vertical;
}

button{
  padding:15px 40px;
  background:#0A4A85;
  color:white;
  border:none;
  border-radius:8px;
  cursor:pointer;
  transition: background .2s ease;
}

button:hover{
  background:#083a69;
}

.site-status{
  max-width:700px;
  margin:auto 0 40px;
  padding:24px;
  border:1px solid rgba(10, 74, 133, 0.15);
  border-radius:20px;
  background:#f9fbff;
}

.site-status h2{
  margin:0 0 18px;
  font-size:1.5rem;
  color:#0a4a85;
}

.status-panel{
  display:grid;
  grid-template-columns:repeat(3, minmax(140px,1fr));
  gap:16px;
}

.status-card{
  padding:18px;
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 12px 30px rgba(0,0,0,0.05);
  text-align:center;
}

.status-card span{
  display:block;
  font-size:0.95rem;
  color:#556077;
  margin-bottom:10px;
}

.status-card strong{
  display:block;
  font-size:2rem;
  color:#0a4a85;
}

.status-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
  margin-top:22px;
}

.status-actions button{
  min-width:180px;
  padding:14px 18px;
}

.status-note{
  margin-top:16px;
  text-align:center;
  color:#556077;
  font-size:0.95rem;
}

footer,
.site-footer{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg, #0d1b2a 0%, #132638 100%);
  color:#e8f2fb;
  padding:48px 8% 36px;
  margin-top:40px;
}

.site-footer__video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}

.site-footer__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(4,13,24,0.82) 0%, rgba(6,22,38,0.72) 100%);
  z-index:0;
}

.footer-content,
.footer-bottom{
  position:relative;
  z-index:1;
}

.footer-content{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:28px;
  align-items:start;
  max-width:1200px;
  margin:0 auto;
}

.footer-brand h3,
.footer-links h3,
.footer-contact h3{
  margin-bottom:12px;
  font-size:1.05rem;
  color:#ffffff;
}

.footer-brand p,
.footer-links a,
.footer-contact p{
  color:#b9c7d4;
  font-size:.95rem;
}

.footer-links ul{
  list-style:none;
  display:grid;
  gap:8px;
}

.footer-links a{
  text-decoration:none;
  transition:color .2s ease;
}

.footer-links a:hover{
  color:#7dc5ff;
}

.footer-bottom{
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.13);
  text-align:center;
  color:#91a3b2;
  font-size:.92rem;
}

@media (max-width: 1024px) {
  .showcase{
    grid-template-columns:1fr;
  }

  .gallery-section{
    width:100%;
  }

  .page-grid{
    grid-template-columns:1fr 1fr;
  }

  .model-gallery__row,
  .model-gallery__row--right{
    grid-template-columns:1fr;
  }

  section{
    padding:70px 6%;
  }

  .hero h1{
    font-size:3rem;
  }

  .hero p{
    font-size:1.1rem;
  }

  .buttons a{
    width:100%;
    max-width:320px;
  }

  .footer-content{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 780px) {
  nav{
    padding:20px 5%;
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .nav-toggle{
    display:flex;
  }

  .nav-links{
    display:none;
    width:100%;
    flex-direction:column;
    gap:10px;
    margin-top:12px;
    padding:12px 0 0;
    border-top:1px solid rgba(255,255,255,0.14);
  }

  /* Fallback: apply same behavior when JS didn't add .nav-links class */
  nav > ul {
    display: none;
    width:100%;
    flex-direction:column;
    gap:10px;
    margin-top:12px;
    padding:12px 0 0;
    border-top:1px solid rgba(255,255,255,0.14);
  }

  nav.is-open > ul,
  nav.is-open .nav-links{
    display:flex;
    flex-direction:column;
  }

  .nav-links li,
  nav > ul li {
    width:100%;
  }

  .nav-links li a{
    display:block;
    width:100%;
    padding:8px 0;
  }

  nav.is-open .nav-toggle span:nth-child(1){
    transform:translateY(6px) rotate(45deg);
  }

  nav.is-open .nav-toggle span:nth-child(2){
    opacity:0;
  }

  nav.is-open .nav-toggle span:nth-child(3){
    transform:translateY(-6px) rotate(-45deg);
  }

  .nav-links li a{
    display:block;
    padding:8px 0;
  }

  .hero{
    min-height:auto;
    padding:70px 20px;
  }

  section{
    padding:60px 5%;
  }

  .boats,
  .cards,
  .model-grid{
    grid-template-columns:1fr;
  }

  .page-grid{
    grid-template-columns:1fr;
  }

  .model-gallery__media img{
    height:300px;
  }

  .gallery-page__grid{
    grid-template-columns:1fr;
  }

  .gallery-page__card,
  .gallery-page__card--wide,
  .gallery-page__card--medium,
  .gallery-page__card--tall{
    grid-column:auto;
    min-height:260px;
  }

  .gallery-track{
    min-height:390px;
  }

  .gallery-item img{
    height:240px;
  }

  #viewer{
    padding:20px;
    border-radius:30px;
  }

  #viewer model-viewer{
    max-width:100%;
  }

  .buttons a{
    width:100%;
    max-width:none;
  }

  .footer-content{
    grid-template-columns:1fr;
  }
}

@media (max-width: 520px) {
  nav{
    flex-direction:row;
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .nav-links{
    width:100%;
    justify-content:space-between;
  }

  .hero h1{
    font-size:2.2rem;
  }

  .hero p{
    font-size:1rem;
    max-width:100%;
  }

  section{
    padding:50px 5%;
  }

  .slide img{
    height:360px;
  }

  .slider{
    min-height:360px;
  }

  .slide-caption{
    left:12px;
    right:12px;
    bottom:12px;
    max-width:none;
  }

  .intro-modal__content{
    border-radius:20px;
  }

  .intro-slide img{
    height:460px;
  }
}
