@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,600;0,700;1,600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-deep:  #072e4b;
  --blue-mid:   #155d98;
  --blue-light: #1e90d6;
  --blue-pale:  #e5f2fb;
  --blue-frost: #f3f8fd;
  --sky:        #b7ddff;
  --white:      #ffffff;
  --ink:        #0d1f33;
  --muted:      #5b7494;
  --border:     #d1e3f5;
  --accent:     #f28b30;
  --accent-lt:  #ffe9d5;
  --font-d: 'Lora', serif;
  --font-b: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--blue-frost); }
::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 10px; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 6vw;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(10,61,98,.08); }

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-mark {
  width: 120px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-text { font-family: var(--font-b); font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.logo-text span { color: var(--blue-light); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--blue-deep) !important; color: var(--white) !important;
  padding: .5rem 1.3rem !important; border-radius: 100px !important;
}
.nav-cta:hover { background: var(--blue-mid) !important; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 2px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

main { padding-top: 5rem; }

.hero {
  min-height: 70vh;
  background: var(--blue-deep);
  display: flex; align-items: center;
  padding: 7rem 6vw 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; right: -5%; top: 0; bottom: 0;
  width: 52%; background: var(--blue-mid);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 4rem; align-items: center;
  position: relative; z-index: 1; width: 100%;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 1.4rem;
}
.hero-tag::before { content: ''; width: 22px; height: 1.5px; background: var(--sky); }
.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
  font-weight: 700;
  line-height: 1.15; letter-spacing: -.02em;
  color: var(--white);
}
.hero h1 em { color: var(--sky); font-style: italic; }
.hero-sub {
  margin-top: 1.4rem; color: rgba(255,255,255,.7);
  font-size: .98rem; font-weight: 300; max-width: 480px;
}
.hero-btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-b); font-size: .9rem; font-weight: 600;
  text-decoration: none; padding: .8rem 1.8rem;
  border-radius: 999px; transition: all .2s;
}
.btn-primary { background: var(--white); color: var(--blue-deep); }
.btn-primary:hover { background: var(--blue-pale); }
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,.4); color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: var(--white); }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 2.1rem;
  backdrop-filter: blur(10px);
}
.hero-image-stack {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--blue-frost);
}
.hero-image-stack img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-main {
  border-radius: 16px;
}
.hero-image-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36%;
  max-width: 220px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(6,35,58,.7);
  border: 3px solid #fff;
}
.hero-badge {
  margin-top: 1.2rem;
  display: inline-flex; flex-direction: column;
  background: var(--accent); color: #fff;
  padding: .8rem 1.2rem; border-radius: 12px;
  font-size: .78rem; font-weight: 700; line-height: 1.3;
}
.hero-badge span { font-size: 1.4rem; font-family: var(--font-d); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0; margin-top: 3.2rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; overflow: hidden;
}
.hstat { padding: 1.2rem 1.6rem; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.hstat:last-child { border-right: none; }
.hstat-v { font-family: var(--font-d); font-size: 1.9rem; color: #fff; }
.hstat-v sup { font-size: .9rem; color: var(--sky); }
.hstat-l { font-size: .7rem; color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .08em; margin-top: .18rem; }

.osamu-hero .hero-sub {
  max-width: 520px;
}
.osamu-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2rem;
}
.osamu-brand-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.86);
  font-size: .82rem;
}
.osamu-brand-item img {
  height: 34px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 4px 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.osamu-brand-text {
  display: flex;
  flex-direction: column;
}
.osamu-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .78;
}
.osamu-brand-text strong {
  font-size: .9rem;
}
.osamu-brand-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.24);
}

