﻿/*
  LEGACY COMPATIBILITY LAYER
  ==========================
  This file preserves the approved visual behavior of Home, Contact and R3
  while the project transitions into modular CSS ownership.

  Do not add new work here. New work belongs in:
  - ../tokens.css
  - ../shell.css
  - ../components.css
  - ./pages/[page].css
*/

    :root {
      --rail-w: clamp(112px, 10vw, 190px);
      --footer-w: clamp(98px, 5.4vw, 132px);
      --red: #d52b32;
      --ink: #f4f3f0;
      --muted: rgba(244, 243, 240, .62);
      --charcoal: #0b1012;
      --ease: cubic-bezier(.22, .61, .36, 1);
    }

    * { box-sizing: border-box; }

    html, body {
      width: 100%;
      height: 100%;
      margin: 0;
      color: var(--ink);
      background: var(--charcoal);
      font-family: "Oxanium", Arial, sans-serif;
    }

    body { overflow: hidden; }
    a { color: inherit; text-decoration: none; }
    button { border: 0; font: inherit; }

    /* =========================================================
       SABİT, ŞEFFAF SOL NAVİGASYON
    ========================================================= */
    .rail {
      position: fixed;
      inset: 0 auto 0 0;
      z-index: 130;
      width: var(--rail-w);
      padding: 30px 22px;
      display: flex;
      flex-direction: column;
      align-items: center;
      background: #181A3F;
      backdrop-filter: blur(9px) saturate(115%);
      -webkit-backdrop-filter: blur(9px) saturate(115%);
    }

    .wordmark {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .24em;
      line-height: 1.1;
      text-align: center;
      transition: color .28s var(--ease);
    }

    .wordmark-mark {
      color: var(--red);
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -.12em;
      line-height: .8;
    }

    .wordmark:hover { color: var(--red); }

    /* Üç dikey çizgi yan yana */
    .menu-toggle {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 42px;
      height: 60px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      color: var(--ink);
      background: transparent;
      cursor: pointer;
      transform: translate(-50%, -50%);
    }

    .menu-toggle span-1 {
      display: block;
      width: 1px;
      height: 40px;
      background: currentColor;
      transform-origin: center;
      transition: height .28s var(--ease), transform .28s var(--ease), opacity .28s var(--ease), color .28s var(--ease);
    }

      .menu-toggle span-2 {
      display: block;
      width: 1px;
      height: 60px;
      background: currentColor;
      transform-origin: center;
      transition: height .28s var(--ease), transform .28s var(--ease), opacity .28s var(--ease), color .28s var(--ease);
    }

      .menu-toggle span-3 {
      display: block;
      width: 1px;
      height: 40px;
      background: currentColor;
      transform-origin: center;
      transition: height .28s var(--ease), transform .28s var(--ease), opacity .28s var(--ease), color .28s var(--ease);
    }

    .menu-toggle:hover { color: var(--red); }
    .menu-toggle:hover span:nth-child(1),
    .menu-toggle:hover span:nth-child(3) { height: 19px; }

    body.menu-open .menu-toggle span:nth-child(1) {
      height: 31px;
      transform: translateX(8px) rotate(45deg);
    }

    body.menu-open .menu-toggle span:nth-child(2) {
      opacity: 0;
      transform: scaleY(0);
    }

    body.menu-open .menu-toggle span:nth-child(3) {
      height: 31px;
      transform: translateX(-8px) rotate(-45deg);
    }

    /* Sosyal medya aşağı hizalı */
    .socials {
      position: absolute;
      bottom: 36px;
      left: 50%;
      display: grid;
      gap: 18px;
      transform: translateX(-50%);
    }

    .socials a {
      width: 21px;
      height: 21px;
      display: grid;
      place-items: center;
      color: rgba(244,243,240,.76);
      transition: color .25s var(--ease), transform .25s var(--ease);
    }

    .socials a:hover {
      color: var(--red);
      transform: translateX(4px);
    }

    .socials svg { width: 18px; height: 18px; fill: currentColor; }

    /* =========================================================
       MENÜ AÇILINCA TAM EKRAN VİDEOLU AYRI SAHNE
    ========================================================= */
    .menu-stage {
      position: fixed;
      inset: 0;
      z-index: 90;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: scale(1.025);
      background: #0b1012;
      transition: opacity .48s var(--ease), visibility .48s var(--ease), transform .70s var(--ease);
    }

    .menu-stage::before {
      content: "";
      position: absolute;
      z-index: 1;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(4,7,9,.44) 0%, rgba(4,7,9,.14) 50%, rgba(4,7,9,.54) 100%),
        linear-gradient(0deg, rgba(4,7,9,.42), transparent 55%);
    }

    .menu-stage::after {
      content: "MENU / THE ARCANE EDGE";
      position: absolute;
      z-index: 2;
      right: 42px;
      bottom: 34px;
      color: rgba(244,243,240,.46);
      font-size: 9px;
      font-weight: 500;
      letter-spacing: .21em;
    }

    .menu-stage video {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      filter: saturate(.78) contrast(1.1) brightness(.64);
    }

    body.menu-open .menu-stage {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: scale(1);
    }

    .drawer {
      position: fixed;
      z-index: 110;
      top: 24px;
      bottom: 24px;
      left: calc(var(--rail-w) + 22px);
      width: min(40vw, 680px);
      min-width: 430px;
      padding: 46px 52px;
      display: flex;
      align-items: center;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateX(-42px);
      background: rgba(10, 15, 18, .34);
      box-shadow: 0 26px 86px rgba(0,0,0,.28);
      backdrop-filter: blur(23px) saturate(118%);
      -webkit-backdrop-filter: blur(23px) saturate(118%);
      transition: opacity .42s var(--ease), visibility .42s var(--ease), transform .56s var(--ease);
    }

    .drawer::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(120deg, rgba(255,255,255,.045), transparent 42%), radial-gradient(circle at 78% 20%, rgba(213,43,50,.18), transparent 27%);
    }

    body.menu-open .drawer {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(0);
    }

    .drawer-close {
      position: absolute;
      top: 27px;
      left: 29px;
      z-index: 1;
      width: 37px;
      height: 37px;
      display: grid;
      place-items: center;
      padding: 0;
      color: var(--ink);
      background: transparent;
      cursor: pointer;
      font-size: 28px;
      font-weight: 300;
      transition: color .25s var(--ease), transform .25s var(--ease);
    }

    .drawer-close:hover { color: var(--red); transform: rotate(90deg); }

    .drawer-content { position: relative; z-index: 1; width: 100%; }

    .drawer-eyebrow,
    .eyebrow {
      margin-bottom: 22px;
      color: var(--red);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .24em;
      text-transform: uppercase;
    }

    .drawer-nav { display: grid; gap: 9px; }

    .drawer-nav a {
      width: fit-content;
      padding: 4px 0;
      font-size: clamp(30px, 3vw, 53px);
      font-weight: 400;
      letter-spacing: -.045em;
      line-height: 1.06;
      transition: color .25s var(--ease), transform .25s var(--ease);
    }

    .drawer-nav a:hover,
    .drawer-nav a.is-active {
      color: var(--red);
      transform: translateX(12px);
    }

    .drawer-note {
      margin-top: 46px;
      color: rgba(244,243,240,.62);
      font-size: 10px;
      letter-spacing: .09em;
      line-height: 1.85;
    }

    /* =========================================================
       YATAY SAHNE
    ========================================================= */
    .main {
      position: fixed;
      inset: 0 0 0 var(--rail-w);
      overflow: hidden;
    }

    .track {
      width: max-content;
      height: 100%;
      display: flex;
      will-change: transform;
    }

    .panel {
      position: relative;
      width: calc(100vw - var(--rail-w));
      height: 100vh;
      flex: 0 0 calc(100vw - var(--rail-w));
      overflow: hidden;
    }

    .panel:not(.hero)::before {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      width: 1px;
      height: 100%;
      background: transparent;
    }

    /* =========================================================
       HERO / VİDEOLU İLK EKRAN
    ========================================================= */
    .hero {
      isolation: isolate;
      background: #0b1012;
    }

    .hero-media {
      position: absolute;
      z-index: -2;
      inset: 0;
      overflow: hidden;
      background:
        radial-gradient(circle at 76% 26%, rgba(213,43,50,.35), transparent 26%),
        linear-gradient(112deg, #1d272c 0%, #0e1518 56%, #05080a 100%);
    }

    .hero-media video {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      filter: saturate(.84) contrast(1.1) brightness(.62);
    }

    .hero-media::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(3,6,8,.38), rgba(3,6,8,.08) 55%, rgba(3,6,8,.42)),
        linear-gradient(0deg, rgba(2,4,5,.36), transparent 56%);
    }

    .hero-contact {
      position: absolute;
      z-index: 2;
      top: 38px;
      right: 46px;
    }

    .btn {
      min-height: 47px;
      padding: 0 22px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      border-radius: 999px;
      cursor: pointer;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .15em;
      text-transform: uppercase;
      transition: color .28s var(--ease), background .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
    }

    .btn-red { color: #fff; background: var(--red); border: 1px solid var(--red); }
    .btn-red:hover { color: var(--red); background: transparent; transform: translateY(-3px); }

    .btn-outline { color: var(--ink); background: transparent; border: 1px solid rgba(244,243,240,.76); }
    .btn-outline:hover { color: #fff; background: var(--red); border-color: var(--red); transform: translateY(-3px); }

    .hero-title {
      position: absolute;
      z-index: 1;
      top: 50%;
      left: 50%;
      width: min(86%, 1120px);
      margin: 0;
      text-align: center;
      color: var(--ink);
      font-size: clamp(49px, 6vw, 112px);
      font-weight: 500;
      letter-spacing: .025em;
      line-height: .96;
      text-transform: uppercase;
      transform: translate(-50%, -50%);
    }

    .hero-title-gorsel {
      position: absolute;
      z-index: 1;
      top: 50%;
      left: 50%;
      width: min(86%, 1120px);
      margin: 0;
      text-align: center;
      color: var(--ink);
      font-size: clamp(49px, 6vw, 112px);
      font-weight: 500;
      letter-spacing: .025em;
      line-height: .96;
      text-transform: uppercase;
      transform: translate(-50%, -50%);
      filter: invert(1);
    }

    .hero-title em { color: var(--red); font-style: normal; }

    .hero-subtitle {
      position: absolute;
      z-index: 2;
      top: calc(50% + clamp(55px, 5vw, 98px));
      left: 50%;
      margin: 0;
      color: var(--muted);
      font-size: 9px;
      font-weight: 500;
      letter-spacing: .21em;
      text-transform: uppercase;
      transform: translateX(-50%);
      white-space: nowrap;
    }

    .hero-yachts {
      position: absolute;
      z-index: 2;
      left: clamp(39px, 5vw, 88px);
      bottom: 44px;
    }

    .scroll-orb {
      position: absolute;
      z-index: 2;
      right: 43px;
      bottom: 31px;
      width: clamp(125px, 9.7vw, 162px);
      aspect-ratio: 1;
      display: grid;
      place-items: center;
    }

    .scroll-orb svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      overflow: visible;
      animation: rotateOrb 13s linear infinite;
    }

    .scroll-orb text {
      fill: #b89a3fed;
      font-size: 18px;
      font-weight: 300;
      letter-spacing: 2px;
    }

    /* Ortadaki okta daire/border yok */
    .scroll-orb .arrow {
      display: grid;
      place-items: center;
      color: var(--ink);
      font-size: 31px;
      line-height: 1;
      transition: color .25s var(--ease), transform .25s var(--ease);
    }

    .scroll-orb:hover .arrow { color: var(--red); transform: translateX(7px); }

    @keyframes rotateOrb { to { transform: rotate(360deg); } }

    /* =========================================================
       ÖRNEK İÇ SAYFALAR
    ========================================================= */
    .content-panel {
      padding: clamp(58px, 7vw, 128px);
      display: flex;
      align-items: center;
    }

    .panel-index {
      position: absolute;
      top: 39px;
      right: 47px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 500;
      letter-spacing: .16em;
    }

    .content-panel h2 {
      max-width: 900px;
      margin: 0;
      font-size: clamp(48px, 6.2vw, 108px);
      font-weight: 400;
      letter-spacing: -.075em;
      line-height: .88;
    }

    .content-panel p {
      max-width: 480px;
      margin: 26px 0 0;
      color: var(--muted);
      font-size: 14px;
      font-weight: 300;
      line-height: 1.9;
    }

    .about { color: #111719; background: #d6d4cf; }
    .about::before { background: rgba(0,0,0,.14) !important; }
    .about .panel-index, .about p { color: rgba(17,23,25,.66); }

    .about-grid {
      width: 100%;
      display: grid;
      grid-template-columns: 1.14fr .86fr;
      gap: 8vw;
      align-items: center;
    }

    .about-box {
      position: relative;
      min-height: 48vh;
      padding: 42px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      overflow: hidden;
      color: var(--ink);
      background: linear-gradient(145deg, rgba(213,43,50,.14), transparent 50%), #1b2529;
    }

    .about-box::before {
      content: "A";
      position: absolute;
      top: -13%;
      right: 2%;
      color: rgba(255,255,255,.08);
      font-size: min(42vw, 600px);
      font-weight: 600;
      line-height: 1;
    }

    .about-box strong { position: relative; font-size: clamp(30px, 3vw, 54px); font-weight: 400; letter-spacing: -.05em; }
    .about-box span { position: relative; margin-top: 13px; color: rgba(244,243,240,.62); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }

    .services { background: #22272a; }
    .services-layout { width: 100%; }

    .service-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .service-card {
      min-height: 270px;
      padding: 28px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border: 1px solid rgba(244,243,240,.17);
      background: rgba(255,255,255,.025);
      transition: border-color .28s var(--ease), background .28s var(--ease), transform .28s var(--ease);
    }
    .service-card:hover { border-color: var(--red); background: rgba(213,43,50,.12); transform: translateY(-7px); }
    .service-card b { font-size: 16px; font-weight: 400; line-height: 1.35; }
    .service-card span { align-self: flex-end; color: var(--red); font-size: 26px; }

    .projects { background: linear-gradient(120deg, rgba(0,0,0,.19), rgba(0,0,0,.06)), #5a6264; }
    .projects-layout { width: 100%; display: grid; grid-template-columns: 1.08fr .92fr; gap: 6vw; align-items: end; }

    .project-visual {
      position: relative;
      min-height: 57vh;
      overflow: hidden;
      background: radial-gradient(circle at 75% 30%, rgba(213,43,50,.30), transparent 24%), linear-gradient(130deg, #1e282c, #0e1315 72%);
    }
    .project-visual::before { content: ""; position: absolute; inset: 13% 10%; border: 1px solid rgba(244,243,240,.34); transform: rotate(-17deg) skewX(-7deg); }
    .project-visual::after { content: "YACHT / 001"; position: absolute; left: 26px; bottom: 24px; color: rgba(244,243,240,.73); font-size: 10px; letter-spacing: .19em; }

    .contact { background: radial-gradient(circle at 85% 75%, rgba(213,43,50,.28), transparent 23%), #12171a; }
    .contact-layout { width: 100%; display: grid; grid-template-columns: 1fr .74fr; gap: 8vw; align-items: end; }
    .contact-mail { display: inline-block; padding-bottom: 11px; color: var(--red); border-bottom: 1px solid var(--red); font-size: clamp(20px, 2.2vw, 36px); font-weight: 400; letter-spacing: -.055em; transition: color .25s var(--ease), letter-spacing .25s var(--ease); }
    .contact-mail:hover { color: #fff; letter-spacing: -.025em; }

    /* =========================================================
       SONDA DARALTILMIŞ VERTİKAL FOOTER
    ========================================================= */
    .footer-panel {
      position: relative;
      width: var(--footer-w);
      height: 100vh;
      flex: 0 0 var(--footer-w);
      padding: 24px 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
      color: #121719;
      background: #b8b8b4;
    }

    .footer-panel::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 5px; background: var(--red); }
    .footer-top { font-size: 8px; font-weight: 600; letter-spacing: .08em; line-height: 1.65; text-transform: center; }
    .footer-links { display: grid; gap: 12px; font-size: 11px; font-weight: 400; }
    .footer-links a { width: fit-content; transition: color .22s var(--ease), transform .22s var(--ease); }
    .footer-links a:hover { color: var(--red); transform: translateX(4px); }
    .footer-logo { font-size: clamp(17px, 1.5vw, 25px); font-weight: 700; letter-spacing: -.10em; line-height: .82; }
    .footer-logo span { display: block; margin-top: 9px; color: rgba(18,23,25,.58); font-size: 6px; font-weight: 600; letter-spacing: .16em; line-height: 1.45; }

    /* =========================================================
       MOBİL: NORMAL DİKEY AKIŞ
    ========================================================= */
    @media (max-width: 1100px) {
      :root { --rail-h: 75px; }

      html, body { height: auto; min-height: 100%; }
      body { overflow-x: hidden; overflow-y: auto; }

      .rail {
        width: 100%;
        height: var(--rail-h);
        padding: 12px 20px;
        flex-direction: row;
        justify-content: space-between;
        background: #181A3F;
      }

      .wordmark { flex-direction: row; gap: 7px; font-size: 9px; text-align: left; }
      .wordmark-mark { font-size: 21px; }

      .menu-toggle { position: relative; top: auto; left: auto; transform: none; width: 34px; height: 35px; gap: 6px; }
      .menu-toggle span { height: 21px; }
      .socials { display: none; }

      .menu-stage::after { right: 20px; bottom: 17px; font-size: 7px; }

      .drawer {
        top: 88px;
        bottom: 16px;
        left: 16px;
        width: calc(100vw - 32px);
        min-width: 0;
        padding: 72px 31px 32px;
      }

      .drawer-close { top: 18px; left: 17px; }
      .drawer-nav a { font-size: clamp(31px, 9vw, 45px); }

      .main { position: static; margin-top: var(--rail-h); overflow: visible; }
      .track { display: block; width: auto; height: auto; transform: none !important; }
      .panel { width: 100%; height: auto; min-height: max(670px, calc(100svh - var(--rail-h))); display: flex; }
      .hero { min-height: calc(100svh - var(--rail-h)); }

      .hero-contact { top: 26px; right: 22px; }
      .hero-contact .btn { min-height: 42px; padding: 0 15px; font-size: 9px; }
      .hero-title { width: calc(100% - 42px); font-size: clamp(44px, 12vw, 75px); letter-spacing: .02em; line-height: .95; }
      .hero-subtitle { top: calc(50% + clamp(55px, 15vw, 88px)); max-width: 80vw; font-size: 7px; letter-spacing: .14em; text-align: center; white-space: normal; }
      .hero-yachts { left: 25px; bottom: 27px; }
      .scroll-orb { right: 22px; bottom: 18px; width: 110px; }
      .scroll-orb text { /*font-size: 6.5px;*/ }

      .content-panel { padding: 82px 26px 65px; }
      .panel-index { top: 24px; right: 26px; }
      .content-panel h2 { font-size: clamp(45px, 14vw, 76px); }
      .about-grid, .projects-layout, .contact-layout { grid-template-columns: 1fr; gap: 42px; }
      .about-box { min-height: 310px; }
      .service-grid { grid-template-columns: 1fr; margin-top: 34px; }
      .service-card { min-height: 142px; }
      .project-visual { min-height: 330px; order: -1; }

      .footer-panel { width: 100%; height: 330px; min-height: 330px; padding: 27px 31px; }
      .footer-panel::after { inset: auto 0 0 0; width: 100%; height: 6px; }
      .footer-top { font-size: 8px; }
      .footer-links { gap: 10px; font-size: 10px; }
      .footer-logo { font-size: 28px; }
      .footer-logo span { font-size: 7px; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    }

    .logo-1 img {
    max-width: 93px;
    height: auto;
    }
    .logo-2 img {
    max-width: 60px;
    height: auto;
    }

/* =========================================================
   MENU REVISION — rail gizlenir, panel ekranın solundan açılır
   ========================================================= */

/* Her zaman güvenilir ve semantik üç çizgili ikon yapısı */
.menu-toggle .menu-bar {
  display: block;
  width: 1px;
  height: 40px;
  background: currentColor;
  transform-origin: center;
  transition: height .28s var(--ease), transform .28s var(--ease), opacity .28s var(--ease), color .28s var(--ease);
}

.menu-toggle .menu-bar--long { height: 60px; }

.menu-toggle:hover .menu-bar--short { height: 22px; }

/* Menü sahnesi açıldığında soldaki ana rail tamamen kaybolur.
   Böylece drawer viewport x=0 noktasından tek parça başlar. */
.rail {
  transition: opacity .28s var(--ease), visibility .28s var(--ease), transform .36s var(--ease);
}

body.menu-open .rail {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-18px);
}

/* Referanstaki gibi panel doğrudan sol kenardan başlar ve ekranın %40'ını kaplar. */
.drawer {
  top: 0;
  bottom: 0;
  left: 0;
  width: min(40vw, 760px);
  min-width: 0;
  padding: clamp(56px, 6.25vw, 120px);
  background: rgba(19, 21, 30, .66);
  box-shadow: 28px 0 86px rgba(0,0,0,.24);
  backdrop-filter: blur(18px) saturate(105%);
  -webkit-backdrop-filter: blur(18px) saturate(105%);
  transform: translateX(-100%);
}

.drawer::before {
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 46%),
    linear-gradient(0deg, rgba(4,7,9,.26), transparent 48%),
    radial-gradient(circle at 70% 28%, rgba(213,43,50,.15), transparent 30%);
}

body.menu-open .drawer {
  transform: translateX(0);
}

/* Menü metinlerinin panel içinde referanstaki gibi merkezli, temiz bir kompozisyon oluşturması */
.drawer-content {
  display: grid;
  justify-items: center;
  text-align: center;
}

.drawer-nav {
  justify-items: center;
}

.drawer-nav a:hover,
.drawer-nav a.is-active {
  transform: translateX(0);
}

/* Referans görselindeki gibi kapatma işareti sol kenarda orta hatta bulunur. */
.drawer-close {
  top: 50%;
  left: clamp(32px, 3.2vw, 62px);
  transform: translateY(-50%);
}

.drawer-close:hover {
  transform: translateY(-50%) rotate(90deg);
}

/* Video menü panelinin altında daha net seçilsin. */
.menu-stage::before {
  background:
    linear-gradient(90deg, rgba(4,7,9,.30) 0%, rgba(4,7,9,.04) 56%, rgba(4,7,9,.42) 100%),
    linear-gradient(0deg, rgba(4,7,9,.28), transparent 58%);
}

/* Motto görselinin kaynak boyutu ne olursa olsun merkez kompozisyonu bozulmasın. */
.hero-title-gorsel img {
  display: block;
  width: min(100%, 900px);
  height: auto;
  margin: 0 auto;
}

/* Mobilde de rail görünmeden bağımsız menü sahnesi açılır. */
@media (max-width: 1100px) {
  .drawer {
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 94px 30px 38px;
  }

  .drawer-close {
    top: 28px;
    left: 22px;
    transform: none;
  }

  .drawer-close:hover { transform: rotate(90deg); }

  .menu-toggle .menu-bar { height: 22px; }
  .menu-toggle .menu-bar--long { height: 32px; }
}

/* İki ekranı tek sahne gibi kullanan uzun kompozisyonlar için.
   Örnek: <section class="panel panel--double">...</section> */
.panel--double {
  width: calc(200vw - var(--rail-w) - var(--rail-w));
  flex: 0 0 calc(200vw - var(--rail-w) - var(--rail-w));
}

@media (max-width: 1100px) {
  .panel--double {
    width: 100%;
    flex-basis: 100%;
  }
}

/* =========================================================
   PHILOSOPHY — İKİ EKRAN GENİŞLİĞİNDE TEK KOMPOZİSYON
   Hero'dan sonra gelir. .panel--double bu alanı masaüstünde
   iki normal sahne genişliğine uzatır.
========================================================= */
.philosophy {
  /*
    Başlangıç ve bitiş boşluğu aynı değişkeni kullanır.
    Böylece çift ekran sahnesinin iki ucu görsel olarak dengede kalır.
  */
  --philosophy-edge: clamp(112px, 8vw, 156px);
  --philosophy-end-shift: clamp(144px, 10vw, 248px);

  /*
    Açıklama metni ile balerin arasındaki kontrollü boşluk ayarı.
    Bu değer büyüdükçe balerin metne yaklaşır.
  */
  --philosophy-copy-dancer-adjust: clamp(120px, 8vw, 180px);

  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 46% 50%, rgba(255,255,255,.055), transparent 29%),
    radial-gradient(ellipse at 74% 22%, rgba(255,255,255,.035), transparent 31%),
    linear-gradient(90deg, #030405 0%, #090a0c 15%, #17181b 44%, #26272b 70%, #313237 100%);
}

.philosophy::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .68;
  background:
    linear-gradient(90deg, rgba(0,0,0,.20) 0%, transparent 28%, transparent 74%, rgba(0,0,0,.10) 100%),
    radial-gradient(circle at 62% 20%, rgba(255,255,255,.045) 0 1px, transparent 1.5px);
  background-size: auto, 29px 29px;
  mix-blend-mode: screen;
}

.philosophy-left-title,
.philosophy-copy,
.philosophy-dancer-stage,
.philosophy-right-title {
  position: absolute;
  z-index: 1;
}

/* Sol ana başlık: sol uçtan daha mesafeli ve her kelimede soldan sağa kırmızı-beyaz degrade */
.philosophy-left-title {
  top: 50%;
  left: var(--philosophy-edge);
  display: grid;
  gap: .035em;
  width: fit-content;
  font-size: 110px;
  font-weight: 300;
  letter-spacing: .01em;
  line-height: .93;
  transform: translateY(-50%);
}

.philosophy-left-title span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #ff3934 0%, #ff7069 33%, #f2b2af 67%, #f4f3f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*
  Açıklama metni, sol başlıktan sonra belirlenmiş ayrı bir okuma alanında başlar.
  Böylece başlıkla çakışmaz; arada bilerek bırakılmış okunaklı bir boşluk oluşur.
*/
.philosophy-copy {
  top: 50%;
  left: 26.6%;
  width: clamp(280px, 60.5vw, 560px);
  margin: 0;
  color: #ffffff;
  font-size: clamp(12px, 2.02vw, 30px);
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1.7;
  transform: translateY(-50%);
}

/*
  Balerin kompozisyonun merkez-sağında konumlanır.
  İlk halde sağ tarafta, görünür alanın dışında tutulur. JS sahne hedefi
  görünmeye yaklaşınca .is-revealed sınıfını verir ve bu giriş başlar.
*/
.philosophy-dancer-stage {
  top: 50%;
  left: calc(
    50% + var(--philosophy-end-shift) - var(--philosophy-copy-dancer-adjust)
  );
  width: clamp(600px, 36vw, 760px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(clamp(300px, 24vw, 520px), -50%, 0) rotate(6deg) scale(.975);
  transition:
    opacity .58s cubic-bezier(.22,.61,.36,1) .10s,
    transform 1.75s cubic-bezier(.16,.84,.31,1) .04s;
  will-change: transform, opacity;
}

.philosophy.is-revealed .philosophy-dancer-stage {
  opacity: 1;
  transform: translate3d(0, -50%, 0) rotate(0) scale(1);
}

.philosophy-dancer-float {
  width: 100%;
  transform-origin: 50% 57%;
  animation: philosophyDancerDrift 8.5s ease-in-out infinite;
  will-change: transform;
}

.philosophy-dancer-float img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(24px 24px 28px rgba(0,0,0,.27));
  user-select: none;
  -webkit-user-drag: none;
}

/*
  PHILOSOPHY sağ kenara sabitlenir. Sağdaki boşluk, sol başlığın başladığı
  boşlukla aynıdır; balerinle arasındaki mesafe ise kompozisyon içinde korunur.
*/
.philosophy-right-title {
  top: 50%;
  right: var(--philosophy-edge);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--red);
  font-size: clamp(52px, 4.4vw, 96px);
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color .28s var(--ease),
    letter-spacing .28s var(--ease);
}

/* Modern hover: ok yerine sağa doğru uzayan ince çizgi */
.philosophy-right-title::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: .85;
  transform-origin: left center;
  transition:
    width .34s cubic-bezier(.22,.61,.36,1),
    opacity .26s var(--ease);
}

.philosophy-right-title:hover {
  color: #ffffff;
  letter-spacing: .035em;
}

.philosophy-right-title:hover::after {
  width: 54px;
  opacity: 1;
}

@keyframes philosophyDancerDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-1.4deg) scale(1);
  }
  31% {
    transform: translate3d(-15px, -11px, 0) rotate(.8deg) scale(1.012);
  }
  64% {
    transform: translate3d(10px, 8px, 0) rotate(-.65deg) scale(.997);
  }
  82% {
    transform: translate3d(-4px, -4px, 0) rotate(.35deg) scale(1.006);
  }
}

