/* Otter Media marketing chrome — FI/EN home + privacy. Self-contained, no framework. */

:root {
  --om-bg: #000;
  --om-bg-elev: #0a0a0a;
  --om-fg: #f5f5f5;
  --om-fg-muted: #a1a1a1;
  --om-fg-faint: #6f6f6f;
  --om-line: rgba(255, 255, 255, 0.1);
  --om-line-strong: rgba(255, 255, 255, 0.28);
  --om-accent: #d7c4a3;
  --om-max: 72rem;
  --om-gutter: clamp(1.25rem, 5vw, 3rem);
  --om-nav-h: 4.25rem;
  --om-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --om-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  color-scheme: dark;
  background: var(--om-bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--om-nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--om-bg);
  color: var(--om-fg);
  font-family: var(--om-font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

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

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

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

::selection {
  background: var(--om-accent);
  color: #000;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 5px;
  border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

:focus-visible {
  outline: 2px solid var(--om-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.om-container {
  width: 100%;
  max-width: var(--om-max);
  margin: 0 auto;
  padding: 0 var(--om-gutter);
}

/* ---- Navigation -------------------------------------------------------- */

.om-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--om-nav-h);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--om-line);
}

.om-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--om-nav-h);
}

.om-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--om-fg);
}

.om-mark {
  display: block;
  flex-shrink: 0;
  height: 1.35rem;
  width: auto;
  max-width: none;
  object-fit: contain;
  aspect-ratio: 1672 / 941;
}

.om-nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.om-nav-link {
  font-size: 0.875rem;
  color: var(--om-fg-muted);
  transition: color 0.15s ease;
}

.om-nav-link:hover {
  color: var(--om-fg);
}

.om-nav-link--lang {
  color: var(--om-fg);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.om-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  color: var(--om-fg);
}

.om-menu-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.om-menu-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  fill: none;
}

.om-menu-btn .om-icon-close {
  display: none;
}

.om-menu-btn[aria-expanded="true"] .om-icon-menu {
  display: none;
}

.om-menu-btn[aria-expanded="true"] .om-icon-close {
  display: block;
}

.om-mobile-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #000;
  border-bottom: 1px solid var(--om-line);
  padding: 0.5rem var(--om-gutter) 1.25rem;
}

.om-mobile-panel.is-open {
  display: block;
}

.om-mobile-panel a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  color: var(--om-fg-muted);
  border-bottom: 1px solid var(--om-line);
}

.om-mobile-panel a:last-child {
  border-bottom: 0;
}

.om-mobile-panel a:hover,
.om-mobile-panel a.is-primary {
  color: var(--om-fg);
}

@media (min-width: 768px) {
  .om-nav__links {
    display: flex;
  }

  .om-menu-btn,
  .om-mobile-panel {
    display: none !important;
  }
}

/* ---- Buttons ----------------------------------------------------------- */

.om-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.9rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s var(--om-ease);
}

.om-btn:active {
  transform: translateY(1px);
}

.om-btn--primary {
  background: var(--om-fg);
  color: #000;
}

.om-btn--primary:hover {
  background: #fff;
}

.om-btn--ghost {
  border-color: var(--om-line-strong);
  color: var(--om-fg);
}

.om-btn--ghost:hover {
  border-color: var(--om-fg);
}

.om-btn--sm {
  height: 2.3rem;
  padding: 0 1.05rem;
  font-size: 0.8125rem;
}

.om-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.om-btn.is-success {
  background: var(--om-accent);
  color: #000;
}

/* ---- Hero -------------------------------------------------------------- */

.om-hero {
  position: relative;
  padding: calc(var(--om-nav-h) + clamp(4rem, 12vh, 8rem)) 0 clamp(3.5rem, 9vh, 6rem);
  overflow: hidden;
}

.om-hero::before {
  content: "";
  position: absolute;
  top: -28rem;
  left: 50%;
  width: 70rem;
  height: 50rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(215, 196, 163, 0.14), transparent 72%);
  filter: blur(48px);
  pointer-events: none;
}

.om-hero .om-container {
  position: relative;
}

.om-hero h1 {
  margin: 0 0 1.5rem;
  max-width: 17ch;
  font-size: clamp(2.5rem, 6.4vw, 4.9rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.om-hero h1 .om-dim {
  color: var(--om-fg-muted);
}

.om-hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--om-fg-muted);
}

.om-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.om-kicker {
  display: block;
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--om-accent);
}

/* ---- Stats ------------------------------------------------------------- */

.om-stats {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--om-line);
  border-bottom: 1px solid var(--om-line);
}

.om-stat {
  padding: 1.75rem 0;
}

.om-stat + .om-stat {
  border-top: 1px solid var(--om-line);
}

.om-stat strong {
  display: block;
  font-size: clamp(2.1rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.om-stat span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--om-fg-faint);
}

@media (min-width: 768px) {
  .om-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .om-stat {
    padding: 2.25rem 2.5rem 2.25rem 0;
  }

  .om-stat + .om-stat {
    border-top: 0;
    border-left: 1px solid var(--om-line);
    padding-left: 2.5rem;
  }
}

/* ---- Sections ---------------------------------------------------------- */

.om-section {
  padding: clamp(4.5rem, 10vh, 7rem) 0;
}

.om-section--line {
  border-top: 1px solid var(--om-line);
}

.om-section-head {
  max-width: 40rem;
  margin: 0 0 3rem;
}

.om-section-head h2,
.om-h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.om-section-head p:not(.om-kicker) {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  color: var(--om-fg-muted);
}

