/* Hivemind portfolio. Brand from hivemind.rs: Syne display, Montserrat text,
   true black grid lines on white, mint and violet. One bold device: the boxed
   heading with an offset shadow box, as on the hivemind.rs hero.
   [braca_glisic_20_desktop building, 2026-09-27] */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --text: #262626;
  --soft: #555555;
  --mint: #63dad1;
  --violet: #4833e8;
  --line: 1px solid var(--ink);
  --display: "Syne", "Arial Black", sans-serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header: the hivemind.rs cell bar */
.bar { display: grid; grid-template-columns: auto 1fr auto; border-bottom: var(--line); min-height: 4.5rem; }
.bar > * { display: flex; align-items: center; padding: 0 var(--gutter); }
.brand { gap: .75rem; color: var(--ink); text-decoration: none; font: 700 1rem var(--display); text-transform: uppercase; letter-spacing: .06em; border-right: var(--line); }
.brand:hover { color: var(--ink); }
.mark { width: 2rem; height: 2.3rem; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.bar-link { color: var(--ink); font: 700 1rem var(--display); text-decoration: none; }
.bar-link:hover { text-decoration: underline; color: var(--ink); }
.bar-link.lang { border-left: var(--line); }

/* Hero: mint panel + vertical strip with the live address */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 8rem); border-bottom: var(--line); }
.hero-index { grid-template-columns: 1fr; }
.hero-panel { background: var(--mint); padding: clamp(3rem, 9vw, 7.5rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { font-size: clamp(2.3rem, 8.2vw, 7rem); line-height: 1.02; font-weight: 800; }
.lead-in { display: block; color: var(--paper); margin-bottom: .12em; }
/* Inline so a long name can break onto a second line; each line keeps its own box. */
.boxed {
  display: inline;
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: .02em .22em .08em;
  box-shadow: .09em .09em 0 0 var(--paper), .09em .09em 0 3px var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  line-height: 1.35;
}
.hero-lead { max-width: 46ch; margin: clamp(1.75rem, 4vw, 2.75rem) 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink); font-weight: 500; }
.strip {
  border-left: var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  text-decoration: none; color: var(--ink); padding: 2rem 0;
}
.strip-url, .strip-note { writing-mode: vertical-rl; }
.strip-url { font: 800 clamp(1.6rem, 3.2vw, 2.7rem) var(--display); line-height: 1; }
.strip-note { font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: .2em; }
.strip:hover { background: var(--ink); color: var(--paper); }

/* Facts: information in grid cells */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: var(--line); }
.fact { padding: 1.5rem var(--gutter) 1.75rem; border-right: var(--line); }
.fact:last-child { border-right: 0; }
.fact dt { font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.fact dd { margin: 0; color: var(--soft); font-size: .98rem; }

/* Bands */
.band { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); border-bottom: var(--line); }
.band > h2, .shots > h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.05; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.split { display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr; gap: 2rem var(--gutter); }
.split > h2 { margin-bottom: 0; }
.prose { max-width: var(--measure); }
.prose > p:first-child { font-size: 1.15rem; color: var(--ink); }

/* Screenshots: the client's own world, framed by their colour */
.shots { background: #12171b; color: #d9dde0; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); border-bottom: var(--line); border-top: 6px solid var(--client, var(--violet)); }
.shots > h2 { color: #ffffff; }
.shot-row { display: grid; grid-template-columns: 2.4fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: center; }
.shot-row.flip { grid-template-columns: 1fr 2.4fr; margin-top: clamp(1rem, 2.5vw, 2rem); }
.shot { margin: 0; border: 1px solid #3a444b; background: #000; }
.shot.tall { max-width: 20rem; justify-self: center; width: 100%; }
.shots .caption { color: #aab2b8; margin-top: 1.25rem; }

/* What we did: equal cells, no numbering — not a sequence */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--line); border-left: var(--line); }
.cell { padding: 1.75rem 1.5rem 2rem; border-right: var(--line); border-bottom: var(--line); }
.cell h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; margin-bottom: .75rem; }
.cell p { margin: 0; color: var(--soft); }

/* Team and rules */
.team { margin: 2rem 0; border-top: var(--line); }
.member { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: 1rem; padding: 1rem 0; border-bottom: var(--line); }
.member dt { font-weight: 600; color: var(--ink); }
.member dd { margin: 0; color: var(--soft); }
.rules { margin: 0; padding-left: 1.1rem; }
.rules li { margin-bottom: .6rem; }
.rules li::marker { color: var(--violet); }

/* Timeline: a real sequence */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 3px solid var(--ink); }
.timeline li { padding: 1.1rem 1.25rem 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -.6rem; left: 0; width: .95rem; height: .95rem; background: var(--mint); border: 3px solid var(--ink); }
.timeline time { display: block; font: 700 1.2rem var(--display); color: var(--ink); margin: .6rem 0 .35rem; }
.timeline p { margin: 0; color: var(--soft); font-size: .98rem; }

