/* ==========================================================================
   Cresvon — global stylesheet
   Colours, type and spacing are taken directly from the supplied designs.
   ========================================================================== */
@font-face {
  font-family: "Extenda 20 Micro";
  src: url("../fonts/Extenda-20-Micro.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core palette (sampled from the supplied designs) */
  --bg:            #121212;
  --green:         #00AF54;
  --peach:         #F9BA80;
  --white:         #FFFFFF;
  --ink:           #121212;          /* text on light buttons */
  --demo-red:      #A61115;          /* featured work phone screen */

  --text:          rgba(255, 255, 255, 0.88);
  --text-soft:     rgba(255, 255, 255, 0.72);
  --text-mute:     rgba(255, 255, 255, 0.55);
  --line:          rgba(255, 255, 255, 0.85);
  --line-soft:     rgba(255, 255, 255, 0.28);

  /* Type */
--serif: "Lora", "Times New Roman", serif;
--sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
--mono: "Roboto Mono", "Consolas", "Liberation Mono", monospace;
--condensed: "Extenda 20 Micro", "Arial Narrow", sans-serif;

  /* Layout */
  --pad: clamp(20px, 5vw, 68px);
  --maxw: 1440px;
  --nav-h: 70px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 20;

  background: radial-gradient(
    circle,
    rgba(0, 175, 84, 0.055) 0%,
    rgba(0, 175, 84, 0.025) 38%,
    rgba(0, 175, 84, 0) 72%
  );

  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: screen;
}

/* --------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.is-scrollbar-dragging {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

.custom-scrollbar {
  position: fixed;

  top: calc(var(--nav-h) + 28px);
  bottom: 28px;
  right: 8px;

  width: 8px;

  z-index: 9999;

  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.custom-scrollbar__track {
  pointer-events: none;
}

.custom-scrollbar__thumb {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.custom-scrollbar__thumb:active {
  cursor: grabbing;
}

.custom-scrollbar.is-visible {
  opacity: 1;
}

.custom-scrollbar__track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;

  width: 2px;

  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;

  transform: translateX(-50%);
}

.custom-scrollbar__thumb {
  position: absolute;
  top: 0;
  left: 50%;

  width: 5px;
  min-height: 46px;

  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;

  transform: translateX(-50%);
}

img { max-width: none; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green);
  color: var(--ink);
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------- layout bits -- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

section { position: relative; }

/* Anchor targets clear the fixed navbar */
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-mute);
  display: block;
  margin-bottom: -4px;
  transform: translateY(4px);
}

.serif-h {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.005em;
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              color 0.25s var(--ease);
}
.btn .arw { transition: transform 0.25s var(--ease); }
.btn:hover .arw { transform: translate(3px, -3px); }
.btn--right:hover .arw { transform: translateX(4px); }

