/* 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; }

body {
    margin: 0;
    /* Dusk glow behind the headline over a faint scatter of paw prints. */
    background:
        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.028'%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"),
        var(--ground);
    background-attachment: fixed, fixed, fixed, scroll;
    color: var(--ink);
    font-family: Figtree, system-ui, sans-serif;
    -webkit-text-size-adjust: 100%;
}

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; }

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

.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; }
.tile-platforms { font-size: 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 700; }
.chips span { padding: 8px 14px; background: rgba(255, 255, 255, 0.16); border-radius: 10px; }

/* 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, .t-painted_corgi .tile-platforms { 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-gaming .tile-platforms { color: var(--muted); }

.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); }

/* 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 { grid-column: span 4; min-height: 240px; }
.tiles .t-universe .tile-name { font-size: 44px; }
.tiles .t-empty { grid-column: span 2; min-height: 240px; }

/* Tile art: Hidden Horizons' vista fills its tile, the others wear a round badge. */
.tile { position: relative; overflow: hidden; isolation: isolate; }
.tile-cover, .tile-badge { position: absolute; z-index: -1; transition: transform 0.4s ease; }
.tile-cover { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.has-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(8, 38, 33, 0.7) 0%, rgba(8, 38, 33, 0) 40%, rgba(8, 38, 33, 0.15) 55%, rgba(8, 38, 33, 0.85) 100%);
}
.has-cover > :not(img) { position: relative; z-index: 1; }
.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-cover { 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, .tiles > .tile { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.tiles > .tile:nth-child(1) { animation-delay: 0.10s; }
.tiles > .tile:nth-child(2) { animation-delay: 0.18s; }
.tiles > .tile:nth-child(3) { animation-delay: 0.26s; }
.tiles > .tile:nth-child(4) { animation-delay: 0.34s; }
.tiles > .tile:nth-child(5) { animation-delay: 0.42s; }
.tiles > .tile:nth-child(6) { animation-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
    .hero, .tiles > .tile { animation: none; }
    a.tile, .tile-cover, .tile-badge { transition: none; }
    a.tile:hover, a.tile:hover .tile-cover, a.tile:hover .tile-badge { transform: none; }
}
a.tile:focus-visible, .button: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 .tile-name { font-size: 48px; }

.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;
}
.button.first { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.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; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tiles .tile { grid-column: span 1; }
    .tiles .t-hidden_horizons, .tiles .t-universe { 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; }
    .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 { top: 14px; right: 14px; width: 64px; height: 64px; }
}
