/* crystallustweb.com · Plaid */
:root {
  --bg: #1c2026;
  --bg2: #16181d;
  --panel: #20242b;
  --panel2: #242a33;
  --ink: #edf1f3;
  --soft: #cdd7dc;
  --muted: #9db0b8;
  --teal: #4a7a8a;
  --teal-hi: #8dbccb;
  --red: #b85a5a;
  --red-hi: #d69a9a;
  --line: #303945;
  --shell: 1160px;
  --display: 'Gochi Hand', 'Segoe Print', cursive;
  --body: 'Jura', system-ui, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: #1c2026; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, rgba(74, 122, 138, .05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(74, 122, 138, .05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(184, 90, 90, .045) 0 1px, transparent 1px 216px),
    repeating-linear-gradient(90deg, rgba(184, 90, 90, .045) 0 1px, transparent 1px 216px);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-hi); }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; margin: 0 0 .7rem; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); line-height: 1.1; }
h2::after {
  content: "";
  display: block;
  width: 78px;
  height: 5px;
  margin-top: .5rem;
  background: repeating-linear-gradient(90deg, rgba(74, 122, 138, .9) 0 12px, transparent 12px 20px, rgba(184, 90, 90, .85) 20px 28px, transparent 28px 42px);
}
.eyebrow { font-family: var(--display); font-size: .84rem; letter-spacing: .16em; text-transform: uppercase;
           color: var(--teal-hi); margin: 0 0 .45rem; }
