:root {
  --bg: #0a0c0d;
  --bg-elevated: #121517;
  --fg: #eef1f2;
  --fg-muted: rgba(238, 241, 242, 0.58);
  --metal: #aab2b9;
  --accent: #2ec4c6;
  --accent-soft: rgba(46, 196, 198, 0.28);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  height: 100%;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 5vh, 56px) clamp(20px, 5vw, 64px);
  overflow: hidden;
  gap: clamp(24px, 4vh, 40px);
}

.hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 30% 15%, rgba(46, 196, 198, 0.10), transparent 70%),
    radial-gradient(55% 40% at 75% 85%, rgba(127, 184, 255, 0.08), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 90px);
}

/* Brand */
.hero__brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.hero__logo {
  width: clamp(180px, 27vw, 320px);
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 40px rgba(46, 196, 198, 0.12));
}

.hero__claim {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.hero__sub {
  margin: 4px 0 0;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  line-height: 1.4;
  color: var(--fg-muted);
}

/* Tiles */
.tiles {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  gap: clamp(12px, 1.6vw, 20px);
  height: clamp(320px, 46vh, 520px);
}

.tile {
  position: relative;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: flex-grow 0.65s var(--ease), border-color 0.4s var(--ease), background-position 8s var(--ease);
  cursor: pointer;
  container-type: inline-size;
}

.tile--media { background-image: url('../assets/media-bg.jpg'); }
.tile--webdesign { background-image: url('../assets/webdesign-bg.jpg'); }

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 9, 0.32) 0%, rgba(6, 8, 9, 0.72) 78%, rgba(6, 8, 9, 0.85) 100%);
  transition: opacity 0.6s var(--ease);
}
.tile:hover::before { opacity: 0.75; }

.tile:hover,
.tile:focus-visible {
  flex-grow: 3;
  border-color: rgba(255, 255, 255, 0.14);
  outline: none;
}

.tile__glow {
  position: absolute;
  inset: -20%;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.tile--media .tile__glow {
  background: radial-gradient(45% 55% at 30% 100%, rgba(46, 196, 198, 0.32), transparent 70%);
}
.tile--webdesign .tile__glow {
  background: radial-gradient(45% 55% at 70% 100%, rgba(127, 184, 255, 0.28), transparent 70%);
}
.tile:hover .tile__glow,
.tile.is-active .tile__glow { opacity: 1; }

.tile__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 10px;
}

.tile__eyebrow {
  font-weight: 400;
  font-size: clamp(0.62rem, 5.2cqi, 0.85rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile__title {
  font-weight: 700;
  font-size: clamp(1.4rem, 13cqi, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease), font-size 0.65s var(--ease);
  white-space: nowrap;
}
.tile:hover .tile__title { transform: scale(1.04); }

.tile__hover-text {
  font-weight: 400;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--fg-muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease) 0.1s, transform 0.4s var(--ease) 0.1s;
}
.tile:hover .tile__hover-text { opacity: 1; transform: translateY(0); }

/* Legal nav */
.hero__legal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--fg-muted);
}
.hero__legal a { transition: color 0.3s var(--ease); }
.hero__legal a:hover { color: var(--accent); }
.hero__legal .dot { opacity: 0.4; }

/* Mobile */
@media (max-width: 760px) {
  .tiles {
    flex-direction: column;
    height: auto;
  }
  .tile {
    flex: 0 0 160px;
    height: 160px;
    border-color: rgba(255, 255, 255, 0.08);
  }
  .tile__glow { opacity: 0; }
  .tile.is-active .tile__glow { opacity: 0.75; }
  .tile__hover-text { display: none; }
  .tile.is-active .tile__hover-text { display: block; opacity: 1; transform: none; }
  .hero__logo { width: 120px; }
}

/* Cookie consent */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 20px clamp(16px, 4vw, 32px);
  display: flex;
  justify-content: center;
}

.consent__box {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(16, 19, 21, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.consent__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--fg-muted);
}
.consent__text a { color: var(--accent); }

.consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.consent__btn {
  padding: 11px 20px;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.consent__btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fg);
}
.consent__btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.consent__btn--solid {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #06181a;
}
.consent__btn--solid:hover { transform: translateY(-2px); }

@media (max-width: 560px) {
  .consent__box { flex-direction: column; align-items: stretch; }
  .consent__actions { justify-content: stretch; }
  .consent__btn { flex: 1; }
}
