/* ==========================================================================
   iGamingSEO.ai homepage — only loads on the "iGamingSEO Home" page template.
   Colours live in igamingseo-base.css (top of file).
   ========================================================================== */
.igs-home *,.igs-home *:before,.igs-home *:after{box-sizing:border-box}
html{scroll-behavior:smooth}
body.igs-home{
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.igs-home .igs-main img{display:block;width:100%;height:100%;object-fit:cover;max-width:none}
.igs-home a{color:inherit;text-decoration:none}
.igs-home button{font:inherit}
.igs-home h1,.igs-home h2,.igs-home h3,.igs-home h4{color:inherit}
.igs-home p{margin-top:0}
.igs-home :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.igs-home .container{width:min(1180px,calc(100% - 48px));margin-inline:auto}
.igs-home .eyebrow{font-size:11px;letter-spacing:.22em;text-transform:uppercase;font-weight:700;color:#595959}
.igs-home .serif{font-family:"DM Serif Display",Georgia,serif}
.igs-home .accent{color:var(--accent)}
.igs-home .arrow-link{display:inline-flex;align-items:center;gap:14px;text-transform:uppercase;letter-spacing:.13em;font-weight:700;font-size:11px}
.igs-home .round-arrow{width:48px;height:48px;border:1px solid #bfc4c4;border-radius:50%;display:inline-grid;place-items:center;font-size:20px;transition:.25s ease}
.igs-home .arrow-link:hover .round-arrow{background:var(--accent);color:#fff;border-color:var(--accent);transform:translateX(3px)}

/* Hero */
.igs-home .hero{background:linear-gradient(90deg,var(--bg) 0 64%,#fff 64%);padding:52px 0 72px}
.igs-home .hero-grid{display:grid;grid-template-columns:1fr 1.02fr;gap:64px;align-items:center}
.igs-home .hero{position:relative}
.igs-home .hero-copy{max-width:560px}
.igs-home .hero h1{font-family:"DM Serif Display",Georgia,serif;font-weight:400;font-size:clamp(46px,4.6vw,68px);line-height:.98;margin:18px 0 26px;letter-spacing:-.025em}
.igs-home .hero p.hero-lead{font-family:"DM Serif Display",Georgia,serif;font-style:italic;font-size:21px;line-height:1.45;color:#2c2c2c;max-width:500px;margin:0}
.igs-home .hero-ctas{display:flex;align-items:center;flex-wrap:wrap;gap:22px 48px;margin-top:38px}
.igs-home .hero-btn{position:relative;display:inline-flex;align-items:center;background:#ece9e2;color:var(--ink);padding:24px 64px 24px 36px;font-size:11px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;transition:background .35s,color .35s}
.igs-home .hero-btn-arrow{position:absolute;right:-22px;top:50%;width:44px;height:10px;margin-top:-5px;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.igs-home .hero-btn:hover{background:var(--dark);color:#fff}
.igs-home .hero-btn:hover .hero-btn-arrow{transform:translateX(8px);color:var(--accent)}
.igs-home .hero-link{font-size:11px;letter-spacing:.2em}
.igs-home .hero-link:hover{background-size:100% 1px;color:var(--accent-dark)}
.igs-home .hero-say{display:none;position:absolute;left:38px;top:50%;transform:translateY(-50%) rotate(180deg);writing-mode:vertical-rl;font-family:"DM Serif Display",Georgia,serif;font-style:italic;font-size:19px;color:var(--ink);padding:10px 0;transition:color .25s}
.igs-home .hero-say:before{content:"";display:inline-block;width:1px;height:44px;background:#b9bcbb;margin-bottom:14px;vertical-align:top}
.igs-home .hero-say:hover{color:var(--accent-dark)}
@media(min-width:1320px){.igs-home .hero-say{display:block}}
.igs-home .hero p{max-width:520px;line-height:1.65;font-size:15px;margin:0 0 34px}
.igs-home .hero-image{height:500px;overflow:hidden}
.igs-home .hero-image img{filter:saturate(.85) contrast(.98)}

/* Services */
.igs-home .three-cols{padding:68px 0;background:#fbfaf7}
.igs-home .three-grid{display:grid;grid-template-columns:repeat(3,1fr)}
.igs-home .feature{padding:16px 44px;min-height:190px;border-left:1px solid var(--line)}
.igs-home .feature:first-child{border-left:0}
.igs-home .feature.active{border-left-color:var(--flag)}
.igs-home .feature h3{font-family:"DM Serif Display",Georgia,serif;font-size:27px;font-weight:400;line-height:1.05;margin:0 0 14px}
.igs-home .feature p{font-size:14px;line-height:1.6;color:#444;margin:0 0 18px}
.igs-home .text-link{font-size:10px;text-transform:uppercase;letter-spacing:.16em;font-weight:700}
.igs-home .text-link:hover{color:var(--accent-dark)}

/* Case studies */
.igs-home .case-study{padding:70px 0 86px;background:#fff}
.igs-home .split{display:grid;grid-template-columns:.78fr 1.22fr;gap:68px;align-items:center}
.igs-home .split h2,.igs-home .insights h2,.igs-home .strategy h2,.igs-home .connect h2{font-family:"DM Serif Display",Georgia,serif;font-weight:400;letter-spacing:-.02em}
.igs-home .split h2{font-size:53px;line-height:.97;margin:14px 0 18px}
.igs-home .split p{color:#505050;line-height:1.7;font-size:15px;max-width:420px}
.igs-home .btn{display:inline-flex;align-items:center;justify-content:center;margin-top:24px;padding:17px 25px;background:var(--accent);color:#fff;border:1px solid var(--accent);font-weight:700;font-size:10px;letter-spacing:.14em;text-transform:uppercase;min-width:190px;transition:.25s}
.igs-home .btn:hover{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
.igs-home .btn-flush{margin:0}
.igs-home .case-image{height:490px;position:relative;overflow:hidden}
.igs-home .slider-arrows{display:flex;gap:12px;justify-content:flex-end;margin-top:15px}
.igs-home .circle{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;border:1px solid #c4c4c4;background:transparent;color:var(--ink);padding:0;cursor:pointer}
.igs-home .circle.dark{background:#050505;color:#fff;border-color:#050505}

/* Insights */
.igs-home .insights{background:var(--peach);padding:54px 0 0}
.igs-home .insights-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}
.igs-home .insights h2{margin:8px 0 0;font-size:50px;line-height:.95}
.igs-home .insight-hero{height:420px;overflow:hidden}
.igs-home .insight-hero img{object-position:center 48%}

/* Expertise */
.igs-home .strategy{padding:62px 0 74px}
.igs-home .strategy-top{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:start}
.igs-home .strategy h2{font-size:48px;line-height:.98;margin:10px 0 16px}
.igs-home .strategy p{max-width:570px;line-height:1.7;color:#555}
.igs-home .topic-list{border-left:1px solid var(--line);padding-left:42px;display:grid;grid-template-columns:1fr;gap:22px;font-size:12px;letter-spacing:.05em;text-transform:uppercase}
.igs-home .topic-list a:hover{color:var(--accent)}
.igs-home .tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:22px;margin-top:38px}
.igs-home .tile{height:208px;position:relative;overflow:hidden;background:#eee}
.igs-home .tile img{position:absolute;inset:0}
.igs-home .tile:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.62),transparent 56%)}
.igs-home .tile h3{position:absolute;left:18px;bottom:16px;z-index:2;color:#fff;font-family:"DM Serif Display",Georgia,serif;font-size:26px;font-weight:400;line-height:.95;margin:0}
.igs-home .tile.graphic{background:radial-gradient(circle at 70% 22%,rgba(255,255,255,.28) 0 2px,transparent 3px),linear-gradient(135deg,#087b7f 0%,#0f8b8d 52%,#f0a06b 52%,#f7d8c6 100%)}
.igs-home .tile.dark-graphic{background:radial-gradient(circle at 15% 25%,#fff 0 2px,transparent 3px),radial-gradient(circle at 72% 14%,#fff 0 2px,transparent 3px),radial-gradient(circle at 60% 65%,#fff 0 2px,transparent 3px),#171717}

/* Quote */
.igs-home .quote{padding:54px 0;border-top:1px solid #eceae4;border-bottom:1px solid #eceae4;background:#faf9f6}
.igs-home .quote-inner{display:grid;grid-template-columns:70px 1fr 130px;gap:30px;align-items:center}
.igs-home .quote-mark{width:62px;height:62px;border:1px solid #cfd0cd;border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;font-size:34px}
.igs-home .quote blockquote{font-family:"DM Serif Display",Georgia,serif;font-size:30px;line-height:1.28;margin:0;padding:0;border:0;display:none}
.igs-home .quote blockquote.is-active{display:block}
.igs-home .quote cite{display:block;font-family:"Inter",sans-serif;font-size:10px;font-style:normal;letter-spacing:.14em;text-transform:uppercase;margin-top:12px}

/* Video */
.igs-home .video{height:500px;position:relative;overflow:hidden}
.igs-home .video img{filter:grayscale(1)}
.igs-home .video:after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.12)}
.igs-home .play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;width:82px;height:82px;border-radius:50%;background:#050505;color:var(--accent);display:grid;place-items:center;font-size:27px}

/* Stats */
.igs-home .stats{background:#fae8db;padding:36px 0}
.igs-home .stats-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.igs-home .stat{text-align:center;border-left:1px solid rgba(20,20,20,.2);padding:6px 22px}
.igs-home .stat:first-child{border-left:0}
.igs-home .stat strong{display:block;font-family:"DM Serif Display",Georgia,serif;font-size:33px;font-weight:400}
.igs-home .stat span{font-size:12px;color:#3d3d3d}

/* Contact */
.igs-home .connect{padding:72px 0}
.igs-home .connect-grid{display:grid;grid-template-columns:1fr .92fr;gap:80px;align-items:center}
.igs-home .connect h2{font-size:58px;line-height:.96;margin:10px 0 0}
.igs-home .connect p{font-size:16px;line-height:1.7;color:#444;max-width:520px}

/* ---------- Tablet ---------- */
@media(max-width:980px){
  .igs-home .hero-grid,.igs-home .split,.igs-home .strategy-top,.igs-home .connect-grid{grid-template-columns:1fr}
  .igs-home .hero{background:var(--bg)}
  .igs-home .hero-image{height:420px}
  .igs-home .hero h1{font-size:58px}
  .igs-home .hero-copy{max-width:none}
  .igs-home .three-grid{grid-template-columns:1fr}
  .igs-home .feature{border-left:0;border-top:1px solid var(--line);padding:28px 0}
  .igs-home .feature:first-child{border-top:0}
  .igs-home .tiles{grid-template-columns:repeat(2,1fr)}
  .igs-home .quote-inner{grid-template-columns:60px 1fr}
  .igs-home .quote .slider-arrows{display:none}
  .igs-home .stats-grid{grid-template-columns:repeat(2,1fr);gap:28px 0}
  .igs-home .stat:nth-child(3){border-left:0}
}

/* ---------- Mobile (matches igamingseo-mobile.html) ---------- */
@media(max-width:640px){
  .igs-home .container{width:calc(100% - 44px)}
  .igs-home .eyebrow{font-size:10px;letter-spacing:.2em;color:#666}

  /* Hero */
  .igs-home .hero{background:#f8f6f1;padding:44px 0 28px}
  .igs-home .hero-grid{gap:0}
  .igs-home .hero h1{font-size:42px;line-height:1;letter-spacing:-.03em;margin:14px 0 18px}
  .igs-home .hero p.hero-lead{font-size:19px;line-height:1.45}
  .igs-home .hero-ctas{margin:28px 0 32px;gap:18px 32px}
  .igs-home .hero-btn{padding:20px 56px 20px 26px}
  .igs-home .hero-image{height:310px}

  /* Services: bordered cards */
  .igs-home .three-cols{background:#fff;padding:24px 0 18px}
  .igs-home .feature,.igs-home .feature:first-child{min-height:0;border-top:0;border-left:2px solid var(--flag);border-bottom:1px solid var(--line);padding:26px 0 26px 20px;margin-bottom:18px}
  .igs-home .feature:last-child{margin-bottom:0}
  .igs-home .feature h3{margin:0 35px 8px 0}
  .igs-home .feature p{color:#424242;line-height:1.5;margin:0 26px 12px 0}

  /* Case studies */
  .igs-home .case-study{padding:50px 0 28px}
  .igs-home .split{gap:28px}
  .igs-home .split h2{font-size:43px;line-height:.98;margin:12px 0 16px}
  .igs-home .split p{color:#444;line-height:1.6}
  .igs-home .btn{padding:16px 20px;min-width:0;letter-spacing:.14em}
  .igs-home .case-image{height:245px}
  .igs-home .slider-arrows{gap:8px}
  .igs-home .circle{width:42px;height:42px}

  /* Insights */
  .igs-home .insights{background:var(--peach);padding:40px 0 0}
  .igs-home .insights-head{align-items:flex-start;flex-direction:column;margin-bottom:20px;gap:18px}
  .igs-home .insights h2{font-size:34px;line-height:1;margin-top:10px}
  .igs-home .insight-hero{height:255px}

  /* Expertise: arrow list + 2-column tiles */
  .igs-home .strategy{padding:50px 0}
  .igs-home .strategy-top{gap:0}
  .igs-home .strategy h2{font-size:42px;line-height:.98;margin:10px 0 14px}
  .igs-home .strategy p{line-height:1.55;color:#4f4f4f;margin-bottom:28px}
  .igs-home .topic-list{border-left:0;padding-left:0;gap:0;margin-bottom:32px}
  .igs-home .topic-list a{padding:16px 0;border-bottom:1px solid #e7e5df;display:flex;justify-content:space-between;align-items:center;font-weight:700;letter-spacing:.06em}
  .igs-home .topic-list a:after{content:"→";font-size:14px}
  .igs-home .tiles{grid-template-columns:1fr 1fr;gap:8px;margin-top:0}
  .igs-home .tile{height:auto;min-height:145px}
  .igs-home .tile:last-child{grid-column:1 / -1;min-height:160px}
  .igs-home .tile:after{background:linear-gradient(to top,rgba(0,0,0,.6),transparent 62%)}
  .igs-home .tile h3{left:16px;bottom:14px;font-size:25px}

  /* Quote */
  .igs-home .quote{padding:48px 0;background:#fbfaf7;border-bottom:0}
  .igs-home .quote-inner{grid-template-columns:52px 1fr;gap:18px;align-items:start}
  .igs-home .quote-mark{width:50px;height:50px;font-size:28px}
  .igs-home .quote blockquote{font-size:25px;line-height:1.18}
  .igs-home .quote .slider-arrows{display:flex;grid-column:2;margin-top:0}

  /* Video */
  .igs-home .video{height:265px}
  .igs-home .play{width:66px;height:66px;font-size:22px}

  /* Stats: 2 x 2 */
  .igs-home .stats{padding:30px 0}
  .igs-home .stats .container{width:calc(100% - 40px)}
  .igs-home .stats-grid{gap:0}
  .igs-home .stat{border-left:0;padding:16px 8px;border-bottom:1px solid rgba(0,0,0,.1)}
  .igs-home .stat:nth-child(odd){border-right:1px solid rgba(0,0,0,.13)}
  .igs-home .stat:nth-child(3),.igs-home .stat:nth-child(4){border-bottom:0}
  .igs-home .stat strong{font-size:30px;color:var(--accent-dark)}
  .igs-home .stat:nth-child(4) strong{color:var(--ink)}
  .igs-home .stat span{display:block;margin-top:4px;color:#444}

  /* Contact */
  .igs-home .connect{padding:48px 0 50px}
  .igs-home .connect-grid{gap:18px}
  .igs-home .connect h2{font-size:42px;line-height:.98}
  .igs-home .connect p{font-size:15px;line-height:1.55;color:#4a4a4a;margin-bottom:22px}


}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .igs-home *{transition:none!important}
}

/* ==========================================================================
   Motion: scroll reveals + hover effects (homepage)
   ========================================================================== */
/* Scroll reveal — only hides things when JavaScript is running */
.igs-js .igs-home .igs-reveal{opacity:0;transform:translateY(28px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1)}
.igs-js .igs-home .igs-reveal.is-in{opacity:1;transform:none}

/* Hero index: the active number line grows in */
@keyframes igsGrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}

/* Filled buttons: dark sweep from the left, arrow nudges */
.igs-home .btn{position:relative;overflow:hidden;isolation:isolate}
.igs-home .btn:before{content:"";position:absolute;inset:0;background:var(--dark);transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.2,.7,.2,1);z-index:-1}
.igs-home .btn:hover{background:var(--accent);border-color:var(--dark)}
.igs-home .btn:hover:before{transform:scaleX(1)}

/* Round arrow links: ring fills teal, label slides */
.igs-home .arrow-link{transition:color .25s}
.igs-home .arrow-link:hover{color:var(--accent-dark)}
.igs-home .round-arrow{transition:background .3s,color .3s,border-color .3s,transform .3s}

/* Services: lift the column, teal heading, underline grows under the link */
.igs-home .feature{transition:background .35s,box-shadow .35s,border-color .35s}
.igs-home .feature h3{transition:color .3s}
.igs-home .feature:hover{background:#fff;box-shadow:0 18px 40px -24px rgba(17,24,32,.25)}
.igs-home .feature:hover h3{color:var(--accent-dark)}
.igs-home .text-link{background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;padding-bottom:3px;transition:background-size .35s,color .25s}
.igs-home .feature:hover .text-link,.igs-home .text-link:hover{background-size:100% 1px;color:var(--accent-dark)}

/* Images: slow zoom on hover */
.igs-home .case-image img,.igs-home .insight-hero img,.igs-home .video img{transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.igs-home .case-image:hover img,.igs-home .insight-hero:hover img{transform:scale(1.05)}
.igs-home .video:hover img{transform:scale(1.03)}

/* Slider arrows: invert on hover */
.igs-home .circle{transition:background .25s,color .25s,border-color .25s,transform .25s}
.igs-home .circle:hover{background:var(--accent);border-color:var(--accent);color:#fff;transform:scale(1.06)}

/* Topics: slide right with a teal dash */
.igs-home .topic-list a{position:relative;transition:transform .3s,color .3s}
.igs-home .topic-list a:before{content:"";position:absolute;left:-26px;top:50%;width:14px;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .3s}
.igs-home .topic-list a:hover{transform:translateX(8px);color:var(--accent)}
.igs-home .topic-list a:hover:before{transform:scaleX(1)}

/* Tiles: image zoom, darker overlay, title rises with a teal bar */
.igs-home .tile{cursor:default}
.igs-home .tile img{transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.igs-home .tile:after{transition:opacity .4s}
.igs-home .tile h3{transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.igs-home .tile h3:after{content:"";display:block;width:28px;height:2px;margin-top:10px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .4s .05s}
.igs-home .tile.graphic h3:after{background:#fff}
.igs-home .tile:hover img{transform:scale(1.08)}
.igs-home .tile:hover:after{opacity:.85}
.igs-home .tile:hover h3{transform:translateY(-6px)}
.igs-home .tile:hover h3:after{transform:scaleX(1)}
.igs-home .tile.graphic,.igs-home .tile.dark-graphic{background-size:100% 100%,100% 100%;transition:filter .4s}
.igs-home .tile.graphic:hover,.igs-home .tile.dark-graphic:hover{filter:brightness(1.08) saturate(1.1)}

/* Quote: fade between quotes */
.igs-home .quote blockquote.is-active{animation:igsFade .6s ease both}
@keyframes igsFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Play button: soft pulse ring */
.igs-home .play{transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.igs-home .play:after{content:"";position:absolute;inset:-10px;border-radius:50%;border:1px solid rgba(255,255,255,.7);animation:igsPulse 2.4s ease-out infinite}
.igs-home .play:hover{transform:translate(-50%,-50%) scale(1.08)}
@keyframes igsPulse{0%{transform:scale(.85);opacity:1}100%{transform:scale(1.35);opacity:0}}

/* Stats: number lifts on hover */
.igs-home .stat strong{transition:transform .3s,color .3s}
.igs-home .stat:hover strong{transform:translateY(-3px);color:var(--accent-dark)}

@media (prefers-reduced-motion:reduce){
  .igs-js .igs-home .igs-reveal{opacity:1;transform:none;transition:none}
  .igs-home .play:after,.igs-home .quote blockquote.is-active{animation:none}
}
