/* ==========================================================================
   Envimio — public site styles
   Faithful to the NOIR template: Inter light, hairline borders, black sections,
   generous whitespace. Colour is flat and used sparingly (see theme tokens).
   Brand tokens are overridden at runtime from Design → Theme (#theme-css).
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* brand (overridden by theme) */
  --primary: #ff4b1f; --accent: #2a4bff; --sun: #ffc21a; --mint: #00a878; --sky: #4aa3ff; --ink: #0a0a0a;
  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 4px; --radius-sm: 4px; --btn-radius: 100px; --container: 1440px; --head-weight: 300;
  /* neutrals — straight from the template */
  --black: var(--ink); --white: #fff;
  --gray-100: #f5f5f5; --gray-200: #e8e8e8; --gray-300: #d4d4d4; --gray-400: #a3a3a3; --gray-500: #737373;
  --gray-600: #525252; --gray-700: #404040; --gray-800: #262626; --gray-900: #171717;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 80px; --pad-x: 80px;
}

/* a colour scope: any element with .c-<name> gets --c (flat fill) and --c-ink (readable text on it) */
.c-primary { --c: var(--primary); --c-ink: #fff; } .c-accent { --c: var(--accent); --c-ink: #fff; } .c-sun { --c: var(--sun); --c-ink: var(--ink); }
.c-mint { --c: var(--mint); --c-ink: #fff; } .c-sky { --c: var(--sky); --c-ink: var(--ink); }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--white); color: var(--ink); line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--primary); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 3000; }
.skip:focus { left: 8px; }
.ico { flex: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ---------- typography ---------- */
.hero-title, .sec-title, .ph-title, .split-title, .cta-title, .feat-title, .step-title, .svc-name, .icard-title, .work-name, .tquote blockquote {
  font-family: var(--font-head); font-weight: var(--head-weight);
}
.hero-title strong, .sec-title strong, .ph-title strong, .split-title strong, .cta-title strong { font-weight: min(calc(var(--head-weight) + 300), 700); }
/* template: <em> is italic + muted. Here it carries the one brand colour. */
.hero-title em, .sec-title em, .ph-title em, .split-title em, .cta-title em { font-style: italic; font-weight: var(--head-weight); color: var(--primary); }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 70%, transparent) 62%); }
.grad { color: var(--primary); }

.eyebrow, .hero-label { display: flex; align-items: center; gap: 12px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--gray-400); margin-bottom: 24px; }
.eyebrow::before, .hero-label::before { content: ''; width: 40px; height: 1px; background: var(--gray-300); }
.eyebrow.is-center { justify-content: center; }