.section-sub { color: var(--muted); max-width: 64ch; margin: 0 0 1.6rem; }
.note { color: var(--muted); font-size: .88rem; margin: 1rem 0 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg2);
               border-bottom: 1px solid var(--line); }
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 22px, #2a3038 22px 46px, var(--red) 46px 58px, #2a3038 58px 96px);
  opacity: .6;
}
.header-inner { display: flex; align-items: center; justify-content: space-between;
                gap: 1.1rem; padding: .62rem 24px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-size: 1.16rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.main-nav a { color: #c9d3d9; text-decoration: none; font-size: .9rem; padding: .12rem 0;
              border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #f2f6f7; }
.main-nav a[aria-current="page"] { color: #d69a9a; border-bottom-color: #b85a5a; }
.main-nav a.btn { color: #14181d; background: #d69a9a; }
.main-nav a.btn:hover { color: #14181d; background: #e4b3b3; }
.btn { display: inline-flex; align-items: center; background: #d69a9a; color: #14181d;
       font-family: var(--display); font-size: 1rem; border: 0; border-radius: 3px;
       padding: .68rem 1.25rem; text-decoration: none;
       box-shadow: 0 0 0 1px rgba(184, 90, 90, .45);
       transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn:hover { background: #e4b3b3; color: #14181d; box-shadow: 0 0 0 1px rgba(184, 90, 90, .8), 0 6px 22px rgba(0, 0, 0, .35); transform: translateY(-1px); }
.btn-sm { padding: .34rem .85rem; font-size: .86rem; }

/* hero */
.hero { padding: 2.5rem 0 2.1rem; }
.hero-grid { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(1.4rem, 3vw, 3rem);
             align-items: center; }
.hero-photo { margin: 0; border: 1px solid var(--line); background: var(--panel);
              padding: 10px; }
.hero-photo img { display: block; width: 100%; height: 560px; object-fit: cover; object-position: center 16%; }
.hero-plaid { position: absolute; right: 6px; bottom: 4px; width: 210px; height: 210px;
              color: var(--teal); opacity: .26; pointer-events: none; }
.hero-text { position: relative; z-index: 1; }
.hero-kicker { font-family: var(--display); font-size: .88rem; letter-spacing: .14em; text-transform: uppercase;
               color: var(--teal-hi); margin: 0 0 .8rem; }
.hero-title { font-size: clamp(3rem, 7vw, 5.1rem); line-height: .98; margin: 0 0 .9rem; }
.hero-title span { display: block; }
.hero-title .accent { color: var(--red-hi); }
.hero-tagline { font-family: var(--display); font-size: 1.3rem; line-height: 1.4; margin: 0 0 .8rem; max-width: 32ch; }
.hero-intro { color: var(--muted); max-width: 50ch; margin: 0 0 1.6rem; }

/* sections */
.section { padding: 2.9rem 0; }
.section-tight { padding-top: 1rem; }
.section-last { padding-bottom: 4rem; }

/* partners */
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); gap: 16px; }
.partner-card { display: flex; align-items: center; justify-content: center; width: 250px; height: 150px;
                border: 1px solid var(--line); border-top: 2px solid rgba(74, 122, 138, .65);
                background: var(--panel); transition: border-color .2s ease, transform .2s ease; }
.partner-card:hover { border-color: rgba(184, 90, 90, .8); border-top-color: var(--red); transform: translateY(-2px); }
.partner-card img { max-width: 188px; max-height: 68px; width: auto; height: auto; object-fit: contain; }

/* quick profile */
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.4rem, 4vw, 3.2rem); }
.fact { display: flex; align-items: baseline; justify-content: space-between; gap: 1.1rem;
        padding: .66rem 0; border-bottom: 1px solid var(--line); }
.fact .k { font-family: var(--display); color: var(--teal-hi); font-size: .84rem; letter-spacing: .04em; }
.fact .v { color: var(--ink); text-align: right; }

/* about */
.about-cols { columns: 2; column-gap: 2.4rem; margin-bottom: 1.9rem; }
.about-cols p { color: var(--soft); margin: 0 0 1rem; break-inside: auto; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); background: var(--panel); padding: 1.25rem 1.2rem 1.15rem; }
.card::before { content: ""; display: block; height: 5px; margin: -1.25rem -1.2rem 1rem;
                background: repeating-linear-gradient(90deg, rgba(74, 122, 138, .8) 0 14px, rgba(74, 122, 138, .22) 14px 24px, rgba(184, 90, 90, .75) 24px 34px, rgba(184, 90, 90, .18) 34px 58px); }
.card h3 { font-size: 1.22rem; margin: 0 0 .4rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* career + plaid-cross timeline */
.career-split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.career-text p { color: var(--soft); margin: 0 0 1rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 2px;
                    background: rgba(74, 122, 138, .6); }
.timeline li { position: relative; padding: 0 0 1.35rem 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -26px; right: 0; top: .72em; height: 1px;
                       background: rgba(184, 90, 90, .42); }
.timeline li::after { content: ""; position: absolute; left: -29px; top: calc(.72em - 4px); width: 8px; height: 8px;
                      background: var(--bg); border: 2px solid var(--teal-hi); box-sizing: border-box; }
.timeline .when { display: block; font-family: var(--display); font-size: .86rem; letter-spacing: .07em;
                  text-transform: uppercase; color: var(--teal-hi); margin-bottom: .16rem; }
.timeline .what { display: block; color: var(--soft); font-size: .97rem; }

/* gallery */
.gallery-wrap { max-width: 980px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery-grid .g { margin: 0; border: 1px solid var(--line); background: var(--panel2); padding: 10px; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.g-a img { object-position: center 14%; }
.g-b img { object-position: center 38%; }
.g-c img { object-position: center 26%; }
.g-d img { object-position: center 22%; }
.unit-row { display: flex; gap: 18px; margin-top: 18px; align-items: stretch; }
.unit { border: 1px solid var(--line); background: var(--panel2); padding: 10px; margin: 0; }
.unit-swatch { width: 148px; display: grid; place-items: center; }
.swatch-plaid { width: 100px; height: 100px; color: var(--teal); }
.unit-photo { width: 250px; }
.unit-photo img { display: block; width: 100%; height: auto; }

/* social */
.social-list { border-top: 1px solid var(--line); }
.social-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem;
              padding: 1.02rem .45rem; border-bottom: 1px solid var(--line); text-decoration: none;
              transition: background .2s ease, box-shadow .2s ease, padding .2s ease; }
.social-row .platform { font-family: var(--display); font-size: clamp(1.2rem, 2.5vw, 1.5rem); color: var(--ink); }
.social-row .handle { color: var(--muted); font-size: .93rem; }
.social-row:hover { background: var(--panel); box-shadow: inset 3px 0 0 var(--red); padding-left: .95rem; }
.social-row:hover .platform { color: var(--red-hi); }

/* subpages */
.page-top { padding: 2.4rem 0 1.3rem; border-bottom: 1px solid var(--line); margin-bottom: 2.2rem; }
.page-top h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.02; margin: .15rem 0 .7rem; }
.page-top .lead { color: var(--muted); max-width: 62ch; margin: 0; }
.reading { max-width: 76ch; }
.story { margin: 0 0 2.4rem; }
.story h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); margin: 0 0 .8rem; }
.story p { color: var(--soft); margin: 0 0 1rem; }
.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { color: var(--soft); padding: .55rem 0 .55rem 1.15rem; position: relative;
               border-bottom: 1px dashed #2b3440; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 1.18em; width: 7px; height: 7px;
                       background: var(--teal); }
.credit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem; margin-top: 1.2rem; }
.credit-col h3 { font-size: 1.1rem; margin: 0 0 .5rem; color: var(--teal-hi); }
.credit-col ul { list-style: none; margin: 0; padding: 0; }
.credit-col li { color: var(--soft); font-size: .93rem; padding: .34rem 0; border-bottom: 1px dashed #2b3440; }
.stat-strip { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .4rem; }
.stat { border: 1px solid var(--line); border-top: 2px solid rgba(74, 122, 138, .65); background: var(--panel);
        padding: .85rem 1.2rem; min-width: 158px; }
.stat b { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--red-hi); }
.stat span { color: var(--muted); font-size: .85rem; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-list summary { font-family: var(--display); font-size: 1.12rem; line-height: 1.35; 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(--teal-hi); }
.faq-list details[open] summary::after { content: "x"; color: var(--red-hi); }
.faq-list .answer p { color: var(--soft); margin: .65rem 0 0; max-width: 72ch; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); padding: 1.9rem 0 2.2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.28fr auto; gap: 1.1rem; align-items: center; }
.footer-brand { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-size: 1.05rem; }
.brand-line { color: var(--muted); font-size: .85rem; }
.language-nav { display: flex; flex-wrap: wrap; gap: .2rem .7rem; justify-content: center; }
.language-nav a { color: var(--muted); text-decoration: none; font-size: .85rem; }
.language-nav a:hover { color: var(--ink); }
.language-nav a[aria-current="page"] { color: var(--teal-hi); }
.footer-legal { color: var(--muted); font-size: .85rem; margin: 0; text-align: right; }

/* 404 */
.notfound { padding: 4.2rem 0 5rem; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-photo img { height: auto; aspect-ratio: 4 / 5; }
  .hero-plaid { width: 150px; height: 150px; right: 0; bottom: 0; }
  .career-split, .about-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .about-cols { columns: 1; }
  .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; }
  .main-nav { gap: .55rem .85rem; }
  .main-nav a { font-size: .84rem; }
  .hero { padding-top: 1.6rem; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card { width: auto; height: 122px; }
  .partner-card img { max-width: 132px; max-height: 54px; }
  .facts { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g { max-width: 540px; margin: 0 auto; width: 100%; }
  .gallery-grid .g-d { max-width: 498px; }
  .unit-row { justify-content: center; }
  .credit-grid { grid-template-columns: 1fr; }
  .social-row { flex-direction: column; gap: .15rem; }
  .section { padding: 2.3rem 0; }
}
@media (max-width: 420px) {
  .hero-title { font-size: 2.7rem; }
  .unit-photo { width: 200px; }
  .unit-swatch { width: 120px; }
  .swatch-plaid { width: 84px; height: 84px; }
}
