/* camistrellaweb.com - Stardust (light) */
:root {
  --bg: #F7F8FA;
  --panel: #FFFFFF;
  --ink: #262A32;
  --body-text: #3D434D;
  --muted: #6E7684;
  --line: #DCE0E6;
  --line-soft: #E9ECF1;
  --accent: #8E7BD8;
  --radius: 20px;
  --shell: 1160px;
  --display: 'Oxanium', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Tomorrow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; }
h2 { font-weight: 600; font-size: clamp(1.45rem, 2.9vw, 2.05rem); line-height: 1.15; margin: 0 0 .7rem; }
p { margin: 0 0 1rem; }
.eyebrow { font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .18em;
           text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.eyebrow .num { color: var(--ink); }
.section-sub { color: var(--muted); max-width: 60ch; margin: 0 0 1.9rem; }
.note { color: var(--muted); font-size: .87rem; margin: 1.1rem 0 0; max-width: 68ch; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 250, .92);
               border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
                padding: .78rem 24px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em;
            text-transform: uppercase; text-decoration: none; color: var(--ink); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav-links { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .84rem; letter-spacing: .04em;
               padding: .28rem .6rem; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--ink); color: #FBFCFD;
       font-family: var(--display); font-weight: 600; font-size: .92rem; letter-spacing: .02em;
       border-radius: 999px; padding: .72rem 1.35rem; text-decoration: none;
       transition: background .18s ease, transform .18s ease; }
.btn:hover { background: #3B424E; transform: translateY(-1px); }
.btn-sm { padding: .42rem 1rem; font-size: .8rem; }

/* hero */
.hero { position: relative; padding: 2.2rem 0 2rem; overflow: hidden; }
.stardust { position: absolute; inset: 0; pointer-events: none; }
.stardust::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(110, 118, 132, .16) 1px, transparent 1.2px);
  background-size: 26px 26px; opacity: .5;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 72%); }
.meteor { position: absolute; height: 1px; transform: rotate(-19deg); }
.meteor::after { content: ""; position: absolute; top: -1.5px; right: -2px; width: 4px; height: 4px;
                 border-radius: 50%; background: var(--muted); }
.m1 { top: 46px; right: -40px; width: 420px; background: linear-gradient(270deg, rgba(38, 42, 50, .62), rgba(38, 42, 50, 0) 96%); }
.m2 { top: 318px; left: -60px; width: 300px; transform: rotate(-19deg) scaleX(-1);
      background: linear-gradient(270deg, rgba(110, 118, 132, .5), rgba(110, 118, 132, 0) 94%); }
.m2::after { right: auto; left: -2px; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-kicker { font-family: var(--display); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
               color: var(--muted); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .55rem; }
.spark { width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
         box-shadow: 0 0 12px rgba(142, 123, 216, .55); flex: 0 0 auto; }
.hero-title { font-size: clamp(2.35rem, 5.4vw, 3.6rem); font-weight: 700; line-height: 1.02;
              letter-spacing: -.015em; margin: 0 0 .9rem; text-transform: uppercase; }
.hero-tagline { font-family: var(--display); font-weight: 500; font-size: 1.1rem; line-height: 1.45;
                color: var(--ink); max-width: 34ch; margin: 0 0 .8rem; }
.hero-intro { color: var(--body-text); max-width: 64ch; margin: 0 0 1.4rem; font-size: 1rem; }
.hero-cta { margin: 0 0 1.7rem; }
.hero-photo { margin: 0; width: 100%; max-width: 720px; padding: 10px; background: var(--panel);
              border: 1px solid var(--line); border-radius: var(--radius);
              box-shadow: 0 18px 44px rgba(38, 42, 50, .07); }
.hero-photo img { width: 100%; height: auto; border-radius: 13px; aspect-ratio: 3 / 2; object-fit: cover;
                  object-position: center 30%; }

/* sections */
.section { padding: 3rem 0; }
.section-partners { padding-top: 1.5rem; }
.section-last { padding-bottom: 4.3rem; }

/* partners */
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); gap: 16px;
                justify-content: center; }
.partner-card { display: flex; align-items: center; justify-content: center; width: 250px; height: 150px;
                background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
                transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.partner-card:hover { border-color: #BFC6D0; transform: translateY(-2px);
                      box-shadow: 0 12px 26px rgba(38, 42, 50, .08); }
.partner-card img { width: auto; height: auto; max-width: 188px; max-height: 66px; object-fit: contain; }

/* quick profile: thin-line grid */
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
             border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--panel); }
.fact { display: flex; flex-direction: column; gap: .25rem; padding: 1.05rem 1.15rem;
        border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact .k { font-family: var(--display); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
           color: var(--muted); }
.fact .v { font-size: .96rem; color: var(--ink); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 2.4rem; align-items: start; }
.about-text p { color: var(--body-text); }
.about-photo { margin: 0; padding: 8px; background: var(--panel); border: 1px solid var(--line);
               border-radius: var(--radius); }
.about-photo img { width: 100%; height: auto; border-radius: 13px; aspect-ratio: 4 / 3; object-fit: cover;
                   object-position: center 24%; }

/* career: stardust dot timeline */
.career-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 2.4rem; align-items: start; }
.dust { list-style: none; margin: 0; padding: 0; }
.dust li { position: relative; padding: 0 0 1.15rem 1.6rem; }
.dust li:last-child { padding-bottom: 0; }
.dust li::before { content: ""; position: absolute; left: 0; top: .58em; width: 7px; height: 7px;
                   border-radius: 50%; background: #C2C9D3;
                   box-shadow: 0 0 0 3px rgba(194, 201, 211, .22); }
