/* Route-safe index header sizing for the Synesthetic Flavor shared shell. */
body[data-header-variant="home"] {
  --arotec-home-frame: min(1248px, calc(80vw - 57.6px));
}

body[data-header-variant="home"] #site-shell {
  --arotec-utility-height: 30.6px;
  --arotec-main-height: 80px;
  --arotec-brand-width: 106px;
  --arotec-brand-height: 80px;
  --arotec-logo-width: 99px;
  --arotec-logo-height: 61px;
  --arotec-main-font-size: clamp(0.756rem, 0.864vw, 1.044rem);
  --arotec-utility-font-size: clamp(0.66rem, 0.72vw, 0.864rem);
  --arotec-main-gap: clamp(18px, 1.26vw, 24px);
  --arotec-utility-gap: clamp(19px, 1.32vw, 25px);
}

body[data-header-variant="home"] #site-shell .header-utility-inner {
  width: var(--arotec-home-frame);
  gap: clamp(19px, 1.32vw, 25px);
}

body[data-header-variant="home"] #site-shell .utility-actions {
  gap: 12px;
}

body[data-header-variant="home"] #site-shell .header-inner {
  width: var(--arotec-home-frame);
  gap: 0;
}

body[data-header-variant="home"] #site-shell .desktop-nav {
  justify-content: flex-end;
}

body[data-header-variant="home"] #site-shell .header-actions {
  margin-left: clamp(18px, 1.26vw, 24px);
}

/* Match the index menu's floating glass effect and scroll-direction reveal. */
body[data-header-variant="home"] #site-shell > .site-header {
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
  will-change: transform;
}

body[data-header-variant="home"].home-header-scroll-active #site-shell > .site-header {
  position: fixed;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(17, 53, 104, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(17, 53, 104, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

body[data-header-variant="home"].home-header-scroll-active #site-shell .header-main {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(30, 12, 70, 0.14);
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
}

body[data-header-variant="home"].home-header-scroll-hidden #site-shell > .site-header {
  transform: translate3d(0, calc(-100% - 10px), 0);
}

/* Keep the first editorial line clear of the two-row shared home header.
   Grow the hero by the same amount so the expertise row stays fully visible. */
@media (min-width: 1241px) {
  body[data-header-variant="home"] .sf-hero {
    min-height: 682px;
  }

  body[data-header-variant="home"] .sf-hero__grid {
    min-height: 672px;
  }

  body[data-header-variant="home"] .sf-hero__copy {
    padding-top: 72px;
  }
}

/* Reuse the index-page hero typography for every principal title and lead.
   Explicit semantic classes keep card, diagram and utility labels unchanged. */
body[data-page="synesthetic-flavor"][data-header-variant="home"] .sf-page-heading {
  max-width: 820px;
  margin: 0;
  color: var(--sf-page-heading-color, #0b1b34);
  font-family: var(--font-en, "Noto Sans", "Noto Sans Thai", "Noto Sans TC", "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  font-size: clamp(1.3rem, 3.1vw, 3.4rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: .98;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .82), 0 24px 64px rgba(255, 255, 255, .48);
  text-transform: none;
  text-wrap: balance;
}

body[data-page="synesthetic-flavor"][data-header-variant="home"] .sf-page-heading em {
  color: inherit;
  font-style: normal;
  font-weight: inherit;
}

body[data-page="synesthetic-flavor"][data-header-variant="home"] .sf-page-subtitle {
  max-width: 690px;
  margin: clamp(18px, 2.2vw, 28px) 0 0;
  color: var(--sf-page-subtitle-color, rgba(12, 33, 61, .82));
  font-family: var(--font-en, "Noto Sans", "Noto Sans Thai", "Noto Sans TC", "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  font-size: clamp(1.03rem, 1.25vw, 1.24rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.62;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}

body[data-page="synesthetic-flavor"][data-header-variant="home"] .sf-final-cta {
  --sf-page-heading-color: #fff;
  --sf-page-subtitle-color: rgba(232, 247, 251, .82);
}

body[data-page="synesthetic-flavor"][data-header-variant="home"] .sf-final-cta .sf-page-heading,
body[data-page="synesthetic-flavor"][data-header-variant="home"] .sf-final-cta .sf-page-subtitle {
  text-shadow: none;
}

/* Applied Solutions remains the active dropdown, but this page does not show
   the decorative underline beneath its trigger. */
body[data-page="synesthetic-flavor"] #site-shell .desktop-nav .nav-dropdown-trigger::after {
  display: none;
}

@media (max-width: 900px) {
  body[data-page="synesthetic-flavor"][data-header-variant="home"] .sf-page-heading {
    max-width: 680px;
  }
}

body[data-header-variant="home"] #site-shell .language-select {
  width: 61.6px;
  padding-inline: 7px;
  font-size: 0.72rem;
}

body[data-header-variant="home"] #site-shell .utility-actions .contact-pill {
  padding-inline: 14px;
  font-size: 0.72rem;
  font-weight: 520;
}

body[data-header-variant="home"] #site-footer-shell,
body[data-header-variant="home"] #site-footer-shell .site-footer {
  font-family: "Noto Sans", "Noto Sans Thai", "Noto Sans TC", "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body[data-header-variant="home"] #site-footer-shell .circle-button {
  width: 26px;
  height: 26px;
  min-width: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(17, 53, 104, 0.3) !important;
  border-radius: 999px;
  color: #113568 !important;
  background: rgba(255, 255, 255, 0.46) !important;
  box-shadow: none !important;
}

