/* Arial sized to take the same room as Schibsted Grotesk, so text does not jump when the web font arrives. */
@font-face{font-family:'Schibsted Fallback';src:local('Arial'),local('ArialMT');size-adjust:103.2%;ascent-override:94.96%;descent-override:25.19%;line-gap-override:0%}

/* Grit Fox services page: black header over a white rounded sheet, one lettered row per service group. */
:root {
  --gf-ink: #0d0d0d;
  --gf-paper: #ffffff;
  --gf-gray: #737373; /* 4.7:1 on white, readable where descriptions stay open on touch screens */
  --gf-card: #e6e4e0;
  --gf-fox: #f3aa1d; /* Grit Fox orange, sampled from the portfolio cover */
  --gf-header-h: 62px;
  --gf-pad: 15px;
  /* Same as the main site: full width, with 16–48px side margins. */
  --gf-gutter: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px), (100vw - 1840px) / 2); /* content stops at 1840px on 27" and ultrawide screens */
  --gf-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--gf-ink); }

body {
  margin: 0;
  background: var(--gf-ink);
  color: var(--gf-ink);
  font-family: 'Schibsted Grotesk', 'Schibsted Fallback', Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--gf-fox); outline-offset: 3px; }

/* ---------- pill button ---------- */
.gf-pill {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 1px 9px 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.4s var(--gf-ease), background-color 0.4s var(--gf-ease), border-color 0.4s var(--gf-ease);
}
a.gf-pill:hover { background: var(--gf-fox); border-color: var(--gf-fox); color: var(--gf-ink); }

/* ---------- Kickoff: the Pounce, the main site's Kickoff button ---------- */
/* A forward-pointing gold plate. Pointed at, the fox takes one pounce ahead, its speed lines stretch and its eye
   glances on; it blinks now and then. Everything scales with --s, sized here for the 62px header. */
.gfb {
  --s: 0.6;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(18px * var(--s));
  flex: none;
  height: calc(76px * var(--s));
  padding: 0 calc(24px * var(--s));
  color: var(--gf-ink);
  font-size: calc(22px * var(--s));
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.gfb-label { position: relative; z-index: 2; }
.gfb .fox-ico { display: block; width: calc(38px * var(--s)); height: calc(38px * var(--s)); }
.gfb-pounce { padding-right: calc(27px * var(--s)); }
.gfb-plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gf-fox);
  clip-path: polygon(0 0, calc(100% - 25px * var(--s)) 0, 100% 50%, calc(100% - 25px * var(--s)) 100%, calc(16px * var(--s)) 100%, 0 calc(100% - 16px * var(--s)));
}
.gfb-runway { position: relative; z-index: 2; display: grid; place-items: center; flex: none; width: calc(58px * var(--s)); height: calc(48px * var(--s)); }
.gfb-flight { display: block; margin-left: calc(12px * var(--s)); transition: transform 0.22s ease-out; }
.gfb-speed { position: absolute; left: 0; width: calc(10px * var(--s)); height: 2px; background: currentColor; opacity: 0.8; transform: skewX(-24deg); transition: width 0.2s, opacity 0.2s; }
.gfb-speed-top { top: calc(19px * var(--s)); }
.gfb-speed-bottom { top: calc(27px * var(--s)); left: calc(4px * var(--s)); width: calc(6px * var(--s)); }
.gfb-pounce:is(:hover, :focus-visible) .gfb-flight { transform: translateX(calc(8px * var(--s))); animation: gfbPounce 0.62s cubic-bezier(0.22, 0.75, 0.25, 1) both; }
.gfb-pounce:is(:hover, :focus-visible) .gfb-speed-top { width: calc(21px * var(--s)); }
.gfb-pounce:is(:hover, :focus-visible) .gfb-speed-bottom { width: calc(14px * var(--s)); opacity: 0.45; }
@keyframes gfbPounce {
  0% { transform: translate(0, 0) rotate(0); }
  24% { transform: translate(-5px, 4px) rotate(-5deg); }
  65% { transform: translate(11px, -12px) rotate(5deg); }
  100% { transform: translate(8px, 0) rotate(0); }
}
.gfb .fox-iris { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gfb:is(:hover, :focus-visible) .fox-iris { transform: translate(30px, 4px); }
.gfb .fox-lid { transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: foxBlink 6s ease-in-out infinite; }
.gfb:is(:hover, :focus-visible) .fox-lid { animation: foxWink 0.34s ease-in-out; }
@keyframes foxBlink { 0%, 93%, 100% { transform: scaleY(0); } 96.5% { transform: scaleY(1); } }
@keyframes foxWink { 0%, 100% { transform: scaleY(0); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .gfb * { animation: none !important; transition: none !important; } }

/* ---------- header ---------- */
.gf-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--gf-ink);
  color: var(--gf-paper);
}
.gf-header__bar {
  height: var(--gf-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gf-gutter);
}
/* Logo pieces are the Grit Fox fox head and GRIT FOX lettering (SVG), used as masks so they take the link colour. */
.gf-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color 0.3s var(--gf-ease);
}
.gf-logo:hover { color: var(--gf-fox); }
.gf-logo__mark,
.gf-logo__word {
  display: block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}