@media (max-width: 1100px) {
  .philosophy {
    --philosophy-edge: 27px;
    min-height: 940px !important;
    padding: 0;
    background:
      radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.06), transparent 32%),
      linear-gradient(160deg, #060708 0%, #151619 52%, #303136 100%);
  }

  .philosophy::after {
    background:
      linear-gradient(180deg, rgba(0,0,0,.10), transparent 44%, rgba(0,0,0,.12)),
      radial-gradient(circle at 62% 20%, rgba(255,255,255,.04) 0 1px, transparent 1.5px);
    background-size: auto, 24px 24px;
  }

  .philosophy-left-title {
    top: 92px;
    left: var(--philosophy-edge);
    font-size: clamp(50px, 16vw, 76px);
    transform: none;
  }

  .philosophy-copy {
    top: 310px;
    left: var(--philosophy-edge);
    width: min(76vw, 330px);
    font-size: 13px;
    line-height: 1.75;
    transform: none;
  }

  .philosophy-dancer-stage {
    top: 50%;
    left: 8%;
    width: 84vw;
    transform: translate3d(55vw, -45%, 0) rotate(6deg) scale(.975);
  }

  .philosophy.is-revealed .philosophy-dancer-stage {
    transform: translate3d(0, -43%, 0) rotate(0) scale(1);
  }

  .philosophy-right-title {
    right: var(--philosophy-edge);
    bottom: 68px;
    top: auto;
    font-size: clamp(42px, 12vw, 64px);
    transform: none;
  }

  .philosophy-right-title:hover {
    color: #ffffff;
    letter-spacing: .03em;
  }

  .philosophy-dancer-float img {
    max-height: 510px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .philosophy-dancer-stage,
  .philosophy-dancer-float {
    transition: none !important;
    animation: none !important;
  }

  .philosophy-dancer-stage {
    opacity: 1;
    transform: translate3d(0, -50%, 0) !important;
  }
}


/* =========================================================
   IN BUILD — PHILOSOPHY SONRASI YAT CAROUSEL SAHNESİ
   Sol giriş alanı: yaklaşık 1920 px ekranın üçte biri.
   Sağ taraf: tam ekran yacht carousel.
========================================================= */
.in-build {
  --build-intro-w: clamp(480px, 33.333vw, 640px);
  --build-visual-w: calc(100vw - var(--rail-w));

  width: calc(var(--build-intro-w) + var(--build-visual-w));
  flex: 0 0 calc(var(--build-intro-w) + var(--build-visual-w));
  overflow: hidden;
  background: #e9e9eb;
}

.in-build::before {
  display: none;
}

.in-build-intro {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: var(--build-intro-w);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--red);
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(220,221,225,.48)),
    #e7e7e9;
}

.in-build-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background:
    linear-gradient(90deg, rgba(255,255,255,.65), transparent 45%),
    radial-gradient(circle at 52% 50%, rgba(213,43,50,.06), transparent 43%);
}

.in-build-intro span {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(50px, 4vw, 82px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.build-carousel {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--build-visual-w);
  height: 100%;
  overflow: hidden;
  background: #101a21;
}

.build-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.065);
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 30%, rgba(219,225,237,.35), transparent 23%),
    linear-gradient(125deg, #1c2d39 0%, #0c1720 54%, #05080b 100%);
  transition:
    opacity .85s cubic-bezier(.22,.61,.36,1),
    transform 1.25s cubic-bezier(.22,.61,.36,1);
}

.build-slide::before {
  content: "";
  position: absolute;
  inset: -3%;
  background-image:
    linear-gradient(90deg, rgba(2,7,11,.18) 0%, transparent 40%, rgba(2,7,11,.22) 100%),
    linear-gradient(0deg, rgba(2,6,9,.38) 0%, transparent 49%, rgba(2,6,9,.05) 100%),
    var(--slide-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.02);
  transition: transform 7s cubic-bezier(.2,.65,.25,1);
}

.build-slide--lunaris {
  background:
    radial-gradient(circle at 70% 30%, rgba(226,236,242,.33), transparent 21%),
    linear-gradient(124deg, #273b4d 0%, #142632 55%, #0b1116 100%);
}

.build-slide--valora {
  background:
    radial-gradient(circle at 31% 32%, rgba(160,184,198,.27), transparent 25%),
    linear-gradient(124deg, #384753 0%, #172630 57%, #0b1115 100%);
}

.build-slide--selene {
  background:
    radial-gradient(circle at 76% 20%, rgba(212,176,108,.20), transparent 24%),
    linear-gradient(124deg, #25313a 0%, #111d26 55%, #060a0d 100%);
}

.build-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.build-slide.is-active::before {
  transform: scale(1.095);
}

.build-slide.is-leaving {
  z-index: 2;
  opacity: 0;
  transform: scale(.985) translateX(-1.5%);
}

.build-slide-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,12,16,.10), transparent 36%),
    linear-gradient(0deg, rgba(2,7,11,.16), transparent 48%);
}

.build-yacht-label {
  position: absolute;
  z-index: 4;
  top: 42px;
  right: 46px;
  display: grid;
  justify-items: end;
  gap: 8px;
  color: #fff;
  text-align: right;
  pointer-events: none;
}

.build-yacht-label__index {
  color: rgba(255,255,255,.70);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
}

.build-yacht-label__name {
  display: block;
  font-size: clamp(28px, 2.7vw, 54px);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    opacity .24s var(--ease),
    transform .24s var(--ease);
}

.build-yacht-label.is-changing .build-yacht-label__name,
.build-yacht-label.is-changing .build-yacht-label__index {
  opacity: 0;
  transform: translateY(-8px);
}

.build-carousel-actions {
  position: absolute;
  z-index: 5;
  left: 42px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.build-discover {
  min-width: 184px;
  min-height: 52px;
}

.build-carousel-controls {
  display: flex;
  gap: 10px;
}

.build-carousel-control {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(209,179,99,.74);
  border-radius: 50%;
  color: #fff;
  background: rgba(178,147,68,.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  cursor: pointer;
  transition:
    color .26s var(--ease),
    background .26s var(--ease),
    border-color .26s var(--ease),
    transform .26s var(--ease);
}

.build-carousel-control span {
  display: block;
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.build-carousel-control:hover {
  color: #181a3f;
  border-color: #d3ad5d;
  background: #d3ad5d;
  transform: translateY(-4px);
}

.build-carousel-control:focus-visible,
.build-discover:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .in-build {
    --build-intro-w: 100%;
    width: 100%;
    min-height: auto !important;
    height: auto;
    display: block;
    background: #e8e8ea;
  }

  .in-build-intro {
    position: relative;
    width: 100%;
    height: 185px;
    min-height: 185px;
  }

  .in-build-intro span {
    font-size: 46px;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .build-carousel {
    position: relative;
    width: 100%;
    height: min(70svh, 640px);
    min-height: 500px;
  }

  .build-yacht-label {
    top: 26px;
    right: 24px;
  }

  .build-yacht-label__name {
    font-size: clamp(24px, 8vw, 42px);
  }

  .build-carousel-actions {
    left: 24px;
    right: 24px;
    bottom: 25px;
    justify-content: space-between;
    gap: 12px;
  }

  .build-discover {
    min-width: auto;
    padding: 0 18px;
    font-size: 9px;
  }

  .build-carousel-control {
    width: 48px;
    height: 48px;
  }
}


/* =========================================================
   IN BUILD CAROUSEL — GÖRSEL, OK VE GİRİŞ ALANI REVİZYONU
========================================================= */

/* Sol alanda koyu ton yok: hafif gri başlayıp beyaza açılan degrade */
.in-build-intro {
  background: linear-gradient(90deg, #d5d7db 0%, #e8e9eb 50%, #fbfbfc 100%);
}

.in-build-intro::after {
  opacity: .24;
  background:
    linear-gradient(90deg, rgba(255,255,255,.42), transparent 48%),
    radial-gradient(circle at 52% 50%, rgba(213,43,50,.045), transparent 43%);
}

/*
  Görseller CSS değişkeniyle değil, doğrudan IMG etiketiyle yüklenir.
  assets/images klasöründe dosya varsa kesin olarak görünür; dosya yoksa
  slide'ın kendi koyu fallback arka planı korunur.
*/
.build-slide::before {
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,7,11,.16) 0%, transparent 40%, rgba(2,7,11,.22) 100%),
    linear-gradient(0deg, rgba(2,6,9,.34) 0%, transparent 49%, rgba(2,6,9,.05) 100%);
  transform: none;
}

.build-slide__image {
  position: absolute;
  z-index: 0;
  inset: -3%;
  display: block;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1.02);
  transition: transform 7s cubic-bezier(.2,.65,.25,1);
}

.build-slide.is-active .build-slide__image {
  transform: scale(1.015);
}

.build-slide-shade {
  z-index: 2;
}

/* Sağ üstteki yat adı kesin biçimde yatay kalır */
.build-yacht-label,
.build-yacht-label__index,
.build-yacht-label__name {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
}

.build-yacht-label {
  top: 42px;
  right: 46px;
}

/*
  Sol alttaki Discover butonu solda kalır; carousel kontrolleri ise
  sağ alt köşeye gider.
*/
.build-carousel-actions {
  right: 42px;
  left: 42px;
  bottom: 38px;
  width: auto;
  justify-content: space-between;
}

.build-carousel-controls {
  margin-left: auto;
  gap: 14px;
}

/* Normal durumda beyaz ok + beyaz border, arka plan yok */
.build-carousel-control {
  width: 84px;
  height: 84px;
  border-color: rgba(255,255,255,.88);
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.build-carousel-control span {
  font-size: 32px;
}

/* Hover'da yumuşak, yarı şeffaf bir yüzey */
.build-carousel-control:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,.96);
  background: rgba(255,255,255,.16);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transform: translateY(-4px) scale(1.03);
}

@media (max-width: 1100px) {
  .in-build-intro {
    background: linear-gradient(135deg, #d9dbde 0%, #f6f6f7 100%);
  }

  .build-yacht-label {
    top: 26px;
    right: 24px;
  }

  .build-carousel-actions {
    right: 24px;
    left: 24px;
    bottom: 25px;
  }

  .build-carousel-controls {
    gap: 10px;
  }

  .build-carousel-control {
    width: 64px;
    height: 64px;
  }

  .build-carousel-control span {
    font-size: 27px;
  }
}


/* =========================================================
   IN BUILD — v3 GÖRSEL DÜZELTMELER
========================================================= */

/* Solda hafif gri, sağa doğru beyaza açılan net ama yumuşak geçiş */
.in-build-intro {
  background:
    linear-gradient(
      90deg,
      #cfd2d6 0%,
      #dde0e3 34%,
      #eceef0 64%,
      #fafafa 100%
    ) !important;
}

.in-build-intro::after {
  opacity: .18 !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.62) 100%),
    radial-gradient(circle at 35% 46%, rgba(213,43,50,.035), transparent 42%) !important;
}

/* Sağ üst yat bilgisi: dikey eksende, sağ kenara hizalı */
.build-yacht-label {
  top: 38px;
  right: 34px;
  bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 14px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: left;
}

.build-yacht-label__index,
.build-yacht-label__name {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: none;
}

.build-yacht-label__name {
  letter-spacing: .11em;
  line-height: 1;
}

.build-yacht-label__index {
  letter-spacing: .16em;
}

/* Normal: beyaz border ve beyaz ikon, arka plan şeffaf */
.build-carousel-control {
  color: #ffffff;
  border-color: rgba(255,255,255,.88);
  background: transparent;
}

/* Hover: beyaz değil, yarı saydam altın/gold yüzey */
.build-carousel-control:hover {
  color: #ffffff;
  border-color: rgba(218,184,93,.96);
  background: rgba(183,145,50,.42);
  box-shadow:
    inset 0 0 0 1px rgba(255,241,190,.16),
    0 10px 28px rgba(0,0,0,.20);
  transform: translateY(-4px) scale(1.03);
}

@media (max-width: 1100px) {
  .in-build-intro {
    background:
      linear-gradient(
        135deg,
        #d5d7da 0%,
        #e6e8ea 52%,
        #fafafa 100%
      ) !important;
  }

  .build-yacht-label {
    top: 24px;
    right: 22px;
    gap: 10px;
  }

  .build-yacht-label__name {
    font-size: clamp(22px, 7vw, 36px);
  }
}


/* =========================================================
   IN BUILD — v4 İSTENEN TON VE YAZI YÖNÜ DÜZELTMELERİ
========================================================= */

/* Kullanıcının istediği açık gri → beyaz degrade */
.in-build-intro {
  background: linear-gradient(
    90deg,
    #888888 0%,
    #babcbd 34%,
    #eceef0 64%,
    #ffffff 100%
  ) !important;
}

/* Hover: yarı şeffaf gold ton, ekran görüntüsündeki değerler */
.build-carousel-control:hover {
  color: #ffffff;
  border-color: rgb(170 144 66 / 66%);
  background: rgb(166 131 44 / 70%);
  box-shadow:
    inset 0 0 1px rgba(255, 241, 190, .16),
    0 10px 28px rgba(0, 0, 0, .20);
  transform: translateY(-4px) scale(1.03);
}

/*
  Sağ üst yat adı aşağıdan yukarı okunur.
  vertical-rl + 180° dönüş, Latin karakterlerin doğru okunma yönünü
  alt noktadan üst noktaya çevirir.
*/
.build-yacht-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.build-yacht-label__index,
.build-yacht-label__name {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  transform-origin: center;
}

.build-yacht-label__name {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .in-build-intro {
    background: linear-gradient(
      135deg,
      #9a9a9a 0%,
      #d8dadd 55%,
      #ffffff 100%
    ) !important;
  }
}


/* =========================================================
   MODELS / IN BUILD / FLEET — ORTAK CAROUSEL YAPISI
========================================================= */

/* Aynı soldan gri-beyaza akan giriş paneli üç bölümde ortak kullanılır. */
.category-section .in-build-intro {
  background: linear-gradient(
    90deg,
    #888888 0%,
    #babcbd 34%,
    #eceef0 64%,
    #ffffff 100%
  ) !important;
}

/* Sağ üst yat adı önceki hâlinin yaklaşık yarı boyutunda. */
.yacht-carousel .build-yacht-label__name {
  font-size: clamp(14px, 1.35vw, 27px) !important;
}

.yacht-carousel .build-yacht-label__index {
  font-size: clamp(6px, .48vw, 8px) !important;
}

/*
  Dikey yazı aşağıdan yukarı okunur. Etiket değişiminde rotate kullanılmaz:
  yalnızca çok hafif opacity + translate ile içeri süzülür.
*/
.yacht-carousel .build-yacht-label__name,
.yacht-carousel .build-yacht-label__index {
  opacity: 1;
  translate: 0 0;
  transform: rotate(180deg) !important;
  transition:
    opacity .30s cubic-bezier(.22,.61,.36,1),
    translate .40s cubic-bezier(.22,.61,.36,1) !important;
}

.yacht-carousel .build-yacht-label.is-changing .build-yacht-label__name,
.yacht-carousel .build-yacht-label.is-changing .build-yacht-label__index {
  opacity: 0;
  translate: 0 9px;
  transform: rotate(180deg) !important;
}

/* Yeni kategori sahnelerinde her carousel görseline ayrı fallback tonları. */
.models .build-slide--models-aurora {
  background:
    radial-gradient(circle at 74% 24%, rgba(209,224,235,.32), transparent 23%),
    linear-gradient(124deg, #324655 0%, #172833 55%, #0a1015 100%);
}

.models .build-slide--models-vela {
  background:
    radial-gradient(circle at 33% 28%, rgba(209,174,110,.19), transparent 26%),
    linear-gradient(124deg, #403c3c 0%, #1c2931 55%, #0b1014 100%);
}

.models .build-slide--models-nova {
  background:
    radial-gradient(circle at 70% 21%, rgba(230,230,230,.20), transparent 23%),
    linear-gradient(124deg, #30404d 0%, #17232b 56%, #090e12 100%);
}

.fleet .build-slide--fleet-orion {
  background:
    radial-gradient(circle at 74% 24%, rgba(183,207,223,.25), transparent 23%),
    linear-gradient(124deg, #273945 0%, #12232f 55%, #070c10 100%);
}

.fleet .build-slide--fleet-aria {
  background:
    radial-gradient(circle at 30% 26%, rgba(208,177,107,.19), transparent 25%),
    linear-gradient(124deg, #4a4440 0%, #1b2a32 56%, #0a0f13 100%);
}

.fleet .build-slide--fleet-nera {
  background:
    radial-gradient(circle at 73% 23%, rgba(215,223,228,.20), transparent 24%),
    linear-gradient(124deg, #24333d 0%, #101f28 55%, #060b0f 100%);
}

@media (max-width: 1100px) {
  .yacht-carousel .build-yacht-label__name {
    font-size: clamp(12px, 4vw, 20px) !important;
  }

  .yacht-carousel .build-yacht-label__index {
    font-size: 6px !important;
  }
}


/* =========================================================
   DISCOVER — FLEET SONRASI TAM EKRAN İNTERAKTİF SAHNE
========================================================= */
.discover-section {
  position: relative;
  width: calc(100vw - var(--rail-w));
  height: 100vh;
  flex: 0 0 calc(100vw - var(--rail-w));
  overflow: hidden;
  isolation: isolate;
  background: #1c1d3b;
}

.discover-section::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,21,49,.12), transparent 32%, transparent 68%, rgba(20,21,49,.12)),
    linear-gradient(0deg, rgba(0,0,0,.06), transparent 52%);
}

.discover-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 47% 51%, rgba(197,151,98,.28), transparent 18%),
    linear-gradient(128deg, #1b1c38 0%, #3a2d26 48%, #1a1a34 100%);
}

.discover-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7,8,18,.20);
}

.discover-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(1.04) brightness(.76);
  transform: scale(1.02);
  transition: transform 9s cubic-bezier(.2,.65,.25,1);
}

.discover-section:hover .discover-media img {
  transform: scale(1.065);
}

.discover-sector {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition:
    background .35s var(--ease),
    filter .35s var(--ease);
}

.discover-sector::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.discover-sector:hover::before {
  opacity: 1;
}

/* Üst beyaz üçgen */
.discover-sector--culture {
  color: #1e2031;
  clip-path: polygon(0 0, 100% 0, 50% 50%);
  background: rgba(250,250,250,.98);
}

.discover-sector--culture::before {
  background: linear-gradient(180deg, rgba(213,43,50,.08), transparent 62%);
}

/* Sol koyu üçgen */
.discover-sector--history {
  color: #fff;
  clip-path: polygon(0 0, 50% 50%, 0 100%);
  background: rgba(27,28,58,.92);
}

.discover-sector--history::before {
  background: linear-gradient(90deg, rgba(213,43,50,.22), transparent 74%);
}

/* Sağ koyu üçgen */
.discover-sector--process {
  color: #fff;
  clip-path: polygon(100% 0, 50% 50%, 100% 100%);
  background: rgba(27,28,58,.92);
}

.discover-sector--process::before {
  background: linear-gradient(270deg, rgba(213,43,50,.22), transparent 74%);
}

/* Alt beyaz üçgen */
.discover-sector--cta {
  color: #1e2031;
  clip-path: polygon(50% 50%, 0 100%, 100% 100%);
  background: rgba(250,250,250,.98);
}

.discover-sector--cta::before {
  background: linear-gradient(0deg, rgba(213,43,50,.08), transparent 62%);
}

.discover-sector__content {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 15px;
  text-align: center;
}

.discover-sector__content strong {
  font-size: clamp(24px, 2vw, 42px);
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1;
}

.discover-sector__content i {
  display: block;
  width: 74px;
  height: 1px;
  background: currentColor;
  opacity: .72;
  transform-origin: center;
  transition:
    width .32s var(--ease),
    opacity .32s var(--ease);
}

.discover-sector:hover .discover-sector__content i {
  width: 118px;
  opacity: 1;
}

.discover-sector--culture .discover-sector__content {
  top: 21%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.discover-sector--history .discover-sector__content {
  top: 57%;
  left: 25%;
  transform: translate(-50%, -50%);
}

.discover-sector--process .discover-sector__content {
  top: 57%;
  left: 75%;
  transform: translate(-50%, -50%);
}

.discover-sector--cta .discover-sector__content {
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.discover-cta-button {
  min-width: 150px;
  min-height: 56px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 25px rgba(213,43,50,.18);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .20em;
  transition:
    background .28s var(--ease),
    color .28s var(--ease),
    transform .28s var(--ease),
    box-shadow .28s var(--ease);
}

.discover-sector--cta:hover .discover-cta-button {
  color: var(--red);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--red);
  transform: translateY(-4px);
}

/* Mobilde üçgen şekiller yerine 2x2 interaktif kart yapısı. */
@media (max-width: 1100px) {
  .discover-section {
    width: 100%;
    height: auto;
    min-height: 760px !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .discover-media img {
    transform: scale(1.08);
  }

  .discover-sector {
    position: relative;
    inset: auto;
    min-height: 50vw;
    clip-path: none;
    display: grid;
    place-items: center;
    background: rgba(250,250,250,.95);
  }

  .discover-sector--history,
  .discover-sector--process {
    background: rgba(27,28,58,.92);
  }

  .discover-sector__content,
  .discover-sector--culture .discover-sector__content,
  .discover-sector--history .discover-sector__content,
  .discover-sector--process .discover-sector__content,
  .discover-sector--cta .discover-sector__content {
    position: static;
    transform: none;
  }

  .discover-sector__content strong {
    font-size: clamp(18px, 5vw, 28px);
  }

  .discover-sector__content i {
    width: 54px;
  }

  .discover-cta-button {
    min-width: 130px;
    min-height: 48px;
    font-size: 9px;
  }
}


/* =========================================================
   DISCOVER v2 — MERKEZDE GÖRSEL, DÖRT KENAR ÜÇGEN KOMPOZİSYONU
   Üst/alt: beyaz üçgenler
   Sol/sağ: menü rengindeki #181A3F üçgenler
========================================================= */
.discover-section {
  --discover-menu: #181A3F;
  --discover-white: #fafafa;
  --discover-center-width: clamp(410px, 38vw, 710px);
  --discover-side-width: clamp(275px, 26.4vw, 470px);

  position: relative;
  width: calc(100vw - var(--rail-w));
  height: 100vh;
  flex: 0 0 calc(100vw - var(--rail-w));
  overflow: hidden;
  isolation: isolate;
  background: var(--discover-menu);
}

.discover-section::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24,26,63,.10), transparent 33%, transparent 67%, rgba(24,26,63,.10)),
    linear-gradient(0deg, rgba(4,5,14,.12), transparent 46%, rgba(4,5,14,.05));
}

.discover-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(195,147,94,.24), transparent 17%),
    linear-gradient(128deg, #1b1c38 0%, #3a2d26 48%, #1a1a34 100%);
}

.discover-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7,8,18,.16);
}

.discover-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.80) contrast(1.05) brightness(.78);
  transform: scale(1.02);
  transition: transform 9s cubic-bezier(.2,.65,.25,1);
}

.discover-section:hover .discover-media img {
  transform: scale(1.055);
}

