/* ==========================================================
   VLOMENCY — style.css  (v1.0)
   Mobile-first. Edit colours/spacing in the :root block.
   ========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f6f6f7;
  --gray-100: #ececee;
  --gray-200: #dcdce0;
  --gray-400: #9b9ba3;
  --gray-500: #6b6b73;
  --gray-700: #3a3a40;
  --silver: #c7c9cf;

  --font: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --nav-h: 64px;
  --container: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--focus, var(--black));
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header,
.hero,
.section--dark,
.site-footer { --focus: #fff; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- 3. Header / navbar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background 0.25s var(--ease);
}
.site-header.is-scrolled { background: rgba(10, 10, 10, 0.96); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

/* Hamburger */
.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem 1.25rem 1.25rem;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav-menu a {
  display: block;
  padding: 0.95rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s var(--ease);
}
.nav-menu li:last-child a { border-bottom: 0; }
.nav-menu a:hover,
.nav-menu a[aria-current="true"] { color: var(--white); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: var(--silver); }

.btn--outline-light { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--gray-700); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

/* subtle technical grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 25% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 25% 45%, #000 15%, transparent 75%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.eyebrow--light { color: var(--gray-400); }
.hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--silver);
}

.hero-title {
  font-size: clamp(2.7rem, 13.5vw, 8.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero-tagline {
  margin-top: 1.5rem;
  font-size: clamp(1.25rem, 4.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--silver);
}

.hero-desc {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: var(--gray-400);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero-actions .btn { flex: 1 1 auto; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-anim {
  animation: fade-up 0.8s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

/* ---------- 6. Sections (shared) ---------- */
.section { padding: clamp(4rem, 10vw, 7.5rem) 0; }
.section--white { background: var(--white); }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--black); color: var(--white); }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 6vw, 3.5rem); }
.section-head h2 {
  font-size: clamp(1.95rem, 6.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.lead {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: var(--gray-500);
}
.section--dark .lead { color: var(--gray-400); }

.card-label {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ---------- 7. About ---------- */
.about-grid { display: grid; gap: 2rem; }
.about-grid .section-head { margin-bottom: 0; }
.about-cards { display: grid; gap: 1rem; align-content: start; }

.card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.card p { color: var(--gray-700); }

.mission-list { display: grid; gap: 0.85rem; }
.mission-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--gray-700);
}
.mission-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 2px;
  background: var(--black);
}

/* ---------- 8. Products ---------- */
.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.product-card:hover { border-color: var(--black); transform: translateY(-2px); }
.product-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.product-card p { color: var(--gray-500); }

.product-card--placeholder {
  background: transparent;
  border-style: dashed;
  border-color: var(--gray-400);
}
.product-card--placeholder:hover { border-color: var(--gray-400); transform: none; }
.product-card--placeholder h3 { color: var(--gray-500); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.badge--featured { background: var(--black); color: var(--white); }
.badge--planned { border: 1px solid var(--gray-400); color: var(--gray-500); }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.product-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.product-link:hover::after { transform: translateX(3px); }

.noscript-note { color: var(--gray-500); }

/* ---------- 9. Development ---------- */
.dev-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.dev-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.dev-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
}
.dev-index {
  display: block;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--silver);
}
.dev-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.dev-card p { margin-top: 0.6rem; font-size: 0.95rem; color: var(--gray-400); }

/* ---------- 10. Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }

.contact-list { display: grid; gap: 1.5rem; margin-bottom: 1.75rem; }
.contact-list li[hidden],
#social-block[hidden] { display: none; }

.label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.contact-list a {
  font-size: clamp(1.1rem, 3.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  word-break: break-word;
  border-bottom: 1px solid var(--gray-200);
  transition: border-color 0.2s var(--ease);
}
.contact-list a:hover { border-color: var(--black); }

.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-link:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.form {
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-size: 1rem; /* 16px prevents iOS zoom on focus */
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.1);
}
.form .btn { width: 100%; }
.form-status { min-height: 1.4em; font-size: 0.9rem; color: var(--gray-700); }
.form-status.is-error { color: #b42318; }

/* ---------- 11. Footer ---------- */
.site-footer {
  padding: clamp(3rem, 8vw, 4.5rem) 0 1.75rem;
  background: var(--black);
  color: var(--gray-400);
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { color: var(--white); }
.footer-brand p {
  max-width: 24rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--gray-400);
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- 12. Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 13. Tablet ---------- */
@media (min-width: 640px) {
  .hero-actions .btn { flex: 0 0 auto; }
  .dev-grid { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 2rem; }
  .form .btn { width: auto; justify-self: start; }
}

/* ---------- 14. Desktop ---------- */
@media (min-width: 860px) {
  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-menu ul { display: flex; gap: 0.25rem; }
  .nav-menu a {
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
    border: 0;
    border-radius: 8px;
  }
  .nav-menu a:hover { background: rgba(255, 255, 255, 0.08); }
  .nav-menu a[aria-current="true"] { background: rgba(255, 255, 255, 0.1); }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-nav ul { justify-content: flex-end; }
}

@media (min-width: 1000px) {
  .dev-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
