@font-face {
  font-family: "Jalnan2";
  src: url("../fonts/Jalnan2TTF.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #17252b;
  --muted: #5f6f78;
  --line: rgba(23, 37, 43, 0.12);
  --paper: #ffffff;
  --soft-blue: #dff5fb;
  --soft-green: #e6f8ed;
  --soft-yellow: #fff0b8;
  --soft-pink: #ffe4e8;
  --teal: #3f7c7f;
  --coral: #ef7e73;
  --gold: #f5b642;
  --navy: #19323c;
  --shadow: 0 18px 44px rgba(28, 54, 64, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Jalnan2", ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f9fdff 0%, #ffffff 52%, #f6fbf8 100%);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(63, 124, 127, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 1.4rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
}

.language-picker {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(63, 124, 127, 0.22);
  border-radius: 8px;
  color: var(--navy);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 249, 0.92));
  box-shadow: 0 10px 24px rgba(28, 54, 64, 0.1);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans CJK JP", "Noto Sans CJK SC", "Apple SD Gothic Neo", sans-serif;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1;
}

.language-button:hover,
.language-button[aria-expanded="true"] {
  border-color: rgba(63, 124, 127, 0.45);
  background: #ffffff;
}

.language-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
  font-size: 0.72rem;
}

.language-current-code {
  display: none;
}

.language-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.7;
}

.language-button[aria-expanded="true"] .language-chevron {
  transform: translateY(2px) rotate(225deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  gap: 0.25rem;
  width: 178px;
  padding: 0.42rem;
  border: 1px solid rgba(23, 37, 43, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(28, 54, 64, 0.18);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 38px;
  padding: 0.45rem 0.58rem;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans CJK JP", "Noto Sans CJK SC", "Apple SD Gothic Neo", sans-serif;
  font-size: 0.82rem;
  text-align: left;
}

.language-option:hover,
.language-option[aria-selected="true"] {
  background: rgba(223, 245, 251, 0.86);
}

.language-option span:last-child {
  color: var(--teal);
  font-size: 0.7rem;
}

.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 7rem 5vw 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(249, 253, 255, 0.98) 0%, rgba(249, 253, 255, 0.88) 46%, rgba(249, 253, 255, 0.44) 100%),
    url("../images/hero-wallpaper.jpg");
  background-size: cover;
  background-position: center right;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18vh;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker,
.project-status {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-status {
  margin-bottom: 1.35rem;
  line-height: 1.35;
}

.eyebrow {
  margin-bottom: 1.55rem;
}

.section-kicker {
  margin-bottom: 1.25rem;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
a,
.button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(4rem, 11vw, 8.8rem);
  line-height: 0.92;
  font-weight: 900;
}

.hero-copy {
  max-width: 640px;
  margin: 1.5rem 0 0;
  color: #31464f;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.58;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.1;
}

.button.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
}

.section-pad {
  padding: 5.5rem 5vw;
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 2rem;
}

#intro-title {
  white-space: nowrap;
}

.intro .section-heading {
  width: min(1080px, 100%);
}

#principles-title {
  white-space: pre-line;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
}

.intro {
  background: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
}

.intro-grid p,
.project-body p,
.principle-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.projects {
  background:
    linear-gradient(90deg, rgba(223, 245, 251, 0.74), rgba(230, 248, 237, 0.72)),
    #f7fcfb;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-body {
  padding: 1.35rem;
}

.project-body h3,
.principle-list h3 {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-size: 1.4rem;
}

.project-body .project-credit {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.95rem;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(63, 124, 127, 0.18);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(223, 245, 251, 0.62);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Apple SD Gothic Neo", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: none;
}

.principles {
  background: #ffffff;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.principle-list article {
  min-height: 210px;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f9fcfd);
}

.contact {
  background: linear-gradient(90deg, var(--soft-yellow), var(--soft-pink), var(--soft-blue));
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1120px, 100%);
}

.contact-panel h2 {
  max-width: 720px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 5vw;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--navy);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
    padding: 0 0.75rem;
    gap: 0.45rem;
  }

  .site-nav {
    gap: 0.45rem;
    font-size: 0.68rem;
  }

  .header-actions {
    gap: 0.42rem;
    min-width: 0;
  }

  .language-button {
    min-height: 36px;
    gap: 0.28rem;
    padding: 0.3rem 0.42rem;
    font-size: 0.72rem;
  }

  .language-mark {
    width: 24px;
    height: 24px;
    font-size: 0.62rem;
  }

  .language-current-full {
    display: none;
  }

  .language-current-code {
    display: inline;
  }

  .language-chevron {
    width: 7px;
    height: 7px;
  }

  .language-menu {
    width: 164px;
    right: -0.1rem;
  }

  .brand-lockup span {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 6rem 1.1rem 4rem;
  }

  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(249, 253, 255, 0.97), rgba(249, 253, 255, 0.76)),
      url("../images/hero-wallpaper.jpg");
    background-position: center;
  }

  .hero-actions,
  .contact-panel,
  .site-footer,
  .site-footer div {
    align-items: stretch;
    flex-direction: column;
  }

  .section-pad {
    padding: 4rem 1.1rem;
  }

  #intro-title {
    white-space: normal;
  }

  .intro-grid,
  .project-grid,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .principle-list article {
    min-height: auto;
  }
}