/* Geometrik yüzeyler, tıklanabilir metinlerden bağımsızdır. */
.discover-wedge {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

/* Üst beyaz üçgen, tepeden merkeze iner. */
.discover-wedge--top {
  top: 0;
  left: 50%;
  width: var(--discover-center-width);
  height: 50%;
  background: var(--discover-white);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}

/* Alt beyaz üçgen, merkezden alta açılır. */
.discover-wedge--bottom {
  bottom: 0;
  left: 50%;
  width: var(--discover-center-width);
  height: 50%;
  background: var(--discover-white);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  transform: translateX(-50%);
}

/* Sol ve sağ wedges, reference'taki menü rengini taşır. */
.discover-wedge--left {
  top: 0;
  left: 0;
  width: var(--discover-side-width);
  height: 100%;
  background: var(--discover-menu);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}

.discover-wedge--right {
  top: 0;
  right: 0;
  width: var(--discover-side-width);
  height: 100%;
  background: var(--discover-menu);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

/* Metinler merkezi görsel boşlukta / beyaz üçgenlerde konumlanır. */
.discover-action {
  position: absolute;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 13px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: color .28s var(--ease), transform .28s var(--ease);
}

.discover-action strong {
  font-size: clamp(22px, 1.9vw, 38px);
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1;
}

.discover-action > span:not(.discover-cta-button) {
  width: 70px;
  height: 1px;
  display: block;
  background: currentColor;
  opacity: .76;
  transition: width .30s var(--ease), opacity .30s var(--ease);
}

.discover-action:hover > span:not(.discover-cta-button) {
  width: 114px;
  opacity: 1;
}

.discover-action--culture {
  top: 21.8%;
  left: 50%;
  color: #202131;
  transform: translate(-50%, -50%);
}

.discover-action--history {
  top: 56.5%;
  left: 35%;
  transform: translate(-50%, -50%);
}

.discover-action--process {
  top: 56.5%;
  left: 65%;
  transform: translate(-50%, -50%);
}

.discover-action--history:hover {
  color: #fff;
  transform: translate(-50%, calc(-50% - 5px));
}

.discover-action--process:hover {
  color: #fff;
  transform: translate(-50%, calc(-50% - 5px));
}

.discover-action--culture:hover {
  color: var(--red);
  transform: translate(-50%, calc(-50% - 5px));
}

.discover-action--cta {
  top: 80.3%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.discover-cta-button {
  min-width: 151px;
  min-height: 56px;
  padding: 0 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 25px rgba(213,43,50,.18);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .20em;
  transition:
    color .28s var(--ease),
    background .28s var(--ease),
    box-shadow .28s var(--ease),
    transform .28s var(--ease);
}

.discover-action--cta:hover .discover-cta-button {
  color: var(--red);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--red);
  transform: translateY(-4px);
}

/* Mobilde, üçgen geometri yerine okunabilir 2×2 blok düzene geçer. */
@media (max-width: 1100px) {
  .discover-section {
    width: 100%;
    height: auto;
    min-height: 760px !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .discover-wedge {
    display: none;
  }

  .discover-media img {
    transform: scale(1.08);
  }

  .discover-action {
    position: relative;
    inset: auto;
    min-height: 50vw;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 11px;
    transform: none !important;
    background: rgba(250,250,250,.94);
  }

  .discover-action--history,
  .discover-action--process {
    color: #fff;
    background: rgba(24,26,63,.91);
  }

  .discover-action--culture {
    color: #202131;
  }

  .discover-action--cta {
    color: #202131;
  }

  .discover-action strong {
    font-size: clamp(18px, 5vw, 28px);
  }

  .discover-action > span:not(.discover-cta-button) {
    width: 54px;
  }
}


/* =========================================================
   HERITAGE JOURNEY — FLEET İLE DISCOVER ARASINDA GEÇİŞ SAHNESİ
   Video → merkez metin → hikâye görseli sırasıyla iki ekran boyunca akar.
========================================================= */
.heritage-journey {
  --heritage-gray: #303237;
  --heritage-navy: #181A3F;
  --heritage-space: clamp(50px, 5vw, 110px);

  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background:
    linear-gradient(
      90deg,
      var(--heritage-gray) 0%,
      var(--heritage-gray) 38%,
      #292b33 47%,
      #21243a 56%,
      var(--heritage-navy) 68%,
      var(--heritage-navy) 100%
    );
}

/* Hafif doku, Philosophy'deki atmosfer ile bağ kurar. */
.heritage-journey::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background:
    radial-gradient(circle at 16% 28%, rgba(255,255,255,.04) 0 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(255,255,255,.025), transparent 30%, transparent 72%, rgba(0,0,0,.12));
  background-size: 27px 27px, auto;
}

.heritage-video-wrap {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--heritage-space);
  width: clamp(500px, 42vw, 810px);
  height: clamp(340px, 62vh, 670px);
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 38%, rgba(220,225,230,.15), transparent 26%),
    linear-gradient(130deg, #4b4e56 0%, #1a1b20 62%, #11131b 100%);
  transform: translateY(-50%);
}

.heritage-video-wrap::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,6,9,.19), transparent 50%, rgba(4,6,9,.13)),
    linear-gradient(0deg, rgba(4,6,9,.19), transparent 56%);
}

.heritage-video,
.heritage-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.heritage-video {
  z-index: 1;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.66) contrast(1.04) brightness(.78);
}

.heritage-video-fallback {
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,.06), transparent 42%),
    linear-gradient(135deg, #5f626a 0%, #24262d 54%, #11131c 100%);
}

/* Metin video biter bitmez, gri → navy geçişinin merkezinde konumlanır. */
.heritage-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 51%;
  width: clamp(300px, 24vw, 480px);
  transform: translateY(-50%);
}

.heritage-kicker {
  display: block;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
}

.heritage-copy h2 {
  margin: 0;
  font-size: clamp(48px, 4.1vw, 82px);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: .92;
}

.heritage-copy p {
  max-width: 390px;
  margin: 26px 0 0;
  color: rgba(244,243,240,.83);
  font-size: clamp(13px, .9vw, 17px);
  font-weight: 300;
  line-height: 1.75;
}

/* Görsel metinden sonra ikinci ekranın başlangıcında görünür. */
.heritage-image {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(100vw - var(--rail-w) + 9vw);
  width: clamp(470px, 38vw, 760px);
  height: clamp(330px, 58vh, 610px);
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 28%, rgba(218,227,235,.19), transparent 22%),
    linear-gradient(135deg, #26323c 0%, #111b22 58%, #090d12 100%);
  transform: translateY(-50%);
}

.heritage-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,8,12,.09), transparent 54%, rgba(5,8,12,.16)),
    linear-gradient(0deg, rgba(5,8,12,.15), transparent 60%);
}

.heritage-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.03) brightness(.84);
  transform: scale(1.02);
  transition: transform 8s cubic-bezier(.2,.65,.25,1);
}

.heritage-journey:hover .heritage-image img {
  transform: scale(1.07);
}

/*
  Sağdaki lacivert bridge, hemen sonraki DISCOVER sahnesinin kenar üçgenleriyle
  aynı rengi taşır; iki bölümün boşluksuz, tek konsept gibi algılanmasını sağlar.
*/
.heritage-discover-bridge {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: clamp(210px, 16vw, 340px);
  height: 100%;
  pointer-events: none;
  background: var(--heritage-navy);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

@media (max-width: 1100px) {
  .heritage-journey {
    width: 100%;
    flex-basis: 100%;
    min-height: 1250px !important;
    background:
      linear-gradient(
        180deg,
        var(--heritage-gray) 0%,
        var(--heritage-gray) 34%,
        #282a34 52%,
        var(--heritage-navy) 76%,
        var(--heritage-navy) 100%
      );
  }

  .heritage-video-wrap {
    top: 76px;
    left: 24px;
    right: 24px;
    width: auto;
    height: min(50vw, 300px);
    transform: none;
  }

  .heritage-copy {
    top: 445px;
    left: 27px;
    width: calc(100% - 54px);
    transform: none;
  }

  .heritage-copy h2 {
    font-size: clamp(46px, 13vw, 70px);
  }

  .heritage-image {
    top: auto;
    bottom: 115px;
    left: 27px;
    width: calc(100% - 54px);
    height: min(57vw, 360px);
    transform: none;
  }

  .heritage-discover-bridge {
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 110px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
  }
}

/* Discover görselini arka planda tutmak için hafif siyah katman. */
.discover-section .discover-media::after {
  background: rgba(6, 8, 12, .28);
}


/* =========================================================
   HERITAGE JOURNEY v2
   Üç sahneli akış:
   1) büyük video
   2) yalın metin
   3) büyük görsel
========================================================= */

/* Üç görünür ekran genişliği; mobilde aşağıdaki media query tek kolona indirir. */
.panel--triple {
  width: calc(
    300vw
    - var(--rail-w)
    - var(--rail-w)
    - var(--rail-w)
  );
  flex: 0 0 calc(
    300vw
    - var(--rail-w)
    - var(--rail-w)
    - var(--rail-w)
  );
}

.heritage-journey {
  --heritage-gray: #303237;
  --heritage-navy: #181A3F;
  --heritage-frame: clamp(54px, 4.5vw, 94px);

  background:
    linear-gradient(
      90deg,
      var(--heritage-gray) 0%,
      var(--heritage-gray) 27%,
      #2d2f36 38%,
      #25283a 49%,
      #1e2140 63%,
      var(--heritage-navy) 76%,
      var(--heritage-navy) 100%
    );
}

/* Video: ilk sahnede her kenardan kontrollü boşluk bırakır. */
.heritage-video-wrap {
  top: var(--heritage-frame);
  left: var(--heritage-frame);
  width: calc(
    100vw
    - var(--rail-w)
    - var(--heritage-frame)
    - var(--heritage-frame)
  );
  height: calc(
    100vh
    - var(--heritage-frame)
    - var(--heritage-frame)
  );
  transform: none;
}

/* Başlık/kicker yok: Philosophy copy ile aynı sakin tipografi. */
.heritage-copy {
  top: 50%;
  left: calc(
    100vw
    - var(--rail-w)
    + clamp(72px, 8vw, 170px)
  );
  width: clamp(300px, 23vw, 445px);
  transform: translateY(-50%);
}

.heritage-copy p {
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-size: clamp(12px, .82vw, 16px);
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1.7;
}

.heritage-kicker,
.heritage-copy h2 {
  display: none;
}

/* Görsel: üçüncü sahnede video ile aynı neredeyse-tam-ekran oranında. */
.heritage-image {
  top: var(--heritage-frame);
  left: calc(
    200vw
    - var(--rail-w)
    - var(--rail-w)
    + var(--heritage-frame)
  );
  width: calc(
    100vw
    - var(--rail-w)
    - var(--heritage-frame)
    - var(--heritage-frame)
  );
  height: calc(
    100vh
    - var(--heritage-frame)
    - var(--heritage-frame)
  );
  transform: none;
}

/* DISCOVER'a geçişi keskin çizgi yerine sakin bir lacivert fade ile bırak. */
.heritage-discover-bridge {
  display: none;
}

.heritage-journey::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  width: clamp(90px, 7vw, 160px);
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--heritage-navy));
}

/*
  Yatay sahneler arasındaki fiziksel 1px ayrımlar görünmesin.
  Özellikle renk geçişli section'larda track zemin rengi sayesinde
  ince segment çizgisi oluşmaz.
*/
.track {
  background: var(--charcoal);
}

.category-section,
.heritage-journey,
.discover-section {
  outline: 0;
  border: 0;
  box-shadow: none;
}

/* Carousel bölümleri arasında yalnızca yumuşak tonal geçiş bırak. */
.category-section::after {
  content: "";
  position: absolute;
  z-index: 20;
  top: 0;
  right: -1px;
  width: clamp(28px, 2vw, 48px);
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(24,26,63,.20));
}

@media (max-width: 1100px) {
  .panel--triple {
    width: 100%;
    flex-basis: 100%;
  }

  .heritage-journey {
    --heritage-frame: 24px;
    width: 100%;
    flex-basis: 100%;
    min-height: 1500px !important;
    background:
      linear-gradient(
        180deg,
        var(--heritage-gray) 0%,
        var(--heritage-gray) 29%,
        #2a2c37 45%,
        #20233d 62%,
        var(--heritage-navy) 79%,
        var(--heritage-navy) 100%
      );
  }

  .heritage-video-wrap {
    top: var(--heritage-frame);
    left: var(--heritage-frame);
    right: var(--heritage-frame);
    width: auto;
    height: min(57vw, 355px);
  }

  .heritage-copy {
    top: 470px;
    left: 27px;
    width: calc(100% - 54px);
    transform: none;
  }

  .heritage-copy p {
    font-size: 13px;
    line-height: 1.75;
  }

  .heritage-image {
    top: auto;
    bottom: 90px;
    left: var(--heritage-frame);
    width: calc(100% - var(--heritage-frame) - var(--heritage-frame));
    height: min(61vw, 385px);
    transform: none;
  }

  .heritage-journey::after {
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--heritage-navy));
  }
}


/* =========================================================
   HERITAGE JOURNEY v3 — NET ÜÇ SAHNE KURGUSU
   VIDEO  |  METİN  |  GÖRSEL
   Her biri ayrı bir görünür ekran alanıdır.
========================================================= */

.panel--triple {
  width: calc(300vw - var(--rail-w) - var(--rail-w) - var(--rail-w));
  flex: 0 0 calc(300vw - var(--rail-w) - var(--rail-w) - var(--rail-w));
}

.heritage-journey {
  --heritage-gray: #303237;
  --heritage-navy: #181A3F;
  --heritage-frame: clamp(46px, 4.1vw, 84px);
  --heritage-stage-w: calc(100vw - var(--rail-w));

  display: flex;
  width: calc(300vw - var(--rail-w) - var(--rail-w) - var(--rail-w));
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background:
    linear-gradient(
      90deg,
      var(--heritage-gray) 0%,
      var(--heritage-gray) 31%,
      #2c2e35 40%,
      #23263a 50%,
      #1d2040 63%,
      var(--heritage-navy) 78%,
      var(--heritage-navy) 100%
    );
}

/* Atmosfer dokusu; sahneleri ayıran çizgi değil, tek yüzey hissi verir. */
.heritage-journey::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background:
    radial-gradient(circle at 10% 24%, rgba(255,255,255,.035) 0 1px, transparent 1.4px),
    linear-gradient(90deg, rgba(255,255,255,.022), transparent 31%, transparent 70%, rgba(0,0,0,.10));
  background-size: 28px 28px, auto;
}

.heritage-journey::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: clamp(74px, 6vw, 142px);
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--heritage-navy));
}

.heritage-stage {
  position: relative;
  z-index: 2;
  width: var(--heritage-stage-w);
  height: 100%;
  flex: 0 0 var(--heritage-stage-w);
}

/* VIDEO — büyük, ama ekrana yapışık değil; dört taraftan eşit boşluk */
.heritage-stage--video {
  display: grid;
  place-items: center;
}

.heritage-video-wrap {
  position: relative;
  top: auto;
  left: auto;
  width: calc(100% - var(--heritage-frame) - var(--heritage-frame));
  height: calc(100% - var(--heritage-frame) - var(--heritage-frame));
  overflow: hidden;
  transform: none;
  background:
    radial-gradient(circle at 60% 38%, rgba(220,225,230,.15), transparent 26%),
    linear-gradient(130deg, #5b5e66 0%, #24262d 58%, #11131b 100%);
}

.heritage-video-wrap::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,6,9,.20), transparent 50%, rgba(4,6,9,.14)),
    linear-gradient(0deg, rgba(4,6,9,.16), transparent 58%);
}

.heritage-video,
.heritage-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.heritage-video {
  z-index: 1;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.66) contrast(1.04) brightness(.78);
}

.heritage-video-fallback {
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,.06), transparent 42%),
    linear-gradient(135deg, #5f626a 0%, #24262d 54%, #11131c 100%);
}

/* METİN — video sonrasında, tamamen kendi sahnesinin ortasında */
.heritage-stage--copy {
  display: grid;
  place-items: center;
}

.heritage-copy {
  position: static;
  width: clamp(300px, 29vw, 520px);
  max-width: calc(100% - var(--heritage-frame) - var(--heritage-frame));
  margin: 0;
  transform: none;
}

.heritage-copy p {
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-size: clamp(12px, .82vw, 16px);
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1.7;
}

.heritage-copy h2,
.heritage-kicker {
  display: none !important;
}

/* GÖRSEL — büyük, video ile aynı ölçüde; üçüncü sahnede tam görünür */
.heritage-stage--image {
  display: grid;
  place-items: center;
}

.heritage-image {
  position: relative;
  top: auto;
  left: auto;
  width: calc(100% - var(--heritage-frame) - var(--heritage-frame));
  height: calc(100% - var(--heritage-frame) - var(--heritage-frame));
  margin: 0;
  overflow: hidden;
  transform: none;
  background:
    radial-gradient(circle at 68% 28%, rgba(218,227,235,.19), transparent 22%),
    linear-gradient(135deg, #26323c 0%, #111b22 58%, #090d12 100%);
}

.heritage-image::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,8,12,.10), transparent 54%, rgba(5,8,12,.18)),
    linear-gradient(0deg, rgba(5,8,12,.18), transparent 60%);
}

.heritage-image img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.03) brightness(.84);
  transform: scale(1.02);
  transition: transform 8s cubic-bezier(.2,.65,.25,1);
}

.heritage-journey:hover .heritage-image img {
  transform: scale(1.055);
}

/* Panel ayrım çizgilerini global olarak ortadan kaldır. */
.track > .panel::before,
.track > .panel:not(.hero)::before {
  opacity: 0 !important;
  background: transparent !important;
}

/*
  Carousel sonlarında görünen ince kesitleri azaltmak için:
  - Flex panelleri 1px bindir
  - Sadece tonal bir fade bırak
*/
.category-section {
  margin-right: -1px;
  border: 0 !important;
  outline: 0 !important;
}

.category-section::after {
  right: 0 !important;
  width: clamp(38px, 2.8vw, 62px) !important;
  background: linear-gradient(90deg, transparent, rgba(24,26,63,.13)) !important;
}

/* DISCOVER geçişi de çizgisiz devam eder. */
.discover-section {
  margin-right: -1px;
  border: 0 !important;
  outline: 0 !important;
}

@media (max-width: 1100px) {
  .panel--triple,
  .heritage-journey {
    width: 100%;
    flex-basis: 100%;
  }

  .heritage-journey {
    --heritage-frame: 24px;
    display: block;
    height: auto;
    min-height: 1560px !important;
    background:
      linear-gradient(
        180deg,
        var(--heritage-gray) 0%,
        var(--heritage-gray) 31%,
        #2b2d36 43%,
        #23263b 56%,
        var(--heritage-navy) 79%,
        var(--heritage-navy) 100%
      );
  }

  .heritage-stage {
    width: 100%;
    height: auto;
    min-height: 520px;
    display: grid;
    place-items: center;
  }

  .heritage-stage--video {
    min-height: 470px;
  }

  .heritage-stage--copy {
    min-height: 360px;
  }

  .heritage-stage--image {
    min-height: 500px;
  }

  .heritage-video-wrap,
  .heritage-image {
    width: calc(100% - var(--heritage-frame) - var(--heritage-frame));
    height: min(57vw, 360px);
  }

  .heritage-copy {
    width: calc(100% - 54px);
    max-width: 430px;
  }

  .heritage-copy p {
    font-size: 13px;
    line-height: 1.75;
  }

  .heritage-journey::after {
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--heritage-navy));
  }
}


/* =========================================================
   HERITAGE JOURNEY v4 — TEK UZUN KOMPOZİSYON
   16:9 VIDEO FRAME → METİN → 16:9 IMAGE FRAME
========================================================= */

.panel--heritage {
  width: auto !important;
  flex: 0 0 auto !important;
}

.heritage-journey {
  --heritage-gray: #303237;
  --heritage-navy: #181A3F;
  --heritage-frame: clamp(46px, 4.1vw, 84px);
  --heritage-media-w: clamp(860px, 66vw, 1240px);
  --heritage-copy-w: clamp(300px, 19vw, 410px);
  --heritage-gap: clamp(78px, 6vw, 142px);

  position: relative;
  display: flex !important;
  align-items: center;
  gap: var(--heritage-gap);
  width: max-content !important;
  min-width: 0;
  height: 100vh;
  flex: 0 0 auto !important;
  padding-inline: var(--heritage-frame);
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background:
    linear-gradient(
      90deg,
      var(--heritage-gray) 0%,
      var(--heritage-gray) 32%,
      #2c2e35 41%,
      #25283a 51%,
      #1f2240 64%,
      var(--heritage-navy) 78%,
      var(--heritage-navy) 100%
    );
}

/* Nokta dokusu yalnızca gri alanda; lacivert sona uzanmaz. */
.heritage-journey::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: 61%;
  pointer-events: none;
  opacity: .45;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(244,243,240,.14) 0 1px, transparent 1.45px);
  background-size: 29px 29px;
  mask-image: linear-gradient(90deg, #000 0%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 78%, transparent 100%);
}

.heritage-journey::after,
.heritage-discover-bridge {
  display: none !important;
}

/* Her üç eleman tek akışta; ayrı viewport stage yaklaşımı yok. */
.heritage-stage {
  position: relative !important;
  z-index: 2;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto;
}

.heritage-stage--video,
.heritage-stage--image {
  width: var(--heritage-media-w);
  aspect-ratio: 16 / 9;
}

/* Medya çerçeveleri kesin 16:9; tam ekrana yapışmaz. */
.heritage-video-wrap,
.heritage-image {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  overflow: hidden;
  transform: none !important;
  background:
    radial-gradient(circle at 60% 38%, rgba(220,225,230,.15), transparent 26%),
    linear-gradient(130deg, #5b5e66 0%, #24262d 58%, #11131b 100%);
}

.heritage-video-wrap::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,6,9,.18), transparent 50%, rgba(4,6,9,.13)),
    linear-gradient(0deg, rgba(4,6,9,.16), transparent 58%);
}

.heritage-video,
.heritage-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.heritage-video {
  z-index: 1;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.66) contrast(1.04) brightness(.78);
}

.heritage-video-fallback {
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,.06), transparent 42%),
    linear-gradient(135deg, #5f626a 0%, #24262d 54%, #11131c 100%);
}

.heritage-image {
  background:
    radial-gradient(circle at 68% 28%, rgba(218,227,235,.19), transparent 22%),
    linear-gradient(135deg, #26323c 0%, #111b22 58%, #090d12 100%);
}

.heritage-image::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,8,12,.10), transparent 54%, rgba(5,8,12,.18)),
    linear-gradient(0deg, rgba(5,8,12,.18), transparent 60%);
}

.heritage-image img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.03) brightness(.84);
  transform: scale(1.02);
  transition: transform 8s cubic-bezier(.2,.65,.25,1);
}

.heritage-journey:hover .heritage-image img {
  transform: scale(1.055);
}

/* Metin video–görsel aralığında, Philosophy copy tipografisiyle. */
.heritage-stage--copy {
  width: var(--heritage-copy-w);
  flex: 0 0 var(--heritage-copy-w);
}

.heritage-copy {
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
}

.heritage-copy p {
  max-width: none !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(12px, .82vw, 16px) !important;
  font-weight: 300 !important;
  letter-spacing: .01em !important;
  line-height: 1.7 !important;
}

.heritage-copy h2,
.heritage-kicker {
  display: none !important;
}

/* Bütün yatay section çizgilerini kaldır; yalnız tonal geçiş devam etsin. */
.track > .panel::before,
.track > .panel:not(.hero)::before {
  opacity: 0 !important;
  background: transparent !important;
}

.category-section,
.discover-section,
.heritage-journey {
  margin-right: -1px;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.category-section::after {
  background: linear-gradient(90deg, transparent, rgba(24,26,63,.09)) !important;
}

.heritage-journey + .discover-section {
  margin-left: -1px;
}

@media (max-width: 1100px) {
  .panel--heritage,
  .heritage-journey {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .heritage-journey {
    --heritage-frame: 24px;
    --heritage-gap: 72px;

    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: var(--heritage-gap);
    height: auto;
    min-height: 0 !important;
    padding: 56px var(--heritage-frame) 94px;
    overflow: hidden;
    background:
      linear-gradient(
        180deg,
        var(--heritage-gray) 0%,
        var(--heritage-gray) 33%,
        #2a2c37 48%,
        #20233d 65%,
        var(--heritage-navy) 84%,
        var(--heritage-navy) 100%
      );
  }

  .heritage-journey::before {
    width: 100%;
    height: 58%;
    bottom: auto;
    opacity: .38;
    mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  }

  .heritage-stage--video,
  .heritage-stage--image,
  .heritage-stage--copy {
    width: 100%;
    flex-basis: auto;
  }

  .heritage-stage--video,
  .heritage-stage--image {
    aspect-ratio: 16 / 9;
  }

  .heritage-copy {
    width: min(100%, 410px) !important;
    margin: 0 auto !important;
  }

  .heritage-copy p {
    font-size: 13px !important;
    line-height: 1.75 !important;
  }
}


/* =========================================================
   HERITAGE JOURNEY v5 — GÖRÜNÜR VİDEO + PHILOSOPHY-COPY RİTMİ
   Video → Metin → Görsel, tek bir uzun kompozisyon içinde.
========================================================= */

.heritage-journey {
  --heritage-gray: #303237;
  --heritage-navy: #181A3F;
  --heritage-frame: clamp(46px, 4.1vw, 84px);
  --heritage-media-w: clamp(980px, 70vw, 1360px);
  --heritage-copy-w: clamp(280px, 19vw, 525px);
  --heritage-gap: clamp(72px, 5.5vw, 124px);

  display: flex !important;
  align-items: center;
  gap: var(--heritage-gap);
  width: max-content !important;
  height: 100vh;
  padding-inline: var(--heritage-frame);
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      var(--heritage-gray) 0%,
      var(--heritage-gray) 30%,
      #2c2e35 40%,
      #27293a 50%,
      #202340 62%,
      var(--heritage-navy) 76%,
      var(--heritage-navy) 100%
    );
}

/* Philosophy arkasındaki nokta dili: yalnızca gri zeminde, lacivertte değil. */
.heritage-journey::before {
  width: 54% !important;
  opacity: .46;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(244,243,240,.14) 0 1px, transparent 1.45px);
  background-size: 29px 29px;
  mask-image: linear-gradient(90deg, #000 0%, #000 79%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 79%, transparent 100%);
}

/* Eski üç-stage kuralları tamamen etkisizleşir. */
.heritage-journey .heritage-stage {
  position: relative !important;
  z-index: 2;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto;
}

.heritage-journey .heritage-stage--video,
.heritage-journey .heritage-stage--image {
  display: block !important;
  width: var(--heritage-media-w) !important;
  aspect-ratio: 16 / 9;
}

.heritage-journey .heritage-stage--copy {
  display: flex !important;
  align-items: center;
  width: var(--heritage-copy-w) !important;
  flex: 0 0 var(--heritage-copy-w) !important;
}

/* Video ve görsel oranı kesindir: 16:9; büyürken uzamaz. */
.heritage-journey .heritage-video-wrap,
.heritage-journey .heritage-image {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  overflow: hidden;
  transform: none !important;
}

/* Video dosyası yüklenmese de poster görülsün. Video hazır olduğunda onun üzerinde oynar. */
.heritage-video-poster {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.66) contrast(1.04) brightness(.78);
}

.heritage-journey .heritage-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(.66) contrast(1.04) brightness(.78);
  transition: opacity .38s ease;
}

.heritage-journey .heritage-video.is-ready {
  opacity: 1;
}

.heritage-journey .heritage-video-fallback {
  z-index: -1;
}

/*
  İstenen metin: Philosophy'deki .philosophy-copy ile aynı tipografik değerler.
  Bu alan artık video ile görselin arasındaki kendi sütununda durur;
  videonun üzerine binmez.
*/
.heritage-journey .heritage-copy {
  position: static !important;
  width: clamp(280px, 60.5vw, 525px) !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(12px, 2.02vw, 30px) !important;
  font-weight: 300 !important;
  letter-spacing: .01em !important;
  line-height: 1.7 !important;
  transform: none !important;
}

.heritage-journey .heritage-copy p {
  max-width: none !important;
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
}

/* Frame overlay'leri medya alanının üstünde kalır. */
.heritage-journey .heritage-video-wrap::before,
.heritage-journey .heritage-image::after {
  z-index: 3;
}

@media (max-width: 1100px) {
  .heritage-journey {
    --heritage-gap: 70px;
    --heritage-frame: 24px;

    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
    height: auto;
    min-height: 0 !important;
    padding: 56px var(--heritage-frame) 94px;
  }

  .heritage-journey::before {
    width: 100% !important;
    height: 59%;
  }

  .heritage-journey .heritage-stage--video,
  .heritage-journey .heritage-stage--image,
  .heritage-journey .heritage-stage--copy {
    width: 100% !important;
    flex-basis: auto !important;
  }

  .heritage-journey .heritage-stage--copy {
    display: block !important;
  }

  .heritage-journey .heritage-copy {
    width: min(100%, 525px) !important;
    font-size: clamp(13px, 4.2vw, 20px) !important;
  }
}