section { padding: 5.5rem 6vw; }
.stag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .73rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-light); margin-bottom: .8rem;
}
.stag::before { content: ''; width: 18px; height: 2px; background: var(--blue-light); border-radius: 2px; }
h2 {
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.15; letter-spacing: -.02em; color: var(--ink);
}
.slead {
  color: var(--muted); font-size: .97rem; font-weight: 300;
  max-width: 540px; margin-top: .8rem;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover {
  border-color: var(--sky);
  box-shadow: 0 10px 32px rgba(15,67,110,.16);
  transform: translateY(-3px);
}
.card h3 {
  font-family: var(--font-d);
  font-size: 1.1rem;
  margin-bottom: .4rem;
}
.card p {
  font-size: .9rem;
  color: var(--muted);
}
.card-meta {
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: .3rem;
}

.customer-marquee {
  margin-top: 2.4rem;
  position: relative;
  overflow: hidden;
}
.customer-marquee::before,
.customer-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 1;
}
.customer-marquee::before {
  left: 0;
  background: linear-gradient(to right, rgba(243,248,253,1), rgba(243,248,253,0));
}
.customer-marquee::after {
  right: 0;
  background: linear-gradient(to left, rgba(243,248,253,1), rgba(243,248,253,0));
}
.customer-track {
  display: flex;
  align-items: stretch;
  gap: 1.4rem;
  animation: customer-scroll 20s linear infinite;
  padding-block: .3rem;
}
.customer-item {
  flex: 0 0 auto;
  min-width: 260px;
  max-width: 280px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 8px 22px rgba(15,67,110,.08);
}
.customer-client {
  font-family: var(--font-d);
  font-size: 1rem;
  color: var(--ink);
}
.customer-year {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-top: .2rem;
}
.customer-desc {
  margin-top: .55rem;
  font-size: .86rem;
  color: var(--muted);
}

@keyframes customer-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-track {
    animation: none;
  }
}

/* Testimonials */
.testimonial-wrap {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.6rem;
}
.testimonial-card {
  background: rgba(255,255,255,0.7);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 2.2rem;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10,61,98,.06);
  background: #fff;
}
.testimonial-quote {
  font-size: 1rem;
  font-family: var(--font-d);
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.testimonial-quote::before {
  content: "“";
  font-family: var(--font-d);
  font-size: 4rem;
  color: var(--blue-pale);
  position: absolute;
  top: -1.7rem;
  left: -1rem;
  z-index: -1;
  line-height: 1;
}
.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blue-frost);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.testimonial-info h4 {
  font-size: .95rem;
  font-family: var(--font-d);
  color: var(--ink);
  margin-bottom: 0;
}
.testimonial-info p {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.2;
}
.testimonial-rating {
  display: flex;
  gap: 3px;
  color: #fbbf24;
  font-size: .85rem;
  margin-bottom: .8rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 3.5rem;
  margin-top: 3rem;
  align-items: flex-start;
}

.osamu-split {
  margin-top: 2.6rem;
}

.img-placeholder {
  background: var(--blue-frost);
  border-radius: 16px;
  border: 1px dashed var(--border);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
  padding: 1.5rem;
}

.osamu-img {
  min-height: 240px;
}

.list-check { list-style: none; margin-top: 1.2rem; }
.list-check li {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .5rem 0; font-size: .93rem; color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.list-check li:last-child { border-bottom: none; }
.list-check span {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-pale); color: var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; margin-top: .1rem;
}

