/* Konsultis website draft
   Layout: image-led editorial grid, left-aligned, thin rules, one gradient accent from the logo.
   Brand gradient (from logo): magenta -> violet -> indigo. */
:root {
  --bg: #F7F6F9;
  --surface: #FFFFFF;
  --fg: #14121C;
  --muted: #5E5B6B;
  --line: #DAD6E2;
  --link: #5200A0;
  --brand-a: #C4207A;
  --brand-b: #5200A0;
  --brand-c: #2C27D0;
  --grad: linear-gradient(100deg, var(--brand-a), var(--brand-b) 55%, var(--brand-c));
  --grad-text: linear-gradient(100deg, #C4207A, #5200A0 55%, #2C27D0);
  --lux-bg: #0D0B14;
  --lux-surface: #16132200;
  --lux-fg: #F1EEF7;
  --lux-muted: #ABA5BC;
  --lux-line: #2E2945;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0D16; --surface: #171424; --fg: #F0EDF6; --muted: #A8A2B8; --line: #2D2842; --link: #C79BFF;
    --grad-text: linear-gradient(100deg, #FF6AB4, #B77CFF 55%, #7F88FF);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0D16; --surface: #171424; --fg: #F0EDF6; --muted: #A8A2B8; --line: #2D2842; --link: #C79BFF;
  --grad-text: linear-gradient(100deg, #FF6AB4, #B77CFF 55%, #7F88FF);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 60; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap {
  width: 100%; max-width: 1320px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(56px, 9vw, 120px); }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.rule-top { border-top: 1px solid var(--line); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.9rem; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-image: var(--grad) 1; border-bottom: 2px solid; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--fg); width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; font: inherit; }
.icon-btn:hover { border-color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 500 0.95rem/1 var(--font-body); padding: 16px 26px; border: 1px solid transparent;
  transition: filter .2s, background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn-light { border-color: var(--lux-fg); color: var(--lux-fg); background: transparent; }
.btn-light:hover { background: var(--lux-fg); color: var(--lux-bg); }
.text-link { color: var(--link); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; font-weight: 500; }
.text-link:hover { border-bottom-width: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Typography helpers */
.display { font-size: clamp(2.7rem, 6.4vw, 5.6rem); font-weight: 400; line-height: 1; }
.h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; }
.h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; color: var(--muted); }
.small { font-size: 0.875rem; color: var(--muted); }
.kicker { font-size: 0.9rem; color: var(--muted); }
.num-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head .lead { justify-self: end; }

/* Placeholder imagery */
.ph { position: relative; overflow: hidden; background: #1b1230; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ph .tag {
  position: absolute; left: 12px; top: 12px; font-size: 0.75rem; line-height: 1; padding: 7px 10px;
  background: rgba(13, 11, 20, 0.72); color: #fff; backdrop-filter: blur(4px);
}
a:hover > .ph img, .card:hover .ph img { transform: scale(1.03); }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .ph { aspect-ratio: 4 / 5; animation: fade 1.2s ease both .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers > div { padding: 36px 24px 32px 0; display: flex; flex-direction: column; gap: 10px; }
.numbers > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.numbers .n { font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 1; font-weight: 400; font-variant-numeric: lining-nums; white-space: nowrap; }
.numbers .l { color: var(--muted); font-size: 0.95rem; max-width: 22ch; }

/* Project cards */
.feature-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; min-width: 0; }
.card .ph { height: clamp(260px, 34vw, 480px); }
.card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.card .meta { color: var(--muted); font-size: 0.9rem; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.feature-grid .c7 { grid-column: span 7; }
.feature-grid .c5 { grid-column: span 5; }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.proj-grid .card .ph { height: auto; aspect-ratio: 4 / 3; }

/* Categories */
.cat-lux { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); background: var(--lux-bg); color: var(--lux-fg); text-decoration: none; }
.cat-lux .ph { min-height: 340px; }
.cat-lux .body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.cat-lux .body p { color: var(--lux-muted); max-width: 44ch; }
.cat-lux .body .text-link { color: #D9B8FF; align-self: flex-start; }
.cat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.cat { display: flex; flex-direction: column; gap: 18px; text-decoration: none; min-width: 0; }
.cat .ph { aspect-ratio: 16 / 9; }
.cat p { color: var(--muted); max-width: 48ch; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
.step { padding: 28px 24px 8px 0; border-top: 1px solid var(--fg); display: flex; flex-direction: column; gap: 12px; position: relative; }
.step + .step { padding-left: 24px; }
.step::before { content: counter(s, decimal-leading-zero); counter-increment: s; font-family: var(--font-display); font-size: 1.1rem; color: var(--muted); }
.step h3 { font-size: 1.9rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
.steps-long .step { grid-column: 1 / -1; }
.step-long { display: grid; grid-template-columns: 90px minmax(0, 4fr) minmax(0, 6fr); gap: 24px; padding-block: 36px; border-top: 1px solid var(--line); align-items: baseline; counter-increment: sl; }
.step-long::before { content: counter(sl, decimal-leading-zero); font-family: var(--font-display); font-size: 1.6rem; }
.step-long h3 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; }
.step-long p { color: var(--muted); max-width: 52ch; }
.steps-wrap { counter-reset: sl; border-bottom: 1px solid var(--line); }

/* Services */
.svc-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.svc-group { border-top: 1px solid var(--fg); padding: 24px 24px 8px 0; display: flex; flex-direction: column; gap: 16px; }
.svc-group + .svc-group { padding-left: 24px; }
.svc-group h3 { font-size: 1.9rem; }
.svc-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.svc-detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); padding-block: 44px; border-top: 1px solid var(--line); }
.svc-detail:last-of-type { border-bottom: 1px solid var(--line); }
.svc-detail h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.svc-list h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-bottom: 6px; }
.svc-list p { color: var(--muted); font-size: 0.95rem; }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.why > div { border-top: 1px solid var(--line); padding-block: 26px 36px; display: flex; flex-direction: column; gap: 10px; }
.why h3 { font-size: 1.7rem; }
.why p { color: var(--muted); font-size: 0.95rem; max-width: 36ch; }

/* Luxury */
.dark-zone { background: var(--lux-bg); color: var(--lux-fg); }
.dark-zone .lead, .dark-zone .prose, .dark-zone .small { color: var(--lux-muted); }
.dark-zone .rule { border-color: var(--lux-line); }
.lux-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.lux-band h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 300; }
.lux-band .ph { aspect-ratio: 5 / 4; }
.lux-hero { padding-block: clamp(56px, 9vw, 128px) clamp(40px, 6vw, 80px); }
.lux-hero h1 { font-size: clamp(3rem, 8vw, 7.4rem); font-weight: 300; line-height: 0.96; }
.lux-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lux-gallery .ph { aspect-ratio: 3 / 4; }
.lux-gallery figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lux-gallery figcaption h3 { font-size: 1.7rem; font-weight: 400; }
.lux-gallery figcaption p { color: var(--lux-muted); font-size: 0.9rem; }
.lux-scope { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--lux-line); }
.lux-scope li { padding: 26px 20px 26px 0; border-bottom: 1px solid var(--lux-line); font-family: var(--font-display); font-size: 1.6rem; }

