/* Parts in this file: 1 Forms, footer and pop-up | 3 Sign-up page | 4 Venues page | 5 Why, how it works, team, waitlist. See README. */

/* ===== PART 1 (Menula De Pinto) · SHARED FORM PARTS: screen-reader-only text, text boxes (.control), labels (.field), tick boxes (.check). ===== */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.btn svg{width:18px;height:18px;margin-right:8px}
.btn-lg{min-height:54px}
.control{width:100%;min-height:48px;padding:0 14px;font-size:1rem;background-color:var(--surface);color:var(--ink);border:1px solid var(--line-strong);border-radius:12px;transition:border-color 180ms ease}
.control::placeholder{color:var(--muted)}
.control:focus-visible{outline:2px solid var(--light);outline-offset:2px;border-color:var(--light)}
.field{display:grid;gap:6px;font-size:.88rem;color:var(--ink-2)}
.stack{display:grid;gap:14px}
.muted-p{color:var(--ink-2);margin-top:6px}
.check{display:flex;gap:10px;align-items:flex-start;font-size:.92rem;min-height:44px;padding-top:4px}
.check input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--light);flex:none}
.done-line{display:flex;gap:8px;align-items:center;font-size:.94rem;color:var(--light)}
.done-line svg{flex:none}

/* ===== PART 1 (Menula De Pinto) · FOOTER: the name and copyright on the left, four columns of links on the right,
   and the name again as one big outlined word underneath. ===== */
/* A soft white glow rising from the bottom edge of the footer, behind the big name. */
.footer{isolation:isolate}
.footer::after{content:"";position:absolute;z-index:-1;left:50%;bottom:-250px;width:min(1300px,140vw);height:440px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.3),transparent)}
.footer-in{display:flex;justify-content:space-between;align-items:flex-start;gap:40px clamp(32px,6vw,96px);flex-wrap:wrap}
.footer-brand strong{display:block;margin-bottom:14px;font:700 1rem/1.2 var(--sans);color:var(--light)}
.footer-brand p{font-size:.92rem;line-height:2;color:var(--muted)}
.footer-cols{display:grid;grid-template-columns:repeat(4,auto);gap:28px clamp(32px,5vw,72px)}
.footer-cols strong{display:block;margin-bottom:8px;font:700 .95rem/1.2 var(--sans);color:var(--light)}
.footer-cols a,.footer-cols button,.credits summary{display:flex;align-items:center;min-height:38px;font-size:.92rem;color:var(--ink-2);cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;transition:color 180ms ease,text-decoration-color 180ms ease}
/* Photo credits open as a small box above the link. */
.credits{position:relative}
.credits summary{list-style:none}
.credits summary::-webkit-details-marker{display:none}
.credits p{position:absolute;right:0;bottom:calc(100% + 6px);width:min(80vw,520px);padding:14px 16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--void);font-size:.88rem;z-index:5}
.credits p a{display:inline;min-height:0;text-decoration-color:currentColor;text-underline-offset:2px}
@media (hover:hover) and (pointer:fine){.footer-cols a:hover,.footer-cols button:hover,.credits summary:hover{color:var(--light);text-decoration-color:currentColor}}
/* The big THE VOID at the very bottom: a picture (assets/images/the-void.png) of the words drawn as a grid of white dots. */
.footer-word{display:flex;justify-content:center;margin:clamp(48px,8vw,110px) 0 0;padding-inline:var(--gutter)}
.footer-word img{width:min(1240px,100%);height:auto;user-select:none}

/* PART 1 (Menula De Pinto) · Pop-up window layout (title, body, buttons). */
.sheet-body h2{padding-right:44px}
.sheet-body{padding:28px 24px 24px}
.modal-actions{display:grid;gap:10px;margin-top:16px}
.modal-actions:empty{display:none}
.sheet .stack{margin-top:14px}

/* PART 5 (Ravini Nethra) · Scroll-in effect: section titles and cards rise 24px and fade in when they come into view (initReveal in shared.js). --i staggers cards in a row. */
.reveal{opacity:0;transform:translateY(24px);transition:opacity 700ms var(--ease-out),transform 700ms var(--ease-out);transition-delay:calc(var(--i,0) * 80ms)}
.reveal.in{opacity:1;transform:none}

