/* charlioweb.com · Terrarium */
:root {
  --sand: #f7f3e9;
  --sand-2: #f1ebdd;
  --surface: #fffdf7;
  --footer-bg: #efe9da;
  --ink: #232b26;
  --text: #3f4a43;
  --muted: #5d6a60;
  --glass: #5b8a8a;
  --glass-deep: #35605e;
  --glass-deeper: #264b4a;
  --glass-text: #3f6b68;
  --moss: #6b8a5a;
  --moss-text: #4e6b45;
  --line: #ded5c2;
  --l-sand: #e2d3b2;
  --l-moss: #6b8a5a;
  --l-glass: #5b8a8a;
  --l-deep: #3f5b50;
  --radius: 20px;
  --shell: 1140px;
  --display: 'Pompiere', 'Tenali Ramakrishna', system-ui, sans-serif;
  --body: 'Tenali Ramakrishna', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--sand); }
body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: .01em; margin: 0 0 .6rem; }
h3 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 .35rem; }
.eyebrow { font-family: var(--display); font-size: .98rem; letter-spacing: .16em; text-transform: uppercase;
           color: var(--glass-text); margin: 0 0 .55rem; }
.sub { color: var(--muted); max-width: 64ch; margin: 0 0 1.8rem; }
.note { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }

/* layered strips */
.layer-strip { display: flex; height: 4px; }
.layer-strip span { flex: 1; }
.layer-strip-slim { height: 3px; max-width: var(--shell); margin: 0 auto; }
.l1 { background: var(--l-sand); }
.l2 { background: var(--l-moss); }
.l3 { background: var(--l-glass); }
.l4 { background: var(--l-deep); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #f9f5ec;
               border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between;
                gap: 1.2rem; padding: .75rem 24px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-size: 1.45rem; letter-spacing: .02em;
            text-decoration: none; color: var(--ink); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 1.05rem; flex-wrap: wrap; }