.why-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.2rem; margin-top: 2.8rem;
}
.why-card {
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(255,255,255,.18);
}
.why-card h3 { font-family: var(--font-d); font-size: 1.02rem; margin-bottom: .4rem; color: #fff; }
.why-card p { font-size: .85rem; color: rgba(255,255,255,.72); }
.why-ico { font-size: 1.9rem; margin-bottom: .8rem; display: block; }

.table-spec {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: .9rem;
}
.table-spec th, .table-spec td {
  border: 1px solid var(--border);
  padding: .6rem .8rem;
}
.table-spec th {
  background: var(--blue-frost);
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.osamu-tabs {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: 2.2rem;
}
.osamu-tab {
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  padding: .85rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, box-shadow .2s, transform .15s, background .2s;
}
.osamu-tab .osamu-tab-title {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}
.osamu-tab .osamu-tab-desc {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-top: .18rem;
}
.osamu-tab.is-active {
  border-color: var(--blue-light);
  box-shadow: 0 10px 28px rgba(20,72,116,.2);
  transform: translateY(-1px);
}

.osamu-panels {
  margin-top: 1.6rem;
}
.osamu-panel {
  display: none;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  padding: 1.6rem 1.6rem;
}
.osamu-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1.4fr);
  gap: 1.6rem;
  align-items: flex-start;
}
.osamu-panel-body h3 {
  font-family: var(--font-d);
  font-size: 1.15rem;
  margin-bottom: .4rem;
}
.osamu-panel-body p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .9rem;
}
.osamu-spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-size: .86rem;
}
.osamu-spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem .65rem;
  border-radius: 10px;
  background: var(--blue-frost);
  border: 1px solid var(--border);
}
.osamu-spec-list li span {
  color: var(--muted);
}
.osamu-spec-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.4rem;
  margin-top: 2.8rem;
}
.portfolio-card {
  background: var(--white);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.portfolio-card:hover {
  box-shadow: 0 12px 30px rgba(17,68,111,.16);
  transform: translateY(-3px);
}
/* Portfolio Filters */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-b);
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem 1.4rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover {
  background: var(--blue-frost);
  color: var(--blue-mid);
}
.filter-btn.active {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
  box-shadow: 0 4px 12px rgba(7, 46, 75, 0.2);
}

.portfolio-thumb {
  height: 200px;
  background: var(--blue-frost);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.7rem;
  position: relative;
  overflow: hidden;
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.08);
}
.portfolio-body { padding: 1.3rem; }
.portfolio-body h3 {
  font-family: var(--font-d);
  font-size: 1.02rem;
  margin-bottom: .25rem;
}
.portfolio-body p { font-size: .84rem; color: var(--muted); }
.portfolio-tag {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: .35rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
  gap: 4rem;
  margin-top: 3rem;
}
.contact-list { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-ico {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--blue-pale);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.contact-label {
  font-size: .72rem; font-weight: 600; color: var(--blue-light);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .12rem;
}
.contact-text { font-size: .9rem; color: var(--ink); }
.map-box {
  margin-top: 1.5rem;
  background: var(--blue-frost);
  border-radius: 10px;
  border: 1px dashed var(--border);
  min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .86rem; text-align: center;
  padding: 1rem;
}

.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .32rem; }
.field label {
  font-size: .72rem; font-weight: 600; color: var(--muted);
  letter-spacing: .05em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  background: var(--blue-frost);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: var(--font-b); font-size: .92rem;
  padding: .78rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(30,144,214,.16);
  background: #fff;
}
.btn-submit {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: .8rem 2.3rem;
  background: var(--blue-deep);
  color: #fff;
  font-family: var(--font-b); font-size: .9rem; font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: .3rem;
}
.btn-submit:hover { background: var(--blue-mid); transform: translateY(-1px); }
.form-ok {
  display: none;
  margin-top: .6rem;
  background: #e8f4ef;
  border-radius: 10px;
  border: 1px solid #a8d8b8;
  color: #1a6b3c;
  font-size: .86rem;
  padding: .8rem 1.1rem;
}

footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,.5);
  padding: 3.2rem 6vw 2.3rem;
  margin-top: 3rem;
}
.ft-top {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ft-brand .logo-text { color: #fff; }
.ft-brand p {
  font-size: .86rem;
  margin-top: .8rem;
  max-width: 260px;
}
.ft-col h4 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.46);
  margin-bottom: 1rem;
}
.ft-col ul { list-style: none; }
.ft-col li { margin-bottom: .45rem; }
.ft-col a {
  font-size: .86rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.ft-col a:hover { color: #fff; }
.ft-bot {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .7rem;
  font-size: .78rem;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.vis { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 2.8rem; }
  .hero::before { display: none; }
  .hero { min-height: auto; }
  .hero-card { margin-top: 1rem; }
  .split { grid-template-columns: minmax(0,1fr); }
  .contact-wrap { grid-template-columns: minmax(0,1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .testimonial-wrap { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ft-top { grid-template-columns: 1.6fr 1fr 1fr; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0;
    width: 230px; padding: 5rem 2rem 2rem;
    background: #fff; border-left: 1px solid var(--border);
    gap: 1.2rem;
    box-shadow: -10px 0 32px rgba(0,0,0,.08);
    max-height: 100vh; overflow-y: auto;
  }

  .osamu-panel.is-active {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 640px) {
  section { padding-inline: 5vw; }
  .cards-3,
  .portfolio-grid,
  .testimonial-wrap { grid-template-columns: minmax(0,1fr); }
  .why-grid { grid-template-columns: minmax(0,1fr); }
  .hero-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .form-row { grid-template-columns: minmax(0,1fr); }
  .ft-top { grid-template-columns: minmax(0,1fr); }

  .osamu-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: .3rem;
  }
  .osamu-tab {
    min-width: 220px;
  }
  .osamu-brand {
    align-items: flex-start;
  }
}

/* Media & Publication Section */
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

/* Video Wrapper for Responsive Embeds */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--blue-deep);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 61, 98, 0.15);
  border: 1.5px solid var(--border);
}
.video-wrapper iframe, .video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  margin-top: 1rem;
  font-size: .95rem;
  color: var(--muted);
  font-style: italic;
  padding-left: .5rem;
  border-left: 3px solid var(--blue-light);
}

/* News Cards */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
}
.news-card {
  display: flex;
  gap: 1.2rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  text-decoration: none;
  align-items: center;
}
.news-card:hover {
  border-color: var(--sky);
  box-shadow: 0 8px 24px rgba(15, 67, 110, 0.12);
  transform: translateX(4px);
}
.news-thumb {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--blue-frost);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; 
  max-width: 100%;
}
.news-body {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.news-meta {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.news-title {
  font-family: var(--font-d);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: .2rem;
}
.news-card:hover .news-link {
  color: var(--blue-mid);
}

/* Awards & Certifications Section */
.award-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.8rem;
}
.award-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow .3s, transform .3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.award-card:hover {
  box-shadow: 0 12px 32px rgba(15, 67, 110, 0.1);
  transform: translateY(-5px);
  border-color: var(--blue-pale);
}
.award-img {
  height: 80px;
  width: 100%; 
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.award-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(10%);
  transition: filter .3s;
  display: block;
}
.award-card:hover .award-img img {
  filter: grayscale(0%);
}
.award-year {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: .15em;
  margin-bottom: .4rem;
}
.award-title {
  font-family: var(--font-b);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.award-desc {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .5rem;
}

/* Global mobile fixes */
img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 960px) {
  .media-split { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .award-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .award-grid { grid-template-columns: minmax(0,1fr); }
  .news-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .news-thumb { width: 100%; height: 160px; border-radius: 8px; }
  .video-caption { border-left: none; padding-left: 0; text-align: center; }
}

/* Casual & Professional Product Showcase */
.osamu-casual-showcase h2 {
  color: var(--blue-deep);
}
.osamu-casual-showcase .stag {
  background: var(--blue-frost);
  padding: 0.3rem 1rem;
  border-radius: 99px;
  display: inline-flex;
}

.casual-showcase-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
  gap: 3rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .casual-showcase-container { grid-template-columns: 1fr; gap: 2rem; }
}

.casual-tabs-wrapper {
  display: flex;
  flex-direction: column;
}

.casual-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.casual-tab {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.casual-tab:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,67,110,0.06);
}

.casual-tab.is-active {
  border-color: var(--blue-light);
  background: var(--blue-frost);
  box-shadow: 0 8px 25px rgba(30,144,214,0.12);
}

.ctab-icon {
  font-size: 1.8rem;
  background: var(--blue-pale);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: background 0.3s;
}