/* ===== PART 5 (Ravini Nethra) · WHY VOID: two cards, problem (dark) and solution (white). ===== */
.why{position:relative;isolation:isolate;overflow:hidden;padding:clamp(72px,10vw,128px) 0 clamp(56px,7vw,96px)}
/* A big dark star peeking in from the right edge, behind the cards. */
.why-star{position:absolute;z-index:-1;right:-70px;top:clamp(40px,8vw,110px);width:clamp(180px,24vw,340px);height:auto;stroke:none;color:var(--surface-2)}
.why-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.why-card{display:flex;flex-direction:column;gap:16px;padding:clamp(24px,3.2vw,44px);border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);min-width:0}
.why-card-accent{background:var(--light);border-color:var(--light);color:#000}
.why-tag{font:600 .8125rem/1.2 var(--sans);letter-spacing:.2em;text-transform:uppercase}
.why-text{font:400 clamp(1.3rem,2vw,1.85rem)/1.3 var(--sans);letter-spacing:-.01em;text-wrap:pretty}

/* ===== PART 5 (Ravini Nethra) · HOW IT WORKS: three rows split by thin lines, each with a big outlined number, a title and a line of text. ===== */
.product{padding:clamp(56px,7vw,96px) 0;border-top:1px solid var(--line)}
.steps{margin:0;padding:0;list-style:none}
.step{display:grid;grid-template-columns:clamp(70px,9vw,120px) minmax(0,1fr) minmax(0,1.2fr);gap:12px clamp(16px,3vw,48px);align-items:center;padding:clamp(22px,3vw,36px) 0;border-top:1px solid var(--line)}
.step:last-child{border-bottom:1px solid var(--line)}
.step-num{font:800 clamp(2rem,3.6vw,3.2rem)/1 var(--display);color:transparent;-webkit-text-stroke:1px var(--ink-2)}
.step h3{font:700 clamp(1.3rem,2vw,1.75rem)/1.15 var(--display);letter-spacing:-.02em;text-wrap:balance}
.step p{color:var(--ink-2)}

/* ===== PART 5 (Ravini Nethra) · TEAM: five cards with an initials circle (white and outlined circles take turns). ===== */
.team{position:relative;isolation:isolate;overflow:hidden;padding:clamp(56px,7vw,96px) 0 clamp(72px,9vw,120px);border-top:1px solid var(--line)}
.team-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.team-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:22px 20px 24px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);min-width:0}
.team-avatar{display:grid;place-items:center;width:56px;height:56px;margin-bottom:16px;border:1px solid var(--light);border-radius:50%;background:var(--light);color:#000;font-weight:600;letter-spacing:.02em}
.team-card:nth-child(even) .team-avatar{background:none;color:var(--light)}
.team-card h3{font:700 1.3rem/1.15 var(--display);letter-spacing:-.02em;text-wrap:balance}
.team-card p{font-size:.92rem;color:var(--muted)}

/* ===== PART 5 (Ravini Nethra) · WAITLIST SIGN-UP band: the star, "The night is waiting." and the email form. ===== */
.newsletter{position:relative;isolation:isolate;overflow:hidden;padding:clamp(80px,11vw,150px) 0 clamp(96px,13vw,180px);border-top:1px solid var(--line)}
/* A soft pool of light rising from the bottom edge. */
.newsletter::after{content:"";position:absolute;z-index:-1;left:50%;bottom:-300px;width:min(1000px,120vw);height:460px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.16),transparent)}
.newsletter-in{position:relative;z-index:1;display:grid;justify-items:center;gap:28px;text-align:center}
.news-star{width:44px;height:44px;margin-bottom:22px;stroke:none;color:var(--light);filter:drop-shadow(0 0 14px rgba(255,255,255,.7))}
.newsletter h2{font:700 clamp(44px,6.4vw,96px)/1 var(--display);letter-spacing:-.03em;text-wrap:balance}
.newsletter p{margin-top:14px;font-size:1.05rem;color:var(--ink-2)}
.news-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;width:min(520px,100%);text-align:left}
.news-form .control{border-radius:var(--r-pill);padding:0 18px}
.news-form .btn{min-height:48px}
.newsletter .news-privacy{grid-column:1/-1;margin-top:2px;font-size:.9rem;color:var(--muted);text-align:center}
.news-privacy button{font-weight:600;color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* ===== PART 4 (Hansadi) · VENUES PAGE (venues.html): a grid of venue cards, each with a photo, upcoming dates and two buttons. ===== */
.venue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.venue-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;background:var(--surface)}
.venue-card .photo{aspect-ratio:16/10}
.venue-card-body{display:flex;flex-direction:column;gap:8px;flex:1;padding:20px 22px 22px}
.venue-card h2{font:700 1.6rem/1.1 var(--display);letter-spacing:-.02em}
.venue-shows{display:grid;gap:6px;margin:6px 0 4px;padding:0;list-style:none;font-size:.92rem;color:var(--ink-2)}
.venue-shows time{display:inline-block;min-width:56px;font-weight:600;color:var(--light)}
.venue-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:12px}
@media (hover:hover) and (pointer:fine){.venue-card:hover .photo img{filter:grayscale(0) contrast(1) brightness(.9);transform:scale(1.04)}}
@media (max-width:1180px){.venue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.venue-grid{grid-template-columns:minmax(0,1fr)}}

