/* JMEK DESIGN — B&W / Swiss editorial rebuild */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --fg: #f0f0eb;
  --fg-dim: #606058;
  --rule: rgba(240, 240, 235, 0.1);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --grotesk: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--grotesk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.container { width: 100%; padding: 0 32px; max-width: 1760px; margin: 0 auto; }
@media (max-width: 720px) { .container { padding: 0 18px; } }

/* ——— nav ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 32px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  mix-blend-mode: difference; color: #fff;
}
.nav-mark { display: inline-flex; }
.nav-logo-unit { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.nav-logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-text .l1 { font-family: var(--grotesk); font-weight: 400; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.nav-logo-text .l2 { font-family: var(--grotesk); font-weight: 300; font-size: 9px; letter-spacing: 0.12em; text-transform: lowercase; opacity: 0.65; }
.nav-links { display: flex; gap: 28px; }
.nav-links a:hover { opacity: 0.6; }
.nav-cta { display: flex; gap: 14px; align-items: flex-start; }
.nav-lang { display: inline-flex; gap: 6px; border: 1px solid currentColor; padding: 4px 10px; border-radius: 999px; }
.nav-lang button { background: transparent; border: 0; padding: 0 4px; color: inherit; cursor: pointer; font: inherit; opacity: 0.5; }
.nav-lang button.on { opacity: 1; }
@media (max-width: 900px) { .nav-links { display: none; } .nav { padding: 14px 18px; } }

/* ——— frame as rhythm ——— */
.frame-field {
  position: absolute; left: 0; right: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0.07;
}
.frame-divider { display: none; }
.frame-divider svg { width: 100%; height: 56px; opacity: 0.5; }
.frame-statement {
  padding: 140px 32px;
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--rule);
}
.frame-statement svg { width: 100%; max-width: 640px; height: auto; aspect-ratio: 4/3; opacity: 0.9; }
.frame-footer-close {
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
}
.frame-footer-close svg { width: 100%; height: 110px; opacity: 0.6; }
@media (max-width: 720px) {
  .frame-statement { padding: 80px 18px; }
  .frame-divider, .frame-footer-close { padding: 12px 18px; }
}

/* ——— hero ——— */
.hero { min-height: 100vh; position: relative; display: flex; flex-direction: column; padding: 120px 0 0; overflow: hidden; }
.hero-meta { position: absolute; top: 80px; left: 32px; right: 32px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-dim); z-index: 1; }
.hero-field { top: 15%; height: 60vh; }
.hero-headline, .hero-foot { position: relative; z-index: 1; }
.hero-meta { display: none; }
.hero-headline { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 32px; font-family: var(--grotesk); font-weight: 600; font-size: clamp(60px, 13vw, 250px); line-height: 0.85; letter-spacing: -0.06em; text-transform: uppercase; }
.hero-headline .row { display: flex; align-items: baseline; gap: 0.18em; flex-wrap: wrap; }
.hero-headline .it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; text-transform: none; }
.hero-headline .stroke { -webkit-text-stroke: 1.5px var(--fg); color: transparent; }
.hero-foot { display: none; }
.hero-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 32px 48px; align-items: start; position: relative; z-index: 1; }
.hero-lead { font-size: 16px; line-height: 1.6; color: var(--fg-dim); margin: 0; max-width: 52ch; font-family: var(--grotesk); letter-spacing: -0.01em; }
.hero-cta { display: flex; flex-direction: column; gap: 18px; }
.hero-cta-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); margin: 0; }
.hero-phone { font-family: var(--grotesk); font-size: clamp(26px, 3vw, 48px); font-weight: 500; letter-spacing: -0.03em; color: var(--fg); line-height: 1; }
.hero-phone:hover { opacity: 0.7; }
.hero-cta-btn { display: inline-block; align-self: flex-start; padding: 12px 24px; border: 1px solid rgba(240,240,235,0.25); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); transition: border-color 0.2s, background 0.2s, color 0.2s; }
.hero-cta-btn:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
@media (max-width: 900px) {
  .hero-meta { left: 18px; right: 18px; top: 64px; }
  .hero-headline { padding: 0 18px; }
  .hero-body { grid-template-columns: 1fr; gap: 32px; padding: 36px 18px 0; }
}

/* ——— section header ——— */
.section { padding: 120px 0; }
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 48px; padding: 0 32px 64px; align-items: end; }
.section-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.section-title { font-family: var(--grotesk); font-size: clamp(42px, 6.5vw, 104px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.92; margin: 0; text-transform: uppercase; }
.section-title .it { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; }
@media (max-width: 720px) { .section { padding: 80px 0; } .section-head { grid-template-columns: 1fr; gap: 18px; padding: 0 18px 36px; } }

/* ——— principles ——— */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.principle { padding: 36px 28px 48px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 18px; min-height: 320px; }
.principle:nth-child(4n) { border-right: 0; }
.principle .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--fg-dim); text-transform: uppercase; }
.principle h3 { font-family: var(--grotesk); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin: 0; line-height: 1.1; }
.principle p { font-size: 14px; line-height: 1.5; color: var(--fg-dim); margin: 0; }
@media (max-width: 1100px) { .principles { grid-template-columns: repeat(2, 1fr); } .principle:nth-child(2n) { border-right: 0; } .principle:nth-child(4n) { border-right: 1px solid var(--rule); } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } .principle { border-right: 0 !important; min-height: 200px; padding: 28px 18px 36px; } }

