:root {
  --color-brand: #216b73;
  --color-brand-dark: #185158;
  --color-accent: #f29a65;
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-deep: #153f44;
  --color-text: #243334;
  --color-muted: #5e6d6e;
  --color-border: #dde5e3;
  --content-width: 1120px;
  --document-width: 780px;
  --radius-small: 8px;
  --radius-medium: 16px;
  --shadow-soft: 0 12px 36px rgb(21 63 68 / 8%);
  --space-page: clamp(1.25rem, 4vw, 2rem);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-latin: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--color-brand-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

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

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-deep);
  line-height: 1.35;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
}

ul,
ol {
  padding-left: 1.5em;
}

.container {
  width: min(100% - (var(--space-page) * 2), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--color-deep);
  border-radius: var(--radius-small);
  transform: translateY(-180%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgb(21 63 68 / 4%);
}

.header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-link {
  display: block;
  flex: 0 1 220px;
}

.brand-logo {
  width: 220px;
  height: auto;
}

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  color: var(--color-deep);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
}

.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.75rem;
  color: var(--color-text);
  border-radius: var(--radius-small);
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover {
  background: #f1f6f5;
}

.primary-nav a[aria-current="page"] {
  color: var(--color-brand-dark);
  background: #e9f2f1;
  box-shadow: inset 0 -3px 0 var(--color-brand);
}

main:focus {
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: linear-gradient(145deg, #f5faf8 0%, var(--color-bg) 70%);
}

.hero::after {
  position: absolute;
  right: max(3vw, 1rem);
  bottom: -90px;
  width: min(28vw, 320px);
  aspect-ratio: 1;
  background: rgb(242 154 101 / 12%);
  border-radius: 50%;
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.hero h1 {
  max-width: 16em;
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.hero-lead {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  color: #fff;
  background: var(--color-brand);
  border: 2px solid var(--color-brand);
  border-radius: var(--radius-small);
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.button:hover {
  color: #fff;
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  box-shadow: 0 6px 16px rgb(21 63 68 / 16%);
}

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

.button-secondary {
  color: var(--color-brand-dark);
  background: transparent;
}

.button-secondary:hover {
  color: var(--color-deep);
  background: #e9f2f1;
  border-color: var(--color-brand);
}

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section-surface {
  background: var(--color-surface);
}

#apps {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

#apps + #ai-development {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.section-label,
.page-label {
  margin-bottom: 0.55rem;
  color: var(--color-brand);
  font-family: var(--font-latin);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 43rem;
  margin-bottom: 2rem;
  color: var(--color-muted);
}

.app-card,
.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: start;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
}

.app-card h3,
.project-card h3 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.app-type {
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-family: var(--font-latin);
  font-size: 0.9rem;
  font-weight: 700;
}

.notice {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: #f1f7f6;
  border-left: 4px solid var(--color-brand);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.app-action {
  align-self: center;
}

.project-card p:not(.app-type) {
  margin-bottom: 0.85rem;
  max-width: 48rem;
}

.project-card p:last-of-type {
  margin-bottom: 0;
}

.project-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: center;
}

.project-actions .button {
  width: 100%;
}

.external-mark {
  margin-left: 0.4em;
  font-size: 0.9em;
}

.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;
}

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

.principle-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
}

.principle-card::before {
  display: block;
  width: 2.75rem;
  height: 4px;
  margin-bottom: 1.25rem;
  background: var(--color-accent);
  border-radius: 999px;
  content: "";
}

.principle-card h3 {
  margin-bottom: 0.65rem;
}

.principle-card p {
  margin-bottom: 0;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: #edf5f4;
  border-radius: var(--radius-medium);
}

.contact-panel h2 {
  margin-bottom: 0.65rem;
}

.contact-panel p {
  max-width: 38rem;
  margin-bottom: 0;
}

.breadcrumb {
  padding-top: 1.5rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 0.5rem;
  color: #879394;
  content: ">";
}

.page-main {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.page-header {
  width: min(100% - (var(--space-page) * 2), var(--document-width));
  margin: 0 auto;
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}

.document {
  width: min(100% - (var(--space-page) * 2), var(--document-width));
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
}

.document > :last-child,
.document-section > :last-child {
  margin-bottom: 0;
}

.document-intro {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.document-section {
  padding-block: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.document-section:last-of-type {
  border-bottom: 0;
}

.document-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.contact-email {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  max-width: 100%;
  padding: 0.7rem 1rem;
  color: var(--color-brand-dark);
  background: #edf5f4;
  border: 1px solid #bdd2cf;
  border-radius: var(--radius-small);
  font-weight: 750;
}

.enactment-date {
  margin-top: 2rem;
  color: var(--color-muted);
  text-align: right;
}

.site-footer {
  color: #e7efee;
  background: var(--color-deep);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 2rem;
  padding-block: 3.5rem 2.5rem;
}

.footer-brand {
  margin: 0;
  color: #fff;
  font-family: var(--font-latin);
  font-size: 1.2rem;
  font-weight: 750;
}

.footer-heading {
  margin-bottom: 0.75rem;
  color: #fff;
  font-family: var(--font-latin);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: #fff;
}

.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .principles {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767px) {
  .header-inner {
    position: relative;
    min-height: 76px;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .js .header-inner {
    flex-wrap: nowrap;
  }

  .brand-link {
    flex-basis: 180px;
  }

  .brand-logo {
    width: 180px;
  }

  .js .menu-button {
    display: inline-flex;
  }

  .primary-nav {
    width: 100%;
  }

  .primary-nav ul {
    flex-wrap: wrap;
    padding-bottom: 0.75rem;
  }

  .js .primary-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    width: auto;
    padding: 0.5rem var(--space-page) 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 20px rgb(21 63 68 / 10%);
  }

  .js .primary-nav[hidden] {
    display: none;
  }

  .js .primary-nav ul {
    display: grid;
    padding: 0;
  }

  .js .primary-nav a {
    padding-inline: 1rem;
  }

  .hero::after {
    right: -60px;
    width: 220px;
  }

  .app-card,
  .project-card {
    grid-template-columns: 1fr;
  }

  .app-action .button,
  .project-actions .button {
    width: 100%;
  }

  .project-actions .button {
    white-space: nowrap;
  }

  .contact-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-panel .button {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .brand-link,
  .brand-logo {
    width: 160px;
    flex-basis: 160px;
  }

  .menu-button {
    padding-inline: 0.6rem;
  }

}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}
