:root {
  color-scheme: light;
  --ink: #111312;
  --muted: #5e6561;
  --line: rgba(17, 19, 18, 0.16);
  --paper: #f6f7f5;
  --white: #fff;
  --mist: #e9efef;
  --deep: #14383b;
  --page-pad: clamp(24px, 4.3vw, 72px);
  --content: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "SF Pro Display", "SF Pro Text", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  color: var(--white);
}

.wordmark {
  position: relative;
  z-index: 2;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after,
.text-link::after,
.contact-actions a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after,
.contact-actions a:hover::after,
.contact-actions a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #182120;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  animation: hero-arrive 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 13, 14, 0.72) 0%, rgba(4, 13, 14, 0.25) 55%, rgba(4, 13, 14, 0.12) 100%),
    linear-gradient(0deg, rgba(4, 13, 14, 0.38) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(760px, calc(100% - (2 * var(--page-pad))));
  min-height: 100svh;
  flex-direction: column;
  justify-content: flex-end;
  padding: 180px 0 88px;
  margin-left: var(--page-pad);
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1100px;
  margin: 0;
  font-family: "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(64px, 8.8rem, 142px);
  font-weight: 400;
  line-height: 0.86;
}

.hero-intro {
  max-width: 590px;
  margin: 42px 0 34px;
  font-size: 20px;
  line-height: 1.65;
}

.hero-index {
  position: absolute;
  z-index: 2;
  right: var(--page-pad);
  bottom: 74px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.text-link-light {
  color: var(--white);
}

.section-intro {
  display: grid;
  max-width: var(--content);
  grid-template-columns: 0.65fr 1.2fr 1fr;
  gap: 48px;
  padding: 150px var(--page-pad);
  margin: 0 auto;
}

.section-intro h2 {
  margin: 0;
  font-family: "Times New Roman", "Noto Serif TC", serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 1.12;
}

.section-intro > p:last-child {
  max-width: 490px;
  margin: 8px 0 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.business {
  display: grid;
  min-height: 820px;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.9fr);
  background: var(--white);
}

.business:nth-of-type(odd) {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.5fr);
}

.business:nth-of-type(odd) .business-media {
  order: 2;
}

.business-media {
  min-height: 820px;
  overflow: hidden;
}

.business-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.business:hover .business-media img {
  transform: scale(1.018);
}

.business-copy {
  display: flex;
  max-width: 620px;
  flex-direction: column;
  justify-content: center;
  padding: 92px clamp(48px, 6vw, 110px);
}

.business-number {
  margin: 0 0 84px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.business-copy h3 {
  margin: 0 0 34px;
  font-family: "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(50px, 5vw, 78px);
  font-weight: 400;
  line-height: 0.98;
}

.business-copy > p:not(.business-number, .eyebrow) {
  max-width: 500px;
  margin: 0 0 34px;
  color: #414744;
  font-size: 18px;
}

.business-education {
  background: var(--mist);
}

.business-skin {
  background: #eef1f6;
}

.business-skin .business-media img {
  object-position: center 72%;
}

.philosophy {
  max-width: var(--content);
  padding: 170px var(--page-pad);
  margin: 0 auto;
}

.philosophy h2 {
  max-width: 1120px;
  margin: 0;
  font-family: "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 400;
  line-height: 1.08;
}

.philosophy-copy {
  display: grid;
  max-width: 840px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px;
  margin: 92px 0 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.philosophy-copy p {
  margin: 0;
}

.contact {
  display: grid;
  min-height: 520px;
  align-items: end;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 70px;
  padding: 100px var(--page-pad);
  background: var(--deep);
  color: var(--white);
}

.contact h2 {
  max-width: 900px;
  margin: 0;
  font-family: "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(54px, 6vw, 90px);
  font-weight: 400;
  line-height: 1.05;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contact-actions a {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  padding: 36px var(--page-pad);
  background: #0d2527;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  text-align: right;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 800ms ease,
    transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 960px) {
  .site-header {
    min-height: 76px;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: inherit;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: transform 250ms ease;
  }

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

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

  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: var(--page-pad);
    background: #0c2224;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease, visibility 250ms ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-family: "Times New Roman", "Noto Serif TC", serif;
    font-size: 42px;
  }

  .section-intro {
    grid-template-columns: 1fr 2fr;
  }

  .section-intro > p:last-child {
    grid-column: 2;
    margin: 0;
  }

  .business,
  .business:nth-of-type(odd) {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .business:nth-of-type(odd) .business-media {
    order: 0;
  }

  .business-media {
    min-height: 62vw;
  }

  .business-copy {
    max-width: 760px;
    padding: 90px var(--page-pad) 110px;
  }

  .business-number {
    margin-bottom: 62px;
  }
}

@media (max-width: 640px) {
  .hero-content {
    width: calc(100% - (2 * var(--page-pad)));
    padding-bottom: 52px;
  }

  .hero h1 {
    font-size: 64px;
    line-height: 0.92;
  }

  .hero-intro {
    margin: 30px 0 22px;
    font-size: 17px;
  }

  .hero-index {
    display: none;
  }

  .hero-image {
    object-position: 58% center;
  }

  .section-intro {
    display: block;
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .section-intro h2 {
    font-size: 44px;
  }

  .section-intro > p:last-child {
    margin-top: 34px;
    font-size: 16px;
  }

  .business-media {
    min-height: 78vw;
  }

  .business-copy {
    padding-top: 64px;
    padding-bottom: 76px;
  }

  .business-number {
    margin-bottom: 42px;
  }

  .business-copy h3 {
    font-size: 47px;
  }

  .business-copy > p:not(.business-number, .eyebrow) {
    font-size: 16px;
  }

  .philosophy {
    padding-top: 110px;
    padding-bottom: 110px;
  }

  .philosophy h2 {
    font-size: 48px;
  }

  .philosophy-copy {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 58px;
    font-size: 16px;
  }

  .contact {
    min-height: 560px;
    grid-template-columns: 1fr;
    align-content: end;
    gap: 58px;
    padding-top: 84px;
    padding-bottom: 74px;
  }

  .contact h2 {
    font-size: 48px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-footer p:nth-child(2),
  .site-footer p:last-child {
    text-align: left;
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