.btn--peach {
  background: var(--peach);
  color: var(--ink);
}
.btn--peach:hover { box-shadow: 0 8px 24px rgba(249, 186, 128, 0.18); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

.btn--green {
  background: var(--green);
  color: var(--ink);
}
.btn--green:hover { box-shadow: 0 8px 24px rgba(0, 175, 84, 0.22); transform: translateY(-2px); }

.btn--pill { border-radius: 999px; padding: 11px 22px; min-height: 42px; }

/* ------------------------------------------------------------- navbar -- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
overflow: hidden;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.nav__logo img {
  width: 210px;
  height: auto;
  margin: 0;
  transform: translateY(2px);
  transition: opacity 0.25s var(--ease);
}

.home-page .nav__logo img {
  width: 185px;
}

.home-page .nav__cta {
  min-height: 36px;
  padding: 7px 16px;
  font-size: 13px;
}

.home-page .nav__inner {
  padding-left: 18px;
  padding-right: 18px;
}

.nav__logo:hover img { opacity: 0.82; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.2vw, 46px);
}
.nav__links a {
  position: relative;
  text-decoration: none;
  font-size: 15px;
  color: var(--white);
  padding: 6px 2px;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__links a:hover { color: var(--green); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 18px;
  font-size: 14px;
}

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  position: relative;
  width: 18px; height: 1.5px;
  background: var(--white);
  transition: background 0.2s var(--ease);
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: var(--white);
  transition: transform 0.28s var(--ease);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Hover effect noted in the docs: arrow slides in on the mobile menu links */
.nav__mobile {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 8px var(--pad) 26px;
  background: var(--bg);
}
.nav__mobile a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 17px;
  text-decoration: none;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile a .arw {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__mobile a:hover .arw,
.nav__mobile a:focus-visible .arw { opacity: 1; transform: translateX(0); }
.nav__mobile .btn {
  margin-top: 20px;
  width: 100%;
}
.nav__mobile .btn--outline {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* --------------------------------------------------------------- hero -- */

.hero {
  padding-top: calc(var(--nav-h) + clamp(60px, 11vh, 120px));
  padding-bottom: clamp(70px, 12vh, 140px);
  overflow: hidden;
  background: url("/assets/img/grain.png") center center / cover no-repeat;
}

.hero .eyebrow {
  margin-bottom: -13px;
  transform: translateY(4px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green);
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.14;
  margin-top: 4px;
}
.hero__title em {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 800;
  font-size: 0.95em;
  letter-spacing: -0.01em;
}

.hero__sub {
  margin-top: 26px;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--text);
  max-width: 560px;
}
.hero__sub b { font-weight: 700; color: var(--white); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero__art {
  justify-self: end;
  width: 100%;
  max-width: 520px;
}
.hero__art img { width: 100%; height: auto; }

/* -------------------------------------------------- chevron divider --- */

.divider-chevrons {
  position: relative;
  height: 12px;
  overflow: hidden;
  background-color: var(--bg);
}

.divider-chevrons__track {
  position: absolute;
  inset: 0;
  width: 200%;

  background-repeat: repeat-x;
  background-size: 96px 12px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='12' viewBox='0 0 96 12'%3E%3Crect width='96' height='12' fill='%23FFFFFF'/%3E%3Cpath d='M-6 0H42L48 6L42 12H-6L0 6Z' fill='%2300AF54'/%3E%3Cpath d='M90 0H96V12H90L96 6Z' fill='%2300AF54'/%3E%3C/svg%3E");

  animation: chevron-run 2.4s linear infinite;
}

@keyframes chevron-run {
  from { background-position-x: 0; }
  to   { background-position-x: 96px; }
}

@keyframes chevron-run-rev {
  from { background-position-x: 84px; }
  to   { background-position-x: 0; }
}

/* ---------------------------------------------- stacked green stripes -- */

.divider-stripes {
  height: 26px;
  background:
    linear-gradient(
      to bottom,
      var(--green) 0 2px,
      transparent 2px 6px,
      var(--green) 6px 8px,
      transparent 8px 12px,
      var(--green) 12px 14px,
      transparent 14px 18px,
      var(--green) 18px 20px,
      transparent 20px 24px,
      var(--green) 24px 26px
    );
}

/* thin single rule that opens the Featured Work / Contact sections */
.rule-green {
  width: 100%;
  height: 2px;
  background: var(--green);
}

/* ------------------------------------------------------------ process -- */

.process {
  padding-block: clamp(60px, 9vh, 110px) clamp(70px, 11vh, 140px);
}
.process__head {
  text-align: center;
}
.process__head .eyebrow {
  display: block;
  width: fit-content;
  margin-left: 31.3%;
}

.process__title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.18;
}
.process__title b { font-weight: 700; }
.process__title .arrow-glyph {
  display: inline-block;
  vertical-align: middle;
  width: clamp(46px, 5vw, 86px);
  margin-inline: 0.18em;
  color: var(--green);
}

.process__intro {
  margin: 26px auto 0;
  max-width: 980px;
  text-align: center;
  color: var(--text-soft);
  font-size: clamp(14px, 1.15vw, 16px);
}

.process__body {
  position: relative;
  margin-top: clamp(46px, 7vw, 86px);
  padding-block: clamp(40px, 6vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
/* dotted field behind the steps */
.process__body::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;

  /* extend dots to both sides of the viewport */
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);

  background-image: radial-gradient(
    rgba(255,255,255,0.075) 1.1px,
    transparent 1.1px
  );
  background-size: 22px 22px;

  /* fade dots into the background near the sides */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );

  pointer-events: none;
}

.steps { position: relative; padding-left: clamp(0px, 10vw, 145px); }

.step { position: relative; }

.step__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 4px 2px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.1;
  color: rgba(0, 175, 84, 0.72);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step__btn:hover { color: var(--green); }
.step.is-active .step__btn { color: var(--green); transform: translateX(5px); }

.step__icon {
  width: 0.52em; height: 0.52em;
  flex: 0 0 auto;
  color: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.9;
}
.step.is-active .step__icon,
.step__btn:hover .step__icon { transform: translateY(-2px) rotate(-8deg); opacity: 1; }

.step__connector {
  position: relative;
  width: 1px;
  height: clamp(56px, 8vw, 96px);
  margin: 10px 0 10px 18px;
  background: rgba(255, 255, 255, 0.35);
}
.step__connector::after {          /* arrow head */
  content: "";
  position: absolute;
  left: 50%; bottom: -1px;
  width: 7px; height: 7px;
  border-right: 1.5px solid rgba(255,255,255,0.65);
  border-bottom: 1.5px solid rgba(255,255,255,0.65);
  transform: translateX(-50%) rotate(45deg);
}

.step__connector.is-filled::after {
  border-color: var(--green);
  transition: border-color 0s linear 0.45s;
}

.step__connector i {               /* fill that runs down to the active step */
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.step__connector.is-filled i { transform: scaleY(1); }

.process__hint {
  position: absolute;
  left: calc(var(--pad) * -0.5);
  top: 122px;
  max-width: 150px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-mute);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}
.process__hint.is-shown { opacity: 1; transform: translateX(0); }

/* right-hand panel */
.process__panel {
  position: relative;
  min-height: 540px;
  padding-top: 10px;
  align-self: start;

  --panel-out: 150ms;
  --panel-in: 200ms;
}

.panel__item {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--panel-y, 0px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--panel-out) ease-in-out,
              transform var(--panel-out) ease-in-out;
  pointer-events: none;
}