.main-nav a { color: #48544a; text-decoration: none; font-size: .95rem; }
.main-nav a:hover { color: #232c26; }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--glass); }
.btn { display: inline-flex; align-items: center; background: var(--glass-deep); color: #fdfbf3;
       font-family: var(--body); font-size: 1rem; border-radius: 999px; padding: .62rem 1.25rem;
       text-decoration: none; transition: background .18s ease, transform .18s ease; }
.btn:hover { background: var(--glass-deeper); color: #ffffff; transform: translateY(-1px); }
.btn-sm { padding: .38rem .95rem; font-size: .9rem; }
.btn-lg { padding: .8rem 1.7rem; font-size: 1.08rem; }
.main-nav a.btn { color: #fdfbf3; }
.main-nav a.btn:hover { color: #ffffff; background: var(--glass-deeper); }

/* hero */
.hero { padding: 2.6rem 0 1.6rem; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 3rem; align-items: center; }
.hero-kicker { font-family: var(--display); font-size: 1rem; letter-spacing: .14em;
               text-transform: uppercase; color: var(--moss-text); margin: 0 0 .9rem; }
.hero-title { font-size: clamp(3rem, 8vw, 5.4rem); line-height: .96; margin: 0 0 .9rem; letter-spacing: .015em; }
.hero-tagline { font-family: var(--display); font-size: 1.5rem; line-height: 1.25; color: var(--ink);
                margin: 0 0 .8rem; max-width: 26ch; }
.hero-intro { color: var(--text); max-width: 54ch; margin: 0 0 1.6rem; }
.jar { margin: 0; max-width: 500px; margin-left: auto; margin-right: auto; padding: 14px 14px 16px;
       border: 1px solid rgba(91, 138, 138, .42);
       border-radius: 210px 210px 26px 26px;
       background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 253, 247, .38) 58%, rgba(107, 138, 90, .1));
       box-shadow: 0 16px 50px rgba(53, 96, 94, .16), inset 0 1px 0 rgba(255, 255, 255, .9); }
.jar-glass { border-radius: 196px 196px 16px 16px; overflow: hidden; background: var(--sand-2); }
.jar-glass img { display: block; width: 100%; height: auto; }
.jar-layers { display: flex; margin-top: 12px; border-radius: 999px; overflow: hidden; }
.jar-layers span { flex: 1; height: 10px; }

/* sections */
.section { padding: 3rem 0; }
.section-tight { padding-top: 1.2rem; }
.section-last { padding-bottom: 4.2rem; }

/* 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-radius: 16px; background: var(--surface);
                transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.partner-card:hover { border-color: rgba(91, 138, 138, .55); box-shadow: 0 10px 26px rgba(53, 96, 94, .14);
                      transform: translateY(-2px); }
.partner-card img { max-width: 188px; max-height: 66px; width: auto; height: auto; object-fit: contain; }

/* strata (quick profile) */
.strata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.stratum { position: relative; padding: 30px 22px 22px; border: 1px solid var(--line);
           border-radius: 18px 18px 24px 24px; background: var(--surface);
           box-shadow: 0 10px 30px rgba(63, 91, 80, .07); }
.stratum:nth-child(2) { margin-top: 26px; }
.stratum:nth-child(3) { margin-top: 52px; }
.stratum-band { position: absolute; left: 18px; right: 18px; top: 0; height: 6px; border-radius: 0 0 6px 6px; }
.s1 .stratum-band { background: var(--glass); }
.s2 .stratum-band { background: var(--moss); }
.s3 .stratum-band { background: #cbb184; }
.strata-sub { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }
.strata-list { margin: 0; padding: 0; }
.strata-list dt { font-family: var(--display); font-size: .92rem; letter-spacing: .1em; text-transform: uppercase;
                  color: var(--muted); margin-top: .85rem; }
.strata-list dt:first-child { margin-top: 0; }
.strata-list dd { margin: .1rem 0 0; color: var(--ink); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.45fr .95fr; gap: 2.8rem; align-items: start; }
.about-copy p { margin: 0 0 1.05rem; color: var(--text); }
.plaque { position: relative; padding: 2rem 1.6rem 0; border: 1px solid rgba(91, 138, 138, .35);
          border-radius: 22px; background: linear-gradient(180deg, var(--surface), #f5f0e1);
          box-shadow: 0 14px 40px rgba(53, 96, 94, .1); }
.plaque-quote { font-family: var(--display); font-size: 1.55rem; line-height: 1.3; color: var(--ink); margin: 0 0 .6rem; }
.plaque-src { color: var(--muted); font-size: .9rem; margin: 0 0 1.4rem; }
.plaque-layers { display: flex; margin: 0 -1.6rem; border-radius: 0 0 21px 21px; overflow: hidden; }
.plaque-layers span { flex: 1; height: 9px; }

/* timeline (layered lines) */
.career-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.8rem; align-items: start; }
.career-copy p { margin: 0 0 1rem; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 13px 0 13px 20px; border-top: 1px solid var(--line); }
.tl li::before { content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 5px;
                 border-radius: 3px; background: var(--l-glass); }
.tl li:nth-child(3n+2)::before { background: var(--l-moss); }
.tl li:nth-child(3n)::before { background: #cbb184; }
.tl .w { display: block; font-family: var(--display); font-size: 1.08rem; letter-spacing: .05em; color: var(--ink); }
.tl .t { display: block; color: var(--text); font-size: .98rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.plate { margin: 0; padding: 16px 16px 0; border: 1px solid var(--line); border-radius: 20px;
         background: var(--surface); box-shadow: 0 12px 34px rgba(63, 91, 80, .07); justify-self: center; }
.plate img { display: block; width: auto; max-width: 100%; height: auto; border-radius: 12px; }
.plate-foot { display: flex; margin: 14px -16px 0; border-radius: 0 0 19px 19px; overflow: hidden; }
.plate-foot span { flex: 1; height: 8px; }
.g-wide { grid-column: 1 / -1; width: min(792px, 100%); }
.g-1 { width: min(432px, 100%); }
.g-2 { width: min(232px, 100%); }
.g-4 { width: min(176px, 100%); }
.g-5 { width: min(176px, 100%); }

/* social */
.social-list { border-top: 1px solid var(--line); }
.social-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem;
              padding: .95rem .45rem; border-bottom: 1px solid var(--line); text-decoration: none;
              transition: background .18s ease, padding-left .18s ease; }
.social-row .p { font-family: var(--display); font-size: 1.4rem; color: var(--ink); }
.social-row .h { color: var(--muted); font-size: .95rem; }
.social-row:hover { background: #f3eede; padding-left: .9rem; }
.social-row:hover .p { color: var(--glass-deep); }

/* subpages */
.page-top { padding: 2.4rem 0 0; margin-bottom: 2.2rem; }
.page-top h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); line-height: 1.02; margin: .1rem 0 .7rem; }
.page-top .lead { color: var(--muted); max-width: 66ch; margin: 0 0 1.5rem; }
.reading { max-width: 78ch; padding-bottom: 1.4rem; }
.story { margin: 0 0 2.3rem; }
.story h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); margin: 0 0 .7rem; }
.story p { margin: 0 0 1rem; }
.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { padding: .55rem 0 .55rem 1.1rem; position: relative; border-bottom: 1px solid var(--line); }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 7px; height: 7px;
                       border-radius: 50%; background: var(--glass); }
.credit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; margin-top: 1.2rem; }
.credit-col h3 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--moss-text);
                 margin: 0 0 .5rem; }
