/* Goretcki - landing page styles
   Palette is the inverted ("white-on-black") state of the original design:
   #f4f3f1 -> #0b0c0e, #131312 -> #ececed */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #0b0c0e;
  color: #ececed;
  font-family: 'Schibsted Grotesk', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .55; }

::selection { background: #ececed; color: #0b0c0e; }

[data-nocursor], [data-nocursor] * { cursor: none !important; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(11, 12, 14, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(236, 236, 237, .12);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.nav-logo:hover { opacity: 1; }

.nav-reg { font-size: 9px; position: relative; top: -7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .08em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform .25s ease;
}

.btn:hover { opacity: 1; }

.btn-solid { background: #ececed; color: #0b0c0e; }
.btn-solid:hover { background: #ffffff; }

.btn-ghost { border: 1px solid rgba(236, 236, 237, .35); color: #ececed; }
.btn-ghost:hover { background: #ececed; color: #0b0c0e; }

.btn-nav { font-size: 13px; padding: 10px 20px; }

/* ---------- Hero ---------- */

.hero {
  max-width: 1360px;
  margin: 0 auto;
  padding: 110px 40px 84px;
  position: relative;
}

.hero-spin {
  position: absolute;
  top: 96px;
  right: 44px;
  width: clamp(60px, 7vw, 104px);
  height: auto;
  animation: gk-spin 14s linear infinite;
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, 9.4vw, 152px);
  line-height: .95;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}

.hw { display: inline-block; }

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
}

.hero-copy {
  margin: 0;
  max-width: 540px;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(236, 236, 237, .72);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(236, 236, 237, .6);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ececed;
  animation: gk-pulse 2.2s ease-in-out infinite;
}

.cta-row { display: flex; gap: 12px; }

/* ---------- Marquee ---------- */

.marquee-band {
  border-top: 1px solid rgba(236, 236, 237, .12);
  border-bottom: 1px solid rgba(236, 236, 237, .12);
  overflow: hidden;
  padding: 22px 0;
}

.marquee {
  display: flex;
  width: max-content;
  animation: gk-marquee 30s linear infinite;
  white-space: nowrap;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.marquee .outline {
  color: #0b0c0e;
  -webkit-text-stroke: 3px #ececed;
  paint-order: stroke fill;
}

/* ---------- Section headers ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(236, 236, 237, .5);
}

.section-line {
  flex: 1;
  border-top: 1px solid rgba(236, 236, 237, .2);
  position: relative;
  top: -3px;
}

/* ---------- Services accordion ---------- */

.services {
  max-width: 1360px;
  margin: 0 auto;
  padding: 110px 40px 130px;
  scroll-margin-top: 70px;
}

.services .section-head { margin-bottom: 40px; }

.acc {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(236, 236, 237, .14);
}

.acc-item { border-top: 1px solid rgba(236, 236, 237, .14); }

.acc-toggle {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 1.2fr 40px;
  align-items: center;
  gap: 24px;
  padding: 34px 16px;
  text-align: left;
  color: inherit;
  font-family: inherit;
  transition: background .3s ease;
}

.acc-toggle:hover { background: rgba(236, 236, 237, .045); }

.acc-title {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.acc-desc {
  font-size: 15px;
  line-height: 1.5;
  opacity: .65;
  text-wrap: pretty;
}

.acc-plus {
  font-size: 30px;
  font-weight: 300;
  line-height: .8;
  justify-self: end;
  transform: none;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.acc-item.open .acc-plus { transform: rotate(45deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s cubic-bezier(.22, 1, .36, 1);
}

.acc-item.open .acc-panel { grid-template-rows: 1fr; }

.acc-panel-clip { min-height: 0; overflow: hidden; }

.acc-panel-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 6px 16px 44px;
  align-items: flex-start;
}

/* Keep collapsed panel content out of the tab order and accessibility tree;
   the delay lets the close animation finish before hiding. */
.acc-item:not(.open) .acc-panel-inner { visibility: hidden; transition: visibility 0s .55s; }
.acc-item.open .acc-panel-inner { visibility: visible; transition: visibility 0s; }

.acc-detail {
  margin: 0;
  flex: 1.1;
  min-width: 300px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(236, 236, 237, .72);
  text-wrap: pretty;
}

.acc-side {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.acc-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.acc-tags span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  border: 1px solid rgba(236, 236, 237, .3);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.acc-cta {
  align-self: flex-start;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid #ececed;
  padding-bottom: 2px;
}

/* ---------- Contact (light section on dark page) ---------- */

.contact {
  background: #ececed;
  color: #0b0c0e;
  scroll-margin-top: 70px;
}

.contact-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 120px 40px 60px;
}

.contact .section-label { color: rgba(11, 12, 14, .5); }
.contact .section-line { border-top-color: rgba(11, 12, 14, .25); }

.contact-title {
  margin: 30px 0 0;
  font-size: clamp(48px, 6.6vw, 108px);
  line-height: .95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.contact-copy {
  margin: 24px 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(11, 12, 14, .65);
  text-wrap: pretty;
}

.contact-form {
  margin-top: 52px;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(11, 12, 14, .55);
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(11, 12, 14, .3);
  border-radius: 0;
  color: #0b0c0e;
  font-family: 'Schibsted Grotesk', Helvetica, Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  padding: 8px 0;
  outline: none;
}

.contact-form textarea { resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: #0b0c0e; }

.contact-form ::placeholder { color: rgba(11, 12, 14, .3); font-weight: 400; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.btn-submit {
  background: #0b0c0e;
  color: #ececed;
  border: none;
  font-family: 'Schibsted Grotesk', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s ease;
}

.btn-submit:hover { background: #000000; }

.form-thanks {
  margin: 0;
  font-size: 16px;
  color: rgba(11, 12, 14, .85);
}

.giant {
  margin-top: 110px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: .78;
  font-size: clamp(38px, 14.2vw, 236px);
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.gl {
  display: inline-block;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.footer-rule { border-top: 1px solid rgba(11, 12, 14, .18); }

.footer-bar {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(11, 12, 14, .5);
}

.footer-bar a:hover { opacity: .6; }

/* ---------- Cookie consent banner ---------- */

.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 400px;
  background: #0b0c0e;
  border: 1px solid rgba(236, 236, 237, .22);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .5s cubic-bezier(.22, 1, .36, 1);
}

.consent.show { opacity: 1; transform: none; }

.consent-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(236, 236, 237, .72);
  text-wrap: pretty;
}

.consent-text a {
  color: #ececed;
  font-weight: 600;
  border-bottom: 1px solid rgba(236, 236, 237, .4);
  padding-bottom: 1px;
}

.consent-actions { display: flex; gap: 10px; }

.consent-accept {
  background: #ececed;
  color: #0b0c0e;
  border: none;
  font-family: 'Schibsted Grotesk', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
}

.consent-accept:hover { background: #ffffff; }

.consent-decline {
  background: transparent;
  color: #ececed;
  border: 1px solid rgba(236, 236, 237, .35);
  font-family: 'Schibsted Grotesk', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
}

.consent-decline:hover { background: #ececed; color: #0b0c0e; }

@media (max-width: 540px) {
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; transform: none; }
}

/* ---------- Custom cursor ---------- */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity .2s ease;
  mix-blend-mode: difference;
}

.cursor svg {
  display: block;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
  transform-origin: 5px 4px;
}

/* ---------- Animations ---------- */

@keyframes gk-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes gk-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .hero-spin, .badge-dot { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav { padding: 0 20px; }
  .hero { padding: 64px 20px 56px; }
  .services, .footer-bar { padding-left: 20px; padding-right: 20px; }
  .contact-inner { padding: 80px 20px 48px; }
  .hero-spin { display: none; }
  .acc-toggle {
    grid-template-columns: 1fr 36px;
    gap: 10px 14px;
    padding: 24px 4px;
  }
  .acc-desc { grid-column: 1 / -1; }
  .acc-plus { grid-row: 1; grid-column: 2; }
  .acc-panel-inner { padding: 0 4px 34px; gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .nav-links { display: none; }
}
