/* Emkay Labs, site styles. One file, no build step. */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F2EC;
  --bg-raised: #FBF9F5;
  --bg-photo: #F3EDE6;
  --ink: #141210;
  --ink-2: #5B554D;
  --ink-3: #8A8278;
  --ink-soft: rgba(20, 18, 16, 0.42);
  --line: rgba(20, 18, 16, 0.1);
  --line-strong: rgba(20, 18, 16, 0.22);
  --gold: #C8955E;
  --night: #100E0C;
  --night-ink: #F5F2EC;
  --night-ink-2: rgba(245, 242, 236, 0.62);

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1312px;
  --section: clamp(88px, 12vw, 168px);
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
/* The second half of a headline steps back in tone, never in typeface. */
.soft { color: var(--ink-soft); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px;
}
.skip:focus { top: 16px; }

/* Navigation */

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto; padding: 24px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.015em; }
.mark { width: 30px; height: 24px; fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--ink-2); }
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 99px; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: translateY(0) scale(0.98); }
.pill-outline { padding: 9px 18px; border: 1px solid var(--ink); font-size: 13px; }
.pill-outline:hover { background: var(--ink); color: var(--bg); }
.pill-solid { padding: 14px 26px; background: var(--ink); color: var(--bg); }
.pill-solid:hover { background: #2A2622; }
.pill-ghost { padding: 13px 25px; border: 1px solid var(--line-strong); }
.pill-ghost:hover { border-color: var(--ink); }

/* Hero */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }

.hero { position: relative; isolation: isolate; text-align: center; padding-top: clamp(40px, 6vw, 72px); }
/* Warm light behind the headline, the same amber, peach and coral as the photograph below. */
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 0;
  width: min(1300px, 140%); height: clamp(420px, 44vw, 560px); transform: translateX(-50%);
  background:
    radial-gradient(30% 42% at 24% 58%, rgba(244, 166, 72, 0.42), transparent 72%),
    radial-gradient(32% 46% at 50% 52%, rgba(250, 190, 140, 0.4), transparent 72%),
    radial-gradient(30% 42% at 76% 58%, rgba(240, 128, 120, 0.34), transparent 72%);
  pointer-events: none;
}
.hero h1 {
  margin: 22px auto 22px; padding: 0 var(--gutter); max-width: 1120px;
  font-size: clamp(42px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.045em;
}
.lede { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); }
/* Above the photograph, whose faded top edge slides under the buttons. */
.actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; padding: 0 var(--gutter); }

.hero-stage {
  max-width: 1440px; margin: clamp(-48px, -2.5vw, -16px) auto 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
}
.hero-stage img { width: 100%; }

.capabilities {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px;
  padding: 0 var(--gutter); font-size: 14px; color: var(--ink-2); letter-spacing: 0.01em;
}
.capabilities b { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* Sections */

.section { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: var(--section) var(--gutter) 0; }
.section h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1; letter-spacing: -0.035em; }

.label { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-2); }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.aside { font-size: 18px; color: var(--ink-2); max-width: 420px; justify-self: end; }

.index { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); font-variant-numeric: tabular-nums; }

/* Services */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.service {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px 28px 28px; border-radius: var(--radius);
  background: var(--bg-raised); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -32px rgba(20, 18, 16, 0.25); }
.service h3 { font-size: 24px; margin-top: 8px; }
.service p { color: var(--ink-2); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.tags li { font-size: 12px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); }

/* Process */

.process { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.process-media { border-radius: var(--radius); overflow: hidden; }
.steps { margin-top: 36px; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps h3 { font-size: 19px; letter-spacing: -0.02em; }
.steps p { color: var(--ink-2); font-size: 16px; margin-top: 2px; }

/* Products */

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
/* The card takes the photographs' own ivory, so image and text read as one surface. */
.product { border-radius: var(--radius); overflow: hidden; background: var(--bg-photo); border: 1px solid var(--line); display: flex; flex-direction: column; }
.product-media { overflow: hidden; }
.product-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.product:hover .product-media img { transform: scale(1.025); }
.product-body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 10px; }
.product-meta { font-size: 13px; color: var(--ink-3); }
.product h3 { font-size: 32px; letter-spacing: -0.03em; }
.product-desc { color: var(--ink-2); font-size: 16px; max-width: 460px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.rating span { color: var(--gold); }
.link { margin-top: 8px; font-size: 15px; font-weight: 500; display: inline-flex; gap: 6px; align-self: flex-start; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color 0.25s var(--ease); }
.link:hover { border-color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(64px, 8vw, 112px); }
.facts div { border-top: 1px dashed var(--line-strong); padding-top: 18px; }
.facts dt { font-size: clamp(40px, 4.4vw, 60px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.facts dd { margin-top: 10px; font-size: 15px; color: var(--ink-2); max-width: 220px; }

/* Contact */

.contact {
  position: relative; overflow: hidden; isolation: isolate;
  margin: var(--section) var(--gutter) 0; border-radius: calc(var(--radius) + 8px);
  background: var(--night); color: var(--night-ink); text-align: center;
  padding: clamp(80px, 11vw, 150px) var(--gutter);
}
.contact::before {
  content: ""; position: absolute; inset: auto -20% -55% -20%; height: 110%; z-index: -1;
  background:
    radial-gradient(40% 50% at 35% 50%, rgba(212, 165, 116, 0.55), transparent 70%),
    radial-gradient(35% 45% at 70% 55%, rgba(150, 125, 210, 0.35), transparent 70%);
  filter: blur(40px);
}
.contact .eyebrow { background: rgba(245, 242, 236, 0.06); border-color: rgba(245, 242, 236, 0.14); color: var(--night-ink-2); }
.contact .soft { color: rgba(245, 242, 236, 0.5); }
.contact h2 { margin-top: 24px; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; }
.contact-mail {
  display: inline-block; margin-top: 40px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(245, 242, 236, 0.3); padding-bottom: 4px; transition: border-color 0.25s var(--ease);
}
.contact-mail:hover { border-color: var(--night-ink); }
.contact-note { margin-top: 16px; font-size: 14px; color: var(--night-ink-2); }

/* Footer */

.footer { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 8vw, 104px) var(--gutter) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; font-size: 15px; }
.footer-brand p { margin-top: 14px; color: var(--ink-2); max-width: 280px; }
.footer-title { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-3); margin-bottom: 14px; }
.footer ul li + li { margin-top: 8px; }
.footer ul a, .footer address { color: var(--ink-2); }
.footer ul a:hover { color: var(--ink); }
.footer-wordmark {
  margin-top: clamp(40px, 6vw, 72px); font-size: clamp(40px, 17.5vw, 248px); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.06em; white-space: nowrap; text-align: center;
  background: linear-gradient(to bottom, rgba(20, 18, 16, 0.14), rgba(20, 18, 16, 0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* Legal pages */

.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 0; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.legal .updated { margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin-top: 48px; }
.legal p, .legal li { color: var(--ink-2); margin-top: 14px; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal li { margin-top: 8px; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.legal address { margin-top: 14px; color: var(--ink-2); }

.not-found { min-height: 60vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 20px; padding: 64px var(--gutter); }
.not-found h1 { font-size: clamp(48px, 8vw, 96px); letter-spacing: -0.04em; line-height: 1; }
.not-found p { color: var(--ink-2); }

/* Reveal on scroll. Hidden only when the script runs, so content never depends on it. */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pill, .service, .product-media img { transition: none; }
}

/* Responsive */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .split, .process { grid-template-columns: 1fr; }
  .aside { justify-self: start; }
  .services, .products { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .capabilities { flex-direction: column; gap: 6px; }
  .product-body { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