/* ---------- section scaffolding ---------- */
.blk { position: relative; }
.pad-none { padding: 0; } .pad-s { padding: 48px 0; } .pad-m { padding: 96px 0; } .pad-l { padding: 160px 0; } .pad-xl { padding: 200px 0; }
.bg-soft { background: var(--gray-100); }
.bg-ink { background: var(--ink); } .bg-primary { background: var(--primary); } .bg-accent { background: var(--accent); }
.bg-sun { background: var(--sun); } .bg-mint { background: var(--mint); } .bg-sky { background: var(--sky); }
.bg-ink, .bg-primary, .bg-accent, .bg-mint { color: #fff; --muted: var(--gray-500); }
.bg-ink .sec-text, .bg-ink .step-text { color: var(--gray-500); }
.bg-ink .eyebrow { color: var(--gray-500); } .bg-ink .eyebrow::before { background: var(--gray-700); }
.bg-primary .eyebrow, .bg-accent .eyebrow, .bg-mint .eyebrow { color: rgba(255,255,255,.75); } .bg-primary .eyebrow::before, .bg-accent .eyebrow::before, .bg-mint .eyebrow::before { background: rgba(255,255,255,.45); }
.bg-sun .eyebrow, .bg-sky .eyebrow { color: rgba(10,10,10,.6); } .bg-sun .eyebrow::before, .bg-sky .eyebrow::before { background: rgba(10,10,10,.3); }
.bg-primary .sec-text, .bg-accent .sec-text, .bg-mint .sec-text, .bg-primary .ph-text, .bg-accent .ph-text, .bg-mint .ph-text { color: rgba(255,255,255,.8); }
.bg-sun .sec-text, .bg-sky .sec-text, .bg-sun .ph-text, .bg-sky .ph-text { color: rgba(10,10,10,.7); }
.bg-ink em, .bg-primary em, .bg-accent em, .bg-mint em { color: inherit; opacity: .6; }
.bg-sun em, .bg-sky em { color: inherit; opacity: .6; }
.bg-ink .btn-primary { background: #fff; color: var(--ink); } .bg-ink .btn-primary:hover { background: var(--gray-200); }
.bg-ink .btn-secondary, .bg-primary .btn-secondary, .bg-accent .btn-secondary, .bg-mint .btn-secondary { color: #fff; border-color: rgba(255,255,255,.35); } .bg-ink .btn-secondary:hover, .bg-primary .btn-secondary:hover, .bg-accent .btn-secondary:hover, .bg-mint .btn-secondary:hover { border-color: #fff; }
.bg-primary .btn-primary, .bg-accent .btn-primary, .bg-mint .btn-primary { background: #fff; color: var(--ink); }

.sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; margin-bottom: 100px; }
.sec-head.is-center { flex-direction: column; align-items: center; text-align: center; }
.sec-title { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -.03em; max-width: 600px; }
.is-center-title { text-align: center; margin: 0 auto 64px; }
.sec-text { max-width: 380px; font-size: .95rem; line-height: 1.7; color: var(--gray-500); text-align: right; }
.sec-more { margin-top: 64px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--gray-300); padding-bottom: 3px; transition: gap .3s var(--transition), border-color .3s, color .3s; }
.link-arrow:hover { gap: 16px; border-color: var(--primary); color: var(--primary); }
.empty-note { padding: 40px; text-align: center; color: var(--gray-400); border: 1px dashed var(--gray-300); grid-column: 1/-1; }

/* ---------- buttons (template) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; font: 500 .85rem/1.2 var(--font-body); letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; border-radius: var(--btn-radius); transition: all .3s var(--transition); cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 28px; font-size: .875rem; }
.btn-primary, .btn-dark { background: var(--ink); color: #fff; } .btn-primary:hover, .btn-dark:hover { background: var(--gray-800); }
.btn-accent { background: var(--primary); color: #fff; } .btn-accent:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--gray-300); } .btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: var(--gray-100); color: var(--ink); } .btn-ghost:hover { background: var(--gray-200); }
.btn-white { background: #fff; color: var(--ink); } .btn-white:hover { background: var(--gray-200); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row.is-center { justify-content: center; }

/* ---------- announcement + header (template) ---------- */
.announce { background: var(--ink); color: #fff; font-size: .8rem; }
.announce.c-primary, .announce.c-accent, .announce.c-mint { background: var(--c); } .announce.c-sun, .announce.c-sky { background: var(--c); color: var(--ink); }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.announce a { display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

.header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid transparent; transition: border-color .4s ease; }
.header.scrolled { border-bottom-color: var(--gray-200); }
.header-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); text-decoration: none; position: relative; z-index: 1001; font-family: var(--font-head); }
.logo img { height: 28px; width: auto; display: block; }
.logo-dot { display: inline-block; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-left: 2px; vertical-align: super; font-size: 0; }
.nav { display: flex; align-items: center; align-self: stretch; gap: 48px; }
.nav-list { display: flex; list-style: none; gap: 40px; align-items: stretch; align-self: stretch; }
.nav-item { display: flex; align-items: center; }
.nav-item.is-dropdown { position: relative; }
.nav-link { font-size: .875rem; font-weight: 400; color: var(--gray-600); text-decoration: none; letter-spacing: .01em; transition: color .3s ease; cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 8px 0; background: none; border: 0; height: 100%; }
.nav-link:hover, .nav-item:hover > .nav-link, .nav-item.open > .nav-link, .nav-link[aria-current] { color: var(--ink); }
.nav-link .caret { width: 10px; height: 10px; transition: transform .3s var(--transition); }
.nav-item:hover .caret, .nav-item.open .caret { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 28px; }
.nav-secondary { font-size: .875rem; color: var(--gray-600); text-decoration: none; } .nav-secondary:hover { color: var(--ink); }
.nav-cta { font-size: .875rem; }

/* mega menu (template: two roomy columns, big links, hairlines) */
.mega, .dropdown { position: absolute; top: 100%; background: #fff; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .4s var(--transition); z-index: 5; }
.nav-item:hover > .mega, .nav-item.open > .mega, .nav-item:hover > .dropdown, .nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.mega { left: 0; right: 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.mega-inner { max-width: var(--container); margin: 0 auto; padding: 60px var(--pad-x); display: grid; gap: 80px; }
.mega-inner.mega-cols-1 { grid-template-columns: 1fr; } .mega-inner.mega-cols-2 { grid-template-columns: 1fr 1fr; }
.mega-inner.mega-cols-3 { grid-template-columns: repeat(3, 1fr); } .mega-inner.mega-cols-4 { grid-template-columns: repeat(4, 1fr); }
.mega-title { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--gray-400); margin-bottom: 32px; }
.mega-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mega-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--gray-100); transition: all .3s ease; }
.mega-link:hover { padding-left: 12px; color: var(--gray-600); }
.mega-txt { display: grid; line-height: 1.35; flex: 1; } .mega-txt b { font-size: 1.25rem; font-weight: 400; letter-spacing: -.01em; } .mega-txt small { color: var(--gray-500); font-size: .8rem; margin-top: 2px; }
.mega-go { opacity: 0; transform: translateX(-10px); transition: all .3s var(--transition); color: var(--gray-400); } .mega-link:hover .mega-go { opacity: 1; transform: none; }
.mega-text { font-size: .95rem; line-height: 1.7; color: var(--gray-500); margin-bottom: 32px; }
.mega-btns { display: flex; gap: 16px; margin-top: 40px; } .mega-text + .mega-btns { margin-top: 0; }
.mega-card { display: flex; align-items: stretch; margin-bottom: 32px; text-decoration: none; background: var(--c, var(--primary)); color: var(--c-ink, #fff); border-radius: var(--radius); overflow: hidden; min-height: 120px; transition: transform .4s var(--transition); }
.mega-card:hover { transform: translateY(-2px); }
.mega-card-img { width: 36%; position: relative; overflow: hidden; background: rgba(0,0,0,.12); } .mega-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mega-card-body { padding: 24px; display: grid; align-content: center; gap: 4px; flex: 1; } .mega-card-body b { font-size: 1.1rem; font-weight: 500; } .mega-card-body small { opacity: .85; font-size: .85rem; line-height: 1.5; }
.mega-bottom { max-width: var(--container); margin: 0 auto; padding: 24px var(--pad-x); display: flex; align-items: center; gap: 48px; border-top: 1px solid var(--gray-100); }
.mega-bottom-title { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--gray-400); }
.mega-bottom a { display: flex; gap: 10px; text-decoration: none; } .mega-bottom a span { display: grid; line-height: 1.3; } .mega-bottom a b { font-size: .9rem; font-weight: 500; } .mega-bottom a small { color: var(--gray-500); font-size: .78rem; } .mega-bottom a:hover b { color: var(--primary); }
.dropdown { left: -20px; min-width: 260px; padding: 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.dropdown ul { list-style: none; } .dropdown a { display: grid; padding: 12px 16px; text-decoration: none; line-height: 1.35; } .dropdown a:hover { background: var(--gray-100); } .dropdown b { font-weight: 500; font-size: .9rem; } .dropdown small { color: var(--gray-500); font-size: .78rem; }

/* mobile menu (template) */
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1002; background: none; border: none; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: all .3s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); } .menu-toggle.active span:nth-child(2) { opacity: 0; } .menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 1001; background: #fff; padding: 100px 40px 40px; overflow-y: auto; display: none; flex-direction: column; justify-content: center; transform: translateY(-100%); transition: transform .5s var(--transition); }
.mobile-menu.active { transform: none; }
.m-link, .m-group > summary { display: flex; justify-content: space-between; align-items: center; font-size: 2rem; font-weight: 300; color: var(--ink); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--gray-200); letter-spacing: -.02em; list-style: none; cursor: pointer; font-family: var(--font-head); }
.m-group > summary::-webkit-details-marker { display: none; } .m-group[open] > summary .ico { transform: rotate(180deg); }
.m-sub { display: block; padding: 12px 0 12px 16px; color: var(--gray-500); text-decoration: none; font-size: 1.05rem; }
.m-cta { margin-top: 40px; width: 100%; }

