/*
 * Yifeng Construction Website UI System
 * Version 1.5 - rebuilt from the approved visual specification.
 * Native CSS, fixed light brand theme, no decorative textures.
 */

:root {
  /* Primitive brand tokens, sampled from the complete VI PDF. */
  --yf-brand: #775436;
  --yf-brand-deep: #5b4022;
  --yf-brand-light: #95754f;

  /* Semantic color tokens. */
  --yf-page: #f5f5f7;
  --yf-surface: #ffffff;
  --yf-surface-soft: #fafafa;
  --yf-ink: #1d1d1f;
  --yf-body: #424245;
  --yf-muted: #6e6e73;
  --yf-subtle: #737378;
  --yf-line: rgba(29, 29, 31, 0.1);
  --yf-line-strong: rgba(29, 29, 31, 0.18);
  --yf-dark: #171615;
  --yf-dark-soft: #211f1d;
  --yf-inverse: #ffffff;
  --yf-inverse-muted: rgba(255, 255, 255, 0.72);

  /* Layout and component tokens. */
  --yf-shell: min(1200px, calc(100vw - 80px));
  --yf-reading: 720px;
  --yf-header: 78px;
  --yf-section: clamp(84px, 8vw, 116px);
  --yf-heading-gap: clamp(44px, 4.4vw, 56px);
  --yf-button-height: 48px;
  --yf-radius: 2px;
  --yf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --yf-focus: 0 0 0 3px rgba(119, 84, 54, 0.28);

  --sans: "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC",
    "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--yf-header) + 20px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--yf-page);
  color: var(--yf-ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

main {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(119, 84, 54, 0.2);
}

.shell {
  width: var(--yf-shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: -80px;
  left: 20px;
  padding: 12px 18px;
  background: var(--yf-brand);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 18px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--yf-focus);
}

/* Header */

.scroll-marker {
  position: absolute;
  top: 80px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--yf-inverse);
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.is-scrolled,
.site-header:not(.is-over-banner) {
  border-bottom-color: var(--yf-line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 30px rgba(29, 29, 31, 0.05);
  color: var(--yf-ink);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  backdrop-filter: blur(20px) saturate(1.18);
}

.header__inner {
  display: grid;
  width: min(1440px, calc(100vw - 48px));
  height: var(--yf-header);
  grid-template-columns: 180px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 28px;
  margin-inline: auto;
}

.brand {
  display: flex;
  width: 166px;
  align-items: center;
}

.brand img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.site-header.is-scrolled .brand img,
.site-header:not(.is-over-banner) .brand img {
  filter: none;
}

.desktop-nav {
  display: flex;
  min-width: 0;
  align-items: stretch;
  justify-content: center;
  gap: clamp(24px, 2vw, 34px);
}

.desktop-nav > a,
.desktop-nav .nav-item > a {
  position: relative;
  display: flex;
  height: var(--yf-header);
  align-items: center;
  color: currentColor;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}

.desktop-nav > a::after,
.desktop-nav .nav-item > a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 0.2s ease,
    transform 0.2s var(--yf-ease);
}

.desktop-nav > a:hover::after,
.desktop-nav .nav-item:hover > a::after,
.desktop-nav > a:focus-visible::after,
.desktop-nav .nav-item:focus-within > a::after {
  opacity: 0.8;
  transform: scaleX(1);
}

.desktop-nav .is-active {
  font-weight: 650;
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  display: grid;
  min-width: 190px;
  padding: 10px 0;
  border: 1px solid var(--yf-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(29, 29, 31, 0.12);
  color: var(--yf-body);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s var(--yf-ease);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  padding: 11px 20px;
  font-size: 13px;
  line-height: 1.4;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: var(--yf-page);
  color: var(--yf-brand);
}

.header-phone {
  display: flex;
  min-width: 190px;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  color: currentColor;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-contact {
  position: relative;
}

.header-contact__panel {
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  width: 280px;
  padding: 10px;
  border: 1px solid var(--yf-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 46px rgba(29, 29, 31, 0.14);
  color: var(--yf-ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s var(--yf-ease);
}

.header-contact.is-open .header-contact__panel {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.header-contact__panel a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--yf-line);
}

.header-contact__panel a:last-child { border-bottom: 0; }
.header-contact__panel a:hover { background: var(--yf-page); }
.header-contact__panel span { color: var(--yf-muted); font-size: 12px; }
.header-contact__panel strong { font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .025em; }

.header-phone__icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  transition: filter 0.3s ease;
}

.site-header.is-scrolled .header-phone__icon,
.site-header:not(.is-over-banner) .header-phone__icon {
  filter: none;
}

.header-phone__copy {
  display: grid;
  gap: 2px;
}

.header-phone small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.site-header.is-scrolled .header-phone small,
.site-header:not(.is-over-banner) .header-phone small {
  color: var(--yf-muted);
}

.header-phone strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle i {
  display: block;
  width: 22px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.24s ease;
}

.menu-toggle[aria-expanded="true"] i:first-of-type {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] i:last-of-type {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--yf-header);
  right: 0;
  left: 0;
  display: none;
  height: var(--menu-height, calc(100dvh - var(--yf-header)));
  padding: 24px;
  overflow-y: auto;
  border-top: 1px solid var(--yf-line);
  background: #fff;
  color: var(--yf-ink);
}

.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  display: flex;
  min-height: 58px;
  align-items: center;
  border-bottom: 1px solid var(--yf-line);
  font-size: 18px;
  font-weight: 550;
}

.mobile-menu nav a[aria-current="page"] {
  color: var(--yf-brand);
}

.mobile-menu__foot {
  margin-top: auto;
  padding-top: 36px;
}

.mobile-menu__foot p {
  color: var(--yf-muted);
  font-size: 12px;
}

.mobile-menu__foot a {
  display: inline-block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 600;
}

.mobile-contact-list {
  display: grid;
  margin-top: 10px;
  border-top: 1px solid var(--yf-line);
}

.mobile-contact-list a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  border-bottom: 1px solid var(--yf-line);
  font-size: 14px;
}

.mobile-contact-list span { color: var(--yf-muted); }
.mobile-contact-list strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Buttons and text actions */

.button,
.hero__cta {
  display: inline-flex;
  min-height: var(--yf-button-height);
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 24px;
  border: 1px solid transparent;
  border-radius: var(--yf-radius);
  background: var(--yf-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s var(--yf-ease);
}

.button:hover,
.hero__cta:hover {
  background: var(--yf-brand-deep);
}

.button:active,
.hero__cta:active {
  transform: translateY(1px);
}

.button--ink {
  border-color: var(--yf-line-strong);
  background: #fff;
  color: var(--yf-ink);
}

.button--ink:hover {
  border-color: rgba(29, 29, 31, 0.32);
  background: var(--yf-page);
}

.button--gold {
  background: var(--yf-brand);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--yf-brand);
  font-size: 14px;
  font-weight: 600;
}

.text-link i {
  font-style: normal;
  transition: transform 0.2s var(--yf-ease);
}

.text-link:hover {
  color: var(--yf-brand-deep);
}

.text-link:hover i {
  transform: translateX(3px);
}

/* Hero */

.hero {
  position: relative;
  min-height: clamp(640px, 76dvh, 780px);
  overflow: hidden;
  isolation: isolate;
  background: var(--yf-dark);
  color: #fff;
}

.hero__media,
.hero__mesh {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -3;
  overflow: hidden;
  background: url("assets/hero-city-sunset.jpg") center 56% / cover no-repeat;
  animation: hero-media 1.2s var(--yf-ease) both;
}

.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.hero__mesh {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13, 12, 11, 0.68), rgba(13, 12, 11, 0.18) 62%, rgba(13, 12, 11, 0.04)),
    linear-gradient(180deg, rgba(13, 12, 11, 0.22), transparent 45%, rgba(13, 12, 11, 0.18));
}

