@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Montserrat:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;700;800&family=Noto+Serif+JP:wght@500;600;700&display=swap");

:root {
  /* DASS main 9: cards / lower-page design */
  --bg: #f4f0e6;
  --bg-soft: #fbfaf6;
  --surface: #ffffff;
  --ink: #10243d;
  --ink-soft: #30465f;
  --muted: #67778a;
  --line: #e4dccd;
  --orange: #e75a3c;
  --orange-deep: #de4e2f;
  --orange-soft: rgba(231, 90, 60, 0.10);
  --shadow-soft: 0 16px 36px rgba(16, 36, 61, 0.08);
  --shadow-card: 0 10px 24px rgba(16, 36, 61, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Noto Serif JP", Georgia, serif;
  --brand-font: "Montserrat", "Noto Sans JP", sans-serif;
  --section-gap: clamp(72px, 8vw, 120px);

  /* dass-main 2: top / hero design */
  --top-ink: #0b1b2b;
  --top-ink-soft: #1f3041;
  --top-paper: #f3f0e8;
  --top-white: #fffef9;
  --top-red: #e04a32;
  --top-gold: #ba9658;
  --top-line: rgba(11, 27, 43, 0.18);
  --top-muted: #5f6b75;
  --top-sans: "DM Sans", "Noto Sans JP", sans-serif;
  --top-serif: "Noto Serif JP", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-soft); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
h1,h2,h3,h4,p,ul,dl { margin: 0; }
ul { padding: 0; list-style: none; }
[id] { scroll-margin-top: 96px; }

.scroll-progress { position: fixed; z-index: 120; top: 0; left: 0; width: 100%; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--top-red); }

