@font-face {
  font-family: Inter;
  src: url(fonts/inter.woff2) format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Tajawal;
  src: url(fonts/tajawal.woff2) format('woff2');
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF;
}

@font-face {
  font-family: Tajawal;
  src: url(fonts/tajawal-bold.woff2) format('woff2');
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF;
}

:root {
  color-scheme: dark;
  --ink: #10120f;
  --surface: #181b17;
  --text: #f2f3e9;
  --muted: #b2b7ac;
  --rule: #373d33;
  --acid: #c2f86b;
  --white: #fafbf2;
  --wrap: 1200px;
  --pad: clamp(1.25rem,5.5vw,5.5rem);
  --small: .86rem;
  font-family: Inter,Arial,sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  line-height: 1.55;
}

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

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

h1,h2,h3 {
  font-weight: 600;
  letter-spacing: -.052em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 b,h2 b,.brand span {
  color: var(--acid);
  font-weight: inherit;
}

p {
  text-wrap: pretty;
}

svg {
  flex-shrink: 0;
  vertical-align: middle;
}

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

a,summary {
  touch-action: manipulation;
}

a:focus-visible,summary:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 5px;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

[id] {
  scroll-margin-top: 1.25rem;
}

.wrap {
  width: min(100% - var(--pad)*2,var(--wrap));
  margin-inline: auto;
}

.skip,.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  z-index: 9;
  top: 1rem;
  inset-inline-start: 1rem;
  width: auto;
  height: auto;
  padding: 12px 20px;
  clip-path: none;
  background: var(--acid);
  color: var(--ink);
}

header {
  position: relative;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  z-index: 4;
}

.nav-shell,.nav-end,.wide-nav,.language-nav,.actions,.contact-actions,.socials,.button,.eyebrow,.portrait figcaption,.sheet-top,.map-label,.footer-line,.crumb {
  display: flex;
  align-items: center;
}

.nav-shell {
  min-height: 76px;
  gap: 2rem;
}

.brand {
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -.1em;
  line-height: 1;
  display: inline-block;
}

.wide-nav {
  margin-inline: auto;
  gap: clamp(1.15rem,2.5vw,2.55rem);
}

.wide-nav a,.socials a,.language-nav a {
  font-size: var(--small);
  font-weight: 500;
}

.wide-nav a,.socials a {
  padding-block: .65rem;
  color: #ccd0c4;
}

.wide-nav a:hover,.socials a:hover,.crumb a:hover {
  color: var(--acid);
}

.language-nav {
  direction: ltr;
  gap: 2px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 3px;
}

.language-nav a {
  min-width: 33px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .78rem;
  border-radius: 18px;
}

.language-nav a[lang=ar] {
  font-family: Tajawal,Arial,sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.language-nav a[aria-current] {
  color: var(--ink);
  background: var(--acid);
  font-weight: 700;
}

.nav-end {
  gap: 12px;
}

.mobile-nav {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(0,.9fr);
  align-items: center;
  gap: clamp(2rem,5vw,5.5rem);
  padding-block: clamp(3.2rem,6.7vw,6.4rem);
}

.hero-copy {
  min-width: 0;
}

.eyebrow,.kind {
  color: var(--acid);
  font-family: Inter,Arial,sans-serif;
  font-weight: 580;
  font-size: var(--small);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.eyebrow {
  gap: 10px;
}

.eyebrow i {
  width: 24px;
  height: 2px;
  background: var(--acid);
  display: inline-block;
  flex: none;
}

.hero h1 {
  font-size: clamp(3.85rem,6.05vw,6.5rem);
  letter-spacing: -.085em;
  line-height: 1.015;
  margin-block: 1.2rem 1.35rem;
  font-weight: 610;
}

.hero h1 span {
  display: block;
}

.intro,.hero .intro {
  font-size: clamp(1rem,1.35vw,1.17rem);
  color: #c6cbbe;
  line-height: 1.68;
  max-width: 54ch;
}

.actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  width: fit-content;
  padding: 11px 19px;
  border-radius: 7px;
  border: 1px solid #505749;
  font-size: .92rem;
  font-weight: 620;
  text-align: center;
  transition: background .16s,border-color .16s,color .16s;
}

.button.primary {
  color: #142007;
  background: var(--acid);
  border-color: var(--acid);
}

.button.primary:hover {
  background: #d6ff9a;
  border-color: #d6ff9a;
}

.button.secondary:hover {
  border-color: var(--acid);
  background: #24291f;
}

.portrait {
  width: 100%;
  max-width: 388px;
  justify-self: end;
  position: relative;
}

.photo-mat {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1/.99;
  margin: 0 9px 0 0;
  background: #32352e;
}

.photo-mat:before {
  content: '';
  position: absolute;
  inset: 12% -9px -9px 13%;
  z-index: -1;
  background: var(--acid);
}

.photo-mat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  filter: grayscale(1);
  border: 1px solid #686b62;
}

