@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-800.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2efe6;
  --paper-2: #faf9f5;
  --ink: #071d31;
  --blue: #1f5eff;
  --blue-deep: #143fbd;
  --line: rgba(7, 29, 49, 0.17);
  --muted: #5d6670;
  --white: #fff;
  --radius: 16px;
  --container: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  margin: 0;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

button:not(:disabled),
summary {
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid #ff784f;
  outline-offset: 4px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.container,
.hero-inner {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(100px, 11vw, 180px) 0;
}

.section-label {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.brand span {
  color: var(--blue);
}

.brand small {
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: -0.04em;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1460px);
  margin: 22px auto 0;
  transition: margin 0.35s var(--ease);
}

.site-header .brand,
.navigation,
.menu-toggle,
.legal-back {
  pointer-events: auto;
}

.legal-back {
  padding: 13px 18px;
  border: 1px solid rgba(7, 29, 49, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 35px rgba(7, 29, 49, 0.07);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.site-header .brand {
  padding: 15px 20px 16px;
  border: 1px solid rgba(7, 29, 49, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 35px rgba(7, 29, 49, 0.07);
  backdrop-filter: blur(14px);
}

.navigation {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(7, 29, 49, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 35px rgba(7, 29, 49, 0.07);
  backdrop-filter: blur(14px);
}

.navigation a {
  padding: 12px 18px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    background 0.25s,
    color 0.25s;
}

.navigation a:hover {
  background: var(--paper);
}

.navigation .nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 20px;
  background: var(--ink);
  color: var(--white);
}

.navigation .nav-cta:hover {
  background: var(--blue);
}

.site-header.is-scrolled .header-shell {
  margin-top: 12px;
}

.menu-toggle {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: 150px;
  background:
    linear-gradient(112deg, transparent 62%, rgba(31, 94, 255, 0.075) 62.1%, transparent 79%),
    var(--paper);
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.hero::before {
  inset: 0;
  background-image: linear-gradient(
    90deg,
    rgba(7, 29, 49, 0.045) 1px,
    transparent 1px
  );
  background-size: 92px 100%;
  mask-image: linear-gradient(90deg, transparent, black 28%, black 82%, transparent);
  animation: heroGridDrift 24s linear infinite;
}

.hero::after {
  top: 12%;
  bottom: 12%;
  left: 10%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(31, 94, 255, 0.5),
    transparent
  );
  opacity: 0;
  animation: heroScan 12s var(--ease) infinite;
}

@keyframes heroGridDrift {
  to {
    background-position: 92px 0;
  }
}

@keyframes heroScan {
  0%,
  12% {
    left: 10%;
    opacity: 0;
  }
  24%,
  70% {
    opacity: 0.45;
  }
  88%,
  100% {
    left: 90%;
    opacity: 0;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  padding-bottom: clamp(70px, 9vh, 125px);
}

.hero-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta p {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39a663;
}

.status-dot::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(57, 166, 99, 0.45);
  border-radius: inherit;
  content: "";
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.75);
    opacity: 0;
  }
  45% {
    transform: scale(1);
    opacity: 1;
  }
}

.hero h1 {
  grid-column: 1 / -1;
  max-width: 1250px;
  padding-top: clamp(26px, 4vw, 58px);
  font-size: clamp(4rem, 8.2vw, 8.7rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero h1 em,
.section-intro h2 em,
.projects-heading h2 em,
.about h2 em,
.contact-heading h2 em {
  color: var(--blue);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

.hero-bottom {
  grid-column: 1 / 2;
  display: grid;
  grid-template-columns: minmax(260px, 560px) auto;
  gap: 50px;
  align-items: end;
  margin-top: clamp(45px, 7vw, 90px);
}

.hero-intro {
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  letter-spacing: -0.035em;
  line-height: 1.42;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  transition:
    transform 0.25s var(--ease),
    background 0.25s;
}

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

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: var(--blue-deep);
}

.text-link {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-signal {
  position: absolute;
  z-index: 1;
  right: 5.5vw;
  bottom: 14vh;
  display: flex;
  width: clamp(175px, 16vw, 255px);
  min-height: 235px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(7, 29, 49, 0.28);
  background: rgba(242, 239, 230, 0.68);
  box-shadow: 14px 14px 0 rgba(31, 94, 255, 0.09);
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
  animation: signalFloat 8s var(--ease) infinite;
}

.hero-signal::before {
  position: absolute;
  top: -1px;
  right: 22px;
  width: 44px;
  height: 6px;
  background: var(--blue);
  content: "";
}

.signal-index {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.signal-rule {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(7, 29, 49, 0.24);
}

.signal-rule::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  background: var(--blue);
  content: "";
  animation: signalRule 3.8s var(--ease) infinite;
}

.signal-copy {
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

@keyframes signalFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes signalRule {
  0%,
  100% {
    transform: translateX(-110%);
  }
  55% {
    transform: translateX(270%);
  }
}

.hero-marquee {
  overflow: hidden;
  padding: 15px 0 17px;
  background: var(--blue);
  color: var(--white);
}

.hero-marquee div {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  animation: marquee 28s linear infinite;
}

.hero-marquee span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-marquee i {
  font-style: normal;
}

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

/* Services */
.services {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  isolation: isolate;
}

.services::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 36%,
    rgba(31, 94, 255, 0.035) 43%,
    rgba(31, 94, 255, 0.065) 50%,
    rgba(31, 94, 255, 0.035) 57%,
    transparent 64%,
    transparent 100%
  );
  background-size: 220% 100%;
  content: "";
  animation: serviceLight 18s linear infinite;
}

@keyframes serviceLight {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 370px);
  gap: 35px;
  margin-bottom: clamp(55px, 7vw, 100px);
}

.section-intro .section-label {
  grid-column: 1 / -1;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-intro h2,
.projects-heading h2 {
  max-width: 1050px;
  font-size: clamp(2.9rem, 5.2vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-intro > p:last-child,
.projects-heading > p:last-child {
  align-self: end;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.service-card {
  display: grid;
  min-height: 610px;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(7, 29, 49, 0.08);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card:nth-child(1) {
  grid-column: span 7;
}

.service-card:nth-child(2) {
  grid-column: span 5;
}

.service-card:nth-child(3) {
  min-height: 480px;
  grid-column: span 12;
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: 1fr;
}

.service-visual {
  position: relative;
  display: grid;
  min-height: 310px;
  place-items: center;
  overflow: hidden;
}

.service-card-blue .service-visual {
  background: var(--blue);
}

.service-card-dark {
  background: var(--ink);
  color: var(--white);
}

.service-card-dark .service-visual {
  background: #0b2945;
}

.service-card-light .service-visual {
  background: #e5e9f4;
}

.service-content {
  position: relative;
  padding: clamp(25px, 3vw, 42px);
}

.service-number {
  position: absolute;
  top: clamp(28px, 3vw, 44px);
  right: clamp(28px, 3vw, 44px);
  font-size: 0.7rem;
  font-weight: 800;
}

.service-content h3 {
  max-width: 80%;
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 2.6vw, 2.7rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.service-content > p:not(.service-number) {
  max-width: 620px;
  color: color-mix(in srgb, currentColor 70%, transparent);
  font-size: 0.95rem;
  line-height: 1.55;
}

.service-content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}

.service-content li {
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
}

.visual-layout {
  grid-template-columns: 1fr 0.75fr;
  grid-template-rows: 1fr 0.52fr;
  gap: 12px;
  padding: 58px;
}

.visual-layout span {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(8, 29, 49, 0.18);
}

.visual-layout span:nth-child(1) {
  grid-row: span 2;
  background: var(--paper);
}

.visual-layout span:nth-child(2) {
  background: var(--ink);
}

.visual-layout span:nth-child(3) {
  background: #ffbc5d;
}

.visual-layout span:nth-child(4) {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 14px solid var(--white);
  background: transparent;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.visual-code {
  align-content: center;
  justify-items: stretch;
  gap: 11px;
  padding: 58px;
  color: #a9c0ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
}

.visual-code span {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.visual-code span:nth-child(2),
.visual-code span:nth-child(3) {
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.visual-flow {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 45px;
}

.visual-flow span {
  display: grid;
  min-width: 140px;
  min-height: 140px;
  place-items: center;
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(7, 29, 49, 0.11);
  font-size: 0.78rem;
  font-weight: 800;
}

.visual-flow span:nth-of-type(2) {
  background: var(--blue);
  color: var(--white);
}

.visual-flow i {
  position: relative;
  width: 65px;
  height: 1px;
  background: var(--ink);
}

.visual-flow i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid;
  border-right: 1px solid;
  content: "";
  transform: rotate(45deg);
}

/* Extended studio */
.studio-services {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(45px, 8vw, 120px);
  margin-top: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(38px, 6vw, 76px);
  background: var(--ink);
  color: var(--white);
}

.studio-heading {
  align-self: start;
}

.studio-heading h3 {
  max-width: 520px;
  margin: 55px 0 24px;
  font-size: clamp(2.9rem, 5vw, 5.4rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.studio-heading > p:last-child {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.65;
}

.studio-list {
  counter-reset: studio;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.studio-list article {
  position: relative;
  display: grid;
  min-height: 145px;
  grid-template-columns: 55px minmax(190px, 1fr) minmax(180px, 0.7fr);
  gap: 25px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  isolation: isolate;
}

.studio-list article::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--blue);
  content: "";
  transform: translateX(-102%);
  transition: transform 0.55s var(--ease);
}

.studio-list article:hover::before {
  transform: translateX(0);
}

.studio-list article > span {
  color: #9eb4c9;
  font-size: 0.66rem;
  font-weight: 800;
  transition: color 0.3s;
}

.studio-list article:hover > span {
  color: var(--white);
}

.studio-list h4 {
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.studio-list p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
  line-height: 1.55;
  transition: color 0.3s;
}

.studio-list article:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Local focus */
.local-focus {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(50px, 9vw, 140px);
  margin-top: clamp(95px, 11vw, 165px);
  padding-top: clamp(55px, 7vw, 95px);
  border-top: 1px solid var(--line);
}

.local-focus-heading {
  align-self: start;
}

.local-focus-heading h3 {
  max-width: 720px;
  margin: 45px 0 28px;
  font-size: clamp(2.8rem, 5.1vw, 5.5rem);
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.local-focus-heading > p:not(.section-label) {
  max-width: 540px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.local-focus-list {
  border-top: 1px solid var(--line);
}

.local-focus-list article {
  display: grid;
  min-height: 185px;
  grid-template-columns: 48px minmax(190px, 0.75fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.local-focus-list span {
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 800;
}

.local-focus-list h4 {
  font-size: clamp(1.4rem, 2.25vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.local-focus-list p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Projects */
.projects {
  background: var(--paper);
}

.projects-heading {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 330px);
  gap: 35px;
  margin-bottom: clamp(70px, 10vw, 145px);
}

.projects-heading .section-label {
  grid-column: 1 / -1;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.project-list {
  display: grid;
  gap: clamp(100px, 13vw, 190px);
}

.project {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.55fr);
  grid-template-rows: 1fr auto;
  gap: 20px clamp(45px, 7vw, 110px);
  align-items: end;
}

.project:nth-child(even) {
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.72fr);
}

.project-media {
  --project-rx: 0deg;
  --project-ry: 0deg;
  --project-lift: 0px;
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  aspect-ratio: 1.35;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe5f4;
  text-align: left;
  transform: perspective(1200px) rotateX(var(--project-rx))
    rotateY(var(--project-ry)) translateY(var(--project-lift));
  transform-style: preserve-3d;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.55s var(--ease);
}

.project:nth-child(even) .project-media {
  grid-column: 1;
}

.project-media:hover {
  --project-lift: -7px;
  box-shadow: 0 35px 75px rgba(7, 29, 49, 0.13);
}

.project-media img {
  transition: transform 0.8s var(--ease);
}

.project-media:hover img {
  transform: scale(1.025);
}

.project-tag {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 24px;
  padding: 8px 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.media-arrow {
  position: absolute;
  z-index: 5;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.25rem;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.4s var(--ease);
}

.project-media:hover .media-arrow {
  background: var(--blue);
  color: var(--white);
  transform: rotate(8deg) scale(1.06);
}

.project-info {
  align-self: end;
}

.project:nth-child(even) .project-info {
  grid-column: 2;
}

.project-index,
.project-tech {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-index {
  margin-bottom: 17px;
  color: var(--blue-deep);
}

.project-info h3 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 3.6vw, 4.1rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.project-info h3 a,
.project-info h3 button {
  background: transparent;
  text-align: left;
}

.project-info h3 a:hover,
.project-info h3 button:hover {
  color: var(--blue);
}

.project-info > p:not(.project-index, .project-tech) {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.project-tech {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.project-pedrito .project-media {
  background: #22211d;
}

.pedrito-gallery {
  position: absolute;
  inset: 0;
}

.pedrito-gallery img {
  position: absolute;
  object-fit: cover;
  filter: saturate(0.85);
}

.pedrito-gallery img:first-child {
  top: 15%;
  left: 12%;
  width: 43%;
  height: 69%;
  transform: rotate(-5deg);
}

.pedrito-gallery img:nth-child(2) {
  right: 10%;
  bottom: 11%;
  width: 39%;
  height: 52%;
  transform: rotate(7deg);
}

.pedrito-gallery strong {
  position: absolute;
  z-index: 2;
  top: 47%;
  left: 50%;
  color: #fff1cc;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.8rem, 6vw, 6.7rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.pedrito-gallery small {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 0.09em;
  font-weight: 800;
  letter-spacing: 0.45em;
  text-align: center;
}

.project-humilladero .project-media {
  background: #d9dfcf;
}

.humilladero-gallery {
  position: absolute;
  inset: 0;
}

.humilladero-gallery strong {
  position: absolute;
  z-index: 2;
  top: 17%;
  left: 9%;
  color: #43563b;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  font-weight: 400;
  line-height: 0.82;
  text-align: center;
}

.humilladero-gallery strong em {
  font-weight: 400;
}

.humilladero-gallery img {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: 64%;
  height: 55%;
  border: 12px solid rgba(255, 255, 255, 0.58);
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(57, 71, 51, 0.14);
}

.project-ibernovia .project-media {
  background: #ead9dc;
}

.browser-frame {
  position: absolute;
  right: 6%;
  bottom: 7%;
  left: 6%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 25px 55px rgba(65, 36, 43, 0.15);
}

.browser-bar {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #f5f4f1;
}

.browser-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d5d2cd;
}

.browser-bar small {
  margin-left: auto;
  color: #626262;
  font-size: 0.48rem;
}

.browser-frame img {
  width: 100%;
  aspect-ratio: 2.05;
  object-fit: cover;
  object-position: top;
}

.project-tenis .project-media {
  background: #cad8ec;
}

.tenis-heading {
  position: absolute;
  z-index: 2;
  top: 14%;
  left: 6%;
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
}

.tenis-heading em {
  color: var(--blue);
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

.project-tenis .browser-frame {
  bottom: 0;
}

/* Archive */
.archive {
  margin-top: clamp(120px, 15vw, 220px);
  border-top: 1px solid var(--line);
}

.archive-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 30px 0 50px;
}

.archive-title h3 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.archive-title p {
  color: var(--muted);
  font-size: 0.8rem;
}

.archive details {
  border-top: 1px solid var(--line);
}

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

.archive summary {
  display: grid;
  min-height: 92px;
  grid-template-columns: 70px 1fr 260px 30px;
  gap: 20px;
  align-items: center;
  list-style: none;
  transition:
    color 0.25s,
    padding 0.35s var(--ease);
}

.archive summary::-webkit-details-marker {
  display: none;
}

.archive summary:hover {
  padding-inline: 12px;
  color: var(--blue);
}

.archive summary span,
.archive summary small {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.archive summary strong {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  letter-spacing: -0.04em;
}

.archive summary small {
  color: var(--muted);
}

.archive summary i {
  font-size: 1.4rem;
  font-style: normal;
  transition: transform 0.3s;
}

.archive details[open] summary i {
  transform: rotate(45deg);
}

.archive-body {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 0.8fr;
  gap: 45px;
  padding: 10px 70px 55px;
}

.archive-body img {
  width: 100%;
  aspect-ratio: 1.8;
  border-radius: 18px;
  object-fit: cover;
  object-position: top;
}

.archive-body > div {
  align-self: end;
}

.archive-body > div > p:first-child {
  color: var(--muted);
  line-height: 1.55;
}

.archive-body button {
  margin-top: 25px;
  padding-bottom: 4px;
  border-bottom: 1px solid;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
}

/* About */
.about {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

.about::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 43%, rgba(31, 94, 255, 0.14) 43.1% 43.25%, transparent 43.35%),
    linear-gradient(120deg, #071d31 0%, #061725 58%, #071d31 100%);
  content: "";
}

.about-canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.68;
  pointer-events: none;
}

.about-blueprint {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.about-blueprint::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 82%,
    transparent 100%
  );
  animation: blueprintShift 28s linear infinite;
}

@keyframes blueprintShift {
  to {
    background-position: 72px 72px;
  }
}

.about-blueprint > span {
  position: absolute;
  color: rgba(255, 255, 255, 0.025);
  font-size: clamp(8rem, 20vw, 24rem);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.7;
  white-space: nowrap;
}

.about-blueprint > span:first-child {
  top: 20%;
  left: -4%;
}

.about-blueprint > span:nth-child(2) {
  right: -6%;
  bottom: 17%;
}

.about-blueprint i {
  position: absolute;
  border-top: 1px solid rgba(88, 139, 255, 0.16);
  border-left: 1px solid rgba(88, 139, 255, 0.16);
}

.about-blueprint i:nth-of-type(1) {
  top: 22%;
  left: 39%;
  width: 520px;
  height: 360px;
}

.about-blueprint i:nth-of-type(2) {
  top: calc(22% + 36px);
  left: calc(39% + 36px);
  width: 448px;
  height: 288px;
}

.about-blueprint i:nth-of-type(3) {
  top: calc(22% + 104px);
  left: calc(39% + 104px);
  width: 312px;
  height: 152px;
}

.about-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  z-index: 2;
}

.about-head > p:last-child {
  font-size: 0.75rem;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(70px, 9vw, 135px) 0;
}

.about-statement {
  position: relative;
  z-index: 2;
  grid-column: 1 / 8;
  grid-row: 1;
}

.about-name {
  margin-bottom: clamp(35px, 6vw, 80px);
  color: #9eb4c9;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about h2 {
  font-size: clamp(3.5rem, 6.25vw, 7rem);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.about h2 em {
  display: inline-block;
  max-width: 900px;
}

.about-manifesto {
  max-width: 430px;
  margin-top: 45px;
  padding-left: 24px;
  border-left: 1px solid var(--blue);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  line-height: 1.6;
}

.about-portrait {
  position: relative;
  z-index: 1;
  grid-column: 7 / 10;
  grid-row: 1;
  width: min(29vw, 410px);
  margin: 0;
  justify-self: center;
}

.about-portrait::before,
.about-portrait::after {
  position: absolute;
  content: "";
}

.about-portrait::before {
  inset: -18px 18px 18px -18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.about-portrait::after {
  inset: 24px -28px -28px 28px;
  border-right: 1px solid rgba(88, 139, 255, 0.45);
  border-bottom: 1px solid rgba(88, 139, 255, 0.45);
}

.about-portrait img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border: 8px solid rgba(255, 255, 255, 0.95);
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.34);
  filter: saturate(0.76) contrast(1.03);
}

.portrait-marker {
  position: absolute;
  z-index: 4;
  top: -18px;
  right: -1px;
  display: grid;
  width: 42px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: var(--blue);
  color: var(--white);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-portrait figcaption {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  color: #9eb4c9;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-copy {
  position: relative;
  z-index: 3;
  grid-column: 10 / 13;
  grid-row: 1;
  align-self: end;
}

.about-copy > p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.91rem;
  line-height: 1.65;
}

.about-copy .about-lead {
  margin-bottom: 30px;
  color: var(--white);
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.about-copy blockquote {
  margin: 38px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.25;
}

.stack {
  margin-top: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stack p {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
}

.stack span {
  color: var(--white);
  font-weight: 800;
}

.process {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.process article {
  min-height: 215px;
  padding: 30px 35px 25px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.process article:not(:first-child) {
  padding-left: 35px;
}

.process article:last-child {
  border-right: 0;
}

.process span {
  color: #9eb4c9;
  font-size: 0.65rem;
  font-weight: 800;
}

.process h3 {
  margin: 50px 0 10px;
  font-size: 1.1rem;
}

.process p {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* Contact */
.contact {
  padding: clamp(80px, 9vw, 135px) 0;
  background: var(--blue);
  color: var(--white);
}

.contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-top {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-top > p:last-child {
  font-size: 0.76rem;
}

.contact-heading {
  position: relative;
  display: block;
  padding: clamp(65px, 8vw, 120px) 0;
}

.contact-heading > span {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.contact-heading h2 {
  max-width: 1150px;
  font-size: clamp(4.2rem, 9vw, 9.7rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.contact-heading h2 em {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
}

.contact-heading > i {
  position: absolute;
  right: 0;
  bottom: 22%;
  display: grid;
  width: clamp(78px, 9vw, 130px);
  height: clamp(78px, 9vw, 130px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  font-size: 2rem;
  font-style: normal;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.45s var(--ease);
}

.contact-heading:hover > i {
  background: var(--white);
  color: var(--blue);
  transform: rotate(8deg) scale(1.05);
}

.contact-form-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(45px, 8vw, 120px);
  margin-bottom: clamp(65px, 8vw, 110px);
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  background: var(--ink);
  scroll-margin-top: 125px;
}

.contact-form-shell::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  height: 5px;
  background: var(--white);
  content: "";
}

.contact-form-intro h3 {
  max-width: 520px;
  margin: 42px 0 24px;
  font-size: clamp(2.35rem, 4vw, 4.6rem);
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.contact-form-intro > p:not(.section-label) {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.65;
}

.contact-form-intro > span {
  display: block;
  margin-top: 35px;
  color: #9eb4c9;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 28px;
  align-content: start;
}

.form-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-field > span {
  color: #9eb4c9;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  padding: 10px 0 15px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.98rem;
  outline: 0;
  transition: border-color 0.25s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
}

.form-field select {
  color-scheme: dark;
}

.form-field select option {
  background: var(--ink);
  color: var(--white);
}

.form-field textarea {
  min-height: 135px;
  resize: vertical;
  line-height: 1.5;
}

.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  line-height: 1.5;
}

.form-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.form-consent a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

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

.form-submit {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 35px;
  padding: 0 24px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s var(--ease);
}

.form-submit:hover:not(:disabled) {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.73rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: #8ff0b1;
}

.form-status.is-error {
  color: #ffd0c7;
}

.contact-bottom {
  display: grid;
  grid-template-columns: 0.85fr 1.45fr 0.7fr 0.58fr;
  gap: clamp(25px, 4vw, 60px);
  align-items: start;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
}

.contact-intro {
  color: var(--white);
  line-height: 1.55;
}

.contact-channel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.contact-channel > span {
  color: var(--white);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

a.contact-channel strong {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: -0.03em;
}

.contact-socials {
  gap: 9px;
}

.contact-socials > span {
  margin-bottom: 3px;
}

.contact-socials a {
  width: max-content;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.email-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 700;
}

.email-wrap > a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.email-wrap button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 3px;
  background: transparent;
}

#copy-status {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: max-content;
  max-width: 280px;
  font-size: 0.7rem;
}

.footer {
  padding: 28px 0;
  background: var(--paper);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p,
.footer-links {
  font-size: 0.68rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.footer-links a {
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom-color: currentColor;
}

/* Legal pages */
.legal-page {
  min-height: 100svh;
  padding: 150px 0 100px;
  background: var(--paper-2);
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(200px, 0.45fr) minmax(0, 1fr);
  gap: clamp(45px, 9vw, 140px);
}

.legal-aside {
  position: sticky;
  top: 130px;
  align-self: start;
}

.legal-aside h1 {
  margin: 35px 0 22px;
  font-size: clamp(3.1rem, 5vw, 5.8rem);
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.legal-aside p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.legal-content {
  border-top: 1px solid var(--line);
}

.legal-content section {
  padding: 35px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.04em;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  list-style: square;
}

.legal-content a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
}

/* Dialog */
.project-dialog {
  width: min(900px, calc(100% - 36px));
  max-height: min(88vh, 900px);
  margin: auto;
  overflow: auto;
  border: 0;
  border-radius: 26px;
  padding: 0;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.25);
}

.project-dialog::backdrop {
  background: rgba(3, 17, 30, 0.74);
  backdrop-filter: blur(9px);
}

.dialog-inner {
  position: relative;
  padding: clamp(30px, 6vw, 70px);
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 20px;
  float: right;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
}

.project-dialog h2 {
  margin: 26px 0 34px;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.project-dialog img {
  width: 100%;
  max-height: 520px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
}

#dialog-description {
  max-width: 700px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-grid .reveal:nth-child(2),
.process.reveal article:nth-child(2) {
  transition-delay: 0.08s;
}

.service-grid .reveal:nth-child(3),
.process.reveal article:nth-child(3) {
  transition-delay: 0.16s;
}

.js .about-portrait.reveal.is-visible {
  transform: translate3d(var(--portrait-x, 0), var(--portrait-y, 0), 0)
    rotate(var(--portrait-r, 0deg));
  transition:
    opacity 0.85s var(--ease),
    transform 1.1s var(--ease);
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr 240px;
  }

  .hero-signal {
    right: 3vw;
    width: 205px;
    min-height: 215px;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project {
    gap: 20px 45px;
  }

  .project-info h3 {
    font-size: 2.8rem;
  }

  .studio-services {
    grid-template-columns: 0.65fr 1.35fr;
    gap: 45px;
  }

  .studio-list article {
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .studio-list article p {
    grid-column: 2;
  }

  .local-focus {
    gap: 55px;
  }

  .local-focus-list article {
    grid-template-columns: 38px minmax(180px, 0.8fr) minmax(190px, 1fr);
    gap: 18px;
  }

  .about-portrait {
    width: min(25vw, 310px);
  }

  .about-copy .about-lead {
    font-size: 1.25rem;
  }
}

@media (max-width: 820px) {
  :root {
    --radius: 14px;
  }

  .container,
  .hero-inner {
    width: min(calc(100% - 40px), var(--container));
  }

  .header-shell {
    width: calc(100% - 28px);
    margin-top: 14px;
  }

  .site-header .brand {
    padding: 12px 16px 13px;
  }

  .menu-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    width: 49px;
    height: 49px;
    place-content: center;
    gap: 6px;
    border: 1px solid rgba(7, 29, 49, 0.08);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(7, 29, 49, 0.08);
  }

  .menu-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.25s;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .navigation {
    position: fixed;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 0;
    padding: 80px 25px;
    background: var(--paper);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition:
      opacity 0.3s,
      transform 0.45s var(--ease),
      visibility 0.3s;
  }

  .navigation.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navigation a {
    padding: 10px;
    font-size: clamp(2.4rem, 10vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.06em;
  }

  .navigation .nav-cta {
    margin-top: 25px;
    padding: 15px 28px;
    font-size: 1rem;
    letter-spacing: 0;
  }

  .hero {
    min-height: 880px;
    padding-top: 130px;
  }

  .hero-inner {
    display: block;
  }

  .hero-meta {
    font-size: 0.62rem;
  }

  .hero-meta p:last-child {
    display: none;
  }

  .hero h1 {
    padding-top: 45px;
    font-size: clamp(3.6rem, 13vw, 6.2rem);
  }

  .hero-bottom {
    display: block;
    width: 70%;
    margin-top: 55px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-signal {
    right: 20px;
    bottom: 125px;
    width: 158px;
    min-height: 186px;
    padding: 17px;
  }

  .section-intro,
  .projects-heading {
    grid-template-columns: 1fr;
  }

  .section-intro > p:last-child,
  .projects-heading > p:last-child {
    max-width: 520px;
  }

  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3) {
    min-height: 560px;
    grid-column: span 12;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .studio-services {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .studio-heading h3 {
    margin-top: 35px;
  }

  .local-focus {
    grid-template-columns: 1fr;
  }

  .local-focus-heading > p:not(.section-label) {
    max-width: 620px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }

  .project,
  .project:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 32px;
  }

  .project-media,
  .project:nth-child(even) .project-media {
    grid-column: 1;
    grid-row: 1;
  }

  .project-info,
  .project:nth-child(even) .project-info {
    grid-column: 1;
    grid-row: 2;
    max-width: 620px;
  }

  .project-info h3 {
    font-size: clamp(2.4rem, 8vw, 4rem);
  }

  .archive summary {
    grid-template-columns: 45px 1fr 30px;
  }

  .archive summary small {
    display: none;
  }

  .archive-body {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-statement {
    grid-column: 1;
    grid-row: 1;
  }

  .about-portrait {
    grid-column: 1;
    grid-row: 2;
    width: min(58vw, 370px);
    margin: 65px 0;
  }

  .about-copy {
    grid-column: 1;
    grid-row: 3;
    max-width: 640px;
  }

  .about-blueprint i:nth-of-type(1) {
    top: 31%;
    left: 50%;
    transform: translateX(-50%);
  }

  .about-blueprint i:nth-of-type(2) {
    top: calc(31% + 40px);
    left: 50%;
    transform: translateX(-50%);
  }

  .about-blueprint i:nth-of-type(3) {
    top: calc(31% + 110px);
    left: 50%;
    transform: translateX(-50%);
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process article,
  .process article:not(:first-child) {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .process h3 {
    margin: 24px 0 8px;
  }

  .contact-heading > i {
    display: none;
  }

  .contact-form-shell {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .contact-form-intro > p:not(.section-label) {
    max-width: 560px;
  }

  .contact-bottom {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 90px 0;
  }

  .container,
  .hero-inner {
    width: calc(100% - 32px);
  }

  .site-header .brand {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 790px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 15.8vw, 5.1rem);
    line-height: 0.9;
  }

  .hero-bottom {
    width: 72%;
    margin-top: 45px;
  }

  .hero-intro {
    font-size: 0.97rem;
  }

  .hero-signal {
    right: 16px;
    bottom: 58px;
    width: 142px;
    min-height: 172px;
  }

  .hero-marquee div {
    gap: 20px;
  }

  .section-intro h2,
  .projects-heading h2 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .service-card,
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3) {
    min-height: 520px;
  }

  .service-visual {
    min-height: 270px;
  }

  .visual-layout,
  .visual-code {
    padding: 38px;
  }

  .visual-flow {
    gap: 8px;
    padding: 20px;
  }

  .visual-flow span {
    min-width: 88px;
    min-height: 88px;
    font-size: 0.62rem;
  }

  .visual-flow i {
    width: 25px;
  }

  .service-content h3 {
    max-width: 78%;
  }

  .studio-services {
    padding: 34px 24px;
  }

  .studio-heading h3 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .studio-list article {
    min-height: 155px;
    grid-template-columns: 30px 1fr;
    gap: 10px;
  }

  .studio-list article p {
    grid-column: 2;
  }

  .local-focus-list article {
    min-height: auto;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .local-focus-list p {
    grid-column: 2;
  }

  .project-list {
    gap: 105px;
  }

  .project-media {
    aspect-ratio: 1 / 1.02;
  }

  .project-tag {
    top: 15px;
    left: 15px;
  }

  .media-arrow {
    right: 15px;
    bottom: 15px;
    width: 45px;
    height: 45px;
  }

  .pedrito-gallery img:first-child {
    top: 19%;
    left: 7%;
    width: 49%;
    height: 64%;
  }

  .pedrito-gallery img:nth-child(2) {
    right: 6%;
    bottom: 15%;
    width: 43%;
    height: 46%;
  }

  .pedrito-gallery strong {
    font-size: 3.5rem;
  }

  .humilladero-gallery strong {
    top: 22%;
    left: 5%;
    font-size: 2.5rem;
  }

  .humilladero-gallery img {
    right: 5%;
    bottom: 12%;
    width: 74%;
    height: 48%;
    border-width: 7px;
  }

  .project-info h3 {
    margin-bottom: 14px;
  }

  .archive {
    margin-top: 130px;
  }

  .archive-title {
    display: block;
  }

  .archive-title p {
    margin-top: 10px;
  }

  .archive summary {
    min-height: 82px;
    grid-template-columns: 35px 1fr 20px;
    gap: 10px;
  }

  .archive summary strong {
    font-size: 1rem;
  }

  .about h2 {
    font-size: clamp(3.2rem, 14.4vw, 5.4rem);
  }

  .about-head > p:last-child {
    display: none;
  }

  .about-name {
    margin-bottom: 35px;
  }

  .about-portrait {
    width: min(68vw, 320px);
  }

  .about-portrait::after {
    inset: 18px -20px -20px 18px;
  }

  .about-manifesto {
    margin-top: 30px;
  }

  .stack p {
    grid-template-columns: 85px 1fr;
  }

  .contact-heading h2 {
    font-size: clamp(3.6rem, 17vw, 6.2rem);
  }

  .contact-heading h2 em {
    text-underline-offset: 5px;
  }

  .contact-form-shell {
    padding: 34px 24px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-submit {
    width: 100%;
  }

  .contact-bottom {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .email-wrap {
    flex-wrap: wrap;
    font-size: 0.88rem;
  }

  .footer .container {
    flex-wrap: wrap;
    gap: 22px;
  }

  .footer p {
    order: 3;
    width: 100%;
  }

  .footer-links {
    margin-left: auto;
  }
}

@media (max-width: 360px) {
  .hero-signal {
    right: 12px;
    bottom: 52px;
    width: 116px;
    min-height: 150px;
    padding: 14px;
  }

  .signal-copy {
    font-size: 0.95rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