/* Results */
.metrics { margin: 0 0 2rem; display: grid; gap: 1.5rem; }
.metric dt { font: 800 clamp(2.4rem, 5vw, 3.6rem) var(--display); color: var(--violet); line-height: 1; }
.metric dd { margin: .5rem 0 0; color: var(--ink); max-width: 44ch; }
.pending { border: var(--line); border-left: 6px solid var(--mint); padding: 1rem 1.25rem; color: var(--ink); }

/* Photos */
.photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--line); }
.band .caption { color: var(--soft); margin-top: 1rem; }

/* Index cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); border-bottom: var(--line); }
.card { border-right: var(--line); }
.card a { display: block; height: 100%; padding: var(--gutter); color: var(--text); text-decoration: none; }
.card-shot { border: var(--line); margin-bottom: 1.5rem; }
.card h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: .6rem; }
.card-date { color: var(--soft); font-size: .95rem; }
.card-link { display: inline-block; font-weight: 600; color: var(--violet); text-decoration: underline; text-underline-offset: .2em; }
.card a:hover { background: var(--mint); }
.card a:hover .card-link { color: var(--ink); }

/* Closing call: violet panel */
.cta { background: var(--violet); color: #ffffff; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }
.cta h2 { color: #ffffff; font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.05; max-width: 18ch; margin-bottom: 1rem; }
.cta p { max-width: 50ch; font-size: 1.1rem; }
.cta-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.5rem; }
.cta a { color: #ffffff; font: 700 1.25rem var(--display); }
.cta a:hover { color: var(--mint); }
.cta :focus-visible { outline-color: var(--mint); }
.foot { padding: 1.25rem var(--gutter); border-top: var(--line); font-size: .9rem; color: var(--soft); }
.foot p { margin: 0; }

@media (max-width: 60rem) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: var(--line); }
  .cells { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--ink); }
  .timeline li { padding: 0 0 1.5rem 1.5rem; }
  .timeline li::before { top: .2rem; left: -.6rem; }
  .timeline time { margin-top: 0; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  .bar { grid-template-columns: 1fr auto; }
  .bar-link:not(.lang) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .strip { border-left: 0; border-top: var(--line); flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 1.25rem var(--gutter); }
  .strip-url { font-size: clamp(1.25rem, 6.5vw, 1.5rem); overflow-wrap: anywhere; }
  .strip-url, .strip-note { writing-mode: horizontal-tb; }
  .facts, .cells, .photos { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: var(--line); }
  .fact:last-child { border-bottom: 0; }
  .shot-row, .shot-row.flip { grid-template-columns: 1fr; }
  .shot.tall { max-width: 16rem; }
  .member { grid-template-columns: 1fr; gap: .25rem; }
  .card { border-right: 0; border-bottom: var(--line); }
}


/* Consent bar and privacy page. [braca_glisic_20_desktop building, 2026-09-27] */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a { color: var(--soft); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--soft); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.consent { position: fixed; inset: auto 0 0 0; z-index: 20; background: var(--paper); border-top: 3px solid var(--ink); padding: 1.1rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.consent p { margin: 0; max-width: 62ch; font-size: .95rem; }
.consent-buttons { display: flex; gap: .75rem; flex-shrink: 0; }
.consent-button { font: 700 1rem var(--display); color: var(--ink); background: var(--mint); border: 2px solid var(--ink); padding: .7rem 1.4rem; cursor: pointer; }
.consent-button:hover { background: var(--ink); color: var(--paper); }
.privacy { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.privacy h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; margin-bottom: 1rem; }
.privacy h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 700; margin: 2.25rem 0 .6rem; }
.privacy-lead { font-size: 1.15rem; color: var(--ink); }
@media (max-width: 40rem) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent-buttons > * { flex: 1; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
