/* =========================================================
   OPHRYS WEB SOLUTIONS
   Dark mode · Fraunces display + Inter body · warm orange
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
    /* Depth */
    --bg:          #07070b;
    --bg-surface:  #0e0e18;
    --bg-card:     #11111c;
    --bg-panel:    rgba(14,14,24,0.75);

    /* Ink — user asked for white, high readability */
    --text:        #ffffff;
    --text-dim:    #c9cad2;
    --text-soft:   #9a9ba8;
    --text-muted:  #6e6f80;

    /* Accents — orange to match logo */
    --bloom:       #ff6b1a;
    --bloom-soft:  rgba(255,107,26,0.7);
    --bloom-glow:  rgba(255,107,26,0.28);
    --bloom-deep:  #d94a0a;

    /* Lines */
    --border:      rgba(255,255,255,0.08);
    --border-hot:  rgba(255,107,26,0.32);

    /* Type */
    --f-display:   'Fraunces', 'Times New Roman', serif;
    --f-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Motion */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-inout:  cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: auto;
}

body {
    font-family: var(--f-body);
    font-weight: 300;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    line-height: 1.7;
    cursor: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: none; }
input, select, textarea { font-family: inherit; color: inherit; background: none; border: none; outline: none; }
img { display: block; max-width: 100%; }
em { font-style: italic; font-weight: inherit; }
::selection { background: var(--bloom-soft); color: #fff; }

/* ---------- Brand marks (logo JPEGs) ---------- */
/* Lighten blend knocks out the logo's near-black background */
.brand-mark,
.brand-lockup {
    display: block;
    mix-blend-mode: lighten;
    filter: brightness(1.05) contrast(1.05);
    user-select: none;
    -webkit-user-drag: none;
}

/* ---------- WebGL Canvas ---------- */
#webgl {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Chapter Index ---------- */
.chapter-index {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 26px;
    opacity: 0;
    transition: opacity 0.6s 0.6s var(--ease-out);
}
.chapter-index.visible { opacity: 1; }

.chapter-dot {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.35s;
}
.chapter-dot .lbl {
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.chapter-dot .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    background: transparent;
    transition: border-color 0.35s, background 0.35s, transform 0.35s;
}
.chapter-dot:hover .lbl,
.chapter-dot.active .lbl {
    opacity: 1;
    transform: translateX(0);
}
.chapter-dot:hover { color: var(--text-dim); }
.chapter-dot:hover .dot { border-color: var(--text-dim); }
.chapter-dot.active { color: var(--bloom); }
.chapter-dot.active .dot {
    background: var(--bloom);
    border-color: var(--bloom);
    box-shadow: 0 0 14px var(--bloom-soft);
    transform: scale(1.3);
}

/* ---------- Custom Cursor ---------- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
}
.cursor-crosshair {
    position: relative;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}
.cursor-crosshair .ch {
    position: absolute;
    background: #fff;
    opacity: 0.85;
}
.cursor-crosshair .ch.t, .cursor-crosshair .ch.b { width: 1px; height: 5px; left: 50%; transform: translateX(-50%); }
.cursor-crosshair .ch.t { top: 0; } .cursor-crosshair .ch.b { bottom: 0; }
.cursor-crosshair .ch.l, .cursor-crosshair .ch.r { height: 1px; width: 5px; top: 50%; transform: translateY(-50%); }
.cursor-crosshair .ch.l { left: 0; } .cursor-crosshair .ch.r { right: 0; }
.cursor-crosshair .ch-center {
    position: absolute;
    top: 50%; left: 50%;
    width: 3px; height: 3px;
    margin: -1.5px 0 0 -1.5px;
    background: #fff;
    border-radius: 50%;
}
.cursor.hovering .cursor-crosshair {
    width: 48px;
    height: 48px;
}
.cursor.hovering .ch { opacity: 1; }

@media (pointer: coarse) {
    .cursor { display: none; }
    body { cursor: auto; }
    button, a, select { cursor: pointer; }
}

/* ---------- Loader ---------- */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner {
    width: 240px;
    text-align: center;
}
.loader-wordmark {
    font-family: var(--f-display);
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--text);
    margin-bottom: 22px;
    opacity: 0;
    animation: loaderFade 0.9s 0.2s var(--ease-out) forwards;
}
.loader-bar {
    width: 100%;
    height: 1px;
    background: var(--border);
    overflow: hidden;
    opacity: 0;
    animation: loaderFade 0.8s 0.5s var(--ease-out) forwards;
}
.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--bloom);
    animation: loaderBar 2s 0.6s var(--ease-inout) forwards;
    box-shadow: 0 0 12px var(--bloom-soft);
}

