/* ============================================================================
   UNO CREATIVE GROUP — pages.css
   Section-level styles: hero, stats, work grid, CTA, and page-specifics.
   ========================================================================== */

/* ---- Hero (home) ---------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  padding-top: var(--bar-h);
}
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-left: 1px solid var(--line);
}
.hero-type {
  grid-column: 1 / 8;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  border-right: 1px solid var(--line);
}
.hero-type .idx { margin-bottom: 28px; }
.hero-type h1 {
  font-family: var(--f-d); font-weight: 800;
  font-size: clamp(46px, 7.5vw, 124px); line-height: .9; letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-type .sub {
  font-size: clamp(16px, 2vw, 21px); line-height: 1.45; color: var(--soft);
  max-width: 36ch; margin-top: 28px;
}
.hero-meta { display: flex; gap: clamp(28px, 5vw, 56px); margin-top: 44px; flex-wrap: wrap; }
.meta-item { border-top: 2px solid var(--ink); padding-top: 10px; min-width: 90px; }
.meta-item .n { font-family: var(--f-d); font-weight: 800; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.03em; line-height: 1; display: block; }
.meta-item .n .u { color: var(--red); }
.meta-item .l { font-family: var(--f-n); font-weight: 500; font-size: 13px; color: var(--soft); margin-top: 6px; display: block; }

.hero-visual {
  grid-column: 8 / 13;
  position: relative; overflow: hidden;
  background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  min-height: 420px;
}
#heroSolid { width: 100%; height: 100%; }
.visual-tag {
  position: absolute; bottom: 22px; inset-inline-start: 22px;
  font-family: var(--f-n); font-weight: 500; font-size: 12px; color: var(--soft);
  letter-spacing: .03em;
}

/* ---- Generic page header (inner pages) ------------------------------------ */
.page-head {
  padding-top: calc(var(--bar-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(40px, 6vw, 72px);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
}
.page-head .idx { display: block; margin-bottom: 22px; }
.page-head h1 {
  font-family: var(--f-d); font-weight: 800;
  font-size: clamp(44px, 9vw, 120px); line-height: .9; letter-spacing: -.045em;
  text-wrap: balance;
}
.page-head .sub { font-size: clamp(16px, 2vw, 21px); line-height: 1.5; color: var(--soft); max-width: 52ch; margin-top: 24px; }

/* ---- Prose block ---------------------------------------------------------- */
.prose { max-width: 62ch; }
.prose p { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }

/* two-column editorial split */
.split {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-inline: var(--gutter);
}
.split .col-head { grid-column: 1 / 5; }
.split .col-head h2 { font-family: var(--f-d); font-weight: 800; font-size: clamp(26px, 3.4vw, 44px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.split .col-body { grid-column: 6 / 13; }

/* ---- Work grid ------------------------------------------------------------ */
.filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 24px var(--gutter); border-bottom: 1px solid var(--line);
}
.filter button {
  font-family: var(--f-n); font-weight: 700; font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--soft);
  padding: 8px 16px; border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.filter button:hover { color: var(--ink); border-color: var(--ink); }
.filter button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.work-item {
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  padding: 0; overflow: hidden; display: block; color: var(--ink);
}
.work-item:nth-child(2n) { border-right: none; }
.work-thumb {
  aspect-ratio: 4 / 3;
  background-color: var(--panel);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%2316171B' stroke-width='1.4' stroke-opacity='0.16' stroke-linejoin='round'%3E%3Cpolygon points='50,10 84.64,30 84.64,70 50,90 15.36,70 15.36,30'/%3E%3Cpolygon points='50,10 15.36,70 84.64,70'/%3E%3Cpolygon points='50,90 84.64,30 15.36,30'/%3E%3C/g%3E%3Cg fill='%23E2231A' fill-opacity='0.5'%3E%3Ccircle cx='50' cy='10' r='3'/%3E%3Ccircle cx='84.64' cy='30' r='3'/%3E%3Ccircle cx='84.64' cy='70' r='3'/%3E%3Ccircle cx='50' cy='90' r='3'/%3E%3Ccircle cx='15.36' cy='70' r='3'/%3E%3Ccircle cx='15.36' cy='30' r='3'/%3E%3C/g%3E%3C/svg%3E"),
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(22,23,27,.028) 13px 14px);
  background-repeat: no-repeat, repeat;
  background-position: center, 0 0;
  background-size: 86px, auto;
  overflow: hidden; position: relative;
  transition: background-size .5s ease;
}
.work-item:hover .work-thumb { background-size: 98px, auto; }
.work-thumb .ph { display: none; }
.work-thumb::after {
  content: ''; position: absolute; inset: 0; background: var(--ink); opacity: 0;
  transition: opacity .35s;
}
.work-item:hover .work-thumb::after { opacity: .05; }
.work-cap { display: flex; justify-content: space-between; gap: 16px; padding: 22px var(--gutter); align-items: baseline; }
.work-cap h3 { font-family: var(--f-d); font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.02em; }
.work-cap .cat { font-family: var(--f-n); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); white-space: nowrap; }

/* ---- Services list -------------------------------------------------------- */
.svc { border-top: 1px solid var(--line); }
.svc-item {
  display: grid; grid-template-columns: repeat(12, 1fr); align-items: start;
  border-bottom: 1px solid var(--line); padding-block: clamp(32px, 5vw, 56px);
}
.svc-no { grid-column: 1 / 2; font-family: var(--f-d); font-weight: 800; font-size: 16px; color: var(--red); padding-inline: var(--gutter); }
.svc-main { grid-column: 2 / 7; padding-inline: var(--gutter); }
.svc-main h3 { font-family: var(--f-d); font-weight: 800; font-size: clamp(24px, 3.4vw, 40px); letter-spacing: -.03em; line-height: .98; }
.svc-main p { color: var(--soft); font-size: 15px; line-height: 1.6; margin-top: 14px; max-width: 40ch; }
.svc-list { grid-column: 8 / 13; padding-inline: var(--gutter); display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.svc-list span { font-family: var(--f-n); font-weight: 500; font-size: 14px; color: var(--ink); border: 1px solid var(--line); padding: 7px 14px; }

/* ---- Music ---------------------------------------------------------------- */
.tracks { border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  border-bottom: 1px solid var(--line); padding: 26px var(--gutter);
  transition: background .3s;
}
.track:hover { background: var(--panel); }
.track-play {
  width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0; transition: background .25s, color .25s;
}
.track-play:hover { background: var(--red); color: var(--paper); border-color: var(--red); }
.track-play svg { width: 16px; height: 16px; }
.track-meta h3 { font-family: var(--f-d); font-weight: 800; font-size: clamp(18px, 2.4vw, 26px); letter-spacing: -.02em; }
.track-meta p { font-family: var(--f-n); font-size: 13px; color: var(--soft); letter-spacing: .04em; }
.track-wave { display: flex; align-items: center; gap: 3px; height: 32px; }
.track-wave i { width: 3px; background: var(--line); display: block; }

/* ---- Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--line); }
.contact-aside { grid-column: 1 / 5; padding: clamp(40px, 6vw, 72px) var(--gutter); border-right: 1px solid var(--line); }
.contact-aside h2 { font-family: var(--f-d); font-weight: 800; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; line-height: 1; margin-bottom: 24px; }
.contact-aside .ci { margin-bottom: 22px; }
.contact-aside .ci .k { font-family: var(--f-n); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 4px; }
.contact-aside .ci .v { font-size: 16px; }
.contact-aside .ci .v a { border-bottom: 1px solid var(--red); }
.wa-btn { margin-top: 10px; }

.contact-main { grid-column: 5 / 13; padding: clamp(40px, 6vw, 72px) var(--gutter); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-n); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  background: transparent; border: 1px solid var(--line);
  padding: 13px 14px; font-size: 15px; color: var(--ink);
  transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field .err { font-family: var(--f-n); font-size: 12px; color: var(--red); min-height: 14px; }
.form-note { font-size: 13px; color: var(--soft); margin-top: 8px; }
.form-status { font-family: var(--f-n); font-weight: 600; font-size: 14px; margin-top: 16px; min-height: 20px; }
.form-status.ok { color: #1b7a3d; }
.form-status.bad { color: var(--red); }
.form-single { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* ---- CTA (dark) ----------------------------------------------------------- */
.cta {
  background: var(--ink); color: var(--paper);
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-block: clamp(80px, 13vw, 160px);
}
.cta-in { max-width: var(--maxw); margin-inline: auto; }
.cta h2 { font-family: var(--f-d); font-weight: 800; font-size: clamp(36px, 6.5vw, 92px); line-height: .92; letter-spacing: -.04em; max-width: 15ch; text-wrap: balance; }
.cta .sub { color: rgba(233,233,228,.65); font-size: clamp(15px, 1.8vw, 19px); margin-top: 20px; max-width: 48ch; }
.cta .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.cta .btn-ghost { border-color: rgba(233,233,228,.4); color: var(--paper); }
.cta .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---- 404 ------------------------------------------------------------------ */
.nf {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--gutter); gap: 24px;
}
.nf .big { font-family: var(--f-d); font-weight: 800; font-size: clamp(90px, 26vw, 320px); line-height: .82; letter-spacing: -.05em; }
.nf .big .u { color: var(--red); }
.nf p { color: var(--soft); font-size: 18px; max-width: 40ch; }

/* ---- Reveal (GSAP targets fall back to visible) --------------------------- */
.reveal { will-change: transform, opacity; }

/* Hide hero headline/sub before JS animates them in — only when JS is present,
   so the content never flashes; revealed again for reduced-motion users. */
html.js [data-hero-h1], html.js [data-hero-sub] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-hero-h1], html.js [data-hero-sub] { opacity: 1; }
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-type { grid-column: 1; border-right: none; border-bottom: 1px solid var(--line); }
  .hero-visual { grid-column: 1; min-height: 52vh; }

  .split { grid-template-columns: 1fr; }
  .split .col-head, .split .col-body { grid-column: 1; }

  .work-grid { grid-template-columns: 1fr; }
  .work-item { border-right: none; }

  .svc-item { grid-template-columns: repeat(6, 1fr); row-gap: 18px; }
  .svc-no { grid-column: 1 / 2; }
  .svc-main { grid-column: 2 / 7; }
  .svc-list { grid-column: 1 / 7; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { grid-column: 1; border-right: none; border-bottom: 1px solid var(--line); }
  .contact-main { grid-column: 1; }
  .form-row { grid-template-columns: 1fr; }
}
