/* ============================================================
   Vidasi — About, Portfolio and Contact pages
   ============================================================ */

.page-hero .lead b { color: var(--fg); }

/* ---------- about ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.portrait { position: relative; }
.portrait-img {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(198, 255, 61, .55), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(124, 77, 255, .6), transparent 50%),
    var(--panel-2);
  font-size: clamp(120px, 16vw, 200px);
  font-weight: 700;
  letter-spacing: -.06em;
  color: var(--bg);
}
.portrait-img img { width: 100%; height: 100%; object-fit: cover; }
.status-card { position: absolute; left: -20px; bottom: 28px; display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 12, 14, .9); backdrop-filter: blur(8px); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.status-card b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.status-card b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
.status-card span { color: var(--muted); font-size: 13px; }

/* the team: their faces in the hero, and a card each (from the app's Website › Team) */
.team-collage { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 0; padding: 12%; }
.team-face { display: grid; font-weight: 700; place-items: center; width: 46%; aspect-ratio: 1; margin: -2%; border-radius: 50%; box-shadow: 0 0 0 4px var(--panel-2); background: var(--fg); color: var(--bg); font-size: clamp(56px, 7vw, 96px); line-height: 1; }
.team-face:nth-child(even) { background: none; color: var(--accent-ink); transform: translateY(18%); }
/* A photo is clipped round itself, with nothing behind it, so no fill colour leaks through its edge. */
.team-face:has(img) { background: none; }
.team-face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.team-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.team-photo { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(198, 255, 61, .45), transparent 50%), radial-gradient(circle at 80% 90%, rgba(124, 77, 255, .5), transparent 55%), var(--panel-2); color: var(--bg); font-size: 96px; font-weight: 700; letter-spacing: -.06em; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 22px 24px 26px; }
.team-body h3 { margin: 0; font-size: 22px; }
.team-role { margin: 4px 0 12px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.team-bio { margin: 0; color: var(--muted); line-height: 1.6; }
.team-bio b { color: var(--fg); font-weight: 500; }
.team-link { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--fg); }
.team-link:hover { color: var(--accent); }

.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); }
.story p { margin: 0 0 18px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.story p b { color: var(--fg); font-weight: 500; }

.services-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.services-list li { border-bottom: 1px solid var(--line); }
.services-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px 4px; text-decoration: none; transition: color .2s, padding .2s; }
.services-list a:hover { color: var(--accent); padding-left: 12px; }
.services-list .ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--panel-2); color: var(--accent); font-size: 18px; }
.services-list b { display: block; font-size: 18px; }
.services-list small { color: var(--muted); font-size: 14px; }
.services-list .arrow { color: var(--muted); }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.timeline li { position: relative; padding-top: 40px; counter-increment: step; }
.timeline li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.timeline li::after { content: ''; position: absolute; top: 8px; left: 36px; right: 0; height: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; margin-bottom: 6px; font-size: 19px; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.facts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack .chip { padding: 8px 14px; font-size: 14px; color: var(--fg); background: var(--panel); }
.facts-card { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.facts-card div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.facts-card div:last-child { padding-bottom: 0; border-bottom: 0; }
.facts-card span:first-child { color: var(--muted); }
.facts-card span:last-child { text-align: right; }

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--fg); }
.filters button.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.filters .count { margin-left: 4px; opacity: .6; }
.sample-note { margin: 0 0 24px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }
.portfolio-empty { display: none; }
.portfolio-known:not(.has-portfolio) .portfolio-empty { display: block; }