.gf-logo__mark { --src: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="297.7 94 404.6 411.6"%3E%3Cpath d="M 371.3 299.6 C 509.9 219.4 628.7 299.6 628.7 299.6 C 628.7 299.6 511.1 442.4 371.3 299.6 M 696.3 329.1 L 650.7 269 L 686.7 100 L 549.5 195.1 L 500 195.5 L 450.5 195.1 L 313.3 100 L 349.3 269 L 303.7 329.1 L 376 387.9 L 355.4 389.1 L 428.9 437.3 L 418.5 408.2 L 470.5 499.6 L 498.3 499.6 L 498.3 494.5 C 498 494.5 497.8 494.5 497.6 494.5 C 492.4 494.3 487.8 491.2 485.3 486.7 L 481.4 479.8 L 485.3 474.2 C 487.5 472.6 500 472.5 500 472.5 C 500 472.5 512.5 472.6 514.7 474.2 L 518.6 479.8 L 514.7 486.7 C 512.2 491.2 507.6 494.3 502.4 494.5 C 502.2 494.5 502 494.5 501.7 494.5 L 501.7 499.6 L 529.5 499.6 L 581.5 408.2 L 571.1 437.3 L 644.6 389.1 L 624 387.9 Z M 696.3 329.1"/%3E%3Cpath d="M 500 333 C 489.3 333 480.5 324.3 480.5 313.5 C 480.5 302.8 489.3 294.1 500 294.1 C 510.7 294.1 519.5 302.8 519.5 313.5 C 519.5 324.3 510.7 333 500 333 M 500 266.5 C 474 266.5 453 287.6 453 313.5 C 453 339.5 474 360.6 500 360.6 C 526 360.6 547 339.5 547 313.5 C 547 287.6 526 266.5 500 266.5"/%3E%3C/svg%3E'); width: 36px; height: 38px; }
.gf-logo__word { --src: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="303.7 541 392.6 359"%3E%3Cpath d="M 314.6 693.3 L 393.4 693.3 C 400.6 693.3 404.2 689.7 404.2 682.4 L 404.2 608.4 L 365.1 608.4 L 369.9 671.5 L 345.1 671.5 L 345.1 562.7 L 389 562.7 L 393.4 541 L 314.6 541 C 307.3 541 303.7 544.6 303.7 551.8 L 303.7 682.4 C 303.7 689.7 307.3 693.3 314.6 693.3"/%3E%3Cpath d="M 463 562.7 L 482.6 562.7 L 482.6 604.1 L 463 604.1 Z M 463 625.8 L 477.4 625.8 L 491.7 693.3 L 535.3 693.3 L 520.9 625.8 L 507.8 614.9 L 525.2 604.1 L 525.2 551.8 C 525.2 544.6 521.6 541 514.4 541 L 421.7 541 L 421.7 693.3 L 463 693.3 Z M 463 625.8"/%3E%3Cpath d="M 589.7 541 L 548.3 541 L 548.3 693.3 L 589.7 693.3 Z M 589.7 541"/%3E%3Cpath d="M 628.8 562.7 L 628.8 693.3 L 670.2 693.3 L 670.2 562.7 L 691.9 562.7 L 696.3 541 L 602.7 541 L 607.1 562.7 Z M 628.8 562.7"/%3E%3Cpath d="M 303.7 900 L 352.7 900 L 352.7 820.8 L 383.7 820.8 L 388.8 795 L 352.7 795 L 352.7 745.2 L 399.1 745.2 L 404.3 719.4 L 303.7 719.4 Z M 303.7 900"/%3E%3Cpath d="M 497.2 874.2 L 466.2 874.2 L 466.2 745.2 L 497.2 745.2 Z M 533.3 719.4 L 430.1 719.4 C 421.5 719.4 417.2 723.7 417.2 732.3 L 417.2 887.1 C 417.2 895.7 421.5 900 430.1 900 L 533.3 900 C 541.9 900 546.2 895.7 546.2 887.1 L 546.2 732.3 C 546.2 723.7 541.9 719.4 533.3 719.4"/%3E%3Cpath d="M 669.2 796.6 L 675.7 788.1 L 694.5 719.4 L 643.7 719.4 L 628.7 779.3 L 626.4 779.3 L 611.4 719.4 L 560.6 719.4 L 579.4 788.1 L 585.9 796.6 L 579.4 805.1 L 559.1 900 L 609.4 900 L 625.9 812.3 L 629.5 812.3 L 646 900 L 696.3 900 L 675.7 805.1 Z M 669.2 796.6"/%3E%3C/svg%3E'); width: 34px; height: 31px; }
.gf-nav { display: flex; align-items: center; gap: 28px; }
.gf-nav__links { display: flex; gap: 28px; font-size: 16px; }
.gf-nav__links a { color: #a8a8a8; transition: color 0.3s var(--gf-ease); }
.gf-nav__links a:hover,
.gf-nav__links a[aria-current='page'] { color: var(--gf-paper); }
.gf-menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--gf-paper);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .gf-nav { gap: 16px; }
  .gf-menu-btn { display: block; }
  .gf-nav__links {
    position: absolute;
    top: var(--gf-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 6px;
    padding: 10px var(--gf-gutter) 22px;
    background: var(--gf-ink);
    font-size: 30px;
    letter-spacing: -0.02em;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--gf-ease), transform 0.3s var(--gf-ease), visibility 0s linear 0.3s;
  }
  .gf-header.is-open .gf-nav__links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--gf-ease), transform 0.3s var(--gf-ease);
  }
}