/* =========================================================
   RMK MENU TREE — HİYERARŞİK YACHT NAVİGASYONU
========================================================= */

:root {
  --menu-navy: #181A3F;
  --menu-red: #ff443d;
  --menu-drawer-w: min(40vw, 760px);
}

/* Ana hero sağ üst CTA tekrar CONTACT US. */
.hero-contact {
  text-transform: uppercase;
}

/* Eski menü sahnesindeki sağ alt metni tamamen kaldır. */
.menu-stage::after {
  content: none !important;
  display: none !important;
}

/* Menü videosunun üstündeki siyah katman: yazılar okunur, video yine hissedilir. */
.menu-stage::before {
  background:
    linear-gradient(90deg, rgba(3,5,10,.68) 0%, rgba(3,5,10,.47) 38%, rgba(3,5,10,.25) 66%, rgba(3,5,10,.48) 100%),
    linear-gradient(0deg, rgba(3,5,10,.42), transparent 55%) !important;
}

.menu-stage video {
  filter: saturate(.72) contrast(1.08) brightness(.60) !important;
}

/* Menü açıkken sağ üstte sabit Contact Us. */
.menu-contact-us {
  position: fixed;
  z-index: 160;
  top: 32px;
  right: 44px;
  min-width: 182px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--menu-navy);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity .28s var(--ease),
    visibility .28s var(--ease),
    transform .28s var(--ease),
    background .28s var(--ease),
    color .28s var(--ease);
}

body.menu-open .menu-contact-us {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-contact-us:hover {
  color: var(--menu-navy);
  background: #ffffff;
}

/* Drawer sol tarafta tek blok; rail zaten menu-open iken gizlenir. */
.drawer {
  z-index: 140 !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: var(--menu-drawer-w) !important;
  min-width: 0 !important;
  padding: clamp(54px, 5.7vw, 108px) clamp(38px, 4vw, 72px) !important;
  display: block !important;
  overflow: hidden auto !important;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(24,26,63,.82) 0%, rgba(15,16,31,.72) 100%) !important;
  box-shadow: 26px 0 72px rgba(0,0,0,.27) !important;
  backdrop-filter: blur(16px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(108%) !important;
}

.drawer::before {
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 42%),
    linear-gradient(0deg, rgba(0,0,0,.24), transparent 50%) !important;
}

.drawer-close {
  top: 50% !important;
  left: clamp(31px, 3vw, 58px) !important;
  width: 42px !important;
  height: 42px !important;
  color: #ffffff !important;
  transform: translateY(-50%) !important;
  font-size: 31px !important;
}

.drawer-close:hover {
  color: var(--menu-red) !important;
  transform: translateY(-50%) rotate(90deg) !important;
}

.drawer-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center !important;
  text-align: center !important;
}

/* Root menu: gönderilen görseldeki merkezli sade hiyerarşi. */
.menu-tree {
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.menu-tree[hidden] {
  display: none !important;
}

.menu-tree__list {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.menu-tree__list--compact {
  max-height: min(62vh, 620px);
  padding: 4px 6px;
  overflow-y: auto;
  gap: 13px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.32) transparent;
}

.menu-tree__item {
  border: 0;
  padding: 0;
  color: var(--menu-red);
  background: transparent;
  font: inherit;
  font-size: clamp(19px, 1.65vw, 31px);
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1.12;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color .24s var(--ease),
    transform .24s var(--ease),
    letter-spacing .24s var(--ease);
}

.menu-tree__item:hover,
.menu-tree__item:focus-visible,
.menu-tree__item.is-active {
  color: #ffffff;
  letter-spacing: .065em;
  transform: translateY(-2px);
  outline: none;
}

.menu-tree__item--root-yachts {
  color: #ffffff;
}

.menu-tree__item--compact {
  font-size: clamp(15px, 1.15vw, 22px);
}

/* Alt menü başlığı: geri oku + aktif katman adı. */
.menu-tree__header {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.menu-tree__back {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: transparent;
  font-size: 23px;
  cursor: pointer;
  transition: color .22s var(--ease), transform .22s var(--ease);
}

.menu-tree__back:hover {
  color: var(--menu-red);
  transform: translateX(-4px);
}

.menu-tree__title {
  color: var(--menu-red);
  font-size: clamp(19px, 1.65vw, 31px);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
}

.menu-tree__eyebrow {
  margin-bottom: 28px;
  color: rgba(255,255,255,.56);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Sağ preview: sadece CORE/AURA/INFINITE ve Fleet tekne listelerinde görünür. */
.menu-preview {
  position: fixed;
  z-index: 130;
  top: 50%;
  right: clamp(50px, 6vw, 120px);
  width: clamp(380px, 35vw, 690px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-47%) translateX(26px);
  transition:
    opacity .35s var(--ease),
    visibility .35s var(--ease),
    transform .52s var(--ease);
}

.menu-preview.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.menu-preview__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(24,26,63,.28), rgba(5,7,14,.42)),
    radial-gradient(circle at 70% 26%, rgba(255,255,255,.14), transparent 24%),
    linear-gradient(135deg, #404650, #111722 68%);
  background-image:
    linear-gradient(130deg, rgba(24,26,63,.28), rgba(5,7,14,.42)),
    var(--menu-preview-image, radial-gradient(circle at 70% 26%, rgba(255,255,255,.14), transparent 24%)),
    linear-gradient(135deg, #404650, #111722 68%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background-image .35s ease;
}

.menu-preview__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(4,6,12,.58) 0%, transparent 55%),
    linear-gradient(90deg, rgba(4,6,12,.14), transparent 68%);
}

.menu-preview__discover {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 30px;
  min-width: 156px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(24,26,63,.42);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-decoration: none;
  transform: translateX(-50%);
  transition:
    color .25s var(--ease),
    background .25s var(--ease),
    border-color .25s var(--ease),
    transform .25s var(--ease);
}

.menu-preview__discover:hover {
  color: #ffffff;
  border-color: var(--menu-red);
  background: var(--menu-red);
  transform: translateX(-50%) translateY(-4px);
}

/* Menü açıldığında ana sayfadaki scroll orb görünmesin. */
body.menu-open .scroll-orb {
  opacity: 0;
  visibility: hidden;
}

/* Daha küçük ekranlarda preview akışı sola çarpmadan kapatılır. */
@media (max-width: 1100px) {
  .menu-contact-us {
    top: 16px;
    right: 17px;
    min-width: 142px;
    min-height: 46px;
    font-size: 8px;
  }

  .drawer {
    width: 100% !important;
    padding: 84px 30px 38px !important;
  }

  .drawer-close {
    top: 24px !important;
    left: 18px !important;
    transform: none !important;
  }

  .drawer-close:hover {
    transform: rotate(90deg) !important;
  }

  .menu-tree {
    gap: 16px;
  }

  .menu-tree__list {
    gap: 15px;
  }

  .menu-tree__item {
    font-size: clamp(18px, 6vw, 28px);
  }

  .menu-tree__item--compact {
    font-size: clamp(14px, 4.6vw, 21px);
  }

  .menu-tree__header {
    margin-bottom: 28px;
  }

  .menu-preview {
    display: none !important;
  }
}


/* =========================================================
   MENU LAYOUT v2 — VIDEO YALNIZCA SOL DRAWER'DA
   Sağ bölüm: MODELS / IN BUILD / FLEET için tam alan görsel preview.
========================================================= */

:root {
  --menu-drawer-w: min(40vw, 760px);
}

/* Sağ alanın tamamında video değil; bulunduğun sayfanın üzerine sakin karartma. */
.menu-stage {
  z-index: 120 !important;
  background: rgba(2, 4, 8, .48) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.menu-stage::before,
.menu-stage::after {
  content: none !important;
  display: none !important;
}

/* Sol menü paneli video + koyu okunabilirlik katmanı olarak çalışır. */
.drawer {
  isolation: isolate;
  background: #0d1020 !important;
  overflow: hidden auto !important;
}

.drawer-menu-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.68) contrast(1.08) brightness(.54);
}

.drawer::before {
  z-index: 1 !important;
  inset: 0 !important;
  background:
    linear-gradient(180deg, rgba(24,26,63,.72) 0%, rgba(10,11,26,.68) 100%),
    linear-gradient(90deg, rgba(4,5,11,.45), rgba(4,5,11,.20)) !important;
}

.drawer-content {
  z-index: 2 !important;
}

.drawer-close {
  z-index: 4 !important;
  width: 68px !important;
  height: 68px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  font-size: 44px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

/* Root YACHTS diğer root linkler gibi kırmızı. */
.menu-tree__item--root-yachts {
  color: var(--menu-red) !important;
}

/* Sadece alt seviyede üstte duran aktif menü başlıkları beyaz. */
.menu-tree__title {
  color: #ffffff !important;
}

/* MODELS ve alt seviyelerde sağda kalan 1920 alanın tamamına görsel gelir. */
.menu-preview {
  z-index: 130 !important;
  top: 0 !important;
  right: 0 !important;
  left: var(--menu-drawer-w) !important;
  width: auto !important;
  height: 100vh !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(22px) !important;
  transition:
    opacity .34s var(--ease),
    visibility .34s var(--ease),
    transform .52s var(--ease) !important;
}

.menu-preview.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) !important;
}

.menu-preview__media {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.menu-preview__media::after {
  background:
    linear-gradient(0deg, rgba(4,6,12,.58) 0%, transparent 57%),
    linear-gradient(90deg, rgba(4,6,12,.20), transparent 67%) !important;
}

.menu-preview__discover {
  bottom: clamp(34px, 6vh, 74px) !important;
}

/* Root ve YACHTS katmanında sağ görüntü yok; sadece sol drawer video çalışır. */
body.menu-open[data-menu-node="main"] .menu-preview,
body.menu-open[data-menu-node="yachts"] .menu-preview {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Mobilde drawer tüm ekran olduğu için video doğal olarak bütün menüyü kaplar. */
@media (max-width: 1100px) {
  .drawer-close {
    width: 58px !important;
    height: 58px !important;
    font-size: 39px !important;
  }

  .menu-stage {
    background: rgba(2, 4, 8, .62) !important;
  }
}


/* =========================================================
   MENU BEHAVIOR v3
   MAIN / YACHTS: genel video ekranın tamamında, drawer şeffaf.
   MODELS / IN BUILD / FLEET ve altları: video yalnız drawer'da,
   sağ kalan alan hover edilen son preview görseli.
========================================================= */

.menu-stage {
  z-index: 120 !important;
  background: #06080f !important;
}

.menu-stage video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(.68) contrast(1.08) brightness(.58) !important;
  transition: opacity .32s var(--ease);
}

.menu-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block !important;
  background:
    linear-gradient(90deg, rgba(4,7,15,.34) 0%, rgba(4,7,15,.10) 47%, rgba(4,7,15,.48) 100%),
    linear-gradient(0deg, rgba(4,7,15,.28), transparent 58%) !important;
}

/* Sol drawer, genel video üzerinden yarı şeffaf kalır. */
.drawer {
  background: rgba(12, 14, 39, .24) !important;
  backdrop-filter: blur(8px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(108%) !important;
}

.drawer::before {
  background:
    linear-gradient(180deg, rgba(16,18,54,.38) 0%, rgba(6,8,24,.34) 100%),
    linear-gradient(90deg, rgba(4,5,11,.18), transparent 72%) !important;
}

.drawer-menu-video {
  opacity: 1;
  transition: opacity .34s var(--ease);
}

/* Ana menü ve YACHTS'ta drawer iç videosu gizlenir: tek genel video görünür. */
body.menu-open[data-menu-node="main"] .drawer-menu-video,
body.menu-open[data-menu-node="yachts"] .drawer-menu-video {
  opacity: 0;
}

body.menu-open[data-menu-node="main"] .menu-stage,
body.menu-open[data-menu-node="yachts"] .menu-stage {
  opacity: 1 !important;
  visibility: visible !important;
}

/*
  MODELS / IN BUILD / FLEET ve altlarında genel stage geri çekilir.
  Drawer içindeki aynı video açık kalır; sağdaki preview alanı bağımsız görsel olur.
*/
body.menu-open[data-menu-node="models"] .menu-stage,
body.menu-open[data-menu-node="inbuild"] .menu-stage,
body.menu-open[data-menu-node="fleet"] .menu-stage,
body.menu-open[data-menu-node="liva"] .menu-stage,
body.menu-open[data-menu-node="petra"] .menu-stage,
body.menu-open[data-menu-node="eoi"] .menu-stage,
body.menu-open[data-menu-node="inbuild-project-01"] .menu-stage,
body.menu-open[data-menu-node="inbuild-project-02"] .menu-stage,
body.menu-open[data-menu-node="inbuild-project-03"] .menu-stage {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Sağ preview bölümü tam kalan ekranı kaplar. */
.menu-preview {
  z-index: 130 !important;
  top: 0 !important;
  right: 0 !important;
  left: var(--menu-drawer-w) !important;
  width: auto !important;
  height: 100vh !important;
  aspect-ratio: auto !important;
  background: #080a12;
}

/* Preview açıkken menünün son hover edilen görseli görünür kalır. */
.menu-preview.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
}

/* Root ve YACHTS katmanlarında sağ görsel alanı bulunmaz. */
body.menu-open[data-menu-node="main"] .menu-preview,
body.menu-open[data-menu-node="yachts"] .menu-preview {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Kapatma alanı hem büyük hem stabil. */
.drawer-close {
  width: 76px !important;
  height: 76px !important;
  font-size: 47px !important;
  z-index: 5 !important;
}

/* Root YACHTS kırmızı; yalnız alt katman başlıkları beyaz. */
.menu-tree__item--root-yachts {
  color: var(--menu-red) !important;
}

.menu-tree__title {
  color: #ffffff !important;
}

@media (max-width: 1100px) {
  .menu-stage video {
    opacity: 1 !important;
  }

  .drawer {
    background: rgba(12, 14, 39, .30) !important;
  }

  .drawer-close {
    width: 62px !important;
    height: 62px !important;
    font-size: 42px !important;
  }
}


/* =========================================================
   MENU PREVIEW v4 — GERÇEK IMG YÜKLEME
   Preview artık CSS background değişkeni değil, doğrudan <img> ile yüklenir.
========================================================= */

.menu-preview__media {
  background:
    radial-gradient(circle at 68% 26%, rgba(255,255,255,.10), transparent 25%),
    linear-gradient(135deg, #253041 0%, #111725 58%, #070a11 100%) !important;
}

.menu-preview__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .34s var(--ease), transform 7s cubic-bezier(.2,.65,.25,1);
  transform: scale(1.02);
}

.menu-preview__image.is-loaded {
  opacity: 1;
}

.menu-preview:hover .menu-preview__image.is-loaded {
  transform: scale(1.045);
}

.menu-preview__media::after {
  z-index: 1 !important;
}


/* =========================================================
   SUBPAGE FOUNDATION — ALT SAYFA RAY DAVRANIŞI
========================================================= */

body.subpage {
  background: #181a3f;
}

body.subpage .main {
  inset: 0 !important;
}

body.subpage .rail {
  background: rgba(24, 26, 63, .72);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

body.subpage .panel {
  width: 100vw;
  height: 100vh;
  flex: 0 0 100vw;
}

body.subpage .footer-panel {
  height: 100vh;
  flex: 0 0 var(--footer-w);
}

/* =========================================================
   CONTACT PAGE — İÇ MENÜ / TAB SAHNESİ
========================================================= */

.contact-page {
  --contact-navy: #1c1e45;
  --contact-navy-deep: #151735;
  --contact-subnav-w: clamp(205px, 15vw, 286px);
  --contact-page-pad: clamp(44px, 5vw, 104px);
  --contact-red: #ff443d;
  --contact-white: #f6f5f1;
}

.contact-entry {
  display: flex;
  padding-left: var(--rail-w);
  overflow: hidden;
  color: var(--contact-white);
  background:
    linear-gradient(90deg, rgba(30,31,61,.98) 0%, rgba(26,28,61,.98) 52%, rgba(24,26,63,.98) 100%);
}

.contact-entry::before,
.career-intro::before,
.career-application::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 28%, rgba(255,255,255,.025) 0 1px, transparent 1.4px),
    linear-gradient(90deg, rgba(255,255,255,.018), transparent 38%, rgba(0,0,0,.06));
  background-size: 28px 28px, auto;
}

.contact-subnav {
  position: relative;
  z-index: 2;
  width: var(--contact-subnav-w);
  flex: 0 0 var(--contact-subnav-w);
  min-height: 100%;
  padding: 52px 22px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--contact-red);
  background: rgba(29,31,64,.72);
}

.contact-subnav__label {
  align-self: flex-start;
  font-size: clamp(12px, .9vw, 17px);
  font-weight: 500;
  letter-spacing: .04em;
}

.contact-subnav__group {
  width: 100%;
  margin: auto 0;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.contact-subnav__rule {
  width: 1px;
  height: 62px;
  display: block;
  background: rgba(255,255,255,.42);
}

.contact-subnav__item {
  padding: 0;
  color: rgba(255,68,61,.66);
  background: transparent;
  font-size: clamp(10px, .72vw, 14px);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color .26s var(--ease),
    font-size .26s var(--ease),
    transform .26s var(--ease);
}

.contact-subnav__item:hover,
.contact-subnav__item:focus-visible {
  color: #ffffff;
  outline: none;
  transform: translateX(3px);
}

.contact-subnav__item.is-active {
  color: var(--contact-red);
  font-size: clamp(19px, 1.6vw, 31px);
  font-weight: 500;
  letter-spacing: .035em;
}

/* İÇ TAB SAHNESİ */
.contact-tab-stage {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--contact-subnav-w));
  flex: 0 0 calc(100% - var(--contact-subnav-w));
  overflow: hidden;
}

.contact-view {
  position: absolute;
  inset: 0;
  padding: clamp(54px, 6vw, 112px) var(--contact-page-pad);
  opacity: 0;
  visibility: hidden;
  transform: translateX(28px);
  transition:
    opacity .42s var(--ease),
    visibility .42s var(--ease),
    transform .54s var(--ease);
}

.contact-view.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* LOCATION */
.contact-location-layout {
  width: min(100%, 1160px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 30px;
}

.office-switcher {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
  padding-left: 4px;
}

.office-switcher__item {
  padding: 0;
  color: rgba(255,255,255,.78);
  background: transparent;
  font-size: clamp(11px, .8vw, 15px);
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s var(--ease);
}

.office-switcher__item:hover,
.office-switcher__item:focus-visible {
  color: #ffffff;
  outline: none;
}

.office-switcher__item.is-active {
  color: var(--contact-red);
}

.office-map-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #8ccfe2 0 32%, #eef1f0 32% 100%);
  box-shadow: 0 12px 28px rgba(0,0,0,.13);
}

.office-map-frame iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(.82) contrast(.96);
}

.office-map-frame__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(24,26,63,.56);
  background:
    repeating-linear-gradient(25deg, transparent 0 38px, rgba(24,26,63,.10) 39px 41px, transparent 42px 76px),
    repeating-linear-gradient(-58deg, transparent 0 59px, rgba(24,26,63,.08) 60px 62px, transparent 63px 112px),
    linear-gradient(118deg, #8cd4e6 0 27%, #f0f1ee 27% 100%);
  font-size: 11px;
  letter-spacing: .18em;
}

.office-map-caption {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ENQUIRY */
.enquiry-layout {
  width: min(100%, 1240px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(430px, 1.15fr);
  align-items: center;
  gap: clamp(54px, 8vw, 160px);
}

.contact-address {
  align-self: stretch;
  min-height: 0;
  padding: 42px 0;
  display: flex;
  flex-direction: column;
}

.contact-address__title {
  display: grid;
  gap: 14px;
  width: fit-content;
  color: #ffffff;
  font-size: clamp(16px, 1.15vw, 22px);
  font-weight: 300;
}

.contact-address__title i {
  width: 70px;
  height: 1px;
  display: block;
  background: rgba(255,255,255,.72);
}

.contact-address__list {
  margin: auto 0;
  display: grid;
  gap: 28px;
}

.contact-address__row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  align-items: start;
  color: rgba(255,255,255,.86);
  font-size: clamp(11px, .74vw, 14px);
  font-weight: 300;
  line-height: 1.7;
}

.contact-address__row p {
  margin: 0;
}

.contact-address__row a {
  color: inherit;
}

.contact-address__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 50%;
  font-size: 14px;
}