.casual-tab.is-active .ctab-icon {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ctab-text { display: flex; flex-direction: column; }
.ctab-title { font-family: var(--font-b); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.ctab-desc { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.casual-tab.is-active .ctab-title { color: var(--blue-deep); }

.casual-panels { position: relative; }
.casual-panel {
  display: none;
  animation: fadeSlideUp 0.4s ease forwards;
}

.casual-panel.is-active { display: block; }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.cpanel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(13,31,51,0.06);
}

.cpanel-header {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (max-width: 640px) {
  .cpanel-card { padding: 1.8rem; }
  .cpanel-header { grid-template-columns: 1fr; gap: 1.5rem; }
}

.cpanel-img-box {
  background: var(--blue-frost);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--sky);
}

.cpanel-title {
  font-family: var(--font-d);
  font-size: 2rem;
  color: var(--blue-deep);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.cpanel-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.cpanel-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 500px) {
  .cpanel-specs { grid-template-columns: 1fr; }
}

.cspec-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.cspec-card:hover {
  border-color: var(--sky);
  box-shadow: 0 6px 16px rgba(10,61,98,0.05);
}

.cspec-icon {
  font-size: 1.4rem;
  background: var(--blue-frost);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.cspec-info { display: flex; flex-direction: column; }
.cspec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.cspec-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* Futuristic Gallery Section */
.gallery-section {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.futuristic-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(183, 221, 255, 0.5); /* var(--sky) with opacity */
  box-shadow: 0 15px 35px rgba(30, 144, 214, 0.2), 0 0 20px rgba(183, 221, 255, 0.1) inset;
  background: rgba(255, 255, 255, 0.06);
}

.gallery-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--blue-deep);
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(15%) contrast(110%);
}

.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.1);
  filter: grayscale(0%) contrast(100%);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 46, 75, 0.9) 0%, rgba(7, 46, 75, 0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Futuristic Corners */
.gallery-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--sky);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; transform: translate(-10px, -10px); }
.gallery-corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; transform: translate(10px, -10px); }
.gallery-corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; transform: translate(-10px, 10px); }
.gallery-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; transform: translate(10px, 10px); }

.gallery-item:hover .gallery-corner {
  opacity: 1;
  transform: translate(0, 0);
}

.gallery-label {
  color: var(--white);
  font-family: var(--font-b);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(15px);
  transition: transform 0.4s ease;
  position: relative;
  padding-left: 1rem;
}

.gallery-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--sky);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--sky);
}

.gallery-item:hover .gallery-label {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .gallery-section .glow-orb { display: none; }
  .futuristic-gallery { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .gallery-item { backdrop-filter: none; }
  .gallery-section.reveal { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .futuristic-gallery { grid-template-columns: 1fr; gap: 1.2rem; }
  .gallery-section.reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════
   WID — Interactive Component Explorer
   ═══════════════════════════════════════════ */

.wid-section {
  background: linear-gradient(160deg, #060e18 0%, #0a1e35 40%, #0d2a4a 100%);
  padding: 5.5rem 6vw;
  position: relative;
  overflow: hidden;
}
.wid-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(30,144,214,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.wid-section::after {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30,144,214,.12) 0%, transparent 65%);
  pointer-events: none;
}

.wid-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 2;
}
.wid-header .stag { color: var(--sky); }
.wid-header .stag::before { background: var(--sky); }
.wid-header h2 { color: #fff; }
.wid-header p {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  margin-top: .8rem;
  font-weight: 300;
}

/* Image container */
.wid-viewer {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}
.wid-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(183,221,255,.15);
  background: rgba(0,0,0,.4);
  box-shadow:
    0 0 60px rgba(30,144,214,.08),
    0 30px 60px rgba(0,0,0,.4);
}
.wid-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hotspot button */
.wid-hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  z-index: 5;
  background: none;
  border: none;
  padding: 0;
  transform: translate(-50%, -50%);
}
.wid-hotspot-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(242,139,48,.9);
  border: 2.5px solid #fff;
  box-shadow:
    0 0 0 4px rgba(242,139,48,.25),
    0 0 20px rgba(242,139,48,.35);
  position: relative;
  flex-shrink: 0;
  transition: transform .25s, box-shadow .25s;
}
.wid-hotspot-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(242,139,48,.35);
  animation: wid-pulse 2s ease-out infinite;
}
@keyframes wid-pulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.9); opacity: 0; }
}