/* The button is wider than the old pill, so at tablet widths the links close up a little to stay on one line. */
@media (min-width: 768px) and (max-width: 1023px) { .gf-nav, .gf-nav__links { gap: 20px; } }

/* ---------- sheet ---------- */
.gf-sheet {
  position: relative;
  margin-top: var(--gf-header-h);
  min-height: calc(100vh - var(--gf-header-h));
  background: var(--gf-paper);
  border-radius: 14px 14px 0 0;
  padding: 0 var(--gf-gutter);
}

/* ---------- hero ---------- */
.gf-hero {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  column-gap: 10px;
  padding: 72px 0 66px;
}
.gf-hero__title {
  grid-column: 1 / -1;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.gf-hero__intro {
  grid-column: 1 / -1;
  margin-top: 86px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .gf-hero { padding-top: 76px; }
  .gf-hero__title { grid-column: 1 / span 11; font-size: 50px; }
  .gf-hero__intro { grid-column: 12 / -1; margin-top: -5px; }
}
@media (min-width: 1024px) {
  .gf-hero { padding: 80px 0 88px; }
  .gf-hero__title { grid-column: 1 / span 12; font-size: 60px; }
  .gf-hero__intro { grid-column: 13 / -1; font-size: 25px; }
}

/* ---------- service rows ---------- */
.gf-services * { line-height: 1.1; }

.gf-svc {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 10px;
  border-top: 1px solid var(--gf-ink);
  padding: 10px 0 80px;
  scroll-margin-top: var(--gf-header-h);
}
@media (min-width: 768px) { .gf-svc { grid-template-columns: 4fr 7fr 7fr; } }
@media (min-width: 1024px) { .gf-svc { grid-template-columns: 3fr 9fr 6fr; } }

.gf-svc__letter {
  font-size: 75px;
  line-height: 0.81 !important;
  letter-spacing: -0.03em;
  transition: color 0.6s var(--gf-ease);
}
.gf-svc:hover .gf-svc__letter { color: var(--gf-fox); }
@media (min-width: 768px) { .gf-svc__letter { font-size: 80px; } }
@media (min-width: 1024px) { .gf-svc__letter { font-size: 115px; } }

/* Stage heading: name, tagline and intro above the list of what it includes. */
.gf-svc__head { display: grid; gap: 10px; margin-bottom: 28px; }
.gf-svc__head .gf-svc__title { margin-bottom: 0; }
.gf-svc__tag { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.gf-services .gf-svc__intro { max-width: 46ch; font-size: 17px; line-height: 1.4; color: #555; }
@media (min-width: 1024px) { .gf-svc__tag { font-size: 22px; } }

.gf-svc__title {
  margin-bottom: 40px;
  font-size: 24px;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) { .gf-svc__title { margin-bottom: 20px; font-size: 26px; } }
@media (min-width: 1024px) { .gf-svc__title { font-size: 30px; } }

.gf-svc__list { display: flex; flex-direction: column; gap: 15px; }
@media (min-width: 1024px) { .gf-svc__list { gap: 18px; } }

.gf-svc__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  outline: none;
}
@media (min-width: 768px) { .gf-svc__item { max-width: 440px; margin-left: 20px; } }
@media (min-width: 1024px) { .gf-svc__item { margin-left: 0; } }

.gf-svc__name {
  position: relative;
  font-size: 22px;
  letter-spacing: -0.01em;
  transition: color 0.4s var(--gf-ease);
}
.gf-svc__name::before {
  content: '↗';
  position: absolute;
  top: 0;
  right: 100%;
  margin-right: 5px;
  transition: transform 0.4s var(--gf-ease);
}
@media (min-width: 1024px) { .gf-svc__name { font-size: 25px; } }

.gf-svc__item:hover .gf-svc__name,
.gf-svc__item:focus-visible .gf-svc__name { color: var(--gf-fox); }
.gf-svc__item:hover .gf-svc__name::before,
.gf-svc__item:focus-visible .gf-svc__name::before { transform: rotate(45deg); }

.gf-svc__desc {
  --delay: 0s;
  margin-bottom: 30px;
  font-size: 20px;
  color: var(--gf-gray);
  transition:
    grid-template-rows 0.3s ease,
    opacity 0.4s ease-in-out var(--delay),
    scale 0.5s ease-out var(--delay),
    transform 0.4s ease-in-out var(--delay);
}
.gf-svc__desc span { overflow: hidden; }
@media (max-width: 767px) { .gf-services .gf-svc__desc { font-size: 16px; line-height: 1.4; } }

/* Descriptions fold away behind a hover wherever there's a mouse; touch screens keep them open. */
@media (hover: hover) {
  .gf-svc__desc {
    display: grid;
    grid-template-rows: 0fr;
    margin-bottom: 0;
    opacity: 0;
    scale: 1 1.3;
    transform: translateY(0.5em);
    transform-origin: center top;
  }
  .gf-svc__item:hover .gf-svc__desc,
  .gf-svc__item:focus-visible .gf-svc__desc {
    --delay: 0.1s;
    grid-template-rows: 1fr;
    opacity: 1;
    scale: 1;
    transform: translateY(0);
  }
}

/* ---------- the project: its photo shown large, the card under it ---------- */
/* A full-width 4:5 photo with the project's line, name and scope below. As the card reaches the middle of the screen
   (is-visible, set by services.js) the photo settles from a slight zoom; on desktop pointing at it eases it in a little. */
.gf-svc__media {
  position: relative;
  grid-column: 1 / 3;
  display: grid;
  width: 100%;
  margin: 8px 0 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--gf-card);
}
@media (min-width: 768px) { .gf-svc__media { grid-column: 3; align-self: start; margin-top: 0; } }

.gf-svc__img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--gf-ink);
}
.gf-svc__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  scale: 1.07;
  transition: scale 1.2s var(--gf-ease);
}
.gf-svc__media.is-visible .gf-svc__img img { scale: 1; }