.contact-address__socials {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.contact-address__socials a {
  font-size: 12px;
  font-weight: 500;
}

.contact-form,
.career-form {
  display: grid;
  gap: 10px;
}

.contact-form label,
.career-form label {
  position: relative;
  display: block;
}

.contact-form label > span,
.career-form label > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 17px;
  color: rgba(24,26,63,.67);
  font-size: 9px;
  font-weight: 400;
  pointer-events: none;
  transform: translateY(-50%);
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.career-form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 3px;
  outline: none;
  color: #151735;
  background: #fbfbfb;
  font: inherit;
  font-size: 10px;
  transition: box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.contact-form input,
.contact-form select,
.career-form input {
  height: 40px;
  padding: 0 15px;
}

.contact-form textarea {
  height: 132px;
  padding: 15px;
  resize: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.career-form input:focus {
  border-color: var(--contact-red);
  box-shadow: 0 0 0 2px rgba(255,68,61,.16);
}

.contact-form__row,
.career-form__row {
  display: grid;
  gap: 10px;
}

.contact-form__row--two,
.career-form__row--two {
  grid-template-columns: 1fr 1fr;
}

.contact-form__textarea > span {
  top: 18px !important;
  transform: none !important;
}

.contact-form__bottom {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-form__bottom--dynamic {
  align-items: flex-end;
}

.contact-form__bottom--dynamic .contact-form__checks {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-form__bottom--dynamic .contact-form__submit {
  flex: 0 0 auto;
  align-self: flex-end;
}

.contact-form__checks {
  display: grid;
  gap: 10px;
}

.contact-form__single-choice {
  display: grid;
  gap: 10px;
}

.contact-form__single-choice-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.circle-check {
  display: flex !important;
  align-items: center;
  gap: 11px;
  color: rgba(255,255,255,.92);
  cursor: pointer;
}

.circle-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.circle-check > span {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: transparent;
  transform: none !important;
  transition: background .22s var(--ease), border-color .22s var(--ease);
}

.circle-check input:checked + span {
  border-color: var(--contact-red);
  background: var(--contact-red);
  box-shadow: inset 0 0 0 4px var(--contact-navy);
}

.circle-check small {
  font-size: 8px;
  line-height: 1.45;
}

.contact-form__submit,
.career-form__bottom button {
  min-width: 152px;
  min-height: 55px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--contact-red);
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.contact-form__submit:hover,
.career-form__bottom button:hover {
  color: var(--contact-red);
  background: #ffffff;
  transform: translateY(-4px);
}

/* CAREER — İKİ YATAY EKRAN */
.career-intro,
.career-application {
  padding-left: calc(var(--rail-w) + var(--contact-page-pad));
  padding-right: var(--contact-page-pad);
  display: grid;
  align-items: center;
  color: var(--contact-white);
  background: #181a3f;
}

.career-intro {
  grid-template-columns: minmax(320px, .86fr) minmax(400px, .9fr);
  gap: clamp(60px, 9vw, 180px);
}

.career-intro__copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.career-intro__copy h1,
.career-form h2 {
  margin: 0 0 22px;
  color: var(--contact-red);
  font-size: clamp(20px, 1.55vw, 32px);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.18;
}

.career-intro__copy p {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(13px, .9vw, 17px);
  font-weight: 300;
  line-height: 1.72;
}

.career-intro__image,
.career-application__image {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  justify-self: end;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, #4b5766 0%, #26313a 50%, #101725 100%);
}

.career-intro__image img,
.career-application__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.02);
}

.career-application {
  grid-template-columns: minmax(320px, .75fr) minmax(430px, .95fr);
  gap: clamp(60px, 9vw, 180px);
}

.career-application__image {
  justify-self: start;
}

.career-form {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
}

.career-form__row--phone {
  grid-template-columns: 84px 1fr;
}

.career-form__code {
  display: grid !important;
  grid-template-columns: 1fr;
}

.career-form__code > span {
  position: absolute !important;
}

.career-form__choice {
  display: flex;
  gap: 30px;
  margin: 4px 0 9px;
}

.career-form__bottom {
  margin-top: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
}

.career-form__captcha {
  display: grid;
  gap: 8px;
}

.career-form__captcha > span {
  color: rgba(255,255,255,.78);
  font-size: 9px;
}

.career-form__captcha-code {
  width: 78px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #16193b;
  background: #f4f4f0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: line-through;
}

.career-form__captcha input {
  width: 98px;
  height: 32px;
}

/* CONTACT FOOTER: mevcut dar footer yapısı korunur. */
.contact-footer {
  background: #b8b8b4;
}

/* Mobil: klasik dikey akış ve tabların okunur hâli. */
@media (max-width: 1100px) {
  body.subpage .main {
    position: static !important;
    overflow: visible !important;
  }

  body.subpage .rail {
    background: rgba(24,26,63,.94);
  }

  body.subpage .panel {
    width: 100%;
    height: auto;
    min-height: 100svh;
  }

  .contact-entry {
    min-height: 100svh;
    padding: var(--rail-h) 0 0;
    flex-direction: column;
  }

  .contact-subnav {
    width: 100%;
    min-height: 0;
    padding: 25px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: rgba(29,31,64,.86);
  }

  .contact-subnav__label {
    align-self: auto;
  }

  .contact-subnav__group {
    width: auto;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .contact-subnav__rule {
    display: none;
  }

  .contact-subnav__item,
  .contact-subnav__item.is-active {
    font-size: 10px;
  }

  .contact-subnav__item.is-active {
    font-size: 14px;
  }

  .contact-tab-stage {
    width: 100%;
    flex: 1;
    min-height: 720px;
  }

  .contact-view {
    padding: 42px 24px;
  }

  .contact-location-layout {
    gap: 22px;
  }

  .office-switcher {
    gap: 16px;
    overflow-x: auto;
  }

  .office-switcher__item {
    white-space: nowrap;
    font-size: 10px;
  }

  .office-map-frame {
    min-height: 390px;
  }

  .enquiry-layout {
    height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-address {
    padding: 0;
  }

  .contact-address__list {
    margin: 30px 0;
  }

  .contact-form__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .career-intro,
  .career-application {
    min-height: auto;
    padding: 90px 24px 60px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .career-intro__image,
  .career-application__image {
    width: min(100%, 460px);
    justify-self: center;
  }

  .career-application__image {
    order: 2;
  }

  .career-form {
    width: 100%;
    order: 1;
  }

  .contact-footer {
    width: 100%;
    height: auto !important;
    min-height: 280px;
    flex-basis: auto !important;
  }
}


/* =========================================================
   CONTACT INNER NAV v2
   - CONTACT başlığı üstte ortalı
   - Seçili tab, sol iç menünün dikey merkezine gelir
   - Location/Enquiry bittiğinde Career sahneleri akışa eklenmez
========================================================= */

.contact-subnav__label {
  align-self: center !important;
  text-align: center;
}

.contact-subnav__group {
  position: relative;
  width: 100%;
  height: min(48vh, 380px);
  min-height: 290px;
  margin: auto 0;
  display: block !important;
}

.contact-subnav__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 100%;
  padding: 0;
  white-space: nowrap;
  transform: translate(-50%, calc(-50% + var(--contact-offset, 0px)));
  transition:
    color .28s var(--ease),
    font-size .28s var(--ease),
    letter-spacing .28s var(--ease),
    transform .38s cubic-bezier(.22,.61,.36,1);
}

.contact-subnav__item:hover,
.contact-subnav__item:focus-visible {
  color: #ffffff;
  outline: none;
  transform: translate(-50%, calc(-50% + var(--contact-offset, 0px) - 4px));
}

.contact-subnav__item.is-active {
  transform: translate(-50%, -50%);
}

.contact-subnav__item.is-active:hover,
.contact-subnav__item.is-active:focus-visible {
  transform: translate(-50%, calc(-50% - 4px));
}

.contact-subnav__rule {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 62px;
  margin: 0;
  background: rgba(255,255,255,.42);
  transform: translateX(-50%);
}

.contact-subnav__rule--top {
  top: calc(50% - 166px);
}

.contact-subnav__rule--bottom {
  top: calc(50% + 104px);
}

/*
  Location veya Enquiry seçiliyken Career'e ait iki ekran trackten kalkar.
  Böylece map ya da form ekranından sonra doğrudan footer gelir.
*/
body.contact-page[data-contact-mode="location"] .career-intro,
body.contact-page[data-contact-mode="location"] .career-application,
body.contact-page[data-contact-mode="enquiry"] .career-intro,
body.contact-page[data-contact-mode="enquiry"] .career-application {
  display: none !important;
}

/*
  Career seçilince içerik paneli akışta kalır; JS otomatik olarak career intro
  sahnesine gider. Bu yüzden sol iç menü, kullanıcı ileri kaydıkça doğal olarak
  rail'in altında sola çıkar ve sabit kalmaz.
*/
body.contact-page[data-contact-mode="career"] .career-intro,
body.contact-page[data-contact-mode="career"] .career-application {
  display: grid;
}

@media (max-width: 1100px) {
  .contact-subnav__label {
    align-self: auto !important;
  }

  .contact-subnav__group {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    display: flex !important;
    align-items: center;
    gap: 12px;
  }

  .contact-subnav__item,
  .contact-subnav__item.is-active {
    position: static;
    width: auto;
    max-width: none;
    transform: none !important;
  }

  .contact-subnav__rule {
    display: none;
  }
}


/* =========================================================
   CONTACT PAGE v3
   CAREER ayrı çalışma alanıdır; Location / Enquiry devamı değildir.
   İç menü karusel değildir: hover edilen öğe direkt merkeze gelir.
========================================================= */

/* CONTACT başlığı tam iç menü ekseninde ortalı. */
.contact-subnav__label {
  align-self: center !important;
  width: 100%;
  text-align: center !important;
}

/*
  İç menüde tek bir lineer sıra kullanılır.
  Hover/focus edilen öğe merkeze gelir. Diğer iki öğe mantıksal sırasına
  göre üstünde veya altında kalır; sarmal/dönen carousel davranışı yoktur.
*/
.contact-subnav__group {
  position: relative !important;
  height: min(48vh, 380px) !important;
  min-height: 290px;
  overflow: visible;
}

.contact-subnav__item,
.contact-subnav__item.is-active {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: max-content;
  max-width: calc(100% - 28px);
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(255,68,61,.66) !important;
  background: transparent !important;
  font-size: clamp(10px, .72vw, 14px) !important;
  font-weight: 400 !important;
  letter-spacing: .03em !important;
  line-height: 1 !important;
  white-space: nowrap;
  transform: translate(-50%, -50%) !important;
  transition:
    color .22s var(--ease),
    font-size .22s var(--ease),
    letter-spacing .22s var(--ease),
    translate .28s cubic-bezier(.22,.61,.36,1) !important;
}

/* LOCATION odakta: Enquiry üstte, Location merkezde, Career altta. */
.contact-page[data-contact-focus="location"] [data-contact-tab="enquiry"] {
  translate: 0 -84px;
}
.contact-page[data-contact-focus="location"] [data-contact-tab="location"] {
  translate: 0 0;
  color: var(--contact-red) !important;
  font-size: clamp(19px, 1.6vw, 31px) !important;
  font-weight: 500 !important;
  letter-spacing: .035em !important;
}
.contact-page[data-contact-focus="location"] [data-contact-tab="career"] {
  translate: 0 84px;
}

/* ENQUIRY odakta: lineer sıra aşağı doğru devam eder, wrap yoktur. */
.contact-page[data-contact-focus="enquiry"] [data-contact-tab="enquiry"] {
  translate: 0 0;
  color: var(--contact-red) !important;
  font-size: clamp(19px, 1.6vw, 31px) !important;
  font-weight: 500 !important;
  letter-spacing: .035em !important;
}
.contact-page[data-contact-focus="enquiry"] [data-contact-tab="location"] {
  translate: 0 84px;
}
.contact-page[data-contact-focus="enquiry"] [data-contact-tab="career"] {
  translate: 0 168px;
}

/* CAREER odakta: Enquiry/Location üstte, Career merkezde. */
.contact-page[data-contact-focus="career"] [data-contact-tab="enquiry"] {
  translate: 0 -168px;
}
.contact-page[data-contact-focus="career"] [data-contact-tab="location"] {
  translate: 0 -84px;
}
.contact-page[data-contact-focus="career"] [data-contact-tab="career"] {
  translate: 0 0;
  color: var(--contact-red) !important;
  font-size: clamp(19px, 1.6vw, 31px) !important;
  font-weight: 500 !important;
  letter-spacing: .035em !important;
}

/* Hover edilen yazı, tıklama zorunluluğu olmadan anında merkeze gelir. */
.contact-subnav__item:hover,
.contact-subnav__item:focus-visible {
  color: inherit !important;
  transform: translate(-50%, -50%) !important;
}

/* Çizgiler aktif merkezin üstü/altında kalır; menü hareketine dahil değildir. */
.contact-subnav__rule--top {
  top: calc(50% - 160px) !important;
}
.contact-subnav__rule--bottom {
  top: calc(50% + 98px) !important;
}

/*
  LOCATION / ENQUIRY aktifken career panelleri görünmez.
  CAREER aktifken contact-entry tamamen kalkar; Career kendi bağımsız akışıdır.
*/
body.contact-page[data-contact-mode="location"] .career-intro,
body.contact-page[data-contact-mode="location"] .career-application,
body.contact-page[data-contact-mode="enquiry"] .career-intro,
body.contact-page[data-contact-mode="enquiry"] .career-application {
  display: none !important;
}

body.contact-page[data-contact-mode="career"] .contact-entry {
  display: none !important;
}

body.contact-page[data-contact-mode="career"] .career-intro,
body.contact-page[data-contact-mode="career"] .career-application {
  display: grid !important;
}

/* CAREER ilk sahnesi: metin + TEK, dikdörtgen 16:9 görsel. */
.career-intro {
  grid-template-columns: minmax(330px, .78fr) minmax(500px, 1.28fr) !important;
  gap: clamp(56px, 7vw, 145px) !important;
}

.career-intro__image {
  width: min(100%, 840px) !important;
  aspect-ratio: 16 / 9 !important;
  justify-self: end;
}

/* CAREER ikinci sahnesi: ek görsel yok, form merkezde bağımsız sayfa gibi durur. */
.career-application {
  grid-template-columns: minmax(0, 1fr) !important;
  place-items: center;
  padding-left: calc(var(--rail-w) + var(--contact-page-pad)) !important;
}

.career-form {
  width: min(100%, 620px) !important;
  justify-self: center;
}

.career-application__image {
  display: none !important;
}

@media (max-width: 1100px) {
  .contact-subnav__group {
    position: static !important;
    width: auto;
    height: auto !important;
    min-height: 0;
    display: flex !important;
    align-items: center;
    gap: 12px;
  }

  .contact-subnav__item,
  .contact-subnav__item.is-active {
    position: static !important;
    width: auto;
    max-width: none;
    translate: none !important;
    transform: none !important;
    font-size: 10px !important;
  }

  .contact-page[data-contact-focus] .contact-subnav__item.is-active,
  .contact-page[data-contact-focus] .contact-subnav__item:hover {
    font-size: 14px !important;
  }

  .contact-subnav__rule {
    display: none !important;
  }

  body.contact-page[data-contact-mode="career"] .contact-entry {
    display: none !important;
  }

  .career-intro {
    grid-template-columns: 1fr !important;
  }

  .career-intro__image {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
  }

  .career-application {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}


/* =========================================================
   CONTACT PAGE v4
   Static inner navigation + standalone Career flow + legal notice modal.
========================================================= */

:root {
  --contact-dots:
    radial-gradient(circle at 1px 1px, rgba(244,243,240,.12) 0 1px, transparent 1.45px);
}

/* Contact heading stays centered; list returns to the earlier stable, non-carousel layout. */
.contact-subnav__label {
  align-self: center !important;
  width: 100%;
  text-align: center !important;
}

.contact-subnav__group {
  position: static !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: auto 0 !important;
  display: grid !important;
  justify-items: center;
  gap: 24px !important;
  overflow: visible;
}

.contact-subnav__item,
.contact-subnav__item.is-active {
  position: static !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(255,68,61,.66) !important;
  background: transparent !important;
  font-size: clamp(10px, .72vw, 14px) !important;
  font-weight: 400 !important;
  letter-spacing: .03em !important;
  line-height: 1 !important;
  white-space: nowrap;
  translate: none !important;
  transform: none !important;
  transition:
    color .24s var(--ease),
    font-size .24s var(--ease),
    letter-spacing .24s var(--ease),
    transform .24s var(--ease) !important;
}

.contact-subnav__item:hover,
.contact-subnav__item:focus-visible {
  color: #ffffff !important;
  outline: none;
  transform: translateX(3px) !important;
}

.contact-subnav__item.is-active {
  color: var(--contact-red) !important;
  font-size: clamp(19px, 1.6vw, 31px) !important;
  font-weight: 500 !important;
  letter-spacing: .035em !important;
}

.contact-subnav__rule,
.contact-subnav__rule--top,
.contact-subnav__rule--bottom {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: 1px !important;
  height: 62px !important;
  margin: 0 !important;
  background: rgba(255,255,255,.42) !important;
  transform: none !important;
}

/* Dot texture on all three Contact modes. */
.contact-entry,
.career-flow {
  background-color: #181a3f !important;
  background-image:
    var(--contact-dots),
    linear-gradient(90deg, rgba(30,31,61,.98) 0%, rgba(26,28,61,.98) 52%, rgba(24,26,63,.98) 100%) !important;
  background-size: 28px 28px, auto !important;
}

.contact-entry::before,
.career-flow::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.018), transparent 38%, rgba(0,0,0,.06));
}

/* Location/Enquiry show contact-entry. Career is a separate panel with its own inner nav. */
body.contact-page[data-contact-mode="location"] .career-flow,
body.contact-page[data-contact-mode="enquiry"] .career-flow {
  display: none !important;
}

body.contact-page[data-contact-mode="career"] .contact-entry {
  display: none !important;
}

body.contact-page[data-contact-mode="career"] .career-flow {
  display: flex !important;
}

/* CAREER: subnav → copy → one 16:9 image → equal gap → form → equal trailing space → footer. */
.panel--career-flow {
  width: auto !important;
  flex: 0 0 auto !important;
}

.career-flow {
  --career-gap: clamp(70px, 6vw, 132px);
  --career-copy-w: clamp(320px, 23vw, 500px);
  --career-image-w: clamp(620px, 48vw, 980px);
  --career-form-w: clamp(460px, 34vw, 650px);

  position: relative;
  height: 100vh;
  width: max-content !important;
  min-width: 0;
  padding-left: var(--rail-w);
  display: flex !important;
  align-items: center;
  gap: var(--career-gap);
  overflow: hidden;
  color: var(--contact-white);
}

.career-flow .contact-subnav {
  position: relative;
  z-index: 2;
  width: var(--contact-subnav-w);
  min-width: var(--contact-subnav-w);
  height: 100vh;
  flex: 0 0 var(--contact-subnav-w);
  background: rgba(29,31,64,.72);
}

.career-flow__copy {
  position: relative;
  z-index: 2;
  width: var(--career-copy-w);
  flex: 0 0 var(--career-copy-w);
}

.career-flow__copy h1,
.career-flow .career-form h2 {
  margin: 0 0 22px;
  color: var(--contact-red);
  font-size: clamp(20px, 1.55vw, 32px);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.18;
}

.career-flow__copy p {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(13px, .9vw, 17px);
  font-weight: 300;
  line-height: 1.72;
}

.career-flow__image {
  position: relative;
  z-index: 2;
  width: var(--career-image-w);
  flex: 0 0 var(--career-image-w);
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #4b5766 0%, #26313a 50%, #101725 100%);
}

.career-flow__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.02);
}

.career-flow__form {
  position: relative;
  z-index: 2;
  width: var(--career-form-w) !important;
  flex: 0 0 var(--career-form-w);
  margin: 0 !important;
}

.career-flow__footer-space {
  width: var(--career-gap);
  flex: 0 0 var(--career-gap);
  height: 1px;
}

/* Check field text 1.5x and legal links styled as actual links. */
.circle-check small {
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.policy-link {
  display: inline;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: transparent;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255,68,61,.90);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .22s var(--ease), text-decoration-color .22s var(--ease);
}

.policy-link:hover,
.policy-link:focus-visible {
  color: var(--contact-red);
  text-decoration-color: #ffffff;
  outline: none;
}

.circle-check--gated {
  opacity: .84;
}

.circle-check--gated:has(input:disabled) {
  cursor: not-allowed;
}

.circle-check--gated:has(input:disabled) > span {
  border-color: rgba(255,255,255,.36);
}

.circle-check--gated.is-unlocked {
  opacity: 1;
}

/* Address social icons: Instagram / Facebook / X / LinkedIn, 1.5x larger. */
.contact-address__socials {
  gap: 14px !important;
}

.contact-address__socials a {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 18px !important;
  font-weight: 500;
  line-height: 1;
  transition: color .22s var(--ease), transform .22s var(--ease);
}

.contact-address__socials a:hover {
  color: var(--contact-red);
  transform: translateY(-3px);
}

/* Global rail menu social choices: Instagram / Facebook / X / LinkedIn. */
.socials .social-x {
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

/* Policy modal with required scroll-to-end acknowledgement. */
.policy-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}

.policy-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.policy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,6,16,.72);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.policy-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(84vh, 760px);
  padding: clamp(28px, 3vw, 48px);
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 10%, rgba(255,68,61,.10), transparent 23%),
    #181a3f;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transform: translateY(18px);
  transition: transform .32s var(--ease);
}

.policy-modal.is-open .policy-modal__dialog {
  transform: translateY(0);
}

.policy-modal__close {
  position: absolute;
  top: 17px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

.policy-modal__eyebrow {
  margin: 0 0 12px;
  color: var(--contact-red, #ff443d);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
}

.policy-modal__dialog h2 {
  margin: 0 42px 22px 0;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 400;
}

.policy-modal__scroll {
  max-height: min(45vh, 360px);
  padding: 0 18px 0 0;
  overflow-y: auto;
  color: rgba(255,255,255,.83);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.72;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.45) transparent;
}

.policy-modal__scroll p {
  margin: 0 0 18px;
}

.policy-modal__accept {
  min-width: 205px;
  min-height: 48px;
  margin-top: 24px;
  border: 1px solid var(--contact-red, #ff443d);
  border-radius: 999px;
  color: #ffffff;
  background: var(--contact-red, #ff443d);
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), opacity .22s var(--ease);
}

.policy-modal__accept:disabled {
  opacity: .36;
  cursor: not-allowed;
}

.policy-modal__accept:not(:disabled):hover {
  color: var(--contact-red, #ff443d);
  background: transparent;
}

/* Footer comes after the exact career trailing gap, without extra section divider. */
.career-flow + .contact-footer {
  margin-left: -1px;
  border: 0 !important;
}

/* Mobile keeps an accessible vertical form of the career flow. */
@media (max-width: 1100px) {
  .contact-subnav__group {
    position: static !important;
    width: auto;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 12px !important;
  }

  .contact-subnav__item,
  .contact-subnav__item.is-active {
    position: static !important;
    font-size: 10px !important;
    transform: none !important;
  }

  .contact-subnav__item.is-active {
    font-size: 14px !important;
  }

  .contact-subnav__rule {
    display: none !important;
  }

  .career-flow {
    width: 100% !important;
    height: auto;
    min-height: 0 !important;
    padding: var(--rail-h) 24px 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 54px;
  }

  .career-flow .contact-subnav {
    width: calc(100% + 48px);
    min-width: 0;
    height: auto;
    margin: 0 -24px;
    padding: 25px 24px;
  }

  .career-flow__copy,
  .career-flow__image,
  .career-flow__form {
    width: 100% !important;
    flex-basis: auto !important;
  }

  .career-flow__footer-space {
    width: auto;
    height: 36px;
    flex-basis: 36px;
  }

  .circle-check small {
    font-size: 11px !important;
  }

  .policy-modal__dialog {
    max-height: 90vh;
    padding: 28px 24px;
  }
}


/* =========================================================
   CONTACT PAGE v5
   Form repairs, legal PDF links, icons and stable inner menu state.
========================================================= */

/* Dot texture becomes more subtle. */
:root {
  --contact-dots:
    radial-gradient(circle at 1px 1px, rgba(244,243,240,.055) 0 1px, transparent 1.45px);
}

/* Only the selected inner-menu item may be large and white. */
.contact-subnav__item,
.contact-subnav__item.is-active {
  color: rgba(255,68,61,.70) !important;
  font-size: clamp(10px, .72vw, 14px) !important;
  font-weight: 400 !important;
  letter-spacing: .03em !important;
  transform: none !important;
  translate: none !important;
}

.contact-subnav__item.is-active {
  color: #ffffff !important;
  font-size: clamp(19px, 1.6vw, 31px) !important;
  font-weight: 500 !important;
  letter-spacing: .035em !important;
}

.contact-subnav__item:hover:not(.is-active),
.contact-subnav__item:focus-visible:not(.is-active) {
  color: var(--contact-red) !important;
  font-size: clamp(10px, .72vw, 14px) !important;
  transform: translateX(3px) !important;
}

/* Contact location and phone symbols. */
.contact-address__icon {
  width: 25px !important;
  height: 25px !important;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 50%;
}

.contact-address__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Contact social icons now share the same SVG language as the global menu. */
.contact-address__socials {
  gap: 15px !important;
}

.contact-address__socials a {
  width: 24px !important;
  height: 24px !important;
  display: grid !important;
  place-items: center;
  color: #ffffff;
  font-size: 18px !important;
  line-height: 1;
}

.contact-address__socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-address__socials .social-x {
  font-size: 18px !important;
  font-weight: 600;
}

/* Global rail SVG social rendering stays consistent. */
.socials a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Department select: no overlapping absolute label. */
.contact-form__select {
  position: relative;
  display: block;
}

.contact-form__select select {
  width: 100%;
  height: 40px;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 46px 0 15px;
  color: #151735;
  background: #fbfbfb;
}

.contact-form__select::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 16px;
  color: rgba(24,26,63,.58);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-57%);
}

/* PDF upload field. */
.file-upload {
  position: relative;
  display: grid;
  gap: 6px;
}

.file-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  clip: rect(0 0 0 0);
}

.file-upload__trigger {
  min-height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 12px 0 15px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 3px;
  color: rgba(24,26,63,.67);
  background: #fbfbfb;
  cursor: pointer;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.file-upload__trigger:hover,
.file-upload__input:focus + .file-upload__trigger {
  border-color: var(--contact-red);
  box-shadow: 0 0 0 2px rgba(255,68,61,.16);
}

.file-upload__trigger > span {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: block;
  color: inherit;
  font-size: 9px;
  font-weight: 400;
  transform: none !important;
}

.file-upload__action {
  min-height: 26px;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff !important;
  background: #1c1e45;
  font-size: 8px !important;
  font-weight: 600 !important;
  letter-spacing: .09em;
}

.file-upload__note,
.file-upload__name {
  margin: 0;
  font-size: 8px;
  font-weight: 300;
  line-height: 1.35;
}

.file-upload__note {
  color: rgba(255,255,255,.55);
}

.file-upload__name {
  min-height: 12px;
  color: rgba(255,255,255,.82);
}

.file-upload__name.is-error {
  color: var(--contact-red);
}

/* Legal PDF document list inside popup. */
.policy-modal__pdfs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 17px;
}

.policy-modal__pdfs > [data-policy-pdfs-content] {
  display: contents;
}

.policy-modal__pdfs > [data-policy-pdfs-content][hidden] {
  display: none !important;
}

.policy-modal__pdf {
  min-height: 74px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.87);
  background: rgba(255,255,255,.035);
  text-decoration: none;
  transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease);
}

.policy-modal__pdf:hover {
  border-color: rgba(255,68,61,.82);
  background: rgba(255,68,61,.10);
  transform: translateY(-3px);
}

.policy-modal__pdf-icon {
  width: 26px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--contact-red, #ff443d);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .05em;
}

.policy-modal__pdf-label {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}

/* Extra safety: policy modal check text readable. */
.circle-check small {
  font-size: 12px !important;
  line-height: 1.5 !important;
}

@media (max-width: 1100px) {
  .contact-subnav__item,
  .contact-subnav__item.is-active {
    font-size: 10px !important;
  }

  .contact-subnav__item.is-active {
    color: #ffffff !important;
    font-size: 14px !important;
  }

  .policy-modal__pdfs {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   CONTACT PAGE v6 — FORM CONTROLS / ACTIVE TAB / LEGAL PDF
========================================================= */

/* The selected tab is the only large white label. */
.contact-page .contact-subnav__item,
.contact-page .contact-subnav__item:not(.is-active),
.contact-page .contact-subnav__item:not(.is-active):hover,
.contact-page .contact-subnav__item:not(.is-active):focus-visible {
  color: rgba(255,68,61,.72) !important;
  font-size: clamp(10px, .72vw, 14px) !important;
  font-weight: 400 !important;
  letter-spacing: .03em !important;
  translate: none !important;
  transform: none !important;
}

.contact-page .contact-subnav__item.is-active,
.contact-page .contact-subnav__item.is-active:hover,
.contact-page .contact-subnav__item.is-active:focus-visible {
  color: #ffffff !important;
  font-size: clamp(19px, 1.6vw, 31px) !important;
  font-weight: 500 !important;
  letter-spacing: .035em !important;
  translate: none !important;
  transform: none !important;
}

/* Country dropdown shared by Enquiry and Career phone inputs. */
.contact-form__row--phone,
.career-form__row--phone {
  grid-template-columns: minmax(126px, 160px) 1fr !important;
  gap: 10px;
}

.country-code-field {
  position: relative;
  display: block !important;
}

.country-code-field::after {
  content: "⌄";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 13px;
  color: rgba(24,26,63,.60);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-58%);
}

.country-code-field select {
  width: 100%;
  height: 40px;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 32px 0 12px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 3px;
  outline: none;
  color: #151735;
  background: #fbfbfb;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.country-code-field select:focus {
  border-color: var(--contact-red);
  box-shadow: 0 0 0 2px rgba(255,68,61,.16);
}

/* Filename replaces "Document" / "Resume CV" in the visible upload field. */
.file-upload__title {
  max-width: min(74%, 260px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload--career {
  margin: 0;
}

/* Policy PDF docs: icon at top, readable label underneath. */
.policy-modal__pdfs {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)) !important;
  align-items: stretch;
}

.policy-modal__pdf {
  min-height: 112px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.policy-modal__pdf-icon {
  width: 30px;
  height: 36px;
  flex: 0 0 auto;
}

.policy-modal__pdf-label {
  font-size: 9px;
  line-height: 1.42;
}

/* Global and address social icon consistency. */
.socials a svg,
.contact-address__socials a svg {
  display: block;
  fill: currentColor;
}

@media (max-width: 1100px) {
  .contact-page .contact-subnav__item,
  .contact-page .contact-subnav__item:not(.is-active),
  .contact-page .contact-subnav__item:not(.is-active):hover {
    font-size: 10px !important;
  }

  .contact-page .contact-subnav__item.is-active {
    color: #ffffff !important;
    font-size: 14px !important;
  }

  .contact-form__row--phone,
  .career-form__row--phone {
    grid-template-columns: 118px 1fr !important;
  }
}


/* =========================================================
   R3 CATEGORY PAGE
   Refit / Restoration / Rebuild category landing.
========================================================= */

body.r3-page { background: #181a3f; }
body.r3-page .main { inset: 0 !important; }
body.r3-page .rail {
  background: rgba(24, 26, 63, .72);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}
body.r3-page .panel { width: 100vw; height: 100vh; flex: 0 0 100vw; }
body.r3-page .footer-panel { height: 100vh; flex: 0 0 var(--footer-w); }

.r3-page {
  --r3-navy: #181a3f;
  --r3-subnav-w: clamp(185px, 14vw, 270px);
  --r3-red: #ff443d;
  --r3-gold: #cfc18a;
  --r3-card-w: clamp(405px, 31vw, 585px);
  --r3-card-gap: clamp(34px, 3vw, 68px);
}

.r3-entry {
  position: relative;
  display: flex;
  padding-left: var(--rail-w);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 1px 1px, rgba(244,243,240,.05) 0 1px, transparent 1.45px),
    #181a3f;
  background-size: 28px 28px, auto;
}
.r3-entry::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.018), transparent 38%, rgba(0,0,0,.055)),
    linear-gradient(0deg, rgba(10,12,32,.11), transparent 54%);
}

