:root {
  --background: #FFFFFF;
  --text: #161616;
  --muted: #595959;
  --line: #dedede;
  --accent: #FF0099;
  --accent-soft: #F7B6D9;
  --gutter: clamp(24px, 6vw, 96px);
  --section-space: clamp(68px, 10vw, 144px);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

.wrap {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin-inline: auto;
}

.topbar, .footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
}

.topbar { border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.brand img { display: block; height: auto; }
.brand-icon { width: clamp(40px, 12vw, 50px); }
.brand-wordmark { width: clamp(116px, 32vw, 144px); }
.nav { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 3vw, 40px); }
.brand, .nav a, .footer a { text-decoration: none; }
.nav a, .footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
}

main > section { padding-block: var(--section-space); }
main > section + section { border-top: 1px solid var(--line); }
section[id] { scroll-margin-top: 24px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2 { line-height: 1.12; letter-spacing: -0.065em; }
h1 {
  max-width: 1100px;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.27;
  letter-spacing: -0.045em;
}
html[lang="en"] body { font-family: Inter, system-ui, sans-serif; }
html[lang="en"] .vision h1 { text-wrap: balance; max-width: 1080px; }
.vision-line { display: block; }
.vision-phrase { display: inline-block; max-width: 100%; }
h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
h3 { font-size: clamp(1.375rem, 2.8vw, 2rem); line-height: 1.4; }
.vision { padding-block: clamp(68px, 8vw, 112px); }
.vision h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 28px;
  background: var(--accent);
}

.vision-copy {
  max-width: 700px;
  margin-top: clamp(28px, 5vw, 56px);
  color: var(--muted);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
}

.service {
  padding-block: clamp(30px, 5vw, 64px);
}

.service h3 { font-size: clamp(1.625rem, 3.1vw, 2.25rem); }

.service--pink {
  background: var(--accent-soft);
  box-shadow: 0 0 0 100vmax var(--accent-soft);
  clip-path: inset(0 -100vmax);
}

#services { padding-block: clamp(56px, 7vw, 100px); }

.services-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 24px;
  margin-bottom: clamp(30px, 5vw, 64px);
}

.services-end {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(30px, 5vw, 64px);
}

.try-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
  padding: 12px 24px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.try-link:hover {
  background: color-mix(in srgb, var(--accent) 88%, black);
  text-decoration: none;
}
.try-link svg { flex-shrink: 0; }

.service-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 16px clamp(24px, 6vw, 72px);
  margin-top: 18px;
}

.service:nth-of-type(2) .service-screens { grid-column: 2; grid-row: 1; }
.service:nth-of-type(2) .service-copy { grid-column: 1; grid-row: 1; }
.service-copy, .member-role { color: var(--muted); }
.service-copy {
  max-width: 42ch;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}
.service--pink .service-copy { color: var(--text); }

.media {
  margin: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)),
    var(--background);
}

.service-screens {
  display: grid;
  grid-template-columns: minmax(0, 248px);
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  margin: 0;
}

.service-screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13% / 6.3%;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 32px);
  margin: clamp(26px, 6vw, 60px) 0 0;
  padding: 0;
  list-style: none;
}

.member-grid .media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.member-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-grid h3 { font-size: clamp(1.125rem, 1.8vw, 1.375rem); }
.member-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  margin-top: 4px;
}

.member-heading .linkedin-link { margin-inline-end: -10px; }
.footer-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }

.linkedin-link {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
}

.footer .linkedin-link { display: inline-grid; }
.linkedin-link img {
  display: block;
  width: 24px;
  height: 24px;
}

.linkedin-link:hover img { opacity: 0.8; }
.member-role { font-size: 1rem; }
.footer { border-top: 1px solid var(--line); }

@media (max-width: 680px) {
  .topbar { gap: 2px 8px; padding-block: 10px; }
  .topbar > .nav { order: 1; flex-basis: 100%; }
}

@media (max-width: 620px) {
  .services-heading .try-link, .services-end .try-link { width: 100%; }
  .service-layout { grid-template-columns: 1fr; }
  .service:nth-of-type(2) .service-screens,
  .service:nth-of-type(2) .service-copy { grid-column: auto; grid-row: auto; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 1rem;
}

.language-switch a {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 44px;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline 2px var(--accent);
  text-underline-offset: 0.35em;
}

.language-switch a:hover { text-decoration: underline; }
