:root {
  --ink: #18215a;
  --ink-deep: #101747;
  --violet: #301e6e;
  --blue: #395187;
  --cyan: #5eb9c7;
  --cyan-soft: #bfe7eb;
  --paper: #fbfaf6;
  --paper-blue: #f5fbfc;
  --line: rgba(24, 33, 90, 0.15);
  --muted: #5d6685;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: min(1180px, calc(100% - 64px));
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 2px;
}

.shell { width: var(--shell); margin-inline: auto; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  padding: 10px 14px;
  background: var(--ink-deep);
  color: #fff;
  transform: translateY(-180%);
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-deep);
}

.brand img { width: 44px; height: 44px; }

.brand span {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

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

.site-nav a {
  padding-block: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.015em;
}

.site-nav a::after {
  display: block;
  width: 0;
  height: 1px;
  margin-top: 4px;
  background: var(--cyan);
  content: "";
  transition: width 180ms ease;
}

.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }

.menu-toggle { display: none; }

.hero {
  min-height: 760px;
  padding: 118px 32px 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 37% 40%, rgba(107, 207, 211, 0.17), transparent 27%),
    radial-gradient(circle at 62% 48%, rgba(82, 80, 167, 0.12), transparent 31%),
    var(--paper);
  overflow: hidden;
}

.hero-atmosphere {
  width: 330px;
  margin: 10px auto 36px;
  border-radius: 50%;
  box-shadow: 0 26px 38px rgba(48, 30, 110, 0.16);
}

.hero-logo { width: 100%; }

.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7.7vw, 6.7rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-line {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.25;
}

.hero-rule { width: 30px; height: 1px; margin: 30px 0 18px; background: var(--cyan); }

.location { margin: 0; color: var(--blue); font-size: 0.95rem; font-weight: 600; }

.numbered-section { border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }

.section-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 44px;
  padding-block: clamp(78px, 10vw, 132px);
}

