/**
 * Olga Fisher portfolio body styles (scoped — does not restyle Fisher chrome).
 */

@font-face {
  font-family: "SK-Modernist";
  src: url("../fonts/Sk-Modernist-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SK-Modernist";
  src: url("../fonts/Sk-Modernist-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.olga-page {
  --olga-text: #111;
  --olga-muted: #5d5d5d;
  --olga-line: #000;
  --olga-surface: #ebebeb;
  --olga-btn-bg: #000;
  --olga-btn-fg: #fff;
  font-family: "SK-Modernist", system-ui, sans-serif;
  color: var(--olga-text);
  background: transparent;
}

/* Full-bleed Olga body: Fisher .studio-main shell must not clip section backgrounds */
body.studio-body main#studio-main.studio-main.olga-page {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  body.studio-body main#studio-main.studio-main.olga-page {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

html[data-bs-theme="dark"] .olga-page {
  --olga-text: #f2f2f2;
  --olga-muted: #b5b5b5;
  --olga-line: #666;
  --olga-surface: #1c1c1c;
  --olga-btn-bg: #f2f2f2;
  --olga-btn-fg: #111;
}

/* Black PNG marks → readable on dark chrome / surfaces */
html[data-bs-theme="dark"] .studio-topbar__logo img,
html[data-bs-theme="dark"] .studio-overlay-logo img,
html[data-bs-theme="dark"] .studio-footer__logo,
html[data-bs-theme="dark"] .studio-footer__logo-link img,
html[data-bs-theme="dark"] .olga-hero__social img,
html[data-bs-theme="dark"] .olga-contact__social img {
  filter: invert(1);
}

html[data-bs-theme="dark"] .studio-footer__icon-btn.bg-dark {
  background-color: #f2f2f2 !important;
  color: #111 !important;
}

.olga-page * {
  box-sizing: border-box;
}

.olga-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.olga-container {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: 15px;
}

.olga-page h1,
.olga-page h2,
.olga-page h3,
.olga-page h4 {
  line-height: 1.3;
  color: var(--olga-text);
  font-weight: 700;
}

.olga-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.75rem 0 2.5rem;
  font-weight: 600;
}

.olga-page h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin: 3rem 0;
  font-weight: 600;
}

.olga-page h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
}

.olga-page h4 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  padding-top: 1.5rem;
  font-weight: 600;
}

.olga-page p {
  font-size: 1rem;
  color: var(--olga-text);
  font-weight: 500;
}

/* Hero — match original Olga first-section */
.olga-hero {
  margin: 4rem 0 9rem;
}

.olga-hero__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.olga-hero__copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 34rem;
}

.olga-hero__name {
  margin: 0 0 0.25rem;
  padding-top: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--olga-text);
}

.olga-hero__title {
  margin: 0.9rem 0 3.75rem;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--olga-text);
}

.olga-hero__visual {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
}

.olga-page .olga-hero__photo {
  width: 300px;
  max-width: none;
  height: auto;
  display: block;
}

.olga-hero__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 40px;
}

.olga-hero__social a {
  display: inline-flex;
  line-height: 0;
}

.olga-hero__social img {
  width: 25px;
  height: auto;
  padding: 5px 0;
  transition: opacity 0.3s;
}

.olga-hero__social a:hover img {
  opacity: 0.6;
}

.olga-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  background: var(--olga-btn-bg);
  color: var(--olga-btn-fg);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 2px solid var(--olga-btn-bg);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.olga-btn:hover,
.olga-btn:focus-visible {
  background: transparent;
  color: var(--olga-text);
}

/* Portfolio */
.olga-portfolio {
  margin-bottom: 6rem;
}

.olga-portfolio__rule {
  border: 0;
  border-top: 1px solid var(--olga-line);
  margin: 0;
}

.olga-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  padding: 1.75rem 0 4rem;
  justify-content: center;
}

.olga-tabs__btn {
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--olga-muted);
  cursor: pointer;
  padding: 0.15rem 0;
}

.olga-tabs__btn.is-active {
  text-decoration: line-through;
  color: var(--olga-text);
}

.olga-tabs__panel {
  display: none;
}

.olga-tabs__panel.is-active {
  display: block;
}

.olga-projects {
  display: flex;
  gap: 10px;
  margin-bottom: 5rem;
  align-items: stretch;
  width: 100%;
}