@keyframes loaderFade { to { opacity: 1; } }
@keyframes loaderBar  { to { width: 100%; } }

/* ---------- Navigation (3-column grid) ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 22px 40px;
    mix-blend-mode: difference;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.nav.visible { opacity: 1; transform: translateY(0); }

.nav-left   { justify-self: start; }
.nav-center { justify-self: center; display: flex; gap: 34px; }
.nav-right  { justify-self: end; }

.nav-logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.nav-logo .brand-mark {
    width: 52px;
    height: 52px;
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 14px rgba(255,107,26,0.35));
    transition: transform 0.4s var(--ease-out), filter 0.4s;
}
.nav-logo:hover .brand-mark {
    transform: rotate(-6deg) scale(1.08);
    filter: brightness(1.18) contrast(1.12) drop-shadow(0 0 22px rgba(255,107,26,0.55));
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 1px;
    background: #fff;
    transition: width 0.4s var(--ease-out);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* ---------- Language Switcher ---------- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-btn {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    color: rgba(255,255,255,0.45);
    border-radius: 4px;
    transition: color 0.3s, background 0.3s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.lang-sep {
    color: rgba(255,255,255,0.25);
    font-size: 11px;
    user-select: none;
}

/* ---------- Sections (General) ---------- */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 48px;
}
.section-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#about .section-inner,
#services .section-inner,
#portfolio .section-inner,
#contact .section-inner {
    background: radial-gradient(ellipse at 25% 50%, rgba(7,7,11,0.9) 0%, rgba(7,7,11,0.55) 55%, transparent 100%);
    padding: 60px;
    border-radius: 20px;
}

/* Section Labels */
.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.label-num { color: var(--bloom); }
.label-line { width: 40px; height: 1px; background: var(--border); }
.label-txt { color: var(--text-dim); }

/* Section Headings */
.section-text h2,
.contact-intro h2 {
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    color: var(--text);
}
.accent-bloom {
    color: var(--bloom);
    font-style: italic;
    font-weight: 400;
}

/* Section Body */
.section-body { max-width: 620px; }
.section-body p {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 22px;
    line-height: 1.75;
}
.section-body p:last-child { margin-bottom: 0; }
.section-lede {
    max-width: 580px;
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-top: -12px;
}

.reveal-text { opacity: 0; transform: translateY(40px); }

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 960px; }

.hero-title {
    font-family: var(--f-display);
    font-size: clamp(3rem, 7.5vw, 6rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 36px;
    color: var(--text);
}
.line-wrap { display: block; overflow: hidden; }
.line-inner { display: block; transform: translateY(110%); }
.line-accent {
    color: var(--bloom);
    font-style: italic;
    font-weight: 400;
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 46px;
    font-family: var(--f-display);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    color: var(--text-dim);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.005em;
    line-height: 1.4;
}
.hero-sub .line-inner { transform: translateY(120%); }

.hero-actions {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    opacity: 0;
}

/* Primary CTA — prominent, filled, glowing orange */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 36px;
    border: 1px solid var(--bloom);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--bloom);
    box-shadow: 0 10px 32px var(--bloom-glow), 0 0 0 rgba(255,107,26,0);
    transition: background 0.35s, border-color 0.35s, transform 0.3s var(--ease-out), box-shadow 0.4s;
    position: relative;
}
.hero-cta svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.hero-cta:hover {
    background: var(--bloom-deep);
    border-color: var(--bloom-deep);
    transform: translateY(-2px);
    box-shadow: 0 14px 42px rgba(255,107,26,0.5);
}
.hero-cta:hover svg { transform: translateX(4px); }

.hero-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    padding: 6px 0;
    border-bottom: 1px solid var(--text-muted);
    transition: color 0.3s, border-color 0.3s;
}
.hero-link:hover { color: var(--text); border-color: var(--text); }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
}
.scroll-indicator span {
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50%      { opacity: 1;   transform: scaleY(1);   }
}