#panel-discover { --panel-y: 0px; }
#panel-design   { --panel-y: 155px; }
#panel-refine   { --panel-y: 310px; }
#panel-launch   { --panel-y: 465px; }

.panel__item.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  transition: opacity var(--panel-in) ease-in-out,
              transform var(--panel-in) ease-in-out;
}
.panel__item.is-entering { opacity: 0; transform: translateX(20px); }

.panel__text {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text);
  max-width: 46ch;
}
.panel__keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 700;
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.panel__item.is-active .panel__keys { opacity: 1; transform: translateY(0); transition-delay: 100ms; }
.panel__keys span:not(:last-child)::after {
  content: "•";
  color: var(--green);
  margin-left: 10px;
}

/* ----------------------------------------------------- featured work -- */

.featured {
  padding-block: clamp(50px, 8vh, 90px) clamp(60px, 9vh, 110px);
  overflow: hidden;
  background: url("/assets/img/secondgrain.png") center center / cover no-repeat;
position: relative;
}

.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(
    to bottom,
    rgba(0, 175, 84, 0.55) 0px,
    rgba(0, 175, 84, 0.22) 7px,
    rgba(0, 175, 84, 0.07) 14px,
    transparent 24px
  );
  pointer-events: none;
  z-index: 1;
}

.featured__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: 24px;
}
.featured__title { font-size: clamp(30px, 4vw, 56px); line-height: 1.18; }
.featured__note {
  text-align: right;
  color: var(--text-soft);
  font-size: clamp(13px, 1.05vw, 15px);
  max-width: 42ch;
  justify-self: end;
}