.case { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); color: var(--fg); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.case::backdrop { background: rgba(5, 5, 7, .75); backdrop-filter: blur(4px); }
.case[open] { animation: caseIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes caseIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.case-head { position: relative; display: grid; place-items: center; height: 260px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.case-head .mock { width: min(60%, 420px); transform: translateY(30px); }
.case-head.has-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(12, 12, 14, .7); color: #fff; font-size: 20px; cursor: pointer; }
.case-body { padding: clamp(24px, 4vw, 40px); }
.case-body h2 { margin: 6px 0 10px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; }
.case-body .lead { font-size: 18px; }
.case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0; }
.case-stats div { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.case-stats b { display: block; color: var(--accent); font-size: 24px; letter-spacing: -.02em; }
.case-stats span { color: var(--muted); font-size: 13px; }
.case-sections { display: grid; gap: 22px; }
.case-sections h3 { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.case-sections p { margin: 0; color: #c9c9cf; font-size: 16px; line-height: 1.7; }
.case-quote { margin: 28px 0; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--panel); }
.case-quote p { margin: 0 0 8px; font-size: 19px; line-height: 1.5; }
.case-quote span { color: var(--muted); font-size: 14px; }
.case-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 24px; align-items: start; }
.form-card { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.form-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .full { grid-column: 1 / -1; }
.form-card fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-card legend { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; }
.topic span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); font-size: 15px; transition: border-color .2s, background .2s; }
.topic input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel-2)); }
.topic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Work with us: the technologies as small tags under their group, the rate and its currency, the resume */
.tag-group { margin: 14px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form-card legend + .tag-group { margin-top: 0; }
.topics.tags { gap: 6px; }
.topics.tags .topic span { padding: 7px 12px; font-size: 14px; }
/* A text box that turns what's typed into tags at each comma (js/work.js): the box is the field's look */
.tag-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 8px; background-color: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; cursor: text; transition: border-color .2s; }
.tag-input:focus-within { border-color: var(--accent); }
.field .tag-input input { flex: 1 1 160px; width: auto; min-width: 120px; padding: 5px 6px; border: 0; background: transparent; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border: 1px solid var(--accent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--panel-2)); color: var(--fg); font-size: 14px; }
.tag-chip button { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.tag-chip button:hover, .tag-chip button:focus-visible { background: var(--line); color: var(--fg); outline: none; }
.rate-inputs { display: flex; align-items: center; gap: 8px; }
.rate-inputs input { flex: 1 1 0; width: auto; min-width: 0; max-width: 160px; }
.rate-inputs select { flex: 0 0 auto; width: auto; }
.rate-per { color: var(--muted); font-size: 14px; }
.file-field input[type="file"] { padding: 12px; border-style: dashed; cursor: pointer; }
.file-field input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--fg); font: inherit; cursor: pointer; }
.file-field small { color: var(--muted); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.form-foot small { color: var(--muted); }
.sent { display: grid; justify-items: start; gap: 12px; padding: 12px 0; animation: panelIn .4s ease; }
.sent .big { font-size: 48px; }
.sent h2 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.sent p { margin: 0; color: var(--muted); line-height: 1.6; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }

.contact-side { display: grid; gap: 14px; }
.info-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.info-card h3 { margin: 0 0 12px; font-size: 18px; }
.info-card .big-mail { display: block; margin-bottom: 6px; color: var(--accent); font-size: 20px; font-weight: 700; text-decoration: none; word-break: break-all; }
.info-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.info-card .js-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.info-card .js-social a { color: var(--fg); font-size: 14px; }
.next-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: n; }
.next-steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.5; counter-increment: n; }
.next-steps li::before { content: counter(n); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--panel-2); color: var(--accent); font-family: var(--mono); font-size: 12px; }
.next-steps b { color: var(--fg); font-weight: 500; }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 500; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); line-height: 1.65; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-hero, .story, .facts, .contact-layout { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .status-card { left: 12px; }
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline li { padding: 0 0 0 48px; }
  .timeline li::after { display: none; }
  .form-card form { grid-template-columns: 1fr; }
  .case-stats { grid-template-columns: 1fr; }
  .case-head { height: 190px; }
}

/* the case study's photos after its story (from the app) */
.case-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 28px 0 0; }
.case-gallery img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }

/* ---------- long text (privacy) ---------- */
.prose { max-width: 72ch; padding-bottom: 64px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.prose h2 { margin: 40px 0 10px; color: var(--fg); font-size: 22px; letter-spacing: -.02em; line-height: 1.25; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose b { color: var(--fg); font-weight: 500; }
.prose a { color: var(--accent); }

/* ---------- branding (branding.html; the logos come from the app's /api/brand) ---------- */
.brand-pieces { padding-bottom: 72px; }
.brand-status { margin: 0; }
.brand-group { margin: 8px 0 16px; font-size: 24px; letter-spacing: -.02em; }
.brand-grid + .brand-group { margin-top: 48px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.brand-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.brand-preview { position: relative; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.brand-preview img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; }
/* see-through artwork sits on checks, light or dark, so its edges show */
.brand-preview.is-clear-light { background: repeating-conic-gradient(#e4e4e0 0 25%, #f2f2f0 0 50%) 0 0 / 16px 16px; }
.brand-preview.is-clear-dark { background: repeating-conic-gradient(var(--panel) 0 25%, var(--bg) 0 50%) 0 0 / 16px 16px; }
.brand-preview.is-fill { background: var(--panel-2); }
.brand-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.brand-body h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.brand-body p { flex: 1; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
/* every download on one row, however many sizes a piece has (the app icon has three): they share the width */
.brand-downloads { display: flex; gap: 8px; margin-top: 8px; }
.brand-downloads .btn { flex: 1 1 auto; min-width: 0; padding-inline: 10px; white-space: nowrap; }
.brand-downloads small { margin-left: 4px; font-family: var(--mono); font-size: 11px; opacity: .7; }