/* R3 INNER MENU */
.r3-subnav {
  position: relative;
  z-index: 2;
  width: var(--r3-subnav-w);
  flex: 0 0 var(--r3-subnav-w);
  min-height: 100%;
  padding: clamp(38px, 4vw, 72px) 22px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(29,31,64,.55);
}
.r3-subnav__brand {
  width: min(100%, 102px);
  min-height: 62px;
  display: grid;
  place-items: center;
  color: var(--r3-gold);
  background-image: var(--r3-logo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}
.r3-subnav__brand span { opacity: .88; }
.r3-subnav__group {
  width: 100%;
  margin: auto 0;
  display: grid;
  justify-items: center;
  gap: 24px;
}
.r3-subnav__rule { width: 1px; height: 62px; display: block; background: rgba(255,255,255,.42); }
.r3-subnav__item {
  color: var(--r3-red);
  font-size: clamp(15px, 1.25vw, 24px);
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .24s var(--ease), transform .24s var(--ease), letter-spacing .24s var(--ease);
}
.r3-subnav__item:hover,
.r3-subnav__item:focus-visible { color: #ffffff; letter-spacing: .06em; transform: translateX(3px); outline: none; }

/* R3 CATEGORY CARDS */
.r3-category-stage {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--r3-subnav-w));
  flex: 0 0 calc(100% - var(--r3-subnav-w));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.r3-category-scroller {
  width: 100%;
  padding: clamp(56px, 6vw, 118px) clamp(36px, 4.4vw, 88px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
}
.r3-category-scroller::-webkit-scrollbar { display: none; }
.r3-category-scroller.is-dragging { cursor: grabbing; user-select: none; }
.r3-category-list { width: max-content; display: flex; align-items: flex-start; gap: var(--r3-card-gap); }
.r3-category-card { width: var(--r3-card-w); flex: 0 0 var(--r3-card-w); scroll-snap-align: start; }
.r3-category-card__link { display: block; color: #ffffff; text-decoration: none; }
.r3-category-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(24,26,63,.16), rgba(7,9,22,.15)),
    var(--r3-card-image),
    linear-gradient(135deg, #47586c 0%, #243144 58%, #101727 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 14px 34px rgba(0,0,0,.17);
  transform: translateZ(0);
  transition: transform .55s cubic-bezier(.22,.61,.36,1), filter .55s var(--ease);
}
.r3-category-card__meta {
  min-height: 80px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.r3-category-card__discover {
  min-width: 125px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--r3-red);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .17em;
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.r3-category-card__meta strong { color: #ffffff; font-size: clamp(17px, 1.55vw, 29px); font-weight: 300; letter-spacing: .02em; }
.r3-category-card__link:hover .r3-category-card__media,
.r3-category-card__link:focus-visible .r3-category-card__media { filter: brightness(1.09) saturate(1.03); transform: translateY(-7px) scale(1.01); }
.r3-category-card__link:hover .r3-category-card__discover,
.r3-category-card__link:focus-visible .r3-category-card__discover { color: var(--r3-red); background: #ffffff; transform: translateY(-4px); }
.r3-category-card__link:focus-visible { outline: none; }
.r3-category-stage__hint {
  position: absolute;
  right: 36px;
  bottom: 28px;
  margin: 0;
  color: rgba(255,255,255,.34);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .17em;
}
.r3-footer { background: #b8b8b4; }

@media (max-width: 1100px) {
  body.r3-page .main { position: static !important; overflow: visible !important; }
  body.r3-page .panel { width: 100%; height: auto; min-height: 100svh; }
  .r3-entry { min-height: 100svh; padding: var(--rail-h) 0 0; flex-direction: column; }
  .r3-subnav { width: 100%; min-height: 0; padding: 20px 24px; flex-direction: row; align-items: center; justify-content: space-between; }
  .r3-subnav__brand { width: 58px; min-height: 34px; font-size: 19px; }
  .r3-subnav__group { width: auto; margin: 0; display: flex; align-items: center; gap: 12px; }
  .r3-subnav__rule { display: none; }
  .r3-subnav__item { font-size: 10px; }
  .r3-category-stage { width: 100%; flex: 1; min-height: calc(100svh - var(--rail-h) - 74px); }
  .r3-category-scroller { padding: 44px 24px 78px; }
  .r3-category-card { width: min(78vw, 480px); flex-basis: min(78vw, 480px); }
  .r3-category-card__meta { min-height: 74px; gap: 18px; }
  .r3-category-card__discover { min-width: 116px; min-height: 46px; }
  .r3-category-stage__hint { right: 24px; }
  .r3-footer { width: 100%; height: auto !important; min-height: 280px; flex-basis: auto !important; }
}


/* =========================================================
   R3 CATEGORY v2
   Contact ile aynı opak iç menü, tam PNG logo ve footer öncesi
   kendini tamamlayan üç kartlık kategori kanvası.
========================================================= */

.r3-page {
  --r3-subnav-w: clamp(205px, 15vw, 286px);
  --r3-card-w: clamp(460px, 35vw, 680px);
  --r3-card-gap: clamp(34px, 3vw, 68px);
  --r3-stage-pad: clamp(36px, 4.4vw, 88px);
}

/*
  R3 sahnesi tam olarak rail + inner menu + 3 kart + boşluklar kadar geniştir.
  Footer bu geniş canvas tamamlanmadan görünmez.
*/
body.r3-page .panel--r3-categories {
  width: calc(
    var(--rail-w)
    + var(--r3-subnav-w)
    + var(--r3-stage-pad)
    + var(--r3-stage-pad)
    + var(--r3-card-w)
    + var(--r3-card-w)
    + var(--r3-card-w)
    + var(--r3-card-gap)
    + var(--r3-card-gap)
  ) !important;
  flex: 0 0 calc(
    var(--rail-w)
    + var(--r3-subnav-w)
    + var(--r3-stage-pad)
    + var(--r3-stage-pad)
    + var(--r3-card-w)
    + var(--r3-card-w)
    + var(--r3-card-w)
    + var(--r3-card-gap)
    + var(--r3-card-gap)
  ) !important;
}

/* Contact iç menüsüne yakın opaklık, içerik alttan görünmez. */
.r3-subnav {
  background: rgba(29,31,64,.92) !important;
  box-shadow: inset -1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(12px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(115%) !important;
}

/* R3 yalnız PNG olarak görünür. */
.r3-subnav__brand {
  width: min(100%, 160px) !important;
  min-height: 70px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: none !important;
}

.r3-subnav__brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  object-position: center;
}

/* İç nested scroll kaldırıldı; kartlar global yatay akışın gerçek parçası. */
.r3-category-stage {
  width: calc(
    var(--r3-stage-pad)
    + var(--r3-stage-pad)
    + var(--r3-card-w)
    + var(--r3-card-w)
    + var(--r3-card-w)
    + var(--r3-card-gap)
    + var(--r3-card-gap)
  ) !important;
  flex: 0 0 calc(
    var(--r3-stage-pad)
    + var(--r3-stage-pad)
    + var(--r3-card-w)
    + var(--r3-card-w)
    + var(--r3-card-w)
    + var(--r3-card-gap)
    + var(--r3-card-gap)
  ) !important;
  min-width: 0;
  overflow: hidden !important;
}

.r3-category-scroller {
  width: 100% !important;
  padding: 0 !important;
  overflow: visible !important;
  cursor: default !important;
}

.r3-category-list {
  padding: clamp(56px, 6vw, 118px) var(--r3-stage-pad) !important;
  gap: var(--r3-card-gap) !important;
}

.r3-category-card {
  width: var(--r3-card-w) !important;
  flex: 0 0 var(--r3-card-w) !important;
}

/* The page no longer uses this caption. */
.r3-category-stage__hint {
  display: none !important;
}

.r3-footer {
  position: relative;
  z-index: 1;
  margin-left: 0 !important;
}

@media (max-width: 1100px) {
  body.r3-page .panel--r3-categories {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .r3-subnav {
    background: rgba(29,31,64,.94) !important;
  }

  .r3-subnav__brand {
    width: 64px !important;
    min-height: 38px !important;
  }

  .r3-subnav__brand img {
    max-height: 38px;
  }

  .r3-category-stage {
    width: 100% !important;
    flex-basis: auto !important;
    overflow: hidden !important;
  }

  .r3-category-scroller {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    cursor: grab !important;
    padding: 0 !important;
  }

  .r3-category-list {
    width: max-content;
    padding: 44px 24px 78px !important;
  }
}


/* =========================================================
   R3 CATEGORY v3 — REAL IMAGE RENDERING
========================================================= */

.r3-category-card__media {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, #47586c 0%, #243144 58%, #101727 100%) !important;
}

.r3-category-card__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity .36s var(--ease),
    transform 6s cubic-bezier(.2,.65,.25,1);
}

.r3-category-card__image.is-loaded {
  opacity: 1;
}

.r3-category-card__media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(4,6,12,.20), transparent 58%),
    linear-gradient(90deg, rgba(24,26,63,.10), transparent 65%);
}

.r3-category-card__link:hover .r3-category-card__image.is-loaded,
.r3-category-card__link:focus-visible .r3-category-card__image.is-loaded {
  transform: scale(1.06);
}

.r3-category-card__media.is-missing::before {
  content: "IMAGE NOT FOUND";
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.36);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
}


/* =========================================================
   R3 REFIT DETAIL PAGE
   Refit / Restoration / Rebuild için çoğaltılacak ana şablon.
========================================================= */

body.r3-refit-page {
  background: #181a3f;
}

body.r3-refit-page .main {
  inset: 0 !important;
}

body.r3-refit-page .rail {
  background: rgba(24, 26, 63, .72);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

body.r3-refit-page .panel {
  width: 100vw;
  height: 100vh;
  flex: 0 0 100vw;
}

body.r3-refit-page .footer-panel {
  height: 100vh;
  flex: 0 0 var(--footer-w);
}

.r3-refit-page {
  --r3-refit-navy: #181a3f;
  --r3-refit-red: #ff443d;
  --r3-refit-subnav-w: clamp(205px, 15vw, 286px);
  --r3-refit-gap: clamp(60px, 5.2vw, 112px);
  --r3-refit-edge: clamp(44px, 4vw, 78px);
  --r3-refit-copy-w: clamp(230px, 16vw, 345px);
  --r3-refit-modern-w: clamp(660px, 46vw, 880px);
  --r3-refit-services-w: clamp(450px, 31vw, 620px);
  --r3-refit-projects-w: clamp(810px, 58vw, 1120px);
}

/*
  Kapsamlı yatay tuval:
  rail + R3 subnav + iki metin/görsel kompozisyon + projects carousel.
  Footer bu tuval bitmeden görünmez.
*/
body.r3-refit-page .panel--r3-refit {
  width: calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-edge)
  ) !important;
  flex: 0 0 calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-edge)
  ) !important;
}

.r3-refit-flow {
  position: relative;
  display: flex;
  align-items: center;
  height: 100vh;
  padding-left: var(--rail-w);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 1px 1px, rgba(244,243,240,.055) 0 1px, transparent 1.45px),
    #181a3f;
  background-size: 28px 28px, auto;
}

.r3-refit-flow::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.014), transparent 33%, rgba(0,0,0,.055)),
    linear-gradient(0deg, rgba(10,12,32,.11), transparent 54%);
}

/* R3 inner menu adopts the Contact visual weight. */
.r3-refit-flow .r3-subnav {
  position: relative;
  z-index: 2;
  width: var(--r3-refit-subnav-w);
  min-width: var(--r3-refit-subnav-w);
  height: 100vh;
  flex: 0 0 var(--r3-refit-subnav-w);
  padding: clamp(38px, 4vw, 72px) 22px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(29,31,64,.92);
  box-shadow: inset -1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

.r3-refit-flow .r3-subnav__brand {
  width: min(100%, 112px);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.r3-refit-flow .r3-subnav__brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  object-position: center;
}

.r3-refit-flow .r3-subnav__group {
  width: 100%;
  margin: auto 0;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.r3-refit-flow .r3-subnav__rule {
  width: 1px;
  height: 62px;
  display: block;
  background: rgba(255,255,255,.42);
}

.r3-refit-flow .r3-subnav__item {
  color: var(--r3-refit-red);
  font-size: clamp(15px, 1.25vw, 24px);
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .24s var(--ease), transform .24s var(--ease), letter-spacing .24s var(--ease);
}

.r3-refit-flow .r3-subnav__item:hover,
.r3-refit-flow .r3-subnav__item:focus-visible {
  color: #ffffff;
  letter-spacing: .06em;
  transform: translateX(3px);
  outline: none;
}

.r3-refit-flow .r3-subnav__item.is-active,
.r3-refit-flow .r3-subnav__item.is-active:hover {
  color: #ffffff;
  font-size: clamp(20px, 1.6vw, 30px);
  font-weight: 500;
  letter-spacing: .035em;
  transform: none;
}

/* Common typed copy — same visual language as the Career title/copy pairing. */
.r3-refit-copy h1,
.r3-refit-copy h2 {
  margin: 0 0 18px;
  color: var(--r3-refit-red);
  font-size: clamp(14px, 1.02vw, 20px);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.18;
  text-transform: uppercase;
}

.r3-refit-copy p,
.r3-refit-projects__intro p {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(11px, .74vw, 14px);
  font-weight: 300;
  letter-spacing: .005em;
  line-height: 1.72;
}

/* Modernization: copy left, tall image right. */
.r3-refit-block {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.r3-refit-block--modernization {
  width: var(--r3-refit-modern-w);
  min-width: var(--r3-refit-modern-w);
  margin-left: var(--r3-refit-gap);
  display: grid;
  grid-template-columns: var(--r3-refit-copy-w) minmax(290px, 1fr);
  align-items: center;
  gap: clamp(46px, 4vw, 84px);
}

.r3-refit-modernization-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #56647a 0%, #26354b 57%, #111728 100%);
}

.r3-refit-modernization-image img,
.r3-refit-services-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(1.04);
  transform: scale(1.015);
  transition: transform 7s cubic-bezier(.2,.65,.25,1);
}

.r3-refit-modernization-image:hover img,
.r3-refit-services-image:hover img {
  transform: scale(1.07);
}

/* Services: image on top, copy in the same vertical rhythm. */
.r3-refit-block--services {
  width: var(--r3-refit-services-w);
  min-width: var(--r3-refit-services-w);
  margin-left: var(--r3-refit-gap);
  display: grid;
  gap: 20px;
}

.r3-refit-services-image {
  width: min(100%, 330px);
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #46566e 0%, #27354b 60%, #111727 100%);
}

.r3-refit-copy--services {
  width: min(100%, 440px);
}

/* Projects: vertical heading + small text + stacked carousel. */
.r3-refit-projects {
  position: relative;
  z-index: 1;
  width: var(--r3-refit-projects-w);
  min-width: var(--r3-refit-projects-w);
  margin-left: var(--r3-refit-gap);
  padding-right: var(--r3-refit-edge);
  display: grid;
  grid-template-columns: 68px minmax(150px, 205px) minmax(440px, 1fr);
  align-items: center;
  gap: clamp(26px, 2.4vw, 50px);
}

.r3-refit-projects__heading {
  height: clamp(230px, 26vw, 330px);
  display: grid;
  place-items: center;
}

.r3-refit-projects__heading span {
  color: var(--r3-refit-red);
  font-size: clamp(30px, 2.5vw, 50px);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.r3-refit-projects__intro {
  align-self: center;
}

/* Carousel stack: previous left/back, active center/front, next right/back. */
.r3-project-carousel {
  min-width: 0;
}

.r3-project-carousel__stack {
  position: relative;
  width: 100%;
  height: clamp(250px, 20vw, 365px);
}

.r3-project-carousel__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 455px);
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #41516a 0%, #223148 62%, #101627 100%);
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
  transition:
    transform .64s cubic-bezier(.22,.61,.36,1),
    opacity .56s var(--ease),
    filter .56s var(--ease);
}

.r3-project-carousel__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .34s var(--ease);
}

.r3-project-carousel__card img.is-loaded {
  opacity: 1;
}

.r3-project-carousel__card--previous {
  z-index: 1;
  opacity: .24;
  filter: blur(.2px) saturate(.72);
  transform: translate(-75%, -49%) scale(.83);
}

.r3-project-carousel__card--current {
  z-index: 3;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.r3-project-carousel__card--next {
  z-index: 2;
  opacity: .24;
  filter: blur(.2px) saturate(.72);
  transform: translate(-25%, -49%) scale(.83);
}

.r3-project-carousel__next {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: clamp(-42px, -2.6vw, -24px);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--r3-refit-red);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .24s var(--ease), background .24s var(--ease), transform .24s var(--ease);
}

.r3-project-carousel__next:hover,
.r3-project-carousel__next:focus-visible {
  color: var(--r3-refit-red);
  background: #ffffff;
  outline: none;
  transform: translateY(-50%) scale(1.07);
}

.r3-project-carousel__meta {
  min-height: 54px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.r3-project-carousel__discover {
  min-width: 106px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--r3-refit-red);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .15em;
  text-decoration: none;
  transition: color .24s var(--ease), background .24s var(--ease), transform .24s var(--ease);
}

.r3-project-carousel__discover:hover {
  color: var(--r3-refit-red);
  background: #ffffff;
  transform: translateY(-3px);
}