.hero__inner {
  display: flex;
  min-height: clamp(640px, 76dvh, 780px);
  align-items: center;
  justify-content: center;
  padding-top: var(--yf-header);
}

.hero__copy {
  width: 100%;
  max-width: 820px;
  padding-block: 68px 54px;
  text-align: center;
  animation: hero-copy 0.8s 0.1s var(--yf-ease) both;
}

.hero h1 {
  font-size: clamp(44px, 4.7vw, 64px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.hero__lead {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 550;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.hero__cta {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(15, 14, 13, 0.36);
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero__cta:hover {
  border-color: #fff;
  background: #fff;
  color: var(--yf-ink);
}

@keyframes hero-media {
  from {
    opacity: 0.78;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-copy {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Page hero and breadcrumb */

.page-hero {
  position: relative;
  display: flex;
  min-height: 460px;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--yf-dark);
  color: #fff;
}

.page-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-position: center;
  background-size: cover;
  animation: hero-media 1.1s var(--yf-ease) both;
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 14, 13, 0.7), rgba(15, 14, 13, 0.22) 66%, rgba(15, 14, 13, 0.08)),
    linear-gradient(180deg, rgba(15, 14, 13, 0.2), transparent 48%, rgba(15, 14, 13, 0.24));
  content: "";
}

.page-hero--about .page-hero__media,
.page-hero--projects .page-hero__media {
  background-image: url("assets/business-construction.png");
  background-position: center 45%;
}

.page-hero--business .page-hero__media {
  background-image: url("assets/business-mining.png");
  background-position: center 54%;
}

.page-hero--qualifications .page-hero__media {
  background-image: url("assets/hero-architecture.png");
  background-position: center 42%;
}

.page-hero--news .page-hero__media {
  background-image: url("assets/business-concrete.png");
  background-position: center 50%;
}

.page-hero--contact .page-hero__media {
  background-image: url("assets/hero-city-aerial-yifeng.jpg");
  background-position: center 55%;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 150px 64px;
  animation: hero-copy 0.8s 0.08s var(--yf-ease) both;
}

.page-hero .eyebrow {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .eyebrow b {
  display: none;
}

.page-hero h1 {
  font-size: clamp(40px, 4.2vw, 54px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.page-hero__inner > p:last-child {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.75;
}

.breadcrumb {
  height: 52px;
  border-bottom: 1px solid var(--yf-line);
  background: #fff;
}

.breadcrumb .shell {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 10px;
  color: var(--yf-subtle);
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--yf-brand);
}

.breadcrumb strong {
  color: var(--yf-body);
  font-weight: 500;
}

.article-page > .breadcrumb {
  margin-top: var(--yf-header);
}

/* Shared section typography */

.section,
.inner-section {
  padding-block: var(--yf-section);
  background: var(--yf-surface);
}

.inner-section--paper,
.business-intro,
.honor-section,
.projects,
.news-page {
  background: var(--yf-page);
}

.inner-section--dark {
  background: var(--yf-page);
  color: var(--yf-ink);
}

.section-heading,
.inner-heading,
.profile-section__heading {
  margin-bottom: var(--yf-heading-gap);
}

.section-heading--with-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading--left {
  margin-bottom: 28px;
}

.section-heading h2,
.inner-heading h2,
.profile-section__heading h2,
.business-detail__copy h2,
.contact-page h2 {
  color: var(--yf-ink);
  font-size: clamp(30px, 3vw, 36px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.eyebrow,
.profile-section__heading span {
  display: block;
  margin-bottom: 12px;
  color: var(--yf-brand);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.35;
}

.section-heading__summary,
.inner-heading--split > p {
  max-width: 650px;
  margin-top: 16px;
  color: var(--yf-muted);
  font-size: 14px;
  line-height: 1.8;
}

.inner-heading--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.inner-lead,
.lead {
  color: var(--yf-body);
  font-size: 17px;
  line-height: 1.8;
}

/* Inner pages use a quieter title treatment; homepage section titles remain consistent. */
.inner-heading .eyebrow {
  display: none;
}

/* Core metrics */

.wf-stats {
  border-bottom: 1px solid var(--yf-line);
  background: #fff;
}

.wf-stats .shell {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.wf-stats .shell > div {
  display: flex;
  min-height: 144px;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 38px 24px;
  border-right: 1px solid var(--yf-line);
}

.wf-stats .shell > div:first-child {
  border-left: 1px solid var(--yf-line);
}

.wf-stats strong {
  color: var(--yf-ink);
  font-size: clamp(38px, 4.2vw, 58px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.wf-stats sup {
  margin-left: 2px;
  color: var(--yf-brand);
  font-size: 0.4em;
  vertical-align: top;
}

.wf-stats small {
  color: var(--yf-muted);
  font-size: 13px;
  line-height: 1.5;
}

.wf-stats--inner {
  border-top: 1px solid var(--yf-line);
}

/* Qualifications */

.qualifications {
  background: var(--yf-page);
}

.qualifications.section {
  padding-block: calc(var(--yf-section) + 12px);
}

.qualification-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--yf-line-strong);
  border-left: 1px solid var(--yf-line-strong);
}

.qualification-card {
  position: relative;
  display: flex;
  min-height: 196px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px;
  border: 0;
  border-right: 1px solid var(--yf-line-strong);
  border-bottom: 1px solid var(--yf-line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--yf-ink);
  text-align: left;
  transition:
    background 0.22s ease,
    color 0.22s ease;
}

.qualification-card:hover,
.qualification-card:focus-visible {
  background: var(--yf-brand);
  color: #fff;
}

.qualification-card__type {
  color: var(--yf-muted);
  font-size: 11px;
  line-height: 1.5;
  transition: color 0.22s ease;
}

.qualification-card:hover .qualification-card__type,
.qualification-card:focus-visible .qualification-card__type {
  color: rgba(255, 255, 255, 0.72);
}

.qualification-card strong {
  max-width: 170px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.qualification-card i {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-size: 16px;
  font-style: normal;
}

.qualification-card__no {
  position: absolute;
  top: 26px;
  right: 24px;
  color: var(--yf-subtle);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.qualification-card--summary {
  background: var(--yf-dark);
  color: #fff;
}

.qualification-card--summary .qualification-card__type,
.qualification-card--summary p {
  color: rgba(255, 255, 255, 0.64);
}

.qualification-card--summary strong {
  font-size: 44px;
  letter-spacing: -0.04em;
}

.qualification-card--summary p {
  font-size: 12px;
}

.qualification-card--summary i {
  position: static;
  margin-top: 18px;
  font-size: 12px;
}

/* Home qualifications overview */

.home-qualifications {
  display: flex;
  flex-direction: column;
  gap: clamp(42px, 4.8vw, 60px);
}

.home-qualifications__content {
  min-width: 0;
  text-align: center;
}

.home-qualifications__heading {
  max-width: none;
  margin: 0 0 var(--yf-heading-gap);
  text-align: left;
}

.home-qualifications__intro {
  max-width: 980px;
  margin-inline: auto;
  color: var(--yf-body);
  font-size: 18px;
  line-height: 1.85;
  text-align: center;
}

.home-qualification-list {
  display: grid;
  width: min(100%, 940px);
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 28px 0;
  margin-top: clamp(38px, 3.6vw, 48px);
  margin-inline: auto;
}

.home-qualification-list li {
  position: relative;
  display: flex;
  min-height: 76px;
  grid-column: span 2;
  align-items: center;
  justify-content: center;
  padding-inline: 22px;
  opacity: 0;
  text-align: center;
  transform: translateY(10px);
  transition:
    opacity 0.5s var(--yf-ease),
    transform 0.5s var(--yf-ease);
}

.home-qualifications__content.is-visible .home-qualification-list li {
  opacity: 1;
  transform: none;
}

.home-qualifications__content.is-visible .home-qualification-list li:nth-child(2) {
  transition-delay: 0.04s;
}

.home-qualifications__content.is-visible .home-qualification-list li:nth-child(3) {
  transition-delay: 0.08s;
}

.home-qualifications__content.is-visible .home-qualification-list li:nth-child(4) {
  transition-delay: 0.12s;
}

.home-qualifications__content.is-visible .home-qualification-list li:nth-child(5) {
  transition-delay: 0.16s;
}

.home-qualifications__content.is-visible .home-qualification-list li:nth-child(6) {
  transition-delay: 0.2s;
}

.home-qualifications__content.is-visible .home-qualification-list li:nth-child(7) {
  transition-delay: 0.24s;
}

.home-qualification-list li:nth-child(5) {
  grid-column: 2 / span 2;
}

.home-qualification-list li::before,
.home-qualification-list li::after {
  position: absolute;
  top: 50%;
  width: 27px;
  height: 64px;
  background: url("assets/qualifications/laurel-branch.png") center / contain no-repeat;
  content: "";
  opacity: 0.92;
  transform: translateY(-50%);
}

.home-qualification-list li::before {
  left: 0;
}

.home-qualification-list li::after {
  right: 0;
  transform: translateY(-50%) scaleX(-1);
}

.home-qualification-list strong {
  color: var(--yf-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

.home-qualifications__button {
  margin: 0;
  border-color: var(--yf-brand);
  background: transparent;
  color: var(--yf-brand);
}

.home-qualifications__button:hover {
  border-color: var(--yf-brand);
  background: var(--yf-brand);
  color: #fff;
}

.home-qualifications__visual {
  width: min(100%, 1100px);
  min-width: 0;
  margin-inline: auto;
}

.home-qualifications__footer {
  display: flex;
  justify-content: center;
}

.certificate-carousel__viewport {
  overflow-x: auto;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 82%, transparent 100%);
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  user-select: none;
}

.certificate-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.certificate-carousel__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.certificate-carousel__track {
  position: relative;
  display: flex;
  width: max-content;
  align-items: center;
  gap: 16px;
  padding: 24px var(--certificate-edge, 70px) 28px;
}

.certificate-slide {
  flex: 0 0 clamp(220px, 21vw, 258px);
  height: clamp(320px, 30vw, 370px);
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--yf-line);
  background: var(--yf-surface);
  box-shadow: 0 12px 32px rgba(29, 29, 31, 0.06);
  scroll-snap-align: center;
}

.certificate-slide--landscape {
  flex-basis: clamp(330px, 34vw, 420px);
}

.certificate-slide img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  pointer-events: none;
}

.certificate-carousel__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0;
  color: var(--yf-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.certificate-carousel__meta b {
  color: var(--yf-brand);
  font-weight: 650;
}

/* Home about */

.about {
  overflow: hidden;
}

.about__body {
  display: grid;
  min-height: 430px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(44px, 6vw, 76px);
  margin-top: clamp(42px, 4.4vw, 56px);
}

.about__copy {
  position: relative;
  z-index: 2;
}

.about__copy h3 {
  margin-bottom: 20px;
  color: var(--yf-ink);
  font-size: clamp(22px, 1.8vw, 24px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.about__copy > p {
  max-width: 620px;
  color: var(--yf-muted);
  font-size: 15px;
  line-height: 1.9;
}

.about__copy > p + p {
  margin-top: 18px;
}

.about__copy .lead {
  color: var(--yf-body);
  font-size: 18px;
  line-height: 1.85;
}

.about__button {
  margin-top: 28px;
  border-color: var(--yf-brand);
  background: transparent;
  color: var(--yf-brand);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.about__button:hover {
  border-color: var(--yf-brand);
  background: var(--yf-brand);
  color: #fff;
}

.about__visual {
  position: relative;
  width: 100%;
  min-height: 430px;
}

.about__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.about__image::before {
  display: none;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.018);
  transition: transform 0.9s var(--yf-ease);
}

.about__visual.is-visible .about__image img {
  transform: none;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about__stats > div {
  position: relative;
  display: flex;
  min-height: 136px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 13px;
  padding: 26px 28px;
  opacity: 0;
  text-align: left;
  transform: translateY(12px);
  transition:
    background 0.24s ease,
    opacity 0.5s var(--yf-ease),
    transform 0.5s var(--yf-ease);
}

.about__stats.is-visible > div {
  opacity: 1;
  transform: none;
}

.about__stats.is-visible > div:nth-child(2) {
  transition-delay: 0.05s;
}

.about__stats.is-visible > div:nth-child(3) {
  transition-delay: 0.1s;
}

.about__stats.is-visible > div:nth-child(4) {
  transition-delay: 0.15s;
}

.about__stats > div + div::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 1px;
  background: var(--yf-line-strong);
  content: "";
}

.about__stats strong {
  display: inline-flex;
  color: var(--yf-brand-deep);
  font-size: clamp(38px, 3.5vw, 50px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.about__suffix {
  margin-top: 3px;
  margin-left: 6px;
  color: var(--yf-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.about__stats small {
  color: var(--yf-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

/* Home business */

.business {
  background: var(--yf-surface);
}

.business-accordion {
  display: flex;
  min-height: 590px;
  gap: 12px;
}

.business-panel {
  position: relative;
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
  background: var(--yf-dark);
  contain: layout paint;
  transition: flex-grow 0.56s var(--yf-ease);
}

.business-panel.is-active {
  flex-grow: 3.15;
}

.business-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-panel::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 18, 17, 0) 40%,
    rgba(19, 18, 17, 0.18) 64%,
    rgba(19, 18, 17, 0.9) 100%
  );
  content: "";
  pointer-events: none;
  transition: background 0.42s var(--yf-ease);
}

.business-panel.is-active::after {
  background: linear-gradient(
    180deg,
    rgba(19, 18, 17, 0) 20%,
    rgba(19, 18, 17, 0.22) 48%,
    rgba(19, 18, 17, 0.94) 100%
  );
}

.business-panel__content {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 132px;
  padding: 25px 26px 24px;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 18px rgba(19, 18, 17, 0.22);
  transition: min-height 0.46s var(--yf-ease);
}

.business-panel.is-active .business-panel__content {
  min-height: 300px;
}

.business-panel__content h3 {
  margin: 0;
}

.business-panel__content h3 button {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  text-align: left;
  white-space: nowrap;
}

.business-panel.is-active .business-panel__content h3 button {
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.business-panel__content h3 button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.9);
  outline-offset: 5px;
}

.business-panel__subtitle {
  overflow: hidden;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.75;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-panel.is-active .business-panel__subtitle {
  font-size: 18px;
  line-height: 1.75;
  text-overflow: clip;
  white-space: normal;
}

.business-panel__body {
  overflow: hidden;
  max-height: 0;
  max-width: 650px;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    max-height 0.42s var(--yf-ease),
    margin-top 0.42s var(--yf-ease),
    opacity 0.26s ease 0s,
    transform 0.42s var(--yf-ease) 0s,
    visibility 0s linear 0.42s;
}

.business-panel.is-active .business-panel__body {
  max-height: 320px;
  margin-top: 20px;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.2s;
}

.business-panel__body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.9;
  text-wrap: pretty;
}

.business-panel__body p + p {
  margin-top: 14px;
}

.business-panel__body a {
  display: inline-flex;
  gap: 9px;
  margin-top: 16px;
  align-items: center;
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  font-weight: 600;
}

.business-panel__body a span {
  transition: transform 0.2s var(--yf-ease);
}

.business-panel__body a:hover span,
.business-panel__body a:focus-visible span {
  transform: translateX(3px);
}

/* Home projects */

.project-list {
  border-top: 1px solid var(--yf-line-strong);
}

.project-row {
  display: grid;
  min-height: 142px;
  grid-template-columns: 180px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 34px;
  padding-block: 20px;
  border-bottom: 1px solid var(--yf-line);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.project-row:hover {
  color: var(--yf-brand);
}

.project-row__image {
  height: 100px;
  overflow: hidden;
}

.project-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--yf-ease);
}

.project-row:hover img {
  transform: scale(1.03);
}

.project-row__copy span {
  color: var(--yf-muted);
  font-size: 12px;
}

.project-row__copy h3 {
  margin-top: 9px;
  color: var(--yf-ink);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.project-row > i {
  font-size: 18px;
  font-style: normal;
  transition:
    color 0.2s var(--yf-ease),
    transform 0.2s var(--yf-ease);
}

.project-row:hover > i,
.project-row:focus-visible > i {
  color: var(--yf-brand);
  transform: translateX(3px);
}

/* Home news */

.news {
  background: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
}

.news-feature {
  display: grid;
  min-height: 390px;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--yf-line);
  background: var(--yf-surface);
}

.news-feature__visual {
  min-height: 320px;
  overflow: hidden;
  background:
    linear-gradient(rgba(15, 14, 13, 0.08), rgba(15, 14, 13, 0.08)),
    url("assets/business-construction.png") center / cover no-repeat;
}

.news-feature__visual > * {
  display: none;
}

.news-feature__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px;
}

.news-meta,
.news-date {
  color: var(--yf-brand);
  font-size: 11px;
  font-weight: 600;
}

.news-date {
  margin-top: 10px;
  color: var(--yf-subtle);
  font-variant-numeric: tabular-nums;
}

.news-feature__copy h3 {
  margin-top: 24px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.news-feature__copy > p:last-of-type {
  margin-top: 16px;
  color: var(--yf-muted);
  font-size: 13px;
  line-height: 1.8;
}

.news-feature__copy > a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  color: var(--yf-ink);
  font-size: 18px;
  line-height: 1;
  transition:
    color 0.2s var(--yf-ease),
    transform 0.2s var(--yf-ease);
}

.news-feature__copy > a:hover {
  color: var(--yf-brand);
  transform: translateX(3px);
}

.news-list {
  border-top: 1px solid var(--yf-line-strong);
}

.news-item {
  display: grid;
  min-height: 128px;
  grid-template-columns: 108px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 18px;
  padding-block: 16px;
  border-bottom: 1px solid var(--yf-line);
}

.news-item__image {
  height: 76px;
  overflow: hidden;
  background: var(--yf-page);
}

.news-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--yf-ease);
}

.news-item__copy {
  min-width: 0;
}

.news-item p {
  color: var(--yf-muted);
  font-size: 11px;
  line-height: 1.5;
}

.news-item h3 {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.news-item i {
  font-style: normal;
  transition: transform 0.2s var(--yf-ease);
}

.news-item:hover {
  color: var(--yf-brand);
}

.news-item:hover .news-item__image img {
  transform: scale(1.03);
}

.news-item:hover i {
  transform: translateX(3px);
}

/* About page */

.profile-section {
  background: #fff;
}

.profile-section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--yf-line-strong);
}

.profile-section__heading span {
  margin: 0;
}

.profile-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.profile-copy h3 {
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.profile-copy__body {
  max-width: var(--yf-reading);
  margin-top: 32px;
  color: var(--yf-body);
  font-size: 15px;
  line-height: 1.95;
}

.profile-copy__body p + p {
  margin-top: 22px;
}

.profile-gallery {
  position: sticky;
  top: calc(var(--yf-header) + 40px);
  display: grid;
  height: 520px;
  min-height: 520px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-gallery figure {
  min-width: 0;
  overflow: hidden;
  background: var(--yf-surface-soft);
}

.profile-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--yf-ease);
}

.profile-gallery figure:hover img {
  transform: scale(1.025);
}

.history-story {
  display: block;
}

.history-chapter__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--yf-ease);
}

.history-timeline {
  position: relative;
  --history-axis: 56%;
  --history-progress: 0.25;
}

.history-timeline::before,
.history-timeline::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--history-axis);
  width: 1px;
  content: "";
}

.history-timeline::before {
  background: var(--yf-line-strong);
}

.history-timeline::after {
  background: var(--yf-brand);
  transform: scaleY(var(--history-progress));
  transform-origin: top;
  transition: transform 0.55s var(--yf-ease);
}

.history-chapter {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: var(--history-axis) minmax(0, 1fr);
  grid-template-areas:
    "media time"
    "media copy";
  gap: 0;
  align-items: center;
  padding: 42px 0;
}

.history-chapter::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--history-axis);
  width: 18px;
  height: 1px;
  background: var(--yf-line-strong);
  content: "";
  transition:
    width 0.4s var(--yf-ease),
    background-color 0.4s ease;
}

.history-chapter.is-active::before {
  width: 26px;
  background: var(--yf-brand);
}

.history-chapter:focus-visible {
  outline: 2px solid var(--yf-brand);
  outline-offset: 8px;
}

.history-chapter time {
  grid-area: time;
  display: block;
  align-self: end;
  padding: 0 0 12px 40px;
  color: var(--yf-subtle);
  font-size: clamp(30px, 3.1vw, 42px);
  font-variant-numeric: tabular-nums;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.15;
  transition: color 0.4s ease;
}

.history-chapter.is-active time {
  color: var(--yf-brand);
}

.history-chapter > div {
  grid-area: copy;
  align-self: start;
  padding-left: 40px;
}

.history-chapter h3 {
  color: var(--yf-ink);
  font-size: 22px;
  font-weight: 600;
}

.history-chapter p {
  max-width: 520px;
  margin-top: 14px;
  color: var(--yf-muted);
  font-size: 15px;
  line-height: 1.85;
}

.history-chapter__media {
  grid-area: media;
  display: block;
  overflow: hidden;
  margin-right: clamp(56px, 7vw, 96px);
  aspect-ratio: 3 / 2;
  background: #e9e7e4;
}

@media (hover: hover) and (pointer: fine) {
  .history-chapter:hover .history-chapter__media img {
    transform: scale(1.018);
  }
}

.culture-section {
  background: #fff;
}

.culture-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  border-top: 1px solid var(--yf-line-strong);
  border-left: 1px solid var(--yf-line-strong);
}

.culture-card {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  overflow: hidden;
  padding: 34px;
  border-right: 1px solid var(--yf-line-strong);
  border-bottom: 1px solid var(--yf-line-strong);
  background: #fff;
  color: var(--yf-ink);
  outline: none;
}

.culture-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--yf-brand);
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.46s var(--yf-ease);
}