.wid-hotspot-label {
  background: rgba(7,46,75,.88);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-b);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
  border: 1px solid rgba(183,221,255,.18);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.wid-hotspot:hover .wid-hotspot-label,
.wid-hotspot:focus .wid-hotspot-label {
  opacity: 1;
  transform: translateX(0);
}
.wid-hotspot:hover .wid-hotspot-dot {
  transform: scale(1.25);
  box-shadow:
    0 0 0 5px rgba(242,139,48,.35),
    0 0 30px rgba(242,139,48,.5);
}

/* Number badge on hotspot */
.wid-hotspot-num {
  position: absolute;
  top: -7px; right: -7px;
  width: 16px; height: 16px;
  background: var(--blue-deep);
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,.5);
  z-index: 3;
}

/* ── Modal ── */
.wid-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6,14,24,.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.wid-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.wid-modal {
  background: linear-gradient(145deg, rgba(15,40,65,.92), rgba(10,30,53,.96));
  border: 1px solid rgba(183,221,255,.18);
  border-radius: 22px;
  max-width: 720px;
  width: 100%;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,.5),
    0 0 80px rgba(30,144,214,.08);
  transform: translateY(30px) scale(.96);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.wid-modal-overlay.is-open .wid-modal {
  transform: translateY(0) scale(1);
}

.wid-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 5;
  backdrop-filter: blur(6px);
}
.wid-modal-close:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  transform: rotate(90deg);
}

.wid-modal-img {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
  background: #070e16;
}
.wid-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wid-modal-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(15,40,65,.96), transparent);
}

.wid-modal-body {
  padding: 2rem 2.2rem 2.4rem;
}
.wid-modal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  margin-bottom: .8rem;
  box-shadow: 0 4px 16px rgba(242,139,48,.3);
}
.wid-modal-title {
  font-family: var(--font-d);
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: .6rem;
}
.wid-modal-subtitle {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .9rem;
}
.wid-modal-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.68);
  line-height: 1.75;
}
.wid-modal-func {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(30,144,214,.08);
  border: 1px solid rgba(183,221,255,.12);
  border-radius: 12px;
}
.wid-modal-func-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .4rem;
}
.wid-modal-func-text {
  font-size: .88rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}

/* Component nav inside modal */
.wid-modal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.wid-modal-nav-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  font-family: var(--font-b);
  font-size: .78rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.wid-modal-nav-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.wid-modal-nav-counter {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  font-weight: 600;
}

/* Legend under image */
.wid-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}
.wid-legend-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(183,221,255,.12);
  border-radius: 8px;
  padding: .4rem .8rem;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  transition: all .22s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.wid-legend-item:hover {
  background: rgba(242,139,48,.12);
  border-color: rgba(242,139,48,.3);
  color: #fff;
}
.wid-legend-item .wid-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .wid-hotspot-label { display: none; }
  .wid-modal-img { height: 220px; }
  .wid-modal-body { padding: 1.5rem 1.5rem 1.8rem; }
  .wid-modal-title { font-size: 1.25rem; }
}
@media (max-width: 600px) {
  .wid-section { padding: 3.5rem 4vw; }
  .wid-modal { border-radius: 16px; }
  .wid-modal-overlay { padding: 1rem; }
  .wid-modal-img { height: 180px; }
  .wid-modal-body { padding: 1.2rem 1.2rem 1.5rem; }
  .wid-legend { gap: .35rem; }
  .wid-legend-item { font-size: .65rem; padding: .3rem .6rem; }
}

/* ═══════════════════════════════════════════
   About Gallery — Masonry + Lightbox
   ═══════════════════════════════════════════ */

.about-gallery {
  background: linear-gradient(170deg, #fafcff 0%, var(--blue-frost) 100%);
  position: relative;
  overflow: hidden;
}
.about-gallery::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,144,214,.07) 0%, transparent 65%);
  pointer-events: none;
}
.about-gallery::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(242,139,48,.05) 0%, transparent 65%);
  pointer-events: none;
}