/* ---------- hero (template) ---------- */
.hero { display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-h-tall { min-height: calc(100vh - var(--header-h)); }
.hero-h-auto { padding: 40px 0; }
.hero-content { padding-top: 80px; padding-bottom: 80px; }
.hero-title { font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: 1.05; letter-spacing: -.04em; max-width: 1000px; margin-bottom: 48px; }
.hero-text { max-width: 420px; font-size: 1.05rem; line-height: 1.7; color: var(--gray-500); font-weight: 300; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-top: 60px; }
.hero-actions { display: grid; gap: 32px; }
.hero-scroll { display: flex; align-items: center; gap: 12px; font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gray-400); animation: float 3s ease-in-out infinite; }
.hero-scroll .line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--gray-300), transparent); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.hero--center .hero-copy, .hero--center .hero-bottom { text-align: center; }
.hero--center .hero-label { justify-content: center; } .hero--center .hero-title { margin-left: auto; margin-right: auto; }
.hero--center .hero-bottom { flex-direction: column; align-items: center; } .hero--center .hero-text { margin: 0 auto; } .hero--center .btn-row { justify-content: center; }
.hero--split .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; } .hero--split .hero-title { max-width: 14ch; font-size: clamp(3rem, 5.6vw, 5.5rem); } .hero--split .hero-bottom { flex-direction: column; align-items: flex-start; margin-top: 0; }
.hero-image img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; }