.culture-card:focus-visible {
  box-shadow: inset 0 0 0 2px var(--yf-brand-deep);
}

.culture-card:focus-visible::before,
.culture-card:active::before {
  transform: scaleY(1);
}

.culture-card > span {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--yf-subtle);
  font-size: 12px;
  transition: color 0.34s ease;
}

.culture-card:focus-visible > span,
.culture-card:active > span {
  color: rgba(255, 255, 255, 0.58);
}

.culture-card small {
  color: var(--yf-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  transition: color 0.34s ease;
}

.culture-card:focus-visible small,
.culture-card:active small {
  color: rgba(255, 255, 255, 0.62);
}

.culture-card h3 {
  margin-top: 84px;
  color: var(--yf-ink);
  font-size: 24px;
  font-weight: 620;
  transition: color 0.34s ease;
}

.culture-card p {
  margin-top: 18px;
  color: var(--yf-muted);
  font-size: 16px;
  line-height: 1.8;
  transition: color 0.34s ease;
}

.culture-card:focus-visible h3,
.culture-card:active h3 {
  color: #fff;
}

.culture-card:focus-visible p,
.culture-card:active p {
  color: rgba(255, 255, 255, 0.82);
}

.team-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.team-copy > p {
  max-width: 560px;
  color: var(--yf-muted);
  font-size: 14px;
  line-height: 1.9;
}

.team-copy > p + p {
  margin-top: 18px;
}

.team-copy .inner-lead {
  color: var(--yf-body);
  font-size: 17px;
}

.org-chart {
  padding: 48px 30px 42px;
  border: 1px solid var(--yf-line);
  background: #fff;
}

.org-chart__top {
  width: max-content;
  min-width: 170px;
  margin-inline: auto;
  padding: 16px 24px;
  background: var(--yf-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.org-chart__line {
  width: 1px;
  height: 44px;
  margin-inline: auto;
  background: var(--yf-line-strong);
}

.org-chart__departments {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--yf-line-strong);
}

.org-chart__departments span {
  position: relative;
  padding: 30px 5px 16px;
  color: var(--yf-body);
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
  text-align: center;
}

.org-chart__departments span::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 18px;
  background: var(--yf-line-strong);
  content: "";
}

.org-chart small {
  display: block;
  margin-top: 30px;
  color: var(--yf-subtle);
  font-size: 10px;
  text-align: center;
}

/* Business page */

.business-intro {
  padding-block: clamp(60px, 6vw, 82px);
}

.business-intro .inner-heading {
  margin-bottom: 0;
}

.business-detail {
  display: grid;
  min-height: 580px;
  grid-template-columns: 1.1fr 0.9fr;
  background: #fff;
}

.business-detail--reverse {
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--yf-page);
}

