/* Errgo Created Systems — shared site styles.
   Layout: black canvas, floating pill header, oversized tight headlines with one green word,
   two-column section intros, bordered dark panels. Green is only for emphasis and actions.
   Anything marked .ph / .ph-visual / .ph-badge is placeholder content waiting for real material. */
:root {
  --bg: #050605;
  --surface: #0f1110;
  --surface-2: #161a17;
  --text: #f3f5f2;
  --muted: #8f9890;
  --line: #222823;
  --green: #22e05f;
  --green-ink: #031207;
  --green-soft: rgba(34, 224, 95, 0.09);
  --font-display: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --h-hero: clamp(2.6rem, 1.2rem + 6vw, 6rem);
  --h-page: clamp(2.6rem, 1.2rem + 5.4vw, 6.2rem);
  --h-section: clamp(2.2rem, 1.2rem + 4vw, 4.6rem);
  --h-card: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
  --wrap: 92rem;
  --inner: 78rem;
  --radius-lg: 22px;
  --radius-md: 16px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f7f5; --surface: #ffffff; --surface-2: #eef1ed; --text: #0b0d0b; --muted: #5b655d;
  --line: #dde2dc; --green: #0c9e44; --green-ink: #ffffff; --green-soft: rgba(12, 158, 68, 0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; margin: 0; }
p { margin: 0; }
.accent { color: var(--green); }
.muted { color: var(--muted); }

.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .gutter { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.inner { max-width: var(--inner); margin: 0 auto; }
.stack { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tag-green { color: var(--green); }

/* Placeholder markers */
.ph-badge {
  display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.5rem; border-radius: 999px;
  border: 1px dashed var(--green); color: var(--green); white-space: nowrap; vertical-align: middle; justify-self: start;
}
.ph { border-bottom: 1px dashed color-mix(in srgb, var(--green) 60%, transparent); }
.ph-visual {
  position: relative; display: grid; place-items: center; overflow: hidden; max-width: 100%;
  background:
    linear-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ph-bg, var(--surface-2));
}
.ph-visual > .ph-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 0.8rem; border: 1px dashed currentColor; border-radius: 999px; color: var(--ph-fg, var(--muted));
  background: color-mix(in srgb, var(--bg) 60%, transparent); text-align: center; max-width: 85%;
}
.v1 { --ph-bg: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--green) 45%, transparent), transparent 60%), var(--surface-2); }
.v2 { --ph-bg: linear-gradient(160deg, color-mix(in srgb, var(--green) 85%, #000), color-mix(in srgb, var(--green) 35%, #000)); --ph-fg: #eafff0; }
.v3 { --ph-bg: linear-gradient(200deg, #1d2a24, #0b100d); --ph-fg: #b8c7bf; }
.v4 { --ph-bg: linear-gradient(180deg, #f1f4f1, #d9e0da); --ph-fg: #3b4a40; }
.v5 { --ph-bg: radial-gradient(90% 90% at 0% 100%, color-mix(in srgb, var(--green) 30%, transparent), transparent 60%), #101512; }
.v6 { --ph-bg: linear-gradient(135deg, #0f1d16, #1b3a29 60%, #0a120d); --ph-fg: #bfe8cd; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: 600 0.95rem/1 var(--font-body); padding: 1rem 1.6rem; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-green { background: var(--green); color: var(--green-ink); }
.btn-green:hover { transform: translateY(-1px); }
.btn-line { border-color: var(--line); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--muted); }
.btn-ink { background: var(--green-ink); color: var(--green); }
.btn-ink-line { border-color: color-mix(in srgb, var(--green-ink) 35%, transparent); color: var(--green-ink); background: transparent; }
.btn-block { width: 100%; }
.circle-link {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--text); color: var(--bg); text-decoration: none; transition: transform 0.15s ease;
}
.circle-link svg { width: 16px; height: 16px; }
.circle-link:hover { transform: rotate(45deg); }

/* Header */
.header-shell { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding-block: 14px 0; }
.site-header {
  max-width: var(--wrap); margin: 0 auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0.6rem 0.6rem 1.4rem; border: 1px solid var(--line); border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.05em; }
.nav-links { display: none; gap: 2rem; }
.nav-links a { text-decoration: none; font-size: 0.92rem; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
@media (min-width: 960px) { .nav-links { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: grid; }
@media (min-width: 960px) { .menu-btn { display: none; } }
.site-header .btn { padding: 0.85rem 1.2rem; }
@media (max-width: 520px) { .site-header .btn-green { display: none; } }
.mobile-nav {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface); padding: 1rem; display: grid; gap: 0.25rem;
}
.mobile-nav a { text-decoration: none; padding: 0.8rem 1rem; border-radius: 12px; font-size: 1.1rem; font-weight: 500; }
.mobile-nav a:hover { background: var(--surface-2); }
.mobile-nav .btn { margin-top: 0.5rem; }

/* Hero (home) */
.hero { text-align: center; padding-block: clamp(5rem, 12vw, 10rem) clamp(4rem, 9vw, 7rem); }
.hero .inner { display: grid; gap: 2rem; justify-items: center; }
.hero h1 { font-size: var(--h-hero); max-width: 16ch; }
.lede { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); color: var(--muted); max-width: 46rem; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .actions { justify-content: center; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(5rem, 11vw, 9rem) clamp(4rem, 8vw, 6.5rem); border-bottom: 1px solid var(--line); }
.page-hero .inner { display: grid; gap: 2rem; justify-items: start; }
.page-hero h1 { font-size: var(--h-page); max-width: 15ch; }
.page-hero .lede { max-width: 42rem; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* Sections */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); border-bottom: 1px solid var(--line); }
.section.flush { border-bottom: 0; }
.intro { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 960px) { .intro { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.intro h2 { font-size: var(--h-section); }
.intro p { color: var(--muted); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); line-height: 1.6; max-width: 32rem; }
.section-title { font-size: var(--h-section); max-width: 18ch; }
.center { text-align: center; justify-items: center; }

/* Logo marquee */
.strip { border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: slide 40s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li { display: flex; align-items: center; padding: 1.4rem 2.2rem; border-right: 1px solid var(--line); }
.logo-ph {
  display: flex; align-items: center; gap: 0.55rem; height: 46px; padding: 0 1.1rem; border-radius: 10px;
  border: 1px dashed var(--line); color: var(--muted); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap;
}
.logo-ph::before { content: ""; width: 18px; height: 18px; border-radius: 4px; background: color-mix(in srgb, var(--green) 55%, transparent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 2.6rem 2.4rem; display: grid; gap: 0.8rem; align-content: start; border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 640px) { .stat:nth-child(odd) { border-right: 1px solid var(--line); } .stat:nth-last-child(-n+2) { border-bottom: 0; } }
@media (min-width: 1040px) { .stat { border-bottom: 0; border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; } }
.stat b { font-family: var(--font-display); font-size: clamp(3.2rem, 2.4rem + 3vw, 5.4rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.95; color: var(--green); font-variant-numeric: tabular-nums; }
.stat p { color: var(--muted); font-size: 0.92rem; max-width: 16rem; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tab { font: 500 0.92rem/1 var(--font-body); padding: 0.9rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Work cards */
.work-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.work-visual { aspect-ratio: 16 / 9; }
.work-top { position: absolute; inset: 1rem 1rem auto 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pill { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.55rem 0.85rem; border-radius: 999px; background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--text); border: 1px solid var(--line); }
.work-body { padding: 1.6rem 1.8rem 1.8rem; display: grid; gap: 1rem; align-content: start; }
.work-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.work-title h3 { font-size: var(--h-card); font-weight: 500; letter-spacing: -0.035em; }
.work-title h3 a { text-decoration: none; }
.work-title span { font-size: 0.85rem; color: var(--muted); }
.work-body > p { color: var(--muted); }
.effect { display: grid; gap: 0.3rem 2rem; border-top: 1px solid var(--line); padding-top: 1.1rem; font-size: 0.9rem; }
@media (min-width: 640px) { .effect { grid-template-columns: auto 1fr; } .effect span:last-child { text-align: right; } }
.effect span:first-child { font-weight: 600; }
.effect span:last-child { color: var(--muted); }
.work-meta { font-size: 0.88rem; color: var(--muted); }
.more { display: flex; justify-content: center; }

/* Services list */
.services { display: grid; gap: 3rem; }
@media (min-width: 1040px) { .services { grid-template-columns: 0.9fr 1.3fr; gap: 4rem; align-items: start; } .services-head { position: sticky; top: 120px; } }
.services-head { display: grid; gap: 1.5rem; }
.services-head h2 { font-size: var(--h-section); }
.services-head p { color: var(--muted); font-size: 1.15rem; max-width: 28rem; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: svc; }
.svc { counter-increment: svc; display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 0.5rem 1.25rem; padding: 2rem 1rem 2rem 0.8rem; border-bottom: 1px solid var(--line); transition: background 0.2s ease; }
.svc:hover { background: linear-gradient(90deg, var(--green-soft), transparent 75%); }
.svc::before { content: counter(svc, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding-top: 0.7rem; }
.svc-body { display: grid; gap: 0.75rem; min-width: 0; }
@media (min-width: 760px) { .svc-body { grid-template-columns: 1fr 1.15fr; gap: 2rem; } }
.svc h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; }
.svc h3 a { text-decoration: none; }
.svc p { color: var(--muted); }
.svc-icon { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.svc-icon svg { width: 17px; height: 17px; }

/* Service detail blocks */
.svc-detail { display: grid; gap: 2rem; padding-block: 3rem; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
@media (min-width: 960px) { .svc-detail { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }
.svc-detail h3 { font-size: var(--h-card); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.svc-detail .num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--green); }
.svc-detail-head { display: grid; gap: 1rem; align-content: start; }
.svc-detail-head p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .checks.two { grid-template-columns: 1fr 1fr; } }
.checks li { display: flex; gap: 0.75rem; align-items: baseline; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.checks li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--green); flex: none; transform: translateY(-1px); }

/* Generic cards grid */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } .cards.c4 { grid-template-columns: repeat(4, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 1.8rem; display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.card h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.card p { color: var(--muted); }
.card .num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--green); }
.card.green { background: var(--green); color: var(--green-ink); border-color: transparent; }
.card.green p { color: color-mix(in srgb, var(--green-ink) 80%, transparent); }

/* Testimonials */
.quotes { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 380px); gap: 1.25rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.quote-row > * { scroll-snap-align: start; }
.quote { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.quote .ph-visual { aspect-ratio: 4 / 3; }
.quote-body { padding: 1.6rem; display: grid; gap: 1.2rem; align-content: space-between; }
.quote blockquote { margin: 0; font-size: 1.1rem; line-height: 1.5; letter-spacing: -0.01em; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--green); margin-bottom: 0.6rem; }
.quote footer { display: grid; gap: 0.15rem; font-size: 0.9rem; }
.quote footer b { font-weight: 600; }
.quote footer span { color: var(--muted); }

/* Insights */
.post { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; min-width: 0; transition: border-color 0.2s ease; }
.post:hover { border-color: var(--muted); }
.post .ph-visual { aspect-ratio: 16 / 10; }
.post-body { padding: 1.5rem 1.6rem 1.7rem; display: grid; gap: 0.8rem; align-content: start; }
.post-body h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.post-body p { color: var(--muted); font-size: 0.95rem; }
.post-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.post.featured { grid-template-rows: none; }
@media (min-width: 960px) { .post.featured { grid-template-columns: 1.2fr 1fr; } .post.featured .ph-visual { aspect-ratio: auto; min-height: 100%; } }
.post.featured .post-body { padding: clamp(1.6rem, 3vw, 2.6rem); align-content: center; gap: 1.2rem; }
.post.featured h3 { font-size: var(--h-card); letter-spacing: -0.04em; line-height: 1.05; }

/* Prose (articles, policies) */
.prose-wrap { display: grid; gap: 3rem; }
@media (min-width: 1040px) { .prose-wrap { grid-template-columns: 16rem 1fr; gap: 4rem; } .toc { position: sticky; top: 120px; align-self: start; } }
.toc { display: grid; gap: 0.5rem; font-size: 0.92rem; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); }
.prose { max-width: 44rem; display: grid; gap: 1.2rem; min-width: 0; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); letter-spacing: -0.035em; margin-top: 1.5rem; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-top: 0.8rem; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); font-size: 1.05rem; line-height: 1.75; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.callout { border: 1px dashed var(--green); border-radius: var(--radius-md); padding: 1.1rem 1.3rem; background: var(--green-soft); font-size: 0.95rem; }

/* Case study */
.cs-visual { aspect-ratio: 16 / 8; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.cs-meta { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
@media (min-width: 760px) { .cs-meta { grid-template-columns: repeat(4, 1fr); } }
.cs-meta div { padding: 1.4rem 1.6rem; display: grid; gap: 0.35rem; border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 760px) { .cs-meta div { border-bottom: 0; border-right: 1px solid var(--line); } .cs-meta div:last-child { border-right: 0; } }
.cs-meta b { font-weight: 500; }
.cs-block { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .cs-block { grid-template-columns: 1fr 1.5fr; gap: 4rem; } }
.cs-block h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); }
.cs-block .prose { max-width: none; }
.gallery { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1.4fr 1fr; } }
.gallery .ph-visual { border-radius: var(--radius-lg); border: 1px solid var(--line); aspect-ratio: 4 / 3; }

/* Team */
.member { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); display: grid; min-width: 0; }
.member .ph-visual { aspect-ratio: 1 / 1; }
.member-body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: 0.4rem; }
.member-body h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; }
.member-body p { color: var(--muted); font-size: 0.92rem; }

/* Jobs */
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; gap: 0.75rem 2rem; padding-block: 1.8rem; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 860px) { .job { grid-template-columns: 1.4fr 1fr auto; } }
.job h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 500; letter-spacing: -0.035em; }
.job p { color: var(--muted); font-size: 0.95rem; }

/* Data table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
th, td { text-align: left; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { font-weight: 500; color: var(--muted); width: 36%; }

/* Contact split */
.split { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1.2fr; } }
.green-panel { background: var(--green); color: var(--green-ink); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3.4rem); display: grid; gap: 1.6rem; align-content: start; min-width: 0; }
.green-panel h2 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 5rem); letter-spacing: -0.055em; }
.green-panel p { color: color-mix(in srgb, var(--green-ink) 85%, transparent); max-width: 30rem; }
.green-panel .email { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem); font-weight: 500; letter-spacing: -0.02em; display: inline-flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; border-bottom: 2px solid currentColor; padding-bottom: 0.2rem; justify-self: start; user-select: all; }
.green-panel .ph-badge { border-color: var(--green-ink); color: var(--green-ink); }
.green-panel a:not(.btn) { color: inherit; }
.copy-btn { font: 600 0.8rem/1 var(--font-body); background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 999px; padding: 0.45rem 0.7rem; cursor: pointer; }

