@font-face { font-family: "Evolventa"; src: url(fonts/Evolventa-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Evolventa"; src: url(fonts/Evolventa-Bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Dystopian"; src: url(fonts/dystopian_regular-webfont.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --navy: #030C36;
  --blue: #254392;
  --sky: #0895D3;
  --sun: #F9C015;
  --brand: linear-gradient(79deg, var(--blue) 0%, var(--sky) 58%, var(--sun) 100%);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1400px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: #fff;
  font-family: "Evolventa", "Dystopian", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.grad-text {
  background: linear-gradient(97deg, var(--blue) 0%, var(--sky) 48%, var(--sun) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background orbs (replaces the 3 blurred PNGs) */
.orb { position: fixed; z-index: -1; border-radius: 50%; filter: blur(clamp(30px, 4vw, 60px)); pointer-events: none; }
.orb-1 { width: clamp(140px, 22vw, 300px); aspect-ratio: 1; background: #3d9ad9; top: 18%; left: 42%; }
.orb-2 { width: clamp(150px, 22vw, 300px); aspect-ratio: 1; background: #2d4596; bottom: 12%; right: 16%; }
.orb-3 { width: clamp(80px, 9vw, 130px); aspect-ratio: 1; background: #F0C340; filter: blur(8px); bottom: 10%; left: 32%; }

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; height: 55px; padding: 0 28px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-size: 19px; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(79deg, var(--sun), var(--sky) 42%, var(--blue));
  opacity: 0; transition: opacity .35s ease;
}
.btn:hover::after { opacity: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(3, 12, 54, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 24px; }
.logo img { width: clamp(110px, 12vw, 132px); height: auto; }
.menu { list-style: none; display: flex; gap: clamp(24px, 5vw, 72px); margin: 0; padding: 0; }
.menu a { text-decoration: none; font-size: 18px; padding: 8px 0; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 4px; width: 0; background: var(--brand); transition: width .3s ease; }
.menu a:hover::after, .menu a[aria-current="page"]::after { width: 100%; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Side "Pitch to us" tab */
.side-pitch {
  position: fixed; right: 0; top: 30%; z-index: 40;
  writing-mode: vertical-rl; padding: 48px 16px;
  background: linear-gradient(180deg, var(--blue), var(--sky) 60%, var(--sun));
  color: #fff; text-decoration: none; text-transform: uppercase; font-size: 18px;
}

/* Hero */
.hero { padding: clamp(80px, 14vh, 170px) 0 clamp(80px, 14vh, 170px); }
.hero h1 { font-weight: 700; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.2; margin: 0 0 40px; }

/* Domains */
.domains { padding: clamp(40px, 8vw, 100px) 0; }
.section-title { font-weight: 700; font-size: clamp(36px, 4.5vw, 54px); margin: 0 0 50px; }
.domain-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.domain {
  --c: #FF641A;
  background: var(--c); min-height: 320px; padding: 25px;
  display: flex; flex-direction: column; align-items: center;
  transition: background .5s ease; outline-offset: -3px;
}
.domain:nth-child(2) { --c: #F0E700; }
.domain:nth-child(3) { --c: #6B7ECD; }
.domain:nth-child(4) { --c: #A55FFF; }
.domain:nth-child(5) { --c: #43E77B; }
.domain .icon { margin-top: 20px; height: 100px; width: auto; }
.domain .icon-hover { display: none; }
.domain h3 { align-self: stretch; margin: 30px 0 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; text-transform: uppercase; font-weight: 700; }
.domain p { align-self: stretch; margin: 12px 0 0; font-size: 16px; line-height: 1.35; display: none; }
@media (hover: hover) {
  .domain:hover, .domain:focus-within, .domain:focus { background: #fff; color: #000; }
  .domain:hover .icon-default, .domain:focus .icon-default { display: none; }
  .domain:hover .icon-hover, .domain:focus .icon-hover { display: block; }
  .domain:hover p, .domain:focus p { display: block; }
}
@media (hover: none) { .domain p { display: block; } }

/* Gain */
.gain { padding: 50px 0 50px; }
.gain-panel {
  display: grid; grid-template-columns: 5fr 2fr 5fr; align-items: center;
  background: rgba(37, 67, 146, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: clamp(48px, 9vw, 140px) clamp(24px, 7vw, 100px);
}
.gain h2 { grid-column: 1; text-align: right; font-weight: 700; font-size: clamp(36px, 4vw, 50px); line-height: 1.3; margin: 0; }
.gain-copy { grid-column: 3; }
.gain-copy p { font-size: 16px; line-height: 1.35; letter-spacing: .3px; margin: 0 0 1em; max-width: 60ch; }

/* Footer */
.site-footer { background: #fff; color: var(--navy); padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-logo { width: 190px; height: auto; margin-bottom: 40px; }
.footer-about p { font-size: 16px; line-height: 1.35; letter-spacing: .3px; color: #254392; max-width: 36ch; }
.footer-col { padding-top: 110px; }
.footer-col h2 { font-size: 17px; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 25px; }
.footer-links a { color: var(--blue); font-weight: 700; font-size: 17px; text-transform: uppercase; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.social img { width: 34px; height: 34px; }
.copyright { font-size: 12px; color: var(--blue); margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .domain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col { padding-top: 0; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,.12);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 14px 0; font-size: 20px; }
  .menu a::after { bottom: 8px; }
  .nav { min-height: 72px; }
  .side-pitch { display: none; }
  .gain-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gain h2, .gain-copy { grid-column: 1; text-align: left; }
  .gain h2 { max-width: 12ch; }
  .gain h2 br { display: none; }
}
@media (max-width: 640px) {
  .domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 br { display: none; }
  .domain { min-height: 260px; padding: 20px 16px; }
  .domain .icon { height: 72px; }
  .domain h3 { margin-top: 20px; }
  .domain h3 br { display: none; }
  .domain:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; max-width: 320px; }
}
@media (max-width: 380px) {
  .domain-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Inner pages (portfolio, media) */
.page { padding: clamp(40px, 8vw, 100px) 0 clamp(60px, 8vw, 100px); }
.tile-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.tile-grid > li { flex: 0 1 calc((100% - 3 * 24px) / 4); }

.company {
  position: relative; display: grid; place-items: center; aspect-ratio: 1;
  background: #B4B6C6; text-decoration: none; overflow: hidden;
}
.company img { width: 80%; height: auto; transition: opacity .3s ease; }
.company-desc {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center; color: #fff; font-size: 18px; line-height: 1.35;
  background: rgba(37, 67, 146, .94); opacity: 0; transition: opacity .3s ease;
}
.company-desc::after { content: "↗"; font-size: 22px; flex: none; }
.company:hover .company-desc, .company:focus-visible .company-desc { opacity: 1; }

.news {
  height: 100%; display: flex; flex-direction: column; gap: 14px;
  background: #DCDFEC; color: var(--navy); padding: 30px;
}
.news time { font-size: 13px; color: #4b5170; }
.news h2 { margin: 0 0 auto; font-size: 19px; line-height: 1.2; font-weight: 700; }
.news .btn { min-width: 0; width: 170px; height: 40px; font-size: 15px; text-transform: none; margin-top: 18px; }

@media (max-width: 1100px) {
  .tile-grid > li { flex-basis: calc((100% - 2 * 24px) / 3); }
}
@media (max-width: 860px) {
  .tile-grid { gap: 16px; }
  .tile-grid > li { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 520px) {
  .tile-grid > li { flex-basis: 100%; }
  .media-grid { gap: 12px; }
}
@media (hover: none) {
  /* ponytail: no hover on touch, so the description sits under the logo instead of an overlay */
  .company { aspect-ratio: auto; min-height: 220px; grid-template-rows: 1fr auto; }
  .company img { width: 70%; padding: 24px 0; }
  .company-desc { position: static; opacity: 1; font-size: 15px; padding: 14px 16px; justify-content: space-between; text-align: left; }
}
@media (max-width: 520px) and (hover: hover) {
  .company { aspect-ratio: 4 / 3; }
}