/* ===== PART 3 (Limuthu Liyanage) · SIGN-UP PAGE (signup.html): a picture half on the left, the form on the right. ===== */
.signup{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100svh;padding-top:72px}
.signup-art{position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;align-content:center;gap:28px;padding:48px var(--gutter);border-right:1px solid var(--line);text-align:center}
.signup-art img{width:min(80%,420px);height:auto;mix-blend-mode:screen}
.signup-art p{font:700 clamp(2rem,3.6vw,3.4rem)/1.05 var(--display);letter-spacing:-.03em}
.signup-panel{display:flex;flex-direction:column;justify-content:center;width:100%;max-width:560px;margin:0 auto;padding:clamp(40px,6vw,80px) var(--gutter)}
.signup-panel h1{margin-top:14px;font:700 clamp(36px,4.2vw,60px)/1.02 var(--display);letter-spacing:-.03em}
.signup-sub{margin-top:14px;color:var(--ink-2)}
.signup-form{display:grid;gap:6px;margin-top:28px}
.signup-form .field{margin-top:10px}
/* Error text under a box; the box gets a red edge too, so the problem is not shown by colour alone. */
.field-error{min-height:1.2em;font-size:.84rem;color:var(--ember)}
.control[aria-invalid="true"]{border-color:var(--ember)}
/* Password box with a Show / Hide button inside it. */
.password{position:relative;display:block}
.password .control{padding-right:76px}
.password button{position:absolute;right:6px;top:50%;min-height:36px;padding:0 12px;border-radius:8px;transform:translateY(-50%);font-size:.85rem;font-weight:600;color:var(--ink-2)}
.signup-likes{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 6px;padding:0;border:0}
.signup-likes legend{width:100%;margin-bottom:8px;font-size:.88rem;color:var(--ink-2)}
.signup-likes label{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--line-strong);border-radius:var(--r-pill);font-size:.92rem;cursor:pointer}
.signup-likes input{width:16px;height:16px;margin:0;accent-color:var(--light)}
.signup-likes label:has(input:checked){border-color:var(--light);background:rgba(255,255,255,.1)}
.signup-form .check button{font-weight:600;text-decoration:underline;text-underline-offset:3px}
.signup-form .btn{margin-top:12px}
.signup-note{margin-top:10px;font-size:.84rem;color:var(--muted);text-align:center}
.signup-done{display:grid;justify-items:start;gap:16px}
.signup-done h2{font:700 clamp(36px,4.2vw,56px)/1.02 var(--display);letter-spacing:-.03em}
.signup-done p{color:var(--ink-2)}
@media (max-width:900px){
  .signup{grid-template-columns:minmax(0,1fr)}
  .signup-art{border-right:0;border-bottom:1px solid var(--line);padding-block:40px}
  .signup-art img{width:min(60%,260px)}
}

/* ===== RESPONSIVE (tablet and phone): PART 5 team/why/features grids, PART 1 footer columns, PART 2 hero search padding. ===== */
@media (max-width:1180px){
  .team-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .why-grid{grid-template-columns:minmax(0,1fr)}
  .step{grid-template-columns:clamp(60px,14vw,90px) minmax(0,1fr)}
  .step p{grid-column:2}
  .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-cols{grid-template-columns:repeat(2,auto);width:100%;justify-content:space-between}
}
@media (max-width:620px){
  .hero-search input{padding:0 12px}
  .news-form{grid-template-columns:minmax(0,1fr)}
  .credits p{right:auto;left:0}
}