.om-section-head + .om-grid {
  margin-top: 0;
}

.om-subsection {
  margin-top: clamp(4rem, 9vh, 6rem);
}

/* ---- Portfolio grid ---------------------------------------------------- */

.om-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2.5rem;
}

.om-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.45rem 0 1.55rem;
  border-top: 1px solid var(--om-line);
  transition: border-color 0.22s ease;
}

.om-card:hover {
  border-top-color: var(--om-line-strong);
}

.om-card h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--om-fg);
}

.om-card h3::after {
  content: "↗";
  flex: none;
  font-weight: 400;
  color: var(--om-fg-faint);
  transition: transform 0.22s var(--om-ease), color 0.22s ease;
}

.om-card--internal h3::after {
  content: "→";
}

.om-card:hover h3::after {
  color: var(--om-fg);
  transform: translate(2px, -2px);
}

.om-card--internal:hover h3::after {
  transform: translateX(3px);
}

.om-card-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--om-fg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .om-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .om-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- Services ---------------------------------------------------------- */

.om-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 4rem;
}

.om-services .om-section-head {
  margin-bottom: 0;
}

.om-service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.om-service {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--om-line);
}

.om-service:last-child {
  border-bottom: 1px solid var(--om-line);
}

.om-service__num {
  padding-top: 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--om-fg-faint);
  font-variant-numeric: tabular-nums;
}

.om-service h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.om-service p {
  margin: 0;
  color: var(--om-fg-muted);
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .om-services {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

/* ---- Contact ----------------------------------------------------------- */

.om-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 4rem;
}

.om-contact .om-section-head {
  margin-bottom: 0;
}

.om-contact__meta {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--om-fg-muted);
}

.om-contact__meta a {
  color: var(--om-fg);
  border-bottom: 1px solid var(--om-line-strong);
  transition: border-color 0.15s ease;
}

.om-contact__meta a:hover {
  border-color: var(--om-fg);
}

.om-form {
  display: grid;
  gap: 1.25rem;
}

.om-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.om-field {
  display: grid;
  gap: 0.5rem;
}

.om-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--om-fg-muted);
}

.om-form-field {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--om-line);
  background: var(--om-bg-elev);
  color: var(--om-fg);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.om-form-field::placeholder {
  color: var(--om-fg-faint);
}

.om-form-field:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.om-form-field:focus {
  border-color: var(--om-line-strong);
  background: #0d0d0d;
}

.om-form-field:focus-visible {
  outline: none;
}

textarea.om-form-field {
  resize: vertical;
  min-height: 8rem;
}

.om-form .om-btn {
  width: 100%;
  height: 3.1rem;
}

@media (min-width: 640px) {
  .om-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .om-form .om-btn {
    width: auto;
    justify-self: start;
    padding: 0 1.75rem;
  }
}

@media (min-width: 1024px) {
  .om-contact {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

/* ---- Footer ------------------------------------------------------------ */

.om-footer {
  border-top: 1px solid var(--om-line);
  padding: 2.75rem 0 3rem;
}

.om-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  font-size: 0.85rem;
  color: var(--om-fg-faint);
}

.om-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.om-footer__nav a {
  color: var(--om-fg-muted);
  transition: color 0.15s ease;
}

.om-footer__nav a:hover {
  color: var(--om-fg);
}

.om-footer .om-brand {
  font-size: 0.95rem;
}

.om-footer .om-mark {
  height: 1.15rem;
}

/* ---- Prose (privacy) --------------------------------------------------- */

.om-page-hero {
  padding: calc(var(--om-nav-h) + clamp(3.5rem, 10vh, 6rem)) 0 clamp(2.5rem, 6vh, 4rem);
}

.om-page-hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.om-page-hero p {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--om-fg-muted);
}

.om-page-body {
  padding-bottom: clamp(4.5rem, 10vh, 7rem);
}

.om-prose {
  max-width: 44rem;
  color: var(--om-fg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.om-prose > p:first-child,
.om-prose .om-lead {
  font-size: 1.1rem;
  color: var(--om-fg);
}

.om-prose p {
  margin: 0 0 1.25rem;
}

.om-prose strong {
  color: var(--om-fg);
  font-weight: 500;
}

.om-prose a {
  color: var(--om-fg);
  border-bottom: 1px solid var(--om-line-strong);
  transition: border-color 0.15s ease;
}

.om-prose a:hover {
  border-color: var(--om-fg);
}

.om-prose ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.om-prose li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
}

.om-prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.5rem;
  height: 1px;
  background: var(--om-fg-faint);
}

.om-prose section {
  padding-top: 2.25rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--om-line);
}

.om-prose h2 {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--om-fg);
}

.om-prose h2 .om-num {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--om-fg-faint);
  font-variant-numeric: tabular-nums;
}

.om-note {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--om-line);
  border-radius: 0.75rem;
  background: var(--om-bg-elev);
}

.om-note p {
  margin: 0;
}

.om-note .om-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--om-fg-faint);
}

.om-backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-size: 0.925rem;
  color: var(--om-fg-muted);
  transition: color 0.15s ease;
}

.om-backlink:hover {
  color: var(--om-fg);
}

/* ---- Motion ------------------------------------------------------------ */

@keyframes om-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.om-hero .om-kicker,
.om-hero h1,
.om-hero__lead,
.om-hero__actions {
  animation: om-rise 0.55s var(--om-ease) both;
}

.om-hero h1 {
  animation-delay: 0.05s;
}

.om-hero__lead {
  animation-delay: 0.1s;
}

.om-hero__actions {
  animation-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