.olga-projects--tight {
  margin-bottom: 5px;
}

.olga-projects__col {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  line-height: 0;
}

.olga-projects__col .olga-projects__title-group {
  line-height: 1.3;
}

.olga-projects__media {
  width: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--olga-muted) 18%, transparent);
  line-height: 0;
}

.olga-projects__media a {
  display: block;
  color: inherit;
  line-height: 0;
}

.olga-page .olga-projects__img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  transition: transform 0.7s ease;
}

.olga-projects__media:hover .olga-projects__img--zoom {
  transform: scale(1.08);
}

.olga-projects__title-group {
  text-align: center;
}

.olga-projects__title-group p {
  color: var(--olga-muted);
}

.olga-projects__media[data-tab] {
  cursor: pointer;
}

/* Legal pages — match Fisher Design shell (no Olga portfolio typography) */
@media (max-width: 991.98px) {
  .studio-main.studio-main--legal {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}

.studio-legal-page__content h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--studio-text);
}

.studio-legal-page__content code {
  font-size: 0.9em;
  word-break: break-word;
}

/* Contact block (Olga body — not Fisher footer) */
.olga-contact {
  background: var(--olga-surface);
  text-align: center;
  padding: 3.125rem 0;
  margin-top: 4rem;
  width: 100%;
}