/* Forms */
.form { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(1.25rem, 3vw, 2.6rem); display: grid; gap: 1.1rem; min-width: 0; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; min-width: 0; }
label { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 0.98rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 0.95rem 1.1rem; width: 100%; }
input[type="file"] { padding: 0.75rem; }
input[type="checkbox"] { width: auto; accent-color: var(--green); }
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
.form-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-done { color: var(--green); font-weight: 500; }

/* CTA band */
.cta { padding-block: clamp(4.5rem, 9vw, 8rem); }
.cta-box { border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(110% 140% at 100% 0%, color-mix(in srgb, var(--green) 26%, transparent), transparent 55%), var(--surface); padding: clamp(2rem, 5vw, 4.5rem); display: grid; gap: 2rem; }
@media (min-width: 960px) { .cta-box { grid-template-columns: 1.5fr auto; align-items: end; } }
.cta-box h2 { font-size: var(--h-section); max-width: 14ch; }
.cta-box p { color: var(--muted); max-width: 34rem; margin-top: 1.2rem; font-size: 1.1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2.5rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.footer-brand { display: flex; align-items: center; gap: 1.6rem; text-decoration: none; }
.footer-brand span { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.socials { display: flex; gap: 0.6rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.socials a:hover { color: var(--text); border-color: var(--muted); }
.socials svg { width: 16px; height: 16px; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, 1fr) 1.15fr; } }
.footer-col { display: grid; gap: 0.6rem; align-content: start; font-size: 0.92rem; }
.footer-col .tag { margin-bottom: 0.4rem; }
.footer-col a, .footer-col button.linkish { text-decoration: none; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.footer-col a:hover, .footer-col button.linkish:hover { color: var(--green); }
button.linkish { font: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.newsletter { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; display: grid; gap: 0.9rem; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
@media (min-width: 700px) and (max-width: 1099px) { .newsletter { grid-column: 1 / -1; } }
.newsletter p { color: var(--muted); font-size: 0.88rem; }
.newsletter input { border-radius: 999px; }
.footer-bottom { margin-top: 3.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Cookie banner */
.cookie {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); width: min(760px, calc(100% - 32px));
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 1.2rem 1.3rem; display: grid; gap: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.cookie p { font-size: 0.85rem; color: var(--muted); padding-right: 2.5rem; }
.cookie .actions .btn { padding: 0.85rem 1.2rem; font-size: 0.88rem; }
.cookie-close { position: absolute; top: 0.9rem; right: 0.9rem; width: 34px; height: 34px; }

/* Dialog */
dialog { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); padding: 0; width: min(560px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.dialog-body { padding: 1.8rem; display: grid; gap: 1.1rem; }
.dialog-body h2 { font-size: 1.8rem; letter-spacing: -0.04em; }
.pref { display: flex; justify-content: space-between; gap: 1rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); }
.pref p { font-size: 0.88rem; color: var(--muted); }
.pref b { font-weight: 600; }

/* Chat */
.chat-fab {
  position: fixed; z-index: 35; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  right: calc(1.2rem + env(safe-area-inset-right, 0px)); bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  background: var(--green); color: var(--green-ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.chat-fab svg { width: 22px; height: 22px; }
.chat-panel {
  position: fixed; z-index: 36; right: calc(1.2rem + env(safe-area-inset-right, 0px)); bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px));
  width: min(360px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  display: grid; grid-template-rows: auto 1fr auto; max-height: min(520px, 70vh); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.chat-head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.chat-head b { font-weight: 600; }
.chat-log { padding: 1rem 1.2rem; display: grid; gap: 0.7rem; align-content: start; overflow-y: auto; font-size: 0.9rem; }
.msg { padding: 0.7rem 0.9rem; border-radius: 14px; max-width: 85%; }
.msg.bot { background: var(--surface-2); justify-self: start; }
.msg.me { background: var(--green); color: var(--green-ink); justify-self: end; }
.chat-form { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid var(--line); }
.chat-form input { border-radius: 999px; padding: 0.75rem 1rem; }
.chat-form button { flex: none; }

/* Misc */
.notfound { min-height: 60vh; display: grid; align-content: center; }
.big-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(6rem, 4rem + 10vw, 14rem); letter-spacing: -0.07em; line-height: 0.9; color: var(--green); }
.fade-in { animation: rise 0.7s ease both; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

/* Platform additions: uploaded images, preview bar, form errors */
.ph-visual > img.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-visual > img.fill { z-index: 0; }
.ph-visual > .work-top { z-index: 1; }
.logo-img { height: 30px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: 0.8; }
:root[data-theme="light"] .logo-img { filter: grayscale(1); }
.preview-bar { position: sticky; top: 0; z-index: 60; background: var(--green); color: var(--green-ink); font-size: 0.85rem; font-weight: 500; text-align: center; padding: 0.55rem 1rem; }
.preview-bar a { color: inherit; }
.form-error { color: #ff7a7a; font-weight: 500; }
:root[data-theme="light"] .form-error { color: #c62828; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