.business-detail--reverse .business-detail__visual {
  grid-column: 2;
}

.business-detail--reverse .business-detail__copy {
  grid-row: 1;
  grid-column: 1;
}

.business-detail__visual {
  min-height: 580px;
  overflow: hidden;
}

.business-detail__visual img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
  transition: transform 0.6s var(--yf-ease);
}

.business-detail:hover .business-detail__visual img {
  transform: scale(1.02);
}

.business-detail__copy {
  position: relative;
  display: flex;
  max-width: 680px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 104px);
}

.business-detail__no {
  position: absolute;
  top: 48px;
  right: 48px;
  color: var(--yf-subtle);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.business-detail__copy .eyebrow {
  margin-bottom: 14px;
}

.business-detail__copy > p:not(.eyebrow) {
  margin-top: 22px;
  color: var(--yf-muted);
  font-size: 14px;
  line-height: 1.9;
}

.business-detail__copy .inner-lead {
  color: var(--yf-body);
  font-size: 17px;
}

/* Projects page */

.filter-bar {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 26px;
  margin-bottom: 48px;
  overflow-x: auto;
  border-bottom: 1px solid var(--yf-line);
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-bar button {
  position: relative;
  min-width: max-content;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--yf-muted);
  font-size: 13px;
  white-space: nowrap;
}

.filter-bar button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--yf-brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 0.2s ease,
    transform 0.2s var(--yf-ease);
}

