/* Interaction layer. No build step; content remains visible without JavaScript. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft:
    0 8px 28px rgb(35 39 35 / 0.06), 0 2px 6px rgb(35 39 35 / 0.025);
  --shadow-raised:
    0 18px 44px rgb(35 39 35 / 0.11), 0 4px 12px rgb(35 39 35 / 0.04);
}
:root[data-theme="dark"] {
  --shadow-soft: 0 8px 28px rgb(0 0 0 / 0.16);
  --shadow-raised: 0 18px 44px rgb(0 0 0 / 0.26);
}
html {
  scroll-padding-top: 120px;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.site-header {
  transition:
    box-shadow 0.25s,
    border-color 0.25s;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}
.scroll-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}
.button,
.circle-link,
.icon-button,
.mobile-actions a {
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.25s,
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.button:not(.button-ghost):not(.button-white) {
  box-shadow: 0 5px 16px rgb(143 50 27 / 0.12);
}
.button .icon,
.circle-link .icon,
.text-link > span {
  transition: transform 0.25s var(--ease-out);
}
.button:active:not(:disabled),
.circle-link:active,
.icon-button:active,
.mobile-actions a:active {
  transform: scale(0.96);
}
.button:disabled {
  box-shadow: none;
  cursor: wait;
}
.text-link {
  text-decoration-color: transparent;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}
.form-card,
.filter-panel,
.apply-card,
.auth-card,
.stat-card {
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}
.form-card:focus-within,
.filter-panel:focus-within,
.auth-card:focus-within {
  border-color: var(--blue);
  box-shadow: var(--shadow-raised);
}
input,
textarea,
select {
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px var(--soft-blue);
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--blue);
}
.upload-label {
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.upload-label:focus-within {
  border-color: var(--blue);
  background: var(--soft-blue);
}
.editorial-hero-photo > img,
.sector-editorial-photo > img,
.story-photos > img {
  border-radius: 6px;
  box-shadow: var(--shadow-raised);
}
.editorial-hero-photo > img {
  transition:
    transform 0.65s var(--ease-out),
    box-shadow 0.65s;
}
.contact-photo {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.contact-photo img,
.job-grid .card-image img {
  transition: transform 0.6s var(--ease-out);
}
.job-grid .job-card {
  transition:
    background-color 0.25s,
    box-shadow 0.25s;
}
.sector-list-link,
.process-list li {
  transition:
    padding 0.3s var(--ease-out),
    background-color 0.3s;
}
.faq-list details {
  transition:
    background-color 0.25s,
    box-shadow 0.25s;
}
.faq-list details[open] {
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.faq-list summary,
.faq-list details > p {
  padding-inline: 18px;
}
.faq-list summary > span {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.faq-list details[open] summary > span {
  transform: rotate(45deg);
}
.faq-list details[open] summary {
  color: var(--blue);
}
.motion-toggle {
  display: none;
}
.has-js .motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: inherit;
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.motion-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.motion-toggle[aria-pressed="true"]::before {
  background: #f6ad95;
  border-color: #f6ad95;
}
.motion-toggle:disabled {
  cursor: default;
  opacity: 0.8;
}
.footer-preferences {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}
.back-to-top {
  display: none;
  position: fixed;
  z-index: 35;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s,
    visibility 0.25s,
    transform 0.25s var(--ease-out);
}
.has-js .back-to-top {
  display: flex;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  color: var(--blue);
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-motion="full"] .scroll-reveal {
    transition:
      opacity 0.65s ease,
      translate 0.65s var(--ease-out);
  }
  html[data-motion="full"] .reveal-pending {
    opacity: 0;
    translate: 0 26px;
  }
  html[data-motion="full"] .reveal-pending:focus-within {
    opacity: 1;
    translate: none;
    transition: none;
  }
  html[data-motion="full"] .editorial-hero-copy > * {
    animation: intro-in 0.65s var(--ease-out) both;
  }
  html[data-motion="full"] .editorial-hero-copy h1 {
    animation-delay: 0.05s;
  }
  html[data-motion="full"] .editorial-hero-copy .hero-intro {
    animation-delay: 0.1s;
  }
  html[data-motion="full"] .editorial-hero-copy .hero-links {
    animation-delay: 0.15s;
  }
  html[data-motion="full"] .notice,
  html[data-motion="full"] .error-summary {
    animation: intro-in 0.3s var(--ease-out) both;
  }
  @keyframes intro-in {
    from {
      opacity: 0;
      translate: 0 15px;
    }
    to {
      opacity: 1;
      translate: none;
    }
  }
}
.reveal-immediate {
  transition: none !important;
}

/* Hover effects are limited to a mouse/trackpad: no sticky hover on phones. */
@media (hover: hover) and (pointer: fine) {
  .button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-raised);
  }
  .button:hover .icon,
  .circle-link:hover .icon {
    transform: translateX(3px);
  }
  .button:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
  }
  .text-link:hover > span {
    transform: translate(2px, -2px);
  }
  .text-link:hover {
    text-decoration: underline;
    text-decoration-color: currentColor;
  }
  .editorial-hero-photo > img:hover {
    transform: scale(1.012);
  }
  .contact-photo:hover img,
  .job-grid .job-card:hover .card-image img {
    transform: scale(1.055);
  }
  .job-grid .job-card:hover {
    background: var(--card);
    box-shadow:
      0 0 0 12px var(--card),
      var(--shadow-soft);
  }
  .sector-list-link:hover,
  .process-list li:hover {
    padding-inline: 14px;
    background: var(--card);
  }
}

