/* Layout: white top bar, warm grey page, centered sections, big rounded white cards, lime pill buttons */
:root {
  --bg: #f4f4f1;
  --white: #ffffff;
  --ink: #111111;
  --sub: #555555;
  --line: #e4e4df;
  --lime: #7df05b;
  --lime-dark: #5fd93d;
  --stage: #b9b9b9;
  --peach: #e9b88f;
  --radius: 28px;
  --max: 1200px;
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; font-weight: 500; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.wrap {
  width: 100%; max-width: calc(var(--max) + 32px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2a2a2a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* Header */
.header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-style: italic; font-size: 24px; letter-spacing: -.02em; }
.logo-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); border: 2.5px solid var(--ink); font-style: normal; font-size: 20px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { padding: 10px 16px; font-weight: 600; font-size: 15px; border-radius: 999px; transition: background .2s; }
.nav a:not(.btn):hover { background: var(--bg); }
.nav .btn { margin-left: 10px; padding: 11px 26px; }
.menu-btn { display: none; flex-shrink: 0; margin-left: 4px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.logo { flex-shrink: 0; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s, top .25s; }
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 28px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.header-cta { display: none; margin-left: auto; padding: 10px 24px; }

/* Type */
h1 { font-size: clamp(2.2rem, 5.6vw, 4.3rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
.sub { color: var(--sub); font-size: 1.15rem; max-width: 40em; margin-inline: auto; }
.center { text-align: center; }

/* Hero */
.hero { padding: calc(var(--head-h) + 84px) 0 24px; }
.hero h1 { max-width: 15em; margin-inline: auto; }
.hero .sub { margin-top: 22px; }
.stage {
  position: relative; width: 100%; margin-top: 56px; border-radius: 36px; overflow: hidden; aspect-ratio: 16 / 8.2; min-height: 340px;
  background:
    repeating-radial-gradient(ellipse at 15% 120%, #d8d8d8 0 16px, #9c9c9c 16px 34px);
  display: grid; place-items: center; perspective: 1400px;
}
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.18)); pointer-events: none; }
.screen {
  position: relative; z-index: 1; width: min(640px, 82%); aspect-ratio: 16 / 10; border-radius: 16px; background: #1c1c1e;
  box-shadow: 0 40px 70px rgba(0,0,0,.45); transform: rotateX(18deg) rotateY(-16deg) rotateZ(4deg);
  padding: 14px; display: grid; grid-template-columns: 22% 1fr; gap: 12px; color: #d8d8d8; font-size: 10px; font-weight: 600;
}
.screen .side { display: grid; align-content: start; gap: 8px; }
.screen .side i { display: block; height: 8px; border-radius: 4px; background: #3a3a3d; }
.screen .side i:first-child { width: 60%; background: var(--lime); }
.screen .main { display: grid; gap: 10px; grid-template-rows: auto 1fr auto; min-width: 0; }
.screen .banner { border-radius: 8px; background: var(--peach); color: #3b2a1a; padding: 10px 12px; font-weight: 700; }
.screen .banner b { display: block; font-size: 15px; font-weight: 800; }
.screen .chart { border-radius: 8px; background: #26262a; padding: 10px; display: flex; align-items: flex-end; gap: 6px; }
.screen .chart i { flex: 1; border-radius: 3px 3px 0 0; background: #8a4a3a; }
.screen .chart i:nth-child(3n) { background: var(--lime); }
.screen .rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.screen .rows span { border-radius: 6px; background: #2e2e32; padding: 6px 8px; }

/* Sections */
.section { padding: 100px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .sub { margin-top: 16px; }

/* About */
.about-card { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); text-align: center; }
.about-card p { max-width: 44em; margin: 18px auto 0; color: var(--sub); font-size: 1.1rem; }
.about-card .btn { margin-top: 30px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.products { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; height: 100%; }
.card p { color: var(--sub); font-size: .95rem; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); color: var(--ink); margin-bottom: 6px; font-weight: 800; font-size: 15px;
  transition: background .25s, color .25s, transform .25s;
}
.card-icon svg { width: 24px; height: 24px; }
a.card:hover .card-icon { background: var(--lime); transform: translateY(-2px); }
a.card { transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,.08); }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.card .more i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); font-style: normal; transition: transform .25s; }
.card .more i svg { width: 16px; height: 16px; }
a.card:hover .more i { transform: translateX(5px); }

/* Check list */
.checks { display: grid; gap: 28px; }
.checks > li { display: grid; grid-template-columns: 32px 1fr; gap: 6px 16px; align-items: start; position: relative; }
.checks > li::before {
  content: ""; width: 32px; height: 32px; border-radius: 50%; margin-top: 2px; grid-row: 1 / span 2;
  background:
    linear-gradient(var(--lime), var(--lime)) center / 0 0 no-repeat,
    var(--ink);
}
.checks > li::after {
  content: ""; position: absolute; width: 11px; height: 6px; border-left: 3px solid var(--lime); border-bottom: 3px solid var(--lime);
  transform: translate(10px, 12px) rotate(-45deg);
}
.checks h3 { font-size: 1.3rem; }
.checks p { color: var(--sub); }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why .checks { gap: 22px; }
.why h2 { text-align: left; }
.why .sub { margin: 16px 0 34px; }

/* Guarantee cards */
.licenses { grid-template-columns: repeat(3, 1fr); }
.license h3 { font-size: 1.25rem; }
.license dl { margin-top: 10px; display: grid; gap: 14px; }
.license dt { font-size: 13px; color: var(--sub); font-weight: 600; }
.license dd { font-weight: 700; }
.badge { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--lime); font-weight: 700; font-size: 13px; }

/* Work carousel */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.work-head h2 { text-align: left; }
.work-head .sub { margin: 14px 0 0; }
.ctrl { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; font-size: 20px; cursor: pointer; transition: background .2s, color .2s; }
.round:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.round:disabled { opacity: .3; cursor: default; }
.track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(16px, calc((100% - var(--max)) / 2)) 24px;
  scroll-padding-inline: max(16px, calc((100% - var(--max)) / 2));
}
.track::-webkit-scrollbar { display: none; }
.project { flex: 0 0 min(380px, 84%); scroll-snap-align: start; background: var(--white); border-radius: var(--radius); padding: 14px 14px 28px; }
.shot { height: 210px; border-radius: 18px; background-color: #111111; background-size: cover; background-position: center; margin-bottom: 20px; }
.project h3, .project p, .project .tags, .project .links { margin-inline: 12px; }
.project p { margin-top: 8px; color: var(--sub); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 4px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; }
.links { display: flex; gap: 22px; margin-top: 18px; font-weight: 700; font-size: 15px; }
.links a { border-bottom: 2px solid var(--lime); }
.links a:hover { background: var(--lime); }

/* Where I work (skills) */
.works { display: grid; gap: 40px; min-width: 0; }
.works .stage { margin-top: 0; aspect-ratio: 16 / 9; min-width: 0; min-height: 0; }
.works .checks { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; grid-column: 2; }
.pills li { padding: 5px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* Facts band */
.facts { background: var(--white); border-radius: var(--radius); padding: 48px clamp(20px, 4vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.facts dt { color: var(--sub); font-weight: 600; font-size: 15px; }
.facts dd { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; order: -1; }
.facts div { display: flex; flex-direction: column; gap: 4px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact h2 { text-align: left; }
.contact .sub { margin: 16px 0 0; }
.form { background: var(--white); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: 14px; }
.form input, .form textarea { font: inherit; font-weight: 500; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.form [aria-invalid="true"] { border-color: #c62a2f; }
.form .btn { justify-self: start; }
.form-status { min-height: 1.4em; font-weight: 600; font-size: 14px; }
.form-status.ok { color: #1c7a28; }
.form-status.err { color: #c62a2f; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form select {
  font: inherit; font-weight: 500; padding: 14px 44px 14px 16px; border-radius: 16px; border: 2px solid var(--line);
  background: var(--bg); color: var(--ink); width: 100%; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form select:focus { outline: none; border-color: var(--ink); background-color: var(--white); }

/* Page intro header (subpages) */
.page-hero { padding: calc(var(--head-h) + 84px) 0 24px; text-align: center; }
.page-hero h1 { max-width: 20em; margin-inline: auto; }
.page-hero .sub { margin-top: 22px; max-width: 42em; margin-inline: auto; }

/* Simple check list (quote page service overview) */
.check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.check-list li { position: relative; padding-left: 20px; font-size: .95rem; color: var(--sub); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 2px var(--ink) inset;
}

/* CTA */
.cta { background: var(--ink); color: var(--white); border-radius: 36px; padding: clamp(48px, 8vw, 96px) 24px; text-align: center; }
.cta .sub { color: #bdbdbd; margin-top: 16px; }

/* Case study pages */
.case-hero { padding: calc(var(--head-h) + 84px) 0 40px; }
.case-hero h1 { margin-top: 18px; max-width: none; margin-inline: 0; }
.case-hero .sub { text-align: left; margin: 12px 0 0; max-width: 42em; margin-inline: 0; }

.case-meta { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 36px; }
.case-meta-item { display: flex; flex-direction: column; gap: 6px; }
.case-meta-label { font-size: 13px; color: var(--sub); font-weight: 600; }
.case-meta-value { font-weight: 800; font-size: 17px; }

.case-hero-image { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.case-hero-image img { width: 100%; height: auto; display: block; }

.case-section { padding: 64px 0; }
.case-section.alt { background: var(--white); }
.case-section h2 { margin-bottom: 20px; }
.case-section .lede { color: var(--sub); font-size: 1rem; line-height: 1.75; max-width: 50em; }
.case-section .lede p { margin-bottom: 16px; }
.case-section .lede p:last-child { margin-bottom: 0; }

.case-highlight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.case-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }

.facts.cols-3 { grid-template-columns: repeat(3, 1fr); }
.facts.spaced { margin-top: 32px; }

.testimonial { font-style: italic; font-size: 1.05rem; color: var(--ink); line-height: 1.7; margin: 0; }
.testimonial-author { margin-top: 14px; font-weight: 700; color: var(--sub); font-size: .9rem; font-style: normal; }

.case-timeline { margin-top: 32px; display: flex; flex-direction: column; max-width: 50em; }
.case-timeline-item { position: relative; padding-left: 32px; padding-bottom: 32px; }
.case-timeline-item::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--lime); border: 2px solid var(--ink);
}
.case-timeline-item::after { content: ""; position: absolute; left: 5px; top: 20px; width: 2px; height: calc(100% - 12px); background: var(--line); }
.case-timeline-item:last-child { padding-bottom: 0; }
.case-timeline-item:last-child::after { display: none; }
.case-timeline-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.case-timeline-item p { color: var(--sub); font-size: .95rem; }

/* Legal pages */
.legal-page { max-width: 800px; margin: 0 auto; padding: calc(var(--head-h) + 84px) 24px 90px; }
.legal-header { text-align: center; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.last-updated { margin-top: 10px; color: var(--sub); font-size: 14px; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 { font-size: 1.4rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal-section h3 { font-size: 1.05rem; margin: 20px 0 10px; font-weight: 800; }
.legal-section p { color: var(--sub); font-size: .95rem; line-height: 1.75; margin-bottom: 14px; }
.legal-section ul { list-style: none; margin: 0 0 14px; }
.legal-section li { position: relative; padding-left: 20px; color: var(--sub); font-size: .95rem; line-height: 1.75; margin-bottom: 8px; }
.legal-section li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 2px var(--ink) inset;
}
.legal-section strong { color: var(--ink); }
.legal-highlight { padding: 20px 24px; margin: 22px 0; background: rgba(125, 240, 91, .14); border: 2px solid var(--lime); border-radius: 16px; }
.legal-highlight p { margin-bottom: 0; color: var(--ink); }
.legal-warning { padding: 20px 24px; margin: 22px 0; background: rgba(198, 42, 47, .06); border: 2px solid rgba(198, 42, 47, .35); border-radius: 16px; }
.legal-warning p { margin-bottom: 0; color: #c62a2f; }
.legal-contact { padding: 28px; margin-top: 36px; }
.legal-contact h3 { margin-top: 0; }
.legal-contact p { margin-bottom: 0; }
.legal-section a, .legal-contact a {
  text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.legal-section a:hover, .legal-contact a:hover { background: var(--lime); }

/* Footer */
.footer { padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer p { color: var(--sub); max-width: 26em; margin-top: 16px; font-size: .95rem; }
.footer h3 { font-size: 1rem; margin-bottom: 14px; }
.footer li + li { margin-top: 8px; }
.footer li a { color: var(--sub); font-weight: 600; font-size: .95rem; }
.footer li a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--sub); font-size: 14px; max-width: none !important; }

/* Responsive */
@media (max-width: 1020px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .licenses { grid-template-columns: 1fr; }
  .why, .contact { grid-template-columns: 1fr; gap: 40px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .case-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .header-cta { display: inline-flex; }
  .nav {
    position: fixed; top: calc(var(--head-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    background: var(--white); padding: 12px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0,0,0,.1);
    transform: translateY(-130%); transition: transform .3s; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 17px; }
  .nav .btn { display: none; }
  .hero, .page-hero, .case-hero { padding-top: calc(var(--head-h) + 56px); }
  .legal-page { padding-top: calc(var(--head-h) + 56px); }
  .case-highlight-grid { grid-template-columns: 1fr; }
  .case-meta { gap: 24px; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .products { grid-template-columns: 1fr; }
  .works .checks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .stage { aspect-ratio: 4 / 3.4; border-radius: 28px; }
  .screen { width: 92%; font-size: 8px; }
  .form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .facts { padding: 32px 16px; }
  .facts.cols-3 { grid-template-columns: 1fr; }
  .case-features-grid { grid-template-columns: 1fr; }
  .btn { padding: 13px 24px; }
}
@media (max-width: 480px) {
  .header-cta.compact { padding: 10px 14px; }
  .header-cta.compact .cta-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
