/*
Theme Name: Genesis Publishing
Description: A block theme for a YouTube publishing studio.
Version: 1.0.4
Text Domain: genesis-publishing
*/

:root { --g-violet:#b5a1ff; --g-muted:#bdbac9; --g-line:#36343e; }
html { scroll-behavior:smooth; }
body { margin:0; }
.wp-site-blocks > * { margin-block-start:0; }
.g-header,.g-section,.g-contact-inner,.g-footer { width:min(1320px,calc(100% - 8vw)); margin-inline:auto; }
.g-header { min-height:84px; display:flex; align-items:center; gap:clamp(20px,4vw,58px); border-bottom:1px solid var(--g-line); }
.g-header .wp-block-navigation { margin-left:auto; }
.g-header .wp-block-navigation__container { gap:clamp(16px,3vw,44px); }
.g-header .wp-block-navigation__responsive-container.is-menu-open { background:#101015; color:#fff; padding:24px; }
.g-brand { font-size:clamp(19px,2.4vw,32px); font-weight:850; letter-spacing:-.055em; white-space:nowrap; }
.g-brand a { text-decoration:none; }
.g-brand::before { content:""; display:inline-block; width:34px; height:.75em; margin-right:12px; background:linear-gradient(90deg,var(--g-violet) 0 39%,transparent 39% 56%,var(--g-violet) 56%); transform:skewX(-35deg); }
.g-hero { position:relative; isolation:isolate; min-height:clamp(620px,60vw,870px); display:grid; align-items:center; overflow:hidden; }
.g-hero > figure { position:absolute; inset:0; z-index:-2; margin:0; }
.g-hero > figure img { width:100%; height:100%; object-fit:cover; object-position:center; }
.g-hero::after { position:absolute; inset:0; z-index:-1; content:""; background:linear-gradient(90deg,#101015 0%,#101015b0 32%,transparent 69%); }
.g-hero-copy { width:min(1320px,calc(100% - 8vw)); margin-inline:auto; padding:64px 0 72px; }
.g-hero h1,.g-section h2,.g-contact h2 { font-weight:850; letter-spacing:-.075em; line-height:.98; margin:0; }
.g-hero h1 { font-size:clamp(52px,8vw,120px); }
.g-hero h1 em { color:var(--g-violet); font-style:normal; }
.g-hero-copy > p { color:#f7f6fd; font-size:clamp(17px,2vw,26px); line-height:1.4; max-width:30ch; margin:26px 0 32px; }
.g-hero-copy > p::before { content:""; display:block; width:72px; height:3px; background:var(--g-violet); margin-bottom:22px; }
.wp-block-buttons { gap:12px; }
.wp-block-button__link { border:1px solid transparent; border-radius:8px; background:var(--g-violet); color:#101015; font-weight:750; padding:.65em 1.25em; }
.wp-block-button.is-style-outline .wp-block-button__link { background:transparent; border:1px solid var(--g-violet); color:#f7f6fd; padding:.65em 1.25em; }
.g-section { padding-block:clamp(58px,8vw,116px); border-top:1px solid var(--g-line); }
.g-section h2,.g-contact h2 { font-size:clamp(42px,6.4vw,88px); }
.g-section p { color:var(--g-muted); }
.g-section > p { margin:14px 0 28px; }
.g-work-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,2vw,30px); }
.g-card { border-bottom:1px solid var(--g-line); padding-bottom:18px; }
.g-card .wp-block-image,.g-study .wp-block-image { margin:0; overflow:hidden; border-radius:10px; }
.g-card img,.g-study img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; }
.g-card h3,.g-service h3 { margin:12px 0 0; font-size:clamp(20px,2.5vw,34px); letter-spacing:-.05em; line-height:1.15; }
.g-card p { margin:5px 0 0; }
.g-services > h2 { margin-bottom:30px; }
.g-service { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:16px; border-top:1px solid var(--g-line); padding:20px 0; }
.g-service:last-child { border-bottom:1px solid var(--g-line); }
.g-service h3,.g-service p { margin:0; }
.g-study { display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(24px,5vw,72px); align-items:center; }
.g-study h2 { font-size:clamp(35px,5vw,70px); }
.g-study p { margin:16px 0 0; }
.g-contact { background:var(--g-violet); color:#13101d; }
.g-contact-inner { display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,6vw,90px); padding-block:clamp(56px,8vw,110px); }
.g-contact-copy p { max-width:34ch; margin-top:20px; }
.g-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-content:start; }
.g-form label { display:grid; gap:4px; font-weight:650; }
.g-form input,.g-form textarea { box-sizing:border-box; width:100%; padding:10px 12px; font:inherit; color:#13101d; background:#e8dfff; border:1px solid #4a3b6a; border-radius:6px; }
.g-form textarea { resize:vertical; min-height:100px; }
.g-form-wide { grid-column:1/-1; }
.g-form button { justify-self:start; cursor:pointer; background:#161221; color:#fff; border:0; }
.g-form-trap { position:absolute; left:-9999px; }
.g-contact-status { font-weight:700; margin:0 0 12px; }
.g-footer { display:flex; justify-content:space-between; gap:12px; padding-block:24px; }
.g-footer p { margin:0; }
.g-footer p:first-child { font-weight:800; }
.g-footer p:last-child { color:var(--g-muted); }
:focus-visible { outline:3px solid currentColor; outline-offset:4px; }
@media(max-width:720px) {
  .g-header { min-height:68px; }
  .g-header > .wp-block-buttons { display:none; }
  .g-hero { min-height:0; align-items:end; }
  .g-hero > figure { position:relative; grid-area:1/1; }
  .g-hero > figure img { height:290px; object-position:75% center; }
  .g-hero::after { grid-area:1/1; background:linear-gradient(0deg,#101015,transparent 45%); }
  .g-hero-copy { padding:12px 0 54px; }
  .g-hero h1 { font-size:clamp(46px,10vw,76px); }
  .g-work-grid,.g-study,.g-contact-inner { grid-template-columns:1fr; }
  .g-service { grid-template-columns:1fr; gap:6px; }
  .g-footer { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
.g-header .g-brand a { color:inherit; }
@media(min-width:721px) {
  .g-hero { min-height:clamp(570px,calc(100svh - 84px),830px); }
  .g-hero-copy { padding-block:clamp(42px,7vh,68px); }
  .g-hero h1 { font-size:clamp(52px,min(8vw,13vh),120px); }
}

/* Homepage channel thumbnails */
.g-hero {
  width:min(1320px,calc(100% - 8vw));
  min-height:0;
  margin-inline:auto;
  padding-block:clamp(44px,7vw,102px);
  grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);
  gap:clamp(30px,5vw,82px);
  align-items:center;
  overflow:visible;
}
.g-hero::after { display:none; }
.g-hero-copy { width:100%; padding:0; }
.g-hero h1 { font-size:clamp(38px,6.75vw,108px); }
.g-hero-reel {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(8px,1.35vw,18px);
  padding:clamp(10px,1.6vw,22px);
  background:#181620;
  border:1px solid #3e3852;
  border-radius:18px;
}
.g-hero-reel > .wp-block-image { margin:0; overflow:hidden; border-radius:9px; }
.g-hero-reel > .wp-block-image:first-child { grid-column:1/-1; }
.g-hero-reel img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; }
.g-hero-reel > .wp-block-image:first-child img { aspect-ratio:16/8.5; }
.g-reel-label { grid-column:1/-1; color:var(--g-muted); font-size:.82rem; margin:0; }
.g-services-photo { margin:0 0 28px; overflow:hidden; border-radius:12px; }
.g-services-photo img { display:block; width:100%; aspect-ratio:3/1; object-fit:cover; object-position:center 42%; }
@media(max-width:900px) and (min-width:721px) {
  .g-hero { gap:24px; }
  .g-hero h1 { font-size:clamp(40px,6.4vw,65px); }
}
@media(max-width:720px) {
  .g-hero { grid-template-columns:1fr; gap:28px; padding-block:38px 48px; }
  .g-hero h1 { font-size:clamp(43px,11vw,68px); }
  .g-hero-copy > p { margin-block:20px 24px; }
  .g-services-photo img { aspect-ratio:16/9; }
}
.g-card h3 + p { color:var(--g-violet); font-size:.88rem; font-weight:650; }
.g-card p + p { margin-top:12px; max-width:36ch; }
.g-study-copy strong { color:#f7f6fd; }
.g-study h2 + p { color:var(--g-violet); font-size:.9rem; font-weight:700; }

/* Homepage motion */
.g-hero { position:relative; isolation:isolate; }
.g-hero::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(ellipse at 78% 45%,#8e5bfa33,transparent 62%);
}
.g-hero-reel { box-shadow:0 24px 80px #07050f83; }
.g-hero-reel img,.g-card img { transition:transform 550ms cubic-bezier(.2,.75,.25,1); }
.g-hero-reel figure:hover img,.g-card:hover img { transform:scale(1.07); }
.g-hero-reel > figure { transition:transform 400ms cubic-bezier(.2,.75,.25,1); }
.g-hero-reel > figure:hover { transform:translateY(-4px); }
.wp-block-button__link { transition:transform 240ms ease,box-shadow 240ms ease; }
.wp-block-button__link:hover { transform:translateY(-3px); box-shadow:0 8px 24px #9468f84d; }
@media(prefers-reduced-motion:no-preference) {
  .g-hero-copy > *, .g-hero-reel { animation:g-rise 780ms cubic-bezier(.2,.75,.25,1) both; }
  .g-hero-copy > p { animation-delay:120ms; }
  .g-hero-copy > .wp-block-buttons { animation-delay:220ms; }
  .g-hero-reel { animation-delay:160ms; }
  .g-hero-reel > figure { animation:g-focus 900ms cubic-bezier(.2,.75,.25,1) both; animation-delay:260ms; }
  .g-hero-reel > figure:nth-child(2) { animation-delay:370ms; }
  .g-hero-reel > figure:nth-child(3) { animation-delay:480ms; }
  .g-motion-in { animation:g-rise 740ms cubic-bezier(.2,.75,.25,1) both; animation-delay:var(--g-delay,0ms); }
}
@keyframes g-rise { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes g-focus { from { opacity:0; filter:brightness(.65); translate:0 12px; } to { opacity:1; filter:brightness(1); translate:0 0; } }
@media(prefers-reduced-motion:reduce) {
  .g-hero-reel img,.g-card img,.g-hero-reel > figure,.wp-block-button__link { transition:none; }
  .g-hero-reel figure:hover img,.g-card:hover img,.g-hero-reel > figure:hover,.wp-block-button__link:hover { transform:none; }
}