@media (max-width: 950px) {
  html:not(.has-js) .site-header {
    position: static;
  }
  html:not(.has-js) .theme-toggle {
    display: none;
  }
  .catalog-grid .card-body h3,
  .catalog-grid .card-meta {
    align-self: auto;
  }
  .main-nav {
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .has-js .main-nav,
  .has-js .main-nav.open {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-9px);
    box-shadow: var(--shadow-raised);
    transition:
      opacity 0.2s,
      transform 0.25s var(--ease-out),
      visibility 0.25s;
  }
  .has-js .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .main-nav > a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 6px;
  }
  .main-nav > a.active {
    color: var(--blue);
    background: var(--soft-blue);
  }
  .main-nav .mobile-nav-link {
    display: flex;
  }
  .menu-toggle .icon {
    transition: transform 0.25s var(--ease-out);
  }
  .menu-toggle[aria-expanded="true"] .icon {
    transform: rotate(90deg);
  }
  .menu-toggle[aria-expanded="true"] {
    color: var(--blue);
    background: var(--soft-blue);
    border-radius: 6px;
  }
  html:not(.has-js) .menu-toggle {
    display: none;
  }
  html:not(.has-js) .main-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    padding: 10px 0;
    flex-basis: 100%;
    order: 4;
  }
  .contact-grid {
    gap: 28px;
  }
  .form-card {
    padding: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Click-to-enlarge industry photographs; no external lightbox dependency. */
.zoomable-photo {
  position: relative;
}
.zoomable-photo > img {
  cursor: zoom-in;
}
.photo-zoom {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ffffff60;
  background: #ffffffeb;
  color: #232723;
  box-shadow: 0 4px 16px #0002;
  font:
    300 28px/1 Manrope,
    sans-serif;
  cursor: zoom-in;
  transition:
    transform 0.2s,
    background 0.2s;
}
.photo-zoom:hover {
  background: #fff;
  transform: scale(1.08);
}
.photo-zoom:active {
  transform: scale(0.94);
}
.photo-open {
  overflow: hidden;
}
.photo-lightbox {
  border: 0;
  border-radius: 12px;
  padding: 14px;
  width: min(1050px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 100px #0006;
}
.photo-lightbox::backdrop {
  background: rgb(10 15 12 / 0.84);
}
.photo-lightbox > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72dvh, 760px);
  margin-inline: auto;
  object-fit: contain;
  border-radius: 5px;
}
.photo-lightbox > form {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.lightbox-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 30px;
  cursor: pointer;
}
.lightbox-caption {
  margin: 12px 0 0;
  padding: 0 4px;
  font-size: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="full"] .photo-lightbox[open] {
    animation: photo-dialog-in 0.25s var(--ease-out) both;
  }
  @keyframes photo-dialog-in {
    from {
      opacity: 0;
      transform: scale(0.96);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 650px) {
  .job-grid .card-body h3,
  .job-grid .card-meta {
    align-self: auto;
  }
  html {
    scroll-padding-top: 95px;
  }
  .header-inner {
    min-height: 76px;
    gap: 5px;
  }
  .header-tools {
    gap: 4px;
  }
  .header-tools .theme-toggle,
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    border-radius: 6px;
  }
  .languages a {
    min-height: 44px;
    min-width: 24px;
    font-size: 9px;
  }
  .main-nav {
    padding: 12px 20px 20px;
  }
  .main-nav > a {
    font-size: 15px;
  }
  .editorial-hero {
    padding-top: 30px;
  }
  .editorial-hero-copy .hero-intro {
    font-size: 14px;
    line-height: 1.8;
  }
  .editorial-hero-photo > img {
    height: 330px;
    border-radius: 8px;
  }
  .editorial-search {
    gap: 17px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
  }
  .editorial-search label > span {
    font-size: 12px;
  }
  .editorial-search input {
    font-size: 16px;
    min-height: 42px;
  }
  .editorial-search .button {
    min-height: 50px;
  }
  .form-card {
    padding: 25px 20px;
    border-radius: 12px;
  }
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  .filter-panel input,
  .filter-panel select {
    font-size: 16px;
    min-height: 48px;
  }
  input[type="file"] {
    font-size: 13px !important;
    width: 100%;
  }
  label {
    font-size: 13px;
  }
  .checkbox {
    font-size: 12px;
    line-height: 1.7;
    padding-block: 5px;
  }
  .checkbox input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }
  .filter-panel form {
    gap: 0 12px;
  }
  .filter-panel label {
    min-width: 0;
  }
  .filter-panel h2 {
    font-size: 24px;
  }
  .job-grid .job-card {
    border-radius: 8px;
  }
  .card-body .location {
    font-size: 12px;
  }
  .card-meta > span {
    font-size: 10px;
  }
  .card-bottom strong {
    font-size: 13px;
  }
  .circle-link {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .sector-list-link strong {
    font-size: 22px;
  }
  .sector-list-link > span > span {
    font-size: 12px;
  }
  .process-list p,
  .empty-offers p {
    font-size: 13px;
  }
  .faq-list summary {
    font-size: 14px;
    padding: 22px 12px;
  }
  .faq-list details > p {
    font-size: 13px;
    padding-inline: 12px;
  }
  .mobile-actions {
    box-shadow: 0 -4px 20px rgb(0 0 0 / 0.08);
    padding-bottom: env(safe-area-inset-bottom);
    transition:
      transform 0.2s,
      opacity 0.2s,
      visibility 0.2s;
  }
  .mobile-actions a {
    min-height: 58px;
    font-size: 13px;
  }
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }
  .editing-form .mobile-actions {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .back-to-top {
    right: 16px;
    bottom: calc(75px + env(safe-area-inset-bottom));
  }
  .editing-form .back-to-top {
    visibility: hidden;
    opacity: 0;
  }
  .footer-preferences {
    gap: 10px 25px;
  }
  .footer-bottom a,
  .motion-toggle {
    min-height: 44px;
    font-size: 11px;
  }
  .footer-bottom a {
    display: inline-flex;
    align-items: center;
  }
  html:not(.has-js) .header-inner {
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  .brand {
    font-size: 20px;
    letter-spacing: -1.2px;
  }
  .brand small {
    font-size: 5.7px;
  }
  .header-tools {
    gap: 1px;
  }
  .header-inner {
    gap: 2px;
  }
  .languages a {
    font-size: 8px;
  }
  .editorial-search {
    padding: 18px;
  }
  .filter-panel form {
    grid-template-columns: 1fr;
  }
  .job-grid .job-card,
  .job-grid.catalog-grid .job-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }
  .job-grid .card-bottom {
    flex-wrap: wrap;
  }
}
/* Both the system setting and our optional control disable nonessential motion. */
html[data-motion="reduced"] {
  scroll-behavior: auto;
}
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation: none !important;
  transition: none !important;
}
html[data-motion="reduced"] .reveal-pending {
  opacity: 1;
  translate: none;
}
html[data-motion="reduced"] .button,
html[data-motion="reduced"] .circle-link,
html[data-motion="reduced"] .icon-button,
html[data-motion="reduced"] .mobile-actions a,
html[data-motion="reduced"] .editorial-hero-photo img,
html[data-motion="reduced"] .card-image img,
html[data-motion="reduced"] .contact-photo img {
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1 !important;
    translate: none !important;
  }
}
@media print {
  .reveal-pending {
    opacity: 1 !important;
    translate: none !important;
  }
  .scroll-progress,
  .back-to-top,
  .motion-toggle,
  .mobile-actions {
    display: none !important;
  }
}