/* ---------- marquee (template) ---------- */
.blk-logos { border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.blk-logos.pad-s { padding: 40px 0; }
.logos-label { text-align: center; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gray-400); font-weight: 500; margin-bottom: 24px; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marq-item { display: flex; align-items: center; gap: 40px; padding: 0 40px; white-space: nowrap; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gray-400); font-weight: 500; }
.marq-logo { height: 28px; width: auto; filter: grayscale(1); opacity: .6; }
.marq-dot { width: 4px; height: 4px; background: var(--gray-300); border-radius: 50%; }
.logos-static { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 8px; }
@keyframes marquee { to { transform: translateX(-33.3333%); } }

/* ---------- services (template: joined grid, fill slides up on hover) ---------- */
.svc-grid { display: grid; gap: 0; }
.cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); }
.svc-card { display: block; padding: 60px; border: 1px solid var(--gray-200); margin: -.5px; transition: all .5s var(--transition); position: relative; overflow: hidden; cursor: pointer; text-decoration: none; color: var(--ink); isolation: isolate; }
.svc-card::before { content: ''; position: absolute; inset: 0; background: var(--c, var(--ink)); transform: translateY(100%); transition: transform .5s var(--transition); z-index: -1; }
.svc-card:hover::before { transform: none; } .svc-card:hover { border-color: var(--c, var(--ink)); }
.svc-card:hover .svc-number, .svc-card:hover .svc-name, .svc-card:hover .svc-desc, .svc-card:hover .svc-arrow { color: var(--c-ink, #fff); }
.svc-number { font-size: .7rem; font-weight: 600; color: var(--gray-300); letter-spacing: .1em; margin-bottom: 40px; transition: color .5s var(--transition); }
.svc-name { font-size: 1.75rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 16px; transition: color .5s var(--transition); }
.svc-desc { font-size: .9rem; line-height: 1.7; color: var(--gray-500); max-width: 360px; transition: color .5s var(--transition); }
.svc-arrow { margin-top: 40px; font-size: 1.5rem; line-height: 1; color: var(--gray-300); transition: all .5s var(--transition); }
.svc-card:hover .svc-arrow { transform: translateX(8px); }
.svc-grid.cols-3 .svc-card { padding: 44px; }

/* ---------- icon cards (hairline columns) ---------- */
.icard-grid { display: grid; gap: 48px; }
.icard { display: block; padding-top: 28px; border-top: 1px solid var(--ink); text-decoration: none; transition: border-color .3s; }
a.icard:hover { border-color: var(--c, var(--primary)); }
.icard-ico { display: block; color: var(--c, var(--primary)); margin-bottom: 20px; }
.icard-title { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; } .icard-text { color: var(--gray-500); font-size: .92rem; line-height: 1.7; }
.icard--outline { border: 1px solid var(--gray-200); padding: 36px; border-top-color: var(--gray-200); }

/* ---------- feature rows ---------- */
.feat-list { display: grid; gap: 140px; }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; }
.feat-row.is-rev .feat-copy { order: 2; }
.feat-title { font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.15; letter-spacing: -.03em; margin-bottom: 24px; }
.feat-text { color: var(--gray-500); font-size: 1rem; line-height: 1.8; margin-bottom: 32px; max-width: 480px; }
.feat-media { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--gray-200); }
.feat-media img { width: 100%; height: 100%; object-fit: cover; }
.feat-mock { background: var(--c, var(--ink)); color: var(--c-ink, #fff); display: grid; place-items: center; }
.feat-stat { text-align: center; } .feat-stat b { display: block; font: 300 clamp(4.5rem, 9vw, 8rem)/1 var(--font-head); letter-spacing: -.05em; } .feat-stat small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; opacity: .8; margin-top: 16px; }
.feat-chip { position: absolute; left: 20px; bottom: 20px; background: #fff; color: var(--ink); padding: 14px 20px; display: grid; line-height: 1.2; border-radius: var(--radius); } .feat-chip b { font: 300 1.8rem var(--font-head); letter-spacing: -.03em; } .feat-chip small { color: var(--gray-500); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- about / split (template) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; }
.split--right .split-media { order: 2; }
.split-media { width: 100%; aspect-ratio: 3/4; background: var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-mock { display: grid; place-items: center; background: var(--gray-200); }
.split-mock span { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gray-400); font-weight: 600; }
.split-copy { padding: 40px 0; }
.split-title { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.2; letter-spacing: -.03em; margin-bottom: 40px; }
.prose { color: var(--gray-500); font-size: 1rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.4em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-family: var(--font-head); letter-spacing: -.025em; line-height: 1.2; margin-top: 2em; font-weight: 400; }
.prose h2 { font-size: 2rem; } .prose h3 { font-size: 1.5rem; } .prose h4 { font-size: 1.15rem; font-weight: 500; }
.prose a { color: var(--ink); text-decoration-color: var(--primary); text-underline-offset: 4px; text-decoration-thickness: 1.5px; } .prose a:hover { color: var(--primary); }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li + li { margin-top: .5em; }
.prose blockquote { border-left: 2px solid var(--primary); padding-left: 24px; color: var(--ink); font-size: 1.35rem; font-weight: 300; line-height: 1.5; }
.prose code { background: var(--gray-100); padding: 2px 6px; border-radius: 3px; font-size: .9em; } .prose strong { color: var(--ink); font-weight: 600; }
.prose-narrow { max-width: 760px; margin: 0 auto; } .prose-wide { max-width: 1000px; margin: 0 auto; }
.split-copy .prose { margin-bottom: 32px; }
.checks { list-style: none; display: grid; gap: 14px; margin: 0 0 32px; } .checks li { display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; } .checks .ico { color: var(--primary); margin-top: 3px; width: 18px; height: 18px; }
.stat-row, .stats { display: grid; gap: 40px; }
.stat-row { grid-template-columns: repeat(3, 1fr); margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--gray-200); }
.stat-num { font-size: 2.5rem; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gray-400); }

