/* ==============================
===== SHARED BASE (all pages) ====
============================== */

/* ===== Custom Fonts ===== */

@font-face {
  font-family: 'ObjectSans';
  src: url('fonts/ObjectSans-Regular.woff2') format('woff2'),
    url('fonts/ObjectSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ObjectSans';
  src: url('fonts/ObjectSans-Bold.woff2') format('woff2'),
    url('fonts/ObjectSans-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NeueMachina';
  src: url('fonts/NeueMachina-Regular.woff2') format('woff2'),
    url('fonts/NeueMachina-Regular.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Agrandir';
  src: url('fonts/Agrandir-GrandHeavy.woff2') format('woff2'),
    url('fonts/Agrandir-GrandHeavy.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* ===== CSS Reset ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}


/* ===== Design System ===== */

:root {
  /* Colors */
  --color-primary: #242424;
  --color-primary-inverted: #FDFDFD;
  --color-secondary: #3d3d3d;
  --color-tertiary: #888888;
  --color-link: #999999;
  --color-accent: #2B63F6;
  --color-accent-focus: #2B63F6;
  --color-background: #fdfdfd;
  --color-background-blur: #24242440;
  --color-background-light-blur: #FDFDFD40;
  --color-background-dark: #24242466;
  --color-footer: #f5f5f5;

  /* Grid — desktop + tablet: 9 columns, 56 margin, 32 gutter */
  --grid-columns: 9;
  --grid-margin: 56px;
  --grid-gutter: 32px;
}

/* Tablet — same 9 columns, tighter page margin */
@media (max-width: 1023px) {
  :root {
    --grid-margin: 48px;
  }
}

/* Mobile — 1 column, 20 margin */
@media (max-width: 767px) {
  :root {
    --grid-columns: 1;
    --grid-margin: 20px;
    --grid-gutter: 20px;
  }
}

/* Mobile is a single column, so children fall into place on their own.
   Every `grid-column` placement in the page stylesheets is therefore
   declared inside a `min-width: 768px` block — never on mobile. */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gutter);
}


/* ===== Page Foundations ===== */

body {
  background-color: var(--color-background);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  cursor: none;
}

a,
button {
  cursor: none;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:visited {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--hover-color, red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:active {
  color: var(--color-accent-focus);
  text-decoration: none;
}

a svg {
  display: inline-block;
  vertical-align: middle;
}

.link:hover {
  transition: transform 0.2s ease-in-out;
  transform: translateY(-3px);
}

.out-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.arrow-out {
  fill: var(--color-link);
}


/* ===== Custom Cursor ===== */

.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  background-color: rgba(170, 170, 170, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  mix-blend-mode: difference;
  opacity: 0;
  transition:
    transform 0.1s ease-out,
    width 0.2s ease-in-out,
    height 0.2s ease-in-out,
    border-radius 0.2s ease-in-out;
}

.custom-cursor.visible {
  opacity: 1;
}

.custom-cursor.hover {
  transform: scale(1.2);
  background-color: rgba(170, 170, 170, 0.3);
}

/* Touch devices get no custom cursor, and no tap flash in its place */
@media (hover: none) {
  .custom-cursor {
    display: none;
  }

  body,
  a,
  button {
    cursor: auto;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }
}


/* ===== Header ===== */

header,
nav {
  font-family: 'ObjectSans', sans-serif;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  font-size: 14px;
}

header {
  margin: 32px var(--grid-margin) 0;
}

nav {
  margin: 0;
}

.mail-copy-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: var(--color-link);
  cursor: none;
  white-space: nowrap;
}

.mail-copy-btn:hover {
  color: var(--hover-color, red);
}

.back {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 24px;
  width: auto;
}

@media (max-width: 767px) {
  header {
    margin: 16px var(--grid-margin);
    font-size: 12px;
  }

  nav {
    display: none;
  }

  .logo img {
    height: 20px;
  }
}


/* ===== Footer ===== */

.footer {
  background-color: var(--color-footer);
  font-family: 'ObjectSans', sans-serif;
  font-weight: 400;
}

.full-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 80px var(--grid-margin);
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.footer-left {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 48px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  margin-top: 4px;
}

.footer-icon {
  width: 15px;
  height: 16px;
  flex-shrink: 0;
  aspect-ratio: 15/16;
}

@media (max-width: 767px) {
  .full-footer {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px;
    padding: 80px var(--grid-margin);
  }

  .footer-left {
    flex-direction: column;
    gap: 32px;
  }
}


body > main {
  flex: 1;
  display: flex;
  flex-direction: column;
}


/* ===== Shared Animations ===== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