.featured__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 44px);
  margin-top: clamp(34px, 5vw, 60px);
}

.featured__stage > .btn {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

/* real phone image with live website inside */
.phone {
  position: relative;
  width: min(740px, 92vw);
}

.phone::after {
  content: "";
  position: absolute;
  top: 7.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 12%;
  height: 3.35%;
  background: #050505;
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}

.phone__frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.phone__screen {
  position: absolute;
  left: 30.1%;
top: 5.8%;
width: 39.8%;
height: 87.2%;

  z-index: 2;
  overflow: hidden;
  border-radius: 38px;
  background: #0b0b0b;
}

.phone__screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  scrollbar-width: none;
}

/* ---------------------------------------------------------- about ----- */

.about { padding-block: clamp(60px, 9vh, 110px) clamp(60px, 9vh, 120px); }

.about__title {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  column-gap: clamp(10px, 1.4vw, 22px);
  row-gap: clamp(4px, 1vw, 14px);
  font-family: var(--serif);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(26px, 3.9vw, 54px);
  line-height: 1.1;
}
.about__title .l1 { grid-column: 1; grid-row: 1; }
.about__title .l2 { grid-column: 3; grid-row: 1; }
.about__title .l3 { grid-column: 1; grid-row: 2; justify-self: end; }
.about__title .l4 { grid-column: 3; grid-row: 2; }

.about .eyebrow {
  margin-bottom: -15px;
  transform: translateY(12px);
}


.one {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  font-family: var(--condensed);
  font-weight: 400;
  color: var(--green);
  font-size: clamp(130px, 15vw, 220px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  align-self: stretch;
  display: grid;
  place-items: center;
  overflow: hidden;
  transform: translateY(-15px);
}



.about__title .l1,
.about__title .l2,
.about__title .l3,
.about__title .l4 {
  opacity: 1;
}

.about__card {
  margin-top: clamp(46px, 7vw, 90px);
  margin-left: calc(50% - 50vw);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  border: 1px solid rgba(0, 175, 84, 0.75);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 40px) clamp(24px, 3vw, 34px) var(--pad);
  width: min(920px, 82vw);
  color: var(--text);
  font-size: clamp(18px, 1.5vw, 22px);
}

/* ------------------------------------------------------------- faqs --- */

.faq { padding-block: clamp(50px, 8vh, 100px) clamp(60px, 9vh, 120px); }
.faq__title { font-size: clamp(30px, 4.4vw, 58px); }
.faq__note {
  margin: 22px 0 clamp(30px, 4vw, 50px);
  text-align: center;
  color: var(--text-soft);
  font-size: clamp(14px, 1.1vw, 16px);
}

.faq__list { max-width: 900px; }

.faq__item { border: 0; }

.faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: 0;
  padding: 14px 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--text-soft);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.faq__q .plus {
  position: relative;
  flex: 0 0 auto;
  width: 14px; height: 14px;
  transition: transform 0.3s var(--ease);
}
.faq__q .plus::before,
.faq__q .plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: background 0.25s var(--ease), opacity 0.3s var(--ease);
}
.faq__q .plus::before { width: 13px; height: 1.6px; }
.faq__q .plus::after  { width: 1.6px; height: 13px; }

.faq__q:hover { color: var(--white); transform: translateX(-3px); }
.faq__q:hover .plus { color: var(--green); }
.faq__item.is-open .faq__q { color: var(--white); }
.faq__item.is-open .plus { transform: rotate(45deg); color: var(--green); }