/* Inner page hero */
.page-hero { padding-block: clamp(48px, 8vw, 112px) clamp(32px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); font-weight: 400; max-width: 16ch; }
.page-hero .lead { margin-top: 24px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { font: 500 0.9rem/1 var(--font-body); padding: 12px 18px; background: transparent; color: var(--fg); border: 1px solid var(--line); cursor: pointer; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Project story */
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 20px 16px 20px 0; display: flex; flex-direction: column; gap: 4px; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.8rem; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
.story { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.story h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; }
.story .prose { max-width: 60ch; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.gallery .ph { height: clamp(220px, 30vw, 440px); }
.gallery .g7 { grid-column: span 7; } .gallery .g5 { grid-column: span 5; } .gallery .g12 { grid-column: span 12; height: clamp(260px, 42vw, 620px); }
.next-project { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 40px; border-top: 1px solid var(--line); }

/* About, placeholders */
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); }
.serve { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.serve > div { border-top: 1px solid var(--fg); padding: 22px 20px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.serve > div + div { padding-left: 20px; }
.serve h3 { font-size: 1.6rem; }
.serve p { color: var(--muted); font-size: 0.95rem; }
.vmv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vmv > div { border: 1px dashed var(--muted); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.vmv h3 { font-size: 1.8rem; }
.vmv p { color: var(--muted); font-size: 0.9rem; }
.tm { font-size: 0.45em; vertical-align: super; font-family: var(--font-body); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); padding: 14px 14px; border-radius: 0; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: var(--link); }
.form-note { padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.addr { display: flex; flex-direction: column; gap: 28px; }
.addr h3 { font-size: 1.5rem; margin-bottom: 6px; }
.addr p { color: var(--muted); font-size: 0.95rem; }
.copy { font: inherit; background: none; border: 0; color: var(--link); cursor: pointer; text-decoration: underline; padding: 0; margin-left: 8px; }

/* CTA + footer */
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: end; }
.footer { background: var(--lux-bg); color: var(--lux-fg); padding-block: clamp(48px, 7vw, 88px) 32px; }
.footer a { text-decoration: none; color: var(--lux-muted); }
.footer a:hover { color: var(--lux-fg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer img { height: 40px; width: auto; }
.footer p { color: var(--lux-muted); font-size: 0.9rem; max-width: 36ch; margin-top: 18px; }
.footer h4 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--lux-fg); margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--lux-line); font-size: 0.82rem; color: var(--lux-muted); }

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .step + .step { padding: 24px 24px 24px 0; }
  .svc-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-group, .svc-group + .svc-group { padding: 24px 24px 24px 0; }
  .serve { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .serve > div, .serve > div + div { padding: 22px 20px 24px 0; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts > div:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 20px; display: none; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .site-header .wrap { position: relative; }
  .header-tools { margin-left: auto; }
  .header-cta { display: none; }
  .hero-grid, .section-head, .two, .cta, .contact-grid, .lux-band, .cat-lux, .story, .svc-detail { grid-template-columns: minmax(0, 1fr); }
  .section-head .lead { justify-self: start; }
  .hero .ph { aspect-ratio: 4 / 3; order: -1; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers > div, .numbers > div + div { padding: 28px 16px 24px 0; border-left: 0; }
  .numbers > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .numbers > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature-grid .c7, .feature-grid .c5 { grid-column: 1 / -1; }
  .proj-grid, .why, .vmv, .lux-gallery, .lux-scope { grid-template-columns: minmax(0, 1fr); }
  .cat-pair { grid-template-columns: minmax(0, 1fr); }
  .svc-list { grid-template-columns: minmax(0, 1fr); }
  .step-long { grid-template-columns: 48px minmax(0, 1fr); }
  .step-long p { grid-column: 2; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .gallery .g7, .gallery .g5 { grid-column: 1 / -1; }
  .form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  :root { --gutter: 18px; }
  .steps, .svc-groups, .serve { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div, .facts > div + div { padding: 16px 12px 16px 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .brand img { height: 28px; }
  .btn { padding: 15px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero .ph { animation: none; }
  .ph img { transition: none; }
}

/* Logo swap by theme */
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