.olga-contact__social {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.olga-contact__social img {
  width: 50px;
  transition: opacity 0.3s;
}

.olga-contact__social a:hover img {
  opacity: 0.6;
}

.olga-contact__title {
  margin: 3.75rem auto 3.125rem;
  width: min(560px, 100%);
  max-width: 560px;
}

.olga-contact__honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.olga-contact__turnstile {
  margin: 0.5rem 0 0.25rem;
}

.olga-contact__turnstile:empty,
.olga-contact__turnstile[hidden] {
  display: none;
}

.olga-contact__form {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: none;
}

.olga-contact__fields {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0 auto 0;
}

.olga-contact__fields input,
.olga-contact__fields textarea {
  width: 50%;
  max-width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 15px 20px;
  border: 0;
  background: #fff;
  color: #111;
  resize: none;
  min-height: 3rem;
  box-sizing: border-box;
}

html[data-bs-theme="dark"] .olga-contact__fields input,
html[data-bs-theme="dark"] .olga-contact__fields textarea {
  background: #111;
  color: #f2f2f2;
}

.olga-contact__fields textarea {
  min-height: 7rem;
  margin-bottom: 0.75rem;
}

.olga-contact__submit {
  align-self: center;
  margin-top: 0.25rem;
  padding: 8px 17px;
  font-size: 0.875rem;
}

.olga-contact__submit:disabled,
.olga-contact__submit[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.olga-contact__status {
  margin: 0;
  font-size: 0.95rem;
}

.olga-contact__status:empty {
  display: none;
}

.olga-contact__status:not(:empty) {
  margin-top: 0.75rem;
}

.olga-contact__status.is-ok {
  color: #0a7a32;
}

.olga-contact__status.is-error {
  color: #b00020;
}

/* Chrome logo sizing for Olga mark */
.studio-topbar__logo img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 12rem;
}

.studio-overlay-logo img {
  display: block;
  height: 7rem;
  width: auto;
  max-width: none;
}

.studio-footer__logo,
.studio-footer__logo-link img {
  display: block;
  height: 5rem;
  width: auto;
  max-width: none;
  max-height: none;
}

.studio-footer__logo-link {
  max-height: none;
}

.studio-theme-toggle-menu {
  margin-top: 1rem;
}

@media (max-width: 991.98px) {
  .studio-footer__top > .col-lg-7 {
    margin-top: 3rem;
  }
}

@media (max-width: 1100px) {
  .olga-projects {
    flex-direction: column;
    align-items: stretch;
  }

  .olga-projects__col {
    flex-grow: 1 !important;
    width: 100%;
    max-width: 100%;
  }

  .olga-projects__title-group {
    margin-bottom: 3rem;
  }

  .olga-portfolio {
    margin-bottom: 2rem;
  }
}

@media (max-width: 900px) {
  .olga-hero__grid {
    flex-wrap: wrap;
  }

  .olga-hero__copy {
    max-width: none;
  }

  .olga-hero__visual {
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .olga-hero {
    margin: 4rem 0 5rem;
  }

  .olga-hero__grid {
    flex-direction: column;
    align-items: stretch;
  }

  .olga-hero__copy {
    margin-bottom: 5rem;
  }

  .olga-hero__name {
    padding-top: 0.5rem;
  }

  .olga-hero__title {
    margin-bottom: 2.5rem;
  }

  .olga-hero__visual {
    justify-content: center;
    width: 100%;
  }

  .olga-hero__social {
    margin-left: 1.5rem;
  }

  .olga-contact__title {
    width: auto;
    max-width: none;
  }

  .olga-contact__fields input,
  .olga-contact__fields textarea {
    width: 100%;
  }

  .olga-tabs__nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .olga-tabs__nav::-webkit-scrollbar {
    display: none;
  }

  .olga-tabs__btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 440px) {
  .olga-page .olga-hero__photo {
    width: 90%;
    max-width: 90%;
  }

  .olga-hero__social {
    margin-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .olga-projects__img,
  .olga-btn,
  .olga-hero__social img,
  .olga-contact__social img {
    transition: none;
  }

  .olga-projects__media:hover .olga-projects__img--zoom {
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   Accessibility bridge: Fisher a11y targets .studio-main / --studio-* vars.
   Olga body uses .olga-page / --olga-* — map contrast + harden form fields.
   ------------------------------------------------------------------------- */

html.studio-a11y-light-contrast .olga-page,
html.studio-a11y-light-contrast[data-bs-theme="light"] .olga-page,
html.studio-a11y-light-contrast[data-bs-theme="dark"] .olga-page {
  --olga-text: #111 !important;
  --olga-muted: #333 !important;
  --olga-line: #000 !important;
  --olga-surface: #f2f2f2 !important;
  --olga-btn-bg: #000 !important;
  --olga-btn-fg: #fff !important;
  color: #111 !important;
  background: #fff !important;
}

html.studio-a11y-high-contrast .olga-page,
html.studio-a11y-high-contrast[data-bs-theme="light"] .olga-page,
html.studio-a11y-high-contrast[data-bs-theme="dark"] .olga-page {
  --olga-text: #fff !important;
  --olga-muted: #f2f2f2 !important;
  --olga-line: #fff !important;
  --olga-surface: #111 !important;
  --olga-btn-bg: #fff !important;
  --olga-btn-fg: #000 !important;
  color: #fff !important;
  background: #000 !important;
}

html.studio-a11y-light-contrast .olga-contact__fields input,
html.studio-a11y-light-contrast .olga-contact__fields textarea {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #333 !important;
}

html.studio-a11y-high-contrast .olga-contact__fields input,
html.studio-a11y-high-contrast .olga-contact__fields textarea {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

html.studio-a11y-text-align .olga-page,
html.studio-a11y-text-align .olga-hero__copy,
html.studio-a11y-text-align .olga-portfolio,
html.studio-a11y-text-align .olga-contact,
html.studio-a11y-text-align .studio-legal-page__content {
  text-align: center !important;
}

html.studio-a11y-readable-font .olga-page,
html.studio-a11y-readable-font .olga-page * {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
}

html.studio-a11y-stop-animations .olga-page,
html.studio-a11y-stop-animations .olga-page * {
  animation: none !important;
  transition: none !important;
}

html.studio-a11y-highlight-content .olga-page p,
html.studio-a11y-highlight-content .olga-page li,
html.studio-a11y-highlight-content .olga-page h1,
html.studio-a11y-highlight-content .olga-page h2,
html.studio-a11y-highlight-content .olga-page h3,
html.studio-a11y-highlight-content .olga-page h4 {
  outline: 1px dashed #0612f4;
  outline-offset: 3px;
}

html.studio-a11y-highlight-links .olga-page a {
  outline: 2px solid #0612f4 !important;
  background: #0612f41f !important;
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
}

html.studio-a11y-monochrome .olga-page {
  filter: grayscale(1);
}

html.studio-a11y-large-cursor .olga-page,
html.studio-a11y-large-cursor .olga-page * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1.2' d='M4 2v24l7-7 4 12 3-1-4-12h9z'/%3E%3C/svg%3E") 2 2, auto !important;
}