/* ==========================================================================\n   TOP: directly based on dass-main 2 (cleaned into one final cascade)\n   ========================================================================== */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px clamp(22px, 4vw, 62px);
  color: var(--top-ink);
  font-family: var(--top-sans);
  transition: background .25s ease, color .25s ease, padding .25s ease;
}
.site-header.is-scrolled {
  padding-top: 13px;
  padding-bottom: 13px;
  color: var(--top-ink);
  background: rgba(243, 240, 232, .94);
  border-bottom: 1px solid var(--top-line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand > img { width: 46px; height: 46px; object-fit: contain; }
.brand-words { display: grid; gap: 4px; }
.brand strong { font-family: var(--brand-font); font-size: 1.55rem; font-weight: 600; line-height: 1; letter-spacing: .03em; }
.brand small { font-size: .62rem; font-weight: 600; line-height: 1; letter-spacing: .08em; }
.global-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.global-nav a { position: relative; font-size: .7rem; font-weight: 600; text-decoration: none; letter-spacing: .04em; }
.global-nav a::after { position: absolute; right: 0; bottom: -6px; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.global-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; border: 0; background: transparent; color: currentColor; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--top-ink);
  background: var(--top-paper);
  font-family: var(--top-sans);
}
.hero::after {
  position: absolute;
  z-index: 1;
  bottom: -4vw;
  left: -1vw;
  color: rgba(224, 74, 50, .075);
  content: "MONTRÉAL";
  font-size: clamp(7rem, 20vw, 19rem);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.08em;
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 50%;
  background: url("./assets/montreal.jpg") center / cover no-repeat;
  background-position: center;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  transform: scale(1.04);
  animation: hero-in 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--top-paper) 0%, var(--top-paper) 39%, rgba(243, 240, 232, .94) 49%, rgba(243, 240, 232, .2) 70%, transparent 100%), linear-gradient(0deg, rgba(11, 27, 43, .28), transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100svh;
  padding: 130px clamp(24px, 7vw, 110px) 95px;
}
.hero-kicker { margin: 0 0 28px; color: var(--top-red); font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.hero h1 {
  max-width: 1050px;
  margin: 0;
  color: var(--top-ink);
  font-family: var(--top-serif);
  font-size: clamp(3.6rem, 8vw, 8rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.065em;
}
.hero h1 em { color: var(--top-red); font-style: normal; }
.hero h1 span { font-size: .53em; letter-spacing: -.04em; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; width: min(100%, 850px); margin-top: 45px; }
.hero-bottom > p { margin: 0; color: var(--top-ink-soft); font-size: clamp(.94rem, 1.4vw, 1.1rem); font-weight: 500; line-height: 1.9; }
.circle-link {
  display: flex;
  flex: 0 0 138px;
  flex-direction: column;
  justify-content: space-between;
  width: 138px;
  height: 138px;
  padding: 25px;
  color: var(--top-ink);
  border: 1px solid rgba(11, 27, 43, .62);
  border-radius: 50%;
  background: rgba(255, 254, 249, .35);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.55;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.circle-link b { align-self: flex-end; font-size: 1.2rem; }
.circle-link:hover { color: white; background: var(--top-red); border-color: var(--top-red); transform: translateY(-5px); }
.hero-index {
  position: absolute;
  z-index: 2;
  top: auto;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  color: white;
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .14em;
  writing-mode: initial;
}
.hero-index span { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(11, 27, 43, .14); backdrop-filter: blur(7px); }

@keyframes hero-in { from { opacity: .2; transform: scale(1.13); } to { opacity: 1; transform: scale(1.04); } }

/* ==========================================================================\n   DASS main 9: lower-page design and typography, unchanged in direction\n   ========================================================================== */
.dass-wordmark,
.company-mark {
  font-family: var(--brand-font);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.section-pad { padding: var(--section-gap) 28px; }
.section-shell,
.services-head,
.service-grid,
.footer-inner,
.site-footer > p,
.company-content {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--brand-font);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
}
.section-label span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
  font-size: .72rem;
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--orange);
  font-family: var(--brand-font);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.services { background: var(--bg-soft); border-top: 1px solid rgba(16,36,61,.05); }
.services-head { margin-bottom: 56px; text-align: center; }
.services-head .section-label { justify-content: center; }
.services-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.service {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.service-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--ink); border-radius: 34px 34px 0 0; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service:hover .service-media img { transform: scale(1.03); }
.service-index {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  color: var(--orange);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(231,90,60,.28);
  border-radius: 999px;
  font-family: var(--brand-font);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  box-shadow: 0 6px 16px rgba(16,36,61,.08);
}
.service-body { display: flex; flex-direction: column; padding: 34px 34px 38px; }
.service-kicker { margin-bottom: 18px; color: rgba(231,90,60,.55); font-family: var(--brand-font); font-size: .72rem; font-weight: 600; letter-spacing: .14em; }
.service-name { font-family: var(--sans); font-size: clamp(1.85rem, 2.8vw, 2.45rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.service-name .dass-wordmark { display: inline-block; margin-bottom: .12em; font-size: .82em; color: var(--ink); }
.service-catch {
  margin: 26px 0 20px;
  padding-left: 18px;
  border-left: 5px solid rgba(231,90,60,.46);
  color: var(--ink-soft);
  font-family: var(--top-serif);
  font-size: clamp(1.22rem, 1.6vw, 1.4rem);
  font-weight: 800;
  line-height: 1.55;
}
.service-desc { color: var(--muted); font-size: .95rem; line-height: 1.95; }
.service-features { display: grid; gap: 10px; margin: 28px 0 34px; }
.service-features li { position: relative; padding-left: 1.9em; color: var(--ink); font-size: .88rem; font-weight: 700; }
.service-features li::before { content: "—"; position: absolute; left: 0; top: 0; color: rgba(231,90,60,.7); font-weight: 700; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-top: auto;
  padding: 14px 26px;
  color: var(--orange);
  border: 2px solid rgba(231,90,60,.55);
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.service-link:hover { color: #fff; background: var(--orange); transform: translateY(-2px); }
.service-link span { font-size: 1rem; }

.service-media--career { display: flex; flex-direction: column; }
.career-photos { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; flex: 1; }
.career-photo { position: relative; overflow: hidden; margin: 0; }
.career-photo + .career-photo { border-left: 2px solid rgba(255,255,255,.9); }
.career-photo img { width: 100%; height: 100%; object-fit: cover; }
.career-photo--waseda img { object-position: center 46%; }
.career-photo--mcgill img { object-position: center 52%; }
.career-photo figcaption { position: absolute; right: 12px; bottom: 10px; z-index: 2; color: #fff; text-align: right; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.career-photo figcaption strong { display: block; font-size: .84rem; }
.career-photo figcaption span { font-family: var(--brand-font); font-size: .5rem; letter-spacing: .15em; }
.career-stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: #fff; background: linear-gradient(90deg, rgba(16,36,61,.98), rgba(16,36,61,.88)); }
.career-stat > span { display: inline-flex; align-items: center; padding: 6px 12px; background: var(--orange); border-radius: 999px; font-family: var(--brand-font); font-size: .6rem; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.career-stat > strong { font-family: var(--top-serif); font-size: clamp(1.08rem, 1.8vw, 1.38rem); font-weight: 600; line-height: 1.38; text-align: right; }
.service-career .service-kicker { color: rgba(207, 87, 66, .82); }

.philosophy { color: #fff; background: linear-gradient(180deg, #10243d 0%, #0d1d31 100%); }
.philosophy .section-label { color: rgba(255,255,255,.68); }
.philosophy .section-label span { background: rgba(231,90,60,.9); }
.philosophy-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .85fr); gap: 50px; }
.philosophy h2 { font-family: var(--serif); font-size: clamp(2.6rem, 4.5vw, 4rem); font-weight: 600; line-height: 1.42; }
.philosophy-copy { align-self: end; }
.philosophy-copy p { color: rgba(255,255,255,.76); font-size: .98rem; }
.philosophy-copy p + p { margin-top: 18px; }
.philosophy-copy p:first-child { color: #fff; font-size: 1.08rem; font-weight: 700; }

.company { position: relative; overflow: hidden; padding: var(--section-gap) 28px; background: var(--bg); }
.company-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); color: rgba(16,36,61,.045); font-size: clamp(8rem, 24vw, 24rem); pointer-events: none; }
.company-content { position: relative; z-index: 1; }
.company h2 { font-size: clamp(3rem, 5.6vw, 4.8rem); }
.company-tagline { margin: 8px 0 38px; color: var(--muted); font-family: var(--top-serif); font-size: 1rem; font-weight: 700; }
.company dl { border-top: 1px solid rgba(16,36,61,.12); }
.company dl div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(16,36,61,.12); }
.company dt { font-size: .78rem; font-weight: 800; letter-spacing: .05em; }
.company dd { color: var(--muted); }

.site-footer { padding: 60px 28px 30px; color: #fff; background: #10243d; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.footer-brand img { width: 46px; height: 46px; filter: invert(1); }
.footer-brand .dass-wordmark { font-size: 1.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-links a { padding: 10px 16px; background: rgba(255,255,255,.08); border-radius: 999px; font-size: .82rem; text-decoration: none; }
.footer-links a:hover { background: rgba(231,90,60,.95); }
.site-footer > p { margin-top: 18px; color: rgba(255,255,255,.56); font-size: .74rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .service-grid { gap: 24px; }
}

@media (max-width: 900px) {
  /* dass-main 2 top */
  .menu-button { position: relative; z-index: 95; display: grid; grid-template-columns: auto 22px; align-items: center; gap: 10px; color: inherit; }
  .menu-button span { grid-row: 1 / 3; font-size: .67rem; font-weight: 700; letter-spacing: .12em; }
  .menu-button i { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .25s ease; }
  .menu-button[aria-expanded="true"] i:first-of-type { transform: translateY(3px) rotate(45deg); }
  .menu-button[aria-expanded="true"] i:last-of-type { transform: translateY(-3px) rotate(-45deg); }
  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 90px 28px;
    color: white;
    background: var(--top-ink);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease;
    overflow-y: auto;
  }
  .global-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .global-nav a {
    font-family: var(--sans);
    font-size: 1.35rem;
    line-height: 1.3;
  }
  .global-nav a:nth-last-child(-n + 2) { font-size: 1.1rem; }
  .site-header.is-menu-open { color: white; background: transparent; border-color: transparent; }
  .hero-photo { inset: 47% 0 0; clip-path: none; background-position: center; }
  .hero-shade { background: linear-gradient(180deg, var(--top-paper) 0%, var(--top-paper) 45%, rgba(243, 240, 232, .9) 53%, rgba(11, 27, 43, .05) 72%, rgba(11, 27, 43, .3) 100%); }
  .hero-content { justify-content: flex-start; padding-top: 125px; }
  .hero-index { position: static; margin: -10px 0 18px; color: var(--top-ink-soft); font-size: .59rem; gap: 0; }
  .hero-index span { padding: 0; border: 0; background: transparent; backdrop-filter: none; }
  .hero-index span + span::before { margin: 0 10px; color: var(--top-red); content: "/"; }
  .hero h1 { max-width: 760px; font-size: clamp(3.5rem, 10vw, 6.3rem); }
  .hero-bottom { width: min(100%, 680px); }

  /* lower page from dass-main 9 */
  .service-grid,
  .philosophy-grid { grid-template-columns: 1fr; }
  .company dl div { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }

  /* dass-main 2 top */
  .site-header { padding: 17px 20px; }
  .brand-words { display: grid; }
  .brand small { display: none; }
  .brand > img { width: 42px; height: 42px; }
  .hero { min-height: 100svh; }
  .hero::after { bottom: 32%; font-size: 28vw; }
  .hero-photo { inset: 53% 0 0; background-position: 55% center; }
  .hero-shade { background: linear-gradient(180deg, var(--top-paper) 0%, var(--top-paper) 50%, rgba(243, 240, 232, .82) 59%, rgba(5, 17, 30, .12) 74%, rgba(5, 17, 30, .68) 100%); }
  .hero-content { justify-content: flex-start; padding: 108px 20px 40px; }
  .hero-kicker { margin-bottom: 20px; font-size: .62rem; }
  .hero h1 { font-size: clamp(3.05rem, 14.4vw, 4.6rem); line-height: 1.24; }
  .hero-bottom { position: absolute; right: 20px; bottom: 28px; left: 20px; display: flex; align-items: flex-end; gap: 14px; width: auto; margin: 0; }
  .hero-bottom > p { max-width: 225px; color: white; font-size: .9rem; font-weight: 600; line-height: 1.7; text-shadow: 0 2px 12px rgba(5,17,30,.8); }
  .circle-link { position: static; flex: 0 0 98px; width: 98px; height: 98px; padding: 17px; color: white; border-color: var(--top-red); background: var(--top-red); box-shadow: 0 10px 28px rgba(5,17,30,.2); backdrop-filter: none; }
  .circle-link b { font-size: 1.45rem; }

  /* lower page from dass-main 9 */
  .section-pad,
  .company,
  .site-footer { padding-left: 18px; padding-right: 18px; }
  .services-head { text-align: left; }
  .services-head .section-label { justify-content: flex-start; }
  .services-head h2 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .service-body { padding: 28px 24px 30px; }
  .service-name { font-size: clamp(2rem, 9vw, 2.4rem); }
  .service-catch { font-size: 1.18rem; }
  .career-stat { flex-direction: row; align-items: center; gap: 10px; padding: 13px 16px; }
  .career-stat > span { padding: 6px 10px; font-size: .56rem; }
  .career-stat > strong { font-size: 1.02rem; text-align: right; }
  .philosophy h2 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