.credit-col ul { list-style: none; margin: 0; padding: 0; }
.credit-col li { font-size: .95rem; padding: .34rem 0; border-bottom: 1px solid var(--line); }
.mile-strip { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .4rem; }
.mile { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: .85rem 1.2rem; min-width: 150px; }
.mile b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--glass-deep); }
.mile span { color: var(--muted); font-size: .9rem; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-list summary { font-family: var(--display); font-size: 1.22rem; line-height: 1.35; color: var(--ink);
                    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(--glass-deep); font-family: var(--body); }
.faq-list details[open] summary::after { content: "·"; color: var(--moss); }
.faq-list .answer p { margin: .65rem 0 0; max-width: 74ch; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--footer-bg); padding: 1.9rem 0 2.2rem; }
.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-size: 1.25rem; color: var(--ink); }
.brand-line { color: #55605a; font-size: .9rem; }
.language-nav { display: flex; flex-wrap: wrap; gap: .3rem .9rem; justify-content: center; }
.language-nav a { color: #48544a; text-decoration: none; font-size: .92rem; }
.language-nav a:hover { color: var(--ink); }
.language-nav a[aria-current="page"] { color: var(--glass-deep); }
.footer-legal { color: #55605a; font-size: .9rem; margin: 0; text-align: right; }

/* 404 */
.notfound { padding: 4.2rem 0 5.2rem; }
.notfound h1 { font-size: clamp(2.2rem, 5.4vw, 3.2rem); margin: .1rem 0 .7rem; }
.notfound .lead { color: var(--muted); max-width: 60ch; margin: 0 0 1.5rem; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid, .career-grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .strata { grid-template-columns: 1fr; gap: 16px; }
  .stratum:nth-child(2), .stratum:nth-child(3) { margin-top: 0; }
  .jar { max-width: 420px; }
  .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: 16.5px; }
  .shell, .header-inner { padding-left: 18px; padding-right: 18px; }
  .main-nav { gap: .65rem .9rem; }
  .main-nav a { font-size: .9rem; }
  .hero { padding-top: 1.8rem; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-tagline { font-size: 1.3rem; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card { width: auto; height: 122px; }
  .partner-card img { max-width: 132px; max-height: 52px; }
  .jar { max-width: 360px; padding: 10px 10px 12px; border-radius: 150px 150px 20px 20px; }
  .jar-glass { border-radius: 140px 140px 12px 12px; }
  .gallery { grid-template-columns: 1fr; }
  .g-wide, .g-1, .g-2, .g-4, .g-5 { grid-column: 1; }
  .credit-grid { grid-template-columns: 1fr; }
  .social-row { flex-direction: column; gap: .15rem; }
  .section { padding: 2.3rem 0; }
}