.gf-svc__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
  font-size: 16px;
  line-height: 1.4 !important;
}
.gf-svc__card p { margin: 0; line-height: inherit; }
.gf-svc__card footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.gf-svc__card cite { font-style: normal; font-weight: 500; }
.gf-svc__card footer span { color: #5e5e5e; }

@media (min-width: 1024px) {
  .gf-svc__media:hover .gf-svc__img img { scale: 1.04; }
}

.gf-services .gf-svc__get { grid-column: 1 / 3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; font-size: 16px; line-height: 1.45; }
.gf-svc__get .gf-pill { font-size: 12px; }
@media (min-width: 768px) { .gf-services .gf-svc__get { grid-column: 2; margin-top: 12px; } }
.gf-svc__cta { grid-column: 1 / 3; justify-self: start; }
@media (min-width: 768px) { .gf-svc__cta { grid-column: 2; margin-top: 20px; } }
@media (min-width: 1024px) { .gf-svc__cta { grid-column: 3; justify-self: end; } }

/* ---------- footer ---------- */
.gf-footer {
  border-top: 1px solid var(--gf-ink);
  padding: 90px 0 18px;
}
.gf-footer__cta {
  text-wrap: balance;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.gf-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 110px;
}
@media (min-width: 768px) { .gf-footer__cols { grid-template-columns: 1fr 1fr; } }
.gf-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.gf-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 22px; letter-spacing: -0.01em; }
.gf-footer__links a { transition: color 0.3s var(--gf-ease); }
.gf-footer__links a:hover { color: var(--gf-fox); }
.gf-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 110px;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