body[data-header-variant="home"] #site-footer-shell .circle-button:hover,
body[data-header-variant="home"] #site-footer-shell .circle-button:focus-visible {
  border-color: rgba(11, 99, 199, 0.52) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-2px);
}

body[data-header-variant="home"] #site-footer-shell .circle-button .icon-svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1280px) {
  body[data-header-variant="home"] {
    --arotec-home-frame: min(944px, calc(80% - 38.4px));
  }

  body[data-header-variant="home"] #site-shell {
    --arotec-utility-height: 28.56px;
    --arotec-main-height: 71px;
    --arotec-brand-width: 90px;
    --arotec-brand-height: 71px;
    --arotec-logo-width: 87px;
    --arotec-logo-height: 54px;
    --arotec-main-font-size: 0.72rem;
    --arotec-utility-font-size: 0.624rem;
    --arotec-main-gap: 13px;
    --arotec-utility-gap: 12px;
  }
}

@media (max-width: 1060px) {
  body[data-header-variant="home"] {
    --arotec-home-frame: min(1180px, calc(100vw - 48px));
  }

  body[data-header-variant="home"] #site-footer-shell .circle-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  body[data-header-variant="home"] #site-footer-shell .circle-button .icon-svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 760px) {
  body[data-header-variant="home"] #site-shell {
    --arotec-main-height: 74px;
    --arotec-brand-width: 88px;
    --arotec-brand-height: 62px;
    --arotec-logo-width: 84px;
    --arotec-logo-height: 53px;
  }

  body[data-header-variant="home"].home-header-scroll-active #site-shell .header-inner {
    min-height: 68px;
  }
}

@media (max-width: 420px) {
  body[data-header-variant="home"] {
    --arotec-home-frame: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-header-variant="home"] #site-shell > .site-header {
    transition: none;
  }
}
/* Match the Taste hero to the shared utility-menu blue. */
body.sfv-page[data-header-variant="home"] #taste.sfv-hero {
  --sf-page-heading-color: #fff;
  --sf-page-subtitle-color: #fff;
  isolation: isolate;
  color: #fff;
  background: #061630;
}

body.sfv-page[data-header-variant="home"] #taste.sfv-hero :is(.sf-page-heading, .sf-page-subtitle),
body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__body,
body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-expertise > div {
  color: #fff;
  text-shadow: none;
}