.crop {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: #d5ff94;
  border-style: solid;
  opacity: .84;
}

.tl {
  left: 12px;
  top: 12px;
  border-width: 1px 0 0 1px;
}

.tr {
  right: 12px;
  top: 12px;
  border-width: 1px 1px 0 0;
}

.bl {
  left: 12px;
  bottom: 12px;
  border-width: 0 0 1px 1px;
}

.br {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
}

.portrait figcaption {
  margin-top: 21px;
  gap: 7px;
  font-size: .86rem;
  color: #c3c9b9;
}

.portrait figcaption svg {
  color: var(--acid);
}

.zone {
  padding-block: clamp(3.3rem,6.4vw,6rem);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 3rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(2.25rem,4.25vw,4rem);
}

.section-head p,.oss-tease>div>p:not(.eyebrow),.contact-grid>div>p:not(.eyebrow) {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}

.section-head p {
  max-width: 38ch;
}

.work {
  background: #171b15;
  border-block: 1px solid var(--rule);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem,2.2vw,1.75rem);
}

.project-card {
  display: block;
  border: 1px solid #3b4236;
  border-radius: 12px;
  overflow: hidden;
  background: #1b2019;
  transition: border-color .16s,background .16s;
}

.project-card:hover {
  background: #20261d;
  border-color: #748262;
}

.art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.project-card>.art {
  height: clamp(166px,17.8vw,227px);
}

.art-agreement {
  color: #1e2b15;
  background: radial-gradient(ellipse at 35% 18%,#d5ed9c 0,transparent 61%),repeating-linear-gradient(115deg,transparent 0 23px,rgba(46,66,26,.05) 23px 24px),#adc58b;
  display: grid;
  place-items: center;
}

.paper-stack {
  width: min(74%,265px);
  position: relative;
  transform: rotate(-5deg) translateY(9%);
}

.paper-stack:before,.paper-stack:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #dee4d1;
  border: 1px solid #8e9b7c;
  transform: translate(4%,-2%) rotate(5deg);
}

.paper-stack:after {
  background: #eff1e5;
  transform: translate(2%,-1%) rotate(2deg);
}

.sheet {
  padding: 12px 19px 18px;
  background: #f9f9ef;
  border: 1px solid #a1ad92;
  box-shadow: 0 8px 15px #41513930;
}

.sheet-top {
  justify-content: space-between;
  color: #48613c;
}

.sheet-top strong {
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: -.055em;
  font-size: .98rem;
}

.sheet-top i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #68962d;
  transform: rotate(-12deg);
}

.paper-title {
  font-weight: 690;
  font-size: 1.12rem;
  line-height: 1.2;
  margin: 12px 0 9px;
  letter-spacing: -.035em;
}

.paper-line {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 5px;
  border-top: 1px solid #d7dfcf;
  padding: 5px 0;
  align-items: center;
}

.paper-line small,.paper-line b {
  font-size: .75rem;
  line-height: 1.35;
}

.paper-line small {
  color: #4e5d45;
}

.paper-line b {
  font-weight: 600;
}