.dust li::after { content: ""; position: absolute; left: 3px; top: 1.5em; bottom: .1rem;
                  border-left: 1px dotted #CBD2DB; }
.dust li:last-child::after { display: none; }
.dust .when { display: block; font-family: var(--display); font-weight: 600; font-size: .84rem;
              letter-spacing: .04em; color: var(--ink); margin-bottom: .12rem; }
.dust .what { display: block; color: var(--body-text); font-size: .95rem; }
.career-text p { color: var(--body-text); }

/* gallery: three staggered frames */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.gallery figure { margin: 0; padding: 8px; background: var(--panel); border: 1px solid var(--line);
                  border-radius: var(--radius); }
.gallery img { width: 100%; height: auto; border-radius: 13px; object-fit: cover; }
.gallery .g1 { margin-top: 0; }
.gallery .g2 { margin-top: 54px; }
.gallery .g3 { margin-top: 108px; }
.g1 img, .g2 img { aspect-ratio: 16 / 9; }
.g3 img { aspect-ratio: 3 / 4; }

/* social capsules */
.soc-wrap { display: flex; flex-wrap: wrap; gap: .6rem; }
.soc { display: inline-flex; align-items: baseline; gap: .55rem; background: var(--panel);
       border: 1px solid var(--line); border-radius: 999px; padding: .58rem 1.15rem;
       text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.soc:hover { border-color: #BFC6D0; box-shadow: 0 8px 20px rgba(38, 42, 50, .07); }
.soc-p { font-family: var(--display); font-weight: 600; font-size: .84rem; letter-spacing: .04em; }
.soc-h { color: var(--muted); font-size: .84rem; }

/* subpages */
.page-top { padding: 2.6rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2.4rem;
            background: linear-gradient(180deg, #FBFCFD, var(--bg)); }
.page-top h1 { font-size: clamp(1.85rem, 4.4vw, 2.7rem); font-weight: 600; line-height: 1.08;
               letter-spacing: -.015em; margin: .1rem 0 .85rem; }
.page-top .lead { color: var(--muted); max-width: 62ch; margin: 0; }
.reading { max-width: 78ch; }
.story { margin: 0 0 2.6rem; }
.story h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 0 0 .85rem; }
.story p { color: var(--body-text); }
.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { color: var(--body-text); padding: .6rem 0 .6rem 1.2rem; position: relative;
               border-bottom: 1px solid var(--line-soft); }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 1.2em; width: 6px; height: 6px;
                       border-radius: 50%; background: #C2C9D3; }
.credit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; margin-top: 1.3rem; }
.credit-col h3 { font-family: var(--display); font-weight: 600; font-size: .74rem; letter-spacing: .15em;
                 text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.credit-col ul { list-style: none; margin: 0; padding: 0; }
.credit-col li { color: var(--body-text); font-size: .91rem; padding: .32rem 0; border-bottom: 1px solid var(--line-soft); }
.stat-strip { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .5rem; }
.stat { border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
        padding: .9rem 1.3rem; min-width: 150px; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.stat span { color: var(--muted); font-size: .84rem; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.faq-list summary { font-family: var(--display); font-weight: 500; font-size: 1.03rem; line-height: 1.4;
                    cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--muted); font-family: var(--display); font-weight: 600; }
.faq-list details[open] summary::after { content: "-"; color: var(--ink); }
.faq-list .answer p { color: var(--body-text); margin: .7rem 0 0; max-width: 74ch; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #EFF1F5; padding: 2rem 0 2.3rem; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr auto; gap: 1.2rem; align-items: center; }
.footer-brand { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
              font-size: .95rem; }
.brand-line { color: var(--muted); font-size: .83rem; }
.language-nav { display: flex; flex-wrap: wrap; gap: .3rem .9rem; justify-content: center; }
.language-nav a { color: var(--muted); text-decoration: none; font-size: .86rem; }
.language-nav a:hover { color: var(--ink); }
.language-nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--ink); }
.footer-legal { color: var(--muted); font-size: .83rem; margin: 0; text-align: right; }

/* 404 */
.notfound { padding: 4.5rem 0 5.5rem; }
.notfound h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin: .2rem 0 .9rem; }

@media (max-width: 1040px) {
  .about-grid, .career-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credit-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .language-nav { justify-content: flex-start; }
  .footer-legal { text-align: left; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell, .header-inner { padding-left: 18px; padding-right: 18px; }
  .header-inner { gap: .55rem .8rem; }
  .nav-links { gap: .1rem .3rem; }
  .nav-links a { font-size: .8rem; padding: .24rem .42rem; }
  .hero { padding-top: 1.6rem; }
  .m1 { width: 260px; top: 22px; }
  .m2 { display: none; }
  .hero-photo { padding: 7px; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card { width: auto; height: 124px; }
  .partner-card img { max-width: 132px; max-height: 52px; }
  .fact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g1, .gallery .g2, .gallery .g3 { margin-top: 0; }
  .credit-grid { grid-template-columns: 1fr; }
  .section { padding: 2.3rem 0; }
  .soc-wrap { gap: .5rem; }
  .soc { padding: .5rem .95rem; }
}
