@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/dexit/Manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/dexit/Inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #102e43;
  --muted: #435b6a;
  --accent: #176278;
  --surface: #f5f8fa;
  --line: #dbe6eb;
  --deep: #0e3046;
  --gutter: clamp(1.15rem, 5vw, 5.5rem);
  --section: clamp(3rem, 7vw, 7rem);
  --radius: 1.15rem;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 1rem/1.7 Inter, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  padding: 1.15rem var(--gutter);
}
header { background: #fff; border-bottom: 1px solid var(--line); }
header > nav { margin-inline-start: auto; }
.maintenance-header { justify-content: flex-end; }
.maintenance main { min-height: calc(100vh - 5rem); }
.logo { display: block; width: clamp(8.5rem, 15vw, 11rem); height: auto; }
nav { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 2rem); }
a { color: inherit; text-underline-offset: .25em; }
nav a { text-decoration: none; font-weight: 650; font-size: .95rem; }
a:hover { text-decoration: underline; }
nav a[aria-current="true"] { text-decoration: underline; text-decoration-color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 {
  margin: 0;
  font-family: Manrope, Inter, system-ui, sans-serif;
  line-height: 1.14;
  font-weight: 750;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.4rem, 5.25vw, 5.3rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 3.3rem); letter-spacing: -.045em; }
h3 { font-size: 1.28rem; letter-spacing: -.025em; }
:lang(th) :is(h1, h2, h3), :lang(zh-Hans) :is(h1, h2, h3), :lang(ja) :is(h1, h2, h3) {
  font-family: system-ui, sans-serif;
  letter-spacing: normal;
  line-height: 1.3;
}
p { margin: 1rem 0; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.03rem, 1.55vw, 1.22rem); color: var(--muted); max-width: 58ch; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: .65rem 1.2rem;
  margin-top: .75rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #205268; text-decoration: none; }
