@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b0a0c;
  --bg-2: #121014;
  --line: rgba(243, 237, 228, 0.09);
  --line-2: rgba(243, 237, 228, 0.16);
  --text: #f3ede4;
  --muted: #9b948a;
  --gold: #f2c37c;
  --rose: #e9708d;
  --violet: #9d8cff;
  --grad: linear-gradient(100deg, var(--gold) 0%, var(--rose) 48%, var(--violet) 100%);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --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(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--rose); color: #0b0a0c; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Film grain over everything for a printed feel */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 10, 12, 0.7);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.logo em { font-size: 21px; color: var(--muted); margin-left: 1px; }
.mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gold), var(--rose), var(--violet), var(--gold));
  box-shadow: 0 0 24px rgba(233, 112, 141, .45);
}
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--bg); background: var(--text); padding: 9px 18px; border-radius: 999px; font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-links .nav-cta:hover { color: var(--bg); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(243, 237, 228, .18); }

/* Aurora glow */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 560px; height: 560px; background: #a4572e; top: -180px; right: 4%; }
.aurora span:nth-child(2) { width: 520px; height: 520px; background: #7a2d55; top: 120px; right: 26%; animation-duration: 26s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 480px; height: 480px; background: #3b2f8c; top: 260px; right: -8%; animation-duration: 30s; animation-delay: -12s; }
.aurora-low { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
.aurora-low span:nth-child(1) { top: auto; bottom: -200px; right: auto; left: -10%; }
.aurora-low span:nth-child(2) { top: auto; bottom: -240px; right: 20%; }
.aurora-low span:nth-child(3) { top: auto; bottom: -180px; right: -10%; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-60px, 40px, 0) scale(1.08); }
  100% { transform: translate3d(40px, -30px, 0) scale(.95); }
}

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 100px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 4px rgba(126, 226, 168, .14); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(126, 226, 168, 0); } }

.hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 4.9vw, 74px); line-height: 1; letter-spacing: -0.045em; font-weight: 600;
}
.hero h1 .line { display: block; }
.hero h1 em { font-size: 1.1em; letter-spacing: -0.02em; padding-right: .05em; }
.shine {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s ease-in-out infinite alternate;
}
@keyframes shine { to { background-position: 100% 0; } }
.lead { margin-top: 32px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary span { transition: transform .35s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(243, 237, 228, .2); }
.btn-primary:hover span { transform: translateX(4px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(243, 237, 228, .03); }
.btn-ghost:hover { border-color: rgba(243, 237, 228, .4); transform: translateY(-2px); }

/* Phone mockups */
.phone {
  margin: 0; position: relative; aspect-ratio: 390 / 844; border-radius: 38px; padding: 7px;
  background: linear-gradient(160deg, #3a3640, #141216 40%, #232027);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; }
.phone::before {
  content: ""; position: absolute; top: 13px; left: 50%; width: 26%; height: 15px; transform: translateX(-50%);
  border-radius: 20px; background: #0b0a0c; z-index: 1;
}
.hero-phones { position: relative; height: 600px; }
.hero-phones .phone { position: absolute; width: 250px; animation: float 9s ease-in-out infinite; }
.hero-phones .p1 { left: -12%; top: 70px; transform: rotate(-8deg); --r: -8deg; animation-delay: -3s; }
.hero-phones .p2 { left: 50%; top: 0; margin-left: -125px; z-index: 2; --r: 0deg; }
.hero-phones .p3 { right: -12%; top: 90px; transform: rotate(8deg); --r: 8deg; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-14px) rotate(var(--r)); }
}

/* Marquee */
.marquee { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 42s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 44px); white-space: nowrap; color: var(--text); }
.marquee i { font-style: normal; font-size: 16px; color: var(--rose); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { position: relative; padding: 150px 0; }
.section-head { max-width: 820px; }
.section h2 {
  margin-top: 22px; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600;
}
.section h2 em { font-size: 1.08em; color: var(--muted); }
.sub { margin-top: 22px; color: var(--muted); font-size: 19px; max-width: 34em; }

/* Services list */
.services { list-style: none; margin: 80px 0 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  position: relative; display: grid; grid-template-columns: 120px 1fr 1fr; gap: 32px; align-items: baseline;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.service::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.s-num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.service h3 { font-family: var(--serif); font-size: clamp(34px, 3.8vw, 54px); line-height: 1; letter-spacing: -0.01em; transition: transform .6s var(--ease); }
.service:hover h3 { transform: translateX(10px); }
.service p { color: var(--muted); font-size: 18px; max-width: 28em; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 80px; }
.product {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 600px; padding: 44px 44px 0; border-radius: 28px; overflow: hidden; text-decoration: none;
  background: var(--bg); color: var(--ink);
  isolation: isolate;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.product::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(500px circle at var(--mx) var(--my), color-mix(in srgb, var(--hi) 22%, transparent), transparent 60%);
}
.product:hover::before { opacity: 1; }
.product:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.p-tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hi); padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--hi) 40%, transparent);
}
.product h3 { margin-top: 22px; font-family: var(--serif); font-size: clamp(38px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.01em; }
.product p { margin-top: 14px; font-size: 18px; opacity: .72; max-width: 22em; }
.p-url { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 600; }
.arrow { display: inline-block; transition: transform .4s var(--ease); }
.product:hover .arrow { transform: translate(3px, -3px); }
.p-phone {
  width: 62%; max-width: 300px; align-self: center; margin-top: 44px; margin-bottom: -120px;
  transition: transform .8s var(--ease);
  box-shadow: 0 30px 70px -20px rgba(20, 10, 30, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.product:hover .p-phone { transform: translateY(-16px) rotate(-1.5deg); }
.product.dark .p-phone { box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1) inset; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 80px; border-top: 1px solid var(--line); }
.principle { padding: 40px 36px 0 0; }
.principle + .principle { padding-left: 36px; border-left: 1px solid var(--line); }
.principle h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.principle p { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* Contact */
.contact { overflow: hidden; padding-bottom: 170px; }
.contact .wrap { position: relative; z-index: 1; }
.contact-title { font-size: clamp(48px, 8vw, 120px) !important; line-height: .95 !important; }
.contact-title em { color: var(--text) !important; }
.mail-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin-top: 56px; }
.email {
  position: relative; font-size: clamp(26px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.035em; text-decoration: none;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow-wrap: anywhere;
}
.email::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--grad);
  transform: scaleX(.12); transform-origin: left; transition: transform .7s var(--ease);
}
.email:hover::after { transform: scaleX(1); }
.copy {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(243, 237, 228, .04);
  transition: border-color .3s, background .3s;
}
.copy:hover { border-color: rgba(243, 237, 228, .4); }
.copy.done { background: var(--text); color: var(--bg); }

/* Footer */
.footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 0; font-size: 14px; color: var(--muted); overflow: hidden; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.wordmark {
  margin-top: 64px; margin-bottom: -0.2em; white-space: nowrap; text-align: center;
  font-size: clamp(44px, 11.6vw, 164px); font-weight: 600; letter-spacing: -0.055em; line-height: .9;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 237, 228, .14);
}
.wordmark em { -webkit-text-stroke: 0; color: rgba(243, 237, 228, .1); font-size: 1.08em; }

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

