:root {
  --ink: #17232d;
  --muted: #60707b;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #d9e0dc;
  --brand: #087f73;
  --brand-dark: #07564f;
  --warm: #ec704d;
  --shadow: 0 18px 50px rgba(26, 53, 51, .1);
  --max: 1160px;
}

[data-theme="dark"] {
  --ink: #edf5f1;
  --muted: #a9bab5;
  --paper: #111b1d;
  --surface: #192527;
  --line: #304143;
  --brand: #63d8c4;
  --brand-dark: #a0f0df;
  --warm: #ff9b78;
  --shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Trebuchet MS", Verdana, sans-serif; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 91%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 76px; width: min(calc(100% - 40px), var(--max)); margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px 9px 9px 2px; background: var(--brand); display: grid; place-items: center; color: var(--paper); font-size: .9rem; }
.brand-logo { display: block; height: 42px; width: 42px; max-width: 42px; padding: 8px; border-radius: 8px; background: linear-gradient(135deg, #0d1b1d, #12333a); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); object-fit: contain; }
.brand-name { color: var(--ink); font-size: 1rem; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .lang-button, .menu-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; min-width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: inherit; }
.lang-button { border-radius: 18px; padding: 0 10px; font-size: .73rem; font-weight: 900; }
.menu-button { display: none; }

main { overflow: hidden; }
.hero { padding: 110px 0 90px; position: relative; }
.hero::before { content: ""; position: absolute; width: 380px; height: 380px; right: -110px; top: 40px; background: radial-gradient(circle, rgba(8,127,115,.2), transparent 68%); pointer-events: none; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 900; }
.eyebrow.inverted { color: rgba(239, 255, 249, .8); }
h1, h2, h3 { line-height: 1.08; margin: 0 0 20px; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 8vw, 6.8rem); max-width: 820px; }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: 1.3rem; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 650px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 5px; background: var(--brand); color: var(--paper); text-decoration: none; font-weight: 900; border: 1px solid var(--brand); box-shadow: 0 10px 25px rgba(8,127,115,.18); }
.button:hover { filter: brightness(1.03); }
.button.alt { background: transparent; color: var(--brand); }
.section { padding: 64px 0; }
.section.tinted { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 38px; }
.section-head p { max-width: 500px; margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.about-cards .card { grid-column: span 2; display: flex; flex-direction: column; height: 100%; }
.about-cards .card p { margin-top: auto; }
.about-cards .card:nth-child(4) { grid-column: 2 / span 2; }
.about-cards .card:nth-child(5) { grid-column: 4 / span 2; }
.about-cards.about-direction .card:nth-child(1) { grid-column: 2 / span 2; }
.about-cards.about-direction .card:nth-child(2) { grid-column: 4 / span 2; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.team-card { display: flex; flex-direction: column; align-items: stretch; height: 100%; }
.team-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.team-photo { display: block; flex: 0 0 72px; width: 72px; height: 72px; aspect-ratio: 1; margin: 0; border: 2px solid var(--line); border-radius: 50%; object-fit: cover; }
.team-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.team-card .team-role { margin: 0; color: var(--brand); font-weight: 800; }
.team-card .team-bio { margin: 0; line-height: 1.65; }
.team-socials { margin-top: auto; padding-top: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow); border-radius: 18px; }
.app-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); }
.app-tile { display: flex; flex-direction: column; align-items: flex-start; }
.app-logo { display: grid; place-items: center; width: 60%; aspect-ratio: 1; overflow: hidden; margin: -28px auto 24px; background: #dcece5; }
.app-logo img { width: auto; height: 80%; max-width: 80%; padding: 0; object-fit: contain; }
.app-tile .button-row { width: 100%; margin-top: auto; justify-content: space-between; }
.app-tile .button-row > a[href*="play.google.com"] { display: inline-flex; align-items: center; height: 46px; }
.app-tile .button-row > a[href*="play.google.com"] img { width: auto; height: 46px; max-width: 100%; }
.card p, .review p, .content p, .content li { color: var(--muted); }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 12px; background: rgba(8,127,115,.08); color: var(--brand); }
.service-icon svg { width: 22px; height: 22px; fill: currentColor; }
.quality { background: var(--brand-dark); color: #effff9; padding: 35px 0; }
.quality-inner { display: flex; align-items: end; justify-content: space-between; gap: 26px; }
.quality h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.quality p { max-width: 800px; margin: 0; color: #d6eee8; }
[data-theme="dark"] .quality { background: #07564f; color: #effff9; }
.product { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; align-items: center; }
.product-image { width: 60%; justify-self: center; background: linear-gradient(145deg, #e5f1ec, #b8ddd1); padding: 24px; border-radius: 20px; box-shadow: var(--shadow); }
.product-image img { width: 100%; margin-inline: auto; }
[data-theme="dark"] .product-image { background: #233b3b; }
.stats { display: flex; gap: 30px; flex-wrap: wrap; margin: 30px 0; }
.stat strong { display: block; font-size: 1.8rem; color: var(--brand); }
.stat span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.reviews { overflow: hidden; width: 100%; padding-bottom: 8px; }
.reviews-track { display: flex; align-items: stretch; width: max-content; will-change: transform; transform: translate3d(0, 0, 0); transition: transform .7s ease; }
.reviews-set { display: flex; gap: 18px; padding-right: 18px; }
.review-counter { display: block; width: max-content; margin: 0 0 12px auto; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.review { flex: 0 0 clamp(280px, 31vw, 360px); min-height: 230px; margin-right: 18px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); padding: 22px; overflow: visible; }
.review p { flex: 1; color: var(--ink); line-height: 1.7; }
.review strong { display: block; margin-top: 18px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.stars { color: var(--warm); letter-spacing: .12em; }
.page-hero { padding: 92px 0 42px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.7rem); }
body[data-page="contact"] .page-hero { padding: 64px 0 28px; }
body[data-page="contact"] main > .section { padding-top: 40px; }
body[data-page="about"] .page-hero h1 { font-size: clamp(2rem, 4vw, 3.7rem); }
body[data-page="about"] .page-hero { padding: 72px 0 34px; }
body[data-page="about"] main > .section { padding: 48px 0; }
body[data-page="about"] .section-head { margin-bottom: 30px; }
body[data-page="grievance"] .page-hero { padding: 56px 0 24px; }
body[data-page="grievance"] main > .section { padding: 24px 0; }
body[data-page="grievance"] .content { padding: 0 0 40px; }
body[data-page="grievance"] .content h2 { margin-top: 28px; margin-bottom: 12px; font-size: 1.65rem; }
body[data-page="grievance"] .content h2:first-child { margin-top: 0; }
body[data-page="grievance"] .grievance-contact-details { margin: 22px 0 26px; }
body[data-page="grievance"] .grievance-preferred { margin-bottom: 8px; color: var(--ink); }
body[data-page="grievance"] .grievance-email { margin-bottom: 10px; }
body[data-page="grievance"] .grievance-secondary { margin: 0; font-size: .9rem; }
body[data-page="grievance"] .grievance-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 32px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
body[data-page="grievance"] .grievance-meta p { margin: 0; color: var(--ink); line-height: 1.7; }
body[data-page="grievance"] .grievance-meta strong { display: block; margin-bottom: 6px; color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.page-hero .container:has(> .button-row a[href*="play.google.com"] img) { position: relative; min-height: 200px; padding-right: 220px; }
.page-hero .container:has(> .button-row a[href*="play.google.com"] img)::before { content: ""; position: absolute; top: 50%; right: 0; width: 180px; aspect-ratio: 1; transform: translateY(-50%); border-radius: 8px; background: #dcece5 url("../images/gridapp4artists.svg") center / 80% no-repeat; }
.app-page-links { padding: 32px 0 48px; }
.app-page-links .button-row { justify-content: center; margin-top: 0; }
.content { padding: 70px 0 100px; max-width: 860px; }
.content h2 { margin-top: 50px; font-size: 2rem; }
.content h3 { margin-top: 34px; }
.content ul { padding-left: 22px; }
.terms-content { padding-top: 48px; padding-bottom: 72px; }
.terms-content h2 { margin-top: 42px; font-size: 1.7rem; }
.terms-content h2:first-of-type { margin-top: 0; }
.terms-content p, .terms-content li { color: var(--muted); line-height: 1.75; }
.terms-content ol { padding-left: 24px; }
.terms-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.events-current { padding: 38px 0 48px; }
.events-current .section-head { margin-bottom: 20px; }
.events-empty { display: grid; grid-template-columns: minmax(180px, .7fr) 1fr; align-items: center; gap: 24px; padding: 20px 0; border-block: 1px solid var(--line); }
.events-empty strong { color: var(--brand); }
.events-empty p { margin: 0; color: var(--muted); }
.events-archive { padding: 52px 0 64px; }
.events-archive .section-head { margin-bottom: 28px; }
.past-event-list { margin: 0; padding: 0; list-style: none; }
.event-feature { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.event-art { display: grid; place-items: center; min-height: 280px; padding: 24px; background: #e7efe8; }
.event-art img { display: block; width: min(100%, 280px); aspect-ratio: 1; object-fit: contain; }
.event-copy { align-self: center; padding: 34px; }
.event-meta { color: var(--brand); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.event-copy h3 { margin: 10px 0 12px; font-size: 2rem; }
.event-copy p { max-width: 560px; margin: 0; color: var(--muted); }
.event-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.event-links .button { min-height: 42px; padding: 0 14px; font-size: .85rem; }
.event-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.event-highlights .card { padding: 22px; border-radius: 12px; box-shadow: none; }
.event-highlights h3 { margin-bottom: 8px; }
.event-highlights p { margin: 0; color: var(--muted); }
.gridfest-copy { max-width: 860px; }
.gridfest-copy p, .gridfest-intro { color: var(--muted); line-height: 1.8; }
.gridfest-highlight-list { padding-left: 22px; color: var(--muted); line-height: 1.8; }
.gridfest-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gridfest-steps .card { padding: 22px; border-radius: 12px; box-shadow: none; }
.gridfest-steps h3 { margin-bottom: 10px; }
.gridfest-steps p { margin: 0 0 12px; color: var(--muted); line-height: 1.7; }
.gridfest-steps p:last-child { margin-bottom: 0; }
.gridfest-steps a, .gridfest-prize-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.gridfest-winning-criteria { max-width: 760px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.gridfest-winning-criteria h3 { margin-bottom: 10px; }
.gridfest-winning-criteria p, .gridfest-winning-criteria li { color: var(--muted); line-height: 1.7; }
.gridfest-prize-note { max-width: 860px; margin: 26px 0 0; color: var(--muted); line-height: 1.7; }
.event-prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.event-prize { padding: 18px; border-radius: 10px; box-shadow: none; }
.event-prize img { display: block; width: 100%; height: 150px; margin-bottom: 16px; border-radius: 6px; background: var(--surface); object-fit: contain; }
.event-prize > span { color: var(--brand); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.event-prize h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.event-prize ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.event-prize li + li { margin-top: 4px; }
.event-terms { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.event-terms summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; color: var(--ink); font-weight: 900; cursor: pointer; list-style: none; }
.event-terms[open] summary { border-bottom: 1px solid var(--line); }
.event-terms summary::-webkit-details-marker { display: none; }
.event-terms summary::after { content: "+"; display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); font-size: 1.15rem; }
.event-terms[open] summary::after { content: "−"; border-color: var(--brand); background: var(--brand); color: var(--paper); }
.event-terms summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.event-terms-content { padding: 0 24px; background: var(--surface); }
.event-terms .terms-content { max-width: 860px; margin: 0 auto; padding: 24px 0 36px; }
.event-terms .terms-content h2 { margin-top: 32px; font-size: 1.45rem; }
.event-terms .terms-content h2:first-of-type { margin-top: 0; }
.event-terms .terms-content p, .event-terms .terms-content li { color: var(--muted); line-height: 1.75; }
.event-terms .terms-content ol { padding-left: 24px; }
.event-terms .terms-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.gridfest-page .container { padding-inline: 8px; }
.gridfest-hero .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); align-items: center; gap: 38px; }
.gridfest-hero-image { display: block; width: 100%; max-width: 360px; aspect-ratio: 4 / 3; justify-self: end; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); object-fit: contain; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
.contact-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item strong { display: block; color: var(--brand); margin-bottom: 8px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-item strong.contact-name { color: var(--ink); margin-bottom: 12px; font-size: 1.25rem; letter-spacing: 0; text-transform: none; }
.contact-item p,
.contact-item a,
.contact-item address { margin: 0; color: var(--ink); text-decoration: none; font-style: normal; line-height: 1.7; }
.contact-item p { color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials a { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 900; transition: transform .2s ease, filter .2s ease; }
.socials a:hover { transform: translateY(-2px); filter: brightness(1.15); }
.social-icon svg { width: 14px; height: 14px; display: block; fill: currentColor; }
.social-icon span { line-height: 1; }
.social-instagram { background: #e4405f; }
.social-x { background: #111; }
.social-linkedin { background: #0a66c2; }
.social-youtube { background: #ff0000; }
.social-discord { background: #5865f2; }
.social-telegram { background: #229ed9; }
.social-whatsapp { background: #25d366; }
.social-website { background: var(--brand); }
.site-footer { background: #102125; color: #e9f4ef; padding: 65px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 35px; }
.site-footer .brand { color: #fff; }
.site-footer p, .site-footer address { color: #a8c1bb; font-style: normal; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .02em; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: #a8c1bb; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-contact-links { margin-bottom: 18px; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; color: #edf4f2 !important; font-weight: 700; letter-spacing: .02em; }
.footer-email-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.09); font-size: .7rem; }
.footer-email:hover { color: #fff !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid #2b4446; margin-top: 45px; padding-top: 18px; color: #809b95; font-size: .8rem; }
.footer-bottom > span { flex: 1 1 auto; }
.footer-bottom > span:last-child { text-align: right; }
.footer-bottom a { color: inherit; margin-left: 15px; }

@media (max-width: 820px) {
  .nav-wrap { min-height: 66px; }
  .menu-button { display: grid; margin-left: auto; border-radius: 5px; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 18px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 11px 0; }
  .nav-actions { position: absolute; right: 60px; top: 15px; }
  .hero { padding: 72px 0 70px; }
  .grid, .reviews, .footer-grid, .contact-grid { grid-template-columns: 1fr; }
  .events-empty, .event-feature, .event-highlights, .event-prizes { grid-template-columns: 1fr; }
  .event-art { min-height: 190px; }
  .event-art img { width: 190px; }
  .event-copy { padding: 24px; }
  .gridfest-hero .container { grid-template-columns: 1fr; }
  .gridfest-hero-image { justify-self: start; max-width: 280px; }
  .about-cards { grid-template-columns: 1fr; }
  .about-cards .card, .about-cards .card:nth-child(1), .about-cards .card:nth-child(2), .about-cards .card:nth-child(4), .about-cards .card:nth-child(5) { grid-column: auto; }
  .product { grid-template-columns: 1fr; gap: 35px; }
  .page-hero .container:has(> .button-row a[href*="play.google.com"] img) { display: flex; flex-direction: column; align-items: flex-start; min-height: 0; padding-right: 0; }
  .page-hero .container:has(> .button-row a[href*="play.google.com"] img)::before { position: relative; order: -1; top: auto; right: auto; width: 132px; margin: 0 auto 24px; transform: none; }
  .section-head { display: block; }
  .section-head p { margin-top: 15px; }
}