.filter-bar button:hover,
.filter-bar button.is-active {
  color: var(--yf-ink);
}

.filter-bar button:hover::after,
.filter-bar button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 24px;
}

.project-card {
  min-width: 0;
}

.project-card:first-child {
  grid-column: 1 / -1;
}

.project-card > div {
  overflow: hidden;
  background: #e8e8ea;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--yf-ease);
}

.project-card:first-child img {
  aspect-ratio: 2.1 / 1;
}

.project-card:hover img {
  transform: scale(1.025);
}

.project-card > div > span {
  display: block;
  padding: 10px 0 0;
  background: var(--yf-page);
  color: var(--yf-subtle);
  font-size: 11px;
}

.project-card > p {
  margin-top: 18px;
  color: var(--yf-brand);
  font-size: 12px;
  font-weight: 600;
}

.project-card h3 {
  margin-top: 8px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.4;
}

.project-card small {
  display: block;
  margin-top: 10px;
  color: var(--yf-muted);
  font-size: 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}

.pagination button {
  min-width: 44px;
  height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--yf-line-strong);
  border-radius: var(--yf-radius);
  background: #fff;
  color: var(--yf-body);
  font-size: 12px;
}

.pagination button:hover {
  border-color: var(--yf-brand);
  color: var(--yf-brand);
}

.pagination button.is-active {
  border-color: var(--yf-brand);
  background: var(--yf-brand);
  color: #fff;
}

/* Qualifications page */

.qualifications-page {
  background: var(--yf-page);
}

.qualification-system {
  background: #fff;
}

.grade-a-overview {
  background: var(--yf-page);
}

.grade-a-overview .home-qualifications__content {
  text-align: center;
}

.grade-a-overview .inner-heading {
  margin-bottom: var(--yf-heading-gap);
}

.qualification-system .inner-heading__summary {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--yf-muted);
  font-size: 16px;
  line-height: 1.75;
  text-wrap: balance;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.03), 0 12px 36px rgba(29, 29, 31, 0.045);
}

.system-card {
  min-height: 0;
  padding: clamp(30px, 3.4vw, 44px);
  background: #fff;
  transition: background 180ms var(--yf-ease);
}

.system-card + .system-card {
  border-left: 1px solid var(--yf-line);
}

.system-card:hover {
  background: #fbfbfd;
}

