/* =========================
   THEME VARIABLES
========================= */

:root {

  --bg: #f8fafc;
  --surface: #ffffff;

  --text: #111827;
  --muted: #6b7280;

  --border: #e5e7eb;

  --primary: #24105f;
  --primary-text: #ffffff;

  --accent: #3441cf;

}

html.dark,
body.dark {

  --bg: #0a0a0a;
  --surface: #111111;

  --text: #eaeaea;
  --muted: #aaaaaa;

  --border: #1f1f1f;

  --primary: #f4f1ff;
  --primary-text: #19083f;

  --accent: #8f79ff;

}

/* =========================
   BASE
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;

    background-image:

        linear-gradient(
            rgba(255,255,255,.03) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.03) 1px,
            transparent 1px
        );

}

html,
body {
  overflow-x: clip;
}

/* =========================
   CONTAINER
========================= */

.container {
  width: 92%;
  max-width: 1100px;
  margin: auto;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

body.dark .site-header {
  background: rgba(10,10,10,.85);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.theme-toggle {

  margin-left: 16px;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  border: 1px solid var(--border);

  background: var(--surface);

  color: var(--text);

  cursor: pointer;

}

.theme-toggle:hover {
  transform: scale(1.05);
}

/* =========================
   HERO
========================= */

.hero,
.about-hero,
.contact-hero {
  text-align: center;
  padding: 60px 0 30px;
}

.hero {

    position: relative;
}

.hero::before {

    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    left: 50%;
    top: -250px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(124,58,237,.12),
            transparent 70%
        );

    filter: blur(60px);

    z-index: -1;
}

.hero-title {
  font-size: 42px;
  margin: 10px 0;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 600px;
  margin: auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(
    90deg,

            #4f46e5 0%,
            #7c3aed 30%,
    var(--accent)60%,
    var(--text)100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   TOOLBAR
========================= */

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

#searchInput {

  flex: 1;
  min-width: 220px;

  padding: 12px 16px;

  border-radius: 12px;

  border: 1px solid var(--border);

  background: var(--surface);

  color: var(--text);

  outline: none;

}

#searchInput:focus {
  border-color: var(--accent);
}

/* =========================
   FILTERS
========================= */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {

  padding: 10px 16px;

  border-radius: 999px;

  border: 1px solid var(--border);

  background: var(--surface);

  color: var(--muted);

  cursor: pointer;

  font-size: 13px;
  font-weight: 500;

}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {

  background: var(--primary);

  color: var(--primary-text);

  border-color: var(--primary);

}

/* =========================
   GRID
========================= */

.grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 280px));


    justify-content: center;

    gap: 24px;

    padding: 30px 0 60px;
}

/* =========================
   CARDS
========================= */

.card {

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 14px;

  padding: 16px;

}

.card:hover {
  transform: translateY(-4px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
}

.tag {

  font-size: 10px;

  padding: 4px 8px;

  border: 1px solid var(--border);

  border-radius: 999px;

  color: var(--muted);

}

.card h3 {
  margin: 12px 0 6px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
}

.preview {

  width: 100%;

  border-radius: 10px;

  margin-top: 12px;

  border: 1px solid var(--border);

}

.project-card.hide {
  display: none;
}

/* =========================
   BUTTONS
========================= */

.buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn {

  flex: 1;

  text-align: center;

  padding: 10px;

  border-radius: 10px;

  text-decoration: none;

  font-size: 13px;

  border: 1px solid var(--border);

  background: var(--surface);

  color: var(--text);

}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {

    background:
        linear-gradient(
            135deg,
            #4f46e5 0%,
            /*#7c3aed 50%,*/
            #2563eb 100%
        );

    color: white;

    border: none;

    box-shadow:
        0 10px 25px rgba(79,70,229,.25);

    position: relative;

    overflow: hidden;
}

.btn.primary:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 18px 35px rgba(79,70,229,.35);
}

.btn.primary::before {

    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.25),
            transparent
        );

    transition: .8s;
}

.btn.primary:hover::before {
    left: 120%;
}

/* =========================
   SECTIONS
========================= */

section {
  padding: 30px 0;
}

.center-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

.section-title {
  font-size: 28px;
  margin-top: 10px;
}

/* =========================
   STATS
========================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {

  background: var(--surface);

  border: 1px solid var(--border);

  padding: 16px;

  border-radius: 12px;

}

.stat-card h3 {
  font-size: 14px;
  color: var(--muted);
}

.stat-card p {
  margin-top: 6px;
}

/* =========================
   FORM
========================= */

.company-card {

  background: var(--surface);

  border: 1px solid var(--border);

  padding: 20px;

  border-radius: 14px;

}

.floating-input {
  position: relative;
  margin-bottom: 16px;
}

.floating-input input,
.floating-input textarea {

  width: 100%;

  padding: 14px;

  background: var(--bg);

  border: 1px solid var(--border);

  border-radius: 10px;

  color: var(--text);

  outline: none;

}

.floating-input label {

  position: absolute;

  left: 12px;

  top: 12px;

  color: var(--muted);

  font-size: 13px;

}

.floating-input:focus-within label {

  top: -10px;

  font-size: 11px;

  color: var(--accent);

}

/* =========================
   CTA
========================= */

.cta-box {

  text-align: center;

  background: var(--surface);

  border: 1px solid var(--border);

  padding: 40px;

  border-radius: 14px;

}

.cta-box h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--muted);
}

/* =========================
   FOOTER
========================= */

.site-footer {

  border-top: 1px solid var(--border);

  padding: 20px 0;

  text-align: center;

  color: var(--muted);

  margin-top: 40px;

}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

   .header-inner{
        display:flex;
        justify-content:space-between;
        align-items:center;
        flex-direction:row;
    }

  .toolbar {
    flex-direction: column;
  }

}

@media (max-width: 600px) {

  .hero-title {
    font-size: 30px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav a {
    margin-left: 10px;
  }

}

/* =========================
   PROJECT PAGE LAYOUT
========================= */

.project-page {
    padding: 40px 0;
}

.project-layout {
    display: flex;
    gap: 30px;
}

/* LEFT 40% */
.project-info {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-header h1 {
    font-size: 32px;
    margin: 10px 0;
}

.project-desc {
    color: var(--muted);
}

/* QR */
.qr-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 14px;
    text-align: center;
}

/* STORE BUTTONS */
.store-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}

.store-buttons img {
    height: 42px;
    width: auto;
    transition: transform 0.2s ease;
}

.store-buttons a:hover img {
    transform: scale(1.05);
}

.store-buttons {
    justify-content: flex-start;
}

/* RIGHT 60% */
.project-media {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* DEVICE WRAPPER */
.device-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* DEVICE MOCK */
.device {
    width: 220px;
    height: 420px;
    border-radius: 30px;
    background: #111;
    border: 2px solid var(--border);
    padding: 10px;
}

.device.web {
    width: 380px;
    height: 240px;
}

.screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   PROJECT PAGE LAYOUT
========================= */

.project-page {
    padding: 40px 0;
}

.project-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* =========================
   LEFT COLUMN
========================= */

.project-info {
    flex: 0 0 35%;
}

.project-header h1 {
    font-size: 32px;
    margin: 10px 0;
}

.project-desc {
    color: var(--muted);
}

.project-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}

/* =========================
   QR BOX
========================= */

.qr-box {
    margin-top: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.qr-box img {
    width: 140px;
    margin-top: 10px;
}

/* =========================
   STORE BUTTONS
========================= */

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;

}