body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-icon {
  border-color: rgba(255, 255, 255, .72);
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-expertise > div + div {
  border-left-color: rgba(255, 255, 255, .3);
}

/* The supplied artwork is a wide banner with intentional copy-safe space on
   the left. Let it span the full Hero on wide screens instead of cropping it
   into the former portrait slot. */
body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__copy {
  position: relative;
  z-index: 2;
}

body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__media picture,
body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__media img {
  object-fit: cover;
  object-position: 50% 50%;
  transform: none !important;
  translate: none !important;
  transition: none !important;
  animation: none !important;
}

@media (min-width: 1100px) and (max-width: 1400px) {
  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__media img {
    object-position: 58% 50%;
  }
}

/* On tablet and mobile, keep the full editorial copy readable, then present
   the banner as its own cinematic panel rather than forcing a severe crop. */
@media (max-width: 1099px) {
  body.sfv-page[data-header-variant="home"] #taste.sfv-hero {
    height: auto !important;
    min-height: 0;
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__grid {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding-top: clamp(32px, 5vw, 48px);
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__copy {
    grid-row: 1;
    max-width: 720px;
    padding-bottom: clamp(38px, 5vw, 54px);
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__media {
    position: relative;
    inset: auto;
    grid-row: 2;
    width: 100vw;
    height: clamp(300px, 50vw, 440px);
    margin: 0 calc(50% - 50vw);
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__media img {
    object-position: 68% 50%;
  }
}

@media (max-width: 560px) {
  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__media {
    height: clamp(260px, 66vw, 340px);
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__media img {
    object-position: 75% 50%;
  }
}

/* Keep the primary navigation on a solid white surface above the dark hero. */
body.sfv-page[data-header-variant="home"] #site-shell .header-main {
  border-bottom-color: rgba(50, 18, 115, .16);
  background: #fff !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Reference-aligned Taste hero copy composition. */
@media (min-width: 1100px) {
  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__grid {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin-inline: auto;
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__copy {
    position: absolute;
    top: clamp(38px, 3.1vw, 58px);
    left: max(48px, 9.75vw);
    width: min(48vw, 760px);
    max-width: none;
    align-self: auto;
    padding: 0;
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__copy h1#sfv-hero-title {
    width: auto;
    max-width: 760px;
    white-space: normal !important;
    text-wrap: balance !important;
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__lead {
    max-width: 750px;
    margin-top: clamp(24px, 2.2vw, 34px);
    margin-bottom: 0;
    font-size: clamp(18px, 1.25vw, 24px) !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__body {
    max-width: 750px;
    margin-top: 0;
    font-size: clamp(18px, 1.25vw, 24px) !important;
    line-height: 1.45 !important;
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-expertise {
    width: min(620px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(54px, 4.4vw, 72px);
    margin-left: 0;
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-expertise > div {
    min-height: 112px;
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-icon {
    width: 78px;
    height: 78px;
    font-size: 32px;
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-expertise strong {
    font-size: 16px;
  }
}

@media (max-width: 1099px) {
  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__copy h1#sfv-hero-title {
    white-space: normal !important;
    text-wrap: balance !important;
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__lead {
    margin-bottom: 0;
  }

  body.sfv-page[data-header-variant="home"] #taste.sfv-hero .sfv-hero__body {
    margin-top: 0;
  }
}

body.sfv-page[data-header-variant="home"]
  #site-shell .header-main .desktop-nav .nav-link,
body.sfv-page[data-header-variant="home"]
  #site-shell .header-main .header-actions .circle-button {
  color: #321273 !important;
  text-shadow: none !important;
}

body.sfv-page[data-header-variant="home"]
  #site-shell .header-main .header-actions .circle-button {
  border-color: rgba(50, 18, 115, .28) !important;
  background: transparent !important;
}

body.sfv-page[data-header-variant="home"]
  #site-shell .header-main .brand-logo {
  filter: none !important;
}

/* Cultural Memory: contained editorial split inspired by the supplied
   image-left / story-right reference while preserving the site type system. */
html body.sfv-page[data-page="synesthetic-flavor"] #culture.sfv-culture {
  --sf-page-heading-color: #0b1b34;
  --sf-page-subtitle-color: #183b61;
  background: #fff;
}

html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-culture__button {
  min-height: 32px;
  width: max-content;
  margin-top: clamp(16px, 1.4vw, 20px);
  padding: 8px 18px;
  border-color: #321273;
  color: #fff;
  background: #321273;
  box-shadow: none;
}

html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-culture__button:hover,
html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-culture__button:focus-visible {
  border-color: #0b63c7;
  background: #0b63c7;
}

html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-culture__media picture,
html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-culture__media img {
  width: 100%;
  height: 100%;
}

html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-culture__media img {
  position: static;
  max-width: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  transform: none;
}

@media (min-width: 821px) {
  html body.sfv-page[data-page="synesthetic-flavor"] #culture.sfv-culture {
    height: clamp(540px, 54vw, 780px) !important;
    min-height: 540px !important;
  }

  html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-culture__grid {
    width: min(1240px, calc(100% - clamp(56px, 9.8vw, 160px)));
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
    grid-template-rows: auto;
    gap: clamp(36px, 4vw, 64px);
    align-content: center;
    align-items: stretch;
    padding-block: clamp(42px, 4vw, 62px);
  }

  html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-culture__media {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    margin: 0;
  }

  html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-copy {
    min-width: 0;
    min-height: 100%;
    display: flex;
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    align-self: stretch !important;
    padding: 0 !important;
  }

  html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-culture__body {
    margin-top: auto;
    padding-top: clamp(24px, 3.2vw, 48px);
  }
}

@media (max-width: 820px) {
  html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-culture__grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 34px;
    padding-block: 48px;
  }

  html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-copy {
    padding-inline: 0;
  }

  html body.sfv-page[data-page="synesthetic-flavor"] #culture .sfv-culture__media {
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 5;
    margin: 0;
  }
}
