/* Emerald Infinite: portfolio site */
:root {
  --bg: #050607;
  --bg-2: #0A0C0D;
  --panel: #0F1213;
  --ink: #F5F5F4;
  --ink-2: #A1A1AA;
  --mute: #7C7C86;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --g: #34D399;
  --g-deep: #059669;
  --g-glow: rgba(52, 211, 153, .18);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --script: "Lobster", cursive;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Fine film grain over everything; keeps the large dark fields from looking flat. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--g); color: #04110B; }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--g); color: #04110B; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; margin: 0; }
h1 em, h2 em, .p-head em { font-style: italic; color: var(--g); }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font: 600 11px/1 var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--g);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.sub { color: var(--ink-2); max-width: 620px; font-size: 17px; margin: 20px 0 0; }

.lockup { display: inline-flex; align-items: baseline; gap: .22em; white-space: nowrap; }
.lockup .em { font-family: var(--script); font-weight: 400; color: var(--ink); letter-spacing: 0; }
.lockup .wd { font: 600 max(11px, .62em)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--g); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 24px; border-radius: 999px; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn-solid { background: var(--g); color: #04110B; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); }
.btn-solid:hover { background: #5EE6B1; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(52, 211, 153, .35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--g); background: rgba(52, 211, 153, .07); }
.btn-lg { font-size: 14px; padding: 20px 34px; letter-spacing: .04em; text-transform: none; }

/* Header */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(5, 6, 7, .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .lockup { font-size: 22px; }
.nav nav { display: flex; align-items: center; gap: 32px; }
.nav nav a:not(.btn) { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 11px 20px; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 72% 46%, rgba(52, 211, 153, .13), transparent 70%),
    radial-gradient(40% 40% at 20% 90%, rgba(24, 171, 151, .08), transparent 70%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
#hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-fallback { position: absolute; z-index: -1; width: min(42vw, 520px); right: 8vw; top: 50%; transform: translateY(-50%); opacity: .9; filter: drop-shadow(0 0 60px rgba(52, 211, 153, .35)); }
.gl-on .hero-fallback { display: none; }
.hero-copy { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 80px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { font-size: clamp(46px, 7.4vw, 112px); line-height: .98; max-width: 9.5em; }
.hero h1 em { display: block; }
.lede { color: var(--ink-2); font-size: clamp(17px, 1.4vw, 19px); max-width: 520px; margin: 30px 0 38px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 34px; width: 22px; height: 36px; border: 1px solid var(--line-2); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--g); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* Industries index */
.industries { padding: clamp(100px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); }
.industries h2, .about h2, .contact h2 { font-size: clamp(36px, 5vw, 68px); line-height: 1.04; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; perspective: 1400px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 26px 24px 24px;
  background: var(--bg); text-decoration: none; overflow: hidden;
  transition: background .5s var(--ease);
}
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at var(--mx, 50%) var(--my, 0%), rgba(52, 211, 153, .16), transparent 60%); opacity: 0; transition: opacity .4s; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile:hover { background: var(--bg-2); }
.tile > * { position: relative; }
.t-num { font: 400 13px/1 var(--serif); color: var(--mute); }
.t-sector { margin-top: auto; font: 300 24px/1.15 var(--serif); color: var(--ink); }
.tile .lockup { font-size: 19px; }
.t-kind { font-size: 13px; color: var(--mute); }
.lockup-rk { font: 600 .86em/1 var(--sans); letter-spacing: -.01em; color: var(--ink); gap: 0; }
.lockup-rk .wd { font: inherit; letter-spacing: inherit; text-transform: none; color: var(--g); }
.tile-next { background: linear-gradient(160deg, rgba(52, 211, 153, .08), transparent 60%), var(--bg); }
.tile-next .t-sector { color: var(--g); font-style: italic; }
.tile-next .t-kind { color: var(--ink-2); }
.t-arrow { position: absolute; top: 22px; right: 22px; color: var(--g); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.tile:hover .t-arrow, .tile:focus-visible .t-arrow { opacity: 1; transform: none; }

/* Product sections */
.product { position: relative; padding: clamp(80px, 11vw, 160px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.product::before {
  content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; top: 50%; right: -18vw; transform: translateY(-50%);
  background: radial-gradient(closest-side, var(--g-glow), transparent); filter: blur(30px); opacity: .8; pointer-events: none;
}
.product.flip::before { right: auto; left: -18vw; }
.product-grid { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.product.flip .p-copy { order: 2; }
.product-grid > * { min-width: 0; }
.p-num { font: 400 15px/1 var(--serif); color: var(--ink); margin: 0 0 28px; }
.p-num span { color: var(--mute); }
.p-name { font-size: clamp(38px, 4vw, 56px); line-height: 1; margin: 0 0 22px; }
.p-name .lockup { font-size: 1em; }
.p-head { font: 300 clamp(24px, 2.2vw, 32px)/1.2 var(--serif); margin: 0 0 18px; letter-spacing: -.01em; }
.p-body { color: var(--ink-2); margin: 0 0 24px; max-width: 480px; }
.p-points { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 10px; }
.p-points li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink); }
.p-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--g); }

.p-stage { position: relative; perspective: 2400px; perspective-origin: 50% 40%; }
.rig {
  --ry: -14deg; --rx: 6deg; --lift: 0px;
  position: relative; transform-style: preserve-3d;
  transform: translateY(var(--lift)) rotateY(var(--ry)) rotateX(var(--rx));
  will-change: transform;
}
.flip .rig { --ry: 14deg; }
.win { margin: 0; border-radius: 14px; overflow: hidden; background: #0d0f10; border: 1px solid rgba(255, 255, 255, .1); }
.win img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.win.main {
  position: relative; transform: translateZ(0);
  box-shadow: 0 80px 140px -40px rgba(0, 0, 0, .95), 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .04);
}
/* A soft sheen that slides across the main window as it turns. */
.win.main::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .07) 45%, transparent 60%);
  background-size: 250% 100%; background-position: var(--sheen, 80%) 0;
}
.bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #121416; border-bottom: 1px solid var(--line); }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2D30; }
.bar span { margin-left: 12px; font-size: 11px; color: var(--mute); letter-spacing: .02em; }
.win.back { position: absolute; width: 64%; top: -14%; right: -8%; transform: translateZ(-280px); opacity: .5; filter: saturate(.75) brightness(.8); }
.flip .win.back { right: auto; left: -8%; }
.phone {
  position: absolute; margin: 0; width: 22%; bottom: -10%; left: -6%;
  border-radius: 32px; overflow: hidden; border: 7px solid #17191B; background: #000;
  transform: translateZ(160px); box-shadow: 0 50px 90px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08);
}
.flip .phone { left: auto; right: -6%; }
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }

/* About */
.about { padding: clamp(100px, 13vw, 180px) 0; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-body p { color: var(--ink-2); font-size: 18px; margin: 0 0 40px; }
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principles li { padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.principles strong { display: block; font: italic 300 24px/1.25 var(--serif); color: var(--ink); margin-bottom: 4px; }

/* Contact */
.contact { position: relative; padding: clamp(110px, 14vw, 200px) 0; text-align: center; border-top: 1px solid var(--line); overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; bottom: -40%; width: 120vw; height: 80vw; max-height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(52, 211, 153, .16), transparent); pointer-events: none; }
.contact .wrap { position: relative; }
.contact .eyebrow { justify-content: center; }
.contact .sub { margin: 24px auto 44px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.foot .brand .lockup { font-size: 19px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.foot-links a { font-size: 13px; color: var(--mute); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--g); }
.copy { margin: 0; font-size: 13px; color: var(--mute); }

/* Sub-pages (Build, Partner) */
.nav nav a[aria-current="page"] { color: var(--ink); }
.hero-sub { min-height: 88vh; min-height: 88svh; }
.hero-sub h1 { font-size: clamp(44px, 6.4vw, 96px); max-width: 10em; }
.kicker { margin: 0 0 18px; font: italic 300 22px/1.2 var(--serif); color: var(--g); }
.band { padding: clamp(90px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.band h2, .build-cta h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.05; max-width: 15em; }
.band h3, .way h3 { font: 400 22px/1.25 var(--serif); margin: 0 0 10px; letter-spacing: -.01em; }

/* Build-with-us block on the home page */
.build-cta { position: relative; padding: clamp(100px, 13vw, 180px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.build-cta::before { content: ""; position: absolute; width: 80vw; height: 60vw; max-height: 900px; left: -20vw; top: 10%; background: radial-gradient(closest-side, rgba(52, 211, 153, .1), transparent); pointer-events: none; }
.build-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.build-cta .cta { margin-top: 38px; }
.free-card {
  display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 44px); text-decoration: none;
  border-radius: 22px; border: 1px solid rgba(52, 211, 153, .28);
  background: linear-gradient(160deg, rgba(52, 211, 153, .1), rgba(52, 211, 153, .02) 55%), var(--panel);
  transition: border-color .3s, transform .4s var(--ease);
}
.free-card:hover { border-color: var(--g); transform: translateY(-3px); }
.fc-tag { font: 600 11px/1 var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--g); }
.fc-head { font: 300 clamp(26px, 2.4vw, 34px)/1.15 var(--serif); }
.fc-head em { color: var(--g); }
.fc-body { color: var(--ink-2); }
.fc-link { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--g); margin-top: 6px; }

/* Proof strip: every product as a small framed screenshot */
.proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 56px; }
.proof-item { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.proof-item img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line-2); transition: transform .5s var(--ease), border-color .3s; }
.proof-item:hover img { transform: translateY(-4px); border-color: rgba(52, 211, 153, .5); }
.proof-name { font-size: 18px; margin-top: 6px; }
.proof-sector { font-size: 13px; color: var(--mute); }