.faq__a {
  height: 0;
  overflow: hidden;
  transition: height 320ms var(--ease);
}
.faq__a > div {
  padding: 20px 0 32px 28px;
  max-width: 68ch;
  color: var(--text-soft);
  font-size: clamp(14px, 1.15vw, 16px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.faq__item.is-open .faq__a > div { opacity: 1; transform: translateY(0); transition-delay: 60ms; }
.faq__item.is-closing .faq__a > div { opacity: 0; transition-duration: 150ms; transition-delay: 0s; }

/* ---------------------------------------------------------- contact --- */

.contact {
  position: relative;
  padding-block: clamp(52px, 8vh, 96px) clamp(60px, 9vh, 110px);
  overflow: hidden;
  background: url("/assets/img/creamfades.png") center center / cover no-repeat;
}

.contact__email {
  margin-top: 6px;
  font-size: 12px;
}

.contact__email a {
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.contact__email a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.contact__title { font-size: clamp(32px, 4.4vw, 58px); }

.contact__checks {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.75;
  color: var(--white);
}
.contact__checks li { display: flex; gap: 7px; align-items: baseline; }
.contact__checks .tick { color: var(--green); font-family: var(--sans); }

.contact__based {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-mute);
}

/* form ------------------------------------------------------------------ */

.form { margin-top: clamp(24px, 3vw, 34px); }

.form__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.form__box.is-ready {
  border-color: rgba(0, 175, 84, 0.85);
  box-shadow: 0 0 0 1px rgba(0,175,84,0.25), 0 0 26px rgba(0,175,84,0.16);
}

.field {
  position: relative;
  padding: 26px 12px 12px;
  border-top: 1px solid var(--line);
}
.form__col--left .field:first-child { border-top: 0; }
.form__col--right {
  display: flex;
  border-left: 1px solid var(--line);
}
.form__col--right .field {
  border-top: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.field__label {
  position: absolute;
  top: 0; left: 0;
  padding: 1px 8px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--white);
  background: var(--bg);
  line-height: 1.5;
}
.field__label i { color: var(--text-mute); }

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  padding: 4px 4px 6px;
  min-height: 34px;
  resize: none;
}
.form__col--right textarea { flex: 1; min-height: 190px; max-height: 420px; overflow-y: auto; }
.field input:focus,
.field textarea:focus { outline: none; }
.field.is-focused { background: rgba(255,255,255,0.02); }
.field.is-focused .field__label { border-color: var(--green); color: var(--green); }

.field__error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #FF8A80;
}
.field__error::before { content: "! "; font-weight: 700; }
.field.has-error .field__error { display: block; }
.field.has-error .field__label { border-color: #FF8A80; color: #FF8A80; }

.form__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
@media (min-width: 861px) {
  .form__foot {
    width: 50%;
    margin-left: auto;
    padding-inline: 8%;
  }
}

.progress {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--text-mute);
}
.progress .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.progress .dot.is-on { background: var(--green); border-color: var(--green); }
.progress .ready {
  color: var(--green);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.progress.is-complete .ready { opacity: 1; }

.form__submit { width: 100%; }
.form__submit[disabled] { opacity: 0.7; cursor: progress; }

.form__status {
  min-height: 20px;
  font-size: 14px;
  text-align: center;
}
.form__status.is-ok    { color: var(--green); }
.form__status.is-error { color: #FF8A80; }

/* right column ---------------------------------------------------------- */

.contact__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 50px;
  padding-top: clamp(10px, 4vw, 60px);

  position: relative;
left: 70px;
}

.contact__aside h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(24px, 2.7vw, 38px);
  color: var(--white);
  letter-spacing: -0.01em;
}
.contact__aside img {
  width: min(480px, 95%);
  height: auto;
  margin-top: -80px;
  margin-bottom: -80px;
}

.prefooter-cta {
  background: var(--green);
  padding-block: clamp(150px, 15vw, 220px);
}

.prefooter-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.prefooter-cta__title {
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--bg);
}

.prefooter-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-top: 42px;
  padding: 16px 28px;

  background: var(--white);
  color: var(--bg);

  border: 0;
  border-radius: 10px;

  font-size: 16px;
  font-weight: 600;
  text-decoration: none;

  transition: transform 0.25s var(--ease);
}

.prefooter-cta__btn:hover {
  transform: translateX(4px);
}