/* ---------- stats block ---------- */
.stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.stats--cards .stat { padding: 48px 40px; border: 1px solid var(--gray-200); margin: -.5px; }
.stats--cards .stat-num { font-size: clamp(2.5rem, 4vw, 3.5rem); color: var(--c, var(--ink)); }
.stats--inline { gap: 40px; } .stats--inline .stat { border-top: 1px solid var(--ink); padding-top: 24px; } .stats--inline .stat-num { font-size: clamp(2.5rem, 4vw, 3.5rem); }

/* ---------- process (template) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 0; }
.step { padding: 48px 40px; border-left: 1px solid var(--gray-800); position: relative; }
.step:first-child { border-left: 0; padding-left: 0; }
.step-num { font-size: .7rem; font-weight: 600; color: var(--gray-600); letter-spacing: .1em; margin-bottom: 32px; }
.step-title { font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 16px; }
.step-text { font-size: .85rem; line-height: 1.7; color: var(--gray-500); }
.bg-sun .step, .bg-sky .step, .blk:not(.bg-ink) .step { border-left-color: var(--gray-200); } .blk:not(.bg-ink) .step-num { color: var(--gray-400); } .blk:not(.bg-ink) .step-text { color: var(--gray-500); }
.bg-primary .step, .bg-accent .step, .bg-mint .step { border-left-color: rgba(255,255,255,.25); } .bg-primary .step-num, .bg-accent .step-num, .bg-mint .step-num, .bg-primary .step-text, .bg-accent .step-text, .bg-mint .step-text { color: rgba(255,255,255,.75); }

/* ---------- work (template) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 32px; margin: -48px 0 56px; border-bottom: 1px solid var(--gray-200); }
.filter { padding: 0 0 16px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: .85rem; color: var(--gray-500); transition: color .2s, border-color .2s; }
.filter:hover { color: var(--ink); } .filter.is-active { color: var(--ink); border-color: var(--primary); }
.work-grid, .post-grid { display: grid; gap: 40px; }
.work-card { display: block; cursor: pointer; text-decoration: none; }
.work-card.is-hidden { display: none; }
.work-img { position: relative; width: 100%; aspect-ratio: 4/3; background: var(--gray-200); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--transition); }
.work-card:hover .work-img img, .work-card:hover .work-ph { transform: scale(1.05); }
.work-ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--c, var(--ink)); color: var(--c-ink, #fff); transition: transform .7s var(--transition); }
.work-ph span { font: 300 clamp(3rem, 7vw, 6rem)/1 var(--font-head); letter-spacing: -.05em; }
.work-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0); display: flex; align-items: center; justify-content: center; transition: background .5s ease; }
.work-overlay span { display: inline-flex; gap: 8px; align-items: center; color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; opacity: 0; transform: translateY(10px); transition: all .4s var(--transition); }
.work-card:hover .work-overlay { background: rgba(10,10,10,.3); } .work-card:hover .work-overlay span { opacity: 1; transform: none; }
.work-meta { display: flex; justify-content: space-between; align-items: flex-start; }
.work-name { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 4px; color: var(--ink); } .work-cat { font-size: .8rem; color: var(--gray-500); } .work-year { font-size: .8rem; color: var(--gray-400); }

/* ---------- posts ---------- */
.post-card { display: block; text-decoration: none; }
.post-img { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-200); border-radius: var(--radius); margin-bottom: 24px; } .post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--transition); } .post-card:hover .post-img img, .post-card:hover .work-ph { transform: scale(1.04); }
.post-body { display: grid; gap: 10px; } .post-body h3 { font-size: 1.35rem; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; transition: color .3s; } .post-card:hover h3 { color: var(--primary); } .post-body p { color: var(--gray-500); font-size: .9rem; line-height: 1.7; }
.post-meta, .detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gray-400); font-weight: 500; }
.detail-meta { margin-bottom: 48px; }
.tag { color: var(--ink); font-weight: 600; }
.detail-meta .tag + .tag::before, .post-meta .tag + span::before { content: ''; }

