/* ──────────────────────────────────────────────────────────────────────────
   TORATAY // BLOK DESIGN — what theme.json can't express.
   Values follow the Next.js site one for one (Tailwind classes noted where
   useful). Loaded on the site and inside the editor (add_editor_style).
   Class conventions set on blocks (Advanced → Additional CSS classes):
     d-scramble  text that scrambles in when it enters the viewport
     d-reveal    block that fades and rises in (d-reveal-fade: fade only)
     toratay-*   a design component (see the sections below)
   ────────────────────────────────────────────────────────────────────────── */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: clip;
}

/* Accent, not black or white: it has to show on every field. */
::selection {
  background: #ff5a1f;
  color: #000;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

img,
svg,
video {
  display: block;
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}
.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* No gaps between full-width sections or around template parts. */
.wp-site-blocks > *,
.wp-site-blocks > * + * {
  margin-block: 0;
}
main.wp-block-group {
  margin: 0;
}
.entry-content > .alignfull + .alignfull,
.wp-block-post-content > * + * {
  margin-block-start: 0;
}

/* ── Type ─────────────────────────────────────────────────────────────── */

.c-label,
.is-style-label {
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
}

.c-cap,
.is-style-caption {
  font-size: 11px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase;
}

.is-style-display {
  font-weight: 500 !important;
  font-size: clamp(3.6rem, 12vw, 12rem) !important;
  line-height: 0.88 !important;
  letter-spacing: -0.055em !important;
}

.is-style-statement {
  font-weight: 500 !important;
  font-size: clamp(3rem, 9.5vw, 10.5rem) !important;
  line-height: 0.88 !important;
  letter-spacing: -0.04em !important;
  text-transform: uppercase;
}

.c-link,
.is-style-link a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.c-link:hover,
.is-style-link a:hover {
  background-size: 0% 1px;
  background-position: 100% 100%;
}

/* Readable measures. */
.mw-18 {
  max-width: 18ch;
}
.mw-20 {
  max-width: 20ch;
}
.mw-22 {
  max-width: 22ch;
}
.mw-30 {
  max-width: 30ch;
}
.mw-40 {
  max-width: 40ch;
}
.mw-44 {
  max-width: 44ch;
}
.mw-46 {
  max-width: 46ch;
}
.mw-48 {
  max-width: 48ch;
}
.mw-52 {
  max-width: 52ch;
}
.mw-56 {
  max-width: 56ch;
}
.mw-68 {
  max-width: 68ch;
}

/* ── Brand mark: emblem + wordmark drawn in the current text colour ───── */

.toratay-brand {
  margin: 0;
}
.toratay-brand a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0;
  color: inherit;
}
.toratay-brand a::before,
.toratay-brand a::after {
  content: "";
  display: block;
  background: currentColor;
}
.toratay-brand a::before {
  width: 21px;
  height: 28px;
  -webkit-mask: url(../images/brand/toratay-emblem.svg) center / contain no-repeat;
  mask: url(../images/brand/toratay-emblem.svg) center / contain no-repeat;
}
.toratay-brand a::after {
  width: 65px;
  height: 18px;
  -webkit-mask: url(../images/brand/toratay-wordmark.svg) center / contain no-repeat;
  mask: url(../images/brand/toratay-wordmark.svg) center / contain no-repeat;
}

/* ── Header: bar, mega panels, mobile menu ────────────────────────────── */