.art-map {
  background-color: #294039;
  background-image: repeating-linear-gradient(-25deg,transparent 0 31px,#57756873 32px 34px,transparent 35px 45px),repeating-linear-gradient(63deg,transparent 0 31px,#77877d55 32px 33px,transparent 35px 53px);
}

.street {
  position: absolute;
  background: #899e8e;
  opacity: .68;
  height: 5px;
  left: -20%;
  width: 150%;
  border-block: 1px solid #627b6b;
}

.s1 {
  top: 48%;
  transform: rotate(-30deg);
}

.s2 {
  top: 62%;
  transform: rotate(18deg);
}

.s3 {
  top: 26%;
  transform: rotate(65deg);
  left: -57%;
}

.s4 {
  top: 34%;
  transform: rotate(55deg);
  left: -4%;
}

.s5 {
  top: 21%;
  transform: rotate(4deg);
}

.map-zone {
  position: absolute;
  top: 12%;
  left: 36%;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #c6f69c99;
  background: #b8f18415;
  box-shadow: 0 0 0 13px #bddf9020,0 0 0 26px #bddf900c;
}

.map-cross {
  background: var(--acid);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px solid #29352a;
  box-shadow: 0 0 0 3px var(--acid);
}

.point {
  width: 10px;
  height: 10px;
  border: 2px solid #f0ffba;
  border-radius: 50%;
  position: absolute;
  background: #7da776;
}

.p1 {
  left: 20%;
  top: 67%;
}

.p2 {
  left: 70%;
  top: 28%;
}

.p3 {
  left: 71%;
  top: 72%;
}

.map-label {
  position: absolute;
  bottom: 15px;
  inset-inline-start: 18px;
  background: #17251d;
  color: #e5f4d4;
  border: 1px solid #69816d;
  border-radius: 4px;
  padding: 5px 10px;
  gap: 5px;
  font-size: .8rem;
}

.card-copy {
  padding: clamp(1.15rem,2.2vw,1.8rem);
}

.kind {
  font-size: .77rem;
  letter-spacing: .085em;
  color: #c3d4ad;
}

.card-copy h3 {
  font-size: clamp(1.65rem,2.7vw,2.35rem);
  margin: .46rem 0;
}

.card-copy p,.work-row p,.services-grid p,.repo-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.text-link {
  display: inline-block;
  font-weight: 620;
  font-size: .9rem;
  text-decoration: underline;
  text-decoration-color: #708759;
  text-underline-offset: .28em;
}

.text-link:hover,.project-card:hover .text-link,.work-row:hover .text-link {
  color: var(--acid);
}

.card-copy .text-link {
  margin-top: 1rem;
}

.work-list {
  margin-top: 1.75rem;
}

.work-row {
  padding: 1.3rem 0;
  display: grid;
  grid-template-columns: 52px .9fr 1.25fr auto;
  gap: 1.25rem;
  align-items: center;
  border-top: 1px solid var(--rule);
}

.work-row:last-child {
  border-bottom: 1px solid var(--rule);
}

.work-row h3 {
  font-size: clamp(1.25rem,2vw,1.65rem);
  margin-top: 4px;
}

.art-symbol {
  display: grid;
  place-items: center;
  height: 100%;
  width: 100%;
  background: repeating-linear-gradient(130deg,transparent 0 25px,#fff1 25px 26px),#3d4940;
  color: #e1eccf;
}

.art-symbol.car {
  background-color: #344148;
  color: #d2e2e8;
}

.art-symbol.flow {
  background-color: #4c423a;
  color: #ecdec9;
}

.mini-art {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  overflow: hidden;
}

.mini-art svg {
  width: 25px;
  height: 25px;
}

.about,.oss-tease,.faq {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: clamp(2rem,6.5vw,6rem);
}

.about h2,.oss-tease h2 {
  margin-top: .9rem;
}

.about-copy>p {
  font-size: clamp(1.03rem,1.5vw,1.2rem);
  color: var(--muted);
  line-height: 1.7;
}

.about-copy>p+p {
  margin-top: 1rem;
}

.about-copy h3 {
  font-size: 1rem;
  letter-spacing: 0;
  margin: 1.7rem 0 .75rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  padding: 0;
}

.chips li {
  color: #ced4c6;
  border: 1px solid #3f4739;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: .82rem;
}

.services {
  background: #191d17;
  border-block: 1px solid var(--rule);
}

.services-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: clamp(1.2rem,3vw,2.7rem);
}

.services-grid article {
  border-top: 1px solid #4c5544;
  padding-top: 1.2rem;
}

.services-grid svg,.repo-preview svg,.repo-grid svg {
  color: var(--acid);
}

.services-grid h3 {
  font-size: 1.3rem;
  margin: .85rem 0 .6rem;
  letter-spacing: -.035em;
}

.oss-tease>div>p:not(.eyebrow) {
  margin: 1rem 0 1.45rem;
}

.repo-preview {
  align-self: center;
  border-top: 1px solid var(--rule);
}

.repo-preview a {
  display: flex;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}

.repo-preview a:hover b {
  color: var(--acid);
}

.repo-preview b {
  display: block;
  font-size: 1rem;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.repo-preview svg {
  margin-top: 3px;
}

.repo-preview small {
  color: var(--muted);
  display: block;
  font-size: .91rem;
  margin-top: 3px;
}

.faq {
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-child {
  border-top: 1px solid var(--rule);
}

summary {
  cursor: pointer;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: .9rem;
  list-style: none;
  padding: 1.05rem 0;
  font-weight: 590;
}

.faq summary::-webkit-details-marker,.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.faq summary span {
  width: 13px;
  height: 13px;
  flex: none;
  position: relative;
  align-self: center;
}

.faq summary span:before,.faq summary span:after {
  content: '';
  position: absolute;
  background: var(--acid);
  width: 13px;
  height: 1px;
  left: 0;
  top: 6px;
}

.faq summary span:after {
  transform: rotate(90deg);
}

.faq details[open] summary span:after {
  display: none;
}

.faq details p {
  color: var(--muted);
  padding: 0 0 1.15rem;
  line-height: 1.68;
}

footer {
  background: #1e271b;
  border-top: 1px solid #3e4a38;
}

.contact-grid {
  padding-block: clamp(2.75rem,5vw,4.75rem);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: end;
}

.contact-grid h2 {
  margin: .75rem 0 1rem;
}

.contact-grid>div>p:not(.eyebrow) {
  max-width: 59ch;
}

.contact-actions {
  gap: 1.3rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-line {
  border-top: 1px solid #43503e;
  padding-block: 1.3rem;
  gap: 1.35rem;
}

.footer-line>span {
  color: var(--muted);
  font-size: .85rem;
}

.socials {
  margin-inline-start: auto;
  gap: 1rem;
}

.crumb {
  color: var(--muted);
  gap: .6rem;
  flex-wrap: wrap;
  font-size: .87rem;
  margin-bottom: clamp(2.5rem,5vw,4.5rem);
}

.crumb>span[aria-hidden] {
  opacity: .6;
}

.archive-inner,.case {
  padding-block: 1.4rem clamp(3.5rem,6vw,6rem);
}

.archive-inner h1,.case h1 {
  line-height: 1.06;
  letter-spacing: -.06em;
  font-size: clamp(2.8rem,5.4vw,5.6rem);
  margin: 1rem 0;
}

.archive-inner>.intro {
  max-width: 58ch;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.repo-grid article {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.repo-grid h2 {
  font-size: 1.35rem;
  margin: .9rem 0 .55rem;
  overflow-wrap: anywhere;
}

.repo-grid .text-link {
  margin-top: 1rem;
}

.case-top {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,.85fr);
  gap: clamp(2rem,6vw,5rem);
  align-items: center;
}

.case .chips {
  margin-top: 1.15rem;
}

.case-visual {
  height: clamp(185px,22vw,280px);
  border-radius: 9px;
  overflow: hidden;
}

.case-visual>.art {
  height: 100%;
}

.case-prose {
  margin-top: clamp(2.5rem,6vw,5.5rem);
}

.case-prose section {
  padding-block: clamp(1.35rem,2.6vw,2.2rem);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 2rem;
}

.case-prose h2 {
  font-size: clamp(1.5rem,2.25vw,2.2rem);
}

.case-prose p {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 66ch;
}

.film-strip {
  background: #21251f;
  padding: clamp(1rem,3vw,2rem);
  border-radius: 10px;
  margin-top: 1rem;
}

.film-strip>div {
  max-width: 810px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(.5rem,1.5vw,1.5rem);
  margin: auto;
}

.film-strip img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.film-strip figcaption {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
}

.case-actions {
  margin-top: 2rem;
}

[lang=ar] {
  font-family: Tajawal,Inter,Arial,sans-serif;
}

[lang=ar] :is(h1,h2,h3,.eyebrow,.kind,.paper-title) {
  font-family: Tajawal,Inter,Arial,sans-serif;
  letter-spacing: 0;
  line-height: 1.3;
}

[lang=ar] .hero h1 {
  line-height: 1.2;
}

[lang=ar] .eyebrow,[lang=ar] .kind {
  font-size: 1rem;
}

[lang=ar] .brand,[lang=ar] .chips {
  font-family: Inter,Arial,sans-serif;
}

[lang=ar] .chips {
  justify-content: flex-end;
}

[lang=ar] .sheet .paper-title {
  font-size: 1.15rem;
}

[lang=ar] .hero .intro,[lang=ar] .about-copy p,[lang=ar] .case-prose p {
  font-size: 1.19rem;
}

[lang=ar] .wide-nav a,[lang=ar] .button {
  font-size: 1rem;
}

[lang=ar] .repo-preview b,[lang=ar] .repo-grid h2 {
  text-align: right;
}

[lang=ar] .sheet-top strong {
  font-family: Inter,Arial,sans-serif;
}

@media(min-width:1500px) {
  .hero h1 {
    font-size: 6.1rem;
  }
}

@media(max-width:1000px) {
  .hero {
    grid-template-columns: 1.45fr .85fr;
    gap: 2rem;
  }
  .hero h1 {
    font-size: clamp(3.4rem,6vw,4.2rem);
  }
  .services-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .repo-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .nav-shell {
    min-height: 66px;
  }
  .wide-nav {
    gap: 1.3rem;
  }
}

@media(max-width:730px) {
  :root {
    --pad: 1.25rem;
  }
  .wide-nav {
    display: none;
  }
  .nav-end {
    margin-inline-start: auto;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav summary {
    list-style: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--rule);
    border-radius: 7px;
  }
  .mobile-nav nav {
    position: absolute;
    inset-inline: var(--pad);
    top: calc(100% - 1px);
    padding: .4rem 1rem;
    background: #20251f;
    border: 1px solid var(--rule);
    border-radius: 0 0 9px 9px;
    box-shadow: 0 16px 35px #0005;
    display: grid;
  }
  .mobile-nav nav a {
    padding: .65rem;
    border-bottom: 1px solid var(--rule);
  }
  .mobile-nav nav a:last-child {
    border: 0;
  }
  .hero {
    grid-template-columns: minmax(0,1fr) minmax(0,.53fr);
    align-items: start;
    gap: 1.3rem;
  }
  .hero h1 {
    font-size: clamp(2.8rem,6.9vw,3.8rem);
  }
  .hero .intro {
    font-size: 1rem;
  }
  .portrait {
    margin-top: 1.8rem;
  }
  .section-head,.about,.oss-tease,.faq,.contact-grid {
    display: block;
  }
  .section-head p,.about-copy,.repo-preview,.faq>div,.contact-actions {
    margin-top: 1.1rem;
  }
  .section-head p {
    max-width: 53ch;
  }
  .contact-actions {
    justify-content: start;
  }
  .work-row {
    grid-template-columns: 48px 1fr auto;
    gap: .9rem;
  }
  .work-row>p {
    grid-column: 2/-1;
  }
  .work-row>.text-link {
    grid-column: 3;
    grid-row: 1;
  }
  .mini-art {
    width: 46px;
    height: 46px;
  }
  .footer-line {
    flex-wrap: wrap;
    gap: .8rem;
  }
  .socials {
    gap: .7rem;
  }
  .case-top {
    gap: 1.5rem;
  }
  .case-prose section {
    grid-template-columns: .8fr 1.2fr;
    gap: 1.2rem;
  }
}

@media(max-width:550px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 2.6rem 2rem;
  }
  .hero h1 {
    font-size: clamp(2.9rem,9.7vw,3.6rem);
    margin-block: .9rem;
  }
  .hero .actions {
    margin-top: 1.25rem;
  }
  .hero .portrait {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    justify-self: start;
  }
  .photo-mat {
    aspect-ratio: 1.7;
    margin-right: 6px;
    max-height: 275px;
  }
  .photo-mat:before {
    inset: 12% -6px -6px 13%;
  }
  .photo-mat img {
    object-position: 50% 32%;
  }
  .portrait figcaption {
    margin-top: 12px;
    font-size: .82rem;
  }
  .hero .button {
    padding: 9px 13px;
    min-height: 44px;
    font-size: .86rem;
  }
  .hero .button svg {
    width: 15px;
  }
  .feature-grid,.repo-grid,.case-top,.case-prose section {
    grid-template-columns: 1fr;
  }
  .section-head {
    margin-bottom: 1.3rem;
  }
  .project-card>.art {
    height: 166px;
  }
  .feature-grid {
    gap: 1.05rem;
  }
  .services-grid {
    gap: 1.2rem;
  }
  .services-grid h3 {
    font-size: 1.15rem;
  }
  .services-grid p {
    font-size: .94rem;
  }
  .footer-line .socials {
    width: 100%;
    margin: 0;
  }
  .work-row>.text-link {
    grid-column: 2/-1;
    grid-row: auto;
    justify-self: start;
  }
  .work-row {
    grid-template-columns: 45px 1fr;
  }
  .work-row>p {
    margin-top: -.3rem;
  }
  .repo-grid {
    margin: 1.65rem 0;
  }
  .case-prose section {
    gap: .6rem;
  }
  .case-visual {
    height: 180px;
  }
  .case-top {
    gap: 1.5rem;
  }
  .crumb {
    margin-bottom: 2rem;
  }
  .film-strip {
    padding: .65rem;
  }
  .film-strip figcaption {
    margin: .65rem 0 .15rem;
  }
  .language-nav a {
    min-width: 31px;
  }
  .socials a {
    font-size: .86rem;
  }
}

@media(max-width:335px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero .button {
    font-size: .8rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero .actions {
    gap: 7px;
  }
  .hero .button svg {
    display: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    transition: none!important;
    animation: none!important;
  }
}