/* ---------- testimonials (template) ---------- */
.tquote { max-width: 800px; margin: 0 auto; text-align: center; }
.tq-mark { display: none; }
.tquote blockquote { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.5; letter-spacing: -.02em; margin-bottom: 48px; }
.tquote figcaption, .tcard figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; } figcaption b { display: block; font-size: .9rem; font-weight: 500; } figcaption small { color: var(--gray-500); font-size: .8rem; }
.tavatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.tinit { display: grid; place-items: center; background: var(--c, var(--ink)); color: var(--c-ink, #fff); font-weight: 600; font-size: .8rem; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; margin-top: 56px; }
.tcard { padding: 48px 40px; border: 1px solid var(--gray-200); margin: -.5px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; } .tcard blockquote { font-size: 1.1rem; font-weight: 300; line-height: 1.65; }

/* ---------- CTA (template: grey section, centred) ---------- */
.cta { text-align: center; }
.cta-title { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; letter-spacing: -.04em; margin: 0 auto 32px; max-width: 14ch; }
.cta-text { font-size: 1.05rem; color: var(--gray-500); max-width: 480px; margin: 0 auto 48px; line-height: 1.7; }
.bg-ink .cta-text { color: var(--gray-500); } .bg-primary .cta-text, .bg-accent .cta-text, .bg-mint .cta-text { color: rgba(255,255,255,.8); } .bg-sun .cta-text, .bg-sky .cta-text { color: rgba(10,10,10,.7); }

/* ---------- forms ---------- */
.formblk { display: grid; grid-template-columns: 1fr 1.1fr; gap: 120px; align-items: start; }
.formblk--center { grid-template-columns: minmax(0, 760px); justify-content: center; } .formblk--center .formblk-copy { text-align: center; } .formblk--center .eyebrow { justify-content: center; } .formblk--center .sec-text { margin: 20px auto 0; text-align: center; }
.formblk-copy .sec-title { margin-bottom: 24px; } .formblk-copy .sec-text { text-align: left; }
.formblk-card { border-top: 1px solid var(--ink); padding-top: 40px; }
.contact-list { list-style: none; display: grid; gap: 28px; margin-top: 56px; } .contact-list li { display: flex; gap: 20px; align-items: flex-start; } .contact-list .ico { color: var(--primary); margin-top: 4px; }
.contact-list small { display: block; color: var(--gray-400); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; margin-bottom: 2px; } .contact-list a, .contact-list span { text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover { color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.fld { grid-column: 1 / -1; display: grid; gap: 8px; align-content: start; border: 0; } .fld.half { grid-column: auto; }
.fld > label, .fld > legend { font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gray-500); } .fld i { color: var(--primary); font-style: normal; }
.fld input:not([type=checkbox]):not([type=radio]), .fld select, .fld textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 0; border: 0; border-bottom: 1px solid var(--gray-300); border-radius: 0; background: transparent; color: var(--ink); transition: border-color .25s; -webkit-appearance: none; appearance: none; }
.fld select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; }
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.fld.has-error input, .fld.has-error select, .fld.has-error textarea { border-bottom-color: var(--primary); } .fld .err { color: var(--primary); font-size: .8rem; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border: 1px solid var(--gray-300); border-radius: 100px; font-size: .85rem; cursor: pointer; transition: all .25s; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); }
.choice:hover { border-color: var(--ink); } .choice:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input { accent-color: var(--primary); width: 14px; height: 14px; }
.fld > .choice { border: 0; padding: 0; border-radius: 0; background: none; color: var(--gray-500); font-size: .9rem; } .fld > .choice:has(input:checked) { background: none; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 40px; }
.form-status { margin-top: 20px; font-size: .92rem; } .form-status.ok { padding: 20px 24px; border-left: 2px solid var(--mint); background: var(--gray-100); color: var(--ink); } .form-status.fail { color: var(--primary); }
.envform.is-loading .btn { opacity: .5; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 960px; } .faq-wrap .sec-head { flex-direction: column; gap: 0; margin-bottom: 64px; } .faq-wrap .sec-text { text-align: left; margin-top: 20px; }
.faq-item { border-top: 1px solid var(--gray-200); } .faq-item:last-child { border-bottom: 1px solid var(--gray-200); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0; cursor: pointer; list-style: none; font-size: 1.35rem; font-weight: 400; letter-spacing: -.02em; font-family: var(--font-head); }
.faq-item summary::-webkit-details-marker { display: none; } .faq-item summary i { flex: none; color: var(--gray-400); transition: transform .4s var(--transition), color .3s; display: grid; } .faq-item:hover summary i { color: var(--ink); }
.faq-item[open] summary i { transform: rotate(135deg); color: var(--primary); }
.faq-a { padding: 0 64px 36px 0; max-width: 760px; }