.toratay-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  view-transition-name: site-header;
}
body.admin-bar .toratay-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}
.toratay-skip {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 80;
  transform: translateY(-6rem);
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
}
.toratay-skip:focus {
  transform: none;
}
.toratay-bar {
  height: 4rem;
  gap: 1.5rem;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.toratay-bar > .wp-block-navigation {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.toratay-bar .wp-block-navigation .wp-block-navigation__container {
  gap: 2.25rem;
}
.toratay-bar .wp-block-navigation-item__content {
  transition: opacity 0.2s;
}
.toratay-bar .wp-block-navigation-item:not(.toratay-mega-trigger) .wp-block-navigation-item__content:hover {
  opacity: 0.6;
}
.toratay-bar .current-menu-item > .wp-block-navigation-item__content,
.toratay-bar .wp-block-navigation-item__content[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.toratay-mega-trigger > .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}
.toratay-mega-trigger > .wp-block-navigation-item__content::after {
  content: "+";
  font-size: 1.125rem;
  line-height: 1;
  transition: transform 0.3s;
}
.toratay-mega-trigger.is-active > .wp-block-navigation-item__content::after {
  transform: rotate(45deg);
}
.toratay-header.is-mega-open .toratay-bar .wp-block-navigation-item:not(.is-active) {
  opacity: 0.5;
}
.toratay-bar .wp-block-navigation-item {
  transition: opacity 0.2s;
}
.toratay-actions {
  gap: 1.75rem !important;
}
.toratay-actions p {
  margin: 0;
}
.toratay-actions a {
  transition: opacity 0.2s;
}
.toratay-actions a:hover {
  opacity: 0.6;
}
.toratay-lang a {
  opacity: 0.9;
}
.toratay-quote a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.toratay-quote a::after {
  content: "+";
  font-size: 1.125rem;
  line-height: 1;
}
.toratay-menu-button {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Mega panels slide their height open (grid rows 0fr → 1fr). */
.toratay-mega {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition:
    grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.toratay-header.is-mega-open .toratay-mega {
  grid-template-rows: 1fr;
  border-color: rgb(255 255 255 / 0.15);
}
.toratay-mega > .wp-block-group__inner-container,
.toratay-mega-inner {
  min-height: 0;
}
.toratay-mega-panel {
  display: none;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}
.toratay-mega-panel.is-active {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}
.toratay-mega-links {
  grid-column: span 4;
  list-style: none;
  margin: 0;
  padding: 0;
}
.toratay-mega-links li a {
  display: block;
  padding: 0.375rem 0;
  font-size: 22px;
  letter-spacing: -0.025em;
  transition: opacity 0.2s;
}
.toratay-mega-links li.is-sub a {
  padding: 0.25rem 0 0.25rem 1rem;
  font-size: 15px;
  letter-spacing: normal;
  color: rgb(255 255 255 / 0.7);
}
.toratay-mega-links li a:hover {
  opacity: 0.6;
}
.toratay-mega-cards {
  grid-column: span 8;
  align-self: start;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px !important;
}
/* No flow gap between the cards (it pushed the 2nd and 3rd down). */
.toratay-mega-cards > * {
  margin: 0 !important;
}
/* The cut-out is placed against the whole card, not the caption's box. */
.toratay-mega-cards .wp-block-cover__inner-container {
  position: static;
  width: 100%;
}
.toratay-mega-cards .wp-block-cover {
  aspect-ratio: 4 / 3;
  min-height: 0 !important;
  padding: 0.75rem !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  overflow: hidden;
}
.toratay-mega-cards .wp-block-cover .wp-block-cover__image-background,
.toratay-mega-cards .wp-block-cover .toratay-cutout {
  transition: transform 0.7s;
}
.toratay-mega-cards .wp-block-cover:hover .wp-block-cover__image-background,
.toratay-mega-cards .wp-block-cover:hover .toratay-cutout {
  transform: scale(1.04);
}
.toratay-mega-cards .wp-block-cover .toratay-cutout {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 10% 8% 18%;
}
.toratay-mega-cards .wp-block-cover .toratay-cutout img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.toratay-mega-cards .wp-block-cover p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}
.toratay-mega-cards .wp-block-cover a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.toratay-header.is-mega-open .toratay-mega-panel.is-active :is(.toratay-mega-links li, .toratay-mega-cards > *) {
  animation: c-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0s);
}

/* Mobile menu (built by site.js from the mega panels). */
.toratay-mobile-menu {
  display: none;
}
@media (max-width: 1023px) {
  .toratay-bar > .wp-block-navigation,
  .toratay-mega {
    display: none !important;
  }
  .toratay-menu-button {
    display: block;
  }
  .toratay-mobile-menu.is-open {
    display: block;
    max-height: calc(100svh - 4rem);
    overflow-y: auto;
    border-top: 1px solid rgb(255 255 255 / 0.15);
    padding-bottom: 2.5rem;
  }
}
@media (max-width: 639px) {
  .toratay-quote {
    display: none;
  }
}
.toratay-mobile-menu details,
.toratay-mobile-menu > a.is-top {
  border-bottom: 1px solid rgb(255 255 255 / 0.15);
}
.toratay-mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  list-style: none;
  cursor: pointer;
}
.toratay-mobile-menu summary::-webkit-details-marker {
  display: none;
}
.toratay-mobile-menu summary::after {
  content: "+";
  transition: transform 0.2s;
}
.toratay-mobile-menu details[open] summary::after {
  transform: rotate(45deg);
}
.toratay-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
}
.toratay-mobile-menu ul a {
  display: block;
  padding: 0.375rem 0;
  font-size: 17px;
  color: rgb(255 255 255 / 0.8);
}
.toratay-mobile-menu ul li.is-sub a {
  padding-left: 1rem;
  font-size: 15px;
}
.toratay-mobile-menu > a.is-top {
  display: block;
  padding: 1rem 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.toratay-mobile-menu > a.is-quote {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: #000;
  font-size: 14px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.wp-block-button__link {
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.wp-block-button:not(.is-style-line) .wp-block-button__link:hover {
  background: rgb(255 255 255 / 0.75);
}
.has-black-color .wp-block-button:not(.is-style-line) .wp-block-button__link {
  background: #000;
  color: #fff;
}
.has-black-color .wp-block-button:not(.is-style-line) .wp-block-button__link:hover {
  background: rgb(0 0 0 / 0.8);
}
.wp-block-button.is-style-line .wp-block-button__link {
  background: transparent;
  color: inherit;
  border: 1px solid rgb(255 255 255 / 0.6);
}
.has-black-color .wp-block-button.is-style-line .wp-block-button__link {
  border-color: #000;
}
/* Hover fills with the section's text colour: white on dark sections, black on light ones. */
.wp-block-button.is-style-line .wp-block-button__link:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}
.has-black-color .wp-block-button.is-style-line .wp-block-button__link:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}
.toratay-arrow-button .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ── Cover: hero, cards, image wells ──────────────────────────────────── */

.wp-block-cover.toratay-hero {
  min-height: max(480px, calc(100svh - 64px - 2rem)) !important;
}
/* The picture is taller than its frame so the parallax drift never shows an edge. */
.wp-block-cover.toratay-hero .wp-block-cover__image-background {
  top: -8%;
  height: 116%;
  animation: c-kenburns 26s ease-in-out infinite alternate;
}
.wp-block-cover.toratay-page-image .wp-block-cover__image-background {
  top: -10%;
  height: 120%;
}
@keyframes c-kenburns {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-2%, 1%, 0);
  }
}
.wp-block-cover.toratay-page-image {
  aspect-ratio: 4 / 3;
  min-height: 0 !important;
  padding: 0 !important;
}
@media (min-width: 768px) {
  .wp-block-cover.toratay-page-image {
    aspect-ratio: 21 / 9;
  }
}