.system-card svg {
  width: 52px;
  height: 52px;
  color: var(--yf-brand);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-card h3 {
  margin-top: 30px;
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.system-card p {
  max-width: 30em;
  margin-top: 16px;
  color: var(--yf-muted);
  font-size: 14px;
  line-height: 1.85;
  text-wrap: pretty;
}

.credential-section {
  background: var(--yf-page);
}

#system,
#grade1,
#core,
#honor {
  scroll-margin-top: 88px;
}

.qualifications-page {
  padding-bottom: clamp(80px, 8vw, 112px);
}

.honor-section {
  padding-top: 0;
}

.credential-directory {
  overflow: hidden;
  border: 1px solid var(--yf-line);
  border-radius: var(--yf-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.03), 0 12px 36px rgba(29, 29, 31, 0.045);
}

.qualification-catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.qualification-catalog__group,
.honor-group {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(30px, 4vw, 48px);
}

.qualification-catalog__group + .qualification-catalog__group,
.honor-group + .honor-group {
  border-top: 1px solid var(--yf-line);
}

.qualification-catalog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.qualification-catalog__header p {
  color: var(--yf-brand);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.qualification-catalog__header h3 {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.qualification-catalog__header > span {
  flex: 0 0 auto;
  color: var(--yf-subtle);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.qualification-catalog__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.qualification-catalog__list button {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--yf-line);
  background: transparent;
  color: var(--yf-body);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  transition: color 180ms var(--yf-ease), background 180ms var(--yf-ease);
}

.qualification-catalog__list button:hover,
.qualification-catalog__list button:focus-visible {
  color: var(--yf-brand-deep);
}

.qualification-catalog__list button:focus-visible {
  outline: 2px solid rgba(119, 84, 54, 0.32);
  outline-offset: 3px;
}

.qualification-catalog__list i {
  color: var(--yf-brand);
  font-size: 14px;
  font-style: normal;
  opacity: 0.66;
  transition: opacity 180ms var(--yf-ease), transform 180ms var(--yf-ease);
}

.qualification-catalog__list button:hover i,
.qualification-catalog__list button:focus-visible i {
  opacity: 1;
  transform: translateX(3px);
}

.honor-directory {
  display: grid;
  grid-template-columns: 1fr;
}

.honor-group__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.honor-group__list button {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--yf-line);
  background: transparent;
  color: var(--yf-body);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  transition: color 180ms var(--yf-ease);
}

.honor-group__list button:hover,
.honor-group__list button:focus-visible {
  color: var(--yf-brand-deep);
}

.honor-group__list button:focus-visible {
  outline: 2px solid rgba(119, 84, 54, 0.32);
  outline-offset: 3px;
}

.honor-group__list time {
  color: var(--yf-subtle);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.honor-group__list i {
  color: var(--yf-brand);
  font-size: 14px;
  font-style: normal;
  opacity: 0.66;
  transition: opacity 180ms var(--yf-ease), transform 180ms var(--yf-ease);
}

.honor-group__list button:hover i,
.honor-group__list button:focus-visible i {
  opacity: 1;
  transform: translateX(3px);
}

.source-note {
  margin-top: 24px;
  color: var(--yf-subtle);
  font-size: 12px;
  line-height: 1.7;
}

.qualification-dialog {
  width: min(900px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--yf-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 30px 80px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  backdrop-filter: blur(0) saturate(140%);
  -webkit-backdrop-filter: blur(0) saturate(140%);
  transition: opacity 280ms var(--yf-ease), transform 400ms cubic-bezier(0.32, 0.72, 0, 1), backdrop-filter 400ms cubic-bezier(0.32, 0.72, 0, 1);
}

.qualification-dialog.is-open {
  opacity: 1;
  transform: none;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.qualification-dialog::backdrop {
  background: rgba(23, 22, 21, 0.62);
}

.qualification-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--yf-line);
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  transition: transform 180ms var(--yf-ease), border-color 180ms var(--yf-ease);
}

.qualification-dialog__close:hover {
  border-color: var(--yf-line-strong);
  transform: rotate(4deg);
}

.qualification-dialog__close:active {
  transform: scale(0.96);
}

.qualification-dialog h2 {
  padding-right: 50px;
  font-size: 28px;
  line-height: 1.35;
}

.qualification-dialog__certificate {
  display: grid;
  min-height: 360px;
  place-items: center;
  margin-top: 28px;
  border: 1px solid var(--yf-line);
  background: var(--yf-page);
  color: var(--yf-muted);
  text-align: center;
}

.qualification-dialog__certificate img {
  display: none;
  width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
}

.qualification-dialog__certificate.has-image img {
  display: block;
}

.qualification-dialog__certificate.has-image [data-dialog-placeholder] {
  display: none;
}

.qualification-dialog__certificate [data-dialog-placeholder] {
  display: grid;
  gap: 8px;
  place-items: center;
}

.qualification-dialog__certificate small {
  color: var(--yf-subtle);
}

@media (prefers-reduced-transparency: reduce) {
  .qualification-dialog {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .qualification-dialog {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.35);
  }
}

/* News page */

.news-page-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid var(--yf-line);
  background: #fff;
}

.news-page-feature[hidden] {
  display: none;
}

.news-page-feature__image {
  min-height: 430px;
  overflow: hidden;
}

.news-page-feature__image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.5s var(--yf-ease);
}

.news-page-feature:hover img {
  transform: scale(1.025);
}

.news-page-feature__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(38px, 5vw, 64px);
}

.news-page-feature__copy > p:first-child {
  display: flex;
  gap: 18px;
  color: var(--yf-subtle);
  font-size: 11px;
}

.news-page-feature__copy > p:first-child span {
  color: var(--yf-brand);
  font-weight: 600;
}

.news-page-feature h2 {
  margin-top: 24px;
  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.news-page-feature__copy > p:nth-of-type(2) {
  margin-top: 18px;
  color: var(--yf-muted);
  font-size: 14px;
  line-height: 1.85;
}

.news-page-feature .text-link {
  margin-top: 26px;
}

.news-page-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 46px;
  margin-top: 54px;
  border-top: 1px solid var(--yf-line-strong);
}

.news-page-item {
  display: grid;
  min-height: 210px;
  grid-template-columns: minmax(150px, 0.68fr) minmax(0, 1fr) 24px;
  align-items: center;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--yf-line);
}

.news-page-item__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--yf-surface-soft);
}

.news-page-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--yf-ease);
}

.news-page-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: var(--yf-subtle);
  font-size: 11px;
}

.news-page-item__meta span {
  color: var(--yf-brand);
  font-weight: 600;
}

.news-page-item h3 {
  margin-top: 9px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.news-page-item > div > span {
  display: block;
  margin-top: 8px;
  color: var(--yf-muted);
  font-size: 12px;
  line-height: 1.65;
}

.news-page-item > a:last-child {
  font-size: 17px;
  transition: transform 0.2s var(--yf-ease);
}

.news-page-item:hover {
  color: var(--yf-brand);
}

.news-page-item:hover > a:last-child {
  transform: translateX(3px);
}

.news-page-item:hover .news-page-item__image img {
  transform: scale(1.025);
}

/* Article */

.article-layout {
  max-width: 900px;
  padding-block: 80px 110px;
}

.article-header {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--yf-line-strong);
}

.article-header h1 {
  margin-top: 16px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.article-header h1 span {
  color: var(--yf-muted);
  font-size: 0.5em;
  font-weight: 500;
  white-space: nowrap;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 24px;
  color: var(--yf-subtle);
  font-size: 11px;
}

.article-body {
  max-width: 760px;
  margin: 48px auto 0;
  color: var(--yf-body);
  font-size: 16px;
  line-height: 2;
}

.article-body p + p,
.article-body figure + p {
  margin-top: 26px;
}

.article-body figure {
  margin-block: 42px;
}

.article-body img {
  width: 100%;
}

.article-pagination {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 60px;
  border-top: 1px solid var(--yf-line-strong);
  border-bottom: 1px solid var(--yf-line-strong);
}

.article-pagination a {
  min-height: 118px;
  padding: 24px 28px;
}

.article-pagination a + a {
  border-left: 1px solid var(--yf-line);
  text-align: right;
}

.article-pagination small {
  color: var(--yf-subtle);
  font-size: 11px;
}

.article-pagination span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.6;
}

.article-layout > .button {
  margin-top: 34px;
}

/* Contact */

.contact-page {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-information,
.inquiry-panel {
  padding: clamp(34px, 4vw, 52px);
  border: 1px solid var(--yf-line);
  background: #fff;
}

.contact-information dl {
  margin-top: 34px;
}

.contact-information dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  padding-block: 16px;
  border-bottom: 1px solid var(--yf-line);
}

.contact-information dt {
  color: var(--yf-subtle);
  font-size: 12px;
}

.contact-information dd {
  color: var(--yf-body);
  font-size: 14px;
  line-height: 1.7;
}

.contact-information dd a {
  color: var(--yf-brand);
  font-size: 17px;
  font-weight: 600;
}

.contact-information dd .contact-email {
  font-size: 14px;
  font-weight: 500;
}

.map-placeholder {
  position: relative;
  aspect-ratio: 1609 / 978;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--yf-line);
  background: var(--yf-page);
}

.map-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-placeholder figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
}

.map-placeholder figcaption p {
  color: var(--yf-body);
  font-size: 14px;
  font-weight: 600;
}

.map-placeholder figcaption small {
  display: block;
  margin-top: 8px;
  color: var(--yf-subtle);
  font-size: 10px;
  line-height: 1.6;
}

.inquiry-panel > p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--yf-muted);
  font-size: 13px;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 18px;
  margin-top: 34px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label,
.form-field > label {
  color: var(--yf-body);
  font-size: 12px;
  font-weight: 550;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--yf-line-strong);
  border-radius: var(--yf-radius);
  background: #fff;
  color: var(--yf-ink);
  font-size: 14px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--yf-subtle);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--yf-brand);
  outline: 0;
  box-shadow: var(--yf-focus);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--yf-muted);
  font-size: 11px;
  line-height: 1.6;
}

.form-consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--yf-brand);
}

.inquiry-form .button {
  width: 100%;
}

.form-success {
  padding: 12px 14px;
  background: rgba(119, 84, 54, 0.08);
  color: var(--yf-brand-deep);
  font-size: 12px;
}

/* Footer */

