/* ============================================================
   Avenor.digital — warm near-black, single considered accent
   Fonts: Bricolage Grotesque (display) + Plus Jakarta Sans (body)
   ============================================================ */

:root {
  /* Warm gray family — one hue, off-black base */
  --bg: #0c0b09;
  --surface: #16140f;
  --surface-2: #1d1a14;
  --hair: rgba(245, 240, 230, 0.08);
  --hair-strong: rgba(245, 240, 230, 0.14);
  --text: #f4f0e8;
  --muted: #a39b8d;
  --muted-2: #837b6e;

  /* A single, desaturated warm accent — not the AI blue/purple */
  --accent: #d8a35a;
  --accent-soft: rgba(216, 163, 90, 0.14);

  /* Tinted shadow (carries the warm hue, never pure black) */
  --shadow: 0 24px 60px -20px rgba(20, 14, 4, 0.7);
  --shadow-accent: 0 16px 40px -12px rgba(216, 163, 90, 0.4);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r: 18px;
  --maxw: 1140px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Film grain — fixed, never on scrolling content */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.04;
  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='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient warm glow — single radial, off-center (breaks even gradient) */
.ambient {
  position: fixed;
  top: -18%;
  left: 58%;
  transform: translateX(-50%);
  width: 90vw;
  height: 60vw;
  max-width: 900px;
  max-height: 620px;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 62%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

/* Layout rails */
section,
.foot-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.6rem;
}

/* Eyebrow pill tag */
.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(245, 240, 230, 0.03);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------------- Floating glass nav ---------------- */
.nav {
  position: sticky;
  top: 1.1rem;
  z-index: 50;
  width: min(var(--maxw), calc(100% - 2rem));
  margin: 1.1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.7rem 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  background: rgba(22, 20, 15, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-family: "Bricolage Grotesque", serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #1a140a;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}

.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-name .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  color: #1a140a !important;
  background: var(--accent);
  font-weight: 600 !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.nav-cta .ico {
  transition: transform 0.25s var(--ease);
}

.nav-cta:hover .ico {
  transform: translateX(3px);
}

/* ---------------- Hero ---------------- */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 6rem 4rem;
}

.hero .eyebrow {
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
  margin-bottom: 1.6rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  line-height: 1.65;
  max-width: 58ch;
  text-wrap: pretty;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons with button-in-button trailing icon */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-ghost {
  padding: 0.85rem 1.5rem;
}

.btn-primary {
  color: #1a140a;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -14px rgba(216, 163, 90, 0.55);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ico {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(26, 20, 10, 0.18);
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover .btn-ico {
  transform: translate(3px, -1px);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--hair-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------------- Platforms strip ---------------- */
.platforms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  justify-content: center;
  padding-block: 1rem 4.5rem;
  border-bottom: 1px solid var(--hair);
}

.platforms-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted-2);
}

.platforms-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  list-style: none;
}

.platforms-row li {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0.85;
}

/* ---------------- Section heads ---------------- */
.section-head {
  max-width: 54ch;
  margin: 0 auto 3.2rem;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 1.1rem;
}

.section-head h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
  margin-bottom: 0.9rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.06rem;
  text-wrap: pretty;
}

/* ---------------- Services bento ---------------- */
.services {
  padding-block: 5rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.cell {
  grid-column: span 4;
  padding: 1.9rem 1.7rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--hair);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.cell:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 163, 90, 0.4);
  background: var(--surface-2);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }

.cell-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(216, 163, 90, 0.22);
}

.cell h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.cell p {
  color: var(--muted);
  font-size: 0.97rem;
}

.cell strong {
  color: var(--text);
  font-weight: 600;
}

/* Feature cell — double-bezel (Doppelrand) */
.feature {
  padding: 0;
  background: transparent;
  border: none;
}

.feature:hover {
  transform: translateY(-4px);
  background: transparent;
}

.bezel {
  height: 100%;
  padding: 7px;
  border-radius: calc(var(--r) + 6px);
  background: rgba(245, 240, 230, 0.04);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
}

.bezel-inner {
  height: 100%;
  padding: 1.8rem 1.7rem;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 1px rgba(245, 240, 230, 0.06);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
  list-style: none;
}

.tags li {
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(245, 240, 230, 0.02);
}

/* ---------------- Contact ---------------- */
.contact {
  padding-block: 4.5rem 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: stretch;
}

.address-card .bezel,
.address-card {
  height: 100%;
}

.address-card .eyebrow {
  margin-bottom: 1.2rem;
}

address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--muted);
}

.line.strong {
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.01em;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.map-link .btn-ico {
  width: 26px;
  height: 26px;
  background: var(--accent-soft);
}

.map-link:hover .btn-ico {
  transform: translate(3px, -1px);
}

.methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.method {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.2rem 1rem;
  flex: 1;
  padding: 1.3rem 1.5rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--hair);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.method:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 163, 90, 0.45);
  background: var(--surface-2);
}

.method-label {
  grid-row: 1 / span 2;
  align-self: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted-2);
  min-width: 4.5rem;
}

.method-value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.method-ico {
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.method:hover .method-ico {
  transform: translateX(4px);
}

/* ---------------- Footer ---------------- */
.foot {
  border-top: 1px solid var(--hair);
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 2.2rem;
}

.foot-meta {
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .cell,
  .span-3,
  .span-4,
  .span-5 {
    grid-column: span 6;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .cell,
  .span-3,
  .span-4,
  .span-5 {
    grid-column: span 1;
  }
  .hero {
    padding-block: 4rem 3rem;
  }
  .platforms {
    flex-direction: column;
    gap: 1rem;
  }
}

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