.section-number {
  margin: -20px 0 0;
  color: rgba(68, 169, 188, 0.58);
  font-family: var(--serif);
  font-size: clamp(5.8rem, 10vw, 9.3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.075em;
}

.section-number-cool { color: rgba(72, 124, 170, 0.38); }
.section-number-violet { color: rgba(70, 45, 132, 0.45); }

.section-content { min-width: 0; }

.section-content h2 {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.prose { max-width: 780px; }
.prose p:not(.section-kicker) { max-width: 700px; margin: 0 0 12px; color: var(--muted); font-size: 1.02rem; }

.section-company {
  background:
    radial-gradient(circle at 90% 50%, rgba(106, 183, 204, 0.12), transparent 25%),
    var(--paper);
}

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

.expertise-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
}

.expertise-list li:first-child { border-top: 1px solid var(--line); }
.expertise-list > li > span { padding-top: 4px; color: #34798b; font-family: var(--serif); font-size: 1.25rem; }

.expertise-list h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.expertise-list p { margin: 5px 0 0; color: var(--muted); font-size: 0.94rem; }

.project-section {
  background:
    radial-gradient(circle at 77% 45%, rgba(94, 202, 213, 0.28), transparent 29%),
    linear-gradient(105deg, #fbfaf6 35%, #f0f8fa 100%);
  overflow: hidden;
}

.project-content {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  align-items: center;
  gap: 52px;
}

.project-copy { position: relative; z-index: 2; max-width: 520px; }
.project-copy p:not(.section-kicker) { margin: 0 0 28px; color: var(--muted); }
.project-visual { position: relative; min-height: 360px; }

.project-visual img {
  position: absolute;
  width: 620px;
  max-width: none;
  top: 50%;
  left: 52%;
  transform: translate(-35%, -50%);
  border-radius: 50%;
  box-shadow: 0 28px 45px rgba(48, 30, 110, 0.22);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--violet);
  background: var(--violet);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.button:hover { background: transparent; color: var(--violet); }

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

.team-member {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 160px;
  padding: 20px 44px 20px 0;
}

.team-member + .team-member { padding-left: 44px; border-left: 1px solid var(--line); }

.team-member img {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.team-member h3 { margin: 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.25; }
.team-member p { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }

.contact-section {
  background:
    radial-gradient(circle at 96% 34%, rgba(109, 202, 211, 0.12), transparent 20%),
    var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(460px, 1.28fr);
  align-items: start;
  gap: 64px;
}

.contact-copy { position: sticky; top: 28px; }
.contact-copy p:not(.section-kicker) { color: var(--muted); }
.contact-copy > a { color: var(--blue); font-weight: 700; }

.form-panel {
  min-height: 683px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 26px 70px rgba(32, 47, 101, 0.06);
}

.form-panel iframe { display: block; border: 0; }

.site-footer { background: #f6f7f5; }

.footer-grid {
  min-height: 200px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 58px;
  padding-block: 40px;
}

.footer-brand { align-self: start; margin-top: 8px; }

.site-footer address { color: var(--muted); font-size: 0.8rem; font-style: normal; line-height: 1.7; }
.site-footer address strong { color: var(--ink); }

.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--muted); font-size: 0.76rem; }

.legal-page { padding-top: 90px; }
.legal-main { width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: 90px 0 120px; }
.legal-main .eyebrow { text-align: left; }
.legal-main h1 { margin: 0 0 58px; font-family: var(--serif); font-size: clamp(3.25rem, 8vw, 6rem); font-weight: 400; line-height: 1; letter-spacing: -0.05em; }
.legal-main h2 { margin: 50px 0 14px; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.2; }
.legal-main p, .legal-main li { color: var(--muted); }
.legal-main a { color: var(--blue); }
.legal-back { display: inline-block; margin-bottom: 42px; font-size: 0.82rem; font-weight: 700; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 40px, 720px); }

  .header-inner { min-height: 76px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 1.25rem; }

  .menu-toggle {
    position: relative;
    z-index: 31;
    width: 48px;
    height: 48px;
    display: grid;
    place-content: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
  }

  .menu-toggle > span:not(.sr-only) { width: 24px; height: 1px; background: currentColor; transition: transform 160ms ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    padding: 96px 32px;
    background: rgba(251, 250, 246, 0.98);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }

  .site-nav[data-open="true"] { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav a { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; }

  .hero { min-height: 700px; padding-top: 108px; }
  .hero-atmosphere { width: min(270px, 66vw); margin-bottom: 32px; }

  .section-grid { grid-template-columns: 96px minmax(0, 1fr); gap: 28px; }
  .section-number { font-size: 5.6rem; }

  .project-content, .contact-grid { grid-template-columns: 1fr; }
  .project-visual { min-height: 300px; }
  .project-visual img { width: 520px; left: 48%; }
  .contact-copy { position: static; }
  .contact-grid { gap: 36px; }

  .team-grid { grid-template-columns: 1fr; }
  .team-member { padding: 18px 0; }
  .team-member + .team-member { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { margin: 0; }
  .footer-links { align-items: flex-start; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .menu-toggle { display: none; }

  .site-nav {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    padding: 0;
    background: transparent;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav a {
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 600;
  }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); }

  body { font-size: 15px; }
  .hero { min-height: 660px; padding-inline: 18px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.7rem); }
  .hero-line { max-width: 340px; }
  .eyebrow { font-size: 0.64rem; letter-spacing: 0.16em; }

  .section-grid { grid-template-columns: 1fr; gap: 18px; padding-block: 68px; }
  .section-number { margin: 0; font-size: 4.4rem; }
  .section-content h2 { font-size: 2.45rem; }

  .expertise-list li { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .expertise-list h3 { font-size: 1.55rem; }
  .expertise-list p { font-size: 0.88rem; }

  .project-content { gap: 20px; }
  .project-visual { min-height: 260px; }
  .project-visual img { width: 440px; left: 42%; }

  .team-member { grid-template-columns: 92px minmax(0, 1fr); gap: 20px; }
  .team-member img { width: 92px; height: 92px; }

  .form-panel { min-height: 683px; padding: 8px; box-shadow: none; }

  .legal-page { padding-top: 76px; }
  .legal-main { width: calc(100% - 32px); padding-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .skip-link, .button, .form-panel { display: none !important; }
  body { color: #000; background: #fff; }
  .hero { min-height: 0; padding: 40px 0; background: #fff; }
  .numbered-section { break-inside: avoid; }
}
