@import './colors.css';

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

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

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/lora-latin.woff2') format('woff2');
}

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

body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Global bakgrundsstil: kör endast beige textur (ingen färgoverlay/blend) */
.bg-color {
  background-image: url('/assets/beige-texture.webp');
  background-repeat: repeat;
  background-size: auto;
}

/* iOS Safari can render texture/blend + backdrop-filter with repaint artifacts */
@supports (-webkit-touch-callout: none) {
  #site-header-el,
  #site-header-el.is-scrolled,
  .btn-standard,
  .backdrop-blur-sm {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

}

body.ready {
  opacity: 1;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1rem 2.5rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

@media (min-width: 768px) {
  .btn {
    font-size: 0.74rem;
  }
}

.btn-standard {
  color: var(--color-stone-800);
  border: 1px solid var(--color-stone-300);
  background-color: color-mix(in srgb, var(--color-stone-100) 50%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-stone-900) 10%, transparent);
}

.btn-standard:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.btn-accent {
  color: var(--color-stone-100);
  border: 1px solid transparent;
  background-color: var(--color-brand);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--color-stone-900) 16%, transparent);
}

.btn-accent:hover {
  background-color: var(--color-brand-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  background-color: var(--card-unified-bg);
  border: 1px solid color-mix(in srgb, var(--color-stone-300) 70%, transparent);
}

.contact-form__intro {
  padding-bottom: 0.25rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-form__field label {
  color: var(--color-stone-700);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid var(--color-stone-300);
  border-radius: 0.375rem;
  background: color-mix(in srgb, var(--color-stone-100) 48%, transparent);
  color: var(--color-stone-800);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0.82rem 0.95rem;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.contact-form__field textarea {
  min-height: 12rem;
  resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  background-color: color-mix(in srgb, var(--color-stone-100) 68%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand) 16%, transparent);
}

.contact-form__button {
  align-self: flex-start;
}

.contact-form__flash {
  border: 1px solid var(--color-stone-300);
  border-radius: 0.375rem;
  color: var(--color-stone-800);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.9rem 1rem;
}

.contact-form__flash--success {
  border-color: color-mix(in srgb, var(--color-sage) 45%, var(--color-stone-300));
  background: color-mix(in srgb, var(--color-sage) 14%, transparent);
}

.contact-form__flash--error {
  border-color: color-mix(in srgb, var(--color-brand) 50%, var(--color-stone-300));
  background: color-mix(in srgb, var(--color-brand) 10%, transparent);
}

.contact-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-portrait {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.btn-filter {
  color: var(--color-stone-700);
  border: 1px solid var(--color-stone-300);
  background-color: var(--filter-btn-bg);
  font-weight: 300;
  letter-spacing: 0.28em;
  padding: 0.625rem 1.5rem;
}

.btn-filter:hover {
  border-color: var(--color-stone-400);
  color: var(--color-stone-800);
}

.btn-filter.active {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-stone-100);
}

/* ─── Typography ─── */
.font-sans { font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.font-serif { font-family: "Lora", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.italic { font-style: italic; }

.text-\[18px\] { font-size: 18px; }
.text-\[0\.35em\] { font-size: 0.35em; }
.text-\[0\.48rem\] { font-size: 0.48rem; }
.text-\[0\.52rem\] { font-size: 0.52rem; }
.text-\[0\.55rem\] { font-size: 0.55rem; }
.text-\[0\.57rem\] { font-size: 0.57rem; }
.text-\[0\.58rem\] { font-size: 0.58rem; }
.text-\[0\.6rem\] { font-size: 0.6rem; }
.text-\[0\.65rem\] { font-size: 0.65rem; }
.text-\[0\.68rem\] { font-size: 0.68rem; }
.text-\[0\.7rem\] { font-size: 0.7rem; }
.text-\[0\.73rem\] { font-size: 0.73rem; }
.text-\[0\.75rem\] { font-size: 0.75rem; }
.text-\[0\.78rem\] { font-size: 0.78rem; }
.text-\[0\.85rem\] { font-size: 0.85rem; }
.text-\[0\.87rem\] { font-size: 0.87rem; }
.text-\[0\.9rem\] { font-size: 0.9rem; }
.text-\[0\.91rem\] { font-size: 0.91rem; }
.text-\[0\.95rem\] { font-size: 0.95rem; }
.text-\[0\.98rem\] { font-size: 0.98rem; }
.text-\[1rem\] { font-size: 1rem; }
.text-\[1\.05rem\] { font-size: 1.05rem; }
.text-\[1\.1rem\] { font-size: 1.1rem; }
.text-\[1\.13rem\] { font-size: 1.13rem; }
.text-\[1\.15rem\] { font-size: 1.15rem; }
.text-\[1\.2rem\] { font-size: 1.2rem; }
.text-\[1\.35rem\] { font-size: 1.35rem; }
.text-\[1\.4rem\] { font-size: 1.4rem; }
.text-\[1\.5rem\] { font-size: 1.5rem; }
.text-\[1\.8rem\] { font-size: 1.8rem; }
.text-\[2rem\] { font-size: 2rem; }
.text-\[2\.5rem\] { font-size: 2.5rem; }
.text-\[2\.6rem\] { font-size: 2.6rem; }
.text-\[2\.8rem\] { font-size: 2.8rem; }
.text-\[3rem\] { font-size: 3rem; }
.text-\[3\.5rem\] { font-size: 3.5rem; }
.text-\[4rem\] { font-size: 4rem; }
.text-\[4\.5rem\] { font-size: 4.5rem; }
.text-\[5rem\] { font-size: 5rem; }
.text-\[5\.5rem\] { font-size: 5.5rem; }
.text-\[7rem\] { font-size: 7rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.tracking-\[-0\.01em\] { letter-spacing: -0.01em; }
.tracking-\[0\.02em\] { letter-spacing: 0.02em; }
.tracking-\[0\.03em\] { letter-spacing: 0.03em; }
.tracking-\[0\.04em\] { letter-spacing: 0.04em; }
.tracking-\[0\.05em\] { letter-spacing: 0.05em; }
.tracking-\[0\.1em\] { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-\[0\.28em\] { letter-spacing: 0.28em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-\[0\.35em\] { letter-spacing: 0.35em; }
.tracking-\[0\.38em\] { letter-spacing: 0.38em; }
.tracking-\[0\.4em\] { letter-spacing: 0.4em; }
.tracking-\[0\.48em\] { letter-spacing: 0.48em; }
.tracking-\[0\.5em\] { letter-spacing: 0.5em; }
.tracking-widest { letter-spacing: 0.1em; }

.leading-\[0\.5\] { line-height: 0.5; }
.leading-\[0\.86\] { line-height: 0.86; }
.leading-\[1\.05\] { line-height: 1.05; }
.leading-\[1\.1\] { line-height: 1.1; }
.leading-\[1\.15\] { line-height: 1.15; }
.leading-\[1\.4\] { line-height: 1.4; }
.leading-\[1\.65\] { line-height: 1.65; }
.leading-\[1\.7\] { line-height: 1.7; }
.leading-\[1\.8\] { line-height: 1.8; }
.leading-\[1\.9\] { line-height: 1.9; }
.leading-\[2\.05\] { line-height: 2.05; }
.leading-none { line-height: 1; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.normal-case { text-transform: none; }
.whitespace-nowrap { white-space: nowrap; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ─── Layout ─── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-\[76px_1fr\] { grid-template-columns: 76px 1fr; }

.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-20 { gap: 5rem; }
.gap-24 { gap: 6rem; }
.gap-\[5px\] { gap: 5px; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.self-start { align-self: flex-start; }

.columns-1 { columns: 1; }

.portfolio-masonry {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

.portfolio-masonry__column {
  align-content: start;
  display: grid;
}

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.top-7 { top: 1.75rem; }
.right-7 { right: 1.75rem; }
.left-2 { left: 0.5rem; }
.right-2 { right: 0.5rem; }
.right-6 { right: 1.5rem; }
.bottom-3 { bottom: 0.75rem; }
.bottom-7 { bottom: 1.75rem; }
.bottom-10 { bottom: 2.5rem; }
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }

.inset-0 { inset: 0; }
.-inset-4 { inset: -1rem; }

.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.translate-y-1 { transform: translateY(0.25rem); }
.translate-y-2 { transform: translateY(0.5rem); }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[999\] { z-index: 999; }

.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.min-w-0 { min-width: 0; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-10 { width: 2.5rem; }
.w-14 { width: 3.5rem; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-10 { height: 2.5rem; }
.h-14 { height: 3.5rem; }
.h-\[1\.5px\] { height: 1.5px; }
.h-\[1px\] { height: 1px; }
.h-\[380px\] { height: 380px; }
.h-\[240px\] { height: 240px; }
.h-\[180px\] { height: 180px; }
.h-\[75vh\] { height: 75vh; }

.max-w-\[1400px\] { max-width: 1400px; }
.max-w-\[1100px\] { max-width: 1100px; }
.max-w-\[800px\] { max-width: 800px; }
.max-w-\[650px\] { max-width: 650px; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-prose { max-width: 65ch; }
.max-w-\[90vw\] { max-width: 90vw; }
.max-h-\[90vh\] { max-height: 90vh; }
.max-h-\[88vh\] { max-height: 88vh; }

.mx-auto { margin-left: auto; margin-right: auto; }

.min-h-screen { min-height: 100vh; }
.min-h-\[550px\] { min-height: 550px; }
.min-h-\[140px\] { min-height: 140px; }

/* ─── Spacing ─── */
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-9 { padding-left: 2.25rem; padding-right: 2.25rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.m-4 { margin: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }

.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-7 { margin-bottom: 1.75rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-9 { margin-bottom: 2.25rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.mb-32 { margin-bottom: 8rem; }

.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.my-20 { margin-top: 5rem; margin-bottom: 5rem; }
.my-24 { margin-top: 6rem; margin-bottom: 6rem; }

.ml-8 { margin-left: 2rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-\[3\.5rem\] { padding-top: 3.5rem; }
.pt-\[calc\(100px\+3rem\)\] { padding-top: calc(100px + 3rem); }

.pb-1 { padding-bottom: 0.25rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-24 { padding-bottom: 6rem; }

.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* ─── Colors & Decoration ─── */
.bg-stone-100 { background-color: var(--color-stone-100); }
.bg-stone-200 { background-color: var(--card-unified-bg); }
.bg-stone-300 { background-color: var(--color-stone-300); }
.bg-stone-400 { background-color: var(--color-stone-400); }
.bg-stone-700 { background-color: var(--color-stone-700); }
.bg-stone-900 { background-color: var(--color-stone-900); }
.bg-transparent { background-color: transparent; }
.bg-stone-100\/50 { background-color: color-mix(in srgb, var(--color-stone-100) 50%, transparent); }
.bg-stone-200\/50 { background-color: var(--card-unified-bg); }
.bg-stone-200\/40 { background-color: var(--card-unified-bg); }
.bg-stone-900\/50 { background-color: color-mix(in srgb, var(--color-stone-900) 50%, transparent); }
.bg-brand { background-color: var(--color-brand); }
.bg-lightbox { background-color: color-mix(in srgb, var(--color-lightbox) 95%, transparent); }

.text-stone-100 { color: var(--color-stone-100); }
.text-stone-200 { color: var(--color-stone-200); }
.text-stone-300 { color: var(--color-stone-300); }
.text-stone-400 { color: var(--color-stone-400); }
.text-stone-500 { color: var(--color-stone-500); }
.text-stone-600 { color: var(--color-stone-600); }
.text-stone-700 { color: var(--color-stone-700); }
.text-stone-800 { color: var(--color-stone-800); }
.text-brand { color: var(--color-brand); }
.text-sage { color: var(--color-sage); }
.text-brand-soft { color: var(--color-brand-soft); }
.text-stone-100\/50 { color: color-mix(in srgb, var(--color-stone-100) 50%, transparent); }
.text-stone-100\/45 { color: color-mix(in srgb, var(--color-stone-100) 45%, transparent); }
.text-stone-100\/40 { color: color-mix(in srgb, var(--color-stone-100) 40%, transparent); }

.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-stone-200 { border-color: var(--color-stone-200); }
.border-stone-300 { border-color: var(--color-stone-300); }
.border-brand { border-color: var(--color-brand); }
.border-brand\/40 { border-color: color-mix(in srgb, var(--color-brand) 40%, transparent); }
.border-brand\/30 { border-color: color-mix(in srgb, var(--color-brand) 30%, transparent); }
.border-brand\/20 { border-color: color-mix(in srgb, var(--color-brand) 20%, transparent); }

.opacity-0 { opacity: 0; }
.opacity-30 { opacity: 0.3; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-\[1px\] { border-radius: 1px; }

.drop-shadow-md { filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06)); }
.drop-shadow-lg { filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1)); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06); }

.bg-gradient-to-r { background-image: none; }
.bg-gradient-to-b { background-image: none; }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: none; }

.from-brand { --tw-gradient-from: var(--color-brand); --tw-gradient-to: color-mix(in srgb, var(--color-brand) 0%, transparent); --tw-gradient-stops: var(--tw-gradient-from) var(--tw-gradient-from-position, ), var(--tw-gradient-to) var(--tw-gradient-to-position, ); }
.via-brand { --tw-gradient-to: color-mix(in srgb, var(--color-brand) 0%, transparent); --tw-gradient-stops: var(--tw-gradient-from) var(--tw-gradient-from-position, ), var(--color-brand) var(--tw-gradient-via-position, ), var(--tw-gradient-to) var(--tw-gradient-to-position, ); }
.to-sage { --tw-gradient-to: var(--color-sage); }
.from-stone-100 { --tw-gradient-from: var(--color-stone-100); --tw-gradient-to: color-mix(in srgb, var(--color-stone-100) 0%, transparent); --tw-gradient-stops: var(--tw-gradient-from) var(--tw-gradient-from-position, ), var(--tw-gradient-to) var(--tw-gradient-to-position, ); }
.from-0\% { --tw-gradient-from-position: 0%; }
.to-transparent { --tw-gradient-to: transparent; }
.to-\[20\%\] { --tw-gradient-to-position: 20%; }
.to-\[25\%\] { --tw-gradient-to-position: 25%; }
.from-overlay { --tw-gradient-from: var(--color-overlay); --tw-gradient-to: color-mix(in srgb, var(--color-overlay) 0%, transparent); --tw-gradient-stops: var(--tw-gradient-from) var(--tw-gradient-from-position, ), var(--tw-gradient-to) var(--tw-gradient-to-position, ); }
.via-overlay\/70 { --tw-gradient-to: color-mix(in srgb, var(--color-overlay) 0%, transparent); --tw-gradient-stops: var(--tw-gradient-from) var(--tw-gradient-from-position, ), color-mix(in srgb, var(--color-overlay) 70%, transparent) var(--tw-gradient-via-position, ), var(--tw-gradient-to) var(--tw-gradient-to-position, ); }
.via-\[40\%\] { --tw-gradient-via-position: 40%; }
.from-brand\/5 { --tw-gradient-from: color-mix(in srgb, var(--color-brand) 5%, transparent); --tw-gradient-to: color-mix(in srgb, var(--color-brand) 0%, transparent); --tw-gradient-stops: var(--tw-gradient-from) var(--tw-gradient-from-position, ), var(--tw-gradient-to) var(--tw-gradient-to-position, ); }

/* ─── Effects & States ─── */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-400 { transition-duration: 400ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.delay-75 { transition-delay: 75ms; }

.ease-\[cubic-bezier\(0\.25\,0\.46\,0\.45\,0\.94\)\] { transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.hover\:text-brand:hover { color: var(--color-brand); }
.hover\:text-stone-800:hover { color: var(--color-brand); } /* Replaced stone-800 with brand for consistency on hover */
.hover\:border-stone-400:hover { border-color: var(--color-brand); } /* Replaced stone-400 with brand for consistency on hover */
.hover\:border-brand:hover { border-color: var(--color-brand); }
.hover\:border-brand\/40:hover { border-color: color-mix(in srgb, var(--color-brand) 40%, transparent); }
.hover\:bg-transparent:hover { background-color: transparent; }
.hover\:bg-brand-dark:hover { background-color: var(--color-brand-dark); }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:translate-y-0 { transform: translateY(0); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:saturate-100 { filter: saturate(1); }
.group:hover .group-hover\:text-brand-soft { color: var(--color-brand-soft); }

.cursor-pointer { cursor: pointer; }
.cursor-zoom-in { cursor: zoom-in; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.resize-y { resize: vertical; }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-x-auto { overflow-x: auto; }

.origin-center { transform-origin: center; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-top { object-position: top; }
.object-\[center_30\%\] { object-position: center 30%; }

.saturate-\[0\.9\] { filter: saturate(0.9); }
.saturate-\[0\.88\] { filter: saturate(0.88); }
.saturate-\[1\.1\] { filter: saturate(1.1); }
.contrast-\[1\.05\] { filter: contrast(1.05); }

@media (hover: none), (pointer: coarse) {
  .saturate-\[0\.9\],
  .saturate-\[0\.88\] {
    filter: none;
  }
}

.break-inside-avoid { break-inside: avoid; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-brand:focus { border-color: var(--color-brand); }

.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hidden { display: none; }
.is-open { display: flex !important; opacity: 1 !important; pointer-events: auto !important; }

/* ─── Media Queries ─── */
@media (min-width: 640px) {
  .sm\:text-\[3\.5rem\] { font-size: 3.5rem; }
  .sm\:columns-2 { columns: 2; }
  .portfolio-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .portfolio-masonry { gap: 2rem; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex-col { flex-direction: column; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-start { align-items: flex-start; }
  .md\:mb-3\.5 { margin-bottom: 0.875rem; }
  .md\:mb-6 { margin-bottom: 1.5rem; }
  .md\:mb-8 { margin-bottom: 2rem; }
  .md\:mb-10 { margin-bottom: 2.5rem; }
  .md\:mb-12 { margin-bottom: 3rem; }
  .md\:mb-14 { margin-bottom: 3.5rem; }
  .md\:mb-16 { margin-bottom: 4rem; }
  .md\:mb-20 { margin-bottom: 5rem; }
  .md\:mb-24 { margin-bottom: 6rem; }
  .md\:mb-\[4\.5rem\] { margin-bottom: 4.5rem; }
  .md\:mt-0 { margin-top: 0; }
  .md\:mt-16 { margin-top: 4rem; }
  .md\:my-12 { margin-top: 3rem; margin-bottom: 3rem; }
  .md\:my-20 { margin-top: 5rem; margin-bottom: 5rem; }
  .md\:my-24 { margin-top: 6rem; margin-bottom: 6rem; }
  .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .md\:px-20 { padding-left: 5rem; padding-right: 5rem; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-\[4\.5rem\] { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .md\:pt-2 { padding-top: 0.5rem; }
  .md\:pt-16 { padding-top: 4rem; }
  .md\:pb-48 { padding-bottom: 12rem; }
  .md\:h-16 { height: 4rem; }
  .md\:h-\[600px\] { height: 600px; }
  .md\:h-\[340px\] { height: 340px; }
  .md\:h-\[260px\] { height: 260px; }
  .md\:pt-\[100px\] { padding-top: 100px; }
  .md\:pt-\[5rem\] { padding-top: 5rem; }
  .md\:pt-\[calc\(100px\+6rem\)\] { padding-top: calc(100px + 6rem); }
  .md\:text-\[0\.68rem\] { font-size: 0.68rem; }
  .md\:text-\[0\.7rem\] { font-size: 0.7rem; }
  .md\:text-\[0\.73rem\] { font-size: 0.73rem; }
  .md\:text-\[0\.74rem\] { font-size: 0.74rem; }
  .md\:text-\[0\.77rem\] { font-size: 0.77rem; }
  .md\:text-\[0\.85rem\] { font-size: 0.85rem; }
  .md\:text-\[0\.98rem\] { font-size: 0.98rem; }
  .md\:text-\[1\.1rem\] { font-size: 1.1rem; }
  .md\:text-\[1\.13rem\] { font-size: 1.13rem; }
  .md\:text-\[1\.35rem\] { font-size: 1.35rem; }
  .md\:text-\[1\.4rem\] { font-size: 1.4rem; }
  .md\:text-\[1\.5rem\] { font-size: 1.5rem; }
  .md\:text-\[2rem\] { font-size: 2rem; }
  .md\:text-\[2\.8rem\] { font-size: 2.8rem; }
  .md\:text-\[3rem\] { font-size: 3rem; }
  .md\:text-\[4\.5rem\] { font-size: 4.5rem; }
  .md\:text-\[5\.5rem\] { font-size: 5.5rem; }
  .md\:sticky { position: sticky; }
  .md\:top-\[120px\] { top: 120px; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:w-\[42\%\] { width: 42%; }
  .md\:w-\[40\%\] { width: 40%; }
  .md\:float-right { float: right; }
  .md\:ml-8 { margin-left: 2rem; }
  .md\:gap-8 { gap: 2rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:gap-16 { gap: 4rem; }
  .md\:gap-20 { gap: 5rem; }
  .md\:gap-24 { gap: 6rem; }
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
}

@media (min-width: 1024px) {
  .lg\:columns-3 { columns: 3; }
  .portfolio-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:pb-40 { padding-bottom: 10rem; }
  .lg\:text-\[7rem\] { font-size: 7rem; }
  .lg\:gap-24 { gap: 6rem; }
  .lg\:grid-cols-\[300px_1fr\] { grid-template-columns: 300px 1fr; }
}

/* Custom styles for pseudo-elements */
.before\:absolute::before { content: ""; position: absolute; }
.before\:top-0::before { top: 0; }
.before\:bottom-0::before { bottom: 0; }
.before\:left-0::before { left: 0; }
.before\:right-0::before { right: 0; }
.before\:h-\[2px\]::before { height: 2px; }
.before\:bg-gradient-to-r::before { background-image: none; }
.before\:opacity-70::before { opacity: 0.7; }
.before\:content-\[\'\'\]::before { content: ""; }
.before\:w-14::before { width: 3.5rem; }
.before\:bg-brand::before { background-color: var(--color-brand); }
.before\:opacity-60::before { opacity: 0.6; }
.before\:shrink-0::before { flex-shrink: 0; }

.after\:absolute::after { content: ""; position: absolute; }
.after\:bottom-0::after { bottom: 0; }
.after\:left-0::after { left: 0; }
.after\:h-\[1px\]::after { height: 1px; }
.after\:w-0::after { width: 0; }
.hover\:after\:w-full:hover::after { width: 100%; }
.after\:bg-brand::after { background-color: var(--color-brand); }
.after\:transition-all::after { transition: all 0.5s ease; }
.after\:duration-500::after { transition-duration: 500ms; }
.after\:duration-300::after { transition-duration: 300ms; }

/* Custom Tailwind plugins logic */
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Arbitrary variants */
/* Navigation Active States */
.site-nav__link.active { color: var(--color-brand) !important; }
.site-nav__link.active::after { width: 100% !important; }

/* Tailwind Arbitrary Variants Mapping */
.active\:bg-brand.active { background-color: var(--color-brand-dark) !important; }
.active\:text-stone-100.active { color: var(--color-stone-100) !important; }
.active\:border-brand.active { border-color: var(--color-brand-dark) !important; }
.\[\&_p\] p { color: var(--color-stone-700); font-size: 0.91rem; line-height: 2.05; margin-bottom: 1rem; }

/* Mobile menu */
#mobile-nav-toggle {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

#mobile-menu {
  display: flex;
  position: relative;
  z-index: 40;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: min(100%, 1400px);
  margin-inline: auto;
  padding: 0 1.5rem;
  pointer-events: none;
  border-top: 0;
  background-color: transparent;
  box-shadow: none;
  transition:
    max-height 0.65s cubic-bezier(0.25, 1, 0.3, 1),
    opacity 0.35s ease,
    padding-top 0.65s cubic-bezier(0.25, 1, 0.3, 1),
    padding-bottom 0.65s cubic-bezier(0.25, 1, 0.3, 1);
}

#mobile-nav-toggle:checked ~ #mobile-menu {
  max-height: 24rem;
  opacity: 1;
  padding-top: 1.2rem;
  padding-bottom: 1.4rem;
  pointer-events: auto;
}

#mobile-menu nav ul {
  align-items: flex-start !important;
  gap: 1.1rem;
}

#mobile-menu nav a {
  display: inline-block;
}

#mobile-menu nav {
  padding: 0;
}

#mobile-menu > span {
  display: block;
  padding: 0;
  margin-top: 1.25rem;
}

/* Header */
#site-header-el {
  position: fixed;
  isolation: isolate;
  border-bottom: 3px solid var(--color-brand);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, border-bottom-width 0.5s ease;
}

#site-header-el.is-scrolled {
  border-bottom-width: 1px;
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--color-stone-900) 22%, transparent);
}

#menu-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 60;
}

/* Shared top offset for pages with fixed header */
.page-content-offset {
  padding-top: calc(var(--header-height, 100px) + 1rem);
}

@media (min-width: 768px) {
  .page-content-offset {
    padding-top: calc(var(--header-height, 100px) + 1.5rem);
  }
}

@media (min-width: 768px) {
  #mobile-menu {
    display: none !important;
  }

  #mobile-nav-toggle {
    display: none;
  }
}


/* Lightbox */
#lightbox { z-index: 999; }
#lightbox.open { display: flex; }

#lb-prev,
#lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  padding: 1.25rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease;
}
#lb-prev { left: 0.5rem; }
#lb-next { right: 0.5rem; }
#lb-prev:hover,
#lb-next:hover { color: #ffffff; }

#lb-close {
  position: fixed;
  top: 1.75rem;
  right: 1.75rem;
  z-index: 1000;
  color: rgba(255,255,255,0.5);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease;
}
#lb-close:hover { color: #ffffff; }

#lb-counter {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Mobile Menu Animations */
#menu-toggle span { transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease; }
#mobile-nav-toggle:checked ~ .header-inner #menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#mobile-nav-toggle:checked ~ .header-inner #menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#mobile-nav-toggle:checked ~ .header-inner #menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 1.5rem; }

/* Home hero */
.hero-home {
  margin-top: calc(var(--header-height) - 1px);
}

.hero-home--full {
  width: 100%;
}

.hero-home__panel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-home__panel--single {
  height: calc(100vh - var(--header-height) + 1px);
}

.hero-home__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-home__image--single { object-position: center; }

.hero-home__content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 2.75rem;
  text-align: center;
}

.hero-home__body {
  width: 100%;
  min-width: 0;
  max-width: 41rem;
}

.hero-home__body .hero-text-body {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* Preserved from om-mig.html */
article[id], div[id] { scroll-margin-top: 112px; }

@media (max-width: 767px) {
  .hero-home__panel--single {
    height: calc(100vh - var(--header-height) + 1px);
  }

  .hero-home__content {
    padding-bottom: 2.75rem;
  }

  .hero-home__body .hero-text-body { max-width: 40ch; }
  .hero-home__body .hero-text-body { line-height: 1.75; }
}

@supports (height: 100dvh) {
  .hero-home__panel--single {
    height: calc(100dvh - var(--header-height) + 1px);
  }
}

@media (min-width: 768px) {
  .hero-home { margin-top: calc(var(--header-height) - 1px); }

  .hero-home__content {
    padding-left: 5rem;
    padding-right: 5rem;
    padding-bottom: 3.5rem;
  }
}

/* ─── Article System ─────────────────────────────────────────────────────── */

/* Hero image on single article page */
.article-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
  margin-bottom: 3.5rem;
}

.article-hero__image {
  width: 100%;
  height: 55vh;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    color-mix(in srgb, var(--color-overlay) 35%, transparent) 100%
  );
}

@media (min-width: 768px) {
  .article-hero__image {
    height: 68vh;
    min-height: 440px;
  }
}

/* Article body typography */
.article-body p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-stone-700);
  margin-bottom: 1.75rem;
}

/* Inline figure within article body */
.article-figure {
  margin: 3rem 0;
}

.article-figcaption {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-stone-500);
  margin-top: 0.875rem;
  line-height: 1.6;
}

/* Horizontal divider with brand→sage gradient */
.article-divider {
  height: 1px;
  background-image: linear-gradient(to right, var(--color-brand), var(--color-sage));
}

/* Utility: object-cover for article card images */
.h-\[240px\].object-cover,
.h-\[340px\].object-cover { object-fit: cover; }