.r3-project-carousel__meta strong {
  color: #ffffff;
  font-size: clamp(12px, .9vw, 17px);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.r3-project-carousel__type {
  color: var(--r3-refit-red);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .14em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.r3-refit-footer {
  background: #b8b8b4;
}

/* User-confirmed shared project values. */
.socials a svg {
  width: 20px;
  height: 20px;
}

.menu-toggle {
  gap: 10px;
}

@media (max-width: 1100px) {
  body.r3-refit-page .main {
    position: static !important;
    overflow: visible !important;
  }

  body.r3-refit-page .panel,
  body.r3-refit-page .panel--r3-refit {
    width: 100% !important;
    height: auto;
    min-height: 100svh;
    flex-basis: 100% !important;
  }

  .r3-refit-flow {
    height: auto;
    min-height: 0;
    padding: var(--rail-h) 24px 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 54px;
    overflow: hidden;
  }

  .r3-refit-flow .r3-subnav {
    width: calc(100% + 48px);
    min-width: 0;
    height: auto;
    margin: 0 -24px;
    padding: 20px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .r3-refit-flow .r3-subnav__brand {
    width: 62px;
    min-height: 34px;
  }

  .r3-refit-flow .r3-subnav__brand img {
    max-height: 32px;
  }

  .r3-refit-flow .r3-subnav__group {
    width: auto;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .r3-refit-flow .r3-subnav__rule {
    display: none;
  }

  .r3-refit-flow .r3-subnav__item,
  .r3-refit-flow .r3-subnav__item.is-active {
    font-size: 10px;
  }

  .r3-refit-block--modernization,
  .r3-refit-block--services,
  .r3-refit-projects {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .r3-refit-block--modernization {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .r3-refit-modernization-image {
    width: min(100%, 470px);
    justify-self: center;
  }

  .r3-refit-services-image {
    width: 100%;
  }

  .r3-refit-projects {
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding-right: 0;
  }

  .r3-refit-projects__heading {
    height: 240px;
  }

  .r3-refit-projects__intro {
    grid-column: 2;
  }

  .r3-project-carousel {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .r3-project-carousel__next {
    right: 0;
  }

  body.r3-refit-page .footer-panel {
    width: 100%;
    height: auto !important;
    min-height: 280px;
    flex-basis: auto !important;
  }
}


/* =========================================================
   R3 REFIT DETAIL v2
   Inner menu active state, larger project carousel and refined alignment.
========================================================= */

/* Global drawer: current root page is visible in white. */
.menu-tree__item.is-current-page,
.menu-tree__item.is-current-page:hover,
.menu-tree__item.is-current-page:focus-visible {
  color: #ffffff !important;
  letter-spacing: .065em;
}

/*
  Refit inner menu follows the Contact rule:
  only current section is white and enlarged; the other two remain small red.
*/
.r3-refit-page .r3-refit-subnav .r3-subnav__item,
.r3-refit-page .r3-refit-subnav .r3-subnav__item:not(.is-active):hover,
.r3-refit-page .r3-refit-subnav .r3-subnav__item:not(.is-active):focus-visible {
  color: var(--r3-refit-red) !important;
  font-size: clamp(15px, 1.25vw, 24px) !important;
  font-weight: 400 !important;
  letter-spacing: .025em !important;
  transform: none !important;
}

.r3-refit-page .r3-refit-subnav .r3-subnav__item.is-active,
.r3-refit-page .r3-refit-subnav .r3-subnav__item.is-active:hover,
.r3-refit-page .r3-refit-subnav .r3-subnav__item.is-active:focus-visible {
  color: #ffffff !important;
  font-size: clamp(22px, 1.72vw, 33px) !important;
  font-weight: 500 !important;
  letter-spacing: .035em !important;
  transform: none !important;
}

/* The whole Refit panorama has more room for the enlarged carousel. */
.r3-refit-page {
  --r3-refit-gap: clamp(72px, 5.7vw, 126px);
  --r3-refit-services-w: clamp(500px, 35vw, 700px);
  --r3-refit-projects-w: clamp(1080px, 72vw, 1450px);
  --r3-project-card-w: clamp(610px, 44vw, 860px);
}

/*
  The second image is intentionally larger and its upper edge aligns with
  the tall modernization image instead of floating lower in the composition.
*/
.r3-refit-block--services {
  align-self: flex-start;
  margin-top: clamp(72px, 10.4vh, 150px);
  gap: 24px;
}

.r3-refit-services-image {
  width: min(100%, 470px);
  aspect-ratio: 16 / 9;
}

/*
  Around PROJECTS:
  equal breathing room to the left/right of the vertical word;
  widened explanatory text column and 1.5x visual title scale.
*/
.r3-refit-projects {
  grid-template-columns: 108px minmax(245px, 340px) minmax(var(--r3-project-card-w), 1fr);
  column-gap: var(--r3-refit-gap);
  padding-right: var(--r3-refit-edge);
}

.r3-refit-projects__heading {
  width: 108px;
  justify-self: center;
  height: clamp(320px, 31vw, 470px);
}

.r3-refit-projects__heading span {
  font-size: clamp(45px, 3.75vw, 75px);
}

.r3-refit-projects__intro {
  width: 100%;
  padding-left: 4px;
}

.r3-refit-projects__intro p {
  max-width: 340px;
}

/*
  Larger three-card project stage. The foreground card is the reference
  surface; the round arrow sits exactly on its right edge / middle height.
*/
.r3-project-carousel {
  width: var(--r3-project-card-w);
  min-width: var(--r3-project-card-w);
}

.r3-project-carousel__stack {
  width: var(--r3-project-card-w);
  height: clamp(345px, 29vw, 540px);
  margin: 0;
  overflow: visible;
}

.r3-project-carousel__card {
  width: var(--r3-project-card-w);
  max-width: none;
  box-shadow: 0 24px 52px rgba(0,0,0,.28);
}

.r3-project-carousel__card--previous {
  transform: translate(-79%, -49%) scale(.78);
}

.r3-project-carousel__card--next {
  transform: translate(-21%, -49%) scale(.78);
}

.r3-project-carousel__next {
  right: -27px;
  width: 76px;
  height: 76px;
  font-size: 28px;
  box-shadow: 0 12px 24px rgba(0,0,0,.20);
}

/*
  During rotation, current goes to the left rear and next grows into
  the center surface. Assets are swapped at the movement midpoint.
*/
.r3-project-carousel.is-advancing .r3-project-carousel__card--previous {
  opacity: 0;
  transform: translate(-108%, -49%) scale(.70);
}

.r3-project-carousel.is-advancing .r3-project-carousel__card--current {
  opacity: .24;
  filter: blur(.2px) saturate(.72);
  transform: translate(-79%, -49%) scale(.78);
}

.r3-project-carousel.is-advancing .r3-project-carousel__card--next {
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

.r3-project-carousel__meta {
  width: var(--r3-project-card-w);
  min-height: 58px;
  margin: 12px 0 0;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

.r3-project-carousel__discover {
  min-width: 112px;
  min-height: 38px;
}

.r3-project-carousel__project-info {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.r3-project-carousel__meta strong {
  font-size: clamp(14px, 1vw, 19px);
  letter-spacing: .06em;
}

.r3-project-carousel__length {
  color: var(--r3-refit-red);
  font-size: clamp(10px, .75vw, 14px);
  font-weight: 500;
  letter-spacing: .11em;
}

.r3-project-carousel__type {
  margin-left: auto;
  padding-right: 3px;
}

/* First/second composition images both retain their loaded original contrast. */
.r3-refit-modernization-image img,
.r3-refit-services-image img {
  object-position: center;
}

@media (max-width: 1100px) {
  .r3-refit-page {
    --r3-project-card-w: min(84vw, 620px);
  }

  .r3-refit-block--services {
    align-self: auto;
    margin-top: 0;
  }

  .r3-refit-services-image {
    width: 100%;
  }

  .r3-refit-projects {
    grid-template-columns: 54px 1fr;
    column-gap: 18px;
  }

  .r3-refit-projects__heading {
    width: 54px;
    height: 270px;
  }

  .r3-refit-projects__heading span {
    font-size: 43px;
  }

  .r3-refit-projects__intro {
    padding-left: 0;
  }

  .r3-project-carousel {
    width: var(--r3-project-card-w);
    min-width: 0;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .r3-project-carousel__stack {
    width: var(--r3-project-card-w);
    height: calc(var(--r3-project-card-w) * .62);
  }

  .r3-project-carousel__card {
    width: var(--r3-project-card-w);
  }

  .r3-project-carousel__next {
    right: -22px;
    width: 64px;
    height: 64px;
  }

  .r3-project-carousel__meta {
    width: var(--r3-project-card-w);
  }
}


/* =========================================================
   R3 REFIT DETAIL v3 — FINAL COMPOSITION ALIGNMENT
========================================================= */

.r3-refit-page {
  --r3-refit-gap: clamp(72px, 5.7vw, 126px);
  --r3-refit-modern-w: clamp(700px, 46vw, 930px);
  --r3-refit-services-w: clamp(540px, 36vw, 720px);

  --r3-project-heading-w: 96px;
  --r3-project-intro-w: clamp(280px, 20vw, 350px);
  --r3-project-card-w: clamp(610px, 44vw, 860px);
  --r3-project-gap: clamp(70px, 5vw, 112px);
  --r3-refit-projects-w: calc(
    var(--r3-project-heading-w)
    + var(--r3-project-intro-w)
    + var(--r3-project-card-w)
    + var(--r3-project-gap)
    + var(--r3-project-gap)
  );
  --r3-refit-tail-space: clamp(180px, 15vw, 330px);
}

/* Real total width: carousel ends before the tail space and then footer begins. */
body.r3-refit-page .panel--r3-refit {
  width: calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-tail-space)
  ) !important;
  flex: 0 0 calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-tail-space)
  ) !important;
}

/* Contact-like R3 inner menu: only current page is big and white. */
.r3-refit-page .r3-refit-subnav .r3-subnav__item,
.r3-refit-page .r3-refit-subnav .r3-subnav__item:not(.is-active):hover,
.r3-refit-page .r3-refit-subnav .r3-subnav__item:not(.is-active):focus-visible {
  color: var(--r3-refit-red) !important;
  font-size: clamp(10px, .72vw, 14px) !important;
  font-weight: 400 !important;
  letter-spacing: .03em !important;
  transform: none !important;
}

.r3-refit-page .r3-refit-subnav .r3-subnav__item.is-active,
.r3-refit-page .r3-refit-subnav .r3-subnav__item.is-active:hover,
.r3-refit-page .r3-refit-subnav .r3-subnav__item.is-active:focus-visible {
  color: #ffffff !important;
  font-size: clamp(19px, 1.6vw, 31px) !important;
  font-weight: 500 !important;
  letter-spacing: .035em !important;
  transform: none !important;
}

/*
  First and second composition blocks now share the same vertical rhythm:
  the second image starts at the same upper level as the tall first image;
  heading and paragraph sit directly below it.
*/
.r3-refit-block--modernization,
.r3-refit-block--services {
  align-self: center;
}

.r3-refit-block--services {
  width: var(--r3-refit-services-w);
  min-width: var(--r3-refit-services-w);
  margin-top: 0 !important;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 22px;
}

.r3-refit-services-image {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
}

.r3-refit-copy--services {
  width: 100%;
  max-width: none;
}

/*
  PROJECTS now uses three real columns, not a smaller virtual container.
  All horizontal gaps are equal: previous composition → heading → intro → carousel.
*/
.r3-refit-projects {
  width: var(--r3-refit-projects-w) !important;
  min-width: var(--r3-refit-projects-w) !important;
  margin-left: var(--r3-refit-gap);
  padding-right: 0 !important;
  display: grid;
  grid-template-columns:
    var(--r3-project-heading-w)
    var(--r3-project-intro-w)
    var(--r3-project-card-w);
  column-gap: var(--r3-project-gap);
  align-items: center;
}

.r3-refit-projects__heading {
  width: var(--r3-project-heading-w);
  justify-self: center;
  height: clamp(320px, 31vw, 470px);
}

.r3-refit-projects__heading span {
  font-size: clamp(45px, 3.75vw, 75px);
}

.r3-refit-projects__intro {
  width: var(--r3-project-intro-w);
  max-width: none;
  padding: 0;
}

.r3-refit-projects__intro p {
  width: 100%;
  max-width: none;
}

/* Large carousel, clean spacing and arrow at the actual active image edge. */
.r3-project-carousel {
  width: var(--r3-project-card-w);
  min-width: var(--r3-project-card-w);
}

.r3-project-carousel__stack {
  width: var(--r3-project-card-w);
  height: clamp(345px, 29vw, 540px);
  overflow: visible;
}

.r3-project-carousel__card {
  width: var(--r3-project-card-w);
  max-width: none;
  transition:
    transform .78s cubic-bezier(.22,.61,.36,1),
    opacity .64s ease,
    filter .64s ease;
}

.r3-project-carousel__card--previous {
  transform: translate(-79%, -49%) scale(.78);
}

.r3-project-carousel__card--next {
  transform: translate(-21%, -49%) scale(.78);
}

.r3-project-carousel__next {
  right: -38px;
  width: 76px;
  height: 76px;
  font-size: 28px;
}

/* Gentle forward card movement. */
.r3-project-carousel.is-advancing .r3-project-carousel__card--previous {
  opacity: 0;
  transform: translate(-108%, -49%) scale(.70);
}

.r3-project-carousel.is-advancing .r3-project-carousel__card--current {
  opacity: .24;
  filter: blur(.2px) saturate(.72);
  transform: translate(-79%, -49%) scale(.78);
}

.r3-project-carousel.is-advancing .r3-project-carousel__card--next {
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

/* Reset image-slot roles without a visible snap after each completed rotation. */
.r3-project-carousel.is-resetting .r3-project-carousel__card,
.r3-project-carousel.is-resetting .r3-project-carousel__card img {
  transition: none !important;
}

.r3-project-carousel__meta {
  width: var(--r3-project-card-w);
  margin-top: 14px;
  padding-top: 0;
  min-height: 52px;
}

.r3-project-carousel__type {
  display: none !important;
}

@media (max-width: 1100px) {
  .r3-refit-page {
    --r3-project-card-w: min(84vw, 620px);
    --r3-project-heading-w: 54px;
    --r3-project-intro-w: min(100%, 500px);
    --r3-project-gap: 18px;
  }

  body.r3-refit-page .panel--r3-refit {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .r3-refit-block--services {
    width: 100%;
    min-width: 0;
  }

  .r3-refit-projects {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: var(--r3-project-heading-w) 1fr;
    column-gap: var(--r3-project-gap);
  }

  .r3-refit-projects__heading {
    width: var(--r3-project-heading-w);
  }

  .r3-refit-projects__intro {
    width: auto;
  }

  .r3-project-carousel {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .r3-refit-tail-space {
    display: none;
  }
}


/* =========================================================
   R3 REFIT DETAIL v4
   Shared title/body typography standard + more Projects breathing room.
========================================================= */

.r3-refit-page {
  /*
    Same relationship used by Contact > Career:
    title: 20–32px, 500 weight, 1.18 line-height, 22px below gap
    body: 13–17px, 300 weight, 1.72 line-height.
  */
  --r3-standard-title-size: clamp(20px, 1.55vw, 32px);
  --r3-standard-copy-size: clamp(13px, .9vw, 17px);
  --r3-standard-title-gap: 22px;

  /*
    Projects now has intentional asymmetric breathing:
    - heading → intro remains disciplined
    - intro → carousel opens visibly wider
  */
  --r3-project-heading-gap: clamp(74px, 5.2vw, 116px);
  --r3-project-carousel-gap: clamp(132px, 9vw, 210px);
  --r3-refit-projects-w: calc(
    var(--r3-project-heading-w)
    + var(--r3-project-intro-w)
    + var(--r3-project-card-w)
    + var(--r3-project-heading-gap)
    + var(--r3-project-carousel-gap)
  );
}

/* Shared standard: Refit content uses the Contact Career title/body scale. */
.r3-refit-page .r3-refit-copy h1,
.r3-refit-page .r3-refit-copy h2 {
  margin: 0 0 var(--r3-standard-title-gap) !important;
  color: var(--r3-refit-red);
  font-size: var(--r3-standard-title-size) !important;
  font-weight: 500 !important;
  letter-spacing: .02em;
  line-height: 1.18 !important;
  text-transform: uppercase;
}

.r3-refit-page .r3-refit-copy p,
.r3-refit-page .r3-refit-projects__intro p {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: var(--r3-standard-copy-size) !important;
  font-weight: 300 !important;
  letter-spacing: .005em;
  line-height: 1.72 !important;
}

/*
  Projects grid: different but measured gaps.
  The text column has an enlarged empty corridor before the carousel,
  preventing the copy from visually touching the stacked cards.
*/
.r3-refit-page .r3-refit-projects {
  grid-template-columns:
    var(--r3-project-heading-w)
    var(--r3-project-intro-w)
    var(--r3-project-card-w) !important;
  column-gap: 0 !important;
}

.r3-refit-page .r3-refit-projects__heading {
  margin-right: var(--r3-project-heading-gap);
}

.r3-refit-page .r3-refit-projects__intro {
  margin-right: var(--r3-project-carousel-gap);
}

.r3-refit-page .r3-project-carousel {
  justify-self: start;
}

/* Preserve a complete page canvas: the widened Projects module stays before footer. */
body.r3-refit-page .panel--r3-refit {
  width: calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-tail-space)
  ) !important;
  flex: 0 0 calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-tail-space)
  ) !important;
}

@media (max-width: 1100px) {
  .r3-refit-page {
    --r3-project-heading-gap: 18px;
    --r3-project-carousel-gap: 0px;
  }

  .r3-refit-page .r3-refit-projects__heading,
  .r3-refit-page .r3-refit-projects__intro {
    margin-right: 0;
  }

  .r3-refit-page .r3-refit-copy h1,
  .r3-refit-page .r3-refit-copy h2 {
    font-size: clamp(20px, 6vw, 30px) !important;
  }

  .r3-refit-page .r3-refit-copy p,
  .r3-refit-page .r3-refit-projects__intro p {
    font-size: 14px !important;
  }
}


/* =========================================================
   R3 REFIT DETAIL v5
   Composition spacing correction, stable Projects grid and Contact-color inner menu.
========================================================= */

.r3-refit-page {
  /*
    Contact > Career typography remains intact.
    The first composition gets a wider text column instead of shrinking the type.
  */
  --r3-refit-copy-w: clamp(390px, 25vw, 520px);
  --r3-refit-modern-w: clamp(910px, 55vw, 1120px);
  --r3-refit-services-w: clamp(620px, 39vw, 760px);

  /* Both visual compositions start from the same top baseline. */
  --r3-refit-composition-top: clamp(74px, 9vh, 132px);

  /*
    Projects is built from real tracks now:
    heading → equal gap → copy → slightly wider corridor → carousel.
    This prevents text from ever entering the card stack.
  */
  --r3-project-heading-w: 96px;
  --r3-project-intro-w: clamp(290px, 20vw, 360px);
  --r3-project-heading-gap: clamp(92px, 6vw, 132px);
  --r3-project-carousel-gap: clamp(150px, 10vw, 220px);
  --r3-project-card-w: clamp(610px, 44vw, 860px);
  --r3-refit-projects-w: calc(
    var(--r3-project-heading-w)
    + var(--r3-project-heading-gap)
    + var(--r3-project-intro-w)
    + var(--r3-project-carousel-gap)
    + var(--r3-project-card-w)
  );

  /* Restored to a contained pre-v4-style footer breathing space. */
  --r3-refit-tail-space: clamp(88px, 7vw, 150px);
}

/* Only the current R3 inner menu item is large/white. Inactive tone matches Contact exactly. */
.r3-refit-page .r3-refit-subnav .r3-subnav__item,
.r3-refit-page .r3-refit-subnav .r3-subnav__item:not(.is-active):hover,
.r3-refit-page .r3-refit-subnav .r3-subnav__item:not(.is-active):focus-visible {
  color: rgba(255,68,61,.72) !important;
  font-size: clamp(10px, .72vw, 14px) !important;
  font-weight: 400 !important;
  letter-spacing: .03em !important;
  transform: none !important;
}

.r3-refit-page .r3-refit-subnav .r3-subnav__item.is-active,
.r3-refit-page .r3-refit-subnav .r3-subnav__item.is-active:hover,
.r3-refit-page .r3-refit-subnav .r3-subnav__item.is-active:focus-visible {
  color: #ffffff !important;
  /*font-size: clamp(19px, 1.6vw, 22px) !important;*/
  font-weight: 500 !important;
  letter-spacing: .035em !important;
  transform: none !important;
}

/*
  Exact common top line for first and second images.
  The first text stays vertically balanced beside its visual; the second
  heading and text remain directly under its image.
*/
.r3-refit-page .r3-refit-block--modernization,
.r3-refit-page .r3-refit-block--services {
  align-self: flex-start !important;
  margin-top: var(--r3-refit-composition-top) !important;
}

.r3-refit-page .r3-refit-block--modernization {
  width: var(--r3-refit-modern-w);
  min-width: var(--r3-refit-modern-w);
  grid-template-columns: var(--r3-refit-copy-w) minmax(320px, 1fr);
  gap: clamp(54px, 4.3vw, 92px);
}

.r3-refit-page .r3-refit-copy--modernization h1,
.r3-refit-page .r3-refit-block--modernization .r3-refit-copy h1 {
  white-space: nowrap;
}

/* The established Contact/Career title and paragraph standard remains unchanged. */
.r3-refit-page .r3-refit-copy h1,
.r3-refit-page .r3-refit-copy h2 {
  margin-bottom: var(--r3-standard-title-gap) !important;
}

.r3-refit-page .r3-refit-block--services {
  width: var(--r3-refit-services-w);
  min-width: var(--r3-refit-services-w);
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 22px;
}

.r3-refit-page .r3-refit-services-image,
.r3-refit-page .r3-refit-copy--services {
  width: 100%;
  max-width: none;
}

/*
  Projects: five real tracks. The blank columns create visible, reliable
  spacing rather than margin overflow between description and carousel.
*/
.r3-refit-page .r3-refit-projects {
  width: var(--r3-refit-projects-w) !important;
  min-width: var(--r3-refit-projects-w) !important;
  margin-left: var(--r3-refit-gap);
  padding-right: 0 !important;
  display: grid;
  grid-template-columns:
    var(--r3-project-heading-w)
    var(--r3-project-heading-gap)
    var(--r3-project-intro-w)
    var(--r3-project-carousel-gap)
    var(--r3-project-card-w) !important;
  column-gap: 0 !important;
  align-items: center;
}

.r3-refit-page .r3-refit-projects__heading {
  grid-column: 1;
  width: var(--r3-project-heading-w);
  margin: 0 !important;
  justify-self: center;
}

.r3-refit-page .r3-refit-projects__intro {
  grid-column: 3;
  width: var(--r3-project-intro-w);
  margin: 0 !important;
  padding: 0 !important;
}

.r3-refit-page .r3-project-carousel {
  grid-column: 5;
  width: var(--r3-project-card-w);
  min-width: var(--r3-project-card-w);
  margin: 0 !important;
  justify-self: start;
}

/* Footer begins after the controlled 88–150px tail, not after an oversized virtual canvas. */
body.r3-refit-page .panel--r3-refit {
  width: calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-tail-space)
  ) !important;
  flex: 0 0 calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-tail-space)
  ) !important;
}

@media (max-width: 1100px) {
  .r3-refit-page {
    --r3-refit-copy-w: 100%;
    --r3-refit-modern-w: 100%;
    --r3-refit-services-w: 100%;
    --r3-refit-composition-top: 0px;
    --r3-project-heading-gap: 18px;
    --r3-project-carousel-gap: 0px;
  }

  .r3-refit-page .r3-refit-block--modernization,
  .r3-refit-page .r3-refit-block--services {
    margin-top: 0 !important;
  }

  .r3-refit-page .r3-refit-copy--modernization h1,
  .r3-refit-page .r3-refit-block--modernization .r3-refit-copy h1 {
    white-space: normal;
  }

  .r3-refit-page .r3-refit-projects {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: var(--r3-project-heading-w) 18px 1fr !important;
  }

  .r3-refit-page .r3-refit-projects__heading {
    grid-column: 1;
  }

  .r3-refit-page .r3-refit-projects__intro {
    grid-column: 3;
    width: auto;
  }

  .r3-refit-page .r3-project-carousel {
    grid-column: 1 / -1;
    justify-self: center;
  }
}


/* =========================================================
   R3 REFIT DETAIL v6
   Restore v3 vertical balance, controlled footer space and vertical length tag.
========================================================= */

.r3-refit-page {
  /*
    v3's controlled post-carousel distance:
    the footer does not crowd the carousel, but the page does not create
    an oversized empty final canvas either.
  */
  --r3-refit-tail-space: clamp(180px, 15vw, 330px);
}

/*
  The Refit visual compositions return to the centered v3 rhythm.
  They no longer start from a forced top offset.
*/
.r3-refit-page .r3-refit-block--modernization,
.r3-refit-page .r3-refit-block--services {
  align-self: center !important;
  margin-top: 0 !important;
}

/*
  First visual becomes closer to square while staying subtly vertical:
  previous 4:5 language opens toward a 6:7 frame.
*/
.r3-refit-page .r3-refit-modernization-image {
  aspect-ratio: 6 / 7 !important;
}

/*
  Project length sits beside the yacht name as a 270° vertical detail.
*/
.r3-refit-page .r3-project-carousel__project-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-right: 28px;
}

.r3-refit-page .r3-project-carousel__length {
  position: absolute;
  top: 50%;
  right: 0;
  display: block;
  color: var(--r3-refit-red);
  font-size: clamp(10px, .75vw, 14px);
  font-weight: 500;
  letter-spacing: .11em;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%) rotate(270deg);
  transform-origin: center;
}

/* Keep the full computed panorama in sync with the restored v3 tail spacing. */
body.r3-refit-page .panel--r3-refit {
  width: calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-tail-space)
  ) !important;
  flex: 0 0 calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-tail-space)
  ) !important;
}

@media (max-width: 1100px) {
  .r3-refit-page .r3-refit-modernization-image {
    aspect-ratio: 5 / 6 !important;
  }

  .r3-refit-page .r3-project-carousel__project-info {
    padding-right: 24px;
  }
}


/* =========================================================
   R3 REFIT DETAIL v7
   Larger first visual + unified DISCOVER button standard.
========================================================= */

.r3-refit-page {
  /*
    First Refit visual is enlarged without changing its near-square 6:7 language.
    The complete panorama width is recalculated below with this wider module.
  */
  --r3-refit-modern-w: clamp(1020px, 60vw, 1240px);
}

/* The first visual grows with its module and keeps the established 6:7 ratio. */
.r3-refit-page .r3-refit-modernization-image {
  width: 100%;
  aspect-ratio: 6 / 7 !important;
}

/*
  Single DISCOVER standard:
  Identical to the R3 category card control.
  This rule applies detail/carousel buttons without altering their destination logic.
*/
.r3-refit-page .r3-project-carousel__discover {
  min-width: 125px !important;
  min-height: 50px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: var(--r3-refit-red) !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: .17em !important;
  line-height: 1;
  transition:
    color .25s var(--ease),
    background .25s var(--ease),
    transform .25s var(--ease) !important;
}

.r3-refit-page .r3-project-carousel__discover:hover,
.r3-refit-page .r3-project-carousel__discover:focus-visible {
  color: var(--r3-refit-red) !important;
  background: #ffffff !important;
  transform: translateY(-4px) !important;
  outline: none;
}

/* Keep footer placement accurately calculated after the larger first visual. */
body.r3-refit-page .panel--r3-refit {
  width: calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-tail-space)
  ) !important;
  flex: 0 0 calc(
    var(--rail-w)
    + var(--r3-refit-subnav-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-modern-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-services-w)
    + var(--r3-refit-gap)
    + var(--r3-refit-projects-w)
    + var(--r3-refit-tail-space)
  ) !important;
}

@media (max-width: 1100px) {
  .r3-refit-page {
    --r3-refit-modern-w: 100%;
  }

  .r3-refit-page .r3-project-carousel__discover {
    min-width: 116px !important;
    min-height: 46px !important;
    padding: 0 18px !important;
  }
}


/* =========================================================
   R3 REBUILD VESSEL DETAIL
   First vessel template: S/Y Conquistador.
========================================================= */

body.r3-vessel-page {
  background: #181a3f;
}

body.r3-vessel-page .main {
  inset: 0 !important;
}

body.r3-vessel-page .rail {
  background: rgba(24, 26, 63, .72);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

body.r3-vessel-page .panel {
  width: 100vw;
  height: 100vh;
  flex: 0 0 100vw;
}

body.r3-vessel-page .footer-panel {
  height: 100vh;
  flex: 0 0 var(--footer-w);
}

.r3-vessel-page {
  --r3-vessel-red: #ff443d;
  --r3-vessel-gold: #cfc18a;
  --r3-vessel-nav-w: clamp(205px, 15vw, 286px);
  --r3-vessel-gap: clamp(72px, 5.7vw, 126px);
  --r3-vessel-hero-w: clamp(610px, 39vw, 820px);
  --r3-vessel-spec-w: clamp(500px, 32vw, 690px);
  --r3-vessel-gallery-w: clamp(610px, 39vw, 820px);
  --r3-vessel-carousel-w: clamp(610px, 44vw, 860px);
  --r3-vessel-tail-space: clamp(180px, 15vw, 330px);
}

/* Full page canvas: side nav → hero → specs → gallery → related carousel → tail → footer. */
body.r3-vessel-page .panel--r3-vessel {
  width: calc(
    var(--rail-w)
    + var(--r3-vessel-nav-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-hero-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-spec-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-gallery-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-carousel-w)
    + var(--r3-vessel-tail-space)
  ) !important;
  flex: 0 0 calc(
    var(--rail-w)
    + var(--r3-vessel-nav-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-hero-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-spec-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-gallery-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-carousel-w)
    + var(--r3-vessel-tail-space)
  ) !important;
}

.r3-vessel-flow {
  position: relative;
  display: flex;
  align-items: center;
  height: 100vh;
  padding-left: var(--rail-w);
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 1px 1px, rgba(244,243,240,.055) 0 1px, transparent 1.45px),
    #181a3f;
  background-size: 28px 28px, auto;
}

.r3-vessel-flow::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.014), transparent 33%, rgba(0,0,0,.055)),
    linear-gradient(0deg, rgba(10,12,32,.11), transparent 54%);
}

/* Long Rebuild ship nav: opaque, scroll-safe and visually aligned to prior R3 submenus. */
.r3-vessel-subnav {
  position: relative;
  z-index: 2;
  width: var(--r3-vessel-nav-w);
  min-width: var(--r3-vessel-nav-w);
  height: 100vh;
  flex: 0 0 var(--r3-vessel-nav-w);
  padding: clamp(32px, 3vw, 56px) 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,68,61,.72);
  background: rgba(29,31,64,.92);
  box-shadow: inset -1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

.r3-vessel-subnav__brand {
  width: min(100%, 112px);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.r3-vessel-subnav__brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  object-position: center;
}

.r3-vessel-subnav__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--r3-vessel-red);
  font-size: clamp(13px, .95vw, 18px);
  font-weight: 500;
  letter-spacing: .035em;
  text-decoration: none;
  transition: color .22s var(--ease), transform .22s var(--ease);
}

.r3-vessel-subnav__back span {
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.r3-vessel-subnav__back:hover,
.r3-vessel-subnav__back:focus-visible {
  color: #ffffff;
  transform: translateX(-3px);
  outline: none;
}

.r3-vessel-subnav__list {
  width: 100%;
  margin: auto 0;
  padding: 8px 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.28) transparent;
}

.r3-vessel-subnav__rule {
  width: 1px;
  height: 62px;
  display: block;
  flex: 0 0 auto;
  background: rgba(255,255,255,.42);
}

.r3-vessel-subnav__item {
  max-width: 100%;
  color: rgba(255,68,61,.72);
  font-size: clamp(10px, .72vw, 14px);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: color .22s var(--ease), transform .22s var(--ease);
}

.r3-vessel-subnav__item:hover,
.r3-vessel-subnav__item:focus-visible {
  color: #ffffff;
  transform: translateX(3px);
  outline: none;
}

.r3-vessel-subnav__item.is-active {
  color: #ffffff;
}

/* Shared image language. */
.r3-vessel-hero,
.r3-vessel-specs,
.r3-vessel-gallery,
.r3-vessel-related {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-self: center;
}

.r3-vessel-hero {
  width: var(--r3-vessel-hero-w);
  min-width: var(--r3-vessel-hero-w);
  margin-left: var(--r3-vessel-gap);
}

.r3-vessel-hero__image,
.r3-vessel-gallery__image {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #495c74 0%, #273750 58%, #111827 100%);
  box-shadow: 0 16px 38px rgba(0,0,0,.19);
}

.r3-vessel-hero__image {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.r3-vessel-hero__image img,
.r3-vessel-gallery__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .36s var(--ease), transform 7s cubic-bezier(.2,.65,.25,1);
}

.r3-vessel-hero__image img.is-loaded,
.r3-vessel-gallery__image img.is-loaded {
  opacity: 1;
}

.r3-vessel-hero__image:hover img.is-loaded,
.r3-vessel-gallery__image:hover img.is-loaded {
  transform: scale(1.06);
}

.r3-vessel-hero__image figcaption {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 18px;
  color: #ffffff;
  font-size: clamp(19px, 1.45vw, 28px);
  font-weight: 500;
  letter-spacing: .025em;
}

/* Specs card. */
.r3-vessel-specs {
  width: var(--r3-vessel-spec-w);
  min-width: var(--r3-vessel-spec-w);
  margin-left: var(--r3-vessel-gap);
}

.r3-vessel-specs__card {
  width: 100%;
  padding: clamp(28px, 2.7vw, 54px);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 16px;
  background: rgba(24,26,63,.20);
}

.r3-vessel-specs__card h1 {
  margin: 0 0 clamp(26px, 2.1vw, 40px);
  color: #ffffff;
  font-size: clamp(17px, 1.15vw, 23px);
  font-weight: 500;
  letter-spacing: .03em;
}

.r3-vessel-specs__inner {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(190px, 1fr);
  gap: clamp(28px, 2.4vw, 46px);
}

.r3-vessel-specs__table {
  margin: 0;
}

.r3-vessel-specs__table > div {
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.r3-vessel-specs__table > div:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.r3-vessel-specs__table dt {
  margin: 0 0 6px;
  color: rgba(255,255,255,.56);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .12em;
}

.r3-vessel-specs__table dd {
  margin: 0;
  color: #ffffff;
  font-size: clamp(10px, .72vw, 14px);
  font-weight: 500;
}

.r3-vessel-specs__copy p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.78);
  font-size: clamp(10px, .67vw, 13px);
  font-weight: 300;
  line-height: 1.72;
}

.r3-vessel-specs__copy p:last-child {
  margin-bottom: 0;
}

/* Second visual has no label. */
.r3-vessel-gallery {
  width: var(--r3-vessel-gallery-w);
  min-width: var(--r3-vessel-gallery-w);
  margin-left: var(--r3-vessel-gap);
}

.r3-vessel-gallery__image {
  width: 100%;
  aspect-ratio: 16 / 10;
}

/* Related rebuild carousel; same visual language and DISCOVER standard as category/detail pages. */
.r3-vessel-related {
  width: var(--r3-vessel-carousel-w);
  min-width: var(--r3-vessel-carousel-w);
  margin-left: var(--r3-vessel-gap);
}

.r3-vessel-carousel {
  width: 100%;
}

.r3-vessel-carousel__stack {
  position: relative;
  width: 100%;
  height: clamp(345px, 29vw, 540px);
  overflow: visible;
}

.r3-vessel-carousel__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #41516a 0%, #223148 62%, #101627 100%);
  box-shadow: 0 24px 52px rgba(0,0,0,.28);
  transition:
    transform .78s cubic-bezier(.22,.61,.36,1),
    opacity .64s ease,
    filter .64s ease;
}

.r3-vessel-carousel__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .34s var(--ease);
}

.r3-vessel-carousel__card img.is-loaded {
  opacity: 1;
}

.r3-vessel-carousel__card--previous {
  z-index: 1;
  opacity: .24;
  filter: blur(.2px) saturate(.72);
  transform: translate(-79%, -49%) scale(.78);
}

