/* ==========================================================================
   Vilja Ventures — viljaventures.com
   Static site. No build step. Edit and upload.
   ========================================================================== */

/* ---- Fonts (self-hosted, variable weight 400–900) ---- */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/schibsted-grotesk-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/schibsted-grotesk-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

/* ---- Tokens ---- */
:root {
  --text: #111111;
  --text-secondary: #333333;
  --hover: #6b3e26;
  --cream: rgba(252, 243, 222, 0.85);
  --cream-solid: #fcf3de;
  --menu: rgba(252, 243, 222, 0.95);
  --overlay: rgba(255, 255, 255, 0.5);
  --white-chip: #ffffff;
  --stage-early: #a97a1c;
  --stage-scaling: #b0561d;
  --stage-established: #47703f;
  --font: "Schibsted Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --container: 1060px;
  --header-h: 64px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 420;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

/* ---- Background: photograph + warm-white veil ---- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../assets/background.jpg") center / cover no-repeat #e8dbb8;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--cream);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 62, 38, 0.12);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img {
  height: 38px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 2.25rem;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--hover);
}
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--hover);
  color: var(--hover);
}

/* ---- Mobile menu ---- */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 40;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hover);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 30;
  background: var(--menu);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  color: var(--hover);
}

/* ---- Layout ---- */
main {
  padding: var(--header-h) 24px 120px;
}
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5.5rem 0;
}
.section + .section {
  padding-top: 0;
}

/* ---- Type ---- */
h1,
h2,
h3 {
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
p {
  max-width: var(--measure);
  color: var(--text-secondary);
}
p + p {
  margin-top: 1em;
}
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hover);
  margin-bottom: 1rem;
}
.lead {
  font-size: 1.1875rem;
  line-height: 1.65;
}

/* ---- Hero: one quiet entrance, nothing else moves ---- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
.hero > *:nth-child(2) {
  animation-delay: 0.12s;
}
.hero > *:nth-child(3) {
  animation-delay: 0.24s;
}
.hero > *:nth-child(4) {
  animation-delay: 0.36s;
}
.hero > *:nth-child(5) {
  animation-delay: 0.48s;
}

.hero {
  min-height: calc(88vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}
.hero h1 {
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  font-weight: 580;
  margin-bottom: 1.5rem;
}
.hero .lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  max-width: 34ch;
}
.hero-meanings {
  margin-top: 2.75rem;
  display: grid;
  gap: 0.75rem;
}
.m-row {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 15rem) auto;
  column-gap: 1.25rem;
  align-items: baseline;
}
.m-row dd {
  margin: 0;
}
.m-word {
  font-style: italic;
  font-weight: 620;
  font-size: 1.1875rem;
  letter-spacing: 0.01em;
}
.m-sense {
  color: var(--text-secondary);
  font-size: 0.9875rem;
}
.m-lang {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hover);
}
em {
  font-style: italic;
  font-weight: 560;
}
.hero-cta {
  margin-top: 3rem;
}

/* ---- Buttons & links ---- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 560;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--cream-solid);
  background: var(--text);
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--hover);
}
.text-link {
  font-weight: 560;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--hover);
}

/* ---- Meaning triptych (About) ---- */
.meanings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 2.5rem 0;
  list-style: none;
}
.meanings .lang {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hover);
}
.meanings .word {
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0.25rem 0 0.5rem;
}
.meanings p {
  font-size: 0.9375rem;
}

/* ---- Pillars / values ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem 3.5rem;
  margin-top: 2.5rem;
  list-style: none;
}
.pillars h3 {
  margin-bottom: 0.5rem;
}
.pillars p {
  font-size: 0.9875rem;
}

/* ---- Themes ---- */
.themes {
  columns: 3;
  column-gap: 3rem;
  margin-top: 2rem;
  list-style: none;
  max-width: 56rem;
}
.themes li {
  break-inside: avoid;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ---- Logo chip ---- */
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 252, 245, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  height: 96px;
  box-shadow: 0 1px 3px rgba(60, 40, 20, 0.05);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.logo-chip img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
a.logo-chip:hover,
a.logo-chip:focus-visible {
  background: rgba(255, 252, 245, 0.75);
  box-shadow: 0 4px 14px rgba(60, 40, 20, 0.12);
  transform: translateY(-2px);
}

/* ---- Portfolio highlights (home) ---- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem 3.5rem;
  margin-top: 2.5rem;
  list-style: none;
}
.highlights h3 {
  margin: 1.25rem 0 0.375rem;
}
.highlights p {
  font-size: 0.9375rem;
}

/* ---- Portfolio page ---- */
.company {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem 4rem;
  padding: 4.5rem 0;
}
.company + .company {
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}
.company-aside .logo-chip {
  height: 110px;
}
.company-meta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: grid;
  gap: 0.375rem;
}
.stage-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  max-width: 26ch;
}
.stage {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 560;
  color: var(--text);
}
.stage::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stage-color, var(--text-secondary));
}
.stage--early {
  --stage-color: var(--stage-early);
}
.stage--scaling {
  --stage-color: var(--stage-scaling);
}
.stage--established {
  --stage-color: var(--stage-established);
}
.company h2 {
  margin-bottom: 0.375rem;
}
.company .innovation {
  font-size: 1.125rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.company dl {
  display: grid;
  gap: 1.25rem;
}
.company dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hover);
  margin-bottom: 0.25rem;
}
.company dd {
  color: var(--text-secondary);
  max-width: var(--measure);
}
.company .visit {
  margin-top: 1.75rem;
}

/* ---- Contact ---- */
.contact-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  font-size: 1.0625rem;
}
.contact-list .label {
  display: inline-block;
  min-width: 6.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hover);
}

/* ---- Footer ---- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--cream);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(107, 62, 38, 0.12);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.875rem 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.footer-tagline {
  text-align: right;
  font-style: italic;
}

/* ---- Focus ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .company {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .company-aside {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    align-items: center;
    gap: 1.5rem;
  }
  .company-aside .logo-chip {
    height: 88px;
  }
  .company-meta {
    margin-top: 0;
  }
  .themes {
    columns: 2;
  }
}
@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .section {
    padding: 3.5rem 0;
  }
  main {
    padding-bottom: 140px;
  }
  .hero {
    min-height: calc(76vh - var(--header-h));
  }
  .meanings {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .themes {
    columns: 1;
  }
  .company-aside {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 0.125rem;
    align-items: center;
    text-align: center;
    padding: 0.625rem 16px;
    font-size: 0.6875rem;
    line-height: 1.5;
  }
  .footer-tagline {
    text-align: center;
  }
}