/* ——— founder ——— */
.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; }
.founder-image { position: relative; min-height: 620px; background: var(--bg-2); overflow: hidden; }
.founder-text { padding: 80px 56px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.founder-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.founder-quote { font-family: var(--grotesk); font-weight: 500; font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.founder-quote .it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.founder-name { font-family: var(--grotesk); font-size: 16px; letter-spacing: -0.01em; }
.founder-name small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); margin-top: 6px; }
.founder-desc { font-size: 16px; line-height: 1.55; color: var(--fg-dim); margin: 0; max-width: 46ch; }
@media (max-width: 1000px) { .founder { grid-template-columns: 1fr; } .founder-image { min-height: 60vh; } .founder-text { padding: 48px 24px; } }

/* ——— services / stages ——— */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stage-col { padding: 32px 28px 40px; border-right: 1px solid var(--rule); }
.stage-col:last-child { border-right: 0; }
.stage-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--fg-dim); text-transform: uppercase; margin-bottom: 18px; }
.stage-h { font-family: var(--grotesk); font-weight: 500; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em; line-height: 0.95; margin: 0 0 14px; text-transform: uppercase; }
.stage-desc { color: var(--fg-dim); font-size: 14px; line-height: 1.5; margin: 0 0 32px; max-width: 36ch; }
.stage-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.stage-list li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.stage-list li:last-child { border-bottom: 1px solid var(--rule); }
.stage-code { font-family: var(--mono); font-size: 12px; color: var(--fg); letter-spacing: 0.1em; }
.stage-name { font-family: var(--grotesk); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.stage-name small { display: block; font-weight: 400; font-size: 13px; color: var(--fg-dim); margin-top: 4px; letter-spacing: 0; line-height: 1.4; }
@media (max-width: 1000px) { .stages { grid-template-columns: 1fr; } .stage-col { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* ——— cases ——— */
.cases-intro { padding: 0 32px 48px; }
.cases-intro .meta { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); letter-spacing: 0.1em; text-transform: uppercase; max-width: 72ch; line-height: 1.8; }

.case-feature { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; border-bottom: 1px solid var(--rule); }
.case-feature:nth-child(even) .case-image { order: 2; }
.case-feature:nth-child(even) .case-text { order: 1; }
.case-image { position: relative; overflow: hidden; background: var(--bg-2); min-height: 480px; }
.case-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.case-feature:hover .case-image img { transform: scale(1.04); }
.case-image .case-num { position: absolute; top: 24px; left: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: #fff; mix-blend-mode: difference; z-index: 2; }
.case-text { padding: 64px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.case-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--fg-dim); text-transform: uppercase; }
.case-title { font-family: var(--grotesk); font-weight: 500; font-size: clamp(48px, 7vw, 120px); letter-spacing: -0.05em; line-height: 0.9; margin: 0; text-transform: uppercase; }
.case-title .it { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.02em; }
.case-desc { font-size: 16px; line-height: 1.5; color: var(--fg-dim); max-width: 50ch; margin: 0; }
.case-stages { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.case-stages .chip { font-family: var(--mono); font-size: 11px; padding: 4px 8px; border: 1px solid var(--rule); border-radius: 4px; letter-spacing: 0.05em; color: var(--fg); }
.case-stages .chip.dim { color: var(--fg-dim); border-color: var(--rule); opacity: 0.5; }
@media (max-width: 1000px) {
  .case-feature { grid-template-columns: 1fr; }
  .case-feature:nth-child(even) .case-image { order: 1; }
  .case-feature:nth-child(even) .case-text { order: 2; }
  .case-image { min-height: 60vh; }
  .case-text { padding: 40px 24px; }
}

/* ——— gallery grid ——— */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; padding: 32px; }
.gallery .g-item { position: relative; overflow: hidden; background: var(--bg-2); cursor: pointer; display: block; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.gallery .g-item:hover img { transform: scale(1.05); }
.gallery .g-item .label { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: end; color: #fff; z-index: 2; mix-blend-mode: difference; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.gallery .g-item .label b { display: block; font-family: var(--grotesk); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; text-transform: none; margin-bottom: 4px; }
.gallery .a-1 { grid-column: span 7; aspect-ratio: 16/10; }
.gallery .a-2 { grid-column: span 5; aspect-ratio: 4/5; }
.gallery .a-3 { grid-column: span 4; aspect-ratio: 4/5; }
.gallery .a-4 { grid-column: span 8; aspect-ratio: 16/9; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; padding: 18px; } .gallery .g-item { grid-column: 1 / -1 !important; aspect-ratio: 4/3 !important; } }

/* ——— marquee ——— */
.marquee { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: hidden; padding: 22px 0; display: flex; }
.marquee-track { display: flex; gap: 60px; white-space: nowrap; animation: marquee 60s linear infinite; font-family: var(--grotesk); font-weight: 500; font-size: clamp(32px, 5vw, 72px); letter-spacing: -0.02em; text-transform: uppercase; flex-shrink: 0; padding-right: 60px; align-items: center; }
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track .star { width: clamp(24px, 3vw, 48px); height: clamp(24px, 3vw, 48px); flex-shrink: 0; }
.marquee-track .it { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; }

/* ——— client logos ——— */
.clients { padding: 22px 0; overflow: hidden; }
.clients-img { display: block; width: 100%; max-width: 100%; height: auto; opacity: 0.9; }
.clients-track { display: flex; gap: 72px; white-space: nowrap; animation: marquee 50s linear infinite; flex-shrink: 0; padding-right: 72px; align-items: center; }
.clients-track span { display: inline-flex; align-items: center; gap: 72px; }
.clients-name { font-family: var(--grotesk); font-weight: 500; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -0.01em; text-transform: uppercase; color: var(--fg-dim); opacity: 0.7; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ——— stat ——— */
.stat { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 80px 32px; gap: 48px; }
.stat-num { font-family: var(--grotesk); font-size: clamp(120px, 22vw, 360px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; -webkit-text-stroke: 1.5px var(--fg); color: transparent; }
.stat-num span { letter-spacing: -0.02em; }
.stat-label { display: flex; flex-direction: column; gap: 4px; }
.stat-l1 { font-family: var(--grotesk); font-size: clamp(24px, 3vw, 48px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--fg); text-transform: uppercase; }
.stat-l2 { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.8vw, 44px); letter-spacing: -0.01em; line-height: 1; color: var(--fg); }
@media (max-width: 720px) { .stat { grid-template-columns: 1fr; padding: 48px 18px; } }

/* ——— contact ——— */
.contact { padding: 120px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-mega { font-family: var(--grotesk); font-weight: 600; font-size: clamp(56px, 9vw, 160px); letter-spacing: -0.05em; line-height: 0.88; text-transform: uppercase; margin: 0; }
.contact-mega .it { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.02em; }
.contact-mega a { display: inline-block; text-decoration: none; border-bottom: 4px solid var(--fg); }
.contact-mega a:hover { opacity: 0.7; }
.form { display: flex; flex-direction: column; gap: 0; align-self: end; }
.form .field { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); padding: 18px 0 14px; }
.form .field label { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.form .field input, .form .field textarea { background: transparent; border: 0; color: var(--fg); font-family: var(--grotesk); font-size: 22px; padding: 8px 0 0; outline: none; resize: none; letter-spacing: -0.01em; }
.form .field input::placeholder, .form .field textarea::placeholder { color: var(--fg-dim); opacity: 0.5; }
.form-submit { margin-top: 28px; align-self: flex-start; background: var(--fg); color: var(--bg); border: 0; padding: 22px 36px; font-family: var(--grotesk); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 16px; transition: transform 0.2s, opacity 0.2s; }
.form-submit:hover { transform: translate(-2px, -2px); opacity: 0.85; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 48px; padding: 64px 24px; } }

/* ——— footer ——— */
.footer { padding: 0 32px 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim); }
.footer h5 { font-family: var(--mono); font-size: 11px; font-weight: 400; margin: 0 0 14px; color: var(--fg); letter-spacing: 0.1em; }
.footer .geo { font-family: var(--grotesk); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; text-transform: none; color: var(--fg); line-height: 1.4; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a:hover { opacity: 0.6; }
.footer-bottom { grid-column: 1 / -1; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 800px) { .footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer { grid-template-columns: 1fr; } }

/* ——— reveal ——— */
@keyframes revealIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 1; transform: none; }
.js-reveal-active .reveal:not(.in) { opacity: 0; transform: translateY(40px); }
.reveal.in { animation: revealIn 1.1s cubic-bezier(.2,.7,.2,1) forwards; }

/* ——— cursor ——— */
.cursor { position: fixed; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s; mix-blend-mode: difference; }
.cursor.big { width: 70px; height: 70px; }
@media (hover: none) { .cursor { display: none; } }

/* ——— light mode ——— */
body.light { --bg: #eeebe2; --bg-2: #e4e1d8; --fg: #0a0a0a; --fg-dim: #787870; --rule: rgba(10, 10, 10, 0.1); }
