/* The Corgi Squad landing page: Toybox layout in the Dusk palette (LandingBuilder copies this as is). */
:root {
    --ground: #10131a;
    --card: #1a1f2b;
    --line: #2e3647;
    --ink: #e8eaf0;
    --soft: #b4bacb;
    --muted: #8b93a7;
    --accent: #f4a259;
    --on-accent: #1a1206;
    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { background-color: #10131a; }

body {
    margin: 0;
    color: var(--ink);
    font-family: Figtree, system-ui, sans-serif;
    -webkit-text-size-adjust: 100%;
}

/* Dusk glow over a faint scatter of paw prints, on its own fixed layer so the ground colour
   above never depends on it (a browser that drops this still shows the dark ground). */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(60% 45% at 18% 0%, rgba(244, 162, 89, 0.20), transparent 70%),
        radial-gradient(50% 40% at 85% 12%, rgba(31, 111, 99, 0.28), transparent 70%),
        radial-gradient(45% 35% at 60% 100%, rgba(110, 38, 69, 0.22), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='%23ffffff' fill-opacity='0.04'%3E%3Cg transform='translate(40 50) rotate(-18)'%3E%3Cellipse cx='0' cy='14' rx='13' ry='11'/%3E%3Ccircle cx='-13' cy='-4' r='5'/%3E%3Ccircle cx='-4' cy='-12' r='5'/%3E%3Ccircle cx='7' cy='-12' r='5'/%3E%3Ccircle cx='15' cy='-3' r='5'/%3E%3C/g%3E%3Cg transform='translate(160 150) rotate(22)'%3E%3Cellipse cx='0' cy='14' rx='13' ry='11'/%3E%3Ccircle cx='-13' cy='-4' r='5'/%3E%3Ccircle cx='-4' cy='-12' r='5'/%3E%3Ccircle cx='7' cy='-12' r='5'/%3E%3Ccircle cx='15' cy='-3' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

.wrap {
    max-width: 1280px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px 64px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.wrap.narrow { max-width: 720px; gap: 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brandmark { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.mail { padding: 12px 20px; background: var(--accent); color: var(--on-accent); border-radius: 12px; font-weight: 700; white-space: nowrap; }
.mail .short { display: none; }

/* Hero */
.hero { padding: 36px 0 12px; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(56px, 11vw, 104px); line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; }
.accent { color: var(--accent); }
.lede { margin: 20px 0 0; font-size: 21px; line-height: 1.5; color: var(--soft); max-width: 720px; }
.lede-bio { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 720px; }

/* Groups: one per type, each a label with its icon over its tiles. YouTube runs the full
   width; Website and Games share the row under it. */
.groups { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 20px; }
.g-youtube { grid-column: span 6; }
.g-website { grid-column: span 4; }
.g-games { grid-column: span 2; }
.group-label { margin: 0 0 16px; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.group-label .type { gap: 12px; }
.group-label svg { width: 28px; height: 28px; color: var(--accent); }

/* A type (icon + name). On a brand page it opens the eyebrow, dimmed so it sinks into the card. */
.type { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .type { opacity: 0.5; font-weight: 600; }
.eyebrow .type svg { width: 18px; height: 18px; }
.type-sep { opacity: 0.5; }

/* Tiles */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.g-youtube .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.tile {
    min-height: 280px;
    padding: 32px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    background: var(--card);
    border: 1px solid transparent;
}

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tile-body { display: flex; flex-direction: column; gap: 10px; }
.tile-name { margin: 0; font-family: var(--display); font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; overflow-wrap: anywhere; }
.tile-line { margin: 0; font-size: 17px; line-height: 1.5; }

/* Brand colours (tiles, hero cards and the "other channels" buttons) */
.t-hidden_horizons { background: #1f6f63; color: #fff; }
.t-hidden_horizons .eyebrow { color: #bfe6dd; }
.t-hidden_horizons .tile-line { color: #e3f4ef; }

.t-painted_corgi { background: #6e2645; color: #ffe8f1; }
.t-painted_corgi .eyebrow { color: #f6c1d4; }

.t-gaming { background: var(--card); border-color: var(--line); color: var(--ink); }
.t-gaming .eyebrow { color: #a3e635; }
.t-gaming .tile-line { color: var(--soft); }

.t-household { background: var(--accent); color: var(--on-accent); }
.t-household .eyebrow { color: #5c2e05; }

.t-universe { background: #2a2045; color: #ede9fe; }
.t-universe .eyebrow { color: #c4b5fd; }
.t-universe .tile-line { color: #d6cffb; }

.t-empty { background: none; border: 2px dashed #3a4459; color: var(--muted); justify-content: center; text-align: center; }

/* Home tile sizes */
.tiles .t-hidden_horizons { grid-column: span 4; min-height: 300px; padding: 36px; }
.tiles .t-hidden_horizons .tile-name { font-size: 56px; }
.tiles .t-hidden_horizons .tile-line { font-size: 19px; }
.tiles .t-painted_corgi { grid-column: span 2; min-height: 300px; }
.tiles .t-painted_corgi .tile-name { font-size: 40px; }
.tiles .t-gaming, .tiles .t-household { grid-column: span 3; }
.tiles .t-universe { min-height: 240px; }
.tiles .t-universe .tile-name { font-size: 44px; }
.tiles .t-empty { min-height: 240px; }

/* Tile art: a scene (resources/landing/scenes) fills the tile under a scrim in the brand's
   own dark, so the text stays readable; a badge (resources/landing/art) sits top right. */
.tile { position: relative; overflow: hidden; isolation: isolate; }
.tile-scene, .tile-badge { position: absolute; z-index: -1; transition: transform 0.4s ease; }
.tile-scene { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.t-hidden_horizons { --scrim: 8, 38, 33; }
.t-painted_corgi { --scrim: 42, 10, 26; }
.t-gaming { --scrim: 10, 12, 18; }
.t-household { --scrim: 48, 22, 4; }
.t-universe { --scrim: 16, 10, 34; }
.has-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    /* The busier, paler scenes need a heavier veil than the vista. */
    background: linear-gradient(180deg, rgba(var(--scrim), 0.72) 0%, rgba(var(--scrim), 0.4) 40%, rgba(var(--scrim), 0.62) 62%, rgba(var(--scrim), 0.94) 100%);
}
.t-hidden_horizons.has-scene::before {
    background: linear-gradient(180deg, rgba(var(--scrim), 0.7) 0%, rgba(var(--scrim), 0) 40%, rgba(var(--scrim), 0.15) 55%, rgba(var(--scrim), 0.85) 100%);
}
.has-scene .tile-name, .has-scene .tile-line { text-shadow: 0 2px 14px rgba(var(--scrim), 0.8); }
.has-scene > :not(img) { position: relative; z-index: 1; }
.has-scene .tile-badge { z-index: 1; }
/* On a scene the home-vlog tile's dark-on-orange text turns light. */
.t-household.has-scene { color: #fff; }
.t-household.has-scene .eyebrow { color: #ffd9b0; }
.tile-badge { top: 24px; right: 24px; width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.tiles .t-painted_corgi .tile-badge { width: 104px; height: 104px; }

/* Hover: lift, a glow in the brand's colour, and the art leans in. */
.t-hidden_horizons { --glow: rgba(31, 111, 99, 0.55); }
.t-painted_corgi { --glow: rgba(110, 38, 69, 0.6); }
.t-gaming { --glow: rgba(163, 230, 53, 0.25); }
.t-household { --glow: rgba(244, 162, 89, 0.45); }
.t-universe { --glow: rgba(124, 92, 214, 0.4); }
a.tile { transition: transform 0.25s ease, box-shadow 0.25s ease; }
a.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px var(--glow, rgba(0, 0, 0, 0.4)); }
a.tile:hover .tile-scene { transform: scale(1.05); }
a.tile:hover .tile-badge { transform: scale(1.06) rotate(-3deg); }

/* On load, the headline and then each tile rise in, one after another. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero, .group-label, .tiles > .tile { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.g-youtube .group-label { animation-delay: 0.06s; }
.g-youtube .tiles > .tile:nth-child(1) { animation-delay: 0.10s; }
.g-youtube .tiles > .tile:nth-child(2) { animation-delay: 0.18s; }
.g-youtube .tiles > .tile:nth-child(3) { animation-delay: 0.26s; }
.g-youtube .tiles > .tile:nth-child(4) { animation-delay: 0.34s; }
.g-website .group-label, .g-website .tiles > .tile { animation-delay: 0.42s; }
.g-games .group-label, .g-games .tiles > .tile { animation-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
    .hero, .group-label, .tiles > .tile { animation: none; }
    a.tile, .tile-scene, .tile-badge, .channel, .latest img { transition: none; }
    a.tile:hover, a.tile:hover .tile-scene, a.tile:hover .tile-badge, .channel:hover, .latest:hover img { transform: none; }
}
a.tile:focus-visible, .button:focus-visible, .channel:focus-visible, .latest:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Brand pages */
.back { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--muted); }
.hero-card { min-height: 0; padding: 28px 24px; justify-content: flex-start; gap: 12px; }
.hero-card.has-scene { min-height: 280px; justify-content: flex-end; }
.hero-card.has-badge { padding-right: 150px; }
.hero-card .tile-badge { width: 104px; height: 104px; }
.hero-card .tile-name { font-size: 48px; }

/* The brand's main channel as one wide card, then any others as small buttons. */
.channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 24px;
    background: var(--accent);
    color: var(--on-accent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.channel:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(244, 162, 89, 0.35); }
.channel svg { width: 40px; height: 40px; flex-shrink: 0; }
.channel-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.channel-text strong { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.channel-text span { font-size: 15px; font-weight: 700; opacity: 0.75; overflow-wrap: anywhere; }
.channel-go { margin-left: auto; font-size: 28px; font-weight: 800; }

/* A brand with no live channel yet. */
.soon { padding: 22px 24px; border-radius: 24px; border: 2px dashed rgba(255, 255, 255, 0.25); text-align: center; }
.soon strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.soon p { margin: 6px 0 0; font-size: 16px; opacity: 0.85; }
.soon.t-gaming { background: var(--card); }

/* Newest upload, read from the channel's feed at publish time. */
.latest { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.latest img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; display: block; transition: transform 0.3s ease; }
.latest:hover img { transform: scale(1.03); }
.latest-text { display: flex; flex-direction: column; gap: 6px; }
.latest-label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.latest-text strong { font-size: 19px; line-height: 1.35; }

.buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.button {
    min-height: 88px;
    padding: 8px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 800;
    font-size: 14px;
    text-align: center;
}

.about { padding: 20px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); color: var(--soft); font-size: 16px; line-height: 1.6; }
.about p { margin: 0 0 12px; }
.about > :last-child, .about .person p { margin-bottom: 0; }
.person { display: flex; gap: 14px; align-items: flex-start; padding-top: 4px; }
.person img { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person strong { color: var(--ink); }


/* Footer */
.foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* Tablet: two across */
@media (max-width: 960px) {
    .wrap { padding: 32px; }
    .groups { grid-template-columns: minmax(0, 1fr); }
    .groups .group { grid-column: auto; }
    .g-youtube .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tiles .tile { grid-column: span 1; }
    .tiles .t-hidden_horizons { grid-column: span 2; }
}

/* Phone: one column */
@media (max-width: 640px) {
    .wrap { padding: 16px 16px 28px; gap: 20px; }
    .wrap.narrow { gap: 16px; }
    .brandmark { font-size: 22px; gap: 10px; }
    .brandmark img { width: 40px; height: 40px; }
    .mail { padding: 10px 14px; }
    .mail .long { display: none; }
    .mail .short { display: inline; }
    .hero { padding: 12px 0 0; }
    .lede { font-size: 18px; }
    .groups { row-gap: 28px; }
    .group-label { margin-bottom: 12px; font-size: 20px; }
    .group-label svg { width: 24px; height: 24px; }
    .tiles, .g-youtube .tiles { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .tiles .tile { grid-column: auto; min-height: 200px; padding: 24px; border-radius: 24px; }
    .tile-name, .tiles .t-hidden_horizons .tile-name, .hero-card .tile-name { font-size: 40px; }
    .tiles .t-painted_corgi .tile-name, .tiles .t-universe .tile-name { font-size: 36px; }
    .eyebrow { font-size: 13px; }
    .tile-badge, .tiles .t-painted_corgi .tile-badge, .hero-card .tile-badge { top: 14px; right: 14px; width: 64px; height: 64px; }
    .hero-card.has-badge { padding-right: 24px; padding-top: 90px; }
    .hero-card.has-scene { min-height: 220px; }
    .channel { padding: 16px 18px; }
    .channel-text strong { font-size: 22px; }
    .latest { grid-template-columns: minmax(0, 1fr); }
}