/* Card: caption at the bottom, image zooms on hover, the caption link covers the card. */
.wp-block-cover.is-style-card {
  aspect-ratio: 4 / 3;
  min-height: 0 !important;
  padding: 1rem !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  overflow: hidden;
  background-color: #171717;
}
@media (min-width: 768px) {
  .wp-block-cover.is-style-card.is-wide {
    aspect-ratio: 21 / 8;
  }
  .wp-block-cover.is-style-card.is-span2 {
    aspect-ratio: auto;
  }
}
.wp-block-cover.is-style-card .wp-block-cover__image-background,
.wp-block-cover.is-style-card .toratay-cutout {
  transition: transform 0.7s;
}
.wp-block-cover.is-style-card:hover .wp-block-cover__image-background,
.wp-block-cover.is-style-card:hover .toratay-cutout {
  transform: scale(1.03);
}
/* scale-[1.8] around the centre, over the 86% 78% crop (the focal point). */
.wp-block-cover.is-style-card.is-zoomed .wp-block-cover__image-background {
  transform: scale(1.8);
}
.wp-block-cover.is-style-card.is-zoomed:hover .wp-block-cover__image-background {
  transform: scale(1.854);
}
/* Bottom shade for the caption; a pseudo-element, so gradient card backgrounds stay intact. */
.wp-block-cover.is-style-card:not(.is-light)::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.6), transparent);
  pointer-events: none;
  z-index: 1;
}
.wp-block-cover.is-style-card .wp-block-cover__inner-container {
  position: static;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 1.5rem;
}
.wp-block-cover.is-style-card .wp-block-cover__inner-container > * {
  grid-column: 1;
  margin: 0;
}
.wp-block-cover.is-style-card .wp-block-cover__inner-container > :not(.toratay-cutout) {
  position: relative;
  z-index: 2;
}
.wp-block-cover.is-style-card .toratay-card-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.wp-block-cover.is-style-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.wp-block-cover.is-style-card .toratay-card-body {
  max-width: 40ch;
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 0.75);
}
.wp-block-cover.is-style-card.is-light .toratay-card-body {
  color: rgb(0 0 0 / 0.65);
}
.toratay-card-arrow {
  grid-column: 2 !important;
  grid-row: 1 / span 2;
  align-self: end;
  transform: translateY(0.25rem);
  opacity: 0;
  transition: all 0.5s;
}
.wp-block-cover.is-style-card:hover .toratay-card-arrow {
  transform: none;
  opacity: 1;
}
/* A product cut-out on the card's colour, above its caption. */
.wp-block-cover.is-style-card .toratay-cutout {
  position: absolute;
  inset: 13% 10% 32%;
  margin: 0;
}
.wp-block-cover.is-style-card .toratay-cutout img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wp-block-cover.is-ratio-16-10 {
  aspect-ratio: 16 / 10;
  min-height: 0 !important;
  overflow: hidden;
}

/* ── Lists ────────────────────────────────────────────────────────────── */