/* ---------- ABOUT (commercial statement) ---------- */
.about-inner { display: flex; flex-direction: column; gap: 28px; }
.about-statement {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.015em;
    max-width: 960px;
    color: var(--text);
    margin: 0;
}
.about-statement em {
    font-style: italic;
    color: var(--bloom);
    font-weight: 400;
}

/* ---------- Services Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
}
.service {
    position: relative;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface);
    transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease-out);
}
.service:hover {
    border-color: var(--border-hot);
    background: var(--bg-card);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.service-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}
.service-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 24px;
    color: var(--text-dim);
    transition: color 0.4s;
}
.service:hover .service-icon { color: var(--bloom); }
.service h3 {
    font-family: var(--f-display);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    color: var(--text);
}
.service p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.75;
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 40px;
}

.portfolio-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(14,14,24,0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.portfolio-card:hover {
    border-color: var(--border-hot);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.portfolio-card.expanded {
    grid-column: 1 / -1;
    transform: none;
    border-color: var(--bloom-soft);
}

.card-preview {
    padding: 32px;
    cursor: none;
    position: relative;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.card-num { color: var(--bloom); font-weight: 500; }
.card-cat { color: var(--text-dim); }

.card-title {
    font-family: var(--f-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--text);
}
.card-arrow {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s var(--ease-out);
}
.portfolio-card:hover .card-arrow {
    color: var(--bloom);
    transform: translate(3px, -3px);
}

/* Expanded */
.card-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s var(--ease-out);
    padding: 0 32px;
}
.portfolio-card.expanded .card-expanded {
    max-height: 520px;
    padding: 0 32px 32px;
}
.card-expanded-inner {
    padding-top: 24px;
    border-top: 1px solid var(--border-hot);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s 0.2s, transform 0.5s 0.2s var(--ease-out);
}
.portfolio-card.expanded .card-expanded-inner {
    opacity: 1;
    transform: translateY(0);
}
.card-expanded p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.75;
    margin-bottom: 18px;
    max-width: 720px;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.card-tags span {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-dim);
    text-transform: uppercase;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--bloom);
    padding: 6px 0;
    border-bottom: 1px solid var(--bloom-soft);
    transition: color 0.3s, border-color 0.3s;
}
.card-link svg { width: 12px; height: 12px; }
.card-link:hover { color: var(--text); border-color: var(--text); }

.card-close {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    padding: 6px 0;
    border-bottom: 1px solid var(--text-muted);
    transition: color 0.3s, border-color 0.3s;
}
.card-close:hover {
    color: var(--text);
    border-color: var(--text);
}

/* ---------- Contact ---------- */
.contact-intro {
    max-width: 640px;
    margin-bottom: 44px;
}
.contact-intro p {
    font-size: 1.08rem;
    color: var(--text-dim);
    margin-bottom: 0;
    line-height: 1.75;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.ci-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ci-k {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 4px;
}
.ci-v {
    font-family: var(--f-display);
    font-size: 1.12rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.45;
    transition: color 0.3s;
}
a.ci-v:hover { color: var(--bloom); }

.contact-cta-col {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* Contact trigger — frosted-glass capsule that always sits clearly
   above the 3D bloom behind it, with a pulsing indicator dot and
   an inner orange rim light. */
.contact-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 16px 30px 16px 48px;       /* left padding for pulse */
    border: 1px solid var(--border-hot);
    border-radius: 100px;
    background: rgba(8, 8, 14, 0.74);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 0 0 1px rgba(255,107,26,0.08),
        0 18px 50px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,107,26,0.0);
    transition: background 0.45s, border-color 0.4s, transform 0.3s var(--ease-out), box-shadow 0.45s;
    overflow: visible;
}
.contact-trigger::before {
    /* Subtle inner gradient rim to lift the pill off the flower */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,107,26,0.12), transparent 60%);
    pointer-events: none;
    transition: opacity 0.4s;
}
.trigger-pulse {
    position: absolute;
    left: 22px; top: 50%;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--bloom);
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--bloom-soft);
    pointer-events: none;
}
.trigger-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bloom);
    animation: triggerPulse 1.9s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