/* ---------- media blocks ---------- */
.imgblk { margin: 0 auto; } .imgblk--narrow { max-width: 760px; } .imgblk--wide { max-width: 1200px; } .imgblk--full { max-width: none; }
.imgblk-img { width: 100%; } .is-rounded .imgblk-img { border-radius: var(--radius); }
.imgblk figcaption, .videoblk figcaption { color: var(--gray-400); font-size: .8rem; margin-top: 14px; }
.imgblk-ph { display: grid; place-items: center; gap: 8px; aspect-ratio: 16/7; border: 1px dashed var(--gray-300); color: var(--gray-400); align-content: center; justify-items: center; font-size: .85rem; }
.videoblk { max-width: 1100px; margin: 0 auto; } .video-frame { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--ink); } .video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; } .video-frame .imgblk-ph { height: 100%; border: 0; color: #fff; }
.spacer { display: flex; align-items: center; } .spacer hr { width: 100%; border: 0; border-top: 1px solid var(--gray-200); }
.html-note { display: flex; gap: 8px; align-items: center; color: var(--gray-400); font-size: .8rem; margin-bottom: 8px; } .html-preview { padding: 16px; border: 1px dashed var(--gray-300); font: .8rem ui-monospace, monospace; color: var(--gray-500); }

/* ---------- page header & detail pages ---------- */
.blk-pageHeader { border-bottom: 1px solid var(--gray-200); }
.blk-pageHeader.bg-ink, .blk-pageHeader.bg-primary, .blk-pageHeader.bg-accent { border-bottom: 0; }
.ph-center { text-align: center; } .ph-center .eyebrow { justify-content: center; } .ph-center .ph-text { margin-left: auto; margin-right: auto; } .ph-center .ph-title { margin-left: auto; margin-right: auto; }
.ph-title { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.05; letter-spacing: -.04em; max-width: 14ch; margin-bottom: 32px; }
.ph-text { max-width: 560px; font-size: 1.05rem; color: var(--gray-500); line-height: 1.7; font-weight: 300; }
.crumbs { display: flex; gap: 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gray-400); margin-bottom: 48px; } .crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.detail.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 100px; align-items: start; }
.detail-cover { background: var(--gray-200); border-radius: var(--radius); overflow: hidden; margin-bottom: 64px; } .detail-cover img { width: 100%; } .detail-cover.is-wide img { max-height: 640px; object-fit: cover; }
.detail-stats { margin-bottom: 72px; }
.aside-card { position: sticky; top: calc(var(--header-h) + 32px); padding: 36px; border: 1px solid var(--gray-200); } .aside-card h4 { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--gray-400); margin-bottom: 24px; } .aside-card .btn { width: 100%; }
.nf { text-align: center; } .nf-code { font: 300 clamp(6rem, 18vw, 14rem)/1 var(--font-head); letter-spacing: -.06em; color: var(--primary); } .nf .ph-title, .nf .ph-text { margin-left: auto; margin-right: auto; } .nf .btn-row { justify-content: center; margin-top: 40px; }