/* Rows with a hairline and an arrow (policy links). */
.wp-block-list.is-style-rows {
  list-style: none;
  padding: 0;
  border-top: 1px solid rgb(0 0 0 / 0.15);
}
.wp-block-list.is-style-rows li {
  border-bottom: 1px solid rgb(0 0 0 / 0.15);
  font-size: 15px;
}
.wp-block-list.is-style-rows a {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.wp-block-list.is-style-rows a::after {
  content: "↗";
}
.wp-block-list.is-style-rows a {
  transition: padding 0.5s;
}
.wp-block-list.is-style-rows a:hover {
  padding-inline-start: 0.5rem;
}

/* Plain link lists (footer). */
.wp-block-list.toratay-plain {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
.wp-block-list.toratay-plain li + li {
  margin-top: 0.375rem;
}
.wp-block-list.toratay-small {
  font-size: 11px;
  margin-top: 1rem;
}
.wp-block-list.toratay-small li + li {
  margin-top: 0.125rem;
}

.wp-block-image.is-style-multiply img {
  mix-blend-mode: multiply;
}

/* ── Home sections ────────────────────────────────────────────────────── */

.toratay-drop img {
  filter: drop-shadow(0 50px 50px rgb(0 0 0 / 0.6));
}

@media (min-width: 782px) {
  .toratay-sticky {
    position: sticky;
    top: 6rem;
    align-self: flex-start;
  }
}

/* Machine thumbnails: the sage ground sits inside the revealed block, so the
   multiply blend has a backdrop while the block fades in (no white flash). */
.toratay-fleet-grid figure {
  margin: 0;
}
.toratay-fleet-grid figure > a,
.toratay-fleet-grid figure > img {
  display: block;
  position: relative;
  overflow: hidden;
  background: #8b908a;
}
.toratay-fleet-grid img {
  transition: transform 0.7s;
}
.toratay-fleet-grid figure:hover img {
  transform: scale(1.05);
}
.toratay-fleet-grid figcaption {
  margin: 0.5rem 0 0;
  text-align: left;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(0 0 0 / 0.75);
}

.toratay-cert {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28rem;
  overflow: hidden;
}
.toratay-cert .wp-block-image {
  margin: 0;
  padding: 8%;
}

.toratay-logos {
  align-items: center;
  row-gap: 2.5rem !important;
}
.toratay-logos .wp-block-image {
  margin: 0;
  height: 3rem;
  display: flex;
  align-items: center;
}
.toratay-logos img {
  max-height: 44px;
  width: auto;
  max-width: 100%;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.toratay-logos img:hover {
  opacity: 1;
}

/* Üç ilke: tab names with a sliding underline, the panel a white card. */
.toratay-tabs .wp-block-tab-list {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  border-bottom: 1px solid rgb(255 255 255 / 0.2);
  scrollbar-width: none;
}
.toratay-tabs .wp-block-tab-list::-webkit-scrollbar {
  display: none;
}
.toratay-tabs .wp-block-tab-list button {
  position: relative;
  flex-shrink: 0;
  padding: 0 0 0.75rem;
  background: none;
  border: 0;
  color: rgb(255 255 255 / 0.55);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.toratay-tabs .wp-block-tab-list button:hover {
  color: rgb(255 255 255 / 0.8);
}
.toratay-tabs .wp-block-tab-list button[aria-selected="true"] {
  color: #fff;
}
.toratay-tabs .wp-block-tab-list button::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.5s;
}
.toratay-tabs .wp-block-tab-list button[aria-selected="true"]::after {
  transform: scaleX(1);
}
.toratay-tabs .wp-block-tab-panel {
  margin-top: 1rem;
}
.toratay-tabs .wp-block-tab-panel:not([hidden]) {
  animation: c-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.toratay-tab-card {
  min-height: 22rem;
  margin: 0 !important;
}
.toratay-tab-index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.toratay-numeral {
  font-size: 9rem !important;
  line-height: 0.8 !important;
  letter-spacing: -0.06em;
  margin: 0;
}
@media (max-width: 767px) {
  .toratay-numeral {
    display: none;
  }
}
.toratay-tab-card .wp-block-image {
  position: relative;
  height: 100%;
  min-height: 12rem;
  margin: 0;
}
.toratay-tab-card .wp-block-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two coloured link cards (about page, home "about" pair). */
.toratay-pair .wp-block-column {
  position: relative;
}
.toratay-next-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 18rem;
}
.toratay-next-card a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.toratay-next-card .toratay-next-arrow {
  transition: transform 0.5s;
}
.toratay-next-card:hover .toratay-next-arrow {
  transform: translateX(0.25rem);
}

/* ── Inner pages ──────────────────────────────────────────────────────── */

/* Breadcrumb: Ana Sayfa / Page */
.toratay-crumbs {
  color: rgb(255 255 255 / 0.55);
  word-spacing: 0.3em;
}
.toratay-crumbs a:hover {
  color: #fff;
}
.toratay-crumbs .is-current {
  color: #fff;
}

/* Rows of label | value (Kurum künyesi, contact channels). */
.toratay-rows {
  border-top: 1px solid rgb(255 255 255 / 0.2);
}
.has-black-color .toratay-rows,
.toratay-rows.is-dark {
  border-color: rgb(0 0 0 / 0.15);
}
.toratay-rows > * {
  margin: 0 !important;
  border-bottom: 1px solid rgb(255 255 255 / 0.2);
}
.has-black-color .toratay-rows > *,
.toratay-rows.is-dark > * {
  border-color: rgb(0 0 0 / 0.15);
}

/* Numbered cards in a grid with a top hairline (pillars, commitments). */
.toratay-numbered > * {
  border-top: 1px solid rgb(0 0 0 / 0.25);
}

/* Machine park: class filter pills and machine cards. */
.toratay-filter {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.toratay-filter::-webkit-scrollbar {
  display: none;
}
.toratay-filter button {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border: 1px solid rgb(0 0 0 / 0.25);
  border-radius: 9999px;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.toratay-filter button:hover {
  border-color: #000;
}
.toratay-filter button span {
  color: rgb(0 0 0 / 0.45);
}
.toratay-filter button[aria-pressed="true"] {
  border-color: #000;
  background: #000;
  color: #fff;
}
.toratay-filter button[aria-pressed="true"] span {
  color: rgb(255 255 255 / 0.6);
}
.toratay-machines > [hidden] {
  display: none !important;
}
.toratay-machine {
  scroll-margin-top: 6rem;
  animation: c-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.toratay-machine-well {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eeece6;
  transition: box-shadow 0.3s;
}
.toratay-machine:target .toratay-machine-well {
  box-shadow: 0 0 0 1px #000;
}
.toratay-machine-well .wp-block-image {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 8%;
}
.toratay-machine-well .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.7s;
}
.toratay-machine:hover .toratay-machine-well img {
  transform: scale(1.04);
}
.toratay-machine-well .toratay-unit {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  margin: 0;
  color: rgb(0 0 0 / 0.45);
}
.toratay-specs {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0 0;
}
.toratay-specs table {
  border-top: 1px solid rgb(0 0 0 / 0.15);
  border-collapse: collapse;
  width: 100%;
}
.toratay-specs td {
  border: 0;
  border-bottom: 1px solid rgb(0 0 0 / 0.1);
  padding: 0.375rem 0;
  font-size: 13px;
}
.toratay-specs td:first-child {
  color: rgb(0 0 0 / 0.6);
  padding-right: 1rem;
}
.toratay-specs td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Machine counts under the fleet page title (gap-y-6, no column gap). */
.toratay-counts {
  row-gap: 1.5rem !important;
}
.toratay-counts .wp-block-group {
  margin: 0;
}
.toratay-counts .wp-block-group > * + * {
  margin-top: 0.5rem !important;
}

/* Policies index: one row per policy, the title link covers the row. */
.toratay-policy-row {
  position: relative;
  border-top: 1px solid rgb(0 0 0 / 0.2);
}
.toratay-policy-row a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.toratay-policy-row .toratay-policy-title {
  transition: transform 0.5s;
}
.toratay-policy-row:hover .toratay-policy-title {
  transform: translateX(0.5rem);
}

/* Policy document. */
.toratay-doc > p {
  max-width: 68ch;
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgb(0 0 0 / 0.8);
}
.toratay-doc > p.is-lead {
  font-size: 1.3rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: #000;
}
.toratay-doc > h2 {
  margin: 4rem 0 1.5rem;
  scroll-margin-top: 6rem;
}
.toratay-doc > h2:first-child {
  margin-top: 0;
}
.toratay-doc > h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.toratay-doc .toratay-note {
  margin-bottom: 2.5rem;
  border: 1px solid rgb(0 0 0 / 0.2);
  padding: 0.75rem 1rem;
  line-height: 1.6 !important;
  color: rgb(0 0 0 / 0.6);
}
/* Clauses: numbered 01, 02 … across every list of the document (start attribute). */
.toratay-doc > ol.wp-block-list {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(0 0 0 / 0.15);
  counter-reset: clause;
}
.toratay-doc > ol.wp-block-list > li {
  counter-increment: clause;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(0 0 0 / 0.15);
  font-size: 1.02rem;
  line-height: 1.65;
}
.toratay-doc > ol.wp-block-list > li::before {
  content: counter(clause, decimal-leading-zero);
  padding-top: 0.375rem;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgb(0 0 0 / 0.45);
}
.toratay-doc > ol.wp-block-list > li > ul {
  grid-column: 2;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.toratay-doc > ol.wp-block-list > li > ul > li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgb(0 0 0 / 0.7);
}
.toratay-doc > ol.wp-block-list > li > ul > li + li {
  margin-top: 0.5rem;
}
.toratay-doc > ol.wp-block-list > li > ul > li::before {
  content: "";
  flex-shrink: 0;
  width: 0.75rem;
  height: 1px;
  margin-top: 0.75em;
  background: rgb(0 0 0 / 0.4);
}
.toratay-divider {
  margin: 5rem 0 1rem !important;
  align-items: center !important;
  gap: 1rem !important;
}
.toratay-divider .wp-block-separator {
  flex: 1;
  margin: 0;
  border: 0;
  border-top: 1px solid rgb(0 0 0 / 0.2);
  opacity: 1;
}
.toratay-doc .toratay-close {
  margin-top: 2.5rem;
  background: #fff;
  padding: 1.25rem 1.5rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #000;
}
.toratay-report {
  margin: 2.5rem 0 !important;
}
.toratay-report .wp-block-column {
  position: relative;
  background: #fff;
  padding: 1.25rem;
  transition: background-color 0.2s;
}
.toratay-report .wp-block-column:hover {
  background: #eeece6;
}
.toratay-report a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.toratay-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
.toratay-toc li + li {
  margin-top: 0.375rem;
}
.toratay-toc a {
  color: rgb(0 0 0 / 0.7);
}
.toratay-toc a:hover {
  color: #000;
}
.toratay-all {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgb(0 0 0 / 0.15);
  font-size: 14px;
}
.toratay-all li {
  border-bottom: 1px solid rgb(0 0 0 / 0.15);
}
.toratay-all a {
  display: block;
  padding: 0.625rem 0;
  color: rgb(0 0 0 / 0.6);
}
.toratay-all a:hover,
.toratay-all a[aria-current="page"] {
  color: #000;
}
.toratay-all a[aria-current="page"] {
  font-weight: 500;
}
@media (min-width: 1024px) {
  .toratay-doc-aside {
    position: sticky;
    top: 6rem;
    align-self: flex-start;
  }
}
@media (max-width: 1023px) {
  .toratay-all-wrap {
    display: none;
  }
}
.toratay-prevnext {
  border-top: 1px solid rgb(0 0 0 / 0.15);
}
.toratay-prevnext .wp-block-column {
  position: relative;
  transition: background-color 0.2s;
}
.toratay-prevnext .wp-block-column:hover {
  background: #eeece6;
}
.toratay-prevnext a::after {
  content: "";
  position: absolute;
  inset: 0;
}
@media (min-width: 782px) {
  .toratay-prevnext .wp-block-column:first-child {
    border-right: 1px solid rgb(0 0 0 / 0.15);
  }
}
@media (max-width: 781px) {
  .toratay-prevnext .wp-block-column:first-child {
    border-bottom: 1px solid rgb(0 0 0 / 0.15);
  }
}

/* Contact channels. */
.toratay-channels a {
  font-size: 1.15rem;
  line-height: 1.375;
  letter-spacing: -0.015em;
}
.toratay-channels a:hover {
  color: rgb(0 0 0 / 0.6);
}
.toratay-directions .wp-block-button__link {
  width: 100%;
  padding: 0.875rem 1.25rem !important;
}

/* Page header spacing (pt-28 pb-12, md: pt-36 pb-16). */
.toratay-page-head {
  padding-top: 7rem !important;
  padding-bottom: 3rem !important;
}
@media (min-width: 768px) {
  .toratay-page-head {
    padding-top: 9rem !important;
    padding-bottom: 4rem !important;
  }
}

/* Sections with an id stop below the fixed header (scroll-mt-16). */
.toratay-scroll-anchor {
  scroll-margin-top: 4rem;
}

/* Empty columns only shape the desktop grid. */
@media (max-width: 781px) {
  .toratay-spacer {
    display: none !important;
  }
}

/* Tab photos: the same crops as the Next site. */
.toratay-pos-0 img {
  object-position: 78% 70%;
}
.toratay-pos-1 img {
  object-position: 50% 40%;
}
.toratay-pos-2 img {
  object-position: 88% 20%;
}

/* About: pillars, dossier rows, commitments. */
.toratay-pillar {
  display: flex !important;
  flex-direction: column;
  min-height: 20rem;
  border-top: 1px solid rgb(0 0 0 / 0.25);
  padding-top: 1.25rem;
}
.toratay-pillar > * {
  margin-block: 0 !important;
}
.toratay-pillar > h2 {
  margin-top: 1.5rem !important;
}
.toratay-pillar > p:last-child {
  margin-top: auto !important;
  padding-top: 2.5rem;
}
.toratay-dossier-row {
  display: grid !important;
  gap: 0.5rem;
  padding: 1.25rem 0;
}
.toratay-dossier-row > * {
  margin: 0 !important;
}
.toratay-dossier-row > .is-style-label {
  padding-top: 0.25rem;
}
@media (min-width: 640px) {
  .toratay-dossier-row {
    grid-template-columns: 14rem 1fr;
    gap: 1.5rem;
  }
}
.toratay-commitments {
  row-gap: 0 !important;
}
.toratay-commitment {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 9rem;
  border-top: 1px solid rgb(0 0 0 / 0.25);
  padding: 1.25rem 0;
}
.toratay-commitment > * {
  margin: 0 !important;
}

/* Machine park cards. */
.toratay-machines {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 3.5rem;
}
@media (min-width: 640px) {
  .toratay-machines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .toratay-machines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.toratay-machines > * {
  margin: 0 !important;
}
.toratay-machine .toratay-specs {
  margin: 1.25rem 0 0 !important;
}
.toratay-machine-well {
  margin: 0 !important;
}
.toratay-filter .wp-block-button__link {
  background: transparent !important;
  color: #000 !important;
  border: 1px solid rgb(0 0 0 / 0.25) !important;
  border-radius: 9999px !important;
  padding: 0.375rem 1rem !important;
  font-size: 13px !important;
}
.toratay-filter .wp-block-button__link:hover {
  border-color: #000 !important;
}
.toratay-filter .wp-block-button__link span {
  margin-left: 0.25rem;
  color: rgb(0 0 0 / 0.45);
}
.toratay-filter .wp-block-button__link[aria-pressed="true"] {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}
.toratay-filter .wp-block-button__link[aria-pressed="true"] span {
  color: rgb(255 255 255 / 0.6);
}
/* On phones the pills keep their width and the row scrolls sideways (shrink-0, whitespace-nowrap). */
.toratay-filter {
  flex-wrap: nowrap !important;
  overflow-x: auto;
}
.toratay-filter .wp-block-button {
  flex-shrink: 0;
}
.toratay-filter .wp-block-button__link {
  white-space: nowrap;
}

/* Policies index rows: the small texts sit on the title's baseline. */
.toratay-policy-row .wp-block-columns {
  align-items: baseline !important;
  margin: 0;
}
@media (max-width: 781px) {
  .toratay-policy-arrow {
    display: none !important;
  }
}
@media (min-width: 782px) {
  .toratay-next {
    text-align: right;
  }
}

/* Contact: the directions link is a black bar with an arrow. */
.toratay-directions-link a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  color: #fff;
  padding: 0.875rem 1.25rem;
  font-size: 13px;
  transition: background-color 0.2s;
}
.toratay-directions-link a::after {
  content: "↗";
}
.toratay-directions-link a:hover {
  background: rgb(0 0 0 / 0.8);
}

/* 404: the brand bar, then the message at the bottom of the screen. */
.toratay-404-page {
  display: flex !important;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
}
.toratay-404-page > * {
  margin: 0 !important;
}
.toratay-404-bar {
  display: flex !important;
  align-items: center;
  height: 4rem;
}
.toratay-404 {
  display: flex !important;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
}

/* ── Quote form (toratay/rfq block) ───────────────────────────────────── */

.toratay-rfq {
  position: relative;
  background: #fff;
  color: #000;
}
.toratay-rfq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(0 0 0 / 0.1);
  padding: 1rem 1.25rem;
}
.toratay-rfq-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.toratay-rfq-status {
  color: rgb(0 0 0 / 0.45);
}
.toratay-rfq-grid {
  display: grid;
  gap: 1px;
  background: rgb(0 0 0 / 0.1);
}
@media (min-width: 640px) {
  .toratay-rfq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toratay-rfq-cell.is-wide {
    grid-column: span 2;
  }
}
.toratay-rfq-cell {
  background: #fff;
  padding: 1.25rem 1.25rem 1rem;
}
@media (min-width: 768px) {
  .toratay-rfq-cell {
    padding-inline: 1.5rem;
  }
  .toratay-rfq-head,
  .toratay-rfq-foot {
    padding-inline: 1.5rem !important;
  }
}
.toratay-rfq label.toratay-rfq-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(0 0 0 / 0.55);
}
.toratay-rfq-label .req {
  color: #000;
}
.toratay-rfq-label .opt {
  color: rgb(0 0 0 / 0.35);
}
.toratay-rfq-label .err {
  text-transform: none;
  letter-spacing: normal;
  color: #b91c1c;
}
.toratay-rfq-field {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgb(0 0 0 / 0.25);
  border-radius: 0;
  background: transparent;
  padding: 0.625rem 0;
  font: inherit;
  font-size: 1.02rem;
  color: #000;
  transition: border-color 0.2s;
}
.toratay-rfq-field::placeholder {
  color: rgb(0 0 0 / 0.35);
}
.toratay-rfq-field:focus {
  border-color: #000;
  outline: none;
}
textarea.toratay-rfq-field {
  resize: vertical;
}
.toratay-rfq-select {
  position: relative;
}
.toratay-rfq-select select {
  appearance: none;
  padding-right: 2rem;
}
.toratay-rfq-select select.is-empty {
  color: rgb(0 0 0 / 0.4);
}
.toratay-rfq-select svg {
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  transform: translateY(-50%);
  color: rgb(0 0 0 / 0.5);
}
.toratay-rfq-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.toratay-rfq-foot {
  border-top: 1px solid rgb(0 0 0 / 0.1);
  padding: 1.25rem;
}
.toratay-rfq-foot > * + * {
  margin-top: 1.5rem;
}
.toratay-rfq-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.toratay-rfq-consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.toratay-rfq-box {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  border: 1px solid rgb(0 0 0 / 0.4);
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.toratay-rfq-consent input:focus-visible + .toratay-rfq-box {
  outline: 1px solid #000;
  outline-offset: 2px;
}
.toratay-rfq-consent input:checked + .toratay-rfq-box {
  border-color: #000;
  background: #000;
}
.toratay-rfq-consent.has-error .toratay-rfq-box {
  border-color: #b91c1c;
}
.toratay-rfq-box svg {
  width: 0.75rem;
  height: 0.75rem;
  color: #fff;
  opacity: 0;
}
.toratay-rfq-consent input:checked + .toratay-rfq-box svg {
  opacity: 1;
}
.toratay-rfq-consent-text {
  font-size: 0.88rem;
  line-height: 1.625;
  color: rgb(0 0 0 / 0.7);
}
.toratay-rfq-consent-text a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.toratay-rfq-consent-text a:hover {
  color: rgb(0 0 0 / 0.6);
}
.toratay-rfq-consent-text .err {
  display: block;
  margin-top: 0.25rem;
  color: #b91c1c;
}
.toratay-rfq-submit-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .toratay-rfq-submit-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .toratay-rfq-foot {
    padding: 1.5rem;
  }
}
.toratay-rfq-note {
  max-width: 46ch;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.625;
  color: rgb(0 0 0 / 0.55);
}
.toratay-rfq-submit {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 3rem;
  min-width: 13rem;
  border: 0;
  background: #000;
  padding: 0 1.25rem;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.toratay-rfq-submit:hover {
  background: rgb(0 0 0 / 0.8);
}
.toratay-rfq-submit:disabled {
  opacity: 0.6;
}
.toratay-rfq-submit span {
  transition: transform 0.5s;
}
.toratay-rfq-submit:hover span {
  transform: translateX(0.25rem);
}
.toratay-rfq-error {
  margin: 0;
  font-size: 0.9rem;
  color: #b91c1c;
}
.toratay-rfq-done {
  display: flex;
  min-height: 28rem;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  color: #000;
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .toratay-rfq-done {
    padding: 2.5rem;
  }
}
.toratay-rfq-done .tick {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  background: #000;
  color: #fff;
  font-size: 1.25rem;
}
.toratay-rfq-done p.msg {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.toratay-rfq-done button {
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* ── Language hint ────────────────────────────────────────────────────── */

.toratay-lang-hint {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 65;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: calc(100vw - 2rem);
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  animation: c-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (min-width: 640px) {
  .toratay-lang-hint {
    max-width: 28rem;
  }
}
.toratay-lang-hint p {
  margin: 0;
  font-size: 14px;
}
.toratay-lang-hint div {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.toratay-lang-hint button {
  border: 0;
  background: none;
  padding: 0;
  color: rgb(0 0 0 / 0.5);
  cursor: pointer;
}
.toratay-lang-hint button:hover {
  color: #000;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.toratay-footer a {
  transition: opacity 0.2s;
}
.toratay-footer .toratay-plain a:hover {
  opacity: 0.6;
}
.toratay-footer .toratay-small a {
  opacity: 1;
}
.toratay-footer .toratay-small a:hover {
  color: #fff;
}
.toratay-langs .is-current {
  color: #fff;
}
.toratay-langs a {
  color: rgb(255 255 255 / 0.6);
}
.toratay-langs a:hover {
  color: #fff;
  opacity: 1 !important;
}

/* ── Motion: start states only when site.js runs (html.js) ────────────── */

@keyframes c-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Text waits out of sight, then appears already scrambling. */
  .js .d-scramble:not(.is-in) {
    opacity: 0;
  }
  .js .d-reveal {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition:
      opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
      transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--d, 0s);
  }
  .js .d-reveal-fade {
    transform: none;
  }
  .js .d-reveal.is-in {
    opacity: 1;
    transform: none;
  }
  /* Pictures settle in from a slight zoom when their block is revealed. */
  .js .d-reveal :is(.wp-block-cover__image-background, .wp-block-image img, .toratay-cutout) {
    scale: 1.08;
    transition:
      scale 1.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.7s;
    transition-delay: var(--d, 0s), 0s;
  }
  .js .d-reveal.is-in :is(.wp-block-cover__image-background, .wp-block-image img, .toratay-cutout) {
    scale: 1;
  }
}

/* Card descriptions scramble in on hover; touch screens always show them. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .js .wp-block-cover.is-style-card .toratay-card-body {
    opacity: 0;
    transition: opacity 0.15s;
  }
  .js .wp-block-cover.is-style-card:is(:hover, :focus-within) .toratay-card-body {
    opacity: 1;
  }
}

/* Page changes: the old page leaves fast, the new one rises in; the header holds still. */
@view-transition {
  navigation: auto;
}
main {
  view-transition-name: page;
}
::view-transition {
  pointer-events: none;
}
::view-transition-old(page) {
  animation: c-page-out 0.22s cubic-bezier(0.4, 0, 1, 1) both;
}
::view-transition-new(page) {
  animation: c-page-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}
::view-transition-old(root) {
  animation-duration: 0.22s;
}
::view-transition-new(root) {
  animation-duration: 0.45s;
}
::view-transition-group(site-header) {
  animation: none;
  z-index: 100;
}
::view-transition-old(site-header) {
  display: none;
}
::view-transition-new(site-header) {
  animation: none;
}
@keyframes c-page-out {
  to {
    opacity: 0;
    transform: translate3d(0, -12px, 0);
  }
}
@keyframes c-page-in {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
}

/* The editor shows everything still and visible, mega panels included. */
.editor-styles-wrapper .d-scramble,
.editor-styles-wrapper .d-reveal {
  opacity: 1 !important;
  transform: none !important;
}
.editor-styles-wrapper .toratay-header {
  position: relative;
}
.editor-styles-wrapper .toratay-mega {
  display: block;
  grid-template-rows: none;
  overflow: visible;
}
.editor-styles-wrapper .toratay-mega-panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px dashed rgb(255 255 255 / 0.25);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
  }
}