.footer {
  padding-top: 72px;
  background: var(--yf-brand-deep);
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(320px, 1fr) auto;
  align-items: start;
  gap: clamp(42px, 5vw, 72px);
  padding-bottom: 58px;
}

.footer__brand img {
  width: 182px;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.9;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 54px;
}

.footer__nav h3 {
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 650;
  line-height: 1.5;
}

.footer__nav a,
.footer__nav p {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(13px, 0.95vw, 14.5px);
  line-height: 1.75;
}

.footer__contacts a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

.footer__contacts a span {
  width: 2.2em;
  color: rgba(255,255,255,.48);
  font-size: 11px;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__qr {
  display: grid;
  grid-template-columns: repeat(4, 82px);
  justify-content: end;
  gap: 20px;
}

.footer__qr-item {
  display: grid;
  min-width: 0;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.footer__qr-item img,
.footer__qr-placeholder {
  width: 82px;
  height: 82px;
}

.footer__qr-item img {
  object-fit: cover;
}

.footer__qr-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.66);
  font-size: 10.5px;
  line-height: 1.65;
}

.footer__qr-item p {
  width: 100%;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.55;
  text-align: center;
}

.footer__social-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  color: rgba(255,255,255,.9);
  font-size: 9px;
  line-height: 1;
  vertical-align: -3px;
}

.footer__bottom {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 11.5px;
  line-height: 1.6;
}

