:root {
  --downland: #1e3b2c;
  --turf: #2f5a40;
  --chalk: #eef1ec;
  --ink: #17231c;
  --slate: #56635b;
  --line: #c9d1c9;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --measure: 38rem;
  /* Corner radius of the logo's tiles (2.5 on a 10-unit block) */
  --tile-radius: 0.375rem;
  /* A strip of the logo's tiles, dissolving downward like the hero's edge */
  --tile-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='384' height='14'%3E%3Crect x='0' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='8' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='16' y='0' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='24' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='32' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='40' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='48' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='56' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='64' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='72' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='80' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='88' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='96' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='104' y='0' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='112' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='120' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='128' y='0' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='144' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='152' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='168' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='176' y='0' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='184' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='192' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='200' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='208' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='216' y='0' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='224' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='232' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='240' y='0' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='248' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='256' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='264' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='272' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='280' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='288' y='0' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='296' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='304' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='312' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='320' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='328' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='336' y='0' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='344' y='0' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='352' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='360' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='368' y='0' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='8' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='24' y='8' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='32' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='48' y='8' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='56' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='64' y='8' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='104' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='136' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='160' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='176' y='8' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='216' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='224' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='240' y='8' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='248' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='256' y='8' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='264' y='8' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='272' y='8' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='288' y='8' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='296' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='304' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='320' y='8' width='6' height='6' rx='1.5' fill='%23c9d1c9'/%3E%3Crect x='328' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='336' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='368' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3Crect x='376' y='8' width='6' height='6' rx='1.5' fill='%23dde3dc'/%3E%3C/svg%3E") 0 0 / 768px 28px
    repeat-x;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--turf);
  outline-offset: 3px;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */

.hero {
  background: var(--downland);
  color: var(--chalk);
}

.hero .wrap {
  position: relative;
}

.hero a:focus-visible {
  outline-color: var(--chalk);
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  flex: none;
  fill: currentColor;
}

.brand-mark .unlit {
  opacity: 0.2;
}

/* Name over a quiet description, proportioned like the lockup in designs/logos.html */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-tagline {
  margin-top: 0.2rem;
  color: #a9bdb0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
}

.place {
  color: #a9bdb0;
  font-size: 0.9375rem;
}

.hero h1 {
  margin: clamp(3rem, 10vw, 7rem) 0 1.75rem;
  font-size: clamp(2.75rem, 7.5vw, 5.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* One statement per line, stacked like blocks */
.hero h1 span {
  display: block;
}

.intro {
  max-width: var(--measure);
  margin: 0 0 2.25rem;
  color: #cfdcd3;
  font-size: 1.25rem;
}

/* Photo beside the intro, squared off like one of the logo's tiles */
.intro-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0 0 2.25rem;
}

.intro-row .intro {
  margin: 0;
}
.portrait {
  flex: none;
  width: clamp(6rem, 14vw, 10rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--tile-radius) * 2);
  background: var(--turf);
}

@media (max-width: 560px) {
  .intro-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: var(--tile-radius);
  background: var(--chalk);
  color: var(--downland);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.button:hover {
  background: #ffffff;
}

.button-dark {
  background: var(--downland);
  color: var(--chalk);
}

.button-dark:hover {
  background: var(--turf);
}

/* Large arrow beside the headline: the favicon's grid, tone on tone */

.hero-arrow {
  position: absolute;
  top: clamp(6rem, 12vw, 9rem);
  right: 1.5rem;
  width: clamp(10rem, 16vw, 15rem);
  height: auto;
}

.hero-arrow rect {
  fill: var(--turf);
}

.hero-arrow .unlit {
  fill: var(--chalk);
  opacity: 0.05;
}

@media (max-width: 1100px) {
  .hero-arrow {
    display: none;
  }
}

/* Tiles dissolving from the green header into the chalk page */

.tile-edge {
  display: block;
  width: 100%;
  height: 9rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  fill: var(--chalk);
}

/* Tiles fade between faint and solid as tile-edge.js swaps them */
.tile-edge rect {
  transition: opacity 900ms ease;
}

.tile-edge .faint {
  opacity: 0.07;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Sections */

main section {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 1rem 3rem;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--tile-rule);
}

main section:first-child {
  background: none;
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* A single logo tile marks each section heading */
h2::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.5em;
  border-radius: 0.15em;
  background: var(--turf);
  vertical-align: 0.05em;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

main p {
  max-width: var(--measure);
  margin: 0;
  color: var(--slate);
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 3rem;
}

.work-body h3 {
  margin-bottom: 1rem;
}

/* Deskee's own lockup: press-kit mark plus its Space Grotesk wordmark */
.deskee-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.deskee-logo img {
  width: 2.75rem;
  height: 2.75rem;
}

.deskee-logo span {
  color: #ff7a29;
  font-family: "Space Grotesk", var(--font);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.deskee-logo:hover span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.scope li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  color: var(--ink);
  font-size: 0.9375rem;
}

.approach-body > p {
  margin-bottom: 2.25rem;
  color: var(--ink);
  font-size: 1.3125rem;
  line-height: 1.5;
}

/* Build / Rescue / Lead: three ways to hire, side by side */
.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 2rem;
}

.contact {
  align-items: start;
}

.contact p {
  margin-bottom: 1.75rem;
}

.contact > :not(h2) {
  grid-column: 2;
  justify-self: start;
}

footer p {
  margin: 0;
  padding: 2rem 0 3rem;
  color: var(--slate);
  font-size: 0.9375rem;
}

@media (max-width: 720px) {
  main section {
    grid-template-columns: 1fr;
  }

  .contact > :not(h2) {
    grid-column: auto;
  }

  .build-grid,
  .ways {
    grid-template-columns: 1fr;
  }
}

/* Timely notice: sits on a turf-tinted panel so it reads as news, not a service */

main section.php {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: calc(var(--tile-radius) * 2);
  background: #dce6dd;
}

.php h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.php-body p {
  color: var(--ink);
}

.php-body p + p {
  margin-top: 1rem;
}

.php-body .button {
  margin-top: 1.75rem;
}

/* Deskee's social card */

.shot {
  margin: 2.5rem 0 0;
}

.shot a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--tile-radius) * 2);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

main section.php + section {
  background: none;
}