.button-light, .hero .button { background: #fff; color: var(--deep); }
.button-light:hover, .hero .button:hover { background: #dceff3; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(32rem, 50vw, 47rem);
  padding: clamp(3rem, 6vw, 7rem) var(--gutter);
  color: #fff;
  background: var(--deep);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #071f30bd 0%, #0d27398a 39%, #10324718 68%, #0d263608 100%);
}
.sails { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.hero h1 { max-width: 16ch; }
.hero p { max-width: 48ch; color: #e5eff4; font-size: clamp(1rem, 1.45vw, 1.18rem); }
.section-wrap, .inner {
  margin-inline: auto;
  max-width: 100rem;
  padding-inline: var(--gutter);
}
.services, .inner { padding-block: var(--section); }
.inner { min-height: 55vh; }
.inner:not(.overview) { max-width: 74rem; }
.inner h1 { max-width: 22ch; }
.inner h2, .page-contact h2 { margin-top: 1.5em; font-size: clamp(1.35rem, 2.1vw, 2.1rem); }
.inner p { max-width: 67ch; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.9rem, 1.8vw, 1.8rem);
  margin-top: clamp(1.5rem, 3.2vw, 3rem);
}
.service-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.service-card:hover, .service-card:focus-within { border-color: #81aab9; box-shadow: 0 .5rem 1.5rem #102e4312; }
.card-image { width: 100%; aspect-ratio: 1.5; height: auto; object-fit: cover; display: block; }
.card-copy { padding: clamp(1rem, 1.7vw, 1.6rem); }
.card-copy h3 a { text-decoration: none; }
.card-copy h3 a:hover { text-decoration: underline; }
.card-copy h3 a::after { content: ""; position: absolute; inset: 0; }
.card-copy p { color: var(--muted); margin-top: .7rem; }
.company-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 26rem;
  background: var(--deep);
  color: #fff;
}
.company-image { display: block; width: 100%; height: 100%; min-height: 20rem; object-fit: cover; }
.company-copy { align-self: center; padding: clamp(2rem, 6vw, 6rem) var(--gutter); }
.company-copy p, .project-band p { color: #e1edf4; max-width: 54ch; }
.page-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2.6rem, 6vw, 5.5rem);
}
.page-lead h1 { font-size: clamp(2.35rem, 4.6vw, 4.55rem); }
.lead-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.3vw, 2rem);
  padding-bottom: var(--section);
}
.feature { background: #fff; padding: clamp(1.15rem, 2vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); }
.feature h2 { font-size: clamp(1.25rem, 1.85vw, 1.9rem); letter-spacing: -.03em; }
.feature p { color: var(--muted); }
.project-band { margin-bottom: var(--section); }
.project-band > div { padding: clamp(1.7rem, 5vw, 4rem); border-radius: var(--radius); background: var(--deep); color: white; }
.project-band .button { background: #fff; color: var(--deep); }
.project-band .button:hover { background: #dceff3; }
.text-panel { background: #fff; min-height: 0; margin-bottom: var(--section); border: 1px solid var(--line); border-radius: var(--radius); width: calc(100% - 2 * var(--gutter)); }
.text-panel h2:first-child { margin-top: 0; }
.page-contact { min-height: 64vh; }
footer {
  justify-content: flex-start;
  flex-wrap: wrap;
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
footer span { margin-inline-end: auto; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  header { flex-wrap: wrap; }
  header:has(.language-menu) > nav { order: 1; flex-basis: 100%; flex-wrap: wrap; margin-inline-start: 0; }
  .hero { min-height: clamp(29rem, 105vw, 35rem); }
  .hero::before { background: linear-gradient(90deg, #071f30bd, #0c273a99 64%, #12344b38); }
  .sails { object-position: 55% center; }
  .hero h1 { max-width: 18ch; }
  .page-lead, .feature-grid, .company-band { grid-template-columns: 1fr; }
  .company-image { min-height: auto; aspect-ratio: 1.75; }
  .lead-image { aspect-ratio: 1.55; }
}
@media (max-width: 510px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .service-card { transition: none; } }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.language-menu {
  position: relative;
  z-index: 4;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
}
.language-menu summary, .language-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.language-menu summary {
  padding: .45rem .65rem;
  cursor: pointer;
  list-style: none;
  background: #fff;
  border: 1px solid #b9ccd6;
  border-radius: 999px;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after {
  content: "";
  width: .38rem;
  height: .38rem;
  margin: -.2rem .15rem 0 .25rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.language-menu[open] summary::after { transform: translateY(.18rem) rotate(225deg); }
.language-flag {
  display: inline-grid;
  min-width: 1.45rem;
  place-items: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.05rem;
}
.language-menu nav {
  position: absolute;
  inset: calc(100% + .35rem) 0 auto auto;
  min-width: max-content;
  max-height: min(65dvh, 24rem);
  overflow-y: auto;
  padding: .25rem;
  background: #fff;
  border: 1px solid #b9ccd6;
  border-radius: .4rem;
  box-shadow: 0 .4rem 1rem #142e4326;
}
.language-menu ul { margin: 0; padding: 0; list-style: none; }
.language-menu a { padding: .45rem .65rem; border-radius: .2rem; }
.language-menu a:hover, .language-menu a[aria-current="page"] {
  background: #e7f0f5;
  text-decoration: none;
}
.language-menu a[aria-current="page"] { text-decoration: underline; }
.language-menu :focus-visible { outline: 2px solid #144d70; outline-offset: -2px; }

.sail-quote {
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  max-width: min(30rem, 43%);
  margin: 0;
  color: #fff;
  font-size: clamp(.85rem, 1.15vw, 1rem);
  font-style: italic;
  line-height: 1.5;
  text-align: right;
  text-shadow: 0 1px 5px #071f30;
  background: #071f3066;
  padding: .65rem .85rem;
  border-radius: .35rem;
}
.sail-quote cite { display: block; font-size: .85em; margin-top: .25rem; }
@media (max-width: 760px) {
  .hero { padding-bottom: 8rem; }
  .sail-quote { max-width: calc(100% - 2 * var(--gutter)); bottom: 1.25rem; }
}

.about-meeting {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.legal-image {
  float: right;
  width: clamp(7rem, 18vw, 12rem);
  height: auto;
  margin: 0 0 1.5rem 2rem;
  border-radius: var(--radius);
}
.legal-page::after { content: ""; display: block; clear: both; }
@media (max-width: 510px) {
  .legal-image { float: none; display: block; width: 7rem; margin: 0 0 1.5rem; }
}

/* Graphic details drawn from the TRUEGATE logo palette. */
:root {
  --brand-blue: #1c3692;
  --brand-tint: #edf0fb;
  --accent: var(--brand-blue);
}
body > header {
  border-top: 4px solid var(--brand-blue);
}
body > header > nav a {
  position: relative;
  padding-block: .35rem;
}
body > header > nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
body > header > nav a:hover::after,
body > header > nav a[aria-current="true"]::after {
  transform: scaleX(1);
}
body > header > nav a[aria-current="true"] { text-decoration: none; }
.hero {
  border-bottom: 5px solid var(--brand-blue);
}
.hero .copy::before {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  margin-bottom: 1.5rem;
  background: #a7b9ff;
}
.services > h2::before,
.overview > h1::before,
.page-lead h1::before,
.legal-page > h1::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 4px;
  margin-bottom: 1rem;
  background: var(--brand-blue);
}
.services {
  background-image: linear-gradient(135deg, transparent 82%, #1c369207 82%);
}
.service-card {
  border-bottom: 3px solid var(--brand-blue);
}
.service-card:hover,
.service-card:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 .65rem 1.7rem #1c369216;
}
.card-copy h3 { color: var(--brand-blue); }
.button { background: var(--brand-blue); }
.button:hover { background: #142975; }
.hero .button,
.button-light,
.project-band .button {
  background: #fff;
  color: var(--brand-blue);
}
.hero .button:hover,
.button-light:hover,
.project-band .button:hover {
  background: var(--brand-tint);
}
.lead-image,
.about-meeting {
  border-bottom: 5px solid var(--brand-blue);
}
.feature {
  border-top: 3px solid var(--brand-blue);
  background: linear-gradient(145deg, #fff 72%, var(--brand-tint));
}
.company-band,
.project-band > div {
  background-image: repeating-linear-gradient(
    125deg, transparent 0, transparent 46px, #a7b9ff0a 46px, #a7b9ff0a 47px
  );
}
.company-copy > h2::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 4px;
  margin-bottom: 1.2rem;
  background: #a7b9ff;
}
.sail-quote {
  border-right: 3px solid #a7b9ff;
}
.legal-image { box-shadow: .45rem .45rem 0 var(--brand-tint); }
body > footer {
  border-top: 3px solid var(--brand-blue);
}
.language-menu summary { border-color: #1c36924d; }
.language-menu a:hover,
.language-menu a[aria-current="page"] {
  background: var(--brand-tint);
  color: var(--brand-blue);
}
@media (prefers-reduced-motion: reduce) {
  body > header > nav a::after { transition: none; }
}

:root { --logo-gray: #383838; }
h1, h2 { color: var(--brand-blue); }
.hero h1,
.company-copy h2,
.project-band h2 { color: #fff; }
body > header > nav a,
body > header .language-menu summary,
body > header .language-menu a { color: var(--logo-gray); }

h1 { font-size: clamp(2rem, 4.2vw, 4.3rem); }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.8rem); }
.page-lead h1 { font-size: clamp(2rem, 3.8vw, 3.8rem); }
.legal-page h1 { font-size: clamp(1.65rem, 3.2vw, 3.2rem); }

.legal-page h1 { font-size: clamp(1.55rem, 2.95vw, 2.95rem); }

.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-heading h2::before { content: none; }
.compass-rose {
  display: inline-flex;
  width: clamp(2.6rem, 5vw, 3.5rem);
  flex: none;
  color: var(--brand-blue);
}
.compass-rose svg { display: block; width: 100%; height: auto; overflow: visible; }
.compass-rose circle, .compass-rose path {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.compass-rose .rose-outer { fill: none; stroke-width: 1.7; stroke-dasharray: 36 7; }
.compass-rose .rose-inner { fill: none; stroke-width: 1.2; }
.compass-rose .rose-ticks { fill: none; stroke-width: 1.3; }
.compass-rose .rose-star { fill: var(--brand-blue); stroke: currentColor; stroke-width: .8; }
.compass-rose .rose-diagonals { fill: none; stroke-width: 1.2; }
.compass-rose .rose-north { fill: #fff; stroke: #fff; stroke-width: .6; }
.compass-rose .rose-hub { fill: #fff; stroke: currentColor; stroke-width: 1.5; }
.compass-rose text { fill: currentColor; stroke: none; font: 700 7px/1 Inter, sans-serif; }

.overview .section-heading { margin-bottom: 1.1rem; }
.overview .section-heading h1 { margin: 0; }
.overview .section-heading h1::before { display: none; }

.compass-rose .rose-intercardinal { fill: #c6ccd8; }
.compass-rose .rose-north { fill: #aeb7c8; stroke: #aeb7c8; }
.compass-rose .rose-hub { fill: #aeb7c8; }