/* ---------------------------------------------------------- footer ---- */

.footer {
  position: relative;
  border-top: 0;
  padding-block: clamp(42px, 6vw, 62px) 26px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 50px);
}

.footer__mark { display: inline-block; line-height: 0; }

.footer__mark img {
  width: 140px;
  height: auto;
  margin: -26px -30px -20px -32px;
  transition: transform 0.3s var(--ease);
}

.footer__mark:hover img { transform: rotate(-12deg); }

.footer__tagline {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--peach);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.35;
}

.footer__meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.footer__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__meta svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--white);
}

.footer__identity {
  transform: translateY(-35px);
}

.footer__nav-wrap {
  padding-top: 0px;
  transform: translateY(-14px);
}

.footer__nav-title {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer__nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--text-mute);
  transition: color 0.25s var(--ease);
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__cta {
  padding-top: 66px;
  color: var(--white);
}

.footer__cta-copy {
  color: var(--white);
}

.footer__cta-copy p {
  font-size: clamp(14px, 1.2vw, 17px);
}

.footer__cta-copy p + p {
  margin-top: 20px;
}

.footer__cta-copy .green {
  color: var(--green);
  font-weight: 600;
}

.footer__bar {
  position: relative;
  margin-top: -6px;
  padding-top: 18px;

  display: flex !important;
  align-items: center;

  font-size: 13px;
  color: var(--text-soft);
}

.footer__bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40px;
  right: -40px;

  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.footer__bar .to-top {
  margin-left: auto;
}

.footer__legal-top {
  align-self: end;
  justify-self: end;

  display: flex;
  align-items: center;
  gap: 18px;

  margin-bottom: 0;
  transform: translateY(-6px);
}

.footer__legal-top a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.25s var(--ease);
}

.footer__legal-top a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--white);
  transition: transform 0.25s var(--ease);
}

.to-top:hover {
  transform: translateY(-3px);
}

.footer__bar > p {
  justify-self: start;
}

.footer__legal-top {
  align-self: end;
  justify-self: end;

  display: flex;
  align-items: center;
  gap: 18px;

  margin-bottom: 18px;
}

.footer__legal-top a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.25s var(--ease);
}

.footer__legal-top a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bar .to-top {
  justify-self: end;
}

.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--white);
  transition: transform 0.25s var(--ease);
}

.to-top:hover {
  transform: translateY(-3px);
}

/* ------------------------------------------------------ entrance anim -- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--right { transform: translateX(20px); }
.reveal--stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal--stagger.is-in > * { opacity: 1; transform: none; }

/* --------------------------------------------------------- responsive -- */

@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open .nav__mobile { display: block; }
  .featured__head { grid-template-columns: 1fr; align-items: start; }
  .featured__note { text-align: left; justify-self: start; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 420px; }
  .process__body { grid-template-columns: 1fr; }
  .steps { padding-left: 0; }
  .process__panel { min-height: 190px; margin-top: 34px; }
  .process__hint {
    position: static;
    max-width: none;
    margin-bottom: 18px;
  }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__aside { padding-top: 10px; }
}

