/* ZeMaNo LogiX — "Ocean Deep" design system (static build) */
:root {
  --radius: 1rem;
  --background: oklch(0.2 0.045 255);
  --foreground: oklch(0.96 0.012 215);
  --card: oklch(0.25 0.055 252);
  --primary: oklch(0.75 0.095 190);
  --primary-foreground: oklch(0.2 0.045 255);
  --primary-glow: oklch(0.84 0.11 185);
  --secondary: oklch(0.39 0.075 245);
  --muted: oklch(0.29 0.055 250);
  --muted-foreground: oklch(0.74 0.035 225);
  --accent: oklch(0.58 0.09 215);
  --border: oklch(0.85 0.04 220 / 12%);
  --input: oklch(0.85 0.04 220 / 18%);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --gradient-energy: linear-gradient(135deg, var(--primary-glow), var(--primary) 45%, var(--accent));
  --gradient-ocean: linear-gradient(160deg, var(--secondary), var(--card) 70%);
  --gradient-scrim: linear-gradient(180deg, transparent 20%, oklch(0.16 0.045 255 / 92%));
  --shadow-tile: 0 1px 0 0 oklch(1 0 0 / 6%) inset, 0 24px 48px -24px oklch(0.1 0.04 255 / 70%);
  --shadow-glow: 0 0 0 1px color-mix(in oklab, var(--primary) 40%, transparent),
    0 18px 40px -16px color-mix(in oklab, var(--primary) 45%, transparent);
}

*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--background); color: var(--foreground);
  font-family: var(--font-sans); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; font-weight: 600; }
p, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--primary); color: var(--primary-foreground); }
svg.i { width: 1rem; height: 1rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sz5 { width: 1.25rem !important; height: 1.25rem !important; }
.sz6 { width: 1.5rem !important; height: 1.5rem !important; }
.sz7 { width: 1.75rem !important; height: 1.75rem !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 80rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 640px) { .container { padding-left: 2rem; padding-right: 2rem; } }

/* utilities */
.muted { color: var(--muted-foreground); }
.primary { color: var(--primary); }
.display { font-family: var(--font-display); }
.eyebrow { font-family: var(--font-display); font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); }
.text-energy { background: var(--gradient-energy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-grid {
  pointer-events: none; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.85 0.04 220 / 6%) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.85 0.04 220 / 6%) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
}
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fade-up .7s cubic-bezier(.2,.7,.2,1) both; }

/* tiles */
.tile { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-tile); }
.tile-ocean { background: var(--gradient-ocean); }
.tile-energy { background: var(--gradient-energy); color: var(--primary-foreground); border-color: transparent; }
.tile > img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile > .scrim { position: absolute; inset: 0; background: var(--gradient-scrim); }
.tile-body { position: relative; display: flex; height: 100%; flex-direction: column; justify-content: flex-end; }
.p7 { padding: 1.75rem; } .p8 { padding: 2rem; }
@media (min-width: 768px) { .md-p10 { padding: 2.5rem; } }
.icon-box { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: calc(var(--radius) + 4px); background: var(--muted); color: var(--primary); }
.icon-box.lg { width: 3rem; height: 3rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; font-size: .875rem; font-weight: 500; cursor: pointer; transition: all .15s; border-radius: .375rem; height: 2.25rem; padding: 0 1rem; font-family: inherit; }
.btn-xl { height: 3rem; border-radius: 9999px; padding: 0 1.75rem; font-size: 1rem; }
.btn-pill { border-radius: 9999px; }
.btn-energy { background: var(--primary); color: var(--primary-foreground); font-weight: 600; box-shadow: var(--shadow-glow); }
.btn-energy:hover { background: var(--primary-glow); }
.btn-glass { border: 1px solid var(--border); background: oklch(0.96 0.012 215 / 5%); color: var(--foreground); backdrop-filter: blur(8px); }
.btn-glass:hover { background: oklch(0.96 0.012 215 / 10%); }
.btn-secondary { background: var(--secondary); color: var(--foreground); }
.btn-secondary:hover { background: color-mix(in oklab, var(--secondary) 80%, transparent); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: oklch(0.2 0.045 255 / 80%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-header .bar { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .625rem; }
.logo-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: calc(var(--radius) + 4px); }
.logo-mark svg { stroke-width: 2.5; }
.logo-text { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; }
.nav { display: none; align-items: center; gap: .25rem; }
.nav a { border-radius: 9999px; padding: .5rem 1rem; font-size: .875rem; color: var(--muted-foreground); transition: color .15s; }
.nav a:hover { color: var(--foreground); }
.nav a.active { background: var(--muted); color: var(--foreground); }
.header-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .375rem; background: none; color: var(--foreground); cursor: pointer; }
.menu-btn:hover { background: var(--accent); }
@media (min-width: 768px) { .nav { display: flex; } .header-cta { display: block; } .menu-btn { display: none; } }

