/* =============================================================
   7days — Common
   Design variables, reset, type, grain, glass, utilities, lang nav
   ============================================================= */

/* --- Fonts ---------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-300-700.woff2") format("woff2");
}

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

/* --- Variables ------------------------------------------------ */
:root {
  --c-accent: #B21E35;
  --c-accent-2: #8E1628;
  --c-ink: #0E0E10;
  --c-ink-soft: #1A1A1F;
  --c-paper: #FAF7F2;
  --c-paper-warm: #F5EDE4;
  --c-paper-deep: #EFE6DA;
  --c-muted: rgba(14, 14, 16, 0.56);
  --c-line: rgba(14, 14, 16, 0.10);
  --c-line-soft: rgba(14, 14, 16, 0.06);
  --c-glass: rgba(255, 255, 255, 0.55);
  --c-glass-ink: rgba(14, 14, 16, 0.45);

  --f-display: "Fraunces", "Times New Roman", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(14,14,16,0.04), 0 6px 24px rgba(14,14,16,0.06);
  --shadow-2: 0 6px 24px rgba(14,14,16,0.10), 0 24px 80px rgba(14,14,16,0.10);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.25s;
  --t-med: 0.6s;
  --t-slow: 1.1s;

  --container: 1320px;
  --pad-x: clamp(20px, 4vw, 64px);

  --header-h: 72px;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: auto; }
body { overflow-x: hidden; }
body.lenis-locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { -webkit-user-drag: none; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }

::selection { background: var(--c-accent); color: #fff; }

/* --- Display type -------------------------------------------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.96;
}
.display em { font-style: italic; font-weight: 400; }
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-muted);
  font-weight: 500;
}

/* --- Container ----------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: clamp(80px, 12vh, 140px) 0;
  isolation: isolate;
}

/* --- Grain texture (subtle, layered) ------------------------- */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* --- Glass ---------------------------------------------------- */
.glass {
  background: var(--c-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: var(--r-md);
}
.glass-ink {
  background: rgba(14,14,16,0.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
}

/* --- Pills / Buttons ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 22px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-paper);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out);
  will-change: transform;
}
.btn .arrow-circle {
  display: inline-flex;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-accent);
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: transform var(--t-fast) var(--ease-out);
}
.btn:hover { background: var(--c-ink-soft); transform: translateY(-2px); }
.btn:hover .arrow-circle { transform: translate(2px, -2px) rotate(-8deg); }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
}
.btn-ghost:hover { background: rgba(14,14,16,0.05); }

/* --- Header / Nav -------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.site-header .nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  font-weight: 500;
}
.brand .mark {
  width: 28px; height: 28px;
  background: var(--c-accent);
  border-radius: 6px;
  display: inline-block;
  position: relative;
}
.brand .mark::after {
  content: "7";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--c-glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--shadow-1);
  font-size: 14px;
}
.nav-pill a {
  position: relative;
  color: var(--c-ink);
  opacity: 0.72;
  transition: opacity var(--t-fast) var(--ease-out);
}
.nav-pill a:hover { opacity: 1; }
.nav-pill a.active { opacity: 1; }
.nav-pill a.active::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-accent);
  transform: translateX(-50%);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--c-glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.lang-switch button {
  padding: 6px 10px;
  border-radius: var(--r-pill);
  color: var(--c-muted);
  transition: color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out);
}
.lang-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--c-ink);
}

.nav-right { display: inline-flex; gap: 10px; align-items: center; }

/* --- Header on dark sections --------------------------------- */
.site-header.is-light .brand { color: #fff; }
.site-header.is-light .nav-pill,
.site-header.is-light .lang-switch {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.10);
}
.site-header.is-light .nav-pill a { color: #fff; opacity: 0.7; }
.site-header.is-light .nav-pill a:hover,
.site-header.is-light .nav-pill a.active { opacity: 1; }
.site-header.is-light .lang-switch button { color: rgba(255,255,255,0.5); }
.site-header.is-light .lang-switch button[aria-pressed="true"] {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* --- Scroll progress ----------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent), #e84a64);
  z-index: 70;
  transition: width 0.12s linear;
}

/* --- Cursor reveal blob --------------------------------------
   Hidden by default. Only visible while hovering interactive
   elements (links, buttons, the folder, team cards, etc.).
   No mix-blend-mode — that combination of accent + beige
   produces a strange greenish artifact on the page.
   ------------------------------------------------------------ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-accent);
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s var(--ease-out), transform 0.4s var(--ease-out);
  will-change: transform, opacity;
}
.cursor.is-active {
  opacity: 0.22;
  transform: scale(1);
}
@media (pointer: coarse) { .cursor { display: none; } }

/* --- Reveal animations -------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); }
.split-word, .split-char { will-change: transform, opacity; }

/* --- Utility ------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

[lang]:not([lang="en"]) .lang-en,
.lang-fr .lang-en { display: none; }
.lang-en { display: inline; }
.lang-fr-only { display: none; }
.is-fr .lang-en { display: none; }
.is-fr .lang-fr-only { display: inline; }

/* --- Responsive shared --------------------------------------- */
@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .nav-pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