@media (max-width: 860px) {
  .form__box { grid-template-columns: 1fr; }
  .form__col--right { border-left: 0; border-top: 1px solid var(--line); }
  .form__foot { width: 100%; padding-inline: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__nav { align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .about__title {
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .about__title .l1 { grid-column: 1; grid-row: 1; }
  .about__title .one { grid-column: 2; grid-row: 1 / span 2; }
  .about__title .l2 { grid-column: 1; grid-row: 2; }
  .about__title .l3 { grid-column: 1; grid-row: 3; justify-self: start; }
  .about__title .l4 { grid-column: 1 / span 2; grid-row: 4; }
  .hero__actions .btn { flex: 1 1 auto; }
  .footer__bar { flex-direction: row; }
}

/* --------------------------------------------------- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .divider-chevrons__track { animation: none; }
  .reveal, .reveal--stagger > * { opacity: 1 !important; transform: none !important; }
  .one .one__top, .one .one__bottom { transform: none !important; }
  .about__title .l1, .about__title .l2,
  .about__title .l3, .about__title .l4 { opacity: 1 !important; }
  .process__hint { opacity: 1; transform: none; }
}

/* ==========================================================================
   PORTFOLIO PAGE
   ========================================================================== */

.portfolio-page .nav__logo img {
  width: 185px;
}

.portfolio-page .nav__cta {
  min-height: 36px;
  padding: 7px 16px;
  font-size: 13px;
}

.portfolio-page .nav__inner {
  padding-left: 18px;
  padding-right: 18px;
}

.port-top {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);

  background-image:
    url("/assets/img/swirl.png"),
    url("/assets/img/hero__swirlgrain.png");

  background-repeat:
    no-repeat,
    repeat-y;

  background-position:
    calc(50% + 40px) 40px,
    calc(50% + 40px) 40px;

  background-size:
    110% auto,
    110% auto;
}

.port-top > * {
  position: relative;
  z-index: 1;
}

.portfolio-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(110px, 13vh, 160px));
  padding-bottom: clamp(50px, 8vh, 90px);
}

/* oversized mark, blurred, running behind the board and the cards */

.portfolio-hero::after {          /* soft glow behind the board card */
  content: "";
  position: absolute;
  top: 46%; left: 50%;
  width: min(560px, 70vw); height: min(420px, 46vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0,175,84,0.22), rgba(0,175,84,0));
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.board {
  position: relative;
  width: min(400px, 100%);
  margin-inline: auto;
  min-height: 420px;

  padding: 22px 22px 26px;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;

  background: rgba(18, 18, 18, 0.18);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  text-align: center;
}

.board .eyebrow {
  position: absolute;
  top: -22px; left: 6px;
  text-align: left;
}

.board__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 50px);
  color: var(--white);
  line-height: 1.1;
}

.board__sub {
  margin-top: 4px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--peach);
  text-align: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: clamp(26px, 4vw, 38px);

  padding-left: 10px;
}

.chip {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;

  padding: 10px 20px;
  min-height: 42px;

  cursor: pointer;

  transition:
    color 280ms var(--ease),
    border-color 280ms var(--ease),
    box-shadow 280ms var(--ease),
    transform 380ms var(--ease);
}

.chip:hover {
  color: var(--accent, var(--white));
  border-color: var(--accent, var(--white));
  box-shadow: 0 0 12px -2px var(--accent-glow, transparent);
}

.chip[aria-pressed="true"] {
  color: var(--accent, var(--white));
  border-color: var(--accent, var(--white));
  box-shadow: 0 0 16px -2px var(--accent-glow, transparent);
}

/* "_all" stays grey at all times */
.chip--all,
.chip--all:hover,
.chip--all[aria-pressed="true"] {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.portfolio-intro {
  max-width: 820px;
  margin: clamp(70px, 9vh, 110px) auto clamp(70px, 9vh, 110px);
  text-align: center;

  font-family: var(--sans);
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.35;
  color: var(--white);
}

.portfolio-intro b {
  font-weight: 700;
}

.portfolio-intro .green {
  color: var(--green);
  font-weight: 700;
}

/* ------------------------------------------------------------ cards ---- */

.projects {
  padding-block: clamp(40px, 6vw, 70px) clamp(50px, 8vw, 90px);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  column-gap: 20px;
  row-gap: 40px;

  justify-items: center;
}

.project {
  display: grid;
  grid-template-columns: 50% minmax(0, 1fr);
  gap: 12px;
  align-items: start;

  padding: 7px;

  border: 2px solid var(--accent);
  border-radius: 12px;

  background: #171717;

  box-shadow: 0 0 14px -6px var(--accent-glow);

  text-decoration: none;
  color: inherit;

  max-width: 520px;
  width: 100%;

  transition:
    transform 300ms var(--ease),
    box-shadow 300ms var(--ease),
    opacity 400ms var(--ease);
}

.project > span:last-child {
  position: relative;
  align-self: stretch;
  padding-top: 8px;
  padding-bottom: 8px;
}

.project:hover,
.project:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px -12px var(--accent-glow), 0 0 22px -8px var(--accent-glow);
}