/* ---------- footer (template) ---------- */
.footer { padding: 80px 0 40px; background: var(--ink); color: #fff; }
.footer .logo { color: #fff; } .footer .logo-dot { background: var(--primary); }
.footer-top { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--gray-800); }
.footer-brand p { font-size: .9rem; line-height: 1.7; color: var(--gray-500); max-width: 300px; margin-top: 20px; }
.footer-contact { display: grid; gap: 4px; margin-top: 24px; } .footer-contact a { color: var(--gray-400); text-decoration: none; font-size: .85rem; } .footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap; } .footer-social a { font-size: .8rem; color: var(--gray-500); text-decoration: none; transition: color .3s; } .footer-social a:hover { color: #fff; }
.footer-col h4 { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--gray-500); margin-bottom: 24px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; } .footer-col a { font-size: .85rem; color: var(--gray-400); text-decoration: none; transition: color .3s ease; } .footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; font-size: .75rem; color: var(--gray-600); } .footer-legal { display: flex; gap: 24px; flex-wrap: wrap; } .footer-legal a { color: inherit; text-decoration: none; } .footer-legal a:hover { color: #fff; }

/* ---------- cursor (template) ---------- */
.cursor-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transition: transform .15s ease, opacity .15s; mix-blend-mode: difference; display: none; left: 0; top: 0; }
@media (min-width: 1025px) and (pointer: fine) { body[data-cursor] .cursor-dot { display: block; } }

/* ---------- animation (template) ---------- */
html.js .fade-in { opacity: 0; transform: translateY(40px); transition: all .8s var(--transition); }
html.js .fade-in.visible { opacity: 1; transform: none; }
.fade-in-delay-1 { transition-delay: .1s !important; } .fade-in-delay-2 { transition-delay: .2s !important; } .fade-in-delay-3 { transition-delay: .3s !important; } .fade-in-delay-4 { transition-delay: .4s !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html.js .fade-in { opacity: 1; transform: none; } }

/* ---------- responsive (template breakpoints) ---------- */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
  .mega-inner { padding: 40px; gap: 40px; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } .svc-grid.cols-2 { grid-template-columns: 1fr; }
  .work-grid, .post-grid { gap: 24px; } .split, .feat-row { gap: 60px; } .steps { grid-template-columns: repeat(2, 1fr); } .step { border-bottom: 1px solid var(--gray-800); } .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } .formblk { grid-template-columns: 1fr; gap: 56px; } .detail.has-aside { grid-template-columns: 1fr; gap: 48px; } .aside-card { position: static; }
  .hero--split .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 980px) { .nav { display: none; } .menu-toggle { display: flex; } .mobile-menu { display: flex; } .mobile-menu:not(.active) { visibility: hidden; } body.menu-open { overflow: hidden; } }
@media (max-width: 768px) {
  :root { --pad-x: 24px; --header-h: 72px; }
  .hero-title { font-size: 2.8rem; } .hero-bottom { flex-direction: column; gap: 40px; align-items: flex-start; }
  .pad-l { padding: 100px 0; } .pad-xl { padding: 120px 0; } .pad-m { padding: 64px 0; }
  .sec-head { flex-direction: column; gap: 24px; margin-bottom: 56px; } .sec-text { text-align: left; }
  .cols-2, .cols-3, .cols-4, .work-grid, .post-grid, .icard-grid { grid-template-columns: 1fr; } .svc-card, .svc-grid.cols-3 .svc-card { padding: 40px 24px; }
  .feat-row, .split { grid-template-columns: 1fr; } .feat-row.is-rev .feat-copy { order: 0; } .split--right .split-media { order: 0; } .feat-list { gap: 80px; }
  .steps { grid-template-columns: 1fr; } .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--gray-800); } .step:first-child { border-top: 0; }
  .stat-row { gap: 24px; } .footer-top { grid-template-columns: 1fr; gap: 40px; } .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
  .form-grid { grid-template-columns: 1fr; } .fld.half { grid-column: 1 / -1; } .faq-a { padding-right: 0; } .faq-item summary { font-size: 1.15rem; } .hide-mobile { display: none !important; }
  .btn-row { flex-direction: column; align-items: stretch; } .cta .btn-row { align-items: center; } .mega-bottom { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 769px) { .hide-desktop { display: none !important; } }
.fld > label.choice { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 400; }