/* Privacy page */
.legal { padding: 150px 0 120px; }
.legal h1 { font-size: clamp(44px, 6vw, 80px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.legal h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 48px; }
.legal p { margin-top: 12px; color: var(--muted); max-width: 64ch; }
.legal p a { color: var(--text); }
.legal .back { display: inline-block; margin-bottom: 36px; color: var(--muted); text-decoration: none; font-size: 15px; }
.legal .back:hover { color: var(--text); }

/* Tablet */
@media (max-width: 980px) {
  .hero { min-height: 0; padding: 130px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-phones { height: 520px; max-width: 560px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 220px; }
  .hero-phones .p2 { margin-left: -110px; }
  .hero-phones .p1 { left: 0; }
  .hero-phones .p3 { right: 0; }
  .service { grid-template-columns: 80px 1fr; }
  .service p { grid-column: 2; }
  .products { grid-template-columns: 1fr; }
  .product { min-height: 0; }
  .p-phone { width: 52%; max-width: 280px; margin-bottom: -160px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav-inner { height: 64px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 112px 0 24px; }
  .hero h1 { font-size: clamp(40px, 11.4vw, 56px); margin-top: 22px; }
  .hero h1 .line { display: inline; }
  .lead { margin-top: 24px; }
  .actions { margin-top: 34px; }
  .actions .btn { flex: 1 1 100%; }
  .hero-phones { height: 400px; }
  .hero-phones .phone { width: 168px; border-radius: 28px; padding: 5px; }
  .hero-phones .phone img { border-radius: 23px; }
  .hero-phones .p1 { left: 2%; top: 50px; }
  .hero-phones .p2 { margin-left: -84px; }
  .hero-phones .p3 { right: 2%; top: 64px; }
  .phone::before { top: 9px; height: 10px; }
  .marquee { padding: 18px 0; }
  .marquee::before, .marquee::after { width: 48px; }
  .section { padding: 84px 0; }
  .section h2 { margin-top: 18px; }
  .services, .products, .principles { margin-top: 52px; }
  .service { grid-template-columns: 1fr; gap: 14px; padding: 34px 0; }
  .service p { grid-column: auto; font-size: 17px; }
  .s-num { margin-bottom: 4px; }
  .products { gap: 16px; }
  .product { padding: 30px 26px 0; border-radius: 24px; }
  .product p { font-size: 17px; }
  .p-phone { width: 68%; margin-top: 36px; margin-bottom: -130px; border-radius: 30px; padding: 5px; }
  .p-phone img { border-radius: 25px; }
  .contact { padding-bottom: 120px; }
  .mail-row { margin-top: 40px; }
  .footer-links { text-align: left; }
  .wordmark { margin-top: 48px; }
}

@media (hover: none) {
  .product:hover, .product:hover .p-phone { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