.project__thumb {
  background: #191919;
  border: 2px solid var(--accent-bright);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 0 12px -6px var(--accent-bright);
  transition: box-shadow 300ms var(--ease);
}
.project__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease);
}
.project:hover .project__thumb img,
.project:focus-visible .project__thumb img { transform: scale(1.02); }
.project:hover .project__thumb,
.project:focus-visible .project__thumb { box-shadow: 0 0 18px -4px var(--accent-bright); }

.project__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15px, 1.35vw, 20px);
  color: var(--white);
  line-height: 1.15;
}

.project__meta {
  position: absolute;
  left: 18px;
  bottom: 8px;

  display: flex;
  flex-direction: column;
  gap: 3px;

  margin: 0;
  font-size: clamp(11px, 0.95vw, 13px);
  color: var(--accent);
}

.project__meta li::before { content: "· "; }

/* filter transition */
.project.is-leaving {
  opacity: 0;
  transform: translateY(12px);
}
.project.is-entering {
  opacity: 0;
  transform: translateY(-12px);
}
.project.is-hidden { display: none; }

/* --------------------------------------------------- custom project ---- */

.custom {
  padding-block: clamp(50px, 8vw, 100px) clamp(60px, 9vw, 110px);
  overflow: hidden;
}

/* divider between custom project section and portfolio footer */
.custom + .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer--portfolio {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.custom__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.custom__head { text-align: right; }
.custom__title { font-size: clamp(28px, 4vw, 54px); }
.custom__copy {
  margin: clamp(26px, 4vw, 46px) 0 0 auto;
  max-width: 42ch;
  text-align: center;
  color: var(--text-soft);
  font-size: clamp(14px, 1.15vw, 16px);
}
.custom__actions { margin-top: clamp(24px, 4vw, 44px); text-align: center; }

/* floating, modular website blocks */
.blocks {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-inline: auto;
}
.blocks::after {                  /* green glow behind the stack */
  content: "";
  position: absolute;
  left: 52%; top: 42%;
  width: 42%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0,175,84,0.55), rgba(0,175,84,0));
  filter: blur(10px);
}
.blocks svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.blk {
  transform-box: fill-box;
  transform-origin: center;
  animation: float-blk 5s ease-in-out infinite;
  transition: transform 420ms var(--ease);
}
.blk--2 { animation-duration: 4.2s; animation-delay: -1.4s; }
.blk--3 { animation-duration: 5.8s; animation-delay: -2.6s; }
.blk--4 { animation-duration: 3.6s; animation-delay: -0.7s; }

@keyframes float-blk {
  0%, 100% { transform: translateY(-3px) rotate(-0.6deg); }
  50%      { transform: translateY(3px) rotate(0.6deg); }
}

.blocks:hover .blk--1 { transform: translate(-10px, -8px); }
.blocks:hover .blk--2 { transform: translate(9px, -10px); }
.blocks:hover .blk--3 { transform: translate(-8px, 10px); }
.blocks:hover .blk--4 { transform: translate(11px, 9px); }
.blocks:hover .blk { animation-play-state: paused; }

@media (max-width: 900px) {
  .projects__grid { grid-template-columns: 1fr; }
  .custom__grid { grid-template-columns: 1fr; }
  .custom__head, .custom__copy, .custom__actions { text-align: left; }
  .custom__copy { margin-left: 0; }
  .blocks { max-width: 340px; margin-inline: 0; }
}

@media (max-width: 520px) {
  .project { grid-template-columns: 1fr; }
  .project__thumb { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .blk { animation: none; }
  .blocks:hover .blk { transform: none; }
  .project.is-leaving, .project.is-entering { opacity: 1; transform: none; }
}
