/*
Theme Name: Improve
Theme URI: https://improve.com.ar
Author: Improve
Author URI: https://improve.com.ar
Description: Custom theme for Improve, a custom software development company. Built around its logo, a 3D hexagon that reacts and breaks apart.
Version: 3.1.3
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: improve
*/

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
  font-family: "Anybody";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url("assets/fonts/anybody-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --void: #05070f;
  --panel: #0c1220;
  --line: rgba(255, 255, 255, 0.16);
  --bone: #eef1f7;
  --mist: #a7b0c4;

  /* Logo: warm half and cool half */
  --ember: #e0352f;
  --flame: #f2762a;
  --amber: #f5ac25;
  --rust: #a8320f;
  --cyan: #33c3e0;
  --teal: #2fd3b0;
  --sea: #08223a;
  --pine: #06423f;
  --brio: #ff4a12;

  --white: #ffffff;
  --black: #000000;

  --display: "Anybody", Impact, "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 10vw, 150px);
  --header-h: 78px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--bone);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--bone);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 7rem);
}

h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
}

h4 {
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 600;
  font-variation-settings: normal;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

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

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--void);
  background: var(--bone);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--panel);
}

.section__head {
  margin-bottom: clamp(32px, 5vw, 64px);
}

.section__head h2 {
  margin-bottom: 18px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-block;
  padding: 17px 28px;
  overflow: hidden;
  font: 600 1.0625rem/1.2 var(--body);
  text-decoration: none;
  color: var(--void);
  background: var(--bone);
  border: 0;
  cursor: pointer;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--ember), var(--amber) 50%, var(--teal));
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.15, 1);
}

.btn:hover::before {
  transform: none;
}

.btn--small {
  padding: 10px 20px;
  font-size: 1rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--bone);
  transition: background-color 0.25s;
}

.site-header.is-solid,
.site-header.is-open,
body:not(.is-home) .site-header {
  background: rgba(5, 7, 15, 0.97);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: var(--header-h);
  padding-inline: var(--gutter);
}

.brand {
  flex: none;
  display: block;
}

.brand img,
.brand .custom-logo {
  width: auto;
  height: 38px;
  max-width: none;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: clamp(14px, 2.2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: linear-gradient(90deg, var(--flame), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  background: var(--bone);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1020px) {
  :root {
    --header-h: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .site-header__cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    margin: 0;
    padding: 4px var(--gutter) 28px;
    background: rgba(5, 7, 15, 0.97);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 12px 0;
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 800;
    font-variation-settings: "wdth" 72;
    line-height: 1.1;
    text-transform: uppercase;
  }
}

/* ==========================================================================
   Hero: the logo as a 3D object
   ========================================================================== */

.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  user-select: none;
}

.hero__glow {
  position: absolute;
  z-index: 0;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  opacity: 0.34;
  pointer-events: none;
  animation: drift 11s ease-in-out infinite alternate;
}

.hero__glow--warm {
  right: -6vmax;
  top: -30vmax;
  background: radial-gradient(circle, var(--flame), transparent 66%);
}

.hero__glow--cool {
  right: 6vmax;
  bottom: -34vmax;
  background: radial-gradient(circle, var(--cyan), transparent 66%);
  animation-direction: alternate-reverse;
}

@keyframes drift {
  to {
    scale: 1.16;
  }
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__title {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: 21vh;
  font-size: clamp(3rem, min(10.4vw, 19vh), 10.5rem);
  line-height: 0.92;
}

.hero__line {
  display: block;
  white-space: nowrap;
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.15, 1) both;
}

.hero__line:nth-child(2) {
  animation-delay: 0.1s;
}

.hero__line:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes rise {
  from {
    transform: translateY(40%);
  }
}

.hero__char {
  display: inline-block;
  font-variation-settings: "wdth" var(--w, 72);
  transition: font-variation-settings 0.25s ease-out, color 0.25s;
}

.hero__foot {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 7.5vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero__lead {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.5;
  color: var(--mist);
}

.hero__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero__hint {
  font-size: 0.95rem;
  color: var(--mist);
}

@media (max-width: 800px) {
  .hero__title {
    bottom: 31vh;
    font-size: 11.5vw;
  }

  .hero__foot {
    flex-direction: column;
    align-items: flex-start;
    bottom: 7vh;
  }

  .hero__hint {
    display: none;
  }
}

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
  position: absolute;
  z-index: 4;
  inset: auto 0 0 0;
  overflow: hidden;
  padding-block: 9px;
  font-size: 0.92rem;
  color: var(--mist);
  border-top: 1px solid var(--line);
}

.ticker__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: slide 40s linear infinite;
}