/* Numbered steps */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.steps li { background: var(--bg); padding: 30px 26px 34px; }
.s-num { display: block; font: 400 14px/1 var(--serif); color: var(--g); margin-bottom: 40px; }
.steps p, .caps p, .way p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* Capability grid */
.caps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 48px; }
.caps li { padding-top: 22px; border-top: 1px solid var(--line-2); }
.caps a { color: var(--g); }

/* Two ways to work */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.way { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3vw, 44px); border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel); }
.way > p { margin-bottom: 26px; }
.way p strong { color: var(--ink); font-weight: 500; }
.way-featured h3 { color: var(--g); }
.way .p-points { margin-top: auto; }
.way-featured { border-color: rgba(52, 211, 153, .35); background: linear-gradient(160deg, rgba(52, 211, 153, .09), transparent 60%), var(--panel); }

/* Partner example */
.example, .faq-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.example-body p { color: var(--ink-2); font-size: 18px; margin: 0 0 22px; }
.deal { margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.deal div { background: var(--panel); padding: 22px 24px; }
.deal dt { font: 600 11px/1 var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--g); margin-bottom: 12px; }
.deal dd { margin: 0; font: 300 20px/1.3 var(--serif); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 400 21px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--g); font-family: var(--sans); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 24px; max-width: 560px; }
.faq a, .example a { color: var(--g); }

/* Footer columns */
.foot-cols { display: grid; gap: 14px; justify-items: center; }
.foot-site a { color: var(--ink-2); }

@media (max-width: 1100px) {
  .build-grid, .example, .faq-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .caps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .steps, .caps, .ways, .deal { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr 1fr; gap: 14px; }
  .proof-name { font-size: 15px; }
  .s-num { margin-bottom: 18px; }
  .foot-cols { justify-items: start; }
}

/* Reveal on scroll (only when JS is running). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { min-height: 170px; }
  .product-grid, .product.flip .product-grid { grid-template-columns: 1fr; }
  .product.flip .p-copy { order: 0; }
  .p-stage { max-width: 760px; margin: 20px auto 0; width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { align-items: flex-end; }
  .hero-copy { padding-bottom: 96px; }
  .gl-on .hero-copy { padding-top: 38svh; }
  .hero-sub { min-height: 100vh; min-height: 100svh; }
  .gl-on .hero-sub .hero-copy { padding-top: 42svh; }
}
@media (max-width: 720px) {
  .nav nav a:not(.btn) { display: none; }
  .hero-fallback { width: 70vw; right: -12vw; top: 30%; opacity: .35; }
  .tiles { grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .tile { padding: 18px 16px; min-height: 150px; }
  .t-sector { font-size: 19px; }
  .tile .lockup { font-size: 16px; }
  .t-kind { display: none; }
  .rig { --ry: -8deg; --rx: 4deg; }
  .flip .rig { --ry: 8deg; }
  .win.back { display: none; }
  .phone { width: 28%; left: -2%; bottom: -12%; border-width: 5px; border-radius: 22px; }
  .flip .phone { right: -2%; }
  .p-stage { padding-bottom: 30px; }
  .foot-grid { grid-template-columns: 1fr; text-align: left; }
  .foot-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .t-arrow { transition: none; }
}