/* mobile sheet */
.sheet-overlay { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / 80%); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: 18rem; background: var(--background); border-left: 1px solid var(--border); padding: 1.5rem; transform: translateX(100%); transition: transform .3s ease; }
body.menu-open .sheet-overlay { opacity: 1; pointer-events: auto; }
body.menu-open .sheet { transform: none; }
.sheet-close { position: absolute; top: 1rem; right: 1rem; background: none; color: var(--foreground); opacity: .7; cursor: pointer; padding: .25rem; }
.sheet nav { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .25rem; }
.sheet nav a { border-radius: calc(var(--radius) + 4px); padding: .75rem 1rem; font-family: var(--font-display); font-size: 1.125rem; color: var(--muted-foreground); }
.sheet nav a.active { background: var(--muted); color: var(--foreground); }

/* footer */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid .col { display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; }
.footer-grid .col:first-child { gap: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; color: var(--muted-foreground); }
.footer-links a:hover, .footer-mail:hover { color: var(--foreground); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom p { padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: .75rem; color: var(--muted-foreground); }

/* home bento */
.home-wrap { position: relative; }
.home-wrap > .bg-grid { bottom: auto; height: 600px; }
.home { position: relative; padding-top: 2rem; }
@media (min-width: 768px) { .home { padding-top: 3rem; } }
.bento { display: grid; grid-template-columns: 1fr; grid-auto-rows: minmax(180px, auto); gap: 1rem; }
.hero { min-height: 520px; }
.hero .tile-body { gap: 1.5rem; padding: 1.75rem; }
@media (min-width: 768px) { .hero .tile-body { padding: 2.5rem; } }
.hero h1 { max-width: 42rem; font-size: 2.25rem; line-height: 1.02; }
.hero .lead { max-width: 36rem; font-size: 1rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } .hero .lead { font-size: 1.125rem; } }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.disciplines-label { font-family: var(--font-display); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; opacity: .8; }
.two-col { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.two-col p { margin-top: .75rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.25; }
.process { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.process li { display: flex; gap: 1rem; }
.process .step { font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: var(--primary); }
.process .t { font-family: var(--font-display); font-weight: 600; }
.process .d { font-size: .875rem; color: var(--muted-foreground); }
.svc-card { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; transition: border-color .15s; }
.svc-card:hover { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.svc-card .top { display: flex; align-items: flex-start; justify-content: space-between; }
.svc-card .arrow { width: 1.25rem; height: 1.25rem; color: var(--muted-foreground); transition: transform .15s, color .15s; }
.svc-card:hover .arrow { transform: translate(2px, -2px); color: var(--primary); }
.svc-card h2 { font-size: 1.25rem; }
.svc-card p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.img-tile { min-height: 340px; }
.img-tile .tile-body { padding: 1.75rem; }
.img-tile .caption { margin-top: .5rem; max-width: 24rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.img-tile .caption.wide { max-width: 28rem; }
.cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.cta h2 { font-size: 1.875rem; }
@media (min-width: 768px) { .cta { flex-direction: row; align-items: center; } .cta h2 { font-size: 2.25rem; } }
.cta p { margin-top: .5rem; color: var(--muted-foreground); }

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .hero { grid-column: span 6; }
  .disc, .proc, .audit, .prop { grid-column: span 3; }
  .svc-card { grid-column: span 2; }
  .cta { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .hero { grid-column: span 8; grid-row: span 3; }
  .disc { grid-column: span 4; grid-row: span 1; }
  .proc { grid-column: span 4; grid-row: span 2; }
  .svc-card { grid-column: span 4; }
  .audit { grid-column: span 5; grid-row: span 2; }
  .prop { grid-column: span 7; grid-row: span 2; }
  .cta { grid-column: span 12; }
}

/* page intro */
.intro { position: relative; }
.intro .inner { position: relative; padding-top: 4rem; padding-bottom: 3rem; }
.intro h1 { margin-top: 1rem; max-width: 48rem; font-size: 2.25rem; line-height: 1.05; }
.intro .lead { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; color: var(--muted-foreground); }
@media (min-width: 768px) { .intro .inner { padding-top: 6rem; } .intro h1 { font-size: 3.75rem; } }

/* services page */
.svc-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } .span-md-2 { grid-column: span 2; } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } .span-lg-2 { grid-column: span 2; } }
.svc-full { scroll-margin-top: 6rem; }
.svc-full h2 { margin-top: 1.5rem; font-size: 1.5rem; }
.svc-full .sum { margin-top: .75rem; max-width: 36rem; color: var(--muted-foreground); }
.checks { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.checks li { display: flex; align-items: center; gap: .625rem; font-size: .875rem; }
.checks svg { color: var(--primary); }
.audit-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.audit-cta h2 { max-width: 28rem; font-size: 1.875rem; }
.audit-cta .btn { align-self: flex-start; }
@media (min-width: 768px) { .audit-cta h2 { font-size: 2.25rem; } }

/* about page */
.grid12 { display: grid; gap: 1rem; }
@media (min-width: 1024px) {
  .grid12 { grid-template-columns: repeat(12, 1fr); }
  .lg5 { grid-column: span 5; } .lg7 { grid-column: span 7; } .lg8 { grid-column: span 8; } .lg4 { grid-column: span 4; } .lg12 { grid-column: span 12; }
}
.about-img { min-height: 380px; }
.about-img .tile-body { padding: 2rem; }
.about-img p { max-width: 28rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.approach { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.approach li { display: flex; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.approach li:last-child { border-bottom: 0; padding-bottom: 0; }
.approach .step { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--primary); }
.approach .t { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.approach .d { font-size: .875rem; color: var(--muted-foreground); }
.values { display: grid; gap: 1rem; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); grid-column: span 12; } }
.values svg { color: var(--primary); }
.values h2 { margin-top: 1.25rem; font-size: 1.25rem; }
.values p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.cta-sm h2 { font-size: 1.5rem; }
@media (min-width: 768px) { .cta-sm h2 { font-size: 1.875rem; } }

/* contact page */
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form .row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label, .label { font-size: .875rem; font-weight: 500; line-height: 1; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--input); border-radius: .375rem; background: transparent; color: var(--foreground);
  font: inherit; font-size: .875rem; padding: .5rem .75rem; box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
.field input { height: 2.75rem; }
.field textarea { min-height: 60px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.chip { border: 1px solid var(--border); border-radius: 9999px; background: none; padding: .5rem 1rem; font: inherit; font-size: .875rem; color: var(--muted-foreground); cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--foreground); }
.chip[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.mail-aside { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.mail-aside h2 { margin-top: 1.25rem; font-size: 1.5rem; }
.mail-aside p { margin-top: .5rem; opacity: .8; }
.mail-aside a { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; text-underline-offset: 4px; word-break: break-all; }
.mail-aside a:hover { text-decoration: underline; }

/* 404 */
.nf { display: flex; min-height: 60vh; align-items: center; justify-content: center; padding: 0 1rem; text-align: center; }
.nf h1 { font-size: 4.5rem; font-weight: 700; }
.nf h2 { margin-top: 1rem; font-size: 1.25rem; }
.nf p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.nf .btn { margin-top: 1.5rem; background: var(--primary); color: var(--primary-foreground); }

@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; } html { scroll-behavior: auto; } }