.footer__bottom a {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 500;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.58s var(--yf-ease),
    transform 0.58s var(--yf-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 1180px) {
  :root {
    --yf-shell: min(100% - 56px, 1200px);
  }

  .header__inner {
    width: calc(100% - 32px);
    grid-template-columns: 154px minmax(0, 1fr) 158px;
    gap: 18px;
  }

  .brand {
    width: 148px;
  }

  .desktop-nav {
    gap: 20px;
  }

  .desktop-nav > a,
  .desktop-nav .nav-item > a {
    font-size: 13px;
  }

  .header-phone {
    min-width: 158px;
  }

  .header-phone strong {
    font-size: 13px;
  }

  .business-accordion {
    min-height: 560px;
  }

  .business-detail__copy {
    padding: 64px;
  }

}

@media (max-width: 980px) {
  :root {
    --yf-header: 70px;
    --yf-shell: min(100% - 48px, 1200px);
    --yf-section: 80px;
    --yf-heading-gap: 44px;
  }

  .header__inner {
    width: var(--yf-shell);
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.is-menu-open {
    border-bottom-color: var(--yf-line);
    background: #fff;
    color: var(--yf-ink);
  }

  .site-header.is-menu-open .brand img {
    filter: none;
  }

  .page-hero {
    min-height: 420px;
  }

  .page-hero__inner {
    padding-block: 132px 54px;
  }

  .qualification-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-qualifications {
    gap: 50px;
  }

  .home-qualifications__content {
    width: 100%;
    max-width: none;
  }

  .home-qualifications__visual {
    width: min(100%, 900px);
    margin-inline: auto;
  }

  .about__body {
    min-height: 390px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    margin-top: 44px;
  }

  .about__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about__stats > div {
    min-height: 112px;
    padding: 22px 20px;
  }

  .business-accordion {
    display: grid;
    min-height: 0;
  }

  .business-panel {
    height: 220px;
    min-height: 220px;
    transition: none;
  }

  .business-panel.is-active {
    height: 560px;
  }

  .business-panel__content {
    min-height: 110px;
  }

  .business-panel.is-active .business-panel__content {
    min-height: 300px;
    transition: none;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 0;
  }

  .news-item__image {
    height: auto;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .news-item {
    min-height: 150px;
    grid-template-columns: minmax(0, 1fr) 20px;
    align-content: start;
    gap: 16px 10px;
    padding-block: 0 22px;
    border-top: 1px solid var(--yf-line-strong);
  }

  .profile-overview {
    grid-template-columns: 1fr;
  }

  .profile-gallery {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .history-chapter {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "time"
      "copy";
    gap: 20px;
    padding-block: 32px 54px;
  }

  .history-timeline::before,
  .history-timeline::after,
  .history-chapter::before {
    display: none;
  }

  .history-chapter__media {
    margin-right: 0;
    aspect-ratio: 3 / 2;
  }

  .history-chapter time,
  .history-chapter > div {
    padding-left: 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .business-detail,
  .business-detail--reverse {
    min-height: 500px;
    grid-template-columns: 1fr 1fr;
  }

  .business-detail__visual,
  .business-detail__visual img {
    min-height: 500px;
  }

  .business-detail__copy {
    padding: 48px;
  }

  .business-detail__no {
    top: 28px;
    right: 28px;
  }

  .certificate-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-page-feature {
    grid-template-columns: 1fr 1fr;
  }

  .news-page-list {
    grid-template-columns: 1fr;
  }

  .contact-page {
    grid-template-columns: 1fr;
  }

  .qualification-catalog {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .footer__grid {
    grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
    row-gap: 50px;
  }

  .footer__qr {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  :root {
    --yf-shell: calc(100% - 36px);
    --yf-section: 64px;
    --yf-heading-gap: 36px;
  }

  html {
    scroll-padding-top: calc(var(--yf-header) + 12px);
  }

  .hero,
  .hero__inner {
    min-height: 650px;
  }

  .hero__media {
    background-position: 59% center;
  }

  .hero__mesh {
    background:
      linear-gradient(180deg, rgba(15, 14, 13, 0.2), rgba(15, 14, 13, 0.68)),
      linear-gradient(90deg, rgba(15, 14, 13, 0.36), transparent);
  }

  .hero__inner {
    align-items: flex-end;
  }

  .hero__copy {
    padding-block: 70px 62px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.2;
  }

  .hero__lead {
    max-width: 330px;
    margin-inline: auto;
    font-size: 15px;
    text-wrap: pretty;
  }

  .page-hero {
    min-height: 390px;
  }

  .page-hero__inner {
    padding-block: 126px 46px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .page-hero__inner > p:last-child {
    max-width: 340px;
    font-size: 14px;
  }

  .section-heading--with-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
  }

  .section-heading,
  .inner-heading,
  .profile-section__heading {
    margin-bottom: var(--yf-heading-gap);
  }

  .section-heading h2,
  .inner-heading h2,
  .profile-section__heading h2,
  .business-detail__copy h2,
  .contact-page h2 {
    font-size: 28px;
  }

  .wf-stats .shell {
    grid-template-columns: 1fr;
  }

  .wf-stats .shell > div,
  .wf-stats .shell > div:first-child {
    min-height: 98px;
    justify-content: flex-start;
    padding: 24px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--yf-line);
    border-left: 0;
  }

  .wf-stats .shell > div:last-child {
    border-bottom: 0;
  }

  .wf-stats strong {
    min-width: 110px;
    font-size: 42px;
  }

  .qualification-card {
    min-height: 168px;
    padding: 22px;
  }

  .qualification-card strong {
    font-size: 18px;
  }

  .qualification-card i {
    right: 20px;
    bottom: 20px;
  }

  .home-qualifications {
    gap: 38px;
  }

  .home-qualifications__heading {
    margin-bottom: var(--yf-heading-gap);
  }

  .home-qualifications__intro {
    max-width: 34em;
    font-size: 16px;
    line-height: 1.82;
  }

  .home-qualification-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
  }

  .home-qualification-list li,
  .home-qualification-list li:nth-child(5) {
    min-height: 74px;
    grid-column: auto;
    padding-inline: 28px;
  }

  .home-qualification-list li:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
  }

  .certificate-carousel__viewport {
    margin-inline: -18px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 88%, transparent 100%);
  }

  .certificate-carousel__track {
    gap: 14px;
    padding-block: 18px 22px;
  }

  .certificate-slide {
    flex-basis: min(58vw, 220px);
    height: 310px;
  }

  .certificate-slide--landscape {
    flex-basis: min(82vw, 330px);
  }

  .certificate-carousel__meta {
    padding-inline: 0;
  }

  .about__body {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 36px;
  }

  .about__visual {
    min-height: 0;
  }

  .about__image {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 3;
  }

  .about__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about__stats > div {
    min-width: 0;
    min-height: 104px;
    padding: 20px;
  }

  .about__stats > div + div::before {
    display: none;
  }

  .about__stats > div:nth-child(even)::before {
    display: block;
    top: 20px;
    bottom: 20px;
  }

  .about__stats > div:nth-child(n + 3)::after {
    position: absolute;
    top: 0;
    right: 20px;
    left: 20px;
    height: 1px;
    background: var(--yf-line);
    content: "";
  }

  .about__stats strong {
    font-size: 34px;
  }

  .about__stats small,
  .about__suffix {
    font-size: 12px;
  }

  .business-panel.is-active {
    height: 610px;
  }

  .business-panel {
    height: 180px;
    min-height: 180px;
  }

  .business-panel__content {
    min-height: 90px;
    padding: 16px 20px 15px;
  }

  .business-panel.is-active .business-panel__content {
    min-height: 370px;
  }

  .business-panel__content h3 button {
    font-size: 18px;
  }

  .business-panel.is-active .business-panel__content h3 button {
    font-size: 22px;
  }

  .business-panel__subtitle {
    margin-top: 5px;
    font-size: 13px;
  }

  .business-panel.is-active .business-panel__subtitle {
    font-size: 17px;
    line-height: 1.7;
  }

  .project-row {
    grid-template-columns: 112px minmax(0, 1fr) 20px;
    gap: 16px;
  }

  .project-row__image {
    height: 80px;
  }

  .news-feature {
    grid-template-columns: 1fr;
  }

  .news-feature__visual {
    min-height: 260px;
  }

  .news-feature__copy {
    min-height: 320px;
    padding: 28px;
  }

  .news-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-item {
    grid-template-columns: 104px minmax(0, 1fr) 20px;
    align-content: center;
    gap: 14px;
    padding-block: 16px;
    border-top: 0;
    border-bottom: 1px solid var(--yf-line);
  }

  .news-item__image {
    height: 76px;
    grid-column: auto;
    aspect-ratio: auto;
  }

  .profile-section__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .profile-copy h3 {
    font-size: 26px;
  }

  .profile-copy__body {
    font-size: 15px;
    line-height: 1.88;
  }

  .profile-gallery {
    gap: 6px;
  }

  .history-chapter {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 28px 44px;
  }

  .history-chapter time {
    font-size: 28px;
  }

  .history-chapter h3 {
    margin-top: 0;
    font-size: 20px;
  }

  .history-chapter p {
    margin-top: 10px;
    font-size: 14px;
  }

  .culture-grid,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .qualification-catalog__list {
    grid-template-columns: 1fr;
  }

  .culture-card,
  .system-card {
    min-height: 260px;
  }

  .org-chart {
    padding: 30px 18px;
  }

  .org-chart__departments {
    grid-template-columns: repeat(2, 1fr);
    border-top: 0;
    border-left: 1px solid var(--yf-line-strong);
  }

  .org-chart__departments span {
    border-top: 1px solid var(--yf-line-strong);
  }

  .business-detail,
  .business-detail--reverse {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .business-detail--reverse .business-detail__visual,
  .business-detail--reverse .business-detail__copy {
    grid-column: auto;
  }

  .business-detail__visual,
  .business-detail__visual img {
    min-height: 330px;
  }

  .business-detail__copy {
    max-width: none;
    padding: 50px 18px 58px;
  }

  .business-detail__no {
    top: 24px;
    right: 18px;
  }

  .project-cards {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .project-card:first-child {
    grid-column: auto;
  }

  .project-card:first-child img,
  .project-card img {
    aspect-ratio: 4 / 3;
  }

  .honor-columns,
  .certificate-gallery {
    grid-template-columns: 1fr;
  }

  .news-page-feature {
    grid-template-columns: 1fr;
  }

  .news-page-feature__image,
  .news-page-feature__image img {
    min-height: 280px;
  }

  .news-page-feature__copy {
    padding: 30px 24px 36px;
  }

  .news-page-item {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 18px;
    grid-template-areas:
      "image image"
      "copy arrow";
    gap: 20px 14px;
    padding-block: 24px 30px;
  }

  .news-page-item__image {
    grid-area: image;
    aspect-ratio: 16 / 10;
  }

  .news-page-item > div {
    grid-area: copy;
  }

  .news-page-item > a:last-child {
    grid-area: arrow;
  }

  .article-layout {
    padding-block: 58px 80px;
  }

  .article-header h1 {
    font-size: 32px;
  }

  .article-body {
    font-size: 15px;
    line-height: 1.92;
  }

  .article-pagination {
    grid-template-columns: 1fr;
  }

  .article-pagination a + a {
    border-top: 1px solid var(--yf-line);
    border-left: 0;
    text-align: left;
  }

  .contact-information,
  .inquiry-panel {
    padding: 30px 22px;
  }

  .contact-information dl > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .form-field,
  .form-field--full,
  .form-consent {
    grid-column: 1;
  }

  .footer {
    padding-top: 56px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__qr {
    width: 100%;
    grid-column: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    gap: 12px;
  }

  .footer__qr-item img,
  .footer__qr-placeholder {
    width: min(86px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .footer__nav {
    gap: 34px;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding-block: 22px;
  }

  .footer__bottom a {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .about__stats > div,
  .home-qualification-list li {
    opacity: 1;
    transform: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .about__stats.is-visible > div:hover {
    background: rgba(119, 84, 54, 0.035);
    transform: translateY(-2px);
    transition-delay: 0s;
  }

  .about__visual.is-visible:hover .about__image img {
    transform: scale(1.012);
  }

  .home-qualifications__content.is-visible .home-qualification-list li:hover {
    transform: translateY(-2px);
    transition-delay: 0s;
  }

  .home-qualifications__content.is-visible .home-qualification-list li:hover strong {
    color: var(--yf-brand-deep);
  }

  .culture-card:hover::before {
    transform: scaleY(1);
  }

  .culture-card:hover > span {
    color: rgba(255, 255, 255, 0.58);
  }

  .culture-card:hover small {
    color: rgba(255, 255, 255, 0.62);
  }

  .culture-card:hover h3 {
    color: #fff;
  }

  .culture-card:hover p {
    color: rgba(255, 255, 255, 0.82);
  }
}

@media (max-width: 980px) {
  .qualification-catalog {
    gap: 0;
  }

  .qualification-catalog__group,
  .honor-group {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 720px) {
  .qualification-system .inner-heading__summary {
    font-size: 15px;
  }

  .system-card {
    min-height: 0;
    padding: 28px 24px 30px;
  }

  .system-card + .system-card {
    border-top: 1px solid var(--yf-line);
    border-left: 0;
  }

  .system-card svg {
    width: 44px;
    height: 44px;
  }

  .system-card h3 {
    margin-top: 22px;
    font-size: 21px;
  }

  .qualification-catalog__group,
  .honor-group {
    gap: 22px;
    padding: 28px 22px;
  }

  .qualification-catalog__header h3 {
    font-size: 22px;
  }

  .qualification-catalog__list,
  .honor-group__list {
    grid-template-columns: 1fr;
  }

  .qualification-catalog__list button,
  .honor-group__list button {
    min-height: 56px;
    font-size: 14px;
  }

  .honor-group__list button {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .qualification-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 24px 18px 18px;
  }

  .qualification-dialog h2 {
    font-size: 23px;
  }

  .qualification-dialog__certificate {
    min-height: 300px;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled,
  .site-header:not(.is-over-banner) {
    background: rgba(255, 255, 255, 0.96);
  }
}