.ticker__track span {
  white-space: nowrap;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Process: the logo comes together as the steps scroll by
   ========================================================================== */

.process {
  color: var(--mist);
  background: radial-gradient(70% 50% at 75% 40%, #10233a, var(--void) 70%);
}

.process h2 {
  padding-top: var(--section-y);
}

.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
}

.process ol {
  margin: 0;
  padding: 0 0 18vh;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  opacity: 0.38;
  transition: opacity 0.3s;
}

.step.is-active {
  opacity: 1;
}

.step__n {
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  line-height: 0.9;
  background: linear-gradient(100deg, var(--ember), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step:nth-child(n + 3) .step__n {
  background-image: linear-gradient(100deg, var(--cyan), var(--teal));
}

.step h3 {
  margin: 8px 0 12px;
}

.step p {
  max-width: 36ch;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
}

.process__stage {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
}

.process__stage canvas {
  width: 100%;
  height: 100%;
}

@media (max-width: 860px) {
  .process__grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: var(--section-y);
  }

  .process__stage {
    order: -1;
    z-index: 2;
    top: var(--header-h);
    height: 36vh;
    margin-inline: calc(var(--gutter) * -1);
    background: var(--void);
  }

  .process h2 {
    padding-top: 24px;
  }

  .step {
    min-height: 50vh;
  }

  .step__n {
    font-size: 4.5rem;
  }
}

/* ==========================================================================
   Services: two panels that open toward the pointer
   ========================================================================== */

.services {
  display: flex;
  min-height: 100vh;
}

.svc {
  flex: 1 1 0;
  min-width: 0;
  padding: clamp(130px, 19vh, 190px) var(--gutter) clamp(48px, 7vh, 80px);
  transition: flex-grow 0.5s cubic-bezier(0.2, 0.8, 0.15, 1);
}

.svc:hover {
  flex-grow: 1.45;
}

.svc--mobile {
  background: radial-gradient(120% 90% at 10% 0, var(--rust), #1c0b06 72%);
}

.svc--web {
  background: radial-gradient(120% 90% at 90% 0, #0f4d78, #06121f 72%);
}

.svc__title {
  font-size: clamp(3rem, 5.4vw, 7rem);
  font-variation-settings: "wdth" 62;
  white-space: nowrap;
}

.svc__intro {
  max-width: 42ch;
  margin-top: 22px;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.4;
}

.svc__list {
  margin: clamp(28px, 4vh, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.svc__list li {
  max-width: 50ch;
  padding-block: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.svc__list h4 {
  margin-bottom: 4px;
}

.svc__list p {
  margin: 0;
}

@media (max-width: 860px) {
  .services {
    flex-direction: column;
  }

  .svc {
    padding-top: var(--section-y);
  }
}

/* ==========================================================================
   Builder: pick a kind of software and watch it assemble
   ========================================================================== */

.builder {
  --accent: #f5ac25;
  padding-top: var(--section-y);
}

.builder__work {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  margin-top: clamp(24px, 4vw, 48px);
}

.builder__menu {
  padding: 0 clamp(20px, 3vw, 44px) 32px var(--gutter);
}

.builder__chips {
  margin-bottom: 28px;
}

.chip {
  display: block;
  width: 100%;
  padding: 13px 0;
  font: 800 clamp(1.25rem, 1.75vw, 1.7rem)/1.1 var(--display);
  font-variation-settings: "wdth" 72;
  text-transform: uppercase;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left 0.2s, background-color 0.2s;
}

.chip:last-child {
  border-bottom: 1px solid var(--line);
}

.chip:hover {
  padding-left: 10px;
}

.chip[aria-pressed="true"] {
  padding-left: 10px;
  color: var(--black);
  background: var(--c);
}

.builder__note {
  max-width: 28ch;
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--mist);
}

.builder__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3%;
  align-items: center;
  min-height: 580px;
  padding: 36px 3.4%;
  overflow: hidden;
  background: #f5ac25;
}

.builder__flood {
  position: absolute;
  inset: 0;
  background: var(--accent);
  clip-path: circle(0 at 0 50%);
}

.builder__flood.is-run {
  animation: flood 0.7s cubic-bezier(0.3, 0.8, 0.2, 1) forwards;
}

@keyframes flood {
  to {
    clip-path: circle(150% at 0 50%);
  }
}

.code {
  position: relative;
  height: 460px;
  padding: 18px 20px;
  overflow: hidden;
  font: 400 clamp(0.8rem, 1.2vw, 1.2rem)/1.7 var(--mono);
  color: #e6e9ef;
  background: var(--black);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.22);
}

.code__file {
  margin-bottom: 8px;
  color: #98a0ae;
}

.code__line {
  min-height: 1.7em;
  white-space: pre-wrap;
  word-break: break-word;
}

.code .kw {
  color: var(--accent);
}

.code__caret {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--accent);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.phone {
  position: relative;
  justify-self: center;
  width: 250px;
  height: 500px;
  padding: 10px;
  background: var(--black);
  border-radius: 34px;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.22);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 26px 14px 14px;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.25;
  color: var(--black);
  background: var(--white);
  border-radius: 24px;
}

.bit {
  opacity: 0;
  transform: translateY(14px) scale(0.94);
}

.bit.is-on {
  opacity: 1;
  transform: none;
  transition: transform 0.35s cubic-bezier(0.2, 1.5, 0.4, 1), opacity 0.15s;
}

.ph-title {
  font: 900 1.5rem/1 var(--display);
  font-variation-settings: "wdth" 72;
}

.ph-sub {
  color: #55504a;
}

.ph-block {
  flex: 1;
  min-height: 0;
  background: var(--accent);
  border-radius: 12px;
}

.ph-block--map {
  background: repeating-linear-gradient(45deg, var(--accent) 0 14px, #25b597 14px 28px);
}

.ph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ph-card {
  padding: 8px;
  font-weight: 700;
  background: #f0f1f4;
  border-radius: 10px;
}

.ph-card small {
  display: block;
  font-weight: 500;
  color: #55504a;
}

.ph-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  font-weight: 600;
  background: #f0f1f4;
  border-radius: 10px;
}

.ph-btn {
  margin-top: auto;
  padding: 10px;
  font-weight: 700;
  text-align: center;
  color: var(--white);
  background: var(--black);
  border-radius: 10px;
}

.ph-msg {
  align-self: flex-start;
  max-width: 86%;
  padding: 7px 10px;
  background: #f0f1f4;
  border-radius: 12px 12px 12px 2px;
}

.ph-msg--me {
  align-self: flex-end;
  background: var(--accent);
  border-radius: 12px 12px 2px 12px;
}

@media (max-width: 960px) {
  .builder__work {
    grid-template-columns: 1fr;
  }

  .builder__menu {
    padding-inline: var(--gutter);
  }

  .builder__stage {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px var(--gutter);
  }

  .code {
    height: 250px;
  }
}

/* ==========================================================================
   Frame
   ========================================================================== */

/* A browser window around a screenshot */
.frame {
  overflow: hidden;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.frame::before {
  content: "";
  display: block;
  height: 26px;
  background: radial-gradient(circle at 16px 50%, #ff5f57 4px, transparent 5px), radial-gradient(circle at 32px 50%, #febc2e 4px, transparent 5px), radial-gradient(circle at 48px 50%, #28c840 4px, transparent 5px), #eceef2;
}

.frame img,
.frame video {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Work: full-screen panels that stack over each other
   ========================================================================== */

.work {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.work--sea {
  background: var(--sea);
}

.work--pine {
  background: var(--pine);
}

.work--flame {
  background: var(--rust);
}

.work__inner {
  padding-block: calc(var(--header-h) + 12px) 32px;
}

.work__name {
  font-size: clamp(4rem, 14.5vw, 18rem);
  font-variation-settings: "wdth" 56;
  line-height: 0.86;
  white-space: nowrap;
}

.work__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(-120px, -6vw, -20px);
}

.work__kind {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--amber);
}

.work--flame .work__kind {
  color: var(--white);
}

.work__copy p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.work__frame .work__image {
  max-height: none;
}

.work:has(.work__frame) .work__grid {
  align-items: center;
  margin-top: clamp(24px, 3vw, 48px);
}

.work__image {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  object-position: right bottom;
}

@media (max-width: 860px) {
  .work {
    position: relative;
    min-height: 0;
  }

  .work__inner {
    padding-block: var(--section-y);
  }

  .work__name {
    font-size: 15vw;
    white-space: normal;
  }

  .work__grid {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .work__image {
    order: -1;
  }
}

.work__extra {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 4px clamp(24px, 4vw, 64px);
  margin-top: clamp(20px, 3vh, 32px);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.work__extra h4 {
  font-size: 1rem;
}

.work__extra p {
  margin: 0;
  max-width: none;
  font-size: 0.975rem;
  line-height: 1.45;
  color: rgba(238, 241, 247, 0.82);
}

/* Las Annettas: the store itself scrolling inside a browser and a phone */
.work--shop {
  color: #1a1410;
  background: #efe6d8;
}

.work--shop .work__name {
  color: #1a1410;
}

.work--shop .work__kind {
  color: var(--rust);
}

.work--shop .work__grid {
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  align-items: center;
  margin-top: clamp(20px, 3vw, 40px);
}

.work--shop .btn {
  color: var(--bone);
  background: var(--black);
}

.work--shop .btn:hover {
  color: var(--black);
}

.shop {
  position: relative;
  padding: 0 11% 26px 0;
}

.shop__desktop {
  height: min(60vh, 500px);
}

.shop__window {
  height: calc(100% - 26px);
  overflow: hidden;
  background: var(--white);
  container-type: size;
}

.shop__window img {
  width: 100%;
  animation: shop-scroll 34s ease-in-out infinite alternate;
}

.shop:hover .shop__window img {
  animation-play-state: paused;
}

@keyframes shop-scroll {
  0%,
  6% {
    transform: translateY(0);
  }

  94%,
  100% {
    transform: translateY(calc(-100% + 100cqh));
  }
}

.shop__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  aspect-ratio: 9 / 19;
  padding: 7px;
  background: var(--black);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(40, 20, 0, 0.4);
}

.shop__phone .shop__window {
  height: 100%;
  border-radius: 21px;
}

.shop__phone img {
  animation-duration: 26s;
}

@media (max-width: 860px) {
  .work__extra,
  .work--shop .work__grid {
    grid-template-columns: 1fr;
  }

  .shop {
    order: -1;
  }

  .shop__desktop {
    height: 70vw;
  }

  .shop__phone {
    width: 34%;
  }
}

/* RPM Shift Light: the counter climbs and the panel turns red, like the app's alert */
.work--rpm {
  background: var(--void);
  transition: background-color 0.3s;
}

.work--rpm.is-alert {
  background: #c21414;
}

.work--rpm.is-alert .work__kind {
  color: var(--white);
}

.work--rpm .work__grid {
  align-items: center;
  margin-top: clamp(16px, 2.4vw, 32px);
}

.rev {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  line-height: 1;
  text-transform: uppercase;
}

.rev__label {
  font-size: 1.35rem;
}

.rev__value {
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  font-variant-numeric: tabular-nums;
}

.phones {
  display: flex;
  justify-content: center;
}

.phones img {
  width: 33%;
  max-height: 60vh;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.15, 1);
}

.phones img:nth-child(1) {
  transform: translateX(8%) rotate(-5deg) scale(0.92);
}

.phones img:nth-child(2) {
  position: relative;
  z-index: 1;
}

.phones img:nth-child(3) {
  transform: translateX(-8%) rotate(5deg) scale(0.92);
}

/* ==========================================================================
   Brioforz: the flagship project
   ========================================================================== */

.brio {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-h) + 40px) var(--section-y);
  overflow: hidden;
  color: var(--black);
  background: var(--brio);
}

.brio__name {
  font-size: clamp(4rem, 21.2vw, 19.4rem);
  font-variation-settings: "wdth" 84;
  line-height: 0.8;
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: var(--black);
}

.brio__lead {
  max-width: 44ch;
  margin-top: clamp(16px, 2vw, 28px);
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
}

.brio__body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(32px, 5vw, 64px);
}

.brio__tab {
  display: block;
  width: 100%;
  padding: 14px 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-top: 2px solid var(--black);
  cursor: pointer;
}

.brio__tab:last-of-type {
  border-bottom: 2px solid var(--black);
  margin-bottom: 24px;
}

.brio__tab-title {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 900;
  font-variation-settings: "wdth" 66;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.68;
  transition: opacity 0.2s;
}

.brio__tab:hover .brio__tab-title,
.brio__tab.is-active .brio__tab-title {
  opacity: 1;
}

.brio__tab-text {
  display: none;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

.brio__tab.is-active .brio__tab-text {
  display: block;
}

.brio :focus-visible {
  outline-color: var(--black);
}

.brio__stage {
  display: grid;
  align-items: start;
}

.brio__view {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.35s, transform 0.45s cubic-bezier(0.2, 0.8, 0.15, 1), visibility 0.35s;
}

.brio__view.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.brio__float {
  position: absolute;
  right: -2%;
  bottom: -9%;
  width: 46%;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.brio__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.brio__modules li {
  padding: 6px 12px;
  font-weight: 600;
  color: var(--bone);
  background: var(--black);
}

.brio__view--mobile {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 4%;
}

.brio__view--mobile img + img {
  border-radius: 18px;
}

.brio__view--mobile img {
  width: 100%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4));
}

@media (max-width: 960px) {
  .brio__body {
    grid-template-columns: 1fr;
  }

  .brio__float {
    bottom: -6%;
    right: 0;
  }

  .brio__stage {
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   Closing call to action
   ========================================================================== */

.cta {
  position: relative;
  padding-block: var(--section-y);
  color: var(--black);
  background: var(--amber);
}

.cta h2 {
  max-width: 14ch;
  font-size: clamp(3rem, 1rem + 8.4vw, 10.5rem);
  line-height: 0.98;
  color: var(--black);
}

.cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(28px, 4vw, 48px);
}

.cta__row p {
  margin: 0;
  font-weight: 600;
}

.cta .btn {
  color: var(--bone);
  background: var(--black);
}

.cta .btn:hover {
  color: var(--black);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  color: var(--mist);
  background: var(--void);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 6vw, 96px);
  padding-block: clamp(48px, 6vw, 88px);
}

.site-footer .brand {
  display: inline-block;
}

.site-footer__tagline {
  margin-top: 16px;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 800;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:not(.brand) {
  text-decoration: none;
}

.site-footer a:not(.brand):hover {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer__legal {
  padding-block: 20px;
  font-size: 0.9375rem;
  border-top: 1px solid var(--line);
}

.site-footer__legal p {
  margin: 0;
  max-width: none;
}

@media (max-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  min-height: 100vh;
  padding-block: calc(var(--header-h) + 48px) 72px;
  background: radial-gradient(60% 50% at 80% 10%, rgba(242, 118, 42, 0.28), transparent 70%), radial-gradient(60% 50% at 70% 100%, rgba(51, 195, 224, 0.2), transparent 70%);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.contact h1 {
  font-size: clamp(3.25rem, 1.2rem + 6.4vw, 8rem);
}

.contact__info > p {
  margin-top: 24px;
  font-size: 1.3rem;
  color: var(--mist);
}

.contact__list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.contact__list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--flame);
  text-underline-offset: 0.3em;
}

.contact__panel {
  padding: clamp(24px, 4vw, 48px);
  background: var(--panel);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--ember), var(--amber) 50%, var(--teal)) 1;
}

.contact__panel p {
  max-width: none;
  margin-bottom: 16px;
}

.contact__panel label {
  display: block;
  font-weight: 500;
  color: var(--mist);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 2px;
  font: 500 1.0625rem/1.4 var(--body);
  color: var(--bone);
  background: transparent;
  border: 0;
  border-bottom: 2px solid #3a4560;
  border-radius: 0;
}

.wpcf7 textarea {
  height: 170px;
  resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-bottom-color: var(--amber);
}

.wpcf7 input[type="submit"] {
  padding: 17px 32px;
  font: 600 1.0625rem/1.2 var(--body);
  color: var(--void);
  background: var(--bone);
  border: 0;
  cursor: pointer;
  transition: background-color 0.18s;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--amber);
}

.wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: #ff9d8a;
}

.wpcf7 form .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 0;
  font-weight: 600;
  border: 0;
}

@media (max-width: 860px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Generic content (pages, posts, 404)
   ========================================================================== */

.page-head {
  padding-block: calc(var(--header-h) + 48px) clamp(36px, 5vw, 64px);
  background: radial-gradient(70% 120% at 82% 0, #10334f, var(--void) 70%);
}

.page-head h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 1.2rem + 4.6vw, 6rem);
}

.page-head p {
  margin: 20px 0 0;
  font-size: 1.25rem;
  color: var(--mist);
}

.page-head time {
  display: block;
  margin-top: 16px;
  color: var(--mist);
}

.prose {
  padding-block: clamp(40px, 6vw, 72px) var(--section-y);
}

.prose > * {
  max-width: 44rem;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3 {
  margin-top: 1.5em;
}

.prose h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

.prose a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--flame);
}

.prose blockquote {
  margin-inline: 0;
  padding-left: 20px;
  font-size: 1.2rem;
  border-left: 6px solid var(--flame);
}

.post-list {
  display: grid;
  gap: 40px;
  padding-block: clamp(40px, 6vw, 72px) var(--section-y);
}

.post-list > * {
  max-width: 44rem;
}

.post-list article h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

.post-list article h2 a {
  text-decoration: none;
}

.post-list article h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--flame);
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding-block: calc(var(--header-h) + 40px) 64px;
  background: radial-gradient(60% 60% at 80% 20%, rgba(242, 118, 42, 0.26), transparent 70%);
}

.not-found h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 1.2rem + 7vw, 8rem);
}

.not-found p {
  margin-block: 24px 28px;
  font-size: 1.3rem;
  color: var(--mist);
}

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

  .shop__window img,
  .hero__glow,
  .hero__line,
  .ticker__track,
  .code__caret {
    animation: none;
  }

  .builder__flood.is-run {
    animation-duration: 0.01s;
  }
}