.about-gallery .page {
  position: relative;
  z-index: 2;
}

/* Filter Tabs */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.8rem;
  margin-bottom: 2.4rem;
}
.gf-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-family: var(--font-b);
  font-size: .82rem;
  font-weight: 600;
  padding: .55rem 1.4rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.gf-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  opacity: 0;
  transition: opacity .25s ease;
  border-radius: 99px;
}
.gf-btn:hover {
  border-color: var(--sky);
  color: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15,67,110,.08);
}
.gf-btn.active {
  color: var(--white);
  border-color: var(--blue-deep);
  box-shadow: 0 6px 18px rgba(7,46,75,.2);
  transform: translateY(-1px);
}
.gf-btn.active::before {
  opacity: 1;
}
.gf-btn span {
  position: relative;
  z-index: 1;
}

/* Masonry Grid */
.masonry-grid {
  column-count: 3;
  column-gap: 1.4rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.4rem;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              box-shadow .35s ease,
              border-color .35s ease,
              opacity .4s ease;
}
.masonry-item.hidden {
  display: none;
}
.masonry-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(10,61,98,.14);
  border-color: var(--sky);
}

.masonry-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s ease, filter .4s ease;
  filter: saturate(.92);
}
.masonry-item:hover .masonry-img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7,46,75,.88) 0%,
    rgba(7,46,75,.35) 40%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity .35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
}
.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-overlay-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .25rem;
  transform: translateY(10px);
  transition: transform .35s ease;
}
.masonry-item:hover .masonry-overlay-tag {
  transform: translateY(0);
}

.masonry-overlay-title {
  font-family: var(--font-d);
  font-size: 1rem;
  color: #fff;
  line-height: 1.3;
  transform: translateY(10px);
  transition: transform .35s ease .04s;
}
.masonry-item:hover .masonry-overlay-title {
  transform: translateY(0);
}

.masonry-zoom-icon {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .85rem;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .3s;
}
.masonry-item:hover .masonry-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ── Lightbox ── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6,14,24,.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.94);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.gallery-lightbox.is-open .lightbox-content img {
  transform: scale(1);
}

.lightbox-caption {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}
.lightbox-caption-title {
  font-family: var(--font-d);
  font-size: 1rem;
  color: #fff;
}
.lightbox-caption-tag {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .2rem;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.8);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.lightbox-close:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  transform: rotate(90deg);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.lightbox-nav:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-b);
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .1em;
  z-index: 10;
}

/* Gallery Responsive */
@media (max-width: 960px) {
  .masonry-grid {
    column-count: 2;
  }
}
@media (max-width: 640px) {
  .masonry-grid {
    column-count: 1;
  }
  .gallery-filters {
    gap: .45rem;
  }
  .gf-btn {
    font-size: .78rem;
    padding: .45rem 1.1rem;
  }
  .lightbox-nav {
    width: 40px; height: 40px;
    font-size: 1rem;
  }
  .lightbox-prev { left: .8rem; }
  .lightbox-next { right: .8rem; }
}

/* ── Desktop hotspot position overrides ── */
@media (min-width: 901px) {
  .wid-hotspot[data-wid="0"] { left: 40% !important; top: 62% !important; }
  .wid-hotspot[data-wid="1"] { left: 42% !important; top: 44% !important; }
  .wid-hotspot[data-wid="2"] { left: 68% !important; top: 58% !important; }
  .wid-hotspot[data-wid="3"] { left: 65% !important; top: 42% !important; }
  .wid-hotspot[data-wid="4"] { left: 74% !important; top: 53% !important; }
  .wid-hotspot[data-wid="5"] { left: 67% !important; top: 37% !important; }
  .wid-hotspot[data-wid="6"] { left: 52% !important; top: 63% !important; }
  .wid-hotspot[data-wid="7"] { left: 67% !important; top: 69% !important; }
  .wid-hotspot[data-wid="8"] { left: 51% !important; top: 56% !important; }
}