.store-buttons img {
    height: 44px;
    width: auto;
}

.store-buttons a:hover img {
    transform: scale(1.04);
}

/* =========================
   RIGHT COLUMN
========================= */

.project-preview {
    flex: 1;
    min-width: 0;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* =========================
   PHONE STACK
========================= */

.phone-stack {
    position: relative;
    width: 100%;
    height: clamp(320px, 55vw, 560px);

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.phone {
    position: absolute;

    width: clamp(160px, 22vw, 260px);

    border-radius: 30px;
    overflow: hidden;

    background: #000;

    box-shadow:
        0 20px 60px rgba(0,0,0,.15),
        0 10px 25px rgba(0,0,0,.12);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.phone:hover {
    transform: scale(1.04) rotate(0deg) !important;
    z-index: 999 !important;
}

.phone img {
    width: 100%;
    display: block;
}

/* =========================
   WEB SLIDER
========================= */

.web-slider {
    position: relative;

    width: 100%;
    max-width: 800px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 20px 50px rgba(0,0,0,.08),
        0 8px 20px rgba(0,0,0,.05);
}

/* Fake browser bar */

.browser-bar {
    height: 44px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 0 16px;

    border-bottom: 1px solid var(--border);

    background: var(--bg);
}

.browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-bar span:nth-child(1) {
    background: #ff5f57;
}

.browser-bar span:nth-child(2) {
    background: #ffbd2e;
}

.browser-bar span:nth-child(3) {
    background: #28c840;
}

/* Slides */

.web-track {
    display: flex;
    transition: transform .4s ease;
}

.web-slide {
    min-width: 100%;
    padding: 12px;
}

.web-slide img {
    width: 100%;
    height: auto;

    max-height: 650px;

    object-fit: contain;

    display: block;

    border-radius: 10px;
}

/* Navigation */

.web-prev,
.web-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(0,0,0,.55);
    color: white;

    cursor: pointer;

    font-size: 22px;
    z-index: 5;
}

.web-prev {
    left: 12px;
}

.web-next {
    right: 12px;
}

.web-prev:hover,
.web-next:hover {
    background: rgba(0,0,0,.8);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .project-layout {
        flex-direction: column;
    }

    .project-info,
    .project-preview {
        width: 100%;
    }

    .project-preview {
        margin-top: 20px;
    }

    .phone-stack {
        height: 380px;
    }

    .web-slider {
        max-width: 100%;
    }

}

@media (max-width: 600px) {

    .project-page {
        padding: 20px 0;
    }

    .project-header h1 {
        font-size: 26px;
    }

    .phone {
        width: 170px;
    }

    .phone-stack {
        overflow: clip;
    }

    .web-prev,
    .web-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

}

.project-card.hide {
    display: none !important;
}


.project-card {
    display: block !important;
    transition: all 0.25s ease;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.reset-btn {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.reset-btn:hover {
    background: #b91c1c;
}

/* TOOLBAR */
.toolbar {
  max-width:1100px;
  margin:40px auto;
  padding:20px;
  border:1px solid var(--border);
  border-radius:20px;
  background: var(--surface);
  backdrop-filter: blur(20px);
}

.category-tags {

    display:flex;
    flex-wrap:wrap;
    gap:6px;

    margin-top:12px;
}

.category-tag {

    padding:6px 10px;

    border-radius:999px;

    font-size:11px;

    background:
        rgba(255,255,255,.08);

    border:
        1px solid rgba(255,255,255,.08);
}


.background-orbs {

    position: fixed;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: -1;
}

.orb {

    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    opacity: .18;
}

.orb-1 {

    width: 450px;
    height: 450px;

    right: -100px;
    bottom: -100px;

    background:
        radial-gradient(
            circle,
            #7c3aed,
            transparent 70%
        );
}

.orb-2 {

    width: 350px;
    height: 350px;

    right: 250px;
    bottom: 150px;

    background:
        radial-gradient(
            circle,
            #2563eb,
            transparent 70%
        );
}


.trust-banner{
    padding:2rem 0;
    margin:4rem 0;
    overflow:hidden;
}

.trust-title{
    text-align:center;
    margin-bottom:2rem;
    color:#999;
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:.8rem;
}

.logo-marquee{
    overflow:hidden;
}

.logo-track{
    display:flex;
    gap:5rem;
    width:max-content;
    animation:scroll 30s linear infinite;
}

.logo-track img{
    height:40px;
    opacity:.7;
    filter:grayscale(100%);
}

.logo-track img:hover{
    opacity:1;
    filter:none;
}

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

.hero-stats{
    display:flex;
    justify-content:center;
    gap:4rem;
    margin-top:3rem;
}

.stat h3{
    font-size:2rem;
    margin:0;
}

.portfolio-layout {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 2rem;
    align-items: start;
    margin-top: 3rem;
}

.filters-sidebar {
    position: sticky;
    top: 100px;
}

.filter-card {
    border-radius: 10px;
    padding: 2rem;
    border: 0.2px solid #ececec;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.filter-card h3 {
    margin-bottom: 1rem;
}

#searchInput {
    width: 100%;
    margin-bottom: 1.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-weight: 600;
    margin-bottom: .75rem;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.projects-content {
    width: 100%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(320px,1fr)
    );
    gap: 1.5rem;
}

.project-card {
    height: 100%;
}

/* Tablet */

@media (max-width: 992px) {

    .portfolio-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: relative;
        top: auto;
    }
}

/* Mobile */

@media (max-width: 768px) {

    .hero-title {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .filter-card {
        padding: 1.25rem;
    }
}


.construction-box {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.construction-gif {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
    opacity: 0.9;
}

.construction-box h3 {
    margin: 10px 0 5px;
    font-size: 18px;
}

.construction-box p {
    font-size: 14px;
    opacity: 0.7;
}

.modal {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.7);
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.modal-content {
    background:var(--surface);
    padding:25px;
    border-radius:14px;
    text-align:center;
    width:320px;
}

.modal-icon {
    font-size:40px;
    margin-bottom:10px;
}

.subscribe-box {
    margin-top:20px;
    padding:18px;
    border-radius:12px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.1);
    text-align:center;
}
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    color: inherit;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* =========================
   FORM SYSTEM (GLOBAL)
========================= */

form {
    width: 100%;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: #111;
    transition: all 0.2s ease;
    outline: none;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* Focus state */
input:focus,
textarea:focus,
select:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* Labels */
label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Form groups */
.form-group {
    margin-bottom: 16px;
}

/* Buttons */
button,
input[type="submit"] {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
    background: #333;
}

/* Secondary button */
.btn-secondary {
    background: transparent;
    border: 1px solid #ddd;
    color: #111;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

/* =========================
   DARK MODE SUPPORT
========================= */

html.dark input,
html.dark textarea,
html.dark select {
    background: #1f1f1f;
    border-color: #333;
    color: #fff;
}

html.dark label {
    color: #ccc;
}

html.dark button,
html.dark input[type="submit"] {
    /*background: #fff;*/
    color: #ffffff;
}

html.dark button:hover,
html.dark input[type="submit"]:hover {
    /*background: #ddd;*/
}

/* ==========================
   Website / Store Section
========================== */

.project-links{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:flex-start;
    gap:2rem;
    margin:2rem 0;
}

.stores-box{
    min-width:280px;
    padding:2rem;
    border-radius:16px;
    text-align:center;

    display:flex;
    flex-direction:column;
    gap:1rem;

    background:var(--card-bg,#fff);
    border:1px solid var(--border,#ddd);
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.stores-box h4{
    margin:0;
}

.store-button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.75rem;

    padding:14px 18px;

    border-radius:10px;

    text-decoration:none;
    font-weight:600;
    font-size:.95rem;

    transition:.25s ease;
}

.store-button i{
    font-size:1.3rem;
}

/* Light Mode */

.store-button{
    background:#111;
    color:#fff;
}

.store-button:hover{
    background:#222;
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(0,0,0,.18);
}

/* Dark Mode */

@media (prefers-color-scheme: dark){

    .stores-box{
        background:#1c1c1c;
        border-color:#333;
        box-shadow:0 10px 30px rgba(0,0,0,.45);
    }

    .stores-box h4{
        color:#fff;
    }

    .store-button{
        background:#2d2d2d;
        color:#fff;
    }

    .store-button:hover{
        background:#3b3b3b;
    }
}


/*==================================================
    LAYOUT
==================================================*/

.project-links{

    display:flex;
    flex-wrap:wrap;

    gap:2rem;

    margin:2rem 0;

    align-items:stretch;

}

/*==================================================
    CARDS
==================================================*/

.qr-box,
.stores-box,
.subscribe-box{

    flex:1;
    min-width:300px;

    padding:2rem;

    background:var(--surface);

    border:1px solid var(--border);

    border-radius:18px;

    box-shadow:var(--shadow);

    transition:.25s ease;

}

.qr-box:hover,
.stores-box:hover,
.subscribe-box:hover{

    transform:translateY(-4px);

}

/*==================================================
    HEADINGS
==================================================*/

.qr-box h4,
.stores-box h4,
.subscribe-box h4{

    margin:0 0 .75rem;

    color:var(--text);

    font-size:1.2rem;

}

.qr-box p,
.stores-box p,
.subscribe-box p{

    color:var(--text-light);

    line-height:1.6;

    margin-bottom:1.5rem;

}

/*==================================================
    QR CARD
==================================================*/

.qr-box{

    text-align:center;

}

.qr-box img{

    width:170px;

    height:170px;

    display:block;

    margin:1.5rem auto;

    background:#fff;

    padding:12px;

    border-radius:14px;

}

/*==================================================
    STORE BOX
==================================================*/

.stores-box{

    display:flex;

    flex-direction:column;

    gap:1rem;

}

.store-button{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:.8rem;

    width:100%;

    padding:15px;

    border-radius:12px;

    text-decoration:none;

    font-weight:600;

     background: linear-gradient(
    90deg,

            #4f46e5 0%,
            #7c3aed 30%,
    var(--accent)60%,
    var(--text)100%
  );


    transition:.25s ease;

}

.store-button i{

    font-size:1.25rem;

}

.store-button:hover{

    background: linear-gradient(
    90deg,

            #4f46e5 0%,
            #7c3aed 30%,
    var(--accent)60%,
    var(--text)100%
  );


    transform:translateY(-2px);

    box-shadow:0 10px 25px rgba(37,99,235,.25);

}

/*==================================================
    SUBSCRIBE
==================================================*/

.subscribe-box{

    margin-top:2rem;

}

.subscribe-box form{

    display:flex;

    flex-direction:column;

    gap:1rem;

}

.subscribe-box input[type="email"]{

    width:100%;

    padding:14px 16px;

    border-radius:12px;

    border:1px solid var(--border);

    background:var(--surface-alt);

    color:var(--text);

    transition:.2s;

}

.subscribe-box input[type="email"]:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(37,99,235,.15);

}

/*==================================================
    PLATFORM CHIPS
==================================================*/

.platform-list{

    display:flex;

    flex-wrap:wrap;

    gap:.75rem;

    justify-content:center;

    margin:1rem 0;

}

.platform-option{

    position:relative;

    cursor:pointer;

}



.platform-option span{

    display:block;

    padding:.8rem 1.25rem;

    border-radius:999px;

    background:var(--surface-alt);

    border:1px solid var(--border);

    color:var(--text);

    font-size:.9rem;

    font-weight:500;

    transition:.2s;

    user-select:none;

}

.platform-option:hover span{

    border-color:var(--primary);

    transform:translateY(-1px);

}

.platform-option input:checked + span{

    background:var(--primary);

    border-color:var(--primary);

    color:#fff;

}

/*==================================================
    SUBMIT BUTTON
==================================================*/

.subscribe-box button{

    width:100%;

    padding:15px;

    border:none;

    border-radius:12px;

    background: linear-gradient(
    90deg,

            #4f46e5 0%,
            #7c3aed 30%,
    var(--accent)60%,
    var(--text)100%
  );


    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.subscribe-box button:hover{

    background:var(--primary-hover);

    transform:translateY(-2px);

}

/*==================================================
    MOBILE
==================================================*/

@media (max-width:768px){

    .project-links{

        flex-direction:column;

    }

    .qr-box,
    .stores-box,
    .subscribe-box{

        min-width:100%;

    }

    .platform-list{

        justify-content:flex-start;

    }

    .store-button{

        font-size:.9rem;

    }

}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert-success {
    background: #e8f7ee;
    color: #176b3a;
    border: 1px solid #b8e5c8;
}

/* =========================
   CORPORATE PROJECT DETAILS
========================= */

.project-page {
    padding: 3.75rem 0 5rem;
}

.project-layout {
    gap: clamp(2rem, 5vw, 5rem);
}

.project-info {
    flex-basis: 38%;
}

.project-kicker {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-header {
    padding: 2rem;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 1.125rem;
    background: var(--surface);
    box-shadow: 0 16px 38px rgba(36, 16, 95, .08);
}

.project-icon {
    width: 4.5rem;
    height: 4.5rem;
    padding: .5rem;
    border: 1px solid var(--border);
    border-radius: .9rem;
    background: #fff;
    object-fit: contain;
}

.project-header h1 {
    margin: 1.25rem 0 .6rem;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -.045em;
    line-height: 1.05;
}

.project-header .tag {
    display: inline-flex;
    padding: .32rem .65rem;
    border-radius: 999px;
    background: #eeeaff;
    color: #4734a7;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.project-desc {
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.project-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.project-facts dt {
    margin-bottom: .3rem;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.project-facts dd {
    margin: 0;
    color: var(--text);
    font-size: .86rem;
    font-weight: 700;
}

.project-preview {
    padding-top: 1.15rem;
}

.web-slider {
    border-radius: 1.125rem;
    border-color: var(--border);
    box-shadow: 0 24px 54px rgba(36, 16, 95, .14);
}

.browser-bar {
    height: 3.25rem;
    padding: 0 1.25rem;
    background: #f7f6fc;
}

.browser-label {
    width: auto !important;
    height: auto !important;
    margin-left: .45rem;
    color: #706a80;
    font-size: .72rem;
    font-weight: 700;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    padding: .9rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
}

.slider-button {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
}

.slider-button:hover {
    background: var(--primary);
    color: var(--primary-text);
}

body.dark .project-header,
html.dark .project-header {
    background: #121020;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .25);
}

body.dark .project-icon,
html.dark .project-icon {
    border-color: #3b3550;
    background: #f7f4ff;
}

body.dark .project-header .tag,
html.dark .project-header .tag {
    background: #34266d;
    color: #e4dcff;
}

body.dark .browser-bar,
html.dark .browser-bar {
    background: #171421;
}

body.dark .browser-label,
html.dark .browser-label {
    color: #bdb5d1;
}

@media (max-width: 900px) {
    .project-page { padding: 2rem 0 3.5rem; }
    .project-preview { padding-top: 0; }
}

@media (max-width: 600px) {
    .project-header { padding: 1.5rem; }
    .project-facts { grid-template-columns: 1fr; gap: .85rem; }
}

.alert-error {
    background: #fff0f0;
    color: #a12626;
    border: 1px solid #f0b8b8;
}

/* =========================
   CORPORATE PORTFOLIO VIEW
========================= */

.portfolio-hero {
    position: relative;
    overflow: hidden;
    width: 100vw;
    min-height: calc(100vh - 6.1rem);
    margin: 0;
    margin-left: calc(50% - 50vw);
    padding: clamp(6rem, 9vw, 9.5rem) 8% clamp(5rem, 8vw, 8rem);
    border-radius: 0;
    background: linear-gradient(120deg, #19083f 0%, #242181 58%, #3441cf 100%);
    color: #fff;
    text-align: left;
}

.portfolio-hero::before {
    width: 30rem;
    height: 30rem;
    top: -15rem;
    left: auto;
    right: -6rem;
    transform: none;
    border: 1px solid rgba(207, 169, 255, .27);
    background: transparent;
    box-shadow:
        0 0 0 6rem rgba(207, 169, 255, .055),
        0 0 0 12rem rgba(207, 169, 255, .045);
    filter: none;
}

.portfolio-hero > * { position: relative; z-index: 1; }

.portfolio-hero .hero-badge {
    margin: 0;
    border-color: rgba(255, 255, 255, .28);
    color: #e6d5ff;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.portfolio-hero .hero-title {
    max-width: 62rem;
    margin: 2rem 0 2rem;
    color: #fff;
    font-size: clamp(3.45rem, 7.25vw, 7.1rem);
    letter-spacing: -.06em;
    line-height: .98;
}

.portfolio-hero .hero-subtitle {
    max-width: 68rem;
    margin: 0;
    color: #d9ddff;
    font-size: clamp(1.05rem, 1.65vw, 1.7rem);
    line-height: 1.45;
}

.portfolio-metrics {
    display: flex;
    gap: 0;
    margin-top: 4.7rem;
}

.portfolio-metrics div {
    min-width: 17rem;
    margin-right: 2.9rem;
    padding-right: 2.9rem;
    border-right: 1px solid rgba(255, 255, 255, .22);
}

.portfolio-metrics div:last-child { border: 0; }
.portfolio-metrics strong { display: block; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.1; }
.portfolio-metrics span { color: #cdd5ff; font-size: clamp(.82rem, 1.1vw, 1.05rem); font-weight: 650; }

.portfolio-layout {
    grid-template-columns: minmax(15rem, .28fr) minmax(0, .72fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    margin-top: 2.75rem;
}

.filter-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: 0 14px 32px rgba(36, 16, 95, .07);
}

.filter-kicker,
.portfolio-results-heading p {
    margin: 0 0 .35rem;
    color: var(--accent);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.filter-card h3 { margin: 0 0 1.25rem; font-size: 1.35rem; letter-spacing: -.03em; }

.filter-section { padding-top: 1.15rem; border-top: 1px solid var(--border); }
.filter-label { font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }

.filter-btn {
    padding: .48rem .7rem;
    border-radius: .45rem;
    font-size: .72rem;
    font-weight: 750;
}

.filter-btn.active { background: var(--primary); }
.reset-btn { width: 100%; margin-top: .4rem; border-color: #d7c5f4; background: transparent; color: #59408f; }
.reset-btn:hover { background: #f0eaff; color: #342061; }

.portfolio-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .3rem;
}

.portfolio-results-heading h2 { margin: 0; color: var(--text); font-size: 1.7rem; letter-spacing: -.045em; }
.portfolio-results-heading > span { color: var(--muted); font-size: .76rem; font-weight: 700; }

.grid {
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    justify-content: stretch;
    gap: 1rem;
    padding: 1.35rem 0 4.5rem;
}

.project-card {
    min-height: 18rem;
    padding: 1.35rem;
    border-radius: 1rem;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #aa9af0;
    box-shadow: 0 16px 30px rgba(41, 28, 118, .12);
}

.project-card .icon {
    width: 3.25rem;
    height: 3.25rem;
    padding: .35rem;
    border: 1px solid var(--border);
    border-radius: .75rem;
    background: #fff;
    object-fit: contain;
}

.project-card .tag {
    padding: .3rem .55rem;
    border: 0;
    border-radius: 999px;
    background: #eeeaff;
    color: #4734a7;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.project-card h3 { margin: 1.25rem 0 .45rem; font-size: 1.08rem; letter-spacing: -.025em; }
.project-card p { font-size: .82rem; line-height: 1.55; }
.category-tag { background: #f4f1fb; border-color: #e4dff2; color: #574e6b; font-size: .65rem; font-weight: 700; }

.project-card .buttons { margin-top: 1.25rem; }
.project-card .btn { padding: .63rem .7rem; border-radius: .55rem; font-size: .74rem; font-weight: 750; }
.project-card .btn.primary { border-color: var(--primary); background: var(--primary); color: var(--primary-text); }

body.dark .filter-card,
html.dark .filter-card,
body.dark .project-card,
html.dark .project-card { background: #121020; border-color: #322d43; box-shadow: none; }

body.dark .project-card .icon,
html.dark .project-card .icon { background: #f8f5ff; border-color: #4a405e; }
body.dark .project-card .tag,
html.dark .project-card .tag { background: #34266d; color: #e4dcff; }
body.dark .category-tag,
html.dark .category-tag { background: #211d30; border-color: #3b3550; color: #d4ccdf; }
body.dark .reset-btn,
html.dark .reset-btn { border-color: #59458a; background: transparent; color: #d9ccff; }

@media (max-width: 992px) {
    .portfolio-layout { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; }
}

@media (max-width: 600px) {
    .portfolio-hero { min-height: auto; padding: 4.5rem 1.5rem 3.75rem; }
    .portfolio-hero::before { width: 16rem; height: 16rem; top: -9rem; right: -8rem; box-shadow: 0 0 0 3rem rgba(207, 169, 255, .055), 0 0 0 6rem rgba(207, 169, 255, .045); }
    .portfolio-hero .hero-title { margin: 1.4rem 0; font-size: clamp(3rem, 14vw, 4.4rem); }
    .portfolio-metrics { margin-top: 3rem; }
    .portfolio-metrics div { min-width: 0; flex: 1; margin-right: .65rem; padding-right: .65rem; }
    .portfolio-metrics strong { font-size: 1.8rem; }
    .grid { grid-template-columns: 1fr; }
}

/* =========================
   CORPORATE SITE HEADER & FEATURED VENTURES
========================= */

.container {
    max-width: 1400px;
}

.site-header {
    background: rgba(25, 8, 63, .68);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 10px 28px rgba(19, 6, 50, .12);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

body.dark .site-header,
html.dark .site-header {
    background: rgba(16, 5, 34, .72);
    border-color: rgba(216, 190, 255, .18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

.header-inner {
    min-height: 6.1rem;
    padding: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 760;
    letter-spacing: -.03em;
}

.brand-dot {
    width: .9rem;
    height: .9rem;
    margin-right: .7rem;
    border-radius: 50%;
    background: #9d5bea;
    box-shadow: 0 0 0 4px rgba(157, 91, 234, .12);
}

.nav { gap: 2.15rem; }
.nav a,
.nav .dropdown-toggle { margin: 0; color: #d5ceee; font-size: .98rem; font-weight: 520; }
.nav a:hover,
.nav .dropdown-toggle:hover { color: #fff; }
.nav .dropdown-toggle { padding: 0; }
.nav .dropdown:first-child .dropdown-toggle { color: #fff; font-weight: 760; }

.theme-toggle {
    width: 2.35rem;
    height: 2.35rem;
    margin-left: -.8rem;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
    color: #fff;
}

.dropdown-menu {
    top: calc(100% + 1.55rem);
    left: -1rem;
    border-color: rgba(219, 207, 246, .5);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 36px rgba(25, 8, 63, .18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

/* Extend the menu's hover area across the visual gap below the trigger. */
.dropdown-menu::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 1.65rem;
}

.dropdown:focus-within .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
}

html.dark .dropdown-menu {
    border-color: rgba(216, 190, 255, .2);
    background: rgba(24, 16, 43, .88);
}

html.dark .dropdown-menu a { color: #eee8ff; }
html.dark .dropdown-menu a:hover { background: rgba(157, 91, 234, .16); }

.selected-ventures {
    padding: 4.8rem 5.5% 3.7rem;
    background: var(--surface);
}

.selected-ventures-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.selected-ventures-heading p {
    margin: 0 0 .45rem;
    color: var(--accent);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.selected-ventures-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.8rem, 3.5vw, 2.65rem);
    letter-spacing: -.055em;
    line-height: 1.05;
}

.selected-ventures-heading > a,
.selected-venture-card > a {
    color: var(--accent);
    font-size: .9rem;
    font-weight: 780;
    text-decoration: none;
}

.selected-ventures-heading > a span,
.selected-venture-card > a span { margin-left: .28rem; }

.selected-ventures-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.selected-venture-card {
    display: flex;
    min-height: 16.5rem;
    flex-direction: column;
    padding: 1.7rem;
    border: 1px solid #ddd7f0;
    border-radius: 1.1rem;
    background: var(--surface);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.selected-venture-card:hover {
    transform: translateY(-5px);
    border-color: #a795e7;
    box-shadow: 0 17px 30px rgba(43, 25, 111, .12);
}

.selected-venture-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-venture-top img {
    width: 3.25rem;
    height: 3.25rem;
    padding: .3rem;
    border-radius: .75rem;
    background: #f7f4ff;
    object-fit: contain;
}

.selected-venture-top span {
    padding: .35rem .66rem;
    border-radius: 999px;
    background: #e9f8f1;
    color: #167653;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.selected-venture-card h3 {
    margin: 1.55rem 0 .55rem;
    color: var(--text);
    font-size: 1.25rem;
    letter-spacing: -.03em;
}

.selected-venture-card p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.55;
}

.selected-venture-card > a { margin-top: auto; padding-top: 1.4rem; font-size: .78rem; }

body.dark .selected-ventures,
html.dark .selected-ventures,
body.dark .selected-venture-card,
html.dark .selected-venture-card { background: #121020; border-color: #342f46; }

body.dark .selected-venture-top img,
html.dark .selected-venture-top img { background: #f7f4ff; }

@media (max-width: 768px) {
    .header-inner { min-height: 4.6rem; }
    .nav { gap: .8rem; }
    .nav a, .nav .dropdown-toggle { font-size: .78rem; }
    .theme-toggle { margin-left: 0; }
    .selected-ventures { padding: 3.5rem 1.5rem; }
    .selected-ventures-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .logo { font-size: .9rem; }
    .nav a { display: none; }
    .selected-ventures-heading { align-items: start; flex-direction: column; }
}

/* Glass header layout */
.site-header {
    background: rgba(255, 255, 255, .42);
    border-bottom-color: rgba(255, 255, 255, .62);
    box-shadow: 0 8px 24px rgba(28, 16, 69, .08);
}

body.dark .site-header,
html.dark .site-header {
    background: rgba(17, 12, 34, .46);
    border-bottom-color: rgba(219, 204, 255, .16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.header-inner {
    display: flex;
    align-items: center;
}

.header-nav { margin-left: clamp(2rem, 5vw, 5rem); }
.logo { color: var(--text); }
.theme-toggle { margin-left: auto; color: var(--text); border-color: rgba(77, 61, 118, .2); background: rgba(255, 255, 255, .28); }
.nav a, .nav .dropdown-toggle { color: var(--muted); }
.nav a:hover, .nav .dropdown-toggle:hover, .nav .dropdown:first-child .dropdown-toggle { color: var(--text); }

body.dark .logo,
html.dark .logo,
body.dark .nav a,
html.dark .nav a,
body.dark .nav .dropdown-toggle,
html.dark .nav .dropdown-toggle,
body.dark .theme-toggle,
html.dark .theme-toggle { color: #f3efff; }

body.dark .theme-toggle,
html.dark .theme-toggle { border-color: rgba(229, 216, 255, .24); background: rgba(255, 255, 255, .08); }

/* The portfolio header floats as clear glass over its full-width hero. */
body:has(.portfolio-hero) .site-header {
    position: absolute;
    width: 100%;
    background: rgba(255, 255, 255, .08);
    border-bottom-color: rgba(255, 255, 255, .18);
    box-shadow: none;
}

body:has(.portfolio-hero) .logo,
body:has(.portfolio-hero) .nav a,
body:has(.portfolio-hero) .nav .dropdown-toggle,
body:has(.portfolio-hero) .nav .dropdown:first-child .dropdown-toggle,
body:has(.portfolio-hero) .theme-toggle { color: #fff; }

body:has(.portfolio-hero) .theme-toggle { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); }

body:has(.portfolio-hero) .portfolio-hero { min-height: 100vh; }

@media (max-width: 768px) {
    .header-nav { gap: .7rem; }
    .brand-dot { width: .65rem; height: .65rem; margin-right: .4rem; }
}

@media (max-width: 480px) {
    .header-nav { margin-left: auto; }
}

/* =========================
   EDITORIAL PORTFOLIO DIRECTION
========================= */

body:has(.portfolio-hero) {
    background: #e8e7e1;
}

.hero-composition {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: clamp(2rem, 4vw, 5rem);
    align-items: center;
}

.hero-copy { min-width: 0; }
.hero-ventures { min-width: 0; max-height: 65vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #61558b transparent; padding-right: .75rem; }
.hero-ventures-label { margin: 0 0 1rem; color: #a89aff; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-venture { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid #37333f; text-decoration: none; color: #fff; }
.hero-venture img { width: 2.75rem; height: 2.75rem; padding: .25rem; background: #fff; object-fit: contain; }
.hero-venture h2 { margin: 0 0 .35rem; font-size: 1rem; line-height: 1.2; letter-spacing: -.025em; }
.hero-venture p { margin: 0; color: #aaa; font-size: .875rem; line-height: 1.45; }
.hero-venture > span { color: #a89aff; }
.hero-venture:hover h2 { color: #bdb1ff; }
.hero-venture-actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .9rem; }
.hero-venture-actions a { color: #e3d7ff; font-size: .78rem; font-weight: 650; text-decoration: none; }
.hero-venture-actions a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.hero-venture-actions a:focus-visible { outline: 2px solid #d2b6ff; outline-offset: 3px; border-radius: 2px; }

.portfolio-hero {
    display: flex;
    min-height: 100svh;
    padding: clamp(7.5rem, 13vw, 13rem) 7vw 3rem;
    flex-direction: column;
    justify-content: flex-end;
    background: #0a0a0a;
}

.portfolio-hero::before {
    width: min(44vw, 45rem);
    height: min(44vw, 45rem);
    top: -16vw;
    right: -15vw;
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 0 0 8vw rgba(255,255,255,.03), 0 0 0 16vw rgba(255,255,255,.02);
}

.hero-eyebrow {
    margin: 0 0 1.7rem;
    color: #a89aff;
    font-size: .72rem;
    font-weight: 760;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-eyebrow span { padding: 0 .6rem; color: rgba(255,255,255,.4); }

.portfolio-hero .hero-title {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(3.5rem, 7vw, 8rem);
    font-weight: 650;
    letter-spacing: -.085em;
    line-height: .84;
}

.portfolio-hero .hero-subtitle {
    max-width: 33rem;
    margin-top: 2.2rem;
    color: #bebebe;
    font-size: clamp(1rem, 1.45vw, 1.32rem);
    line-height: 1.45;
}

.hero-index {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: clamp(4rem, 8vw, 8rem);
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255,255,255,.2);
    color: #999;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-index a { color: #fff; text-decoration: none; }
.hero-index a span { padding-left: .65rem; color: #a89aff; }

.selected-ventures {
    padding: clamp(4.5rem, 9vw, 9rem) 7vw;
    background: #e8e7e1;
}

.selected-ventures-heading { margin-bottom: 3rem; }
.selected-ventures-heading p { color: #5951af; font-size: .7rem; }
.selected-ventures-heading h2 { color: #111; font-size: clamp(2.6rem, 5vw, 5.3rem); font-weight: 600; letter-spacing: -.075em; }
.selected-ventures-heading > a { color: #111; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

.selected-ventures-grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
    gap: 1.5rem;
}

.selected-venture-card {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.selected-venture-card:first-child { grid-row: span 2; }
.selected-venture-card:hover { transform: none; border: 0; box-shadow: none; }

.venture-image {
    display: block;
    overflow: hidden;
    background: #d6d5d0;
    aspect-ratio: 16 / 10;
}

.selected-venture-card:first-child .venture-image { aspect-ratio: 4 / 5; }
.venture-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.86) contrast(1.05); transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.selected-venture-card:hover .venture-image img { transform: scale(1.04); filter: saturate(1) contrast(1); }

.selected-venture-top {
    justify-content: space-between;
    margin-top: 1rem;
    border-top: 1px solid rgba(0,0,0,.25);
    padding-top: .75rem;
}

.selected-venture-top span,
.selected-venture-top span:last-child {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #5b5a55;
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.selected-venture-card h3 { margin: .7rem 0 .35rem; color: #111; font-size: clamp(1.35rem, 2.2vw, 2.25rem); font-weight: 600; letter-spacing: -.055em; }
.selected-venture-card p { max-width: 34rem; color: #60605c; font-size: .88rem; }
.selected-venture-card > a { padding-top: .9rem; color: #171717; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }

.portfolio-layout {
    margin-top: 0;
    padding: clamp(4rem, 8vw, 8rem) 7vw;
    background: #111;
}

.portfolio-layout .filter-card { border-color: #343434; border-top-color: #8f82ff; border-radius: 0; background: #191919; box-shadow: none; }
.portfolio-layout .filter-card h3, .portfolio-layout .filter-label, .portfolio-layout .portfolio-results-heading h2 { color: #fff; }
.portfolio-layout .filter-section { border-color: #343434; }
.portfolio-layout #searchInput { border-radius: 0; background: #222; border-color: #3c3c3c; color: #fff; }
.portfolio-layout .filter-btn { border-color: #404040; border-radius: 0; background: transparent; color: #bababa; }
.portfolio-layout .filter-btn.active { background: #f0f0ed; border-color: #f0f0ed; color: #111; }
.portfolio-layout .reset-btn { color: #b8adff; }
.portfolio-layout .portfolio-results-heading p, .portfolio-layout .portfolio-results-heading > span { color: #aaa; }
.portfolio-layout .project-card { border-color: #383838; border-radius: 0; background: #191919; }
.portfolio-layout .project-card:hover { border-color: #8074d3; box-shadow: none; transform: translateY(-3px); }
.portfolio-layout .project-card .icon { border-radius: 0; }
.portfolio-layout .project-card h3 { color: #fff; }
.portfolio-layout .project-card p { color: #aaa; }
.portfolio-layout .category-tag { border-radius: 0; background: #272727; border-color: #414141; color: #c9c9c9; }
.portfolio-layout .project-card .btn { border-radius: 0; color: #f2f2f2; }
.portfolio-layout .project-card .btn.primary { background: #8174d5; border-color: #8174d5; color: #111; }

@media (max-width: 760px) {
    .portfolio-hero { min-height: 46rem; padding: 8rem 1.5rem 2rem; }
    .portfolio-hero .hero-title { font-size: clamp(3.8rem, 17vw, 6.5rem); }
    .hero-index { margin-top: 4rem; }
    .selected-ventures { padding: 4.5rem 1.5rem; }
    .selected-ventures-grid { grid-template-columns: 1fr; gap: 3rem; }
    .selected-venture-card:first-child { grid-row: auto; }
    .selected-venture-card:first-child .venture-image, .venture-image { aspect-ratio: 4 / 3; }
    .portfolio-layout { padding: 4.5rem 1.5rem; }
}

@media (max-width: 900px) {
    .hero-composition { grid-template-columns: 1fr; gap: 3rem; }
    .hero-ventures { max-height: none; overflow: visible; padding-right: 0; }
    .hero-venture { padding: 1.25rem 0; }
}

/* Shared brand palette for both portfolio themes. */
.portfolio-layout[hidden] { display: none; }
#all-ventures { scroll-margin-top: 6.5rem; }
#portfolioToggle { padding: .7rem 0 .7rem 1rem; border-radius: 0; background: transparent; color: #fff; font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
#portfolioToggle span { padding-left: .75rem; color: #d2b6ff; font-size: 1.2rem; }
#portfolioToggle:hover { color: #d2b6ff; background: transparent; }
#portfolioToggle:focus-visible { outline: 2px solid #d2b6ff; outline-offset: 4px; }

:root {
    --bg: #f7f6fc;
    --surface: #ffffff;
    --text: #21113f;
    --muted: #68637a;
    --border: #ddd7ec;
    --primary: #3441cf;
    --primary-text: #ffffff;
    --accent: #6338b6;
    --hero-bg: linear-gradient(120deg, #24105b, #292082 55%, #3441cf);
}

html.dark,
body.dark {
    --bg: #100d1d;
    --surface: #191428;
    --text: #f3efff;
    --muted: #b7afcb;
    --border: #39304d;
    --primary: #6774ef;
    --primary-text: #ffffff;
    --accent: #b198ff;
    --hero-bg: linear-gradient(120deg, #130827, #211451 55%, #293088);
}

body:has(.portfolio-hero) { background: var(--bg); }
.portfolio-hero { background: var(--hero-bg); }
.portfolio-hero .hero-subtitle { color: #ddd7f3; }
.hero-venture { border-color: rgba(226, 212, 255, .25); }
.hero-venture p { color: #d6cfe8; }
.hero-eyebrow, .hero-ventures-label, .hero-venture > span { color: #d2b6ff; }
.hero-index { color: #d6cfe8; }
.selected-ventures, html.dark .selected-ventures { background: var(--bg); }
.selected-venture-card, html.dark .selected-venture-card { background: transparent; }
.selected-ventures-heading h2, .selected-ventures-heading > a,
.selected-venture-card h3, .selected-venture-card > a { color: var(--text); }
.selected-ventures-heading p { color: var(--accent); }
.selected-venture-card p, .selected-venture-top span,
.selected-venture-top span:last-child { color: var(--muted); }
.selected-venture-top { border-color: var(--border); }
.venture-image { background: var(--surface); }
.portfolio-layout { background: var(--bg); }
.portfolio-layout .filter-card, .portfolio-layout .project-card { background: var(--surface); border-color: var(--border); }
.portfolio-layout .filter-card { border-top-color: var(--accent); }
.portfolio-layout .filter-card h3, .portfolio-layout .filter-label,
.portfolio-layout .portfolio-results-heading h2, .portfolio-layout .project-card h3 { color: var(--text); }
.portfolio-layout .filter-section { border-color: var(--border); }
.portfolio-layout #searchInput { background: var(--bg); border-color: var(--border); color: var(--text); }
.portfolio-layout .filter-btn { border-color: var(--border); color: var(--muted); }
.portfolio-layout .filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.portfolio-layout .reset-btn { color: var(--accent); }
.portfolio-layout .portfolio-results-heading p,
.portfolio-layout .portfolio-results-heading > span, .portfolio-layout .project-card p { color: var(--muted); }
.portfolio-layout .category-tag { background: var(--bg); border-color: var(--border); color: var(--muted); }
.portfolio-layout .project-card .btn { background: var(--surface); color: var(--text); }
.portfolio-layout .project-card .btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }

/* Glass venture cards, on the hero and in the searchable portfolio. */
.hero-venture {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    margin-bottom: .75rem;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .075);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 24px rgba(15, 4, 45, .12);
    transition: background-color .2s ease, border-color .2s ease;
}

.hero-venture:hover {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(228, 211, 255, .4);
}

.hero-venture img { border-radius: .6rem; }

@media (max-width: 520px) {
    .hero-venture { gap: .8rem; padding: 1rem; }
    .hero-venture-actions { gap: .6rem 1rem; }
}

.portfolio-layout .project-card {
    border: 1px solid rgba(112, 83, 177, .2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .52);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 12px 30px rgba(44, 22, 88, .07);
}

.portfolio-layout .project-card:hover {
    border-color: rgba(99, 56, 182, .4);
    background: rgba(255, 255, 255, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 16px 36px rgba(44, 22, 88, .12);
}

html.dark .portfolio-layout .project-card {
    border-color: rgba(192, 166, 245, .2);
    background: rgba(66, 48, 98, .28);
    box-shadow: inset 0 1px 0 rgba(234, 221, 255, .1), 0 12px 30px rgba(0, 0, 0, .18);
}

html.dark .portfolio-layout .project-card:hover {
    border-color: rgba(192, 166, 245, .42);
    background: rgba(82, 61, 119, .38);
}

.portfolio-layout .project-card .icon { border-radius: .65rem; }
.portfolio-layout .project-card .btn { border-radius: .5rem; }

/* Browsing and sharing refinements */
.share-dialog { width:min(460px, calc(100% - 2rem)); max-height:calc(100svh - 2rem); overflow:auto; margin:auto; padding:1.75rem; border:1px solid var(--border); border-radius:1.4rem; background:var(--surface); color:var(--text); box-shadow:0 30px 100px rgba(18,8,43,.35); }
.share-dialog::backdrop { background:rgba(15,8,30,.55); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.share-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.share-dialog-heading > span { color:var(--accent); font-size:.75rem; font-weight:800; letter-spacing:.12em; }
.share-dismiss { display:grid; place-items:center; width:2rem; height:2rem; padding:0; border-radius:50%; background:var(--bg); color:var(--text); font-size:1.5rem; }
.share-dialog h2 { margin:1.25rem 0 .6rem; font-size:1.8rem; line-height:1.1; letter-spacing:-.04em; }
.share-description { color:var(--muted); font-size:1rem; line-height:1.5; }
.share-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.7rem; margin:1.6rem 0; }
.share-options a { display:flex; align-items:center; flex-direction:column; gap:.7rem; padding:1rem .4rem; border:1px solid var(--border); border-radius:.8rem; color:var(--text); text-decoration:none; font-size:.875rem; font-weight:650; }
.share-options a span { display:grid; place-items:center; width:2.3rem; height:2.3rem; background:var(--bg); border-radius:50%; color:var(--accent); font-size:1.2rem; font-weight:800; }
.share-options a:hover { border-color:var(--accent); background:var(--bg); }
.share-link-label { margin-top:1.3rem; color:var(--muted); font-size:.875rem; }
.share-copy-row { display:flex; gap:.5rem; }
.share-copy-row input { min-width:0; flex:1; background:var(--bg); border-color:var(--border); color:var(--muted); }
.share-copy, .share-native { background:var(--primary); color:var(--primary-text); white-space:nowrap; }
.share-native { width:100%; }
.share-feedback { min-height:1.5rem; margin-top:.75rem; color:var(--accent); font-size:.875rem; }

/* About page: clear group story and a catalogue driven by the live ventures. */
.about-hero {
    position:relative;
    display:flex;
    width:100vw;
    min-height:min(760px, 88svh);
    margin-left:calc(50% - 50vw);
    padding:clamp(8rem, 14vw, 13rem) max(7vw, calc((100vw - 1260px) / 2)) 5rem;
    align-items:flex-end;
    justify-content:space-between;
    gap:3rem;
    overflow:hidden;
    background:var(--hero-bg);
    color:#fff;
    text-align:left;
}
.about-hero::after { content:""; position:absolute; width:min(48vw, 680px); aspect-ratio:1; right:-12vw; top:-24vw; border:1px solid rgba(255,255,255,.15); border-radius:50%; box-shadow:0 0 0 7vw rgba(255,255,255,.025),0 0 0 14vw rgba(255,255,255,.02); pointer-events:none; }
.about-hero-copy, .about-hero-note { position:relative; z-index:1; }
.about-hero-copy { max-width:900px; }
.about-eyebrow, .about-section-index { margin:0; color:var(--accent); font-size:.72rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.about-hero .about-eyebrow { color:#d2b6ff; }
.about-eyebrow span, .about-section-index span { padding:0 .5rem; opacity:.6; }
.about-hero h1 { max-width:14ch; margin:1.6rem 0 1.5rem; font-size:clamp(3.2rem, 6.5vw, 6.5rem); font-weight:650; letter-spacing:-.075em; line-height:.94; }
.about-hero-copy > p:not(.about-eyebrow) { max-width:620px; color:#ddd7f3; font-size:clamp(1.05rem, 1.5vw, 1.35rem); line-height:1.55; }
.about-hero-link, .about-text-link { display:inline-flex; gap:.7rem; margin-top:2rem; color:#fff; text-decoration:none; font-size:.78rem; font-weight:750; letter-spacing:.06em; text-transform:uppercase; }
.about-hero-note { display:flex; flex:0 0 145px; flex-direction:column; gap:.35rem; padding:1rem 0 0 1.25rem; border-top:1px solid rgba(255,255,255,.35); color:#c9c0dc; font-size:.8rem; }
.about-hero-note strong { color:#fff; font-size:2.5rem; line-height:1.1; }
.about-approach, .about-portfolio, .about-principles { padding:clamp(4.5rem, 9vw, 8rem) 7vw; }
.about-approach { display:grid; grid-template-columns:.32fr 1fr; gap:3rem; background:var(--bg); }
.about-section-index { color:var(--accent); }
.about-section-index span { color:var(--muted); }
.about-approach-content { display:grid; grid-template-columns:1fr .7fr; gap:clamp(2rem, 7vw, 7rem); }
.about-approach h2, .about-portfolio h2, .about-principles h2, .about-contact h2 { margin:0; color:var(--text); font-size:clamp(2.2rem, 4.6vw, 4.8rem); font-weight:620; letter-spacing:-.065em; line-height:1; }
.about-approach-content > div > p, .about-portfolio-heading > p, .about-principles-heading > p { color:var(--muted); font-size:1rem; line-height:1.7; }
.about-approach-content > div > p:first-child { margin-top:0; }
.about-text-link { color:var(--accent); }
.about-portfolio { background:var(--surface); }
.about-portfolio-heading { display:flex; align-items:end; justify-content:space-between; gap:2rem; margin-bottom:2.5rem; }
.about-portfolio-heading h2 { margin-top:.8rem; }
.about-portfolio-heading > p { max-width:350px; margin:0; }
.about-venture-list { border-top:1px solid var(--border); }
.about-venture-row { display:grid; grid-template-columns:3rem minmax(140px,.7fr) minmax(200px,1.5fr) 100px 24px; gap:1.2rem; align-items:center; padding:1.15rem .25rem; border-bottom:1px solid var(--border); color:var(--text); text-decoration:none; transition:background-color .18s ease, padding .18s ease; }
.about-venture-row:hover { padding-left:.8rem; padding-right:.8rem; background:color-mix(in srgb, var(--accent) 5%, transparent); }
.about-venture-row img { width:2.7rem; height:2.7rem; padding:.2rem; border-radius:.55rem; background:#fff; object-fit:contain; }
.about-venture-name { font-size:1.05rem; font-weight:750; letter-spacing:-.025em; }
.about-venture-description { color:var(--muted); font-size:.85rem; line-height:1.45; }
.about-venture-status { color:var(--accent); font-size:.68rem; font-weight:800; letter-spacing:.06em; text-align:right; text-transform:uppercase; }
.about-venture-arrow { color:var(--accent); font-size:1.1rem; text-align:right; }
.about-principles { background:var(--bg); }
.about-principles-heading { display:flex; align-items:end; justify-content:space-between; gap:2rem; margin:1.2rem 0 3rem; }
.about-principles-heading h2 { max-width:750px; }
.about-principles-heading p { max-width:350px; margin:0; }
.about-values-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--border); }
.about-values-grid article { padding:1.4rem 1.4rem 0 0; }
.about-values-grid article + article { padding-left:1.4rem; border-left:1px solid var(--border); }
.about-values-grid article > span { color:var(--accent); font-size:.72rem; font-weight:800; }
.about-values-grid h3 { margin:1.8rem 0 .6rem; color:var(--text); font-size:1.25rem; letter-spacing:-.03em; }
.about-values-grid p { max-width:330px; color:var(--muted); font-size:.9rem; line-height:1.6; }
.about-contact { display:flex; justify-content:space-between; align-items:flex-start; gap:2rem; margin-bottom:4rem; padding:clamp(2rem, 5vw, 4rem); background:var(--hero-bg); }
.about-contact .about-section-index { color:#d2b6ff; }
.about-contact > div { max-width:760px; }
.about-contact h2 { color:#fff; }
.about-contact > div > a { display:inline-flex; gap:.8rem; margin-top:2rem; color:#fff; text-decoration:none; font-weight:750; }

@media (max-width:800px) {
    .about-hero { min-height:680px; padding:8rem 1.5rem 3rem; align-items:flex-start; flex-direction:column; justify-content:flex-end; gap:3rem; text-align:left; }
    .about-hero h1 { font-size:clamp(3.4rem, 13vw, 6rem); }
    .about-hero-note { flex-basis:auto; width:100%; }
    .about-approach { grid-template-columns:1fr; gap:1.5rem; padding:4.5rem 1.5rem; }
    .about-approach-content { grid-template-columns:1fr; gap:1.2rem; }
    .about-portfolio, .about-principles { padding:4.5rem 1.5rem; }
    .about-portfolio-heading, .about-principles-heading { align-items:flex-start; flex-direction:column; gap:1rem; }
    .about-venture-row { grid-template-columns:2.5rem 1fr 24px; gap:.8rem; }
    .about-venture-row img { width:2.35rem; height:2.35rem; }
    .about-venture-description { grid-column:2; grid-row:2; }
    .about-venture-status { grid-column:2; grid-row:3; text-align:left; }
    .about-venture-arrow { grid-column:3; grid-row:1; }
    .about-values-grid { grid-template-columns:1fr; }
    .about-values-grid article, .about-values-grid article + article { padding:1.25rem 0; border-left:0; border-bottom:1px solid var(--border); }
    .about-values-grid h3 { margin:.8rem 0 .4rem; }
    .about-contact { flex-direction:column; margin-bottom:2rem; }
}
.portfolio-hero .hero-title { font-size: clamp(3rem, 6.3vw, 7rem); line-height: .94; letter-spacing: -.065em; }
.hero-venture { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.mobile-menu-toggle { display: none; }
.project-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:2rem; }
.project-toolbar a { color:var(--accent); text-decoration:none; font-weight:650; }
.share-button, #closePortfolio { border:1px solid var(--border); background:transparent; color:var(--text); border-radius:.5rem; font-size:.875rem; }
.hero-index .share-button { color:#fff; border-color:rgba(255,255,255,.25); text-transform:none; letter-spacing:0; }
.share-button:hover, #closePortfolio:hover { background:rgba(136,103,212,.15); }
.portfolio-results-heading { flex-wrap:wrap; }
.gallery-hint { display:none; }
#portfolioEmpty { color:var(--muted); padding:2rem 0; }
.project-info, .project-preview { min-width:0; }

@media (max-width: 900px) {
    .project-preview { flex-direction:column; }
    .phone-stack { position:relative; display:flex; justify-content:flex-start; align-items:flex-start; gap:1rem; height:auto; padding:1rem 0; overflow-x:auto; scroll-snap-type:x mandatory; }
    .phone { position:relative; flex:0 0 min(75%, 260px); width:auto; transform:none !important; scroll-snap-align:center; }
    .phone:hover { transform:none !important; }
    .gallery-hint { display:block; margin-top:.75rem; color:var(--muted); font-size:.875rem; }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap:nowrap; position:relative; gap:.75rem; }
    .mobile-menu-toggle { display:block; margin-left:auto; border:1px solid var(--border); background:transparent; color:var(--text); padding:.5rem .7rem; }
    body:has(.portfolio-hero) .mobile-menu-toggle { color:white; border-color:rgba(255,255,255,.3); }
    .header-nav { display:none; position:absolute; top:100%; left:0; right:0; margin:0; padding:1rem; background:var(--surface); border:1px solid var(--border); border-radius:.5rem; align-items:stretch; flex-direction:column; gap:1rem; box-shadow:0 12px 30px rgba(0,0,0,.15); }
    .header-nav.menu-open { display:flex; }
    .header-nav a, body:has(.portfolio-hero) .header-nav a { display:block; color:var(--text); }
    .header-nav .dropdown-toggle, body:has(.portfolio-hero) .header-nav .dropdown-toggle { color:var(--text); }
    .header-nav .dropdown-menu { position:static; margin-top:.7rem; max-height:45vh; overflow-y:auto; }
    .theme-toggle { margin-left:0; flex-shrink:0; }
    .hero-index { gap:1rem; flex-wrap:wrap; }
    .project-toolbar { align-items:flex-start; flex-wrap:wrap; }
}