@keyframes triggerPulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    80%  { transform: scale(3.2); opacity: 0;   }
    100% { transform: scale(1);   opacity: 0;   }
}
.contact-trigger:hover {
    background: var(--bloom);
    border-color: var(--bloom);
    transform: translateX(3px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 22px 60px rgba(255,107,26,0.5);
}
.contact-trigger:hover::before { opacity: 0; }
.contact-trigger:hover .trigger-label,
.contact-trigger:hover .trigger-meta,
.contact-trigger:hover svg { color: #fff; }
.contact-trigger:hover .trigger-pulse { background: #fff; box-shadow: 0 0 16px rgba(255,255,255,0.6); }
.contact-trigger:hover .trigger-pulse::after { background: #fff; }

.trigger-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    position: relative;
    z-index: 1;
}
.trigger-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--bloom);
    transition: color 0.3s;
}
.trigger-meta {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    transition: color 0.3s;
}
.contact-trigger svg {
    width: 18px;
    height: 18px;
    color: var(--bloom);
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--ease-out), color 0.3s;
}
.contact-trigger:hover svg { transform: translateX(4px); }

/* Form */
.contact-form-wrap {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s var(--ease-out), opacity 0.6s 0.2s;
}
.contact-form-wrap.open {
    max-height: 1200px;
    opacity: 1;
}
.contact-form-wrap.open .contact-form {
    background: rgba(14,14,24,0.82);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.contact-form { padding-top: 36px; max-width: 760px; }

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.form-head-k { color: var(--bloom); }
.form-head-v { color: var(--text-soft); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}
.form-group { position: relative; }
.form-group.full-width { margin-bottom: 28px; }
.form-group label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 10px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font-size: 0.97rem;
    font-weight: 400;
    padding: 10px 0;
    color: var(--text);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group select {
    appearance: none;
    cursor: none;
}
.form-group select option {
    background: var(--bg-card);
    color: var(--text);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-line {
    width: 100%;
    height: 1px;
    background: var(--border);
    position: relative;
}
.form-line::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--bloom);
    box-shadow: 0 0 8px var(--bloom-soft);
    transition: width 0.5s var(--ease-out);
}
.form-group:focus-within .form-line::after { width: 100%; }

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: var(--bloom);
    color: #fff;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s;
    box-shadow: 0 8px 24px var(--bloom-glow);
}
.form-submit svg { width: 14px; height: 14px; }
.form-submit:hover {
    transform: translateY(-2px);
    background: var(--bloom-deep);
    box-shadow: 0 12px 32px rgba(255,107,26,0.45);
}
.form-note {
    margin-top: 18px;
    font-size: 11px;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 1;
    padding: 48px 48px;
    border-top: 1px solid var(--border);
    background: rgba(7,7,11,0.94);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-brand .brand-lockup {
    width: 180px;
    height: auto;
}
.fb-sub {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-dim);
}

.footer-socials { display: flex; gap: 12px; }
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-dim);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover {
    color: var(--bloom);
    border-color: var(--border-hot);
    background: rgba(255,107,26,0.06);
}

.footer-copy {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-dim);
    display: flex;
    gap: 8px;
    align-items: center;
}
.footer-dot { opacity: 0.5; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid    { grid-template-columns: 1fr; gap: 16px; }
    .portfolio-grid   { grid-template-columns: 1fr; }
    .chapter-index    { display: none; }
    .contact-grid     { grid-template-columns: 1fr; gap: 28px; }
    .contact-cta-col  { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .section { padding: 80px 20px; }
    .nav { padding: 16px 20px; grid-template-columns: auto 1fr auto; gap: 12px; }
    .nav-center { gap: 18px; }
    .nav-link { font-size: 11px; }

    #about .section-inner,
    #services .section-inner,
    #portfolio .section-inner,
    #contact .section-inner { padding: 36px 24px; }

    .hero-title { font-size: clamp(2.2rem, 10vw, 3.6rem); }
    .hero-actions { flex-direction: column; gap: 14px; }
    .about-tagline { font-size: clamp(2rem, 9vw, 3rem); }

    .form-row { grid-template-columns: 1fr; gap: 20px; }

    .footer-inner { flex-direction: column; text-align: center; align-items: center; }
    .footer-brand { align-items: center; }
}

@media (max-width: 480px) {
    .section { padding: 60px 16px; }
    .nav-center { display: none; } /* very small screens: hide center links, keep logo + lang */
    .footer { padding: 32px 16px; }
    .lang-btn { padding: 3px 5px; font-size: 11px; }
}