.r3-vessel-carousel__card--current {
  z-index: 3;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.r3-vessel-carousel__card--next {
  z-index: 2;
  opacity: .24;
  filter: blur(.2px) saturate(.72);
  transform: translate(-21%, -49%) scale(.78);
}

.r3-vessel-carousel__next {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: -38px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--r3-vessel-red);
  font: inherit;
  font-size: 28px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

.r3-vessel-carousel__next:hover,
.r3-vessel-carousel__next:focus-visible {
  color: var(--r3-vessel-red);
  background: #ffffff;
  outline: none;
  transform: translateY(-50%) scale(1.07);
}

.r3-vessel-carousel.is-advancing .r3-vessel-carousel__card--previous {
  opacity: 0;
  transform: translate(-108%, -49%) scale(.70);
}

.r3-vessel-carousel.is-advancing .r3-vessel-carousel__card--current {
  opacity: .24;
  filter: blur(.2px) saturate(.72);
  transform: translate(-79%, -49%) scale(.78);
}

.r3-vessel-carousel.is-advancing .r3-vessel-carousel__card--next {
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

.r3-vessel-carousel.is-resetting .r3-vessel-carousel__card,
.r3-vessel-carousel.is-resetting .r3-vessel-carousel__card img {
  transition: none !important;
}

.r3-vessel-carousel__meta {
  min-height: 58px;
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.r3-vessel-carousel__discover {
  min-width: 125px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--r3-vessel-red);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .17em;
  text-decoration: none;
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

.r3-vessel-carousel__discover:hover,
.r3-vessel-carousel__discover:focus-visible {
  color: var(--r3-vessel-red);
  background: #ffffff;
  outline: none;
  transform: translateY(-4px);
}

.r3-vessel-carousel__project-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-right: 28px;
}

.r3-vessel-carousel__project-info strong {
  color: #ffffff;
  font-size: clamp(14px, 1vw, 19px);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.r3-vessel-carousel__length {
  position: absolute;
  top: 50%;
  right: 0;
  display: block;
  color: var(--r3-vessel-red);
  font-size: clamp(10px, .75vw, 14px);
  font-weight: 500;
  letter-spacing: .11em;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%) rotate(270deg);
  transform-origin: center;
}

.r3-vessel-footer {
  background: #b8b8b4;
}

/* Project-wide confirmed values. */
.r3-vessel-page .r3-vessel-subnav__brand img {
  max-height: 40px;
}

.socials a svg {
  width: 20px;
  height: 20px;
}

.menu-toggle {
  gap: 10px;
}

@media (max-width: 1100px) {
  body.r3-vessel-page .main {
    position: static !important;
    overflow: visible !important;
  }

  body.r3-vessel-page .panel,
  body.r3-vessel-page .panel--r3-vessel {
    width: 100% !important;
    height: auto;
    min-height: 100svh;
    flex-basis: 100% !important;
  }

  .r3-vessel-flow {
    height: auto;
    min-height: 0;
    padding: var(--rail-h) 24px 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 54px;
    overflow: hidden;
  }

  .r3-vessel-subnav {
    width: calc(100% + 48px);
    min-width: 0;
    height: auto;
    max-height: none;
    margin: 0 -24px;
    padding: 18px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .r3-vessel-subnav__brand {
    width: 52px;
    min-height: 34px;
  }

  .r3-vessel-subnav__brand img {
    max-height: 30px;
  }

    .r3-vessel-subnav__back {
        margin: 0 !important;
        font-size: 11px;
    }

  .r3-vessel-subnav__list {
    width: min(52vw, 270px);
    max-height: 78px;
    margin: 0;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }

  .r3-vessel-subnav__rule {
    display: none;
  }

  .r3-vessel-subnav__item {
    font-size: 10px;
    white-space: nowrap;
  }

  .r3-vessel-hero,
  .r3-vessel-specs,
  .r3-vessel-gallery,
  .r3-vessel-related {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .r3-vessel-specs__inner {
    grid-template-columns: 1fr;
  }

  .r3-vessel-related {
    width: min(84vw, 620px);
    justify-self: center;
  }

  .r3-vessel-carousel__stack {
    height: calc(min(84vw, 620px) * .62);
  }

  .r3-vessel-carousel__next {
    right: -22px;
    width: 64px;
    height: 64px;
  }

  body.r3-vessel-page .footer-panel {
    width: 100%;
    height: auto !important;
    min-height: 280px;
    flex-basis: auto !important;
  }
}


/* =========================================================
   R3 REBUILD VESSEL DETAIL v2
   Larger 16:9 visuals, 1.5x spec card, refined subnav and carousel controls.
========================================================= */

.r3-vessel-page {
  --r3-vessel-hero-w: clamp(900px, 62vw, 1180px);
  --r3-vessel-gallery-w: clamp(900px, 62vw, 1180px);
  --r3-vessel-spec-w: clamp(750px, 48vw, 1035px);
  --r3-vessel-carousel-gap: clamp(108px, 8.55vw, 189px);
}

/* Rebuild level under the R3 mark follows Contact's CONTACT label standard. */
.r3-vessel-page .r3-vessel-subnav__back {
  gap: 8px;
  margin-top: 12px;
  color: var(--contact-red, #ff443d);
  font-size: clamp(12px, .9vw, 17px);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
}

.r3-vessel-page .r3-vessel-subnav__back strong {
  color: inherit;
  font: inherit;
}

.r3-vessel-page .r3-vessel-subnav__back span {
  font-size: clamp(15px, 1.1vw, 21px);
}

/* Main vessel images adopt the larger Heritage-stage visual scale in 16:9. */
.r3-vessel-page .r3-vessel-hero__image,
.r3-vessel-page .r3-vessel-gallery__image {
  aspect-ratio: 16 / 9;
}

/* The technical card is scaled 1.5x as a complete module. */
.r3-vessel-page .r3-vessel-specs__card {
  padding: clamp(42px, 4.05vw, 81px);
  border-radius: 22px;
}

.r3-vessel-page .r3-vessel-specs__card h1 {
  margin-bottom: clamp(39px, 3.15vw, 60px);
  font-size: clamp(25px, 1.72vw, 35px);
}

.r3-vessel-page .r3-vessel-specs__inner {
  grid-template-columns: minmax(225px, .8fr) minmax(285px, 1fr);
  gap: clamp(42px, 3.6vw, 69px);
}

.r3-vessel-page .r3-vessel-specs__table > div {
  padding-bottom: 21px;
  margin-bottom: 21px;
}

.r3-vessel-page .r3-vessel-specs__table dt {
  margin-bottom: 9px;
  font-size: 12px;
}

.r3-vessel-page .r3-vessel-specs__table dd {
  font-size: clamp(15px, 1.08vw, 21px);
}

.r3-vessel-page .r3-vessel-specs__copy p {
  margin-bottom: 27px;
  font-size: clamp(15px, 1vw, 19px);
  line-height: 1.72;
}

/* Only the gallery → carousel distance expands 1.5x. */
.r3-vessel-page .r3-vessel-related {
  margin-left: var(--r3-vessel-carousel-gap);
}

/* Account for the custom carousel spacing in the horizontal page canvas. */
body.r3-vessel-page .panel--r3-vessel {
  width: calc(
    var(--rail-w)
    + var(--r3-vessel-nav-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-hero-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-spec-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-gallery-w)
    + var(--r3-vessel-carousel-gap)
    + var(--r3-vessel-carousel-w)
    + var(--r3-vessel-tail-space)
  ) !important;
  flex: 0 0 calc(
    var(--rail-w)
    + var(--r3-vessel-nav-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-hero-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-spec-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-gallery-w)
    + var(--r3-vessel-carousel-gap)
    + var(--r3-vessel-carousel-w)
    + var(--r3-vessel-tail-space)
  ) !important;
}

/* Side cards are visibly soft and stay behind the foreground image. */
.r3-vessel-page .r3-vessel-carousel__card--previous,
.r3-vessel-page .r3-vessel-carousel__card--next {
  opacity: .30;
  filter: blur(2.8px) saturate(.64) brightness(.78);
}

/* No slow reveal when an already prepared image becomes active. */
.r3-vessel-page .r3-vessel-carousel__card img {
  transition: opacity .12s var(--ease);
}

/* Matching red controls: left arrow is revealed only after leaving index 0. */
.r3-vessel-page .r3-vessel-carousel__prev,
.r3-vessel-page .r3-vessel-carousel__next {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--r3-vessel-red);
  font: inherit;
  font-size: 28px;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color .25s var(--ease),
    background .25s var(--ease),
    transform .25s var(--ease),
    opacity .25s var(--ease);
}

.r3-vessel-page .r3-vessel-carousel__prev {
  left: -38px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.82);
}

.r3-vessel-page .r3-vessel-carousel__prev.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.r3-vessel-page .r3-vessel-carousel__prev:hover,
.r3-vessel-page .r3-vessel-carousel__prev:focus-visible,
.r3-vessel-page .r3-vessel-carousel__next:hover,
.r3-vessel-page .r3-vessel-carousel__next:focus-visible {
  color: var(--r3-vessel-red);
  background: #ffffff;
  outline: none;
  transform: translateY(-50%) scale(1.07);
}

/* Pointer-driven travel is intentional and does not select card text. */
.r3-vessel-page .r3-vessel-carousel {
  touch-action: pan-y;
  cursor: grab;
}

.r3-vessel-page .r3-vessel-carousel.is-dragging {
  cursor: grabbing;
  user-select: none;
}

@media (max-width: 1100px) {
  .r3-vessel-page {
    --r3-vessel-hero-w: 100%;
    --r3-vessel-gallery-w: 100%;
    --r3-vessel-spec-w: 100%;
    --r3-vessel-carousel-gap: 54px;
  }

  .r3-vessel-page .r3-vessel-specs__card {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .r3-vessel-page .r3-vessel-specs__card h1 {
    margin-bottom: 28px;
    font-size: 22px;
  }

  .r3-vessel-page .r3-vessel-specs__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .r3-vessel-page .r3-vessel-specs__table dt {
    font-size: 10px;
  }

  .r3-vessel-page .r3-vessel-specs__table dd {
    font-size: 14px;
  }

  .r3-vessel-page .r3-vessel-specs__copy p {
    font-size: 14px;
  }

  .r3-vessel-page .r3-vessel-related {
    margin-left: 0;
  }

  .r3-vessel-page .r3-vessel-carousel__prev,
  .r3-vessel-page .r3-vessel-carousel__next {
    width: 64px;
    height: 64px;
  }

  .r3-vessel-page .r3-vessel-carousel__prev {
    left: -22px;
  }
}


/* =========================================================
   R3 REBUILD VESSEL DETAIL v3
   Spec-card refinement + robust carousel control interaction.
========================================================= */

.r3-vessel-page {
  /*
    The table returns to its original visual scale, but the full module grows
    horizontally so its technical and descriptive columns breathe correctly.
  */
  --r3-vessel-spec-w: clamp(825px, 52vw, 1120px);

  /*
    Original visual gap = 1.0. v2 was 1.5. This revision opens the gallery →
    carousel corridor to 2.0×, visibly separating the second image and carousel.
  */
  --r3-vessel-carousel-gap: clamp(144px, 11.4vw, 252px);
}

/* Back to the original one-times table/type scale; keep it horizontally wider. */
.r3-vessel-page .r3-vessel-specs__card {
  padding: clamp(28px, 2.7vw, 54px);
  border-radius: 16px;
}

.r3-vessel-page .r3-vessel-specs__card h1 {
  margin-bottom: clamp(26px, 2.1vw, 40px);
  font-size: clamp(17px, 1.15vw, 23px);
}

.r3-vessel-page .r3-vessel-specs__inner {
  grid-template-columns: minmax(190px, .72fr) minmax(360px, 1.38fr);
  gap: clamp(34px, 2.8vw, 54px);
}

.r3-vessel-page .r3-vessel-specs__table > div {
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.r3-vessel-page .r3-vessel-specs__table dt {
  margin-bottom: 6px;
  font-size: 8px;
}

.r3-vessel-page .r3-vessel-specs__table dd {
  font-size: clamp(10px, .72vw, 14px);
}

.r3-vessel-page .r3-vessel-specs__copy p {
  margin-bottom: 18px;
  font-size: clamp(10px, .67vw, 13px);
  line-height: 1.72;
}

/* Make sure the widened carousel corridor is calculated in the horizontal canvas. */
body.r3-vessel-page .panel--r3-vessel {
  width: calc(
    var(--rail-w)
    + var(--r3-vessel-nav-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-hero-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-spec-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-gallery-w)
    + var(--r3-vessel-carousel-gap)
    + var(--r3-vessel-carousel-w)
    + var(--r3-vessel-tail-space)
  ) !important;
  flex: 0 0 calc(
    var(--rail-w)
    + var(--r3-vessel-nav-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-hero-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-spec-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-gallery-w)
    + var(--r3-vessel-carousel-gap)
    + var(--r3-vessel-carousel-w)
    + var(--r3-vessel-tail-space)
  ) !important;
}

/* Controls always sit above image cards and remain directly clickable. */
.r3-vessel-page .r3-vessel-carousel__prev,
.r3-vessel-page .r3-vessel-carousel__next {
  z-index: 12 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
}

@media (max-width: 1100px) {
  .r3-vessel-page {
    --r3-vessel-spec-w: 100%;
    --r3-vessel-carousel-gap: 72px;
  }

  .r3-vessel-page .r3-vessel-specs__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}


/* =========================================================
   R3 REBUILD VESSEL DETAIL v4
   Technical card typography and balanced inner column widths.
========================================================= */

/* User-confirmed technical-label value. */
.r3-vessel-page .r3-vessel-specs__table dt {
  margin-bottom: 6px;
  font-size: 14px;
}

/*
  Keep the card itself wide, but tighten the descriptive text column so it
  does not expand too far across the panel. The technical table remains readable.
*/
.r3-vessel-page .r3-vessel-specs__inner {
  grid-template-columns: minmax(210px, 290px) minmax(300px, 440px);
  gap: clamp(34px, 2.8vw, 54px);
  justify-content: start;
}

.r3-vessel-page .r3-vessel-specs__copy {
  max-width: 440px;
}

@media (max-width: 1100px) {
  .r3-vessel-page .r3-vessel-specs__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .r3-vessel-page .r3-vessel-specs__copy {
    max-width: none;
  }
}


/* =========================================================
   R3 REBUILD VESSEL DETAIL v5
   Mirrored reverse-carousel transition + half-step narrower spec module.
========================================================= */

.r3-vessel-page {
  /*
    v4 was intentionally wide. This is a half-step pullback:
    enough room for the table and explanation, without dominating the image flow.
  */
  --r3-vessel-spec-w: clamp(700px, 44vw, 950px);
}

/* Technical table stays balanced inside the narrowed card. */
.r3-vessel-page .r3-vessel-specs__inner {
  grid-template-columns: minmax(190px, 250px) minmax(280px, 370px);
  gap: clamp(30px, 2.45vw, 46px);
}

.r3-vessel-page .r3-vessel-specs__copy {
  max-width: 370px;
}

/*
  Reverse transition mirrors the approved forward movement:
  - left/rear card moves into the foreground
  - current foreground moves to the right/rear
  - right/rear card exits softly
*/
.r3-vessel-page .r3-vessel-carousel.is-reversing .r3-vessel-carousel__card--previous {
  z-index: 4;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

.r3-vessel-page .r3-vessel-carousel.is-reversing .r3-vessel-carousel__card--current {
  z-index: 2;
  opacity: .30;
  filter: blur(2.8px) saturate(.64) brightness(.78);
  transform: translate(-21%, -49%) scale(.78);
}

.r3-vessel-page .r3-vessel-carousel.is-reversing .r3-vessel-carousel__card--next {
  z-index: 1;
  opacity: 0;
  filter: blur(3.4px) saturate(.58) brightness(.68);
  transform: translate(8%, -49%) scale(.70);
}

/* Keep the panel canvas synchronized after narrowing the spec module. */
body.r3-vessel-page .panel--r3-vessel {
  width: calc(
    var(--rail-w)
    + var(--r3-vessel-nav-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-hero-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-spec-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-gallery-w)
    + var(--r3-vessel-carousel-gap)
    + var(--r3-vessel-carousel-w)
    + var(--r3-vessel-tail-space)
  ) !important;
  flex: 0 0 calc(
    var(--rail-w)
    + var(--r3-vessel-nav-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-hero-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-spec-w)
    + var(--r3-vessel-gap)
    + var(--r3-vessel-gallery-w)
    + var(--r3-vessel-carousel-gap)
    + var(--r3-vessel-carousel-w)
    + var(--r3-vessel-tail-space)
  ) !important;
}

@media (max-width: 1100px) {
  .r3-vessel-page {
    --r3-vessel-spec-w: 100%;
  }

  .r3-vessel-page .r3-vessel-specs__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .r3-vessel-page .r3-vessel-specs__copy {
    max-width: none;
  }
}


/* =========================================================
   R3 REBUILD VESSEL DETAIL v6
   Circular previous arrow + symmetric DOM-role carousel transitions.
========================================================= */

/* Previous navigation remains available throughout the full circular carousel. */
.r3-vessel-page .r3-vessel-carousel__prev {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(-50%) scale(1) !important;
}

/* Forward is brought to the same visual standard as reverse. */
.r3-vessel-page .r3-vessel-carousel.is-advancing .r3-vessel-carousel__card--previous {
  z-index: 1;
  opacity: 0;
  filter: blur(3.4px) saturate(.58) brightness(.68);
  transform: translate(-108%, -49%) scale(.70);
}

.r3-vessel-page .r3-vessel-carousel.is-advancing .r3-vessel-carousel__card--current {
  z-index: 2;
  opacity: .30;
  filter: blur(2.8px) saturate(.64) brightness(.78);
  transform: translate(-79%, -49%) scale(.78);
}

.r3-vessel-page .r3-vessel-carousel.is-advancing .r3-vessel-carousel__card--next {
  z-index: 4;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

/* Active center card stays visually crisp through the role handoff. */
.r3-vessel-page .r3-vessel-carousel__card--current {
  z-index: 3;
  opacity: 1;
  filter: none;
}

.r3-vessel-page .r3-vessel-carousel.is-resetting .r3-vessel-carousel__card,
.r3-vessel-page .r3-vessel-carousel.is-resetting .r3-vessel-carousel__card img {
  transition: none !important;
}


/* =========================================================
   R3 REBUILD VESSEL DETAIL v7
   Fixed related-vessel image loading + 3-slide vessel gallery.
========================================================= */

/*
  One more full visual corridor between the second vessel gallery and
  the related-vessels carousel: 3× the original base spacing.
*/
.r3-vessel-page {
  --r3-vessel-carousel-gap: clamp(216px, 17.1vw, 378px);
}

/* Gallery slider container keeps the established big 16:9 visual presence. */
.r3-vessel-page .r3-vessel-gallery {
  position: relative;
}

.r3-vessel-page .r3-vessel-gallery__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #495c74 0%, #273750 58%, #111827 100%);
  box-shadow: 0 16px 38px rgba(0,0,0,.19);
}

.r3-vessel-page .r3-vessel-gallery__image {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  box-shadow: none;
}

.r3-vessel-page .r3-vessel-gallery__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.012);
  transition:
    opacity .34s var(--ease),
    transform 6.5s cubic-bezier(.2,.65,.25,1);
}

.r3-vessel-page .r3-vessel-gallery__image img.is-loaded {
  opacity: 1;
}

.r3-vessel-page .r3-vessel-gallery__slider:hover .r3-vessel-gallery__image img.is-loaded {
  transform: scale(1.055);
}

/* Gallery arrows appear only while the image surface is interacted with. */
.r3-vessel-page .r3-vessel-gallery__nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(24,26,63,.40);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font: inherit;
  font-size: 23px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.88);
  transition:
    opacity .24s var(--ease),
    color .24s var(--ease),
    background .24s var(--ease),
    transform .24s var(--ease);
}

.r3-vessel-page .r3-vessel-gallery__nav--prev {
  left: 24px;
}

.r3-vessel-page .r3-vessel-gallery__nav--next {
  right: 24px;
}

.r3-vessel-page .r3-vessel-gallery__slider:hover .r3-vessel-gallery__nav,
.r3-vessel-page .r3-vessel-gallery__slider:focus-within .r3-vessel-gallery__nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.r3-vessel-page .r3-vessel-gallery__nav:hover,
.r3-vessel-page .r3-vessel-gallery__nav:focus-visible {
  color: var(--r3-vessel-red);
  background: rgba(255,255,255,.92);
  outline: none;
}

/* Mid-bottom gallery points. */
.r3-vessel-page .r3-vessel-gallery__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

.r3-vessel-page .r3-vessel-gallery__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.90);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .22s var(--ease), background .22s var(--ease);
}

.r3-vessel-page .r3-vessel-gallery__dots button.is-active {
  background: #ffffff;
  transform: scale(1.25);
}

.r3-vessel-page .r3-vessel-gallery__dots button:focus-visible {
  outline: 1px solid var(--r3-vessel-red);
  outline-offset: 3px;
}

/* Correct related-carousel image surfaces: all card slots now fade only after a real asset resolves. */
.r3-vessel-page .r3-vessel-carousel__card img {
  opacity: 0;
  transition: opacity .16s var(--ease);
}

.r3-vessel-page .r3-vessel-carousel__card img.is-loaded {
  opacity: 1;
}

@media (max-width: 1100px) {
  .r3-vessel-page {
    --r3-vessel-carousel-gap: 96px;
  }

  .r3-vessel-page .r3-vessel-gallery__nav {
    width: 46px;
    height: 46px;
  }

  .r3-vessel-page .r3-vessel-gallery__nav--prev {
    left: 15px;
  }

  .r3-vessel-page .r3-vessel-gallery__nav--next {
    right: 15px;
  }
}


/* =========================================================
   R3 PROJECT CAROUSEL — FEATURE PARITY v8
   Refit / Restoration / Rebuild share the approved vessel-carousel interaction.
========================================================= */

.r3-refit-page .r3-project-carousel {
  touch-action: pan-y;
  cursor: grab;
}

.r3-refit-page .r3-project-carousel.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* Stronger side-card blur, mirroring the approved vessel-detail carousel. */
.r3-refit-page .r3-project-carousel__card--previous,
.r3-refit-page .r3-project-carousel__card--next {
  z-index: 1;
  opacity: .30;
  filter: blur(2.8px) saturate(.64) brightness(.78);
}

.r3-refit-page .r3-project-carousel__card--previous {
  transform: translate(-79%, -49%) scale(.78);
}

.r3-refit-page .r3-project-carousel__card--current {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

.r3-refit-page .r3-project-carousel__card--next {
  z-index: 2;
  transform: translate(-21%, -49%) scale(.78);
}

.r3-refit-page .r3-project-carousel__card img {
  opacity: 0;
  transition: opacity .16s var(--ease);
}

.r3-refit-page .r3-project-carousel__card img.is-loaded {
  opacity: 1;
}

/* Circular previous/next controls: both remain available in the circular project sequence. */
.r3-refit-page .r3-project-carousel__prev,
.r3-refit-page .r3-project-carousel__next {
  position: absolute;
  z-index: 12;
  top: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--r3-refit-red);
  font: inherit;
  font-size: 28px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transform: translateY(-50%);
  transition:
    color .25s var(--ease),
    background .25s var(--ease),
    transform .25s var(--ease);
}

.r3-refit-page .r3-project-carousel__prev {
  left: -38px;
}

.r3-refit-page .r3-project-carousel__next {
  right: -38px;
}

.r3-refit-page .r3-project-carousel__prev:hover,
.r3-refit-page .r3-project-carousel__prev:focus-visible,
.r3-refit-page .r3-project-carousel__next:hover,
.r3-refit-page .r3-project-carousel__next:focus-visible {
  color: var(--r3-refit-red);
  background: #ffffff;
  outline: none;
  transform: translateY(-50%) scale(1.07);
}

/* Right preview card is promoted directly to the center in a forward move. */
.r3-refit-page .r3-project-carousel.is-advancing .r3-project-carousel__card--previous {
  z-index: 1;
  opacity: 0;
  filter: blur(3.4px) saturate(.58) brightness(.68);
  transform: translate(-108%, -49%) scale(.70);
}

.r3-refit-page .r3-project-carousel.is-advancing .r3-project-carousel__card--current {
  z-index: 2;
  opacity: .30;
  filter: blur(2.8px) saturate(.64) brightness(.78);
  transform: translate(-79%, -49%) scale(.78);
}

.r3-refit-page .r3-project-carousel.is-advancing .r3-project-carousel__card--next {
  z-index: 4;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

/* Reverse is the exact visual mirror of forward. */
.r3-refit-page .r3-project-carousel.is-reversing .r3-project-carousel__card--previous {
  z-index: 4;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

.r3-refit-page .r3-project-carousel.is-reversing .r3-project-carousel__card--current {
  z-index: 2;
  opacity: .30;
  filter: blur(2.8px) saturate(.64) brightness(.78);
  transform: translate(-21%, -49%) scale(.78);
}

.r3-refit-page .r3-project-carousel.is-reversing .r3-project-carousel__card--next {
  z-index: 1;
  opacity: 0;
  filter: blur(3.4px) saturate(.58) brightness(.68);
  transform: translate(8%, -49%) scale(.70);
}

.r3-refit-page .r3-project-carousel.is-resetting .r3-project-carousel__card,
.r3-refit-page .r3-project-carousel.is-resetting .r3-project-carousel__card img {
  transition: none !important;
}

@media (max-width: 1100px) {
  .r3-refit-page .r3-project-carousel__prev,
  .r3-refit-page .r3-project-carousel__next {
    width: 64px;
    height: 64px;
  }

  .r3-refit-page .r3-project-carousel__prev {
    left: -22px;
  }

  .r3-refit-page .r3-project-carousel__next {
    right: -22px;
  }
}


/* =========================================================
   CONTACT / HOME ENQUIRY — v98 STABILIZATION
   Form geometry remains untouched. Only the address column is centered
   against the existing Enquiry form, and the legal dialog uses the proven
   Career-style fixed action area.
========================================================= */

/* Keep Contact > Enquiry form width, columns and inter-column gap intact. */
body.contact-page .contact-view--enquiry .enquiry-layout {
  width: min(100%, 1240px) !important;
  grid-template-columns: minmax(260px, .9fr) minmax(430px, 1.15fr) !important;
  align-items: center !important;
  gap: clamp(54px, 8vw, 160px) !important;
}

/* Address is centered as one compact block relative to the untouched form. */
body.contact-page .contact-view--enquiry .contact-address,
body.home-page .home-contact-enquiry__address {
  align-self: center !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
}

body.contact-page .contact-view--enquiry .contact-address__list,
body.home-page .home-contact-enquiry__address .contact-address__list {
  margin: clamp(30px, 4vh, 48px) 0 0 !important;
}

body.contact-page .contact-view--enquiry .contact-address__socials,
body.home-page .home-contact-enquiry__address .contact-address__socials {
  margin-top: clamp(28px, 3.6vh, 44px) !important;
}

/* Career-style policy dialog: only legal text scrolls; PDFs and action stay fixed. */
.policy-modal__dialog {
  width: min(100%, 720px) !important;
  height: min(84vh, 760px) !important;
  max-height: min(84vh, 760px) !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

.policy-modal__eyebrow {
  margin: 0 0 12px !important;
}

.policy-modal__dialog h2 {
  margin: 0 42px 18px 0 !important;
}

.policy-modal__scroll {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 18px 0 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.policy-modal__pdfs {
  flex: 0 0 auto;
  margin: 18px 0 0 !important;
}

.policy-modal__accept {
  align-self: start;
  flex: 0 0 auto;
  margin: 18px 0 0 !important;
}

@media (max-width: 1100px) {
  .policy-modal {
    padding: 14px !important;
  }

  .policy-modal__dialog {
    height: min(88svh, 720px) !important;
    max-height: min(88svh, 720px) !important;
    padding: 24px !important;
  }

  .policy-modal__pdfs {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .policy-modal__pdf {
    min-height: 72px !important;
    display: grid !important;
    grid-template-columns: 28px 1fr !important;
    justify-content: initial !important;
    text-align: left !important;
  }

  .policy-modal__accept {
    margin-top: 14px !important;
  }
}
